Page 2 of 4 « 1  2  3  4 »

Archive for the 'Tech Talk' Category

Exporting and Importing WordPress Posts is Easy, with WordPress 2.7

I’ve just tried a full cycle of WordPress 2.7 exporting and importing features, and I must say, it’s COOL! As easy as snapping your fingers (snapping fingers is not something everyone can do though :p).

Exporting Posts, Comments, Categories and Etc

In WordPress 2.7, there’s an Export utility under the Tools menu in admin panel. This tool allows us to export posts, pages, comments, custom fields, categories and tags into a format (XML file) called eXtended RSS or WXR.

By selecting an author (or all authors), you’re ready to effortlessly export the above mentioned contents in your WordPress blog.

Even if you’re not migrating your blog, this utility is a very good and convenient backup tool too.

I’ve got an XML file of 1.08MB. Continue reading ‘Exporting and Importing WordPress Posts is Easy, with WordPress 2.7′

MySQL Varchar Can Now Contain More Than 255 Characters

Found an interesting new feature for MySQL when I was randomly reading the MySQL 5.0.x change logs.

Beginning from MySQL 5.0.3:

VARCHAR columns now remember end space. A VARCHAR() column can now contain up to 65535 bytes.

Prior to MySQL 5.0.3, varchar can only contain up to maximum of 255 characters. However, from MySQL5.0.3 and onwards, we can now declare varchar with more than 255 characters.

Don’t Exceed The 65,535 bytes Maximum Row Size

However, do note that, the maximum row size for MySQL is 65,535 bytes, shared among all columns within a row. Which also means, if you have more than 1 column in a table, declaring a column with varchar(65,535) is not feasible. Besides, UTF8 characters can also require up to 3 bytes per character.

Trailing Space Will Be Retained

Prior to MySQL 5.0.3, any trailing space of a string will be removed when it’s stored as varchar. But beginning from MySQL 5.0.3 and later, varchar is handled with better conformance to standard - trailing space will be retained.

Find Out Which Program is Using Internet Connection

At today’s age with Internet connection availability becoming a common lifestyle companion, it’s practically impossible for your computer not having any program unknowingly accessing Internet in the background, as long as your PC is connected to Internet.

Even if you’re not running any web browser, IM client (such as MSN, Yahoo! Messenger) and email checker, chances are there will still be some programs running background scheduled jobs to check for software updates.

So, how do you know which exact program is actually communicating to the Internet?

NetLimiter 2 - Monitor

I’m using NetLimiter 2. It’s available for Windows. The free version of NetLimiter 2 is featuring a simple monitoring tool, which is showing a listing of all programs currently requiring incoming or outgoing network connection.

NetLimiter 2 - Stats for a Program

Besides, you can also generate network traffic statistics of a program, for a particular date.

Download NetLimiter 2

MySQL Table Names could be Case Sensitive in Unix

Something notable about MySQL case sensitivity that my project team has encountered last weekend. On Windows and Mac OS X, all object identifiers (such as names of database, table, column, index and etc) are case insensitive.

So, even if someone doesn’t practice consistency of identifier naming on Windows and Mac OS X, you will not encounter table 'tbl_name' doesn't exist error, as long as spelling is correct.

However, if you have a MySQL table named as PRODUCT_ITEMS, you will encounter table 'product_items' doesn't exist error on most varieties of Unix and Linux, when the following select statement is executed.

select * from product_items;

Such a simple select statement isn’t it? But will fail in Unix and Linux as database names, table names and table aliases are case sensitive by default.

Solution 1: Ensure Identifier Naming Consistency

The most elegant solution, is of course to ensure identifier naming consistency in database and codes. But if you’re working on a mammoth project, this is not the quickest solution though.

Solution 2: Alter lower_case_table_names System Variable

The quickest solution in this case, is to alter the database default behavior, such that table names are always treated as case insensitive.

By default, lower_case_table_names is set to ‘0′ in Unix. So, you can do the following to alter the lower_case_table_names variable.

  1. Ensure that the database name and all existing table names are lowercase.
  2. Open to edit /etc/my.cnf file
  3. Add “lower_case__table_names=1” (without quote) into /etc/my.cnf
  4. Restart MySQL

After restart, the lower_case_table_names variable of your MySQL database should appear as ‘1‘. So, regardless of the case of identifier naming in your codes, all should work like case sensitivity is never an issue at all.

