Bali
Tuesday, June 30th, 2009
The effect of booming in smart cellular phone like Iphone & Blackberry and the decreasing of data charging by cellular operators, have caused the increase rapidly in mobile web activity. Therefore in order to accommodate mobile web activity, there are many blogger provide a mobile version of their blog. This mobile version is aimed to make browsing the Web from mobile devices comfort and fast by scaled down the theme and content of blog suitable with the screen of the device.
Actually, I realized that I should add mobile version of my blog when I browsed my blog via my cellular phone. At that time, I could not do fast browse due to long time response of loading. And then, after the page was loaded perfectly, the page which used blueweed theme was very not suitable with small screen device so I need to scroll left and right in order to read completely.
I know that careful steps need to be taken when optimizing a website to be mobile friendly especially in accessibility. Then I start searching the wordpress plugin which able to create mobile version of my blog which have user friendly structure, simple graphic or have no graphic, and have simple theme which can be easily modified.
After further searching, finally I find wordpress plugin which support mobile version called wordpress mobile pack.
This plugin includes a mobile switcher which able to select themes based on the type of visitor who is visiting the site. If the visitor comes from Computer browser, the mobile switcher will switch the theme into original theme which is blueweed theme, while if the visitor comes from mobile cellular phone browser the mobile switcher will switch the theme into mobile version. This plugin also have the ability to select mobile themes so I can easily modify the original mobile theme. The other important feature is called device adaptation. By this feature, this plugin has basic recognition of mobile devices and is capable of rescaling images, splitting articles and posts in multiple pages, simplifying style and remove media so the mobile version will be fit in cellular browser.
Below is my score for this blog in mobile version based on ready.mobi

So in my opinion, this plugin is worth to be tried
Point your mobile browser to http://andhy.qwords.net to see my blog in mobile version
When we have a spreadsheet file with huge content which should be loaded into MySQL database, then what will we do?
For me, i prefer use shell script. So, how?
Well, before we do it, we need to understand the format of the spreadsheet first. The spreadsheet file consists of rows and columns, so what we need is to find how to identify each row and column. I don’t know how to identify rows and columns in shell script, therefore, in order to load the data correctly, I export the spreadsheet into plain text file by copy the entire content of the spreadsheet file and then paste it into plain text file.
If we copy a spreadsheet excel file and paste it into text file, each column in excel will be identified by tab and row will be identified by line in text file. From this, we can use symbol \t for tab and symbol \n for new line.
Before attempting to convert any spreadsheet into text file, it is best to review the data for consistency. For example, make sure that every row has the same number of columns and check that all dates are formatted in the same way.
After that, we can use shell script to load the plain text file into MySQL database using command LOAD DATA LOCAL INFILE.
The term of LOCAL is used because my MySQL server is remote server. That means my MySQL server is located in different server. See my previous post to know my server configuration.
Here is my simple script :
#! /bin/sh # filename : updatedb.sh # Load data from file into MySQL mysql -u USER -pPASSWORD -D mydatabase -h 10.1.1.10 -e "LOAD DATA LOCAL INFILE 'mydata' INTO TABLE mytable FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n';"
By that script my file is successfully loaded into MySQL database.
Sometime, we need to backup our database regularly in order to avoid something bad ( paranoid mode) ![]()
Bellow is the simple shell sh script for backing up MySQL database by dumped the database and then put it into gzip file with the date of backup as the name file.
Here is the condition of my server :
Here is the simple script :
#! /bin/sh # filename : backupdb.sh # Automated database datestamp backup /apps/local/mysql/bin/mysqldump --opt -Q -h 10.1.1.10 -u USER -pPASSWORD mydatabase > /backup/BACKUPDB/`date +"%d-%m-%y"`.sql gzip /backup/BACKUPDB/`date +"%d-%m-%y"`.sql
Then, in order to run automatically that script at specific time, we need to set up cron job by adding the crontab list in backup server.
Here is example crontab for running backupdb.sh every day at 2 am.
0 2 * * * /script/backupdb.sh
Before add the script into cron job, it will be better if you check whether that script is running well or not. Do it at your own risk
Pagi hari yang indah ini tiba-tiba ada call masuk ke hape. +62 813 6557 9631. Ah palingan telepon gak jelas seperti biasa. Kalau dijawab pasti langsung dimatiin, jadi diangkat aja dan diam gak ngomong apa-apa. Ternyata orang yang nelpon juga diam aja. Sampai 15 detik kemudian ngomong ‘APA’ gak jelas samar-samar seperti suara cewek.
Ah mari diisengin saja, jadi tuh hape….
ditaruh deh di depan speaker yang lagi menggeber lagu Dewi Sandra – I Love You. Hehehe… biarin deh. Biar dia nelpon setidaknya dapat lagu cinta. 30 detik berlalu, akhirnya sang penelpon misterius mematikan callnya. Sudah puas dengerin mbak Dewi Sandra bernyanyi.
Eh ternyata sang penelpon misterius ngirim SMS!!! He?!!! Dan isinya
Ko lg2 cinta sich… bole request lg punk ga?
~_Blink 182_~
Astaga, beneran G.A.J.E.L.A.S

