Wednesday, February 08, 2012
Android Chrome - No Flash
http://www.appleinsider.com/articles/11/09/15/microsoft_to_jettison_adobe_flash_with_plug_in_free_browsing_in_windows_8_metro_ie10.html
Now this is Google response... It looks like it is not going to take long for Adobe to be force to license it's RTMP and RTMFP framework for Android to keep up with Server side Video Streaming...
Google (NASDAQ:GOOG) introduced a beta version of its Chrome browser for its Android smartphone operating system. Chrome for Android Beta offers many of the same features as its desktop counterpart, but is not compatible with browser plug-ins or Adobe Flash technology. Chrome for Android Beta also is only available for tablets and handsets running Android 4.0, Ice Cream Sandwich.
Watch a video about Chrome for Android
Perhaps the main difference between Android's existing browser and Chrome for Android is the ability for users to port bookmarks and saved tabs from their desktop Chrome Web browser to their Chrome Android browser. Synced devices will also see the same autocomplete suggestions shown on the desktop.
Also, Chrome's tabs have been redesigned to fit on smaller screens. Users can swipe their devices to switch between tabs.
On the developer side, Chrome for Android introduces remote debugging via Chrome Developer Tools, allowing developers to debug profile Web pages and Web apps via mobile.
"With hardware-accelerated canvas, overflow scroll support, strong HTML5 video support, and new capabilities such as Indexed DB, WebWorkers and Web Sockets, Chrome for Android is a solid platform for developing web content on mobile devices," wrote Arnaud Weber, engineering manager at Chrome on the Chromium blog.
Google touts Chrome for Android as being as fast as its desktop counterpart.
"When searching, your top search results are loaded in the background as you type so pages appear instantly," wrote Sundar Pichai, SVP of Chrome and apps, on the Google Mobile Blog.
Sunday, February 05, 2012
Wednesday, February 01, 2012
Map Apps: The Race to Fill in the Blanks
http://mobile.businessweek.com/magazine/map-apps-the-race-to-fill-in-the-blanks-01122012.html
Saturday, January 07, 2012
Marketing Technology behind $35 billion in holiday 2011 ecommerce sales
http://www.darrenherman.com/2011/12/30/marketing-technology-behind-35-billion-in-holiday-2011-ecommerce-sales/
Tuesday, December 13, 2011
Create Bootable USB Windows 7
1. Insert your USB (4GB+ preferable) stick to the system and backup all the data from the USB as we are going to format the USB to make it as bootable.
2. Open elevated Command Prompt. To do this, type in CMD in Start menu search field and hit Ctrl + Shift + Enter. Alternatively, navigate to Start > All programs >Accessories > right click on Command Prompt and select run as administrator.
3. When the Command Prompt opens, enter the following command:
DISKPART and hit enter.
LIST DISK and hit enter.
Once you enter the LIST DISK command, it will show the disk number of your USB drive. In the below image my USB drive disk no is Disk 1.
4. In this step you need to enter all the below commands one by one and hit enter. As these commands are self explanatory, you can easily guess what these commands do.
SELECT DISK 1 (Replace DISK 1 with your disk number)
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
(Format process may take few seconds)
ASSIGN
EXIT
Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.
5. Insert your Windows DVD in the optical drive and note down the drive letter of the optical drive and USB media. Here I use “D” as my optical (DVD) drive letter and “G” as my USB drive letter.
6. Go back to command prompt and execute the following commands:
6.1. Change directory to the DVD’s boot directory where bootsect lives:
d:
cd d:\boot
6.2. Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G:\ by the computer:
bootsect /nt60 g:
(Where “G” is your USB drive letter)
7. Copy Windows DVD contents to USB.
You are done with your bootable USB. You can now use this bootable USB as bootable DVD on any computer that comes with USB boot feature (most of the current motherboards support this feature).
Note that this bootable USB guide will not work if you are trying to make a bootable USB on XP computer.
Sunday, November 13, 2011
Illusion
This is another example of an amazing illusion!!! The last sentence is so true.
If your eyes follow the movement of the rotating pink dot, the dots will remain only one color, pink.
However if you stare at the black '+ ' in the center, the moving dot turns to green.
Now, concentrate on the black ' + ' in the center of the picture. After a short period, all the pink dots will slowly disappear, and you will see only a single green dot rotating.
It's amazing how our brain works. There really is no green dot, and the pink ones really don't disappear. This should be proof enough, we don't always see what we think we see.
Friday, November 04, 2011
Eclipse & Tomcat - Create a Webapp - Hello World Tutorial
| Directory Structure under: C:\xampp\tomcat\bin\webapps\mytomcat-eclipse-helloworld-scratch List of Directories: \WEB-INF \WEB-INF\lib \WEB-INF\src \WEB-INF\src\java \WEB-INF\src\myeclipse \WEB-INF\classes \pages List of files: |
Eclipse IDE for Java Developers
XAMPP comes really handy with
Apache 2.2.21
MySQL 5.5.16
PHP 5.3.8
phpMyAdmin 3.4.5
FileZilla FTP Server 0.9.39
Tomcat 7.0.21 (with mod_proxy_ajp as connector)
At the time of this article tomcatPluginV33.zip
Extract the archive tomcatPluginV33.zip under C:\eclipse\plugins this should create a sub folder com.sysdeo.eclipse.tomcat_3.3.0
To give you the big picture, in the steps below, you will use Eclipse to
create the following directory structure and files.
This examples Tomcat "webapps" directory is located at:
C:\xampp\tomcat\bin\webapps
The Sysdeo Tomcat Plugin is our best friend. After you have installed it, you will notice these buttons and menues in your IDE.

