Quick --> Bad idea?

Wednesday, March 10, 2010
I simulated our circuit to see if how the circuit will react with multiple PSUs. 

We're going put two PSUs in parallel with a diode in between. If you have a good reason why we should not do this, please speak up now. Otherwise, I will let you know if we get the amount of current I need for the project.

Finally repaired my Macbook's LCD

Wednesday, February 24, 2010

Needless to say, I finally did it. I finally got my Macbook's inverter working again. I now have millions* of colours! Also, while I had the machine disassembled, I managed to shove my 1 gigabyte memory sticks into its anorexic memory slots. So now I have 2 gigabytes of memory now. I was actually just about to swap the original 60 gig hard drive for a 80 gig but decided not to waste my 80 since it has a legit Windows 7 key on it and the 20 extra gigs are not enough to warrant an upgrade. I might as well port the hard drive to another laptop (ie: upgrade other netbooks).  


I did encounter a weird problem. The screen flickers on and off whenever I boot into its original setup. So I deleted the original partition and started with a fresh install of Snow Leopard. It needed an upgrade and I had the Snow Leopard disk since Christmas, I just never got around since the machine was in different stages of working. I'm currently waiting for the install to finish so I check if everything is working.

At the moment, I'm hopeful.

Coding Pet Peeve

Tuesday, February 16, 2010
y = (x + 305) / 146097 * 400 + (x + 305) % 146097 / 36524 * 100 + (x + 305) % 146097 % 36524 / 1461 * 4 + (x + 305) % 146097 % 36524 % 1461 / 365;


From Barr Code

The code you see was actually found in a FDA approved medical product. I may not be a good coder or an honour student, but it pisses me off to see people to code like that. I love the usage of those parentheses, because the rest of the equation is easy to read  right? I also wonder like Barr, does it even work?

Like I said to my team leader, I prefer to code simply because someone is going to read my code (or myself) and go WTF with certain portions. Often, its just me who goes back and asks what was I thinking with some of my code. Like a small bug in one of my graphing applications that wouldn't run in real time because of some wacky logic I had when I first wrote it. The sad part, when I re-used that code to be the basis of another graphing application... I deleted the error and implemented something better that works in real time.

Bell (internet), you suck.

Friday, February 12, 2010
There, proof that Bell sucks according to Youtube. I hope Youtube puts up the statistics to compare us to Japan, Korea, and the States. Places where Fiber is king. I bet my friend in Australia can't even see this statistics page knowing that Aussie's have some of the worst Internet ever. 

Watch American TV in Canada

Thursday, February 11, 2010
Its sucks to be only 2 hours from the American border and not be allowed to watch American TV online. One show I'm in to is My Life as Liz because
#1. My girlfriend told me I had to watch it
#2. Its about us geeks.
And I can't watch it online because its region locked to Americans. Knowing Canada, we might get this on MTV Canada sometime in the next year. Luckily, someone figured out a simple hack to allow people outside of the USA to watch their online videos. Doesn't work on Hulu but ABC and NBC works fine. I tried to use proxies but they suck for online videos.

Do yourself a favour and watch it in HD and full screen. Information wants to be free... mostly cause we're cheap.

Failed Macbook Repair

Monday, February 08, 2010
I received a new Macbook inverter today so I immediately replaced the broken one with the new one. At first, I just replaced the inverter itself to check if whether it was the inverter board or the cable. Well, it didn't work after replacing the board, so it must be the cable.

So it was time to take everything apart and get inside the Macbook.

I used iFixit's repair guide to help me out. The problem with their guide is that the one I just linked doesn't explain what to do once you removed the keyboard cover. This guide does tell you what to do but it is excessive in my opinion. They took everything apart which is probably above the level of a novice. I only took the keyboard and the inverter cover off to do this. They took the hard drive, LCD hinges, etc, off.

So once I got the keyboard cover off, I got the happy surprise of a dust covered motherboard! The machine has seen a lot of action over 3 years and this is the first time I took its cover off. I cleaned it with some rubbing alcohol so everything would be nice and clean.

It makes such a difference to have a clean motherboard.

I then discovered that the plug for the inverter cable on my Macbook is different from the one that they shipped me. It was my mistake for not taking note that Apple made a revision to the white (non unibody) Macbook's internals. So now I'm stuck with 2 inverters, 1 good cable but for a newer Macbook, and 1 broken useless cable. I'm guessing I'm going have to sell them back on ebay. Looks like the Macbook will have to become a desktop PC now. At least I can start working on iPhone and OSX development now. That will be interesting.

What a disappointment. I thought that I would actually have a proper working laptop today but was thwarted by fate. I really need one to work on my CAPSTONE project. I'm tired of bumming around for PCs in the labs. It wouldn't be so bad if I didn't have to flash a new firmware on my micro controllers all the time. The school doesn't allow for installation of drivers so that creates a problem for me.

What I do at home is plug the board into my PC and then use my brother's netbook to control my desktop. There is no lag since its on a home network and I can work anywhere in the house on my project. Its very convenient. I could do this at school but I risk having the team lose a micro controller on stock. Although, my personal micro controller board has been the brains of our robot for months. I will probably get it back soon. We're moving onto PCB so everything will be on one board rather than several.

