May 09

Bash Sending a Process to Background

Just to remind myself. To send a process to the background.

  • Hit Ctrl + z (This basically suspends the process)
  • jobs -l (Will list all the process)
  • bg <process number will send the process to the background and make the process running>
  • fg <process number will bring the process to the foreground again>
  • At any point of time you cant type jobs -l to list all the process

That’s all there is to it.

0
comments

May 09

Artificial!!

Saw this image about the distinction between artificial and natural on Abstruse Goose. Makes you think

Artifical vs Natural

Artifical vs Natural

0
comments

Feb 07

An unusual Bar Mitzvah Speech

0
comments

Nov 15

Entries missing in pom.xml after appfuse:fullsource

<urlrewrite.version>3.1.0</urlrewrite.version>
<spring.security.version>3.0.5.RELEASE</spring.security.version>
<dwr.version>2.0.3</dwr.version>
<aspectj.version>1.6.10</aspectj.version>
<commons.dbcp.version>1.3</commons.dbcp.version>
<commons.lang.version>2.6</commons.lang.version>
<velocity.version>1.4</velocity.version>
<ehcache.version>2.3.1</ehcache.version>
<struts.menu.version>2.4.3</struts.menu.version>
<compass.version>2.2.0</compass.version>
<commons.collections.version>3.1</commons.collections.version>
<jstl.version>1.1.2</jstl.version>
<cxf.version>2.3.3</cxf.version>
<sitemesh.version>2.4.2</sitemesh.version>
<jpa.version>2.0-cr-1</jpa.version>
<slf4j.version>1.6.1</slf4j.version>
<hibernate.version>3.6.1.Final</hibernate.version>
<javamail.version>1.4</javamail.version>
<commons.beanutils.version>1.8.3</commons.beanutils.version>
<log4j.version>1.2.16</log4j.version>
<ehcache.web.version>2.0.3</ehcache.web.version>

0
comments

Oct 05

Train Runs over Crazy Kid probably indian

Just saw this video of a kid lying down between railway tracks and a train speeds over him. The scene looks very Indian however I am not able to confirm that.
This guy would probably lie low with the crackdown on the train surfing kids in Mumbai anyway this video is worth a watch.
Saw this video first on Break.com but got a youtube version from freakapedia.com

0
comments

Aug 27

Low cost Tatoo Removal

I do not know what motivates people to put a permanent mark based on a relationship that is very dynamic. Just saw this video of a person who got the tattoo of his ex-girlfriend removed (the hard way).
Watch this video only if you must. It got me squirming in my seat.

Insane Tattoo Removal – Watch more Funny Videos

0
comments

Jul 14

Open Reports JXLS and Column Alias

Recently I tried doing a report in Open Reports using JXLS. In my query I had used alias for columns and these columns would just not appear in the result.

After digging in the sourceforge forums I found this thread

http://sourceforge.net/projects/oreports/forums/forum/187722/topic/1913461

It tells us that it is a problem with mysql connector and we should use “?useOldAliasMetadataBehavior=true” after the jdbc url

This is what is mentioned in the post.

Most likely you must be using MySQL Connector/J 5.1.x and it must be due to some upgrade issues http://dev.mysql.com/doc/refman/5.0/en/connector-j-installing-upgrading.html#connector-j-installing-upgrading-5-1 , but it worked for me when I put ?useOldAliasMetadataBehavior=true at the end of connection url in DataSources, so when you specify connection url for datasources it should look like jdbc:mysql://serverName:3306/databaseName?useOldAliasMetadataBehavior=true

Finally it works.

0
comments

Jun 15

Maven Install

In Case you do not have a perticular Library in you maven repository the command to install is as foll:
mvn install:install-file \n
-DgroupId=<group Id> \n
-DartifactId=<artifact Id> \n
-Dversion=<version> \n
-Dpackaging=<jar|war|ear> \n
-Dfile=/path/to/file

Example:

mvn install:install-file -DgroupId=apache-discovery -DartifactId=commons-discovery -Dversion=0.2 -Dpackaging=jar -Dfile=/path/to/file

0
comments

May 14

Javascript to retrieve Password

Below is the javascript required to retrieve a password from a page.
If the page displays a field marked with ******* in one of the fields copy the below javascript, delete the contents in the address bar paste the javascript and hit enter. As simple as that.



javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();

0
comments

Dec 28

Technology! Blackberry’s not working.

0
comments