Author Archive

Real Estate API

by on Nov.11, 2014, under club penguin

I’ve been working on a fairly comprehensive API for all real estate related data. It includes most of the data on properties, the real estate agents, agency data and some CRM functions.

Very useful for getting data in to and out of various different sources. It supports both JSON and XML.

Leave a Comment more...

Massive 3.6 meter tall LED Multi coloured Christmas Tree

by on Dec.13, 2013, under update

I’ve spent the last few months designing and building this RGB LED multi coloured tree. What you see is over 500 leds where every single one can be controlled independently to show 16 million different colours thanks to the absolutely brilliant WS2812 LEDs.

Each strip uses about 2 amps of power which means a lot of my time was spent on figuring out how to power it without tons of cable or something burning down. I ended up hacking apart a regular ATX computer power supply since they are great at supplying high power 12v and 5v. The strips run on 5v but the ATX power supply has to be 8 meters away which would produce a very large voltage drop. I settled on using the 12v rails and regulating them down to 5v with some cheap DealExtreme 5v high power regulators.

Since every single LED can be set to a different colour and I want it updating at least 30 times per second, about half a megabyte of data has to be transferred every second! This is handled by a Teensy 3.0 which is a Arduino compatible board with a ARM processor and it runs at 96 MHz. It handles the generation of the patterns and sending it to the LEDs via the ARM chip’s DMA controller which makes it very efficient. The controller and some of the voltage regulators are in two diecast aluminium boxes near the top of the tree, with more voltage regulators at the base of the tree to power it from both ends of each strip.

I intend to continue thinking up cool animations to code in to the tree.

Leave a Comment more...

Cheat in Candy Crush Saga: Easier than you think

by on Feb.28, 2013, under club penguin

Well the other day I took a little peek at Candy Crush Saga’s security mechanisms and I found them somewhat lacking. It is trivial to skip levels and input arbitrary scores and their servers will accept it without too much trouble.

Candy Crush Level Map

First you need to get your session id. In Chrome you can do it by opening Facebook, right clicking on a blank bit of the page and in the Developer Tools menu clicking ‘Network’. Then open the game.

Chrome Developer Tools showing the gameInit request

You will see a lot of different hits that your browser is making, but you want to scroll down until you find the gameInit request. Copy and paste that url in to a new tab to load it and scroll right down to the bottom. There will be a chunk of text at the bottom like “currentUser”:{“userId”:10169xxxxx. 10169xxxxx is your user id so keep that for later. In the url you also see gameInit?_session=M-RzT9CNQfjM6xxxxxxx and the part after the = is your session id. You also need this.

Behind the scenes Candy Crush Saga uses a different naming scheme for the levels. You have an episode id and a level id. Episode id seems to be after every ‘break’ in the track in game and level id is the number of levels after the break starting from 1. For example level 39 is episode 4 level 4.

So you now have the following information:

Episode id: 4
Level id: 4
Session: M-RzT9CNQfjM6xxxxxxx
Facebook id: 10169xxxxx
Score: 123456 (Make something roughly plausible up for this)

You now need to make the security checksum. They simply hash a specific string and use the first 6 hex characters. Open a online MD5 tool such as this one which has a text box and a button and it outputs a string of gibberish when you press the button.

In the text box write this, filling in the values inside the square brackets as you go:

The bit on the end is their ‘top secret’ verification string. You end up with something like this:

Pop that in to the MD5 box and hit hash. Make sure there are no spaces before or after your text as that changes the outcome. You should get 72a872f0399990657b6dd5fd2012691d for this example. You are only interested in the first 6 characters so keep 72a872 and ignore the rest.

Then you create the magical submit score request and load it in your browser. Fill in the blanks then open it. :){“score”:[score],”seed”:1361826675157,”cs”:”[6 character hash]”,”timeLeftPercent”:-1,”episodeId”:[episodeId],”reason”:0,”levelId”:[levelId]}&_session=[sessionId]

Remember the bits in [] brackets are the sections you replace. Don’t alter the rest.

Happy cheating.

17 Comments more...

Strip all but certain characters from a string in PHP (such as alphanumeric, numeric, etc…)

by on May.09, 2012, under internet

The #1 result in Google for stripping characters out of strings in PHP is awful and uses the deprecated ereg_replace function so lets make a new search result using preg_replace which is much better, faster and it is fully supported in PHP 5.3 and 5.4.

Allow only alphanumeric:

$out = preg_replace('|[^A-Za-z0-9]|', '', $in);

Only numeric:

$out = preg_replace('|[^0-9]|', '', $in);

Alphanumeric with whitespace:

$out = preg_replace('|[^A-Za-z0-9\s]|', '', $in);

