Posts

Showing posts from 2011

Quick Calc on Mac

Click on Apps icon - Select calculator Or open spotlight, type calculator and select the first option to launch calculator. Type in your numbers and operators to get the result, seems to be the most used one.  You can also use Dashboard (by pressing F4) and calculator should be there by default. BUt the easiest of them if your data isn't very complex is just open spotlight (cmd-space) and type in your data there... For e.g., 3^4*2 and the first result is your answer. :)

Android/Java Static Code Analysis Tools

Java/Android compilers in itself are very good and give very good warnings to inform about various issues/things done wrong. Just thought about trying free Static Code Analysis Tools and found the below: FindBugs PMD All have eclipse plugin urls, so you can add the URLs at the software site link and easily add the plugins. FindBugs Damn good tool. Install the plugin and then right click on a java/android project. You will find FindBugs Menu. Just click on FindBugs and it gives a very good overview of the review bugs in it's own perspective. Each of the bugs is categorized by the pattern (you can change the categorization in the toolbar) and it lists all the occurrence of that type in all files in the project under that.  Clicking on it, it gives a very very good description about what the error is and why that is considered to be an error. It indicates if its just a suggestion or performance issue or style issue.  Some of these were quite new for me and the e

Kaiwara and Avani Trip

Image
Date: 21st November Places Covered: Kaiwara, Kailasagiri, Kurudumale, Mulbagal and Avani. Vehicle: My Ritz Distance Covered: 280 Kms Start from Home @ 8 AM Back Home @ 10 PM We went to Kaiwara to see the Amaranarayanaswamy temple there.  A passer-by suggested us to visit Kailasagiri when we asked for directions to cave temples of Kaiwara. Didn't know it was man-made caves but it was first time I saw chaturlinga (4 faced Lingas like Brahma). Nice place to visit and temple free lunch was amazing. Details about this place: http://www.deccanherald.com/content/6954/snippets.html We came back to see Kaiwara caves with the lakshminarasimha temple in the caves and then saw the "Kaiwara" Thatha's Ashram + temple. We then headed to Kudurumale Ganesha temple near mulbagal. There is a large stone idol of Ganesha. After that we went to Anjenaya temple in Mulbagal town. It was supposed to be very famous but didn't find much crowd and the pujari there wa

Mac - dvd drive not visible in Finder

Image
In MAC, the dvd drive gets listed in finder only if a dvd is present. Else it's hidden. In some rare cases, even after you inserted a drive, the disk might not be visible in finder and since there is no eject hardware button near the DVD, there doesn't seem to be a way for removing the disk. Browsing around, found the following ways (from multiple sources) to eject the disk and re-insert it: Force restart finder. Open disk utilities (Applications/Utilities/DiskUtility) and the drive should be available there. Right click on it and select eject. Command line always rocks. Run the following in a terminal:  drutil tray eject Cross posted from:  http://techieconnect.blogspot.com/2011/11/mac-dvd-not-visible-in-finder.html

Open Terminal window here - Mac OS X

It isn't as easy as updating registry key in windows (or atleast I don't know). Found this link to be good source for app to do that. https://sites.google.com/site/michaelsafyan/software-engineering/open-in-terminal Chose the one with customized terminal window icon. If the folder Finder doesn't exist in your 'Application Support' directory, then do create it. If you have any other easy ways of doing this, let me know.

3rd Marriage Anniversary. Trip to Mysore

Last weekend Trip.. Turned out to be quite an adventurous trip especially from Talakad to Mysore. Left Bangalore at 1 PM and reached Shivanasamudra via Kanakapura road at about 3 PM. Visted Talakkad on the same day and stayed at Hotel DasPrakash in Mysore. Next day visited Mysore Zoo and Chamundi Hills. Returned home just after 10 PM.

Trip to Shimoga

Day 1. Covered the following places and temples:   1. Dasarighat - Chowdeshwari Temple.   2. Tiptur - Mallikarjuna Temple and Kempamma Temple 3. Shimoga - Kotte Anjaneya Temple and Kote Marikamba Temple Day 2: 1. Ikkeri - Old Shiva Temple 2. Sigandur - Chowdeshwari Temple 3. Jog Falls - Majestic Water falls Day 3: 1. Shakrebyle Elephant Camp - Similar to the more famous Dubare in Kodagu district. 2. Gajanur Dam - Nice view points but no photography allowed. 3. Tyavarekoppa Lion and Tiger Safari with zoo. Photos: http://www.facebook.com/media/set/?set=a.10150780489475015.724895.500085014&l=1917d85344&type=1 http://www.facebook.com/media/set/?set=a.10150781991065015.725321.500085014&l=f7bfef03c7&type=1 Links: http://en.wikipedia.org/wiki/Shimoga http://wikitravel.org/en/Shimoga http://www.karnatakaholidays.com/shivamogga.php http://www.travelingbeats.com/blog/shimoga-district-travel-info-karnataka http://soundsofsilence-shali