Luckily (somewhat), I did repair my frakentop and built a cooling dock for it. The internal temperature still hits a sky high 80+ degrees Celcius and wants to kill itself all the time. So to alleviate the problem some heat issues, I run it without a keyboard. this means that the motherboard sits out in the open for everyone to see. I down clocked it so it runs much slower than when it was bought. The CD-ROM is taken out and kept in storage to keep things simple. I'm wondering whether I should buy some horizontal fans that I found at the electronic store and put it where the CD-Rom use to be.

I fully expect the machine to die often but I'm now very much prepared to deal with it. Heat is the enemy but also the solution. As long as I'm near a hair/hand dryer, I can get the sucker up and running again.

40$ Skullcandy vs Free Sansa OEMs vs Grado SR60

Saturday, February 06, 2010
If its not already obvious, the Grado's win this head to head competition.

I love my Grado's I can't wear my Grado's out in public because they're not closed ended so ambient noise comes in loud and clear. Impossible to use on a bus. Sometimes I feel bad when I do wear them at a lab because they leak out noise just as well as it lets noise in. They're great in a quiet room but not so great for general use. They're cheap (70$) excellent headphones that I would recommend to anyone who enjoys music. If you're not satisfied with Grado's then you should go see an ear doctor. For urban use, I'd prefer the Sennheisers and a girl around school wears a nice set of Shure's. I hate/envy her when she walks around with them on.






My urban set is some OEM Sansa ear buds that came with my Sansa Express. They're not amazing but they work. Which is pretty much all I need until I can save up for some in ear Shure's or a nice set of cans. I didn't know how much I would miss them until they broke.

They broke 2 months ago and it pretty much killed me. I have a 3+ hour daily trip to school which is needless to say... BORING. So the last month was pretty bad. When I get desperate enough, I would pull them out and try to salvage whats left of them.

The problem with them is interesting. The internal wires are pretty beat up (took the head off for a look) and weirdly, they created a nice band gap filter internally. The frequencies they filter out are roughly around the mid to high  vocal ranges. So when I put on some music with vocals, they would magically disappear. Its pretty impressive since they do a really good job at filtering out vocals. Some songs would get garbled up completely while most are just plain odd. I miss vocals now.

I figured out how to fix the buds by plugging them in slightly and forcing the buds to go into mono mode. Solved the problem. I thought I would have to dissect it and resolder everything but this is a much easier fix. They're built quite sturdy with the wires nicely mounted to the plug. Unfortunately, the wire broke pass the plug.

I won a 300$ gift card at school so I used some of it to get some ear buds at the school's bookstore (wish my bookstore stocked iPods). My dad obviously doesn't like the idea, said I could buy a pair at any store (although, not with free money) and my girlfriend hates Skullcandy's designs. So I got something cheap and black because everything goes well with black. Plus, white is so pretentious because everyone who owns iPods has them. I would love to get white cables and buds but iPods really ruined it for me. I paid 37$ for it and I figured it should be decent enough for the ride to school and back. I was wrong.


The Skullcandy Smoking' buds... they're bad. Really bad. For nearly 40$, I was expecting buds that will be at least equal to OEM Sansa's. Instead they were no better than the 2 set of buds I bought my brothers last month. I got them some cheap noise canceling Panasonics for roughly 8$ each. They were on sale and I was making the trip to buy some electronic headers anyways.

What is wrong with the Skullcandy's?

#1. I can't hear a damn thing. In order to listen to them, I needed to raise the volume to the maximum of my Sansa Express. I never go over 25% for my Grado's or the OEM buds. At that volume, I still can't hear any distinct instruments. That leads to number 2, the quality of the audio.

#2. I put on Tegan and Sara and was immediately appalled by their sonic quality. The guitars were completely destroyed. How would you like it if someone ripped out all the chords except for one. Yea, thats what it sounds like. There was no bass of any sort. I had set my equalizer to maximum bass and zero treble and it barely helped. The highs were muddled with the mids and created the equivalent to listening to ear buds with a lisp.

My Sansa gives Tegan and Sara more respect than the Skullcandy's. It was so bad that my girlfriend even said that it lacking richness. She has a pair of WESC's ( and they're actually pretty good for their price and looks). I can't believe I dropped 40$ on a set of ear buds that I absolutely dread using. As one forum user said, "Whats worst than Skullcandy's? A rock." Although my dad did buy some knock off iPod at the dollar store. Those would definitely rival a rock.


I actually had the Hesh cans in my hands and ready to purchase them but decided not to because I didn't want to get stuck with a bad pair of headphones. I originally figured that getting a decent set of cans would be a better idea than some ear buds. They're usually better sounding. I'm still wondering how they sound in comparison to Grado's and WESC's. I also didn't want to explain why I chose to buy 60$ headphones instead of the cheaper ones to my parents (note, I did get free money but that doesn't stop them). They think I buy expensive gear all the time although I can't barely afford a cheap little tilt sensor my microcontroller. I'd much rather spend the money on some gyros and motors.

The school has a no return policy with electronics so I'm stuck with them forever. So I gave my buds to my brother since hes not as concerned with the issues as much as I am (or maybe he is but doesn't mind since I just bought them 3 pairs of ear buds in under a month). I'm going to stick with my Sansa's until graduate and buy a new set of proper cans.

So what did I learn? That the bookstore sells some crappy stuff. People who own Skullcandy's don't really like music. Your first gut reaction is probably the better judgement.