«Jul 2009»
  • S
  • M
  • T
  • W
  • T
  • F
  • S
  •  
  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
  •  
  •  

Site Search

Search

Welcome to Ecodereviewer!

Thanks for visiting Ecodereviewer, this site contains all the experience I have learned duing my day to day work as a Web Developer.

If you have any comments, suggestions or questions, please feel free to fill in the Contact Me form located on the right top cornor of the website, or alternatively, you can email me using the email address displayed at the bottom of the website.

Enjoy the site!

  Solr Lucene - Digest Authentication

This article shows you how to setup the Digest Authentication in Solr Lucene, which comes with Jetty in the examples provided in the download pack available online. [ Read More ]


  Network Upgrade for Ubuntu Server 8.10 to 9.04

It is time for me to upgrade my Ubuntu server from 8.10 to 9.04, the following is the steps required: [ Read More ]


  MySQL Reset Root Password

Sometimes people need to reset their root mysql password for whatever reason. The following shows you the steps you need to take to reset your root password. [ Read More ]

  Alter Table Facts - MySQL

Recently I need to modify a column in a table which contains over millions of rows. To run the update requires a few minutes of processing time and it might be very critical for the websites which get millions or billions of hits a day. So before you run the ALTER TABLE command, a few facts you need to be aware of: [ Read More ]


  SSH Client Timeout

SSH allows administrators to set a timeout to log users out automatically after a certain period of idle time. [ Read More ]


  Content Cut Off When Printing In Firefox

There is a bug in Firefox that prevented it from printing properly for large table and contents. The bug simply stops rendering in the print preview if the table and content on the page is too long after page 1, and all the following pages will be blank. In this aspect, IE works much better than Firefox. To fix the problem, define the following style in you css:

@media print {
* {
overflow: visible !important;
}
}


This will tell Firefox to display all contents when overflow occurs. [ Read More ]

  Convert PDF to Text on Linux

Some people might encounter the experience that they can't view a pdf file they want from a terminal when no GUI is available. This is when pdftotext comes in handy. This utility allows you to export a pdf file to a plain text format and view from any text editor. It also allows you to export only certain parts of the pdf file. [ Read More ]


  JSON and Browser Security

Found a good article about JSON and Browser security from Yui-Blog, and it shows you some guidelines to avoid bad practices when doing web development using JSON data format. The following are some quotes: [ Read More ]


  Robot.txt Generator From Google

Don't know how to create a robot.txt file yourself? No worries, Google's webmaster tools can help you with this. Simply visit their blog here and follow the instructions: [ Read More ]

  Useful Linux Commands

I have compiled a list of useful linux commands for day to day operation.

make a pdf of a manual page

user@www$ man -t man | ps2pdf - > man.pdf


Run a low priority command

user@www$ nice <command>


Go to previous directory

user@www$ cd -


Go to dir, execute command and return to current dir

user@www$ (cd dir && command)


Make compressed archive of dir/

user@www$ tar -c dir/ | bzip2 > dir.tar.bz2


Extract archive (use gzip instead of bzip2 for tar.gz files)

user@www$ bzip2 -dc dir.tar.bz2 | tar -x


Display a calendar for a particular month year

user@www$ cal 9 2008


What date is it this friday.

user@www$ date -d fri


What day does xmas fall on, this year

user@www$ date --date='25 Dec' +%A


Convert seconds since the epoch (1970-01-01 UTC) to date

user@www$ date --date='@2147483647'


Email reminder

user@www$ echo "mail -s 'reminder' user@address.com < /dev/null" | at 20:00


Show name and version of distribution

user@www$ head -n1 /etc/issue


Show all partitions registered on the system

user@www$ cat /proc/partitions


Download url at 1AM to current dir

user@www$ echo 'wget url' | at 01:00


You can find more commands from Linux Commands - A Practical Reference.

Or more on Top 10 Best Cheat Sheets for Linux Commands [ Read More ]