Tuesday, December 29, 2015

Get you current class name in logger log4j using Java

Log4j is very important utility for debugging error in Java code. This low level utility will give the exact class, method and line where error is occurred.

Just declare the below line in Base class which is extended by child class

public final Logger logger = Logger.getLogger(this.getClass().getSimpleName());

Eg:
In my com.aut.AppTest.java
logger.info("this line is to debug java code");

OUTPUT
2015-12-29 16:45:32 INFO  AppTest     - this line is to debug java code

Now if getSimpleName() is replace by getName() the logger will log details of package as well.

Monday, November 23, 2015

Ubuntu Install guest addition via Terminal

I faced issue with installation of Virtual box guest addition for making my Ubuntu Virutal OS full screen.

I tried after starting ubuntu virtual machine.
Devices > Install Guest addition.
Got error message and unable to install even after force mount.

Solution:
I install virtual box guest addition via terminal with below command
sudo apt-get install virtualbox-guest-utils

Monday, October 12, 2015

Hidden Google chrome Browser game

Hidden Google chrome Browser game when internet is disconnected. Press UP arrow key to start

Thanks Sankalp

Sunday, September 20, 2015

BUG: Tiny URL crashes google Chrome browser

With this tiny URL http://a/%%30%30 you can crash Google Chrome.
Tested above link in Chrome latest version 45.
Interested why and how this happens, read more...
Tweeted

Saturday, September 19, 2015

iOS9 vs iOS8.4 on iPhone 4s, 5, 5s and 6

hope all are aware of iOS 9 got release on sep 16th 2015. Here is a 8.59 minute video comparison between iOS 8.4 and 9 on iPhone 4s, 5, 5s and 6. Enjoy and share the post

16 minute video on new features of iOS 9

Thursday, August 27, 2015

WhatsApp android got 5 new Features

WhatsaApp Messenger v2.12.250 got new features -
1. Mark chat as read/unread.
2. Custom notification.
3. Mute individual contacts
4. Lower data consumption during call option under Setting > Chats and calls > check 'Low data usage'
5. Added new emoji and choose a different color.

How to fix 'com.android.acore' error?

Fix annoying unfortunate error of 'com.android.acore' while using your Android contacts or recent dial app.

Go to - Settings > Apps > All
now 'Clear Data' for Contacts and Contacts storage app.

Monday, August 24, 2015

Are you aware of inbuilt hidden Android Game?

I was just travelling in Mumbai local train and a guy sitting near me was playing a game with Lollipop and Android cartoon. Games seems very difficult.

As a Mobile game fan I was curious to know which game it was??? After having close look into his mobile I found that he didn't install it from Play Store or any third part app store. But game is installed in the Android OS.

Here is the way to open the game -
1. Open Settings from Menu
2. Select the last option 'About phone'
3. Tap very fast and continuously on your 4.4.x or 5.x.x 'Android version'. See below image -
 4. Keep tapping or swiping on screen to start the game.

Kitkat 4.4.4
Android Kitkat Game
Lollipop v5.1
Andriod Lollipop Game

CyanogenMod 12.1
Custom ROM CM12.1
Play and put your score in comments. :)

Waiting for Marshmallow version :). Check out the Android delicious versions here

Friday, August 21, 2015

Android M - brief history of android

Google gave the name to its new Android flavor 6. Its Android Marshmallow will hit its first device in early October 2015. Android M will have fingerprint sensor and more enhance power saving mode i.e. more life to battery.

Android Sweet and delicious Version Journey - Google has follow the alphabetic order for its android version name. The first two version were Alpha and Beta and then all the following version were named on Sweet and delicious.

3. Cupcake (v1.5 April 2009)
4. Donut (v1.6 September 2009)
5. Eclair (2.0 October 2009)
6. Froyo (v2.2 May 2010)
7. GingerBread (v2.3 December 2010)
8. Honeycomb (v3.0 February 2011)
9. Ice cream sandwich (v4.0 October 2011)
10. Jelly Bean (v4.1 June 2012)
11. Kitkat (v4.4 September 2013)
12. Lollipop (v5.0 June 2014)
13. Marshmallow (v6.0 May 2015)

Friday, August 14, 2015

How to display static variable in java debug mode | Eclipse IDE

How to display static variable in java debug mode?
Click on arrow key pointing downward direction > Java > check Show static variable.
Refer below image -

How to displaye static variable in java debug mode?

Thursday, July 30, 2015

Moto E, G, X - Unlock the Bootloader

Now the 1st step of rooting Android mobile is Unlocking the Boot-loader.

WARNING - Unlocking bootloader will void the warranty and erase all your data on phone.

1. Take the backup of all your data's from Mobile to computer or Cloud.
2. Install Android SDK manager or  Minimal ADB and Fastboot tool.
3. Install Motorola Device driver.
4. Now put your android mobile to fastboot flash mode. Click here for help.
5.Open command prompt on your PC and navigate to Android SDK manager or  Minimal ADB and Fastboot tool path.
6. Connect your Mobile to PC via USB cable.
7. Type following command in command prompt
       fastboot oem get_unlock_data
8. You will get a some string in 4 line. Copy the string in notepad and remove empty spaces make it single line.
9.  Now Create account in Motorola site here.
10.  Paste the string in text box and click on button 'Click my device be unlocked?'
11. After this 'Request unlock key' button will be displayed. Agree the term and condition.
12. You will receive a mail with YOUR_UNLOCK_KEY for your mobile.
13. Copy YOUR_UNLOCK_KEY from mail
14. In command prompt type following command -
      fastboot oem unlock <YOUR_UNLOCK_KEY>
15. Now wait for sometime and soon you will receive Bootloader unlocked

To relock you bootloader click here

How to put Android mobile into Fastboot Flash Mode

Open fastboot mode on android device by below simple steps -
1. Switch of your mobile device
2. Press and hold for few seconds - Volume Down button and power button simultaneous.
3. Release the buttons and its done.

Below image shows fastboot flash mode -

www.zinip.blogspot.com

Tuesday, July 28, 2015

Moto e Boot Loop after CyanogenMod 12.1 updates

Moto E(Xt1022) 1st generation Boot loop after updating CyanogenMod 12.1 (CM12.1)


How to Root my Moto E, G and E mobile?

I just rooted my Moto E 1st generation (XT1022) android mobile. Here you can follow the simple guide to follow for all the Moto version.

Prerequisites :
i. Install Android SDK.
ii. Download Motorola Device Driver

Follow the simple step once Prerequisites are done -
1. Unlock the Bootloader
2. Actual rooting of Moto E
3. Changing the Boot loader warning Image

Hope you learn something from my Post. Do comment and provide feedback.

Thursday, July 23, 2015

web.whatsapp.com FACT

Hope you are aware of whatsapp started web application that can be accessed on Desktop and Laptops as well. http://web.whatsapp.com/
I Started using web.whatsapp.com on my lappy using my WiFi connection and switch OFF my mobile data, web.whatsapp was not working but as soon as I switch ON the mobile data web.whatsapp started working.
So, web.whatsapp is using Mobile Data/Mobile WiFi connection instead of Laptop broadband or Wifi.

Read CSV from S3

 import csv def count_records(csv_file):     record_count = 0     first_line = None     last_line = None     # Open the CSV file and read it...