Month: April 2013

Session setting in EXTJS

We usually play with session and create the session by server side script like PHP. But, how we create session with client side script?

In this case is EXTJS. OK… You can store cookie instead of session for this case.

This is the code;

The first thing you need to do is setProvider and set a variable into it;

Ext.state.Manager.setProvider(new Ext.state.CookieProvider());

And then to get varA from cookies;


And if you need to clear that value from cookies


That’s it!


Renaming Every Single Tabel in MySQL Database to Lower Case on XAMPP Server

I actually use Ubuntu every day. But sometimes I perforce work with Windows, because my client familiar with Windows. In this case, my client is government. I had to teach an application that I made to the staff with windows OS.

Well… That’s just introduction that I sometimes work with XAMPP-Windows server.

In that case, I found trouble when importing MySQL database on XAMPP-Windows. Every single table name on it rename to lower case. This made my application doesn’t work at all. And here’s what to do when your MySQL rename every single table name;

1. find [drive]\xampp\mysql\bin\my.ini

2. look up for: # The MySQL server [mysqld]

3. add line lower_case_table_names = 2

In some case that I have read, you must add that line at the end of file

4. Save that file and restart your MySQL

Enabling mod_rewrite on Ubuntu

If you are frequently writing PHP script using a framework, I am pretty sure that you want a beautiful URL. So… And for sure, you are using local server to test it. By default mod_rewrite is not enable on Apache server. To enable it, just write this on command line;

$ sudo a2enmod rewrite

After that, you have to restart Apache to make the configuration work

About Me

Well… this is my first writing.

My ultimate goal to make this blog is learn english. But my topic most of software development and all about information technology.
So, if you find any error grammar and writing, please be tolerate. And the good thing if you give me correction about my grammar and writing and I will thank to you.