Navigation

10/24/2012

Android Emulator - Upgrading to AVD Manager 20.0.3

I upgraded to Android Emulator  AVD Manager 20.0.3, and keyboard entry did not work, just the virtual keyboard.  To fix this

  1. Go to AVD Mananger.
  2. Select the particular AVD and click on Edit
  3. Go to the Hardware section, click on New.
  4. Select the Property Name : Keyboard Support
  5. By default, it is added with a value of 'no'. Just click on the value column and change it to 'yes'.
  6. Click on Edit AVD again.
This will add a property hw.keyboard=yes in config.ini file for the AVD.

10/22/2012

Detect mobile device via Javascript, switch to mobile page


Our CMS is looks poor on mobile drives, looked at javascript to switch to a different page on detecting mobile device:


<script type="text/javascript">
var mobile = (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|iphone|ipod|iris|kindle|lge|maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent.toLowerCase()));
if (mobile){ document.writeln("<h2>
<a href='http://your.server.com/m.asp?insert_room=1'>Tap here for MOBILE version...</a></h2>
");
 
    }

</script>


I replaced the document switch:
document.location = 'http://your.server.com/m/'

with just adding a link to a different page:
document.writeln("<h2>
<a href='http://your.server.com/m.asp?insert_room=1'>Tap here for MOBILE version...</a></h2>

10/19/2012

HTML Tutorials

Here are top HTML tutorials for beginners, clean, nice layouts, minimum of advertisements:


http://www.w3schools.com/html/html_intro.asp

http://htmldog.com/guides/htmlbeginner/

http://www.stepbystephtml.com/


Still looking for lists of other peoples picks.

10/18/2012

xcopy command - backup


Trying to use XCOPY got "INVALID PATH" error.

xcopy "Q:\TECH SRV\"    /s /y

Just remove the final slash on the SOURCE directory:
xcopy "Q:\TECH SRV"    /s /y

good reference page on XCOPY 

On the destination, you do need the final slash, otherwise it askes is this a file name or directory name?

xcopy "Q:\ADMIN"   "E:\Q drive\ADMIN\" /s /y


I use the following to add date to folder name:

xcopy "Q:\ADMIN"   "E:\Backups- Q and W drives\20%date:~10,4%\Q drive - 20%date:~10,4%-%date:~4,2%-%date:~7,2%\ADMIN\" /s /y
20%date:~10,4%    year
%date:~4,2%       month

%date:~7,2%       day

10/10/2012

Login Directly Into Windows 7 Without Entering Password

Have several lobby PCs where it is open to public (locked down with Deep Freeze & Proxy table), here are steps to Login Directly Into Windows 7 Without Entering Password 



Every time Windows 7 is started it asks you to select the username and enter the password to access your system, there is no doubt that it is a very important security measure, but what if you are the only user
of your system?  In windows 7, you can easily get rid of the login prompt window, go through the following steps to achieve it.

Go to Start and type netplwiz in the Start Search and hit Enter. The User Accounts dialogue box will be displaye, just uncheck "Users must ..."  box



autologin