Tuesday, June 30, 2015

Monday, June 29, 2015

Code for Damerau Lavenshtein Distance in Java

Earlier I had posted a tutorial on Fuzzy String Matching with Python Code. Here in this post I am sharing the Damerau Lavenshtein Algorithm Code in Java. package com.codehackersblog.editdistance; /** * * @author psychocoder * @version 1.0 */ public class DamerauLavenshtein { private String s1; private String s2; private int len_s1; private int len_s2; public DamerauLavenshtein()...
Continue Reading →

Code for Wagner Fisher Algorithm in Java

Earlier I had posted a tutorial on Fuzzy String Matching with Python Code. Here in this post I am sharing the Wagner Fisher Algorithm Code in Java. package com.codehackersblog.editdistance; /** * * @author psychocoder * @version 1.0 */ public class WagnerFisher { private String s1; private String s2; private int len_s1; private int len_s2; public WagnerFisher() { s1...
Continue Reading →

Sunday, June 28, 2015

C Code for Longest Common Subsequence Using Dynamic Programming

Here's the C Code for LCS using Dynamic programming :- Output:- Output:- Matrix Generated 0 |0 |0 |0 |0 | 0 |0 |0 |0 |0 | 0 |1 |1 |1 |1 | 0 |1 |2 |2 |2 | 0 |1 |2 |3 |3 | 0 |1 |2 |3 |4 | Length of Longest Common Subsequence = 4...
Continue Reading →

Saturday, June 27, 2015

C Code for Knapsack Problem using Dynamic Programming

Knapsack problem (Photo credit: Wikipedia) Knapsack Problem using Dynamic Programming. Code:- Sample Output:-  Enter the number of elements : 3 Enter the profit and weights of the elements Item no : 1 4 6 Item no : 2 1 2 Item no : 3 7 3 Enter the capacity 7 Items in...
Continue Reading →

Friday, June 26, 2015

Bouncing Ball Animation using Processing.js

Today I made the old school Bouncing Ball Animation using Processing.js Here's the code with output :- Related articles 3D Rotating Square with WebGL in Three.js Image to ASCII ART converter in Java 5 Most Funny Java Videos on Youtube 5 Most Funny Java Videos on Youtube ...
Continue Reading →

Introduction to Public Key Cryptography and RSA Encryption

Cryptographically secure pseudorandom number generator (Photo credit: Wikipedia) Cryptography The art of protecting information by transforming it (encrypting it) into an unreadable format, called cipher text. Only those who possess a secret key can decipher (or decrypt) the message into plain...
Continue Reading →

Thursday, June 25, 2015

5 Most Funny Java Videos on Youtube

Duke, the Java Mascot. (Photo credit: Wikipedia) I found some really funny Java videos which are to be taken as jokes and for humour. If you have known Java then you will surely like these videos. I made a collection of them. So lets get started. 5. The Funny JavaRap Lets with a little funny...
Continue Reading →

SecurityOverride.org Software Cracking Level 1 | Basic Serial Disclosure

SecurityOverride.org is an Information Security related site, which provides security enthusiast a platform to communicate, share this ideas, views, exploits, research, and also contains several Hacking or Security challenges which judges your skills at different levels. A few days back I...
Continue Reading →

Basic Generative Art using Processing.js | Example 1

English: Vectorized Version of Processing Logo (Photo credit: Wikipedia) I started with Processing today and this is my first try to create some generative art using Processing.js, so here's the first version. More art or abstract programs to come soon. ...
Continue Reading →

Wednesday, June 24, 2015

[Funny Bash] Remove wife package and install sexy secretary

View image | gettyimages.com This is a very funny post. A general story takes the form of being written in bash shell code. I found this on Pastebin long ago and modified it a bit. This post is to taken as a hilarious joke and not in a serious way. Thank you. ...
Continue Reading →

PDF File Generation example in Java using iText Library

iText is an awesome library to work with for PDF manipulation which also gives complete support for its format. I made an example where reports can be generated in PDF file format using iText library for Java. I made a swing app and we enter the data and then click the create pdf button to generate...
Continue Reading →

Tuesday, June 23, 2015

L-Systems | Sierpinski Triangle in VB.NET

The Sierpinski triangle (also with the original orthography Sierpiński), also called the Sierpinski gasket or the Sierpinski Sieve, is a fractal and attractive fixed set with the overall shape of an equilateral triangle, subdivided recursively into smaller equilateral triangles. Public Class...
Continue Reading →

NumPuzzler Game in VB.NET

A Simple game to chill your time . Enjoy your game . But the humor is that I have made this game and I was unable to win. Complete Project Download Download EXE's Only [x64 and x86] Related articles PiXMatch - A Picture Matching Game in VB.NET 3D Rotating Square with WebGL in Three.js Example...
Continue Reading →

Modified Atbash Cipher code in Python

(Photo credit: Wikipedia) The Atbash cipher is a very specific case of a Monoalphabetic substitution cipher where the letters of the alphabet are reversed. In other words, all A's are replaced with Z's, all B's are replaced with Y's, and so on.  I modified this general scheme somewhat...
Continue Reading →

Follow Me!

Blog Archive

Followers

Visitor Map