We have this scenario. We have installed JRE 1.6 and the developer issues the command java -version and he gets java version “1.6 …” But we have also installed JRE 1.7 and now our developer asks us to replace java 1.6 terminal command with java 1.7. Let’s see how we can fix this issue [...]
If you would like to speed up windows boot time you should remove programs from Windows startup. Try the following to speed up your system boot: 1. Remove unnecessary programs from startup directory. Startup Directory path for current user: Windows_drive_letter:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 2. Close unnecessary services that run on Windows boot. Open services.msc (you need administrative [...]
Mirror SVN Repository svnadmin hotcopy /path/to/repository /path/to/mirror Backup SVN Repository svnadmin dump /path/to/repository > /path/to/repository.dump Backup SVN Repository and compress it svnadmin dump /path/to/repository | gzip > /path/to/repository.dump.gz Backup SVN Repository, compress it and move it to another machine with scp svnadmin dump /path/to/repository | gzip > /path/to/repository.dump.gz ; scp -rp /path/to/repository.dump.gz [...]
Installing rsync sudo apt-get install rsync Manual Syncing rsync -az –progress –size-only /home/username/dir1/* /home/username/destination/ or rsync -az –progress –size-only /home/username/dir1/* my.server.com:/home/username/destination/ -a archive mode -z compress file data during the transfer –progress show progress during transfer –size-only skip files that match in size Automatic Syncing 1. Create a bash script that contains the following: #!/bin/bash [...]
1. Download MARY TTS installer from here. 2. Run installer by issuing the following command: java -jar openmary-standalone-install-4.3.1.jar 3. Follow MARY installation wizard and install MARY TTS in your home directory. For ex. /home/gkarpouzas/.MARY_TTS/ 4. Open your project in NetBeans and add references to these three jar files: /home/username/.MARY_TTS/java/mary-common.jar /home/username/.MARY_TTS/java/log4j-1.2.15.jar and /home/username/.MARY_TTS/java/freetts.jar Note: To [...]
Install FreeTTS (A speech synthesizer written entirely in the Java) using apt-get. sudo apt-get install freetts Open your project in NetBeans and select to add a jar/folder to the project. Navigate to /usr/share/java and add a reference to freetts.jar file. You are ready to write java code to convert text to speech! Happy coding!
Install the following packages if you need MDB2 library to connect to a MySQL database server. Install MySQL package for MDB2: sudo apt-get install php-mdb2-driver-mysql Install PEAR: sudo apt-get install php-pear Install MDB2 library: sudo pear install MDB2 Install MDB2 MySQL Driver: sudo pear install MDB2_Driver_Mysql
Let’s see how we can list all files of a directory recursive in linux. First of all install tree command tool. For Ubuntu users just issue the following command: sudo apt-get install tree List all files recursive: tree -if /path/to/directory/ explaining: -i Don’t print indentation lines. -f Print the full path prefix for each file. [...]