URL Shortener Followup

Posted: Saturday 22 June 2013

With the current trend in URL shorteners, it's difficult to make sure what url redirects where, such as whether or not that tinyurl link leads to one of those shock websites.
A few years back Twitter offered and announced its t.co url shortener service that is now the standard URL shortener for all of twitter's link, making projects like this useful: http://tweeplus.com/#
However, at the same time, Twitter had made raw links quite ambiguous - for example: http://t.co/uUiGMyzFIH
Basically, what I have created is a once-only URL followup, or to be more concise to its objective, a "URL Shortener Followup", which is a simple web tool that it analyses your link once, to see where a URL will redirect to.
This concept has most likely been thought about years ago, however this followup tool is unique in that it will only attempt to detect any redirects exclusively from your URL and not attempt to follow up or send a request to any secondary URLs that your link redirects to, keeping links that have a certain expiration time or secret token(s) confidential and untouched.

iOS 7 Beta 1 Compass Fix

Posted: Saturday 15 June 2013

As a beta, iOS 7 is amazing, however, there are quite a few issues that will be hopefully resolved in the final version of iOS 7.
The compass app may not work on your iPhone as it may get stuck on "Complete the circle to calibrate" whenever you open up the compass...

Re enabling input elements with javascript

Posted: Friday 14 June 2013

Throughout my experience with HTML and javascript, re enabling input elements with javascript is an issue that has really caught me off guard, and one of the main reasons as to why I put off using disabled inputs.
Basically, every single time I attempt to create a script that will disable and enable an input button (as in making a button unclickable and clickable), I end up creating code that looks something like this:



document.getElementById("button1").onclick=function(){
    document.getElementById("button1").disabled="true";
}
document.getElementById("button2").onclick=function(){
    document.getElementById("button1").disabled="false";
}
and it has never worked, as much as I would like it to - despite the fact that setting "disabled" to be false should enable the input element.
Searching Google reveals this question on Stackoverflow: http://stackoverflow.com/q/6835165/1756941, which has an answer that does not meet StackOverflow's guidelines and expectations (ie. a link-only answer).

To make the code above work as intended is simple, and the solution is actually very simple.
just remove the quotes... And that's it!
Demo:

Code:

document.getElementById("button3").onclick=function(){
    document.getElementById("button3").disabled=true;
}
document.getElementById("button4").onclick=function(){
    document.getElementById("button3").disabled=false;
}
This is because the disabled attribute on an input element is a boolean, and text is always considered to be true. However you can find this out yourself!
Demo:


Code:

document.getElementById("button5").onclick=function(){
if ("false"){alert("\"false is true! (as a string)\"");}else{alert("\"false is not true! (as a string)\"");};
if ("false"==true){alert("\"false is true! (compared to true)\"");}else{alert("\"false is not true! (compared to true)\"");};
}
This seems illogical, as even as a text, false should be considered as false, especially when set as an attribute, but then again. This is javascript we're talking about...

iOS 7 Beta 2 Download Links + Install Guide

Posted: Tuesday 11 June 2013

iOS 7 has been released!


Update iTunes to iTunes 11.1 and connect your iPhone, if iTunes does not recognise your phone then follow these instructions:

  1. Right-click the Apple iPhone, Apple iPad, or Apple iPod entry in Device Manager and choose Update Driver from the shortcut menu.
  2. Click "Browse my computer for driver software."
  3. Click "Let me pick from a list of device drivers on my computer."
  4. Click the Have Disk button. (If the Have Disk option is not present, choose a device category such as Mobile Phone or Storage Device if listed, and click next. The Have Disk button should then appear.)
  5. In the "Install from Disk" dialog, click the Browse button.
  6. Use this window to navigate to the following folder: C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers.
  7. Double-click the "usbaapl.ini" file. (This file will be called "usbaapl64.ini" if you have a 64-bit version of Windows. If you don't see "usbaapl64" here, or if there is no Drivers folder, look in C:\Program Files (x86)\Common Files\Apple\Mobile Device Support\Drivers. instead).
  8. Click OK in the "Install from Disk" dialog.
  9. Click Next and finish the driver-installation steps. Open iTunes to verify that the device is recognized properly.

Then just update your iPhone from iTunes like a normal iOS update (iTunes should notify you about it)

Original Post

Not an Apple developer but want to test out the latest and shinest iOS version, iOS 7?
The following post contains download links for various versions of the latest iOS 7 Beta, iOS 7 Beta 2:
Scroll down for links for the iPad 2, iPad 3, iPad 4, iPad Mini 1, iPhone 4, iPhone 4S, iPhone 5 and the iPod Touch 4th Gen iOS 7 Beta 2 firmware.

Aligning two objects together to centre in Illustrator

Posted: Wednesday 5 June 2013

Illustrator allows for the quick alignment of objects using the icons featured in the toolbar above the artboard.