Skip to main content

Posts

Showing posts from December, 2010

Google Maps Mobile 5.0 = Awesome

Just updated the fresh-out-the-oven Google Maps. 5.0. Simply Awesome. The 3d images of NYC buildings, tilting, rotating, much smoother zoom operations, and better offline support make it a highly recommended update

Beginning with Android.

Got a new Android? This is the first place you should be looking at these tutorials.

Online Search for Market Apps:
If you are looking to search for market apps, and thinking that there no such online search tool? There may not be an official Google hosted online market replica, but appbrain.com gives one.

Installing Apps:
Most websites you browse on the laptop/computer, have what are QR codes (eg. shown below). These are like images that link to urls on other sites or market apps. So first you have to manually go to market place and search for "Barcode Scanner" and install an app by ZXing. From then, you can use the scanner to install various apps that can be looked up by QA Codes. This app can also get you product lookups (however there are specialised apps for that)


Appbrains.com app:
Appbrains has an app manager that can manage your apps, installing them and their updates. You create a profile online and all your installations are synced to your device. This may not be …

Big news for AppEngine - AlwaysOn Instances

Finally, AppEngine team got us the best gift of all for this holidays. AppEngine 1.4.0, Always-On Instances and more. And Just $9 a month buys you 3 instances that can stay alive – even on low or no traffic. Those sites you want to host on spring, or even grails – which left you worried about darn bad startup times – You can host now with AppEngine worry free.

Also, Channel API is a new introduction. Gives an asynchronous real-time two way communication mechanism with JavaScript enabled clients - aka Browser Push (Comet) communication. It would be interesting to see the ideas people will come up with.

Google lifted/increased a few limits on different APIs  to somewhat gracious levels. These may not be significant for most apps, but will definitely free your mind of concern

Import Mysql data (or a CSV file) into MongoDB

You have MySQL database. And want to move either all, or some of the data into MongoDB. There is no direct way to do it, as such, It can be done in two steps. (If you are here because you have a csv file instead (or directly) move on to Step 2.)

Step 1.
Export all of your MySQL data as a CSV file.

select columns INTO OUTFILE '/path/to/csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' from table [where clause]
Step 2.
Import the CSV into MongoDB.
Assuming you have MongoDB running (on local, defaults) run the following command
mongoimport -d dbname -c collname -type csv -f fields-sep-by-coma --drop /path/to/csv
if your csv file has a header row add --headerline.

p.s.: for more options on mongoimport look here

More tips on mongodb, coming