Monthly Archives: November 2012

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

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

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]

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

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  

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

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

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

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

Posted in Android, ErrorFix Tagged with: , , ,

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

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

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

Posted in Android, ErrorFix Tagged with: , ,

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.

Posted in Android, ErrorFix Tagged with: ,

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.

Posted in ErrorFix, Linux, Mac, Windows

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()  

Posted in Android, Tips and Tricks Tagged with: ,