Saturday, February 7, 2015

Cross Browser HTML Input Placeholder color change using CSS with Example.


HTML5 Placeholder example

One of the features of HTML5 that was very quickly adapted by the developers around the globe and almost all the browsers developed since then, was “placeholder” attribute in input element. People stopped using javascript snippet in their code with onclick and onblur events.

Disable text selection highlighting using CSS - Cross Browser

disable select text using css

The below CSS properties are helpful to stop the users to select the text from webpage. These are not standard properties. but still works most of the browsers.

Thursday, November 6, 2014

Cannot modify a value type return value of `UnityEngine.Rigidbody2D.velocity'. Consider storing the value in a temporary variable



Unity Sample Code :

rigidbody2D.velocity.y = speed;

The above C# code won't show any syntax error. But unity 4 and above will throw runtime error saying

"Cannot modify a value type return value of `UnityEngine.Rigidbody2D.velocity'. Consider storing the value in a temporary variable"

How to install Google Play Services [ Google PlayStore ] in GenyMotion Emulator.


By Default GenyMotion Emulator not have Google Play services with its android versions. Follow the below steps to install Google play services and Google PlayStore.

1. Install ARM Translator if its not already installed in GenyMotion Emulator.
2. The link has steps to install ARM Translator in GenyMotion Emulator.
3. Download the Google play services from the below link.


How to Install ARM Translator for Genymotion Emulator.


GenyMotion Emulator not have ARM Translator by default. Hence while trying to install ARM Apps or OpenGL version of signed apps will through the below error.

C:\WINDOWS\system32>adb install "C:\SOFTWARES\keystore\Pong v1.0\Pong_2.0_tab.apk"
6952 KB/s (13705374 bytes in 1.925s)
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
        pkg: /data/local/tmp/Pong_2.0_tab.apk
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]