Implemented quick Cordova app testing in browser
and opensourced it… link is at: https://github.com/amnond/cordova-on-browser
and opensourced it… link is at: https://github.com/amnond/cordova-on-browser
Someone already made something similar: http://software.intel.com/en-us/articles/where-is-my-car-web-app-and-phonegap-app At this point I’m looking for a good cordova.js stub file – seems others are also looking for something like that but there aren’t any to be found in the small search I’ve made – only the Ripple chrome extension which only supports Cordova 2.0 and didn’t really work …
I’ve seen various attempts to use JavaScript to customise the file upload button. The browsers historically do not lend themselves to making this easy to achieve due to security considerations – the idea is not to make it simple for anyone to upload a file from the PC to a remote website without the user …
Continue reading ‘Brilliant JavaScript file upload function’ »
When running the project via xCode, the reason there was no access to the device sensors on iOS from JavaScript became apparent from the logs: ios ERROR: Plugin Compass not found, or is not a CDVPlugin. Check your plugin mapping in config.xml Of course, the config.xml was just fine, but at least this gave me …
To run our Cordova sample on iOS, I’m using a Mac OS/X Maverics with Xcode 5.02 installed. To add ios support in our compass application, from within the compass directory, issue: cordova platform add ios This went smoothly. Next, building the project: cordova build ios This also went smoothly. Finally: cordova run ios This yielded: …
Continue reading ‘Trying to get cordova sample running on iPhone’ »
Yeah, this is a silly one which you can easily find by running man du but somehow I never got to it and ended up using less efficient methods: du -h -d1 .
This will probably work on other versions of Ubuntu and Linux as well: Assumes you have python >= 2.6 already instaled: $ wget -P Downloads/ http://python-distribute.org/distribute_setup.py $ sudo python Downloads/distribute_setup.py $ sudo easy_install pip
Just some notes that have accumulated: when trying to mount a remote windows NTFS system via: sudo mount -t cifs //192.168.0.112/E -o username=Administrator,password=mypass /home/me/mybackup/ and receiving: wrong fs type bad option bad superblock on … this is because the cifs flag requires: $ sudo apt-get install smbfs more info here Adding a program to unity …
Just putting it here since the next time it’s needed I won’t remember: ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; got it from here
I found a good walkthrough the easy way at this page I’m replicating the text here in case it’s gets lost but the credit goes to Matthew Holt _______________ What follows is the text taken from Mathew’s blog: Install Homebrew ∞ In case you haven’t already, install Homebrew by following the instructions at the bottom …
Continue reading ‘Install PHP-FPM and MySQL on nginx in OS/X Mountain Lion’ »