Chitradurga Visit

Snaps Around Chitradurga: First day of trip to Chitradurga. Covered the remote places in the district - 1. Vanivilas sagara 2. Halu rameshwara 3. Holakere https://www.facebook.com/media/set/?set=a.10150750800080015.716247.500085014&l=1fdf73c08a&type=1 In Chitradurga: Second (& last) day of the trip - 14th Aug 2011. Visited 1. Chitradurga Fort 2. Chandravalli Caves 3. Children's Park near some Mutt https://www.facebook.com/media/set/?set=a.10150754051195015.717121.500085014&l=4702d72cb9&type=1

Innovating at Intuit - SnapTax

Image
Check out the video.. especially the part between 1:16 and 1:21 :)

Sireesha 1st Year Birthday Celebrations

Sireesha 1st Year Birthday invite

Image
Created a simple tiny Android app Started at around 11 PM and completed around 5 AM.

Weave - a new iPhone app from Intuit

Intuit has just released a product called weave for ios platforms called Weave (Nothing to do with Firefox sync app - weave). http://weave.intuit.com/weave/ Weave will ensure that you never forget a todo. Quickly enter todos wherever you are and get alerts when you have an upcoming todo. Good things I found: 1. Nice UI 2. Has a good first use experience. Kind of demo mode with the help links showing how to proceed to the next step. Hovers over the screen and helps in clicking around. 3. Does many things :). Has money in - money out too. 4. No Android app - opportunity for us to create a better one? :) Bad: 1. requires a login before start 2. red theme - different from Intuit blue. 3. Projects - might not be so common word for general users and doesn't gel with the Todo's being created. 4. Does too many things :). Differs from Apple mantra - Do one thing and do it well. Money in - money out could have been a separate product. 5. No Android app

Aadhaar Developer Track - My notes

{DRAFT} Aadhaar Aadhaar Developer Track Chandra Mohan’s Notes   Next Generation Service Delivery Enabled by Aadhaar. By Nasscom (National Association of Software and Services Companies)   Authentication: -> Credentials -> Biometric Finance Inclusion platform - A+ Architecture Components: Software (Client) – MindTree Backend - Reduplication AUTHENTICATION L1, Accenture and Logistics : India Post prints and delivers it. Registrars : State Govts, Banks and LIC etc Enrolling Agents: 200+ Testing and certification of these enrolling agents -> Sify Training: For Operator Device testing and certification: STQC - Standardization Testing and Quality Certification http://www.stqc.nic.in/ Visibility: Portals driven by dynamic content. Can be drilled down State Wise and then District wise, sub district wise and so on Partner portal: Login to view their own view. Developer Portal: Precision Infomatic (M) Pvt. Ltd. Biometr

"Check your UID Status" Link

https://portal.uidai.gov.in/uidwebportal/enrolmentStatusGet.do Giving my details keeps returning 'NOT FOUND' though :(

Applied for UID

Applied for my UID along with Colleagues - Prashant and Saneesh. Good: The enrollers were very professional and courteous. For a one letter spelling mistake, they re-did the enrollment completely again. Know other govt agencies where even with 100s of mistakes, they say it's fine and don't bother changing anything. Not so good Experience: The entry part of demographics was time consuming. Retyping so much data in Kannada again was not expected (mainly for word changes like 2nd Cross to 2ne adda rasthe.. etc). The client/webapp kept showing error on demographics screen though all data was filled. The advice from a senior person there : Keep pressing "Finish" and it will take it. :)

Tumkur Temples Visit

{DRAFT} Places visited: Goravanahalli Devarayana Durga Namada Chilume Siddaganga Vishwa Shanthi Ashrama Vehicle: Ritz Distance Covered: 260 KMs Started at: 9:45 AM Returned at: 9:30 PM (After Dinner at Athithi Grand on Kanakapura Road)

Copy logcat output

