Monday, May 21, 2012 0:59

‘Program Kung Fu’ News

Subscribe to RSS feed

What Is the Difference Between A Money Order and a Cashier’s Check

Monday, December 27, 2010 2:54

Understanding the similarities and differences between a money order and a cashier’s check is quite important when conducting business. They main difference between a money order and a cashier’s check is that a cashier’s check uses the funds of the bank and is signed by the bank or the cashier, ...

Register table issue caused by using wrong column type in SQL

Tuesday, December 7, 2010 11:54

Wow, how long the title is! :) I came across one strange issue today (actually I found this last Friday, but you know weekend coming, hehehe). When using the update DQL to fill up one new column in the registered table, there are always lots of blanks appended. The root cause after doing ...

Tagged with: ,

What’s the difference between EST and EDT

Sunday, September 12, 2010 20:58

EST - Eastern Standard Time EDT – Eastern Daylight Time Time zone offset: UTC - 4 hours EDT is 4 hours behind of Coordinated Universal Time (UTC) Note that EDT is a daylight saving time/summer time zone. It is generally only used during the summer in the places listed below, during the winter EST ...

Tagged with:

VB.NET to C#

Thursday, September 2, 2010 19:53

I came across this syntax error - "Non-invocable member 'System.Windows.Forms.Control.Controls' cannot be used like a method" when converting a VB.NET project to C#  windows form application. In C#, weshould use bracket("[", "]") to retrieve item from a collection instead of using the parenthesis as in VB.NET. VB.NET ->TabControl1.Controls(1).Enabled = False C#         -> this.TabControl1.Controls[1].Enabled ...

Tagged with:

Javascript error: Expected identifier, string or number

Tuesday, August 31, 2010 20:21

We came across this issue when testing our web application on IE6 and IE7.  It works well on Firefox and IE8. Expected identifier, string or number The root cause is the extra ','  in the variables definition. References: http://yuweiqiang.blog.163.com/blog/static/66570412010623074104/ http://hi.baidu.com/hengcheng/blog/item/2dc020fa9d621f839f5146e5.html

Tagged with:

SQL Server Profiler – Only TrueType fonts are supported

Sunday, August 22, 2010 13:12

Error message - "Only TrueType fonts are supported. This is not a TrueType font." was thrown when using SQL Server Profiler. Solution: 1. Open SQL Server Profilr 2. Go to ' Tool'Menu 3. Select Options 4. Change the font name to "Arial" 5. Click OK.

Tagged with:

Nginx configuration – nginx.conf

Tuesday, August 10, 2010 19:52

server { listen 80; server_name nginx.org www.nginx.org; root /data/www; location / { ...

Tagged with:

Resin – java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceRef

Tuesday, August 10, 2010 11:33

Error -  java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceRef was thrown when running my web application on myeclipse based on Resin 3.1. It is due to a MyEclipse (I am using My Eclipse 5.5.0 GA) defect. http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=21403&start=0&postdays=0&postorder=asc&highlight= Workaround:  add them under the jar files under lib folder in the boot configuration of Resin in MyEclipse. Also there is ...

Tagged with:

Linux Kill user session or logout users

Tuesday, August 10, 2010 11:31

We can use the command 'skill -KILL -u <username>' to logout users. Reference: http://www.cyberciti.biz/tips/howto-linux-kill-and-logout-users.html

Resin ArrayIndexOutOfBoundsException Tiles

Tuesday, August 10, 2010 11:29

There was error thrown when accessing Java web application using Tiles in Resin environment. We came across java.lang.ArrayIndexOutOfBoundsException when using Resin 4.0.8.   The root cause is a defect from Resin 4.0.8.  (http://bugs.caucho.com/view.php?id=4104) . The solution is upgrade the Resin to version 4.0.9

Tagged with: