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...

Simple search – result appears in the same page

This PHP code is a simple search example. It needs the user to enter a name and the PHP script will to the searching by the name provided by the user in the text box. <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...

Bootstrap Template for PHP database system - MyCompanyHR

HTML without framework is dull. Doing hard-coded CSS and JS are quite difficult with no promising result on cross platform compatibility. So I decided to explore BootStrap as they said it is the most popular web framework. What is BootStrap? - Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites. (  http://www.w3schools.com/bootstrap/   ) Available here -  http://getbootstrap.com/ Why you need Flat-UI? Seems like a beautiful theme to make my site look professional. Anyway you could get variety of BootStrap theme out there, feel free to select here  http://bootstraphero.com/the-big-badass-list-of-twitter-bootstrap-resources/ Flat-UI is from DesignModo -   http://designmodo.com/flat/ Web Programming MyCompanyHR – PHP & MySQL mini project (with Boostrap HTML framework) Template 1: Template for the Lab Exercise. This is a project sample of a staff record management system. It h...

Mobile Apps using HTML interface with jQueryMobile

This is the main tutorial for developing a mobile web app using the HTML  interface with jQueryMobile. The series contains tutorial on how to use HTML and jQueryMobile to construct the app’s interface, PHP+MySQL to run the back-end, AJAX, using phoneGap/Cordova to generate Android APK, and lastly to upload to Google Play Store. These are the link of completed tutorials related to Mobile Web Apps Development Mobile Apps using HTML interface with JQUERYMOBILE (this page) Complete code sample of Mobile Web Apps with FRONT-END and BACK-END Using AJAX to populate data from mobile web interface Generating APK using BUILD.PHONEGAP.com Generating Android Project using CORDOVA Publishing to Google Play Store Mobile Web Apps development TRAINING The sample app published in Google Play Store jQueryMobile is a JavaScript + CSS framework born from jQuery. The best place to learn jQueryMobile is by accessing the official website at http://demos.jquerymobile.com/ As the na...

Developing Login Page with password verification

file 1 - login.php < html > < head > < title > Login Form </ title > </ head > < body > < strong > Login to MYCOMPANYHR system </ strong > < form name = "formlogin" method = "post" action = "verify.php" > < table width = "400" border = "0" > < tr > < td > Employee No </ td > < td >< input name = "EMPNO" type = "text" maxlength = "6" > Eg : 999999 </ td > </ tr > < tr > < td > Password </ td > < td >< input name = "PASSWORD" type = "password" ></ td > </ tr > < tr > < td >& nbsp ;</ td > < td >< input name = "submit" type = "submit" value = "Login" ></ td > </ tr > </ table > </ form > ...