Monday, 14 October 2019

New Dog("Harvey")

For around five years, we have been waiting for our circumstances to be right to take in a dog. Similarly to my feelings on spawning a child, I felt strongly that we should get a rescue. Now that I've done it, it is the only way I would feel comfortable doing it again. 

One major hurdle we faced was that my partner is hugely allergic to many dogs and there doesn't seem to be any rhyme or reason to what sets her off. So, this summer when we felt we were in a suitable position to approach the Dog's Trust, we were not expecting it to happen fast. 

Like so many, I bond quickly with dogs. So I was digging in expecting to have my heart broken each time we saw a potential match. 

Then came Harvey! 

Harvey was aloof, stressed out and a bit of a dick to other dogs. He was a stray from Wales, who was not house trained but knew some tricks and had a chip so must have been homed at some point. 

He was beautiful. 

We met him, my girlfriend did not explode, and we took him for a walk. He played and responded to treats. He was a gent. 

Harvey is what you call 'unsocialised', meaning that he probably didn't spend time with other puppies while growing up. He also knew how to sit, paw and lie down, which again reinforces that he must have spent some time in a home. 

Skipping to the end a little; we had him on a trial and have now adopted him officially. I walk him at unsociable hours in remote places to minimise his contact until he is more comfortable, if ever, with other dogs. In almost every other way conceivable, he is the perfect gentleman at home. His house training seems to have been in place all along, just hampered by the stress of being in a kennel. He is playful and intelligent. 

I wanted to post this to urge anyone thinking of getting a dog, to consider adopting if your circumstances are right. If you're nervous then talk to the trust. They are just amazing human beings who are always willing to help you make their dog's life better in spite of being insanely busy. The support is of great value to us and I can't applaud them enough. 

Wednesday, 19 August 2015

new braintidy()

I made a thing :)

BrainTidy is a desktop app which I am developing to help myself, and others organise their day from the outset.


Follow the link and see if this free alpha is worth developing any further, then by all means get back to me here, on the website or on twitter @medthepirate

Monday, 4 May 2015

Synergy Shift Problem with Windows Server (windows 10)

Just thought I'd get this down as all I found on the net failed to help me.

A while ago there was a windows 8 update that caused machines to crash. Said update also stopped Synergy servers from sending the shift key to clients. See the link here for information on that.

github discussion about windows update k27blahblah

None of the workarounds or fixes worked for me as I'm currently using Windows 10 tech preview.

So I found a solution:

Either switch to the linux machine as the server...

Or:

[step 1]
On whichever distro you're using workout how to assign keys to a command. Then pick two keys you don't think you'll need as much as shift..

[step 2]
Make sure you have xdotool installed:

code:
(ubuntu/mint/deb)

             sudo apt-get install xdotool

[step 3]
Open the keyboard shortcut settings menu

[step 4]
Add a shortcut and assign it to a key, naming it shift_up.

[step 5]
In the 'command' field type:

             xdotool keydown Shift

[step 6]
Repeat steps 4 and 5 for a shift up key using 'keyup' instead of 'keydown'

I did this in mint. It will have a similar equivalent in Ubuntu and is definitely easily figured out in Suse etc.

If your machine is quick you could write a shell script and point the shortcut to it which has an if else statement so you can use just one key.

Wednesday, 21 January 2015

paradigm problems

The more I think about it, the more I think that our education system has things backwards. It seems to me that learning to count in decimal is fine, but why not introduce the concept of powers earlier? Or rather, when powers are introduced, why isn't it applied to our base ten counting system. This would give kids an extraordinarily powerful understanding of how number systems are formed. I can't remember it being explicit in our learning material; maybe it was. 

That said things may have changed a lot in 20 years..

By the by, I feel the same way about radians and degrees. I don't think they're harder. In fact I think that both of these concepts *could* help some kids conceptualise numbers and mathematical problems far better if they didn't have to see it from the point of view of their educator. Ask yourself how big a degree is.. then ask why. Apart from it having many possible factors it seems almost arbitrary.

Whereas radians have an iron clad concept.

Rant over. Off to my exam.

Friday, 28 November 2014

balance

Finding balance in your life is a difficult, but important goal. But computer science/maths is teaching me some useful ways to define it.
Defining it, after all is key to creating and maintaining it. So here's my question to you; "How do you define balance?"
Here's my two pennies worth.
  1. Define it - sit down and set your goals for things, relationships, finance and the your development this might help. it helps me
  2. Refocus each day - here are some tools I use personally. But you can do it on paper or in your head in the shower. I sometimes use a recording to give me headings to think on and brief/debrief each day
  3. Take Action - make sure when you have filtered your action plan to the daily level you follow it and record your progress towards each goal
  4. Refocus twice a year - I do the goalsetting thing every six months to refresh my goals and adjust for new priorities. That's why I made it
