Hot Posts:

Jul 31

Linux Copying Bulk of Files Using Shell


Continuing on the related post

http://knowledgeexplosion.info/2008/07/solved-binrm-argument-list-too-long/

if you want to copy the files, you have to use different syntax. In my case I wanted to copy bulk of mp3 files:

find /share/media/mp3/ -type f -name "*.mp3" -print0 | xargs -0 -r
-I file cp -v -p file --target-directory=/bakup/iscsi/mp3

Jun 06

Solved: Working Eclipse Short Cuts (Function Keys) in Mac OS X (Snow Leopard)


Man I had crazy time with getting eclipse function keys working in Snow Leopard. That was a kind of nightmare. Specially I’m used to eclipse short cuts like F5, F6, F8. Here is the trick –

Read the rest of this entry »

Jun 05

Basic Shell Scripting Syntax Unix…Essentials


Just wanted to post very basic shell scripting essentials:

Basic Shell Scripting Concepts:

Arithmetic Evaluation (op refers to Operation):

let answer=var1 OP var2; echo $answer;
echo `expr var1 OP var2`

For … loop:

for file in x
do
    {body}
done
[x can be numbers, letters, paths etc]



Read the rest of this entry »

Jun 05

Finally Trying To Get Back On Track… :)


Just feels that it’s been longgg….. Trying to get back to writing some geeky stuff again 🙂

Mar 19

Displaying Tag information for the Subversive Client in Elipse


I normally like to see Author, Last modified date information for the projects synchronized with the subversion. Here is the trick to enable this tags for Subversive SVN client in eclipse.

Eclipse –> Properties –> Team –> SVN –> Label Decorations –> Text Decorations –> File –> [Select the necessary options]

Dec 15

Adding NTFS Write support on Mac OS X


I’ve western digital external usb hard drive. Unfortunately Mac OS X doesn’t support writing to NTFS formatted partition due to some legal issues; Although I was surprised by that. But luckily there are opernsource tools available which can be used (at your own risk ;)) to enable NTFS read-write support. By default it supports writing to FAT/FAT32 partition.

Read the rest of this entry »

Dec 14

Google Adds Real Time Results to Search


Just found out that Google has enabled real time search results.

See the attached image:

Google Real Time Search Results Example

Google Real Time Search Results Example

Dec 04

Turning off irritating system beep


Turning off that irritating system beep:

Somehow I hate that default system beep on different operating systems, here are quick commands to turn that off

Windows:

net stop beep (in command line)

Linux, Mac OS X:

xset b off (terminal)


Nov 21

Resolved: javac: invalid target release: 1.6


javac: invalid target release: 1.6 :
Recently I ran into this while compiling some stuff through Maven. My development environment is Mac OS X(10.5), Eclipse (3.5), Maven (2.0.9), Java (1.6)
I tried some suggestions through Google but they didn’t help me. Finally resolved the isse. Follow this steps:

  • Check if JAVA_HOME is set
  • Check if PATH is set & it’s pointing to same Java version
  • Now another important thing – Run mvn –version, check if the Java version matches.
(Mac Users)If do this:
Check your CurrentJDK path defined under "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK".
That is most likely the culprit. Maven script uses this symlink value.

You are hopefully done 🙂

Nov 14

Resolved: Eclipse [javac] class file has wrong version 50.0, should be 49.0


[javac] class file has wrong version 50.0, should be 49.0
Somehow on my Mac (10.5) I ran into this issue with Eclipse (3.5) and Nutch (1.0). It seems this was causing because of the incompatible version of Java Compiler.

Solution:
Check your project settings & make sure your Java compiler version & installed JRE are pointing to the correct version. By default it points to JRE 1.5. After you update these references everything should work like a charm 🙂
~Ruituraj