developer

git pull fails “unable to resolve reference” “unable to update local ref”

Question: ❓❓❓ Using git 1.6.4.2, when I do a git pull I get this error: error: unable to resolve reference refs/remotes/origin/LT558-optimize-sql: No such file or directory From git+ssh://remoteserver/~/misk5 ! [new branch] LT558-optimize-sql -> origin/LT558-optimize-sql (unable to update local ref) error: unable to resolve reference refs/remotes/origin/split-css: No such file or directory 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 of it before. ThreadLocals are typically not so widely known Read more…

By admin, ago
developer

Create the perfect JPA entity [closed]

Question: ❓❓❓ I’ve been working with JPA (implementation Hibernate) for some time now and each time I need to create entities I find myself struggling with issues as AccessType, immutable properties, equals/hashCode, … . So I decided to try and find out the general best practice for each issue and 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. https://developers.google.com/maps/documentation/android/start Everything seems to work fine: The app displays maps Read more…

By admin, ago
developer

No newline at end of file

Question: ❓❓❓ When doing a git diff it says “No newline at end of file”. Ok, there is no newline at end of file. What’s the big deal? What’s the significance of the message and what’s it trying to tell us? Good Answer: 👌👌👌 It indicates that you do not 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 that the generated machine code is not dependent on being Read more…

By admin, ago