Author Archives: Sjeiti

Testing for unused functions with Grunt

I’m relatively new to Grunt. I had used it before in several projects but it was already set up and working fine, to I didn’t really look into it. Besides, the sheer amount of options/plugins available put me off a bit. That and time being money. But in between projects I have a bit of [...]

Posted in code, javascript, jquery | Tagged , , , , | Leave a comment

A freelance developer’s tool box

As a freelancer it’s always a challenge to find the right tools for the job. No collective knowledge base of colleagues you can quickly pop a question to. On the other hand, being a freelancer also gives you the unique opportunity to have a peek in the kitchen of various companies. And I’m always curious [...]

Posted in code, work | Tagged , , , , | 4 Comments

Bookmarklet for fullscreen Google Maps

Here’s a bookmarklet 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.

Posted in Uncategorized | 4 Comments

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.

Posted in actionscript, code, java, javascript | Leave a comment

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.

Posted in code | Tagged , , , , | 6 Comments

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 [...]

Posted in code, javascript, jquery, python | Tagged , , , , , , | Leave a comment

Logo

I really just wanted to update my WordPress core.

Posted in css, graphic design | Leave a comment

Tinysort: a tiny survey

Help me decide whether to move Tinysort to Github… or not…

Posted in code | Tagged , , , , | Leave a comment

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…

Posted in code, html, javascript | Leave a comment

Test Rainbow line numbering

function mediaSendToEditor($html, $attachment_id, $attachment) { // check for the GET vars added in boxView parse_str($_POST['_wp_http_referer'], $aPostVars); if (isset($aPostVars['target'])&&$aPostVars['target']==’foobarbaz’) { // add extra data to the $attachement array prior to returning the json_encoded string $attachment['id'] = $attachment_id; $attachment['edit'] = get_edit_post_link($attachment_id); $attachment['input'] = $aPostVars['input']; $attachment['preview'] = $aPostVars['preview']; if ($aPostVars['type']==’image’) { foreach (array(‘thumb’,'medium’,'large’) as $size) { $aImg = [...]

Posted in Uncategorized | Comments Off