developer

Get key by value in dictionary

Question: ❓❓❓ I made a function which will look up ages in dictionary and show the matching name: list = {'george':16,'amber':19} search_age = raw_input("Provide age") for age in list.values(): if age == search_age: name = list[age] print name I know Read more…

By admin, ago
developer

Hidden Features of Java

Question: ❓❓❓ After reading Hidden Features of C# I wondered, What are some of the hidden features of Java? Good Answer: πŸ‘ŒπŸ‘ŒπŸ‘Œ Double Brace Initialization took me by surprise a few months ago when I first discovered it, never heard Read more…

By admin, ago
developer

LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included

Question: ❓❓❓ I have an application that uses the Google Maps Android v2 API. I’ve added the google-play-services_lib library project to my workspace and added a reference to it from my application project, following the instructions on these pages: http://developer.android.com/google/play-services/setup.html. Read more…

By admin, ago
developer

GCC -fPIC option

Question: ❓❓❓ I have read about GCC’s Options for Code Generation Conventions, but could not understand what “Generate position-independent code (PIC)” does. Please give an example to explain me what does it mean. Good Answer: πŸ‘ŒπŸ‘ŒπŸ‘Œ Position Independent Code means Read more…

By admin, ago