Surgeons Net Blog
Surgeons Net is an educational resource for surgeons. It's here that I'll make announcements about that website, but also write about any interesting developments in Surgery or useful snippets of information about IT. May also use it for a general rant about the NHS!
Friday, 25 January 2013
Appcelerator builds for Pieceable
I build a number of projects with Titanium Appcelerator which saves some time and space in simulator builds by symlinking. This app bundle won't work in Pieceable. There are some old patches to the Titanium build system, but they are for SDK version 1.8 and 2.0. We are now on 3.0.
So after a build the symlinks need to be converted to the orignal file. This cmd line does that trick.
First cd into ~/Library/Application Support/iPhone Simulator/6.0/Applications/<<APP UUID>>
then
find . -type l -exec bash -c 'FULLPATH=$(readlink "{}"); ORIGPATH="{}"; echo "Copying $FULLPATH onto $ORIGPATH"; rm "$ORIGPATH"; cp -f "$FULLPATH" "$ORIGPATH"' \;
Saturday, 12 January 2013
Dropbox module for Titanium Appcelerator
We have released our second module in the appclerator marketplace. A Dropbox Appcelerator module.
Dropbox is the well known cloud storage facility and we are using it for an up coming product. So first we needed to integrate that into Appcelerator with a native module.
Being a much more extensive API than the one for Testflight we needed something better to document it. Seeing that it was actually javascript we were documenting we plumped for JSduck. I place the commnets directly into the .m files. Extract them with a simple sed script and then put the whole thing through JSduck. Here is the result
http://docs.clinsoftsolutions.com/dropboxti/
The only way I could see the module being tested properly was an app that called all members of the API. And it also makes a great way for customers to evaluate and learn to use the product. So all the source to the example app is on GitHub https://github.com/ndastur/DropboxTi
Making nginx record true ip behind pound
Sunday, 25 November 2012
Appcelerator TestFlight SDK module
https://marketplace.appcelerator.com/apps/4114
There is also a CommonJS helper module that aids use
https://github.com/ndastur/TestFlightTiJS
Thursday, 22 November 2012
Add current directory as new remote git repo
The original post that helped with the actual process is:
http://blog.tomaszkiewicz.net/2011/10/moving-existing-local-git-repository-into-a-fresh-gitolite-setup/
Wednesday, 18 July 2012
OSX quicklook not working and SugarSync
So if you have tried all the other fixes, like:
- resetting permission
- deleting your quicklook preferences
- qlmanage -r and qlmanage -r cache
Then try quitting SugarSync. This worked for me.
Here is the forum link on SugarSync (http://sugarsync.hivelive.com/posts/ed67d0da04?start=46&stop=60) with reference to the issue
Saturday, 23 June 2012
Who comes up with these things
The other day I saw posters about an audit into drug omissions in hospitals. I can't help wondering how administering a drug is an omission!!
Saturday, 3 March 2012
Photographing the moon
Turned out to be more difficult than I thought. The first lot just came out as bright white circles. After a little reading it seems that bright sunny day settings are best.
So started at ISO 100 F11 1/125, which were okay. But I think the best shot I got was this one at F16 1/80
Note that this was on a fairly cheap Tamron 70-300mm zoom lens. So nothing fancy.
Enjoy ...
Saturday, 4 February 2012
Stop persistent networking interface assignment in cloned virtualbox
Add:
# ignore VirtualBox virtual interfaces
ENV{MATCHADDR}=="08:00:27:*", GOTO="persistent_net_generator_end"
to /lib/udev/rules.d/75-persistent-net-generator.rules
and delete the file
/etc/udev/rules.d/70-persistent-net.rules