pikopong

it's all about knowledge

Archive for April, 2008

Automatically Sign JARs using Ant and Bash

with 2 comments

This guide is more towards Netbeans project, but it can be used as a reference for you to customize the script to suit your needs.

The signer bash file:

1
2
3
4
#!/bin/bash
find . -name "*.jar" -exec jarsigner -keystore /path/to/your/key -storepass yourpassword '{}' yourkeystorename \;
echo 'JARs signed';
exit 0

This script will actually search all files ending with .jar from the current directory recursively and then sign it. This means, it can be used separately without ant script. Just make it executeable and run it.

Put this in the last line of your build.xml but it must before the closing tag of the “project” (build.xml can be found in your main project directory)

1
2
3
4
5
6
7
8
<project>
    .
    .
    .
    <target name="-post-jar">
        <exec dir="${dist.dir}" executable="/path/to/your/signer" os="Linux" />
    </target>
</project>

This script will basically sign the jars after all the jars has been build. Please note that it’s better if you set all the path using absolute type of path.

After this, you just have to use Clean and Build to automatically generate the JARs and also automatically sign it. This script will also sign all of your libraries. Good luck :)

Written by amree

April 14th, 2008 at 8:48 am

Posted in programming

Tagged with , , , ,

Top 11 Youtube Memes

with 4 comments

Maybe you’ve seen these videos, maybe not, but these videos are ranked as the most popular at the moment based on their total views. I didn’t check every video, but most of them are viewed at least 1 million times. They are so popular that they became the Internet meme.

  • Rick Roll
  • Chocolate Rain
  • Samwell – “What What (In the Butt)”
  • Tron Guy
  • Numa Numa
  • Star Wars Kid
  • Sneezing Panda
  • Chris Cocker
  • Laughing Baby
  • Afro Ninja

Rick Roll

YouTube Preview Image

Chocolate Rain

YouTube Preview Image

Samwell – “What What (In the Butt)”

YouTube Preview Image

Tron Guy

YouTube Preview Image

Numa Numa

YouTube Preview Image

Star Wars Kid

YouTube Preview Image

Sneezing Panda

YouTube Preview Image

Dramatic Gopher

YouTube Preview Image

Chris Cocker

YouTube Preview Image

Laughing Baby

YouTube Preview Image

Afro Ninja

YouTube Preview Image

South Park making fun to these meme except for Rick Roll

Credits to Valleywag.

Written by amree

April 4th, 2008 at 10:33 pm

Posted in vids

Tagged with ,