Image


Simple 6 important recepies for Malaysian. Malay food that will make your mother in law love you forever.

Image


Simple and useful apps, just in case you want a quick malay recepies using your android phone as a guide.


Download from Google Store.


Good luck. Thanks

Image


Okay, this is time zones string variable in java. Might be useful for you.

private String[] zone_names = { "(GMT-12:00) Eniwetok, Kwajalein",
"(GMT-11:00) Midway Island, Samoa", "(GMT-10:00) Hawaii",
"(GMT-9:00) Alaska", "(GMT-8:00) Pacific Time (US Canada)",
"(GMT-7:00) Mountain Time (US Canada)",
"(GMT-6:00) Central Time (US Canada), Mexico City",
"(GMT-5:00) Eastern Time (US Canada), Bogota, Lima",
"(GMT-4:00) Atlantic Time (Canada), Caracas, La Paz",
"(GMT-3:30) Newfoundland",
"(GMT-3:00) Brazil, Buenos Aires, Georgetown",
"(GMT-2:00) Mid-Atlantic",
"(GMT-1:00 hour) Azores, Cape Verde Islands",
"(GMT) Western Europe Time, London, Lisbon, Casablanca",
"(GMT+1:00 hour) Brussels, Copenhagen, Madrid, Paris",
"(GMT+2:00) Kaliningrad, South Africa",
"(GMT+3:00) Baghdad, Riyadh, Moscow, St. Petersburg",
"(GMT+3:30) Tehran", "(GMT+4:00) Abu Dhabi, Muscat, Baku, Tbilisi",
"(GMT+4:30) Kabul",
"(GMT+5:00) Ekaterinburg, Islamabad, Karachi, Tashkent",
"(GMT+5:30) Bombay, Calcutta, Madras, New Delhi",
"(GMT+5:45) Kathmandu", "(GMT+6:00) Almaty, Dhaka, Colombo",
"(GMT+7:00) Bangkok, Hanoi, Jakarta",
"(GMT+8:00) Beijing, Perth, Singapore, Hong Kong",
"(GMT+9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk",
"(GMT+9:30) Adelaide, Darwin",
"(GMT+10:00) Eastern Australia, Guam, Vladivostok",
"(GMT+11:00) Magadan, Solomon Islands, New Caledonia",
"(GMT+12:00) Auckland, Wellington, Fiji, Kamchatka" };


 


HTML select Box format.


