Error: Emulator64-x86 quit unexpectedly

If your MAC is showing crash report with error "Emulator64-x86 quit unexpectedly" while launching the Android emulator, and you have tried other solutions but didn't help then you might want to repair the Disk Permissions for your MAC.

Go to Disk Utility and select disk where mac is running and hit "Repair Disk Permissions". 

The issue might be with the Virtual memory permissions and this could solve the issue.

Errors running builder 'Android Resource Manager' on project 'project name'. java.lang.NullPointerException

You may get the error while compiling the Android app "Errors running builder 'Android Resource Manager' on project 'lock'. java.lang.NullPointerException". You could also get this error while creating a project and you wouldn't be able to create the project altogether.

There could be multiple reasons for the error : 
  • Your project file might be missing
  • The dependent project library might be missing or
  • You might be building an app with Activity but the respective API SDK might not be installed 
If above are not the reasons then you might want to check out this




Script : Merging two file lines using python

I had two file containing some information per line. I wanted to merge the line from file one and line form file two as a single line and print on the console. 
I came up with below  script to do that. It takes the input as two file and print the output as merge of two files data per line.


import sys
def merge_files(argv):
f1 = open(argv[0], "r")
f2 = open(argv[1], "r")
lines1 = f1.readlines()
lines2 = f2.readlines()
count = 0
for line in lines1:
line =  line.rstrip() + lines2[count].rstrip()
print line
count = count + 1

if __name__ == "__main__":
    merge_files(sys.argv[1:])


Save the above code to file in python file.  Now you just have to execute the on command line as "python <filename>.py   file1 file2".


Caching is a technique used to store frequently accessed data in a temporary storage layer to improve system performance and reduce latency....