If, as was promised 10 years ago, you go to blog.jking.id.au you will now be redirected to my new blog at jkingok.github.io .
Thanks for your patience, I guess?
A blog about tech things as they occur to me. Often Mac and Linux related, often blogged on the bus or train. At least that was the theory -- now I just put things here whenever I have something to say.
If, as was promised 10 years ago, you go to blog.jking.id.au you will now be redirected to my new blog at jkingok.github.io .
Thanks for your patience, I guess?
The below link describes App shortcuts deep-linking into the Settings app on iOS 5.
How to Create Custom Shortcuts For WiFi Settings, Airplane Mode, and More – No Jailbreak Required
(Blogger app keeps losing my text, so apologies for the abbreviated post.)
This captivated me so I hunted around for more options, here they are:
Call forwarding: prefs:root=Phone&path=CallForwarding
Call waiting: prefs:root=Phone&path=CallWaiting
Show my caller ID: prefs:root=Phone&path=CallerID
Mobile calls and data usage: prefs:root=General&path=USAGE/CELLULAR_USAGE
Greater choice for wireless access point owners
While my initial thought is that this is a clumsy idea (it means that you have to re-save your network password on all of your devices for the new SSID) I'm warming to it for a crucial reason:
Recently a couple of things have bothered me in WiFi geolocation:
1. I moved house. The location of the access point I own still registers the old address.
2. I bought a new access point secondhand. The location of that access point still registers as the original owner's address some 3000km away!
Now the _nomap solution won't fix either of these problems because both access points are already in the database. I am waiting patiently for Skyhook to trickle down the updates, if that's even the correct place (how do I update Google directly?).
But it can be used to great effect in another case: mobile wireless hotspots. Any mobile hotspot, be it a device, a laptop (such as a Mac or running Connectify), or a mobile phone has no inherent location, therefore I would love it if manufacturers (because we know no-one changes defaults) could append _nomap in their firmware to the default network name on such devices.
Then again, maybe all devices should do this to their default name upon factory reset, because it only takes being tracked once to get in the database and it's harder to get out once you're in (how often is Google really going to be sampling your network name in your neighbourhood anyway?) as in my above cases.
Of course none of this stops the nefarious among us, the information is out there anyway...
I have made more changes to Gitter. UI changes this time, no Git improvements yet.
I figured I would add a Browse button to view/edit files in the checked-out repository would be nice, so there it is.
And my commit log got longer than my screen, so I had to introduce a scroll bar.
I don't predict much work on this soon - it's a long weekend here and I'm driving next week :(
Same address as before to download.
UPDATE 2: And it should be fixed now. Note that I think there's a problem with timezones on commits but that's only a minor annoyance for me. It will affect you if Gitter isn't the only committer to your repository.
UPDATE: I'm a dummy. I've just learned after committing the source code that directories are trees in Git. Fixing this now. This affects the Commit button.
Okay so I promised this a little earlier but I haven't been carpooling until yesterday.
This is the first of the Android-on-Android scripts. It allows you to have a Git repository on your phone and optionally synchronized with a remote server such as Github.
It is very simple but I might expand it over time. It only supports the master branch and doesn't merge well.
Here is the script package. You will first need to install SL4A, Py4A, PyCrypto, Paramiko and Dulwich.
The source code will arrive shortly in my Github account.
Here's what I'm currently working on:
I'm toying with programming on Android but with a twist - I'm trying to do it all from my Samsung Galaxy Tab. This way I can do it anywhere. It's something my iphone doesn't offer and that I've recently become aware of through the SL4A scripting project and the many modules of Python.
Soon I will post some of the software I have been using and what I think of them and then I will follow this up with my first scripts.
The first scripts are building block development tools that make it easier to make more scripts in the future. Let me know what you think.
I have just figured out how to export my scripts from my Android tablet.
I like Git version control so wanted to useit to back up my scripts. However there was nothing I could find to perform commits from Android to somewhere like GitHub.
Enter Dulwich - git written in Python. I installed this to the phone (had to do it over USB unfortunately). I then found a code sample integrating it with Paramiko - SSH written in Python. That had a dependency on PyCrypto which is helpfully compiled as an egg on the Py4A page.
Now all I had to do is write a script to do the commit. Easier said than done. I've been spending all of my commute time on it and have only just got the first pushed commit into the repository.
Of course I wouldn't have had a chance of doing this on my iPhone! Three cheers for Android Scripting!
You can visit the fruits of my labour here. But don't expect much - I still have to learn how to push a diff'd second commit!