<select name="DropDownTimezone" id="DropDownTimezone">
<option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11.0">(GMT -11:00) Midway Island, Samoa</option>
<option value="-10.0">(GMT -10:00) Hawaii</option>
<option value="-9.0">(GMT -9:00) Alaska</option>
<option value="-8.0">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
<option value="-7.0">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
<option value="-6.0">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
<option value="-5.0">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
<option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5">(GMT -3:30) Newfoundland</option>
<option value="-3.0">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
<option value="-2.0">(GMT -2:00) Mid-Atlantic</option>
<option value="-1.0">(GMT -1:00 hour) Azores, Cape Verde Islands</option>
<option value="0.0">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
<option value="1.0">(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
<option value="2.0">(GMT +2:00) Kaliningrad, South Africa</option>
<option value="3.0">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
<option value="3.5">(GMT +3:30) Tehran</option>
<option value="4.0">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
<option value="4.5">(GMT +4:30) Kabul</option>
<option value="5.0">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75">(GMT +5:45) Kathmandu</option>
<option value="6.0">(GMT +6:00) Almaty, Dhaka, Colombo</option>
<option value="7.0">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
<option value="8.0">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option>
<option value="9.0">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
<option value="9.5">(GMT +9:30) Adelaide, Darwin</option>
<option value="10.0">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
<option value="11.0">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
<option value="12.0">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>
</select>

Calculate Islamic Calendar using handy android application. Convert from Hijri to Gregorian date.

Image



You can find the application at our android market.Remember Islamic Date and year on your phone.

Image

Image


 


Calculate Islamic Calendar using javascript. Islamic countries are still using, together with the gregorian calendar a strictly lunar calendar; years are numbered starting with the Egira (622 July 16: Mohammed leaves Mecca for Medina). This perpetual calendar works for every date after the Egira.


The Koran states that new month should begin immediately after New Moon, or better at the first sighting of the growing moon. This exact moment is almost impossible to predict; for simplicity islamic perpetual calendar use the following rule, which works rather good: the year has twelve month alternatively of 30 and 29 days; the common year has then 354 days; since the lunar month is 44m longer than 29,5 days a 30th day is added to the last month. This applies on 11 years out of 30 according to the sequence: 2,5,7,10,13,16,18,21,24,26,29. These years have so 355 years.


With such a rule 30 years have exactly 10631 days, while 360 moons make 10631.0125 days; there is still a little mistake (1/80 of a day) but you need 2400 years to have a whole day error.

[code lang="js"]


function gmod(n,m){
return ((n%m)+m)%m;
}


function kuwaiticalendar(adjust){
var today = new Date();
if(adjust) {
adjustmili = 1000*60*60*24*adjust;
todaymili = today.getTime()+adjustmili;
today = new Date(todaymili);
}
day = today.getDate();
month = today.getMonth();
year = today.getFullYear();
m = month+1;
y = year;
if(m<3) {
y -= 1;
m += 12;
}


a = Math.floor(y/100.);
b = 2-a+Math.floor(a/4.);
if(y<1583) b = 0;
if(y==1582) {
if(m>10) b = -10;
if(m==10) {
b = 0;
if(day>4) b = -10;
}
}


jd = Math.floor(365.25*(y+4716))+Math.floor(30.6001*(m+1))+day+b-1524;


b = 0;
if(jd>2299160){
a = Math.floor((jd-1867216.25)/36524.25);
b = 1+a-Math.floor(a/4.);
}
bb = jd+b+1524;
cc = Math.floor((bb-122.1)/365.25);
dd = Math.floor(365.25*cc);
ee = Math.floor((bb-dd)/30.6001);
day =(bb-dd)-Math.floor(30.6001*ee);
month = ee-1;
if(ee>13) {
cc += 1;
month = ee-13;
}
year = cc-4716;


if(adjust) {
wd = gmod(jd+1-adjust,7)+1;
} else {
wd = gmod(jd+1,7)+1;
}


iyear = 10631./30.;
epochastro = 1948084;
epochcivil = 1948085;


shift1 = 8.01/60.;

z = jd-epochastro;
cyc = Math.floor(z/10631.);
z = z-10631*cyc;
j = Math.floor((z-shift1)/iyear);
iy = 30*cyc+j;
z = z-Math.floor(j*iyear+shift1);
im = Math.floor((z+28.5001)/29.5);
if(im==13) im = 12;
id = z-Math.floor(29.5001*im-29);


var myRes = new Array(8);


myRes[0] = day; //calculated day (CE)
myRes[1] = month-1; //calculated month (CE)
myRes[2] = year; //calculated year (CE)
myRes[3] = jd-1; //julian day number
myRes[4] = wd-1; //weekday number
myRes[5] = id; //islamic date
myRes[6] = im-1; //islamic month
myRes[7] = iy; //islamic year


return myRes;
}
function writeIslamicDate(adjustment) {
var wdNames = new Array("Ahad","Ithnin","Thulatha","Arbaa","Khams","Jumuah","Sabt");
var iMonthNames = new Array("Muharram","Safar","Rabi'ul Awwal","Rabi'ul Akhir",
"Jumadal Ula","Jumadal Akhira","Rajab","Sha'ban",
"Ramadan","Shawwal","Dhul Qa'ada","Dhul Hijja");
var iDate = kuwaiticalendar(adjustment);
var outputIslamicDate = wdNames[iDate[4]] + ", "
+ iDate[5] + " " + iMonthNames[iDate[6]] + " " + iDate[7] + " AH";
return outputIslamicDate;
}


[/code]

Image


 


Famouse algorithm
Word and famouse this algorithm calendar as using this rule the leap years are:
2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29.

According to this famouse algorithm to day is: 23 Muharram 1434

Kuwaiti algorithm




The "Kuwaiti algorithm" is used by Microsoft to convert between Gregorian calendar dates and Islamic calendar dates.


Kuwaiti algorithm of the Tabular Islamic calendar as using this rule the leap years are:
2, 5, 7, 10, 13, 15, 18, 21, 24, 26 and 29.


Month in Islam


Image


Important dates in the Islamic (Hijri) year are:



  • 1 Muharram (Islamic New Year)
    10 Muharram (Day of Ashura) For Sunni Muslims, the crossing of the Red Sea by Moses (Musa). For all muslims, the martyrdom of Husayn ibn Ali, the grandson of Muhammad, and his followers.
    12 Rabi al Awal (Mawlid an Nabi for majority of Sunnis)
    17 Rabi al Awal (Mawlid an Nabi for Twelvers and some Sunnis)
    27 Rajab (Isra and Mi'raj for majority of Muslims)
    15 Sha'ban (Mid-Sha'ban, or Night of Forgiveness), and for Twelvers the birthday of Muhammad al-Mahdi (The Twelfth Imam)
    1 Ramadan (First day of fasting)
    27 Ramadan (Nuzul Al-Qur'an) The day Muhammad received the first verses of the Qur'an (17 Ramadan in Indonesia and Malaysia)
    Last third of Ramadan which includes Laylat al-Qadr
    1 Shawwal (Eid ul-Fitr)
    8-13 Dhu al-Hijjah (the Hajj to Mecca)
    9 Dhu al-Hijjah (Day of Arafa)
    10 Dhu al-Hijjah (Eid al-Adha)

Convert Hijri to civil date or civil to Hijri date


Image


This table may be extended since every nineteen years the Muslim month number increases by seven. When it goes above twelve, subtract twelve and add one to the year AH. From AD412 to AD632 inclusive the month number is 1 and the calculation gives the month correct to a month or so. AD622 corresponds to BH1 and AH1. For earlier years, year BH = (623 or 622) - year AD).


Current correlations


Because a hijri or Islamic lunar year is between 10 and 12 days shorter than a civil year, it begins 10–12 days earlier in the civil year following the civil year in which the previous hijri year began. Once every 33 or 34 hijri years, or once every 32 or 33 civil years, the beginning of a hijri year (1 Muharram) coincides with one of the first ten days of January. Subsequent hijri New Years move backward through the civil year back to the beginning of January again, passing through each civil month from December to January.


Image

Image


 


You can use Flash Builder to develop application for Android and IOS. The IDE is similar to Eclipse. You can use the same code to develop for multiple platform.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:ns1="*"
title="This is hello World" viewActivate="onViewActivate(event)"
viewDeactivate="onViewDeactivate(event)">


<fx:Script>
<![CDATA[
import com.hdi.nativeExtensions.NativeAds;
import com.hdi.nativeExtensions.NativeAdsEvent;
import com.lancelotmobile.utils.DPIUtil;

import flash.media.StageWebView;
import flash.net.URLRequest;
import spark.events.ViewNavigatorEvent;

protected var webView:StageWebView = new StageWebView();
protected var openBrowser:Boolean = false;

import spark.events.ViewNavigatorEvent;


protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
{
if (StageWebView.isSupported)
{
currentState = "normal";
webView.stage = stage;
webView.viewPort = new Rectangle(0,75,stage.stageWidth,stage.stageHeight);
webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE,onURLChange);
webView.loadURL("http://google.com");
addEventListener(ViewNavigatorEvent.REMOVING,onRemove);
}
else {
currentState = "unsupported";
lblSupport.text = "StageWebView feature not supported";
}
}

protected function onURLChange(event:LocationChangeEvent):void
{
trace("URL change");
// Uncomment the following line to load in the default browser instead...
//navigateToURL(new URLRequest(event.location));
}

protected function onRemove(event:ViewNavigatorEvent):void
{
this.webView.dispose();
}

protected function onViewActivate(event:ViewNavigatorEvent):void
{
NativeAds.dispatcher.addEventListener(NativeAdsEvent.AD_RECEIVED,onAdReceived);
NativeAds.showAd(0,DPIUtil.appHeight - 75,480,75);
}

protected function onViewDeactivate(event:ViewNavigatorEvent):void
{
//hide ads
NativeAds.hideAd();
}

protected function onAdReceived(event:Event):void
{
//Anything behind the ad will be hidden, update your layout to handle this edge case.
trace("update ui's size and position");
}

protected function button1_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub

}

]]>
</fx:Script>


