Bookmarklet for fullscreen Google Maps

As a developer I use bookmarklets all the time. For those of you who don’t know: a bookmarklet is similar to a bookmark but instead of a hyperlink it points to: “javascript:console.log(‘…do some Javacript to alter the page you’re currently viewing’);”.
So when developing I tend to use it for lots of stuff: quick login into a secure part, automatically fill forms with random data, altering data I get from some site… I even used it to load and initialize the level editor for a game I recently built.

Here’s one I just made that strips everything on Google Maps but the map itself. Put the browser fullscreen and you’ve got the whole world to printscreen desktop images from. Siberia has some pretty awesome landscapes.

gm1

I first tried it the easy way, by injecting jQuery and taking it from there. Worked fine on maps.google.nl but curiously maps.google.com wasn’t too keen on script injection (even threw a warning). So I rolled up my sleeves and rewrote it to pure js.

Here it is.

Drag the above link to your bookmarks bar and head out to Google Maps to test it.

Posted in Uncategorized

Storing multiple properties in one integer using bitwise AND

Objects with multiple properties with each their own variable can get a bit messy. Here’s a nice solution to store multiple properties in a single variable.

continue reading

Posted in actionscript, code, java, javascript

Creating tileable noise maps

Creating a tileable image in Photoshop is easy; crop an image, take the cropped right and bottom and stick it left and top with a fade. But creating proper tileable noise maps is a bit trickier to get your head around if you want to do it right.

continue reading

Posted in code
Tagged , , , ,

Migrating a subversion repository from Google Code to Github

Recently I migrated TinySort from Google Code to Github. I’m a real Git noob so I expected a full history migration to be a real pain in the ass. Plus I also wanted to move both the open and closed issues (since they correspond to the regression tests). Luckily it turned out to be a lot easier than I anticipated.

continue reading

Posted in code, javascript, jquery, python
Tagged , , , , , ,

Logo

I really just wanted to update my WordPress core.

continue reading

Posted in css, graphic design

Tinysort: a tiny survey

For versioning I’ve always used SVN. I put opensource stuff on Google code and have XP-dev for private projects. Naturally I’ve also used Git sometimes, a lot of open source projects are on Github and when you work freelance your bound to walk into a Git project sooner or later.

continue reading

Posted in code
Tagged , , , ,

Android phone DOM

Cleaning up my phone the other day I found some cool stuff. Two years ago I coded some stuff while I was on vacation. This was also on it…

continue reading

Posted in code, html, javascript

LESS variables to Javascript

LESS CSS is great and all but what if you want to use the same LESS variables in Javascript.

continue reading

Posted in css, director, javascript

Interactive fluid dynamics in Javascript

Don’t know why, but after seeing Oliver Hunt’s fluid solver I wanted to use fluid dynamics on my site as an interactive particle flowfield.

continue reading

Posted in code, javascript, nature
Tagged ,

Using WordPress media library in a plugin

I just spent a couple of hours trying to figure this one out. Here’s how to use the WordPress media library in a plugin or custom post type… the right way.

continue reading

Posted in code, javascript, php, wordpress
Tagged , , , , ,