Pembaca mungkin belum tahu bahwa tanggal 1 Juni yang lalu gua mulai melihara ular, karena gua emang belum sempat nulis di blog ini. Di Facebook sih ada, tapi di sini nggak ada linknya. Ularnya jenis garter, dan walaupun belum sempat dipastiin jenis kelaminnya, pacar minta dia dikasih nama Betsy.
Nah, semalam (23 Juni) waktu pulang ke kost, gua nemuin dia udah tergolek di kolam di kandangnya dengan kepala di bawah air. Waktu dipegang dia nggak ada reaksi, udah kaya tali aja. Ternyata udah mati… Gua nggak yakin apa penyebabnya, tapi hari sebelumnya (22 Juni) dia udah keliatan agak-agak stres gitu. Mungkin karena gua seminggu sebelumnya mesti ninggalin Bandung, terus dia gua titipin ke adik gua di kandang yang kecil.
Akhirnya setelah berkabung sebentar, dia gua kubur di antara pohon-pohon di depan rumah kost.
Betsy itu jinak banget, dan mau dipegang sama siapa aja yang berani megang.Kalau dipegang dia biasanya tenang aja, meliuk di antara jari-jari tangan sambil julur-julur lidah (yang ternyata fungsinya buat menangkap partikel bau di udara), kadang-kadang berlanjut ke lengan. Mukanya juga lucu, tanpa ekspresi seperti layaknya reptil tapi nggak galak. Kalau lagi nggak enak pikiran, pasti megang-megang dia bikin jadi lebih tenang. Pacar gua aja, yang tadinya takut banget sama ular, jadi suka sama dia, sampai berani megang-megang. Makanya dia juga sedih banget waktu gua kasih tahu Betsy udah mati, karena berkat Betsy ketakutannya terhadap ular jauh berkurang.
Farewell Betsy…
Although our time together was much too short,
I’m happy that I ever had you,
my very first pet reptile…
Dan mengutip Jenderal George S. Patton,
“It is foolish and wrong to mourn the men snake who died. Rather, we should thank God that such men a snake lived.”

Okay, kali ini gw mo cerita tentang pengalaman gw ngajar orang tentang networking.
Pertama sih deg2an. Mikir, kira2 bisa gak nih gw perform ya. Jangan2 ntar kalo ditanya gw gak bisa jawab lagi. Hilang d muka. Apalagi kalo jawabannya salah. Wah, kacau..
Tapi gw pikir2 lagi, kalo gak dicoba sayang juga sih. Ada kesempatan untu nyobain sesuatu yang baru tapi gak gw ambil. Akhirnya, singkat kata, gw jadi ngajar.
bahan yang diajar sebenernya sederhana sih. Cuma basic networking sama cisco hardware fundamental. Tapi setelah ngasih training, ternyata dibalik bahan yang sederhana tersebut masih ada juga sesuatu yang bisa digali. Dan wacananya datang dari para peserta yang belum terlalu ngerti tentang bahan yang ditrainingin.
Intinya, ternyata gw baaru merasakan sendiri bahwa ngajar itu bisa membuat kita menyadarari bahwa ada beberapa hal yang sudah jadi kebiasaan tapi kita gak tau apa yang terjadi sebenarnya dibalik semua kebiasaan itu.
Pelajaran kedua, nambah ilmu gak hanya bisa dilakukan dengan sering kontak dengan paa savvy aja. dengan para dummy juga bisa, karena si dummy ini sering dengan polosnya nanya sesuatu yang gak kepikiran sama kita. Hehehe, atau emang gw aja yang suka gak mikirin yaa. Well, who knows. Tapi yang pasti ngasih ilmu yang berguna termasuk suatu kegiatan yang mulia. So, try to teach if you have chance…