T-Mobile Angry Birds Advertisement
Here’s a creative advertisement from T-Mobile, featuring Angry Birds!
GooApple – China-made iPhone 4 Clone (which runs Android!)
Just after the discovery of several fake Apple Store a few weeks ago, now come an Apple iPhone 4 lookalike product which uses Android. The outer feature bear strong similarity to the real iPhone 4 phone. Plus, its user-interface has been customized (keypad, contact list, application icon) to look exactly like iPhone 4.
Additionally, the device is available for pre-order from its website (priced around 1700 Yuan or USD 270), there’s no information available about its official launch date though.
p/s: The device copies the iPhone user-interface and icons which is clearly Apple’s intellectual property. Apple has previously taken steps in protecting its intellectual property before (as evidenced by Samsung Galaxy Tab sales block in Europe and the fake Apple Store), I doubt Apple would sit ideally should the device is marketed.
How to use W3C Geolocation API in Mobile (Basic)
Previously Geocoding from mobile web (or ‘ordinary’ web application) is achieved through Google Gears (as pre-installed in Android 1.5+). However the W3C Geolocation API Specification has render Google Gears obsolete as newer browsers has these functionality built-in (including mobile browser).
How to include Geolocation API in a Web Page?
The most basic code that you started is listed below, the code below tests if the browser have built-in support for geolocation. If it does have geolocation support, it will call either one of the callback “successCallback” or “errorCallback”.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(successCallback, errorCallback);
} else {
error('Sorry, your browser does not support geolocation');
}
“successCallback” is call whenever the API call is successful. You need to create a function for “successCallback”, as shown in the example below:
function successCallback(pos) {
var lat, long;
lat = pos.coords.latitude ;
long = pos.coords.longitude;
var element = '<p><a href="http://maps.google.com/maps?q='+lat+','+long+'&hl=en">Latitude: ' +lat+ ' Long: ' + long + '</a></p>';
alert(lat +','+long);
$('body').prepend(element);
The function will return the latitude and longitude data and stores it in ‘lat’ and ‘long’ variable, which is then displayed to the screen.
Get the latest iftar (breaking fast) time with TimeToBuka.com
TimeToBuka.com is a mobile web application that lets you check the latest iftar time (breaking fast time – for Muslim during Ramadan month). The application detects the current user location (using Google Geocoding API) and displays the time for Iftar and Imsak for the current location.
However, the application currently only supports Malaysian and Singapore users only. But you can help the author ( Nazrul Kamaruddin ) to add support for more countries by providing him with the appropriate data.
The application is tested and confirmed to work in Android 1.6+, 2.x and iPhone
Angry Birds Stop Motion Animation!
I know there are many Angry Birds video out there, but this one takes the cake.
The stop-motion animation was made by Gregory Cortez. Visit Wikipedia for more information about stop-motion animation
Tags: Games
Old Joke: iPhone 4 vs HTC Evo
I know this is stale, but I update it nevertheless, After almost 2 years, I’m going to write again!
Another Attack hits Mobilepit.com
Well seems Mobilepit.com has been subjected to yet another attack from spammers and has been unavailable for a duration of almost two weeks. This time the attackers injected the spam on each header of the WordPress themes, and the payload was obfuscated using the base64 encoding.
How does the attacker managed to inject those code still baffles me, as I’ve already taken measures to remove write permission on every php files (and even directory!) on my account. Those with wordpress out there, better becareful as spams can crept into your blog without you realizing. So stay vigilant!
Mobilepit has recovered from badware attacks!
Those who has been visiting this website for the last few days might notice that MobilePit has been subjected to injection attack. Causing it to distribute Badware unintentionally. This has triggered the Google Badware warning whenever somebody visited MobilePit website.
Rest assured, the injection attack has been fixed and this has been verified by the StopBadware.org to be free from malicious code. Additionally, the website has been secured to prevent similar future events from recurring.
Needless to say that, you should take care of your website security to prevent it from being compromised by spammers/crackers.
ClearContacts – Remove all contact list from your Windows Mobile Phone
I’m sure at some point you may have come across this problem where you need to rid every contact information that are stored inside your Windows Mobile (Pocket PC) device. The problem is, Windows Mobile address book/contact list does not allow you to delete multiple contact at the same time. That would leave you with only one choice, to delete the contact detail one by one, which is a hardly productive work for your time.

Fortunately, there’s ClearContacts, a small application that loop through your contact list and deletes contact information at the same time. This would eliminate the hassle that you’ve to go through when clearing your Pocket PC device from unwanted contact. Just copy/sync the ClearContacts into your device, and execute it. A dialog will appear to confirm your action, before all your contact list will be cleared.
ClearContacts requires Windows Mobile devices with at least Microsoft .Net Compact Framework 1.1 installed (don’t worry, most modern devices already have this.
a simple Click-A-Tell SendSMS HTTP POST API library
Click-a-tell is a simple web service that allows you to integrate sms sending capability into your web application. Its simplicity and wide range of API available is very attractive to small to medium web application developers. Among the API supported by Clickatell are :
- HTTP POST
- HTTP GET
- FTP API
- SOAP
- EMAIL-to-SMS
- COM Object
Clickatell website offers examples of how to use their API in several programming language including but not limited to : VB.net, PHP, ASP, ASP.NET,PERL, Python, Coldfusion, etc.
However I found that the example written for PHP is a little bit outdated and it uses the file() function to initiate HTTP GET request which is generally restricted on webservers as it pose a huge security risk. The other Clickatell class found through PHPClasses website are either too cumbersome for my project or supported other protocol than I intended to use.
As a result I wrote my own Clickatell SMS (clickatell_sendsms_0.5.zip) class specifically for my own use.
Here are a sample code using the SendSMS 0.5 class
<?php
require('SendSMS.php');
$sendsms = new SendSMS("username","password","HTTP POST API key");
/* if the login return 0, means that login failed, you cant send sms after this */
if ( ($sendsms->login()) == 0 ) {
die( "failed");
}
/*other wise, you can send sms using the simple send() call*/
$sendsms->send("0132073011","testing send sms - camna? boleh dpt ? - mr hafiz");
?>
You can download the clickatell_sendsms_0.5.zip”>SendSMS 0.5 PHP class from this website, note that the class is licensed under the terms of the GNU General Public License version 2, and the class is only meant to be use with Click-A-Tell HTTP POST API.
The class can also be use with the libcurlemu library whenever applicable.