The left button starts Tomcat, the middle button stops it, the right button restarts Tomcat. Right now, they won't work if you press them. To enable them, you first need to configure a few things. Go to the menu "Window-> Preferences" there, you will see this dialogue box.
Configure Tomcat Plugin
Windows-->Preferences-->Tomcat
Now you need to go to the menu item "Tomcat" and select your Tomcat version. At the time of writing that would be the 7.x version. Now we adjust the field "Tomcat Home" to point to the install directory that we selected before at install time. The Sysdeo plugin now knows where to look for the server.xml file and automatically assumes the standard path to look for the file. Eclipse is now able to manage this configuration file, i.e. add a new <context> for a new application
Browse for tomcat home and select tomcat version
Click on JVM settings and add JVM Parameters
-Xmx2000M
-Xms1000M
Now we are ready to test start our Tomcat server. Click on the start button in the Tomcat menu and watch the console output. If Tomcat boots up without any stacktraces open your browser, and try to open the following address http://localhost:8080/ . If you see an image
that is similar, to the one below everything is working okay
- 10 File, New, Project, Java Project, Next
- 11 Project Name: mytomcat-eclipse-helloworld-scratch
- 12 UnCheck - Use default location.
- 13 Click "Browse" and navigate to the Tomcat webapps"
directory (ex: C:\xampp\tomcat\bin\webapps\webapps). - 14 This is a little tricky so follow closely. We want to create a
new directory.
- Note: The "webapps" directory should be selected.
- Click "Make New Folder"
- In the browse window list, you should be able replace the words "New
Folder" with: mytomcat-eclipse-helloworld-scratch
Note: If you can't, in the browse window scroll to the "New
Folder" and right click, choose "Rename" and change the folder name to
mytomcat-eclipse-helloworld-scratch - Click "OK".
- Check the value of "Location:" to make sure you have selected the
correct folder.
Location should now show: C:\Tomcat\Tomcat6.0\webapps\mytomcat-eclipse-helloworld-scratch - Click "Next" to go to the "Java Settings" screen.
- 15 Source Folder
- Click "Create new source folder".
Folder name: WEB-INF/src
Click "Finish" - Right click on "src" and choose "Remove from Build Path".
Later you will delete the folder.
(Note: We just created the src file in a directory that web users
can't directly get to: WEB-INF/src)
- Click "Create new source folder".
- 16 Output Folder
- Change the "Default output folder" to: mytomcat-eclipse-helloworld-scratch/WEB-INF/classes
(Note: Currently the default will be:
mytomcat-eclipse-helloworld-scratch/bin)
- Change the "Default output folder" to: mytomcat-eclipse-helloworld-scratch/WEB-INF/classes
- 17 Click "Finish"
- 18 In the "Package Explorer" right click on "src" and choose delete.
- Right click on the project.
- Click "Build Path", "Configure Build Path", then
click the tab "Libraries" - Check to see if "JRE System Library"
is listed. If not complete the next steps in this bullet.
Click "Add Library", "JRE System Library",
"Next", "Finish".
Note: Under the tab "Order and Export" this lib file should be directly
under the WEB-INF/src directory.
You can't compile .java files without this library!!! - Click "Add External JARs"
- Browse to the Tomcat common library directory.
Ex: C:\xampp\tomcat\lib - Select all of the JAR files (Ctrl-A), then click "Open".
- Click "OK" to leave the "Java Build Path" screen.
- Right click on "WEB-INF", "New", "Folder".
- Folder name: lib
- Click "Finish"
- Library files - for this project we will be using 2 .jar files:
standard.jar & jstl.jar.
These 2 jar files need to reside in: webapps\mytomcat-eclipse-helloworld\WEB-INF\lib
mytomcat-eclipse-helloworld-scratch-lib.zip - download and extract this
zip file into the new "lib" directory you just created.
Note: If you downloaded the files in this tutorial you will have this
file in the directory:
Pathname: tomcat\tutorial_tomcat_eclipse\webapps\mytomcat-eclipse-helloworld-scratch-lib.zip
(Note: These lib files came from the Apache JSTL project called
"standard".)- If you don't place the files properly in the lib directory you will get
compile errors etc...
- Right click on "WEB-INF/src" (not
"WEB-INF"), "New", "Package".
Folder name: myeclipse - Click "Finish"
- Right click on "mytomcat-eclipse-helloworld-scratch",
"New", "Folder". Folder name: pages - Click "Finish"
- Right click on "WEB-INF" (not "WEB-INF/src"), "New", "File".
File name: web.xml - web.xml -
copy this content into the file. Right click on the filename, open
with, Text Editor. If you open with the XML editor you can't copy and
paste. After you copy-n-paste, then open with "XML Editor". - Notice the 2 tags: <servlet> & <servlet-mapping>. This is planning
for the .java servlet file we will create.
24 Create the "index.jsp" file
- Right click on "mytomcat-eclipse-helloworld-scratch", "New", "File".
File name: index.jsp - index.jsp -
copy this content into the file. (Warning:
If the server & browser doesn't show this file as a Text file then do a
view source so you can copy-n-paste.) - Note:
- This JSP has just HTML tags.
- Right click on "myeclipse"
under the directory "WEB-INF/src", "New", "Class".
Name: MyHelloWorldBean
Click "Finish"
MyHelloWorldBean.java -
copy this content into the file. (Warning:
If the server & browser doesn't show this file as a Text file then do a view
source so you can copy-n-paste.)
- Right click on "myeclipse"
under the directory "WEB-INF/src", "New", "Class".
Name: MyHelloWorldServlet
Click "Finish"
MyHelloWorldServlet.java -
copy this content into the file. (Warning:
If the server & browser doesn't show this file as a Text file then do a view
source so you can copy-n-paste.)
- Right click on "pages", "New", "File".
File Name: myhelloworld_jstl.jsp
Click "Finish"
myhelloworld_jstl.jsp -
copy this content into the file. (Warning:
If the server & browser doesn't show this file as a Text file then do a view
source so you can copy-n-paste.)
- Right click on "pages", "New", "File".
File Name: myhelloworld_bean.jsp
Click "Finish"
myhelloworld_bean.jsp -
copy this content into the file. (Warning:
If the server & browser doesn't show this file as a Text file then do a view
source so you can copy-n-paste.)
- 31 Start Tomcat and/or Reload this WebApp
- 32 Go to:
http://localhost:8080/mytomcat-eclipse-helloworld-scratch/pages/myhelloworld_jstl.jsp - 33 Go to: http://localhost:8080/mytomcat-eclipse-helloworld-scratch/pages/myhelloworld_bean.jsp
- 34 Go to: http://localhost:8080/mytomcat-eclipse-helloworld-scratch/MyHelloWorldServlet
- Using Eclipse, modify the following files then Reload the web app
or Stop/Start Tomcat. - filename: index.jsp
For the title & h1 tags change the following:
from:
mytomcat-eclipse-helloworld
to:
mytomcat-eclipse-helloworld-scratch - filename: WEB-INF\src\myeclipse\MyHelloWorldBean.java
from:
setStrMyMessage("Hello World");
to:
setStrMyMessage("Hello World - Hi"); - filename: WEB-INF/src/myeclipse/MyHelloWorldServlet.java
from:
<p>Hello World</p>
to:
<p>Hello World - Hi</p> - filename: pages/myhelloworld_jstl.jsp
from:
<c:out
value="Hello
World"/>
to:
<c:out
value="Hello World
- Hi"/> - Reload Web App or Stop/Start Tomcat Service
(because you changed a .java file!) - see steps
above! - Test your Web App again
Hello World (JSTL Example)
JSTL Example (c:out): Hello World
Hello World (JSP & Java Bean Example)
Bean Example MyHelloWorld.getStrMyMessage(): Hello World
Hello World (Servlet Example)
Hello World
35 Optional - Change Text - Hello World