I hope you find all that useful. It is the system I use to manage my development as a computer scientist, musician, martial artist, parent, security operative, teacher, lover, friend, uncle, brother, son, and everything else that I turn my skills towards in the future.
My website has had some pretty big updates lately, including a new web based image editor (beta) and some new videos. check out www.meds-place.com for regular updates.

Wednesday, 10 September 2014

bagawallashitballs

Here are some of my favourite quotes from the last month of door work:

"I'm a professional boxer." Announced by an overweight girl at 'The Association' in Ripley. She wasn't..

"You'll get used to the locals here.." Said by EVERYONE! What's the deal? I haven't reacted badly to 'the locals'.

"Hang on a minute mate, I just bought a drink.." Gentleman I asked to leave because he punched someone.

"You're posh aren't you" ... No... I'm southern, shut up.

"... so he said 'can I have a word outside?' an' I said 'that's not happening mate'. I mean I'm not 'urting no one, just a bit of coke for myself. I said 'I think you wanna talk to (insert doorman who's been there longer here) he understands'" Said obviously for my benefit to 'doorman who's been there longer'. To which I responded "I'd have had you out. He was just doing his job. If you don't want to be thrown out don't do drugs." BUT I resisted the urge to make a face..

"raghssshhbagabagawallashitballs" Woman who punched me in the face.. I added 'bagawallashitballs' to make her sound more clever.

"So what would you do if I did this" Said by our 'professional boxer' as she punched me in the stomach, to which I responded by feigning being winded and asked her to 'give me a second JESUS!'

"My boyfriend's over there" said by woman with her arm around her boyfriend.. He nodded. I'm still confused.

"'Insert owners name' said I could stick around." It was 'owners name' who told me to kick him out.

"Ha, you are WAY more ticklish tonight than you were last night!" Overheard two straight men on the front door.

"Catch it, bin it, kill it!!" One gentleman discussing a woman that he had seen and was less than impressed with the look of. He was not exactly a catch either.

Me:"What's your D.O.B?", girl: "16th of march 1986" (wrong), me: "that's wrong.. you don't get your own birthday wrong and it looks nothing like you."... time passes... Me: "You need to go home" as she tried to sneak in ... third attempt, me: "Seriously you need to jog on." she has a tantrum, the like of which I've never seen during which manages to say the utterly golden and pointless "My uncle's a doorman!" 

I love sharing.

Saturday, 23 August 2014

L33t Learning

Since I missed out on my calculus mark by 5%, the school of computer science looked at my application and saw that I had very high marks for programming, so they said if I hit 40% in the resit, I'd progress to year 1 of the degree this September.

This was a mixed result for me. Having been out of education for 16 years and having never studied maths to FE level, I have struggled to get my head around Calculus and Algebra as well as square away my subjects every three weeks for this year.

So for the last three to five weeks I have been on calculus overdrive. I've pushed my brain through real life pain; through threshold after threshold in a relatively short amount of time to arrive at a point where I would actually be comfortable starting the course again. I've inflicted such guilt on myself when avoiding study, that it made me quite difficult to live with I imagine.

Each tiny step up the Calculus mountain took me hours or days of study to get my head around, and during the last week I bashed said head against every past paper I could get my hands on over and over again. I studied the papers, and the solutions trying to reverse engineer the lecturers answers. Occasionally I'd hit a wall, when I could not see how the lecturer made some magical leap in his/her working out. I shed actual tears digging through notes looking for specific axioms that I had missed in the lectures. I scoured the internet, and notably bugged one of my maths lectures with (I estimate) close to 50 emails.

I sat the paper on Tuesday, and I have to say I'm really confident. I completed all 18 questions and did not hit a single point where I felt utterly lost. I couldn't believe it when I came out. It could still all go pear shaped, but I think I've done enough.

EDIT:

I passed with 68%, so the school has accepted me. :)

Tuesday, 13 May 2014

Jogging algorithms

Wrote this as a comment on a g+ joke post about how geeks run.. So while I don't take credit for the idea, this was my take on the algorithm which I share now for posterity :)