<s:states>
<s:State name="normal"/>
<s:State name="unsupported"/>
</s:states>
<s:Label id="lblSupport" includeIn="unsupported" width="95%" horizontalCenter="0" verticalCenter="0"/>

<s:VGroup paddingLeft="10" paddingRight="10" paddingTop="20">
<s:Label text="Ad Mob example" />
<s:Label width="100%"
text="This is our first example apps &#xd;using Flash Builder." />




</s:VGroup>

</s:View>

Image


Diabetes is a complex disease. You may have heard different stories about what causes it, how it is diagnosed and how it is managed. If you are affected by diabetes, you want the truth about the disease. Here are some common myths in Android Platform.

Learn how to improve your knowledge about diabetis.


Image


 


Download Android Diabetes quiz in your phone.


Image

Image


We notice that you may be initiating SmartWall with airpush.startAppWall() or another individual call rather than the recommended method of using airpush.startSmartWallAd().

Please note that your earnings may be significantly lowered by doing this. To ensure maximum earnings, please use the airpush.startSmartWallAd() call which takes advantage of SmartWall's dynamic optimization between the various subformats of SmartWall, which include: AppWall, Dialog Ads, LP Ads, and soon Rich Media & Video Ads. Please refer to the SmartWall documentation for more info.



Our first attempt to integrated Airpush sdk failed. We will try again later.

Image


Why? I don't have to install any plugin when using Google Doc but need Silverlight to run Office Doc. I refuse to install any plug-ins. Technically silverlight perform better than flash. But i don't see any usage of silverlight other than visiting microsoft.com website.

Image


