Rename/Style Browse button in

Recently I’m working on a web project which has bilingual requirement. One day, our end user gave me a requirement: can we make the file upload “Browse” button the same as other buttons? Here is the original HTML source code for “File upload”

Code Review checklist

Code review is important in software development life cycle. It’s intended to find and fix mistakes overlooked in the initial development phase, improving both the overall quality of software and the developers’ skills.

Six tips for highly effective meetings

In his fantastic book, “Read This before Our Next Meeting” Al Pittampalli puts it this way: in hospitals, if they ran the operating room, like most companies manage their meetings, the patient would die almost every single time . We need habits for highly effective meetings,  here are six tips that will take you from ...

The three chief virtues of a programmer: Laziness, Impatience and Hubris

In the second edition of Programming Perl, Larry Wall (the creator of Perl programming language) outlined the Three Virtues of a Programmer: 1. Laziness The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful, and document what you wrote so you don’t have ...

London Tourist Attractions/Landmark/Tourist places

Do you recognize those London Attractions/landmark? With London 2012 Olympics around the corner, some of you may need to visit those London attraction/landmark/tourist places?    

Choose your password wisely

Easier to Crack Password nowadays Cracking password nowadays is getting easier and easier with the help of today’s powerful computing power and newly developed efficient algorithm. One of the simplest ways to gain access to your information is through the use of a Brute Force Attack. This is accomplished when a hacker uses a specially written ...

Canadian Super Visa – convenient but pricy

Parents and grandparents of Canadian citizens and permanent residents have a new option for visiting Canada. As of December 1, 2011, you may be eligible to apply for the Parent and Grandparent Super Visa and enjoy visiting your family in Canada for up to two years without the need to renew your status.

Pagination SQL query in Oracle

Let say you have 10,000 records in your table (say NEWS). Your web front end only wants to display the first 10 news (sorted by publish_time). SELECT * FROM NEWS WHERE ROWNUM <= 10 and ROWNUM > 0 order by publish_time However, this doesn’t work.

Solr DataImportHandler converts MySQL TINYINT to Boolean

1. Database table column definition is_active  tinyint(1) NOT NULL DEFAULT ‘1’, 2. Solr schema.xml <field name=”is_active” type=”boolean” indexed=”true” stored=”true” multiValued=”false” />

How to find and remove files in Linux/Unix

To remove multiple files such as *.tmp with one command find, use find . -name "*.tmp"-exec rm -rf {} ; OR find . -type f -name "*.tmp" -exec rm -f {} ; The only difference between above two syntax is that first command can remove irectories as well where second command only removes files.