for(int i = 0; i < routeSteps.length;i++){
do{
   jog()
}while(!stitch);
System.out.println("gasp!");
Panic() imLiterallyGoinToDie = new Panic();
System.out.println(disproportionateSwearWord);
}

Tea cuppa = new Tea();
System.out.println("never again");

//I spent WAY too much time on this

Sunday, 4 May 2014

Menigma

Grown women everywhere, forget about what you think men want. 

That is all. 

Need some context? Ok, here goes:

Over the last couple of days I have spoken with and seen social media from single women who have given the males of our species domain over their emotions that in general, we neither understand nor do we deserve. 

Your state; be it happy, sad or whatever, should not be dependent on whether or not some bloke wants you, or whether he wanted you and now wants someone else. It shouldn't matter how he feels about whether you will sleep with him. Most of all, never compare yourself to past or present partners. 

In a relationship you build respect and the other half will, over time come to care about how you speak, how you feel and act towards them. If you're not in a relationship do not give someone that power. For all you know they don't give a shit. 

I will never figure women out and I suggest that women proceed as if the reverse is true also. 

Also, if you find that the same shit happens to you, I suggest you change the  way you meet men. Change scenery a bit. Get out of the town your in for a few days. Just do something different. You don't need dating sites or anything. Take a friend and go to the next city on for a quiet drink now and again. 

If you're in a town, and have been for a long time, things can get a bit... Claustrophobic?! Every bloke you meet has a mutual friend on fb. This is an emergency! You are about to lose five seconds in the crystal dome! Get out! 

Lastly don't go out lonely. Do anything to change your state before you meet men especially for the first time. Actually if you are changing scene and not giving men so much power you will probably start feeling better and this will come across.

Basically I'm not trying to give dating advice.  I'm trying to say have fun and find yourself mixing in different circles. Put men out of your mind and enjoy your life. I hate seeing friends unhappy. 

Tuesday, 29 April 2014

Studying the hard way?

A huge challenge for me during this year at uni (termed year 0, programmers will be pleased to know) is working out how best to study. Ironically the 'study skills' module has helped exactly 0% with this. 

I think that studying is a very personal thing. If, like me, you find that just reading and writing and going through exercises is very difficult and demotivating I have a few tips.

Replace the act of writing with the creation of something. Your own 'study system' if you will. For me I use a third party PDF reader (foxit) to speed read and annotate my lecture notes, copy the highlights onto a pad/whiteboard and summarise them and the formulae in aural notes that I then upload to www.meds-place.com/maths.php. The next day I listen back through, copy out all of the formulae and add as many as I can in the same fashion. After this ritual is performed I attempt example questions and then exam papers. 