I still remeber silverlight hype. Now it's going to dead. HTML5 rules. To bad for a young technologies. Only flash for desktop can survive in the next 5 years. Tired of ever changing technologies. Why can't we just stick with one standard.

Image


Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.

It is also possible that you have a JAR file located somewhere in your project folders (I had copied the Admob JAR file into my src folder) and THEN added it as a Java Path Library. It does not show up under the Package Explorer, so you don't notice it, but it does get counted twice, causing the dreaded Dalvik error 1.

Image

We decided to try airpush for our next application. We see plenty of airpush review. Some goods and some are bad. We want to see if it's really works. We will give a review how it's really works for our company.



We install airpush SDK 5.0. we got API key.

Image

We also got Package name:

Get Install Code
The AirPush Android SDK includes:
NOTE: Your AppID is required to integrate the SDK with your application. You can retrieve the AppID from the Application Dashboard or Edit Application section.
README: Get started with AirPush Android ads!
AirPush Jar file: Required for publishing ads. Follow the documentation in javadoc/index.html and drop the AirPush Jar file into your project.
Sample Projects: Examples of AirPush Android ads shown in the Airtest application.

Image

We read the readme.txt files.

Welcome to the Airpush SDK for Android !

Included in this distribution is everything you need to integrate Airpush Push Notification ads into your Android applications. Get started by reading the Airpush SDK installation instruction guide at http://beta.airpush.com/r/sdk_download.php?download=2.

An app code project "AirTest 5.0" is included to demonstrate ad integration. We highly encourage our publishers to use "test mode" of sdk post installation to verify that ads are received correctly before the app is published on Android Market.In case, if you face any issues integrating SDK with your app please feel free to drop an email to publishersupport@airpush.com and our support team will get them resolved asap.

Image

We received this AirTest folder. The documentation is quite good.

The Airpush Android SDK is a java-based library that allows publishers to monetize
their app(s) with unique, innovative ad units. Developers use this SDK to monetize
their entire install base, earn above industry average CPM’s, and provide richer ad
experiences. This document covers installation instructions, available ad units and
their features, optimization, and best practices. It is written for developers with the
assumption they are familiar with Android development.

Image

A Push Notification Ad is an ad sent to the notification tray of
Android devices, rather than inside of an app. This ad unit can
monetize an app’s entire install base- both active and inactive.
CPM’s range from $2-$10. You, the developer, control how
often ads are sent to your users from within your account.

Best Practice: To maximize revenue set the frequency to 2 ads/day with a 0 day
ad delay.

Image

Icon Ads

This innovative ad unit is a shortcut placed on the home screen
of Android devices which links to valuable content such as free
apps and deals. This ad unit can also monetize an app’s entire
install base- both active and inactive. CPM’s range from $5 -
$12.

Best Practice: To maximize revenue set the frequency to the maximum setting of
5 icons per user per month.

Image

SmartWall, our new full-page ad format, dynamically optimizes
between multiple sub-formats including AppWall, OfferWall,
Dialog Ads, Video Ads, Rich Media, and More. Benefits of this
ad unit include $6+ CPM’s and a rich user experience. You
control when this ad unit is triggered within your app session.
Best Practice: To maximize revenue set from SmartWall, set
the ad unit to launch upon app launch, app exit and in natural breaks in the app
session (ie in between game levels).

Installation instruction

Airpush Android SDK contains the code necessary to install Airpush ads in your
application. This PDF will guide you through a simple XML implementation.
Note: You will need to replace all instances of <appid>, <package name> and
<apikey> with your actual application id, package name and api key which is obtain-
able from Airpush portal.
Installation Instructions

Image

Adding the JAR

Copy the Airpush JAR file (AirpushSDK.jar) in your project’s root directory.
For Eclipse projects:
• Right-click on your project from the Package Explorer tab and select “Properties”
• Select “Java Build Path” from the left panel
• Select “Libraries” tab from the main window
• Click on “Add JARs...”
• Select the JAR that’s been copied to the project’s root directory
• Click “OK” to add the SDK to your Android project
• Select “Order and Export” tab from the main window and check the SDK
Step 1 - Adding the JAR

Image

We import the airtest 5.0 and got Unable to resolve target 'android-10' error.

Image

So we change the project target properties to target=android-15. Error gone.

Image

Image

In the emulator mode, we see the privacy policy & Advertising terms.

Image

Hello Wold, without Ads.

Image

So we change the AndroidManifest.xml apikey to airpush.

We have a problem with no ads available.

Interstitial JSON: {"status":150,"message":"Ads not available","count":0,"url":""}

Image

Finally, the dashboard detect our apps.

Image

We rename the Airtest pakage name to the names given. And we saw some statistic in the dashboard. It is a bit confusing compare to admobs.

Finally, we saw some ads in the test application.