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 …

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 …

THE DD COMMAND


The 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…

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 GDM
2. Switch to the tty command line prompt using Ctrl-Alt-F1
3. Login using your normal login/password
4. at the command line prompt type: export DISPLAY=:0.0
5. then type: sudo…

Problem:

$ rdesktop -n 184d 192.168.2.5
Autoselected keyboard map en-us
disconnect: 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…

There are two good methods to see what ports are open in Linux you can use
nmap which is a port scanner and you can use netstat.

nmap can be used to scan your machine to see whats ports are…

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 directory

The solution is:
export LD_LIBRARY_PATH=/usr/local/lib
(or…

1. chmod a+x /usr/share/doc/git-core/contrib/hooks/post-receive-email
2. cd ~/your-project-repository/.git/hooks/
3. ln -s /usr/share/doc/git-core/contrib/hooks/post-receive-email post-receive
4. cd ~/your-project-repository/.git/
5. open config file
6. add the following code
   [hooks]        mailinglist = your@email.address,second@email.address
        showrev = “git show -C %s; echo”
        emailprefix =…