Sunday, December 2, 2012

CalcJS: Evaluating complex math expressions in JavaScript in 120 lines

Sometimes it’s useful to express our math thought more explicitly, so instead of saying: x = 10 * 1.1 * 1.3 we’d prefer to say: cost ...

Wednesday, October 24, 2012

Rabin Karp rolling hash - dynamic sized chunks based on hashed content

The Rabin-Karp rolling hash algorithm is excellent at finding a pattern in a large file or stream, but there is an even more interesting...

Sunday, October 7, 2012

Fixing Do you want the application 'iTunes.app' to accept incoming network connections?

Do you want the application 'iTunes.app' to accept incoming network connections? It's quite common to run into the problem ...

Monday, October 1, 2012

Android - The active editor does not contain a main type.

When you try to run you Android app in Eclipse using the keyboard shortcuts and you face the " The active editor does not contain a ma...

Tuesday, September 25, 2012

Instant sleep on MacBook - no sleepimage

Apple really cares about the content of my Macbook RAM. But I don't - I'd prefer to have that extra 2-3 minutes back when closing t...

Frustation guaranteed - be a newbie Java web developer

Whenever I want to face ultimate frustration, I know where to go: give a new Java web framework a try. Generally, I love technology, ...

Saturday, September 22, 2012

Installing SSH, VNC and SFTP on the MK802, the Android PC on a stick

There are some deals you just cannot ignore: a full Android system for $50? The RikoMagic MK802 sounded too good. The processor is fairl...

Monday, September 17, 2012

If Parallels does not start (Make sure that the prl_disp_service is active)

If you want to start Parallels and you get the following error message: "Unable to connect to Parallels Service. Make sure that ...

Friday, August 17, 2012

Sorting CSS styles and classes in your files with a Python script

When editing CSS files, it’s quite common that the length of the file gets so big that it’s hard to find the classes in it. Some IDEs l...

Thursday, August 16, 2012

Ignore non visible fields from JQuery Validation / ASP.NET MVC fluent validation

The JQuery Validation plugin is quite a smart tool to check the data consistency on client side but might need some extra tweaking to w...

Automatically reload HTML, CSS and Javascript files in browser when editing

When designing web applications or webpages, the early stages require very frequent modifications: alter the source code, check in the ...

Wednesday, August 15, 2012

Automatically setting the GPS location in Android emulator

The Android emulator is quite good at working with geolocation, but it’s a bit tedious to set the current latitude and longitude coordin...

Sunday, August 12, 2012

Manually schedule Time Machine / Capsule backup with iCal to run weekly or daily

If the Mac OS X Time Machine backup frequency is too short or too long, you can manually schedule the backups using your calendar (yes, ...

Generate & resize different Android launcher icon sizes with a Python script

When you change your launcher icon in Android, you have to create four different sizes (96x96, 72x72, 48x48, and 36x36) for different s...

Friday, August 10, 2012

MurMurHash3, an ultra fast hash algorithm for C# / .NET

Finding good hash functions for larger data sets is always challenging. The well know hashes, such as MD5, SHA1, SHA256 are fairly slow wi...

Friday, July 27, 2012

Ultra fast HashTable (Dictionary) with direct indexing

One of the most common usages of hash tables is to count/group occurrences of different elements in it, something like this: dict[“key”]++ ...

Monday, July 23, 2012

Quick select algorithm - find the Kth element in a list in linear time

Quick select algorithm (Hoare's selection algorithm) – select the Kth element or  the first K element  from a list in linear time W...

Sunday, July 22, 2012

Optional HTML content based on screen resolution - mobiles and high resolution desktops

Displaying optional content for high resolution or mobile users on your web page The W3C Media Queries provide a great opportunity to dis...

Monday, July 9, 2012

Smooth scrolling on Google Chrome

If you ever envied Safari on Mac - or to be precise envied how smooth it's scrolling was compared to Google Chrome, it's time f...

Thursday, July 5, 2012

Faster division and modulo operation - the power of two

The power of two - fast division and modulo operations There are some - admittedly rare - cases, when the division and modulo operations ...