The ^ means match everything that is not listed, so you just list anything you need like symbols, numbers and letters and it will match everything else and replace it with nothing leaving you with a nice clean string. You can use this to filter stuff like hexadecimal, base64, postcodes, or just to force plain text.

Leave a Comment more...

Australian Aerial Photography

by on Mar.20, 2012, under internet, realsauce

We’ve recently been provided with some really high aerial photography of various places such as Armidale, Batemans Bay, Broulee, Forster and Narooma.

It goes down from 10 to 6 cm resolution on the ground which is 8x better than Google’s satellite imagery in those areas.

It chews up over 100gig at the moment and more areas are being flown. Had to drive a portable hard drive of data to the data center to move it all. When you can very clearly see individual wires on a power line you know its good footage.

Leave a Comment more...

Apartments Australia is now Live!

by on Dec.02, 2011, under club penguin

Apartments Australia is a new real estate portal we have created to focus on Apartments, Townhouses and Units. We’ve given it a modern design, quite unlike most real estates on the net today. It also features some new features such as SMSing a property to yourself.

Leave a Comment more...

Google Crawl Rate – Wow!

by on Oct.16, 2010, under google, internet

Well usually Google’s maximum crawl rate in Google Webmaster Tools is limited to 0.5 requests/second as the fastest rate possible with the slider.

The growth of PropertyNow however has caused that speed to increase – first to 0.8 requests/second then to 1.5 requests/second then even faster still to 2.5 requests/second.

That is the fastest I’ve ever heard of. There has been a increase in quality content, and also the server can handle the speed, so naturally Google wants to crawl it all as soon as possible and refresh it as often as possible. The logs show that they do actually push that limit but in bursts rather than constantly.

This change has also coincided with alterations of the search results. All keywords dropped temporarily during the speedy crawl period.

Very interesting stuff indeed.

1 Comment more...

PropertyNow and Google Crawl Stats

by on Oct.08, 2010, under google, internet, realsauce, website

PropertyNow Real Estate has just recently opened its doors to agents and its done so in a big way. A very large number of agents have already signed up and more are coming.

So much so, Google has taken a interest. Googlebot has been frantically crawling the past couple of days, and the Crawl Rate settings have changed as well. Usually you cant ask Googlebot to go any faster than 0.5 requests/s  but it is now letting me select up to 1.25 requests/sec or 0.8 seconds between requests! I’ve never seen that behaviour before.

We’ll have to see if that is reflected by a improvement in the search results. Fingers crossed.

Leave a Comment more...

4chan and AFACT

by on Sep.29, 2010, under internet, vps, website

4chan has been on a rampage against any anti-piracy groups who annoy them and the list of casualties is pretty long.

Yesterday they attacked AFACT (Australian Federation Against Copyright Theft) and managed not only to take their site out, but they completely flattened NetRegistry who was their host.

On Whirlpool, NetRegistry is now being slammed for hosting them. It sounds like they will lose a bit of credibility after this one. Not only because some people are sympathetic towards 4chan’s cause, but also because NetRegistry willingly hosted a high risk site right next to everyone else’s website.

You really see a host’s true colours after a incident after this. A NetRegistry rep, Angelina Potapova, isnt handling the criticism very well. She’s basically said that anyone who criticises them must be one of the attackers which isnt a smart move when they are your customers or potential customers. She also incorrectly credited the attack to The Pirate Bay when it was 4chan who is completely unrelated.

As someone who pays for hosting through a provider, if they were hosting a high value target such as AFACT anywhere near my hosting, I’d be looking very closely at my SLA and I’d also look for a new host. Keeping them on the same infrastructure as everyone else is horribly stupid.  Not that it would have mattered if NetRegistry separated the site because the DDoS flattened their routers as well from the sound of it. They completely went offline for a good hour or two and everything was sluggish for quite awhile later.

I sure hope they are making AFACT pay for breaking everyone’s SLA…..thats if they have one. I couldnt find theirs which isn’t a good sign for their customers.

By the way, yes AFACT is the group that has been suing iiNet for not breaking the law and giving AFACT personal details on subscribers so my sympathy is limited.

2 Comments more...

Bizarre and quirky things

by on Sep.28, 2010, under internet, update

Well I’ve finally gotten the Luxury Homes Australia Blog going which has got some pretty cool things. We send them out as a newsletter every week or so.

I’ve also managed to finally find a very tall lava lamp. I’ve been looking for one for ages but its almost as if they dont exist. Its nice and tall with a metal stand which supports it. Only come in blue and red with clear liquid but beggars cant be choosers. $40 made it a quick sell. :)

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!


A few highly recommended websites...