Monday, 5 December 2011

Image Panning Using JQuery

JQuery LogoFor work I am looking into JQuery plugins for panning around or scrolling around images. Here is what I found.



JQuery Zoom and Pan - Hover over the thumbnail image and you are zoomed into a bigger version of the image which can be panned around. Looks promising but the plugin is not free, but at $4, it is not expensive either.



JQuery Pan/Zoom - a free option that requires a click. It looks promising as well.



JQuery Image Scroller - This has a nice design but only scrolls vertically.



JQuery panView - This appears to be an official plugin, but the JQuery plugin site seems to be down at the time of this writing. Anyway, I have not found a working demo of this.


Play Ring Tone in Ring Tone Text Transfer Language (RTTTL) format using MediaPlayer

Ring Tone Text Transfer Language (RTTTL) was developed by Nokia to be used to transfer ringtones to cellphone by Nokia, to know more please refer to Wikipedia - Ring Tone Transfer Language.

It's a example to play a single note in RTTTL format using MediaPlayer.

Play Ring Tone in Ring Tone Text Transfer Language (RTTTL) format using MediaPlayer

First, create a xml(/res/raw/a4.rtttl) to define a single note in RTTTL format.
<a4:d=4,o=5,b=250:a4;


Main Code:
package com.exercise.AndroidRTTTL;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AndroidRTTTLActivity extends Activity {

Button buttonPlay;
MediaPlayer mediaPlayer;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
buttonPlay = (Button)findViewById(R.id.play);
buttonPlay.setOnClickListener(buttonPlayOnClickListener);
}

Button.OnClickListener buttonPlayOnClickListener
= new Button.OnClickListener(){

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if(mediaPlayer != null)
{
mediaPlayer.release();
}

mediaPlayer = MediaPlayer.create(AndroidRTTTLActivity.this, R.raw.a4);
mediaPlayer.start();

}};
}


Layout, main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<Button
android:id="@+id/play"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Play" />

</LinearLayout>


Download the files.



Sunday, 4 December 2011

MSI CR640 15.6 inch Amazing Laptop Review, Specs and Price

new MSI CR640
MSI one of the well-known notebook maker has announced the launch of its new laptop namely, MSI CR640. The CR640 new series will fill a class aimed at middle class who need a large screen with sufficient processor power can be counted on to work and play. The new MSI CR640 laptop which powered by Intel Core i3 2310M as its power source that is supported with 4 GB of memory DDR3. MSI CR640 uses the Intel GMA 3000HD graphics. For data storage capacity, will be installed both the notebook hard disk of 500 GB. Other fittings are quite charming is the presence of two USB3.0 ports which will make data transfer to or from the notebook to external media USB 3, 0 is rapid. The dimensions of the notebook is quite sizable due to the use of 15.6-inch screen. The details related to the specs of the device are discussed below.latest MSI CR640

MSI CR640 15.6 inch Laptop Specification :
  • Display size : 15.6 inch
  • Resolution : 1,366x768
  • Processor : Intel Core i3-2310M
  • Processor clock speed : 2.1GHz
  • Memory : 4.00GB - 8GB
  • Sound : Conexant SmartAudio HD
  • Graphics Processor : Intel HD 3000 Graphics
  • Graphics/video ports : HDMI, VGA
  • Graphics Memory : 64MB
  • storage capacity : 320GB
  • Optical drive type : DVD+/-RW +/-DL
  • USB ports : 4
  • Network ports : 1x 10/100/1000
  • Wireless networking : 802.11n
  • Operating system : Windows 7 Home Premium 64-bit
  • Dimensions : 27x380x260mm
  • Weight : 2.6kg
  • Warranty : one year RTB
Price about : �463

Saturday, 3 December 2011

Asus K53E-BBR4 Entertaiment laptops Review, Specs and Price

new Asus K53E-BBR4
Asus one of the well-known notebook maker has announced the launch of its new laptop for price tag $450 namely, Asus K53E-BBR4 . The K53E-BBR4 laptop which powered by an Intel Core i5-2430M �Sandy Bridge� processor, 4GB of RAM, a 500GB 5,400rpm hard drive, and Intel HD graphics. The Asus K53E-BBR4 laptop is equipped with a 15.6-inch LED-backlit high-definition widescreen display with resolution of 1366 x 768 pixels, a DVD writer, a 0.3MP webcam, Wi-Fi, Gigabit LAN, a media card reader, HDMI and VGA outputs, three USB 2.0 ports, a multi-in-one media card reader, and a 6-cell battery. It is pre-loaded with Windows 7 Home Premium 64-bit operating syste. The details related to the specs of the device are discussed below.latest Asus K53E-BBR4Asus K53E-BBR4 laptops Specification :

  • Intel� Core� i5-2430M processor
  • Intel� Turbo Boost Technology
  • 4GB DDR3 memory
  • Multiformat DVD�RW/CD-RW drive with double-layer support
  • 15.6? LED-backlit high-definition widescreen display
  • 500GB hard drive (5400 rpm)
  • Built-in facial recognition
  • Intel� graphics
  • Built-in 0.3MP webcam
  • Multiformat media reader
  • 3 high-speed USB 2.0 ports
  • Built-in high-speed wireless LAN (802.11n)
  • Built-in 10/100/1000 Mbps Fast Ethernet LAN
  • operating system preinstalled
  • Software package included
  • ENERGY STAR qualified
  • Microsoft Windows 7 Home Premium Edition 64-bit
  • Weighs 5.7 lbs. and measures just 1.4? thin

