LAMP How To – Open Source At Work

Only Passion Matters

Entries for February, 2009

How to create a simple CMS without DB access

A Content Management System (CMS) allows you to update your website easily without touching anything in the backend. If you are a non-IT person, you will almost always want a CMS for your website because it makes you less dependent on your web designers or developers to add, edit or delete contents in your website.
There [...]

Linux: Check CPU / OS running 32 or 64 bit

To check your cpu whether it is running 32 or 64 bit,

cat /proc/cpuinfo | grep lm

there should be a “lahf_lm” flag for 64 bit cpu.
To check the kernel,

uname -a | grep 64

there should be a “x86_64″ for 64 bit OS.

E – Lotto Scammers need to be more intelligent

Why do people keep sending lottery winning emails hoping that people will fall for it? These emails have been around for ages and are still circulating!
For goodness sake, why can’t these internet scammers be more intelligent? If they want to fake it, do a better job.

PRIZE/PROMOTION AWARD DEPT.
E-LOTTO ITALY.

CATEGORY “A” WINNER
Ref No: FLM-202/8231
Batch Number: NL [...]

Quick vnc tips

1. To login to gnome of kde via vnc, in ~/vnc/xstartup, uncomment the 2 lines below “uncomment…”

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

2. To start [...]

vim – quick navigation

Other than using ‘w’ or ‘b’ to navigate between words, another quick way to navigate between sentences is to use the ‘(‘ and ‘)’ keys.