This daily ritual can be split, shrunk, expanded as I need; depending on the events of the day. I also repeat this daily (if there's time) for maths revision. The priority being which exam is the closest, or which I feel weakest on. 

I can happily study 4-8+ hours straight in this fashion. Of course I take breaks at convenient intervals and make sure I get outside and get exercise. 

I also find that it helps to change my scenery sometimes. Considering all I need is my laptop, notepad and pencil case, this is really easy. 

Some other things I've discovered:

- Get Evernote and keep your notes there. You can access PDFs from smartphones in this way.
- Get a mini whiteboard to do practice questions on. You'll save a buttload of paper. The act of writing it down is way more useful than the act of reading them again. 
- Combine rote learning with understanding. If you are overwhelmed by something learn the formula/equations by rote, then read each day on it and attempt questions. This will lead you gently to the lightbulb moment.

and last but not least:
- Don't procrastinate too long on random blog posts...

Friday, 7 March 2014

You're grieving wrong

Loss is quite a thing. The brain has built in functions that will set  it aside indefinitely until you are ready to deal with it. 

Yet even while you are setting it aside, allowing yourself to perform whatever task you decided subconsciously required the delay of that loss, the brain is iterating through it one small chunk at a time. 

The greatest piece of advice I ever got about dealing with a loss was this:

"There is no wrong way..."

As in, whatever you are doing, that is the right way. That is what you need to do. It's terrible to be lost without that knowledge. To feel guilt because you don't seem sad enough, or you're functioning how you need to, to carry on.

The only people who will tell you you're doing it wrong either have no concept of loss, or no mechanism for analysing what they themselves are doing, or they have lived with a guilt for not doing it by somebody else's standard for some time. 

Screw standards. This is your future, and your recovery. Whoever you lost, they would not wish you to live with guilt as well as the pain of loss. 

The other thing that struck me today, after 19 years; you cannot underestimate the trauma that surrounds death. The loss itself is entirely separate to the trauma of witnessing it, and the pain, suffering and degradation of quality of life that leads up to it. 

Today I broke down in tears as I shaved my head. There was no trigger. I am not even sad. Perhaps my brain just finished another chunk. Go brain...

Tuesday, 4 March 2014

Facebook - It isn't clever

Tonight I woke up and found it difficult to get back to sleep. This has perhaps put me in a foul mood...

I trawled facebook just to keep me quietly occupied, as everyone is asleep. The more I looked the more I had to resist the urge to jump down some poor thread's throat and tear it a new arsehole. 

Thread after thread of complete drivel. Its like somebody is genuinely attempting the old 'give infinite monkeys a typewriter' experiment. 

I'm not talking about the opinions of my friends (necessarily ;)), although it is always sad to see someone taken in by baseless, wishy washy bullshit written in big words to dazzle and confuse; by a sacked off buzzfeed journo for a 'the world is magical' organisation who can't face the reality that we're probably not telepathic until proven otherwise!! OK maybe I am talking about that a little bit. 

Proven, by the way, does not mean that it is said in another book. Nor does it mean that you heard a person tell a story that someone else heard about their great Gran while she was exploring drugs. Proof is measurable and can be cited. 

As I was saying I wasn't annoyed about that. But scrolling through the waves of drivel I found myself compelled to get involved several times and I suddenly realised that I was probably about to offend someone. So I stopped. I posted, edited and finally deleted several posts that were not meant to offend in the slightest. So I thought to myself; "If I don't want to offend them, and this is not going to achieve anything else... what am I trying to do here?" 

So here I am ranting away at Blogger. At least Blogger won't care that there is zero proof that our earlobes give us a sixth sense by wobbling at the exact fucking resonant frequency of a unicorns fart! At least Blogger will not take offence at me making this face *makes face*. 

I suppose all I'm saying is, if its written on a meme or a thread on facebook, it is almost 100% likely to be utter bollocks!

Rite of Passage

I've been with my girlfriend now for about 18 months. So much has happened it seems a lifetime. Not in a bad way. Time has not dragged, but I have the unshakable notion that so many events cannot happen and so much love and trust cannot be accrued in such a short time.

Before this relationship I was something of a bachelor. I was a 31 year old self employed martial artist. I wasn't badly behaved but my life was very different. Thinking back, I was lost. 

I did not dislike being single. In fact I believe strongly that until you have found the right person you should choose to be single, and bloody well enjoy yourself. Entering a relationship and dogmatically, blindly holding onto it even if it doesn't work is not the way forward.

"Easy for you to say Med. Mr 'When you know, you just know!'"

Not so actually. While for the most part I enjoyed being single, there were times that could only be described as crises.The culmination of loneliness, fear of said loneliness, futile attempts at success in career and love, unstable home-life, poor living conditions and irrational existential episodes brought about a short to medium length period of my life that I do not wish to repeat. 

People mock the 'mid-life crisis' quite a lot. They see older fellas in fast cars and think "criiiiisiiiiis". I was guilty of this once or twice myself. But if these events are anything like I experienced then a) They are not funny and b) All power to them.

I have no stats, but I think men in general do not take care of their mental health very well. Our standard response to poor mental health is booze or mockery. When faced with this crisis though, I needed to take more drastic action. Yet at no stage did it occur to me that I should go to the quack, which I have paid for with my taxes. 

Instead I researched self help, motivation and positivity. Usually I can't hack very much of this generally american dominated industry. But I did what I recommend any of you do should you be in need of a little help in this way. Research a buttload of it. Listen to as much as you can stomach and take action straight away to turn your brain around.

I digress; the original motion for this post was to talk a little about what it's like to be a new dad with a ten year old.

In a lot of ways that I didn't expect, the boy 'found' me. If I was lost, he was definitely key to navigating my way back to the right path. I had never wanted or needed children in the past. Not in the sense that I felt a yearning or a biological clock ticking away. But it would seem that, that was exactly what was happening, to an extent at least.

Interaction with him used to be a lot easier, because originally I was his Aikido teacher. So on the mat I was strict, and off the mat I was just an adult that he knew.

Now everything I say has consequence. Every position I take on every subject is analysed carefully and every tone of voice I take has an influence on his upbringing. This is so easy to forget and quite tough to maintain. It is also irreplaceable in ones life. If men have a final right of passage it is simply to be a true father figure.

