When dealing with USB backups, I would traditionally just mount and rsync to the device, with a simple script like this : mount /dev/sdc1 /mnt rsync /home /mnt umount /dev This approach fails though when the device is unplugged while backups are working (the device name will change from /dev/sdc1 to /dev/sdd1), or if a… View Article

Linux Under Linux, type command in postgres database: set lc_monetary to ‘ar_BH.utf8’; ar_BH represents Arabic (Bahrain) locale, the above command change the locale monetary setting on-the-fly in postgresql database, then let do a test: select 34.888::text::money; You will get 34.888 with 3 decimal places money type. Tested in Postgresql 8.4.6. Windows However the above set… View Article

THE DD COMMANDThe dd command copies an amount of data block by block. The most basic syntax is:Format# dd if=xxxxx of=yyyyy bs=zzzzzz( Where if=xxxxx is the source, of=yyyyy is the target and bs= both read and write zzzzz bytes at a time )Examples:Copy a hard disk partition to another hard disk:# dd if=/dev/hda2 of=/dev/hdb2 bs=4096… View Article

Problem: I got the above error message when I tried to boot into ubuntu(wubi version, installed inside windows).Solution:Replace the file wubildr on c: should fix this issue.click the link below to download wubildr:https://docs.google.com/uc?id=0B3qkFTf1TQCSZDIzMWRlM2UtOWNiMC00YWE5LTkxYWUtNGU1NThmNzEwOGJk&export=download&hl=en

1. Logout of your current session and return to the GDM2. Switch to the tty command line prompt using Ctrl-Alt-F13. Login using your normal login/password4. at the command line prompt type: export DISPLAY=:0.05. then type: sudo -u gdm gnome-control-center6. Switch back to the gdm screen using ALT-F77. The gnome-control-center should be loaded. Use it to… View Article

Problem:$ rdesktop -n 184d 192.168.2.5Autoselected keyboard map en-usdisconnect: Internal licensing error.User 184d can connect ONLY ONE TIME, and after disconnect it fail again.Solution:The workarround that I find, until a patch for this bug is released, is to do:# chown -R root.root /home//.rdesktopand just in case:# chmod -R 444 /home//.rdesktopthen just delete the license. file and… View Article

There are two good methods to see what ports are open in Linux you can usenmap which is a port scanner and you can use netstat.nmap can be used to scan your machine to see whats ports are open issue thefollowing command to scan your computers machine:nmap -sS -O 127.0.0.1The second method was netstat. netstat… View Article

After I installed bonddb and tried to start bondfrontend for mrbounce project, I got the following error:bondfrontend: error while loading shared libraries: libbonddb2.so: cannot open shared object file: No such file or directoryThe solution is:export LD_LIBRARY_PATH=/usr/local/lib(or setenv LD_LIBRARY_PATH /usr/local/lib if you use tcsh)

1. chmod a+x /usr/share/doc/git-core/contrib/hooks/post-receive-email2. cd ~/your-project-repository/.git/hooks/3. ln -s /usr/share/doc/git-core/contrib/hooks/post-receive-email post-receive4. cd ~/your-project-repository/.git/5. open config file6. add the following code   [hooks]        mailinglist = your@email.address,second@email.address        showrev = “git show -C %s; echo”        emailprefix = “[Your Prefix] “When you receive an email after you did a git push, you probably can only see the summary of changes. If… View Article