If you have a need to access domains on your local machine from the Android emulator, you should find this script helpful. You will need to replace my hostname (troy.local) with your own.
Put this script in the root Android developer folder (the same folder as platform-tools).
#!/usr/bin/env bash # You'll need to run this #./tools/emulator -avd NAME -partition-size 128 ./platform-tools/adb remount ./platform-tools/adb pull /system/etc/hosts /tmp/hosts echo "10.0.2.2 troy.local" >> /tmp/hosts ./platform-tools/adb push /tmp/hosts /system/etc cat /tmp/hosts
Just launched a new website for Earthmoving Solutions Australia. Let me know what you think.
Preview of a little Instagram menubar app I’m working on.
A simple way to add Retina Display support to your website.
The jQuery Retina Display plugin will substitute high resolution versions of your images (if they exist) for high resolution displays (such as iPhone 4) only.
This plugins requires no client-side changes , other than the inclusion and initialisation of this plugin. If the 2x image doesn’t exist, the standard resolution image is displayed. This allows for selective addition of high resolution images.
Of course, you will need to view these demos on an iPhone 4.
<script src="js/jquery.retina.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('img').retina();
});
</script>
The example above shows an attempt to replace all images with high resolutions versions. If you only want to attempt to replace some images (for better performance) you may specify a specific class: Eg.
$('img.retina').retina();
Visit the GitHub Repository to download
We should never allow the perfect to become the enemy of the good — Malcolm Turnbull (Link)