Author: Mark

  • Mobile only CCS taking into account pixel density

    Here is just a CSS media query for targeting phones with a pixel width of no greater than 320px (eg. iphone portrait) taking into account the higher pixel density phones too. @media (max-device-width : 320px) , (-webkit-min-device-pixel-ratio: 2) and (max-device-width : 640px) {

  • Removing ie9 compatibility mode

    IE9’s compatibility code is one of the most annoying things in my opinion. For some reason it’s the default even when the site looks fine with it off….. and it can make the website look crap when it’s on. To get rid of it (or switch it off by default I’m not sure) just add…

  • Getting Bootcamp to work

    So I got my hard drive replaced today (for free, something wrong with the old one they said) and while Time Machine does a wonderful job of backing up, it doesn’t back up the bootcamp partition. So I had to reinstall it. It’s been a few years and I’ve forgotten all the steps, all I…

  • 50 Disney films, 50 Disney Impressions, 50 Disney Badges

    50 Disney films, 50 Disney Impressions, 50 Disney Badges

    Well, I’ve finished my journey of watching 50 Disney movies in 50 weeks. It was a very satisfying journey :3 Below are my quick impressions: Legend: :S = … :) = ok :D = recommended   To celebrate the occasion, I also made some badges. Unlocked badges are saved via cookies. Check them out here…

  • Impressions of Disneyland HK from someone who’s watched 45+ Disney movies

    Impressions of Disneyland HK from someone who’s watched 45+ Disney movies

    After watching Disney’s ‘Tangled’ at the cinema I decided to go on a pilgrim and watch Disney’s first 50th animated films in 50 weeks. After about 45 movies/weeks I went on a trip to Hong Kong and also went to Disneyland for the first time. These are my impressions of Disneyland HK. First off, the…

  • Cocos2d Anchor points

    I wrote this post because while working on Eternal Pain I kept forgetting how anchor points worked, being used to Flash and it’s wysiwyg interface. Cocos2d’s anchor point defaults in the middle of the object. The image below illustrates this. [clear] So, if you’re trying to make a hit area, you either make the anchor…

  • Making images not link to itself by default

    Some people might like it. I personally don’t want my images to be links to itself by default. To do this, open the functions.php file in your theme and put somewhere [php]update_option(‘image_default_link_type’,”)[/php] (I put it on the bottom)

  • How to edit an array as you’re looping through it

    I was getting random crashes and I wasn’t sure why. Then I found out changing an array inside a loop that was going through each of the array’s items causes this (makes sense when you think about it) What you should do is inside the loop, collect up all the items to be removed inside…

  • A nerdy Melbourne Trip

    I went to Melbourne for the first time from 21-24 of October. I did a lot of things for the first time, like riding a tram. :D [clear] While exploring the CBD, I stumbled upon the Screen Worlds exhibition at the Australian Centre for the Moving Image. Now I watch the Angry Video Game Nerd regularly…