Categories
Tips and Tricks Windows

Photoshop Save As .ico

It is not possible to save as an .ico format in Photoshop. You can install a third party extension which then can do it, but many of these cost money. Only for a very small feature. A way to work around this is exporting your image to .png and then use one of the free […]

Categories
Mac Tips and Tricks

Xcode Toggle between header and main file

The shortcuts has changed a bit in each Xcode. In Xcode 4.0 and up the shortcut for toggling between your main and header files are, the .h and .m files: Ctrl + Cmd + [arrow up or down]

Categories
Android Tips and Tricks

Android Set EditText Cursor Color

To set the EditText in Android you first need to set the textCursorDrawable to null. This is needed for Android 3.2 and up. android:textCursorDrawable=”@null” Setting this will result in the cursor color will be set to the textColor android:textColor  

Categories
Tips and Tricks Windows

Visual Basic .NET Operator ! From C#

The C# operator ! is equivalent with the Visual Basic .NET “Not” operator In C# you can use the operation like this bool Var = true; Var = !Var And for Visual Basic .NET Dim Var As Boolean = True Var = Not Var

Categories
Android ErrorFix

Android Resource Entry Is Already Defined

When you compile an android project from its xml resource, Eclipse considers it as executing xml file and so you get some output from it, in the same name of the xml with .out.xml extension. And you’ll end up with an *.out.xml file and the error res\layout\main.xml:0: error: Resource entry main is already defined. To […]

Categories
Android Tips and Tricks

Android Get Width And Height Of Image From Resource

In Android to get the width and height of an image from your res folder do the following: BitmapDrawable bd = (BitmapDrawable) this.getResources().getDrawable(R.drawable.icon); int height = bd.getBitmap().getHeight(); int width = bd.getBitmap().getWidth(); If you want the width and height depending the target density you can use the intrinsic values: BitmapDrawable bd = (BitmapDrawable) this.getResources().getDrawable(R.drawable.icon); int imageHeight = […]

Categories
Android ErrorFix

Android Can’t Find File android_winusb.inf

The android_winusb.inf file is in a subfolder of the Android SDK directory, specifically: ..\android-sdk\extras\google\usb_driver\android_winusb.inf In older version of the sdk it was in ..\android-sdk\usb_driver\android_winusb.inf Depending on the installation and updates you might have both. The file in extras is the newest.

Categories
Android ErrorFix

Windows 8 Android HTC Desire HD Developer

HTC Sync is not compatible with Windows 8 yet. This include not being able to debug and develop on your HTC Desire HD mobil and possible most of HTC mobiles. HTC One, Sensation, Magic and more. Eventhough you have enabled USB debugging. It’s the USB driver which is missing (or not working correctly) for Windows 8. Google […]

Categories
ErrorFix Linux Mac Windows

VirtualBox Missing Mouse

When running Oracle VM VirtualBox it happens the mouse disappear. To fix this Select Disable Mouse Integration from VirtualBox’s Machine menu. Next, click within the guest OS to capture the mouse.

Categories
Android Tips and Tricks

Android Calculate Time Between Two

  Use a Date object: Date interestingDate = new Date(); You can find the different in milliseconds between the actual current date and interestingDate by doing: long time = (new Date()).getTime() – interestingDate.getTime()