Archive | February, 2012

Nobel Peace Prize

Dear Bob:

I’ve seen your video on YouTube, and this is my 2 cents:

Well seeing how it has became a joke since Obama won the peace prize (sure I can live with that), but then again, this year they put Bradley Manning on the nominees list, I just have to say, ARE YOU f##kING KIDDING ME? What is this? did the committee got taken over by 4chan? I f##king hope so. Who the f##k are they kidding? Bradley Manning has the chance of winning the Nobel Peace Prize? You’ve gotta be sitting me, this is the person, that would be beaten to pulps if any US military personnel got their hands on this low life piece of s##t. I know I would f##king have.

Seriously, you guys should nominate me next, because I can leak classified information as well, hell give me a gun and I can kill innocent people as well. Because it seems that’s what you guys are going for. HEY DO SOMETHING YOUR GOVERNMENT REALLY DISLIKES, AND WE WILL CHUCK YOU A NOBEL PEACE PRIZE!!! should be their f##king new slogan.

Oh coolstorybro! you have a Nobel Peach Prize, well I took a diarrhea last night and emptied my bowel. I win.

Jesus Christ Alfred Nobel would cry.

That’s all.

Also, Bradley Manning, I hope you get convicted, put in jail for the rest of your s##t f##k meaningless life, and get your f##king brain juice pounded out by your fellow inmates for leaking those classified documents.

Twitter API and user’s email

Thanks to Twitter, sites that uses multiple providers for single click sign on are forced to use additional mechanisms to ensure the /uniqueness/ of their user accounts since Twitter does not return the user’s email address.

I thought the whole point of one click sign in is for user to get into a particular website just by one click. If I trust the site, I would have no problem with using my Facebook/Twitter/Google account to use the single click sign on feature, as well I would have no problem with the identity providers giving the third party my basic information. However, if your site requires the user’s email, then I suggest that you stay away from Twitter. Look at what this Twitter employee has to say about not returning an email address.

I was doing the authentication stack for the site that I am working on, however, Twitter does not return an email, where as Facebook and Google OAuth v2 does. Insert rage here. I’m not sure what Twitter was thinking… Now I am forced to track users with the tuple (provider, uid). Thanks Twitter for causing extra columns in the database.

PS: Twitter, we apologize in advance if you get “Password Resets” since you don’t give us the user’s emails, we are generating one for them with: :email => access_token.uid+”@twitter.com”

Why I am looking forward to go to Montreal

For the last stretch of my school term, I have decided to go to Montreal for 8 months, to work, and at the same time, to finish school. I don’t know why, but I am actually looking forward to go to Montreal.

I would rather drink ______ than this

Ingredients:

  • 2 Spoons of creatine
  • 1 scoop of Isoflex whey protein (make it peanut butter flavoured)
  • 1 scoop of Vegegreens
  • Oh and throw in a capsule of fish oil.
  • Water

But then again, this disgusting concoction is consisted of over 60+ vegetables, quick release/acting protein, enough supplements to make my mum stop nagging at me. (Actually she still will nag at me for drinking all this stuff, god bless her.) But it is sure as hell worth it.

Spam honeypot and Spam: 0

Yes, that say spam: 0. My blog has no spams after I installed a honeypot spam trapper.

I read a method for catching spam last week, I have deployed it on my blog, and I must say the result is astonishing!

The idea is simple. We add a new textarea (or input type=”text”) field, and we are going to use CSS to make it invisible by setting: visibility: hidden. To the user, they won’t know that there is an invisible field, when they are filling in a legit comment the honeypot will be empty, however to a bot, since they are not smart enough to figure out that the textarea is a honeypot, therefore will add content to that invisible form field.

So on the server side, we will check the content of the honeypot, if it is empty, then we know that it is either human, or the spam bot is avoiding it, however if the honeypot is not empty, then we know it is a bot. This method is effective for the majority of the users on the Internet, unless if someone is using text based browser, or has CSS disabled. This can be solved by placing a passage of text with the similar effect of “Keep the textarea empty”.

