Since I’m teaching “Introduction to programming” with Scratch, I’m going to make a new page called Lectures, and put the exercise we do in class there. I might upload some algorithm schemes with the exercises if I find the free time.
Since I’m teaching “Introduction to programming” with Scratch, I’m going to make a new page called Lectures, and put the exercise we do in class there. I might upload some algorithm schemes with the exercises if I find the free time.
Once you flash a ROM.. you can’t stop until you find a good one.. and of course root your phone and turn the security lock off. Specially if you are an open source person. Nothing helps you better than a console and a su command! So here’s the adventure of unlocking my HTC Desire (the same can be done on any of the listed phones):
Just for the info, the first is the official name, in the brackets is the codename and the numbers after are the versions of HBOOT supported, which you can see by booting the phone in HTC fastboot mode. On HTC Desire it is done by holding the Volume down key while powering the phone.
Busy, busy… last 2 months. No time for writing. Schedule loosened. Figured HTC Desire has Android 2.2.. Decided to upgrade to 2.3. Sadly there is no automated upgrade process. Givin’ it a shot.
Since I want to implement QR codes into the URL shortener, I wrote a function in PHP that generates the link usin’ Google API.
/** * Class for QR Codes * */ class QR { /** * Function returns URL to Google API QR Generated image * * @param url - The URL to be turned to QR Code * @param size - Size of the QR image * @param errorCorrection - Amount of reduntant information the QR code has (L - default, M, Q, H) * @return Google API QR Generated image (to be used directly in img tag) */ public static function getQRforURL($url, $size, $errorCorrection = "L") { $link = "https://chart.googleapis.com/chart?" . "cht=qr" . "&" . "chs=$size" . "x$size" . "&" . "chl=" . urlencode($url) . "&" . "choe=UTF-8" . "&" . "chld=$errorCorrection"; return $link; } }