Wednesday, April 11th, 2012
A friend asked me yesterday if he would be able to embed videos in his Posts. I’d already decided that I’d make it possible, so today I set about implementing it.
Turns out that embedding a youtube video is pretty easy, and just a little Regex, or URL parsing (thanks to Stack Overflow) was necessary.
Some people, when confronted with a problem, think
“I know, I’ll use regular expressions.” Now they have two problems.
I tried to make Sound Cloud songs embed automatically as well, but the way they process URLs is currently preventing that. Maybe I’ll send ’em an email – their service is pretty good so I assume that they are on the ball.
So now you can just Post a Youtube.com URL (like “http://www.youtube.com/watch?v=QH2-TGUlwu4”) and the video will be posted for you. ᵔᵜᵔ
Pretty neat, eh?
We think it’s Nyantastic!
Sunday, April 1st, 2012
So far I’ve managed to get a prototype parser / interpreter to parse an adapted version of LOLCODE at runtime to deliver a (semi) valid HTML document.
LOLCODE being used as a markup language for the first time
If you want to check it out, the worlds first client side LOLCODE prototype is at http://pjs.cat, and please be sure to check out the source code.
Friday, March 30th, 2012
Something which has been worrying me with the development of pjs.cat was how do we automatically send users email? When a new user signs up, I may want to send an activation email. When a user loses their password and they need to reset it, we’ve got to send out an email.
But every time I tried sending one, it didn’t work.
I decided to put it to the back of my mind, and sort it out later. I had a hunch, and that hunch was that the emails weren’t sending because the local server on my computer wasn’t fully set up.
Well today I uploaded this really really simple PHP script to my new web server:
And I was rewarded with this message:
It worked! Now I know, it just seems so easy.
For me the magical world of email just got reduced to a few simple lines of code.
Wednesday, March 28th, 2012
Willpower is often understated. People rely on their luck far too much, afraid to push themselves out of their comfort zone.
I’m as guilty of this as anyone, but I do believe in making my own luck. I believe in being the master of my own destiny. Sometimes people become rich or successful overnight, but I think that for most of us it takes time and good old fashioned hard work. This blog is very new, just over one week old, but I have the determination to make it big.
I’ll move mountains if I have to. I’ll move rivers and streams. I’m here for the long haul and I believe that anything is possible if you try hard enough, and that effort will be made. This is the PJs.Cat blog, hear me roar!