Also, another method to ensure that we are always 1 step ahead of the honeypot, we can make the honeypot’s name and id a rolling field, as well as the legitimate fields.

UPDATE

Spam: 1,

“This is the accurate Simplefolio and WordPress 3.1 (3.2.1) fix | Bill’s Portfolio diary for anyone who wants to assay out out roughly this message. You observance so some its virtually wearing to contend with you (not that I real would want…HaHa). You definitely put a new twist on a topic thats been printed most for years. Nice hokum, just enthusiastic!”

Not sure if spam bot is smart or just got lucky, time to do rolling names on form fields.

Ruby on rails

As a seasoned web application developer, I have to say ruby on rails is some serious /magical voodoo automagical s##t/, compared to the more traditional Java/.Net/PHP, which are fortunately are all C styled syntax languages. I am still exploring ruby, and trying to figure out what everything does what.

Ruby on rails is one serious framework, it make developing a breeze, we were able to develop the first production ready release of our application in less than three weeks.

Project Amadeus day 2

6:33am, checked in project Amadeus.

Ruby is frustrating, but is automagical.

I see your little threat email, I reserve the right to write a proper response when I get time, you little f##king bitch. Watch out, watch out.

Why Beats by Dr. Dre sucks

Beats by Dre seems to be the latest hype with headphones. But I think it sucks, why?

  1. It needs batteries. It does not work without batteries
  2. It breaks easily, the body feels like flimsy plastic
  3. They are really expensive for what they are worth
  4. Those who are using Beats by Dr. Dre are using their iPods, and the sound quality sucks!

Personally, for my bass needs I have a pair of Sony MDR-XB700, I can feel my ear drums vibrate by the bass generated by these. Also, on the side I have a pair of Sennheiser HD 280 PROs for my flat responses, and passive noise cancelling needs.

Both of covers my needs for bass and studio quality sounds, each was cheaper than the Beats. Both does not require batteries. And my HD280s has gone to hell and back. I am looking forward to the HD380s soon! And when I get my own place post University, I am picking a pair of HD800 and the PS1000s, with separate DAC, and AMP, running on redundant pure sine wave filtered PSU.

Just a few observations that I have had from the past 4 years

I am currently in my 4th year at university majoring in Computer Science, as of writing this post I am taking my last 2 computer science courses that I need in order to graduate.

I started school, I went through the first year classes, I did coop, I found jobs, I did assignments, midterms, and finals, I didn’t sleep for days so I can finish my assigned work. So as an undergrad, I have “been there and back.” Now I am going to admit that I don’t like school, I will probably never like it, I don’t have a good study habit, nor do I really care about some of the subjects that I am learning. The only two reasons that I am in it is because of my parents, and personal satisfaction. (Well actually a Masters would be my personal satisfaction, but that will be another time.) Why do I not care? because there are no space on my resume left for education, so on my resume, I am listed as “college drop out”. Regardless, I still get my fair share of job offers and interviews based on my previous experience.

Recently I was involved with the freshmen of 2015/2016  at the University of Waterloo. I had my first hand observing a group of new incoming students. I have to say that you will not be able to have an enjoyable 4 years of school:

  1. If you can’t handle 5 courses or if going to university is too stressful, and you need time off
  2. If you can’t get the faculty policy minimum average in your first year. (This is where you should be getting high 80% to high 90% to boost your 4th year average)
  3. If you can’t study, don’t know how to study, or just don’t study
  4. If you are doing a major because your parents/friends/peer pressure/for the money
  5. If you can’t do examinations. University is course is usually a midterm, a final, and a couple of assignments (<=20%). So a heavy emphasis on the exams
  6. If you don’t have good time management skills

Now to computer science majors:

  1. If you are not interested with code
  2. If you can’t translate the theory to actual code
  3. If you can’t transfer code from one place into another by reading it, understand it, and learning it