VirtualBox, Ubuntu Guest, Shared folders

Assuming your Ubuntu guest username is USERNAME: Make sure you have already installed the VirtualBox Guest Additions in the Ubuntu guest machine From the Ubuntu guest: sudo adduser USERNAME vboxsf Using the VirtualBox UI (Devices->Shared Folder Settings…) add the folder in the hosting machine that you wish to share. Restart the Ubuntu guest! (wasted too …

Continue reading ‘VirtualBox, Ubuntu Guest, Shared folders’ »

Sniffing HTTP and HTTPS traffic to understand app protocols

I needed to understand the protocol between an iPhone application and the server. There was no written documentation and the company that owned the application wanted me to build something based on the protocol. The first thing I tried was using squid as a proxy to intercept the protocol between the iPhone application and the …

Continue reading ‘Sniffing HTTP and HTTPS traffic to understand app protocols’ »

Speeding up MySQL imports from mysqldmp

If you need to import a very large SQL dump file to MySQL, the following should speed things up considerably: At the begining of the SQL dump file, add: SET autocommit=0; SET unique_checks=0; SET foreign_key_checks=0; and at the end: COMMIT; Then proceed as usual with the import, i.e mysql> source myfile.sql

Errors installing Ubuntu guest additions on VirtualBox

If you mount the guest additions and see a warning about missing kernel headers, and the additions don’t seem to work, and then after trying to launch the guest additions CD again you get VERR_PDM_MEDIA_LOCKED error and everything starts going downhill from there – this is the solution that worked for me: 1. Reinstall Ubuntu …

Continue reading ‘Errors installing Ubuntu guest additions on VirtualBox’ »

How I wasted an entire day on wrong MIME type

Problem description: External CSS file required by HTML was being downloaded from the server but not being applied to the Web page To add to the frustration, if the Web page (which, as mentioned, was rendered without the CSS) was then saved locally from the browser and then that file opened in the browser, it …

Continue reading ‘How I wasted an entire day on wrong MIME type’ »

Taking ScreenShots of your Mobile App

Android ∞ On Android, you first need to define an emulator if you don’t have one. You do this by launching Eclipse ADT > Window > Android Virtual Device Manager. One you have defined your emulator, you can check your Cordova app on it by: cordova build android followed by cordova emulate android It takes …

Continue reading ‘Taking ScreenShots of your Mobile App’ »

Some Cordova 3.3 gotchas (there are more)

Using the inappbrowser plugin: what should be in your config.xml is: <feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/> </feature> and not <feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.InAppBrowser"/> </feature> Also, if you want to use the back button handler on Android, make sure you have the following in your config.xml <feature name="App"> <param name="android-package" value="org.apache.cordova.App" /> </feature> Another issue …

Continue reading ‘Some Cordova 3.3 gotchas (there are more)’ »