Skip to main content

Thanks to MS Windows Live Writer

The most important tools I’m using to develop content in my blogs is the article editor. The MS Windows Live Writer provides the most user friendly and easy of all the blog composer. And it’s FREE…

More information and download here at http://windows.microsoft.com/en-US/windows-live/essentials-other-programs

windows-essential-live-writer-download

And the my favourite (coder blog) plug-ins is the Code Snippets (http://plugins.live.com/writer/detail/code-snippet-plugin-for-windows-live-writer). Below is Code Snippets in action. With lots of color coding schemes for programming languages.

windows-essential-live-writer-code-snippets

   1: //code sample
   2: package com.kerul.kamusmm;
   3:  
   4: import android.app.TabActivity;
   5: import android.content.Intent;
   6: import android.database.Cursor;
   7: import android.database.sqlite.SQLiteDatabase;
   8: import android.graphics.Typeface;
   9: import android.graphics.drawable.Drawable;
  10: import android.os.Bundle;
  11: import android.widget.TabHost;
  12: import android.widget.TabHost.TabSpec;
  13: import android.widget.Toast;
  14:  
  15: @SuppressWarnings("deprecation")
  16: public class kamusmm extends TabActivity {
  17:     protected TabHost tabHost;
  18:     protected MyDBHelper myDBHelper;
  19:     protected Cursor cursor;
  20:     protected SQLiteDatabase db;
  21:     @Override
  22:     public void onCreate(Bundle savedInstanceState) {
  23:         super.onCreate(savedInstanceState);        
  24:         
  25:         //set tab for dictionaries
  26:         tabHost = getTabHost();
  27:         //setTypeface(Typeface.createFromAsset(getAssets(),"dejavusans.ttf"));
  28:         String internetneeded="This app requires Internet connection to download image and pronunciation.";
  29:         Toast.makeText(this.getApplicationContext(), internetneeded, Toast.LENGTH_LONG).show();
  30:         newTabIntent("Melayu", null, m2a.class);
  31:         //newTabIntent(ArabicUtilities.reshape("\u1575\u1604\u1593\u1585\u1576\u1610\u1577"), null, a2m.class);//العربية
  32:         newTabIntent("Arab", null, a2m.class);
  33:         newTabIntent("English", null, e2ma.class);
  34:         tabHost.setCurrentTab(0); 
  35:         
  36:     }
  37:  
  38:     protected void newTabIntent(String label, Drawable icon, Class<?> pageClass) {
  39:         TabSpec tabSpec = tabHost.newTabSpec(label);
  40:         tabSpec.setIndicator(label, icon);
  41:         //tabSpec.set
  42:         tabSpec.setContent(new Intent(this, pageClass));
  43:         tabHost.addTab(tabSpec);
  44:     }
  45: }

Comments

Popular posts from this blog

Several English proverbs and the Malay pair

Or you could download here for the Malay proverbs app – https://play.google.com/store/apps/details?id=net.kerul.peribahasa English proverbs and the Malay pair Corpus Reference: Amir Muslim, 2009. Peribahasa dan ungkapan Inggeris-Melayu. DBP, Kuala Lumpur http://books.google.com.my/books/about/Peribahasa_dan_ungkapan_Inggeris_Melayu.html?id=bgwwQwAACAAJ CTRL+F to search Proverbs in English Definition in English Similar Malay Proverbs Definition in Malay 1 Where there is a country, there are people. A country must have people. Ada air adalah ikan. Ada negeri adalah rakyatnya. 2 Dry bread at home is better than roast meat home's the best hujan emas di negeri orang,hujan batu di negeri sendiri Betapa baik pun tempat orang, baik lagi tempat sendiri. 3 There's no accounting for tastes We can't assume that every people have a same feel Kepala sama hitam hati lain-lain. Dalam kehidupan ini, setiap insan berbeza cara, kesukaan, perangai, tabia...

searchdelete.php (list records of table to delete)

< form name = 'search' method = 'get' action = '' > Insert the firstname < input type = 'text' name = 'txtname' > < input type = 'submit' value = 'search name' > </ form > < ?php //database connect $db = mysqli_connect ( "localhost" , "root" , "" , "mycompanyhr" ); //checking database connection if ( $db == false ) { echo "Connect failed: " . mysqli_connect_error ( $db ); exit (); } else { echo "Connection successful" ; } $n = $_GET [ 'txtname' ]; $sql = "select EMPNO, FIRSTNAME, LASTNAME, WORKDEPT, PHONENO from employee where FIRSTNAME like '%$n%' " ; $rs = mysqli_query ( $db , $sql ); if ( $rs == false ){ echo ( "Query cannot be executed!<br>" ); echo ( "SQL Error : " . mysqli_error ( $db )); } else { echo "<table border=1>...

Submit your blog address here

Create your own blog and send the address by submitting the comment of this article. Make sure to provide your full name, matrix and URL address of your blog. Refer to the picture below. Manual on developing a blog using blogger.com and AdSense, download here … Download Windows Live Writer (a superb offline blog post editor)

ViewFlipper Example–a simple FlashCard

UPDATE: Improved with Fling gesture (Sept 2012) UPDATE: ViewFlipper with Flip-In and Flip-Out Animation (August 2012) This tutorial is to demonstrate the ViewFlipper layout that is almost similar to CardLayout (in Java). The app will produce a simple Flash card that provide several screens with different picture for each card. Flip-in and Flip-out animation provided. Added in Sept 2012 – an improvement to support Fling gesture – enjoy… The amendment is only on the coding part. Some how the layout design (main.xml) is quite long. Later I’ll produce separated screen by including several XML layout from outside files. Screenshots;

Pemasangan Joomla! 1.7 pada pelayan web komputer anda

Latihan ini akan memasang sistem pengurusan kandungan laman web ke dalam pelayan web yang anda telah pasang sebelum ini . LANGKAH 1: Aktifkan Pelayan Web dan Pangkalan Data Aktifkan XAMPP Control Panel, melalui “ Start->All Programs->ApacheFriends->XAMPP Control Panel ”. Rajah 2.1 Pastikan pelayan web Apache dan pelayan pangkalan data MySQL diaktifkan dengan klik butang START. -> Rajah 2.2