Keep Walking!

Magic of flash.trace.Trace

One of the hidden treasures in the Flash Player is the flash.trace.Trace class. It was meant to be hidden, but in open-source nothing can be treasured without the world knowing it. The actual class implementation is available in the tamarin-central codebase. An excerpt of the class implementation is as under (copyright notices etc removed),


Read the full post here.

Agam | Adobe Flash Platform Summit

I recently had the chance of attending my first Adobe Flash Platform Summit. The whole experience was just awesome, and this I say not because I am currently with Adobe, but for the wealth of information, tips and tricks, demos and tutorials, the evangelist team shared. The sessions had packed a lot of information, which to grasp in the given time frame was difficult. Add to it the magical Bangalore weather and the tasty south indian dishes for lunch, my experience enhances many a folds.


Read the full post here.

In-Place Character Array Compression

Given a character stream as an array, compress the characters in place appending the number of continuous characters by the numerical value and then the character.
Read the full post here.

Make Sharing Easy

Yesterday a very dear friend of mine, Rajat Ahuja suggested me to add a Facebook Like or a Google +1 button to the blog so that sharing becomes easy. As this was something I had turned off a while back, bringing it in was not so tough. Hence, from just now all over my blog the following 3 buttons will appear along with the usual ReTweet button,


Read the full post here.

In-Place Character Array Encoding

Given a character stream as an array, encode the characters in place replacing given set of characters by their 3-character equivalent. The array is terminated by a `0x00` character. If the array cannot be fully encoded, the array should not be modified.
Read the full post here.

Java 7: Enhanced Syntax for Numeric Literals

As far as I know, Java never updated the syntax for defining integral constants since JDK 1.2, which seems like ages before. To end that drought, Java 7 defines enhanced syntax for the following,


Read the full post here.

Intermittent error establishing connection with Spring, Hibernate and C3P0

Most of the Java web projects (and desktop projects as well) use the well known Spring and Hibernate frameworks. I myself have been using them for over 6 years now, and must say, the benefits they have provided have been immense, both in terms of rapid application development, testing and of course, maintenance. With good amount of experience in using the both I rarely find it difficult debugging a bug, but sometimes, I have come across issues that have been both time-consuming and have thrown open unleashed areas of the frameworks. Recently, I happened to land debugging one such issue.


Read the full post here.

Time For Change

They say,

Change is the only constant.

How true this is, we realize as we keep walking down the lane of our life.


Read the full post here.

Java 7: String switching

Today, I started my journey into the world of Java 7. Quite late I know, but as they better late than never. So I now have a build of Java 7 SDK on my desktop, and spent some time fiddling with the new features in. One of the most striking features of Java 7, specially after working in ActionScript 3, is the ability to switch on strings.


Read the full post here.

Addition of Huge Astronomical Numbers

Add two astronomically huge numbers in Java where each digit is a node in a Linked list.
Read the full post here.

Lottery Ticket Winner Problem

Problem

Consider a list of lottery tickets where the only information available is the ticket number, and the contact/verification details of the purchaser. The tickets are sold as per 4 regions, East/West/North/South, and have the same as the first letter of the ticket number. Given that one has to traverse through all ticket numbers only once, design a lottery system to pick a winner.


Read the full post here.

ISBN Book Renaming | Updated

They say necessity is the mother of all invention. That’s right! As per my previous post ISBN Book Renaming, I had coded a small command line tool that helps in renaming books as per their ISBN number. As my father lay hands on the tools, and started using it, he found it useful but also complained that it lagged features, and yes, was buggy in a way ;)


Read the full post here.

ISBN Book Renaming

Being a lazy Saturday morning, on breakfast table my father told me that how he was spending his time. He downloaded some books from the internet where in the file was named using the ISBN number of the book, say as, 1590595262.pdf for the The Robosapien Companion, and that he was spending time renaming these books by searching Google and giving the file a proper name. I felt bad that me being a developer, still my dad was wasting time on something futile.


Read the full post here.

Project Euler

Project Euler, is a wonderful site dedicated to fun around mathematical puzzles and problems. In their own words,

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.


Read the full post here.

Majority Element in an Array

Find the majority element in an array where the element occupies more than 50% of the array.
Read the full post here.

Find number of set bits in a given Integer

Find the number of set bits in an integer N.
Read the full post here.

iChat 5 and Google Talk Account

Today, I was trying to setup Apple’s iChat application for connecting with my Google Talk account. I have been using a Mac for over two years now, but my primary machine was always a Windows one. For some reason, I had to setup the Mac running Mac OS X Snow Leopard as the active machine.


Read the full post here.

itoa() in Java

Implement itoa() in Java
Read the full post here.