Price About : $450.00

Friday, 2 December 2011

Gigabyte Booktop T1132 Tablet PC Review, Specs and Price

new Gigabyte Booktop T1132
Gigabyte one of the well-known notebooks maker has announced the launch of its new tablet PC namely, Transformable Gigabyte Booktop T1132. The Booktop T1132 comes with a 1.6GHz Intel Core i5-2467M processor, the tablet features a 11.6-inch capacitive multi-touch LED backlight display with a 1366�768 pixel resolution, up to 4GB of DDR3 RAM, up to 750GB hard disk drive and a choice of an Intel HD Graphics 3000 or a 1GB nVidia GeForce GT520M graphics card. Other specs include a card reader, 802.11 b/g/n Wi-Fi, Bluetooth 3.0, 3G, a 1.3MP webcam, a USB 3.0 port, a USB 2.0 port, eSATA/USB combo, HDMI and a 6-cell battery. The details related to the specs of the device are discussed below.Gigabyte Booktop T1132
best Gigabyte Booktop T1132Gigabyte Booktop T1132 Tablet Specification :
  • Display : 11.6-Inch Capacitive Multi-touch Panel 1366x768 LED backlight
  • CPU : Intel Core i5-2467M Processor (1.6GHz-2.3GHz)
  • OS : Genuine Windows 7 Home Premium / Professional
  • System Memory : 2GB/4GB DDRIII, 2 slots (Max 8GB)
  • Chipset : Mobile Intel HM65 Express Chipset
  • Webcam : 1.3 MegaPixel
  • Video Graphics : Intel HD Graphics 3000 (NVIDIA GeForce GT520M 1GB Supports NVIDIA Optimus Technology)
  • Hard Disk Drive : 320/500/750GB 2.5"9.5mm SATA HDD 5400rpm
  • Optical Disk Drive : Docking Station includes slot-in DVD- Super Multi Dual-Layer Drive I/O Port : USB(3.0)*1, USB(2.0)*1, eSATA/USB Combo*1, HDMI, D-sub, RJ45, Mic-in, Earphone-out, 4-in-1 Card Reader (SD/MMC/MS/MS Pro), DC-in Jack, Docking Port
  • Audio : 2 Watt Speaker*4 (Including 2 Woofer speaker), Internal Microphone
  • Communications :
  1. LAN : 10/100/1000Mbps Ethernet Base-T
  2. Wireless LAN : 802.11 b/g/n Wireless
  3. Bluetooth : Bluetooth V3.0 + HS
  4. WWAN (3.5G) : 3.5G Antenna built-in, 3.5G Module supported(Optional)
  • Security : Kensington Lock, TPM(optional)
  • Battery : Li-ion 6-cell
  • Dimensions : 290(W) x 220.7(D) x 27.86~40(H) mm
  • Weight : 1.76Kg (w/ 6-cell battery)
  • Docking Station I/O Port(Optional) : ODD, USB(3.0)*2, USB(2.0)*2, HDMI, D-sub, RJ45, Earphone-out, Mic-in, DC-in Jack

Price : [Not Available]

Start Voice Command using Intent of ACTION_VOICE_COMMAND

Start Voice Command using Intent of ACTION_VOICE_COMMAND

package com.exercise.AndroidVoiceCommand;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AndroidVoiceCommandActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button startVoiceCommand = (Button)findViewById(R.id.startvoicecommand);
startVoiceCommand.setOnClickListener(new Button.OnClickListener(){

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent intent = new Intent(Intent.ACTION_VOICE_COMMAND);
startActivity(intent);
}});
}
}

Thursday, 1 December 2011

Internet Explorer #2 Browser?

Webkit icon
According to a ReadWriteWeb story, Chrome has overtaken Firefox for the #2 spot in browsers worldwide:

ReadWriteWeb: Chrome tops Firefox as #2 Browser



But to me, the more important inference is that alternative browser like Firefox and Chrome, when combined, are at 60% compared to 40% for Internet Explorer. Also remember, that both Chrome and Safari use the same Webkit browser as the foundation for their products. Chrome plus Safari is approaching IE's share as well.



The more people using Chrome, Firefox, or Safari, the better. So if you haven't given one of them a try, any one of this is better than IE.