Monthly Archives: June 2012

jQuery JavaScript Code Snippets

This overview is handy towards stepping back and forth between jQuery and JavaScript. First line is jQuery and the following line is the corresponding function in JavaScript. jQuery $(document).ready(function() { // code… }); JavaScript document.addEventListener(“DOMContentLoaded”, function() { // code… });

Posted in Tips and Tricks, Windows Tagged with: , ,

Android Different Application Signatures

When developing and publishing Android from Eclipse you might run into this error on your device. Re-installation failed due to different application signatures. You must perform a full uninstall of the application. WARNING: This will remove the application data! Please

Posted in Android, ErrorFix Tagged with: , ,

Eclipse Android Unexpected Error While Launching Logcat

In Eclipse starting up the Android emulator the LogCat does not always detect it. In the console you can read the following error: Unexpected error while launching logcat. Try reselcting the device.] device not found com.android.ddmlib.AdbCommandRejectedException: device not found at

Posted in Android, ErrorFix Tagged with: , ,

Switching To Landscape Mode In Android Emulator

To switch the Android Emulator there is the following shortcut depending on the system you are running. ctrl+fn+F11 on Mac to change the landscape to portrait and vice versa. left-ctrl + F11 on Windows 7. ctrl+F11 on Linux. To change back to portrait use the

Posted in Android, Tips and Tricks Tagged with: , ,

Android LinearLayout Programmatically Set Vertical or Horizontal

In Android you might want to set the orientation programmatically in Java for a LinearLayout. You do like this: LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); // or horizontal like this layout.setOrientation(LinearLayout.HORIZONTAL); LinearLayout.HORIZONTAL also got the integer value 0 and Vertical got

Posted in Android, Tips and Tricks Tagged with: , , ,

Android Change Project Build Target

If you have started the project build target on a lower API like 7 and want to change this to the API 15. Right-click the project and select “Properties”, then choice the “Android” from the menu. You can now select

Posted in Android, ErrorFix Tagged with: , ,

Android Fill_Parent is deprecated

When in Eclipse developing Android going from different API you run into function that has been deprecated. In this case it was from API 8 with Params giving this warning: “The field ViewGroup.LayoutParams.FILL_PARENT is deprecated” “public static final int FILL_PARENT

Posted in Android, ErrorFix Tagged with: , ,

Android URLEncoder warning

When developing Android and going up in API level you’ll run into this warning when using URLEncoder.encode(String s). You should use the URLEncoder.encode(String s, String CharsetName) instead. The warning: “The method encode(String) from the type URLEncoder is deprecated” Set the CharsetName

Posted in Android, ErrorFix Tagged with: , ,

Windows 7 Network Drive Available Offline

To make a folder or file available offline in Windows 7, navigate to the folder and right click the folder or file and then click Always Available Offline It’ll load for a few seconds or minutes depending on the size.

Posted in Tips and Tricks, Windows Tagged with: , ,

Android Java Get Week Numbers Of A Certain Month

To get a week number of a specific date use the Calendar.Week_of_year. To get the week numbers of a certain month run through each day of the month. You can do something like this, calling the function for a the

Posted in Android, Tips and Tricks Tagged with: , , ,