Wednesday, October 28, 2009
GoogleSurfKey will be outdated soon.
Sunday, August 16, 2009
Google Surf Key 0.3.0 is released!!
version 0.3.0 released.(15 Aug 2009)Hope you like it!
- Updated for new Google's search result page layout.
- Fixed the 10 results limitation.(Only j,k traversing not number keys)
- Add l command to toggle show the index label.
- Change the implementation to use JQuery 1.2.6.
- Improve the link focusing.
Wednesday, June 24, 2009
Convert all column data type from VARCHAR2 to NVARCHAR2 and vice versa in Oracle 11g
select 'ALTER TABLE '||OWNER||'.'||TABLE_NAME||' MODIFY('||COLUMN_NAME||' NVARCHAR2('||DATA_LENGTH||'));' AS GEN_SQL_STATEMENTfrom SYS.DBA_tab_columnswhere owner = 'ownername' and DATA_TYPE = 'VARCHAR2';The result is the rows of ALTER statement filled with the table name, column name and new data type.
Then I copied all rows and concatenate them with some editor. and then run them as a sql script.If you want to convert from NVARCHAR2 to VARCHAR2, just switch 'VARCHAR2' and NVARCHAR2' in above sql statement. You can modify above script as well to suit your propose.Finally, you cannot convert the column which is not empty otherwise the error will occur.
Tuesday, June 2, 2009
IE6 crashes on JQuery append() function
var table = $("#contact_list");table.empty();$("group",data).each(function(){var group_name = $(this).attr("name");table.append("<tr><td>"+group_name+"</td></tr>");$("user",$(this)).each(function(){var username = $(this).text();table.append("<tr><td>"+username+"</td></tr>");});});When I saw IE6 crashed, I tried to figure out what was the problem and found it was an append function. So I tried to implement the code in many ways and I saw something.It will crashes if the html string as an argument of the function is not a properly dom object or closed tag. For example
var box = $("#contact_list");box.append('<table>');//do something.....box.append('</table>');So I solved this problem by define an variable for collecting all the html string which I want to append and append it by append() in the end. And the code works fine on IE6.
Friday, April 3, 2009
Switch input language by Caps Lock #2
Download and install AutoHotkey in your computer.- Write .ahk script like below
Capslock::Send {LAlt down}{Shift}{LAlt up}
- Save this file and try double click to run it.
- Test it by press caps lock and see.
- Create shortcut to this .ahk file and move it to Startup folder in Start menu. [Do this to run this script at startup]
Tuesday, March 10, 2009
Major Limitation of Gmail and Google Calendar in Offline Mode
Recently Google launched an offline mode of Gmail in labs and just few days ago Google Calendar offline mode had been released in beta after the news of this feature over a year.
Both of them use the capabilities of Google Gears for running in offline. So I installed Google Chrome for try out these things.
It works nicely but I found a major limitation. A few days ago ,I was disconnected and I opened the Gmail. I expected that I could browse my email easily and see my drafts but it didn’t work.
Google Chrome showed an error. It said “105 (net::ERR_NAME_NOT_RESOLVED)” that is about Chrome cannot resolve an IP address of website (gmail.com). So it cannot work offline. The same error was shown when I tried the Calendar.
But Google Document or Remember The Milk which support Gears work correctly.
Gmail and Calendar work in offline mode correctly if they have already been opened before your computer is disconnected. They will switch to offline mode and continue running correctly.
I wish this limitation will be removed soon.
Monday, March 2, 2009
Booting Process Tuning in FreeBSD 7.1
The project's objective is to tune or optimize a subsystem of FreeBSD and/or its environs (applications, utilities, etc.) to make it perform better.
I choose to tune the booting process of FreeBSD. Due to my laziness and lack of time, so I didn’t do tuning as much as I expected. but if I have time……if I have time…..
Here is my presentation.