Quantcast
Channel: Software Salad
Browsing latest articles
Browse All 21 View Live

Image may be NSFW.
Clik here to view.

Find the character position using javaScript: FAST, BIG pages, ALL browsers,...

During my masters year at University, I set out to experiment with a modeless editing model. I decided to use the web at my content environment: the challenge became to making the web editable. I did,...

View Article



Image may be NSFW.
Clik here to view.

Programming Praxies – Egyptian Fractions, C# solution.

This post presents C# solutions to a coin change problem as described in http://programmingpraxis.com/2013/06/04/egyptian-fractions. An Egyptian fraction was written as a sum of unit fractions, meaning...

View Article

Image may be NSFW.
Clik here to view.

Non-blocking Writer Collection (C# Example)

A question was posed to me recently: If you had a thread that produced messages, and pushed those messages one or more consumer threads: how would you write the code to ensure that the producer thread...

View Article

Image may be NSFW.
Clik here to view.

A reflection on code reflection: where it helps, and where it hinders.

Today at work I broke some of my team project’s unit tests from a seemingly harmless code change (C#). I simply changed a protected member into an auto-property. Unfortunately the code change was...

View Article

Image may be NSFW.
Clik here to view.

Programming Praxies – Finding Digit Strings In Powers Of Two

Today’s boredom lead me to solving another programming praxies problem: Search every power of two below 210000 and return the index of the first power of two in which a target string appears. For...

View Article


Image may be NSFW.
Clik here to view.

XML Serialization for interfaces in .NET

In your quest to find out how you can support XML serialization for types that contain interfaces, you may often find yourself coming to the same answer: you cannot serialize interfaces. That is true,...

View Article

Image may be NSFW.
Clik here to view.

Augmented Interval Tree in C#

Interval trees are an efficient ADT for storing and searching intervals. It is an ADT that probably doesn’t make the top 10 most commonly used collections in computer science. I often see code where a...

View Article

Image may be NSFW.
Clik here to view.

Helpful Tips for your Raspberry Pi Media Centre. Part 1: Hardware

It was about time I geeked it up and setup a DIY media centre for my home. I decided to go for the cheap and cheerful hardware option to power my media centre: Raspberry Pi. Only £25 (for the actual...

View Article


Image may be NSFW.
Clik here to view.

Reservoir Sampling

Reservoir sampling is a great random sampling algorithm every data engineer should know. It’s an algorithm for extracting a random sample of a specified size, over a large unbounded dataset. The data...

View Article


Image may be NSFW.
Clik here to view.

Bit bucket – a FREE version control provider

This is just a shout out to Atlassian’s bit bucket service: https://bitbucket.org. It provides free git hosting. Yes freeeeee! for up to 5 devs on the same project. Brilliant!Filed under: Uncategorized

View Article
Browsing latest articles
Browse All 21 View Live




Latest Images