Error: Could not find or load main class HelloWorld

So you just downloaded the ubiquitous Java HelloWorld and you run java HelloWord after you compile it of course with “javac HelloWorld.java” and you are presented with this error message :

Error: Could not find or load main class HelloWorld

Cause: Apparently the folder that you are running the java application from, needs to be in your CLASSPATH (does not quite make sense) but i will be looking for a better explanation.

SOLUTION #1

Add ":." to your CLASSPATH (Dont use the double quotes)

Or

SOLUTION #2

java -cp . HelloWorld

Remeber the dot(.) refers to the current directory.

How to Search Content In the Drupal Administration Back-end?

If you have zillion contents in Drupal and paging is not really useful to locate a particular piece of content, you will need to download and install the “Administration Views” module:

This module replaces the  administration content page with a standard view that you can use to do your own filtering.

1. Install the Views Bulk Operations (VBO) module (The adminstration modules depends on it)
https://drupal.org/project/views_bulk_operations

2. Install the Adminstration Views module
https://drupal.org/project/admin_views

BEFORE

drupal default content search

AFTER

drupal7 administration content search

How much memory is Linux really using?

An htop on my system reveals this:

htop

memory_in_linux

So you would think that I am using about 4 gigs of Memory.

The “Mem” line is misleading so please do not use that. instead use the following command:

free -m

Pay attention to the -/+ buffers/cache line.
memory_in_linux2


Useful Websites

Linux ate my RAM
http://www.linuxatemyram.com/

Using top more efficiently
http://www.linuxforums.org/articles/using-top-more-efficiently_89.html

Experiments and fun with the Linux disk cache
http://www.linuxatemyram.com/play.html

Clear RAM Memory Cache buffer and Swap Space on Linux
http://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/