If you want to copy the message from logcat and not the other fields like Time, pid, Tag etc, then you can use the command line option. (Eclipse doesn't allow copy of the messages column alone). ./adb -s logcat -v raw raw removes all the information except the messages and prints it out.

Masinagudi Trip

Date: May 30 and 31st Location: Masinagudi, Mudumalai and Bandipur Trip People: Pallavi, Divi, Mom, Sireesha, Lathakka, Jeeju, Aditi, Bhoomika and Papa. Transport: My Ritz and Jeeju's Wagon R Stay: The Tamarind Tree Resort.

Pooja at Dodballapur Anjaneya temple

{DRAFT}

Innovation Educators Conference - CLIC, ISB, April 29-30, 2011

{DRAFT} Attended Innovation educators conference at ISB, Hyderabad onApril 29th and 30th. Stayed at Hotel Ista near Gachibowli.

Unknown error on eclipse android console

Not sure what the below means: local emulator[343] : kCGErrorIllegalArgument: CGSGetDisplayBounds (display 2b3c4d11) Googling doesn't return any worthwhile links too.

Eclipse: Removing Todo: Auto-Generated comments

When you use Eclipse menus to create new class, constructor, method or even add a try/catch, typically it not only generates the functionality but also adds a TODO. This is good to indicate that the comment has to be replaced with a proper functionality. However in a team environment, it's not easy to make people delete the line and add the code. Task remains and it becomes difficult to delete it at the end. To remove the auto addition of that comment line, you have to follow the below steps: Goto Window -> Preferences -> Java -> Code Style -> Code Templates Click on Method Body. Click Edit. Remove the commented line. (Something like: // ${todo} Auto-generated method stub) Click Apply. Repeat the steps for other elements. Click save.

Eclipse: Removing Todo: Auto-Generated comments

When you use Eclipse menus to create new class, constructor, method or even add a try/catch, typically it not only generates the functionality but also adds a TODO. This is good to indicate that the comment has to be replaced with a proper functionality. However in a team environment, it's not easy to make people delete the line and add the code. Task remains and it becomes difficult to delete it at the end. To remove the auto addition of that comment line, you have to follow the below steps: Goto Window -> Preferences -> Java -> Code Style -> Code Templates Click on Method Body. Click Edit. Remove the commented line. (Something like: // ${todo} Auto-generated method stub) Click Apply. Repeat the steps for other elements. Click save.

Reference: Blog post on Identifying App Installations

Different mechanisms but nothing concrete yet: Identifying App Installations

Ugadi wishes

Wishing everyone a very happy Ugadi !!!

Ugadi wishes

Wishing everyone a very happy Ugadi !!!

Ugadi wishes

Wishing everyone a very happy Ugadi !!!

Google +1

About : http://www.google.com/+1/button/ Steps to enable Google +1: http://www.google.com/experimental/index.html My review: Sounds similar to Digg and facebook like. Hoped the +1 done by user would be restricted to his friends, but it's public to everyone out there :( 

Warning on app launch in emulator in MAC

Every time I try to launch my android app on emulator, i get the below warning: Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. Looks like this can be safely ignored as it's the problem with the emulator using deprecated api. Link: http://groups.google.com/group/android-developers/browse_thread/thread/f10995f2a829229d

Deleting user database

DBOpenHelper or SQLiteDatabase doesn't have functions to delete the database. Looks like there are people who are using file delete by going to the database location and deleting the file programmatically. The easier solution is : Android does provide the mechanism to delete the file. It's available in ApplicationContext though. You would do something like this: InstantReturn app = (InstantReturn) getApplicationContext(); // dbHelperInstance.close(); // dbInstance.close(); if (app.deleteDatabase(DatabaseOpenHelper. DB_NAME )) { Log.d(ViewConstant. APPLICATION_NAME , "deleteDatabase(): database deleted." ); } else { Log.d(ViewConstant. APPLICATION_NAME , "deleteDatabase(): database NOT deleted." ); }

Open javadoc in external browser - Eclipse

Solution: http://stackoverflow.com/questions/4413883/how-to-open-attached-javadoc-in-external-browser Should we do this for each workspace?

Function key on aluminium keyboards - MAC

Seen that many people do not find the Fn key in the new aluminium keyboard for mac and end up setting "use default functionality of function keys" in system preferences. However this affects the laptop keys too and might not be preferred by all. Solution: There IS a function key in the keyboard. Not in the place we expect it though. Look for the key under F13. :-)

Opening multiple instances of Eclipse on mac.

Double clicking on eclipse icon always opens the same instance on MAC. To solve this, you can open terminal (Command-Space to launch spotlight. Type in terminal and click on the top hit/Terminal link). Cd to the place where you unzipped eclipse. For .e.g,  Eclipse/Eclipse.app/Contents/MacOS/ Then run  eclipse &. (& makes sure you run eclipse in background, so that you can kill the terminal window.).

WebView loading external browser

If your webview loads external browser and doesn't display the contents inside the webview, do check if the page is doing any redirects. Redirects are by default launched in external browser.

Keyboard shortcuts for emulator

run emulator in tools directory of android sdk with param -help-keys. This lists the keyboard shortcuts understood by the emulator in your platform. For windows, the shortcuts displayed will be different than for mac.