Monday, April 23rd, 2012
The interesting part about Google and Facebook is that these super giants didn’t even exist a couple of decades ago. Google was created by two guys from their university dorm room, and Facebook started in basically the same way. Just take a look at this screenshot of Facebook from 2005 (7 years ago):
and Google from 1999 (13 years ago):
These sites, employ thousands of people (33,000 employees currently work at Google and 3,000 for Facebook) and get billions of hits from users. For me the amazing thing is that beneath the hood, the code which makes up the core of their functionality is really just a tweaked and improved upon version of what Zuckerberg, Brin and Page came up with in their free time.
Saturday, April 14th, 2012
Something which we believe in, here at PJs.Cat HQ, is giving users accurate, attractive feedback on the Posts that they create. I decided on creating a graph to let people know how often other users were saving their Posts but after trying a lot of different graph-creating software, found that the free stuff doesn’t look good enough, and I am committed to using open source software as much as possible when building this site.
I was willing to make an exception for the Google API, which I though made pretty good graphs, however I have not used it in the main site, because the look and feel just didn’t fit in with the rest of the page. I think I might create an Awsome-O-Meter for the catistics page (which I have yet to create and will show things like site traffic, total number of users and Posts per day).
After being unable to find what I wanted, I ended up creating my own bar chart, showing users how much their Posts had been saved in the previous week.
It made sense to display it when you are looking at Posts you have saved, and makes the process of using our micro blog a little more interactive.
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!