Monthly archives: January 2013

How to create a jar file with a source code using ant

hello, today we will be talking about how to create a jar file using ant build while attaching the source code with the jar. so first we do the Build.xml, it should look something like below where you define the…

Posted in Programming | Leave a comment

Reading Bigfiles using JAVA

Hello, This is one of the effecient ways to read a big files in JAVA using Chunks InputStream is; OutputStream os; buffer[] = new byte[1024]; int read; while((read = != -1) { // do whatever you need with the…

Posted in Programming | Leave a comment

How to compute SHA256 File HASH using C#

hello i want to share with you a simple way of computing SHA256 HASH using C#. Enjoy using (FileStream stream = File.OpenRead(file)) { SHA256Managed sha = new SHA256Managed(); byte[] hash = sha.ComputeHash(stream); return BitConverter.ToString(hash).Replace(“-“, String.Empty); }

Posted in Programming | Leave a comment

The Mirror – Part 2

The Mother : She used to wake up early morning to prepare the morning coffee for the Father, put the breakfast for her kids, go for grocery shop to collect the missing ingredients for the launch, and pay the bills…

Posted in Philosophy, Stories | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.