Check this little video out.
Yesterday, while I was reading the user comments on this lifehacker post I came across this amazing piece of software called Electric Sheep.
Electric Sheep is an open source distributed screen saver, the odd name is based on the novel “Do Androids Dream of Electric Sheep?” by Philip K. Dick, and it’s goal is to create and render animations of flaming fractals full with eye-catching colors and effects that are called “sheeps”.
A few days ago I was working on a project where it was crucial that all the item prices ended up with a 9 after a discount coupon was redeemed, in need for an quick way to round any given number to the closest nine I did a couple of searches on Google and on the PHP Manual and I found the following formula:
round($number / $nearest) * $nearest;
Seemed pretty much straightforward the only problem is… It didn’t worked as I wanted it to! Imagine that $number is 212 and $nearest is 9 for example, the expected result for this scenario should be 209, since 212 is closer to 209 than to 219. However simple arithmetic tell us that:
round(212 / 9) * 9 = 24 * 9 = 216
Continue reading ‘Round to the Nearest - Digit or Multiple?’
Today I’m going to share a minimalistic MySQL wrapper you can use to kick start you application database development. This class is made by just seven essential methods that fit in only 101 lines of code.
As you may have noticed I’ve been away (more of awaaaay) from this blog for quite some time now, the reasons for this are:
- Time is short (and money too, who would have thought he?…).
- I’ve been getting so many SPAM comments and few or none friendly comments.
Anyway, I’ve been custom web developing for 4 or 5 clients and I’ve this feeling that I’m getting old (I’m twenty now - not a teen anymore =\) and all my ideas and projects are losing towards my clients projects, so I’ve decided that after this I’m out - no more freelance jobs, just my own, at my own way. Things with my web hosting company have also been turning out just great, we have reached the Top 10 (yeah that’s right
) here in Portugal, and we have been receiving some selling offers - of course we haven’t accepted any of them.
Yesterday I got my hands on my very first Lincoln (five dollars) bill, they seem much more older and used than Euro banknotes. As I had already made a Euro note serial number validation algorithm in PHP I thought: “why don’t I do the same for dollar bills?”.
Today my very first Amazon order just arrived: Intelligent Data Analysis - a Data Mining book that I saw at Kurt Thearling personal website. I’m really into learning Data Mining and Knowledge Discovery in Databases, I find it quite an interesting (and useful) subject.
Check out this nice CSS technique that uses the power of regular expressions.
![]()
Ok it’s been a long time since I last posted something here so this time I’ll be talking about something that if done right can save you a lot of time and hopefully improve your online business by 200%.
Continue reading ‘Managing your online business with Google’
Well you may already know the Murphy Law “If anything can go wrong, it will”, well believe me: it’s true.


Recent Comments