Refer to http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html for further information.

Update WordPress and Blogger Blog through Firefox - ScribeFire Blog Editor

KC posted in his Twitter: bloggers should check out scribefire - http://www.scribefire.com/

Immediately, this tweet caught my attention. So, visited ScribeFire site, and again, I was attracted by this quote from Michael Arrington of TechCrunch.com:

…a lot of bloggers swear by it.

Wow! I think this couldn’t be wrong. So, installed the ScribeFire Blog Editor, and I was immediately amazed! It’s just too good!

In summary, ScribeFire Blog Editor is a Firefox extension which allows bloggers to publish and manage their blog posts. At present, the supported blog engines are: Blogger, Movable Type, Drupal, Textpattern, Roller, MetaWeblog API, Blogger and Tumblr. Wow~~ this coverage is easily satisfying 80% bloggers in the world.

Adding a New Blog Account in ScribeFire

1. Specify your blog URL
Create New Blog Account in ScribeFire - Step 1 - Blog URL

2. The supported blog engine will be automatically detected
Create New Blog Account in ScribeFire - Step 2 - Select Blog System

3. Specify login details
Create New Blog Account in ScribeFire - Step 3 - Login Details

4. Login successfully tested
Create New Blog Account in ScribeFire - Step 4 - Successful Login

5. Blog account successfully added into ScribeFire
Create New Blog Account in ScribeFire - Step 5 - Account Added

Isn’t it easy? Once you’re done with the above steps, just wait for a minute for all your blog entries, pages and categories to be imported from your blog system, so that you can manage them locally in your PC. Thus, it doesn’t require active Internet connection to compose your blog post. Once you’re connected, simply pressed the “Publish” button and you’re done. Continue reading ‘Update WordPress and Blogger Blog through Firefox - ScribeFire Blog Editor’

New Maybank2u.com 2.0 Online Banking Site

The current Maybank2u.com site which has made its presence since year 2001 will soon be replaced with a new facelift version – dubbed Maybank2u.com 2.0

Is the 2.0 suffix signifying a Web 2.0 goodie or simply means version 2 of the application release? Well, guess I’m not the right person to answer this question. Let’s walkthrough the changes spotted in the current beta release accessible at https://www.maybank2u.com.my/mbb/m2u/public/personalBanking.do

Public Site Facelift

The most significant change that a site needs, in order to present a new impression to users in quickest manner, is by revamping the UI design.

Old Maybank2u.com home page

Old Maybank2u.com - Home

New Maybank2u.com 2.0 home page

New Maybank2u.com 2.0 - Home

As claimed, the Maybank2u.com 2.0 is designed for 800px width. However, I’ve tested the new home page with 800×600 px resolution, but the layout in width doesn’t fit nicely without horizontal scroll bar.

Web 2.0 HTML Style

While the old Maybank2u.com site layout is written with plenty of <table> tags, the new Maybank2u.com 2.0 is rewritten with the Web 2.0 coding style – layout organized using <div>, buttons are written using <ul> and <li>.

The rounded-corner menu buttons at top are also created using Nifty Corners without using any image.

It also has style sheets written for mobile web browser and printer. I’ve tested Maybank2u.com 2.0 in my P1i. Though no significant mobile browser readability effort is spotted, but at least the whole site neatly flows down segment by segment without horizontal scroll bar. Continue reading ‘New Maybank2u.com 2.0 Online Banking Site’

My Experience with Google Chrome Web Browser 0.2

In the recent few days, the tech world is excessively bombarded with 1 word – Chrome. At this moment, it’s quite unlikely for anyone not to have stumbled upon this word, unless you were not online during the past 3 days.

Just in case you are reading this post without any idea on what I am talking about, Google has already released a very early version of its web browser – named Google Chrome. We are now living with one more potentially-promising choice of web browser. On the downside, it’s only supporting Windows XP and Vista at this moment.

Google Chrome - About Google Chrome

Google Chrome is built on AppleWebKit foundation, the same engine currently used in Safari web browser.

Google Chrome - About Memory

This is the about:memory (type about:memory into Address Bar) page. The most interesting feature in Google Chrome, which is yet to be found in any other popular web browser, is its handling of each new tab as a new process.

Think of it in this analogy:
In other browsers (including but not limited to Firefox, IE and Opera), all passengers (tabs) are loaded into the same vehicle (process). So in the event of accident, all passengers in the vehicle will be affected.

