Posts of Topic "Programming"
December 17th, 2009; 12:07pm

AdF.ly

I’m going to try this new URL shortening service that is like TinyURL or bit.ly. Let me know your thoughts!

Try it out here.

October 27th, 2009; 12:46am

Android 1.5 Bug

My brother, Shezz, wants to buy a smartphone and he’s warming up to my HTC G1 (or “Dream“). Today he was playing with my phone to get a feel of it but he entered the security pattern incorrectly too many times within too short of a time. This cause the phone to go into secure lock down.

That is awesome that the phone is so secure because there is a lot of personal information and data on the phone. Unfortunately there is a bug in the software that I installed on it where it wouldn’t recognize my username or password!

After hyperventilating for a while, my phone rang and I felt a little better. But my phone was still locked. I tried to hack into the phone’s settings database but I couldn’t access it for some reason.

Some frantic googling later, I thought I would have to resort to formatting the phone (which I want to do, but on my own terms), thus losing all of my updates since the last backup. I finally read something that turned on that light bulb that floats above my head.

I called my phone from a land line and while the call was active, I accessed my settings and disabled the pattern lock. When I did that I got a message saying there was trouble accessing my account. This new prompt asked for my username/password but it looked different than the previous one that was failing.

My G1 is back to normal! Now I should back it up and install the Sense UI… some time later.

October 2nd, 2009; 5:32pm

Simple PHP Mail Function with Attachments

I had to make a contest form at work today where the contestant have to upload before and after pictures of their decks. The client didn’t want to use a database for some reason and wanted all the pictures emailed to him.

As I’m familiar with PHP’s mail() function, I’ve never tried sending attachments. After trying a bunch of suggested headers to use, I found a custom mail class that made my job extremely easy. Here is the link. [zedwood.com]