I say father figure because being a father is as easy as... well you probably have some idea of what I mean by that. Actually taking on that responsibility is hugely different. I never wiped his bum when he was a baby, or helped him with his first steps. But how he grows now, in his formative years is partly up to me. This is one of the best things in my life, and yet I have never found a bigger challenge.

The mirror that is held up by having this responsibility is ruthless. It tells you exactly what you think of yourself. It shows you completely naked, casting aside your self image for the immature bullshit that it is worth.

The growth and beauty that you witness is incredible and profound. You share a part of yourself that may have hidden from you until this moment.

This experience is refreshing and beautiful, if you are up for it.


Site updates

I've made loads of updates to www.meds-place.com in the last hour (taking a well earned break from a morning of maths). Notably to the 'games' section with a new project in the pipeline. I've also made quite big changes to the 'learn stuff' links. Separating out the guitar and Aikido tutorials and adding a lot of material for the guitar section.

This is all old stuff that I have been meaning to post for ages, with the exception of the game, which is an ongoing procrastination.

Thursday, 30 January 2014

Boiling an Egg; As taught by your Calculus lecturer...

"y = C*E+(½E)
a = π(x/2)^2 v = ( ∫(C+E+(½E))dy)x OR ay
t = 60*3
T = t+1/10t
b=s*v*z (z = equation for boiling one unit of water)

b+T = |Yummy|

OK, that is the technique for boilination, now you try with examples 1-50!!"

While this is probably innacurate, some of it estimated and some of it is undoubtedly incorrect. It serves to demonstrate the point.

If at some point in the lesson the teacher would actually say the words; "this is applied to the real world and is not just an abstract set of numbers and letters and long words..." mathematical studies would probably be more populated at higher levels.

Now I know WHAT integration, differentiation, limits etc are defined as, (discoveries I made independent of my lectures) I feel like I've lost a lot of time for something that could just have been explained a little differently.

Any way.. back to studying.

Friday, 24 January 2014

Day 5 - Sweary Phone Finder

This one goes out to stretch!

I give you, 'The Sweary Phone Finder'. You've been warned... It's very sweary!

http://meds-place.com/sweary.php

Whether or not it is a practical solution remains to be seen.

Thursday, 23 January 2014

Day 4 - Mardy Magic

Congratulations and thanks to @bobobex for their list of ideas that today I finally honoured by writing a tiny python magic 8 ball thing..

It was interesting putting this together. Playing around with ways of presenting it and possibly getting the python to run on a webpage. In the end I just zipped it up for download here:

http://meds-place.com/eight.zip

The main reason for this is just time. I discovered some really cool stuff while researching ways to go about presenting it in browser, which I hope will be useful in the future. Check out brython.info and http://repl.it/languages they're both awesome.


Wednesday, 22 January 2014

Day 3 - Regular Impressions

"... and the award for most pointless program ever written goes to (dramatic pause) Med of meds-place.com." Med approaches the mic and starts to speak emotionally; " I'd like to thank my brother Chris for giving me this opportunity!".

When I asked for ideas for things to build this week, my brother jumped in with a tongue in cheek "translation app" because apparently he has no idea what I'm saying on the internet most of the time. Well Chris, here it is:


and Here is a list of terms that it checks for so you can have a play:

"pc", "computer", "IDE", "coding", "app", "binomial", "algebra", "calculus", "plus", "equals", "aikido", "training", "throw", "ukemi", "falling", "he-man", "transformers", "cartoon", "defenders", "visionaries" 

So type any of those within a sentence and it should give you a rough idea of what's being said.

Again, totally pointless but a nice little play with reg ex and passing variables.

Tuesday, 21 January 2014

Day 2 - mealsBytheway()

Today I went for a really simple but useful little tool. A meal spinner. take a look here:

www.meds-place.com/bytheway

The winner being my girlfriends mother, she asked for a meal spinner that didn't repeat meats or sides consecutively from a given menu.

If this had been just a case of randomising meals it'd have been simple. As it is it took a little over 2 hours to throw together.

If I had more than a day (as laid out by the challenge) I would probably include uploadable/editable menus with options etc. Thinking I could do with one of these so I may come back to it next week...

Monday, 20 January 2014

Day 1 - The Estimator

The first winner was @nicmods who needed something she could easily use on her mobile device to estimate how much silicone she needed for a mould..

So here's todays project: www.meds-place.com/theestimator

It's supposed to be viewed from a mobile device.

I started at about 0925 and finished at about 1130.

I will put a long round up of the weeks shenanigans at the end of the week. For now go and see on your mobile.
the initial page as viewed from my phone

the results page