On the other hand, Google Chrome uses a new vehicle (process) for each passenger (tab). So, even if a vehicle is crashed, only the passenger in this vehicle will be affected, while all other vehicles and passengers are safe and sound. Continue reading ‘My Experience with Google Chrome Web Browser 0.2′

Adding RAW (CR2, NEF, PEF, SR2, ORF) Files Support into Vista Photo Gallery

If you are shooting with your DSLR in RAW without JPG, then quick preview of your RAW files (Canon’s CR2, Nikon’s NEF, Pentax PEF, Sony’s SR2, Olympus’s ORF) is quite inconvenient, unless you have installed any third party viewer.

Thanks to modular design, camera manufacturers can create their RAW image codecs for Windows Vista, which will add RAW file support to the built-in Vista Photo Gallery.

After installing the relevant codecs, the support RAW file can be previewed as thumbnail. Besides, you can also double-click your RAW file, and it will be shown in Photo Gallery, just like any other typical image files.

However, the codec doesn’t provide any image editing support.

Click at the following links to get the relevant RAW codec.

By the way, on a side-note, there’s a new slider called “Clarity” in Photoshop Camera RAW, since version 4.1, which increases mid-tone contrast for selective parts of the image, resulting in a “punchier” image. Personally, I find this extra feature to be very useful. If you don’t see the Clarity slider in your Photoshop Camera RAW, it’s time to consider upgrading the version :)

How to Check Hardware Status and Firmware Version of Your SE P1 and G900?

Sony Ericsson P1i Whether you’re buying a Sony Ericsson P1i or the latest G900, or simply would like to periodically check the hardware status or firmware version, then you can access the Sony Ericsson service menus to find out hidden gems.

If you’re buying a new phone, the service menus can help you to confirm if the main hardware components are working correctly.

Access P1i Service Menus
scroll up, *, scroll down, scroll down, *, scroll down, *

Access G900 Service Menus
right, *, left, left, * left, *

What Are in Service Menus?

The most important interfaces in service menus are service information and service tests. Service information menu will tell you the version of PDA software, phone software, Bluetooth software and CDA running in your phone. These are the components determining the localized features available to software of a region (such as text input), and the version number will reveal how updated your firmware is.

On the other hand, the service tests menu has a number of quick and easy hardware tests to confirm the hardware component status, whether they are working properly. Examples of test available are display, camera, touch screen, keyboard, speaker and etc.

Periodically, I would access and run the service tests to check the hardware status (make myself more comfortable :p)

These are the links to listing of UIQ3 CDA and firmware available for:

If you find enough reasons to upgrade your phone CDA or firmware, you may refer to the guide here.

Tweet to Twitter from Mobile

Twitter Bird by Darkmotion
by Darkmotion@flickr

This post is inspired by LiewCF’s “7 ways to tweet”.

Ever since I’ve started mini blogging (or more specifically mobile status broadcasting :p) with Twitter, the need for me to tweet from mobile has soon been realized. The need for mobile tweeting became significantly obvious, especially when I was traveling for Peninsula trip convoy.

In fact, mobile tweeting has made mobile blogging easy! Simply by showing the latest tweets in my blog, I can easily update my blog with short messages that describe my life, without the hustle of writing a comprehensive post with proper content structure and titles. Check out my Twitter updates at twitter.com/tiensoon

So what’s my most preferred way to achieve mobile tweeting with my Sony Ericsson P1i?

There are many apps out there that allow you to tweet from mobile phone. But hey… I’m not going to tell you all the options available; instead, sharing experience on approaches that I’m most comfortable with.

Twitter Mobile

To me, this (m.twitter.com) is the most convenient and least interruptive medium to follow my buddies’ tweets. When I feel like checking out my friends’ statuses when I’m on mobile, simply open my phone browser (provided I’m in a 3G, GPRS or WiFi zone) and I’ll be signed on to Twitter Mobile – a simplified light weight interface showing the latest 20 tweets, and a text field to post my tweet.

The interface is so light weight that, I don’t need to really matter much about the amount of data transferred. It wouldn’t burn my phone bill hahaha Continue reading ‘Tweet to Twitter from Mobile’


Subscribe

Subscribe to my RSS Feeds

Subscribe by Email

Enter your email address:

Delivered by FeedBurner

My Tweets

Powered by Twitter Tools.