Sample Credit Card Numbers

Some sites demand credit card numbers for registration although payment is not required. In order to complete such registrations, i have posted some sample credit card numbers which i obtained from http://doc.async.com.br/formcheck_re/ccnums.html. Credit card numbers are not random. They can be checked by a mathematical formula for validity. Each kind of credit card uses a slightly different rule.

Following are the sample numbers for various providers.

Credit Card Sample Number
Visa 4111 1111 1111 1111
MasterCard 5500 0000 0000 0004
American Express 3400 0000 0000 009
Diner’s Club 3000 0000 0000 04
Carte Blanche 3000 0000 0000 04
Discover 6011 0000 0000 0004
en Route 2014 0000 0000 009
JCB 3088 0000 0000 0009

How to add Smileys and Chat window Background in Google Talk

This tutorial is for anyone who is bored with Classical google talk themes and waiting for something new and innovative… In short.. You can create your own google talk theme… have a look at this gtalk window..!!

This tutorial consists of two independent parts.

1. How to add a background Image to your google talk chat window??
2. How to get smileys in chat windows without any external software addon??

PART 1:

The word “theme” in my usage refers a chat window theme. This is not for the external appearance of Google talk.

Starting with, First we need to have a copy of already existing Google talk theme. We modify and add extra features to it and then make the new theme.

Finding a Gtalk theme:

Copy and paste the following address in your My Computer Address bar.

%userprofile%\Local Settings\Application Data\Google\Google Talk\themes\system\chat

I am using Classical Picture Theme for editing because of its simplicity. Now, Copy the folder Classical Picture and get back to the grand parent directory. i.e. Themes. (use Up button twice).

Navigate to user directory. Create a folder named chat in it. Paste the folder here. Rename the folder to something else (say MyTheme)

Note: Renaming is mandatory because you can never see duplicate themes in google talk.

Now our theme folder is MyTheme. Open the folder, Navigate to Contents->Resources. Here is where we work with.

Now, Create a directory named Images Copy the Desired image which you want the background to be, into the images directory. Rename the image as back.jpg

Note: The size of the image should be properly chosen (300 X 225 is decent).

The settings of the chat window are present in main.css file. Open the file in Text editor or a HTML editor that support CSS preferably.

Now, the code will look something like this

/* Ensure that our assumptions about the default browser colors are correct. */

BODY { color: #000000; background-color: #FFFFFF; }

BODY a:link { color: #0000FF; }

BODY a:hover { color: #0000FF; }

BODY a:active { color: #0000FF; }

BODY a:visited { color: #800080; }BODY {

margin: 6px;

}

DIV#content {

font: 12px Arial;

}

DIV#insert {

display: none;

}

DIV.system1st {

margin: 4px 0px 4px 0px;

}

DIV.systemNth {

margin: 4px 0px 4px 0px;

}

/* Two ways to do icons with these rules:

Some code here

*/

DIV.chat .icon {

}

DIV.chat DIV.msg {

margin: 0px 0px 0px 0px;

}

DIV.chat DIV.Nth {

margin: 5px 0px 0px 0px;

}

DIV.chat SPAN.salutation {

font-weight: bold;

}

DIV.out {

text-align: left;

}

DIV.out .icon {

float: left;

margin: 2px 5px 0px 0px;

}

DIV.in {

text-align: left;

}

DIV.in .icon {

float: left;

margin: 2px 5px 0px 0px;

}

DIV.clear {

clear: both;

height: 1px;

overflow: hidden;

}

DIV.break {

height: 1px;

margin: 3px 0px 4px 0px;

overflow: hidden;

}

Add the background url property to the BODY class so that the code look like this

BODY

{

margin: 6px;

background-image: url("images/back.jpg");

}

Note: You can always place the comments in css files for future reference like this

/* Background image url is given relative to the main.css file. Since, we placed image renamed to back.jpg in images folder, we give the url as images/back.jpg. */

Now, we have successfully inserted the background image. But, the problem is, the image scrolls up with the text and repeats!!

If you want the image to stick to the background completely, add the background:fixed property to the first line of the code so that the modified code looks like

BODY { color: #000000; background-color: #FFFFFF; background:fixed; }

Now, the background image is set. Let us now browse through some of the other useful settings that we can easily understand.

Change the link color:

In the following code,

BODY a:link { color: #0000FF; }

BODY a:hover { color: #0000FF; }

BODY a:visited { color: #800080; }

Link color is specified in the first line. When mouse pointer is over the link, It changes to the color specified in hover. The color of the visited link is given in third line.

Note: The color is specified by hexadecimal code. (#RRGGBB).
For each color, 00 is minimum and FF is maximum. If you are not sure of which color to use, follow this awesome link : Color codes

The other classes convey their respective meanings as follows

DIV.system1st : Division settings For first system message (like User is offline.)
DIV.systemNth : For next system messages
DIV.chat DIV.msg : For the 1st user message(which we type)
DIV.chat DIV.Nth : For the next user messages(which we type)

Change the margins of Divisions:

The margins are important for good look. You can set the text borders in all the above tags.

margin: 4px 120px 4px 0px;
/* Top Right Bottom Left */

I have set Right margin as 120 in order to prevent the text overlapping on the image.

Change the Font style and Color:

DIV.out : Settings for the text of Outgoing messages
DIV.out .icon : Settings for the icon of Outgoing messages
DIV.in : Settings for the text of incoming messages
DIV.in .icon :Settings for the icon of incoming messages

Now, If you want to change the font and color for the total theme, add the following class into your code.

* {

font:10pt Lucida Sans;

color: #800000;

}

If you want different font colors for incoming and outgoing messages, then add the above properties independently to DIV.out and DIV.in classes. Do not include the above code now

DIV.in {

text-align: left;

font: 10pt Lucida Sans;

color: #800000;

}

DIV.out {

text-align: left;

font: 10pt Lucida Sans;

color: #00f0ff;

}

Add Border to image Icons:

If you want to add border to the image icons, then add one line to modify DIV.out .icon & DIV.out .icon class like this,

DIV.out .icon {

border: 3px solid #FFF;

float: left;

margin: 2px 5px 0px 0px;

}

Modify Text Alignment:

If you apply the inbuilt chat theme, PingPong Picture, we observe that outgoing messages are left aligned and incoming messages are right-aligned.

This alignment can be set by modifying the align/float property of DIV.in and DIV.in.icon tags. Make both values simultaneously to “right” i.e. the code look something like this

DIV.out {

text-align: right;

font:10pt Lucida Sans;

color: #800000;

}

DIV.out .icon {

border: 3px solid #FFF;

float: right;

margin: 2px 5px 0px 0px;

}

After all the editing is done, save the css file.

Now, To Apply the theme,first close all the chat windows. Go to Settings in Gtalk Main window, navigate to Appearance, and in chat theme, Select MyTheme (or the name of the folder that you created earlier). Now, reopen the chat window to see the changes

Note: Whenever you edit the css file, note that the changes will not be applied until you close and re-open the chat window. Don’t panic that the changes do not happen.

PART2:

Now, we deal with how to integrate smileys into your google talk theme. We use javascript Regular expressions to replace the characters/symbols into smileys. If you are not familiar with the regular expressions, then refer to this superb site. Link

Now, we do work with one of the 6 html files present in the theme folder and finally replace everything with almost the same code.

Open the NextContent.html file in the outgoing folder. You need to add a javascript code which uses regular expressions for finding the smiley symbols and replace them with corresponding smileys. The NextContent.html before editing looks something like this

<div class='msg Nth'><div id=message>%message%</div></div>

<div id='insert'></div>

After inserting the javascript, the new file is

<div class='msg Nth'><div id=message>%message%</div></div>

<div id='insert'></div>

<img src="images/smile.gif" width="1" height="1" style="display:none;" onload="

var smiley = document.getElementById('message').parentNode.innerHTML;

smiley = smiley.replace(/onload/g, 'onclick'); smiley = smiley.replace(/id=message/g, 'id=smiley');

smiley= smiley.replace(/>:-?\)</g, '><img src=images/1.gif style=display:inline;><');

smiley= smiley.replace(/>:\(</g, '><img src=images/2.gif style=display:inline;><');

smiley= smiley.replace(/>;\)</g, '><img src=images/3.gif style=display:inline;><');

smiley= smiley.replace(/>:-?a{0}D</g, '><img src=images/4.gif style=display:inline;><');

smiley= smiley.replace(/>\;\;\)</g, '><img src=images/5.gif style=display:inline;><');

smiley= smiley.replace(/>:-?\/</g, '><img src=images/7.gif style=display:inline;><');

smiley= smiley.replace(/>X-\(</g, '><img src=images/14.gif style=display:inline;><');

smiley= smiley.replace(/>B-\)</g, '><img src=images/16.gif style=display:inline;><');

smiley= smiley.replace(/>:\(\(</g, '><img src=images/20.gif style=display:inline;><');

smiley= smiley.replace(/>:\)\)</g, '><img src=images/21.gif style=display:inline;><');

document.getElementById('message').parentNode.innerHTML=smiley;

">

Note: Always insert the code after the insert division tag.

For simplicity, i have not included all the smiley symbols. The replace function syntax is as follows

replace(source, destination)

If you want to add more smileys, just write a regular expression for that smiley symbol and add a replace line to it. Add the corresponding smiley image into the Images folder.

Finally, save the file, Copy the content that you added extra to the NextContent.html file, now paste the same code in the same area in all the remaining 5 files.

Resources/Status.html
Resources/NextStatus.html
Resources/Outgoing/Content.html
Resources/Outgoing/NextContent.html (Just now added )
Resources/Incoming/Content.html
Resources/Incoming/NextContent.html

Now, again close the chat windows, re-open them and test the smileys.. If you have followed the process correctly, then you are done!! You can see smileys in your chat window.

MyTheme

I have created a theme for myself with hundreds of smileys. I want to share that with you people and listen to comments and suggestions.

Download it from here

The features of the theme are

1. Can be installed with a single click. Just run the MyTheme.exe file.
2. Lots of smileys integrated.
3. All the smiley codes are scripted in a help file which can be found in Start Menu Programs\Dash\MyTheme\
4. Includes an utility to change the background of the chat window to ur desired one.

Internet on Sony Ericsson Mobile using Broadband

Sony Ericsson Users can now access all mobile internet services free of cost using your Broadband connection.

My model Sony Ericsson w700i must use TCP/IP for its data connection. I thought, why not make a TCP/IP connection to my local area LAN and surf the Internet through my broadband? The first thing i can do is to ask google. I have come across the Sony Ericsson SDK which offers me such features. I have finally found out how to make it.

Required Stuff:

1. Sony Ericsson Compatible Model (That support GPRS, USB/Bluetooth Connectivity, MIDP 2.0, CLDC 1.0+)

MIDP 1.0 and CLDC 1.04:

P800 series, T610 series, T630 series, Z600 series

MIDP 2.0 and CLDC 1.0 HI:

P900/P910 series

MIDP 2.0 and CLDC 1.1:

S700/S710 series, V800, F500i, J300 series, K300 series, K310 series, K500 series, K510 series, K600 series, K610 series (Java Platform 7) , K700 series, K790 series (Java Platform 7) , K750 series, K800 series (Java Platform 7) , P900, P910, P990

M600, W300 series, W550 series, W600 series, W700 series, W710 series (Java Platform 7) , W800 series, W810 series, W850 series (Java Platform 7), W900 series, W950 series, Z520 series,. Z530 series, Z550 series, Z710 series (Java Platform 7), Z800 series, Z525, Z500a, Z1010

2. Necessary Software

1. The J2SE Software Development Kit (SDK)

2. Sony Ericsson SDK

3. Opera Mini

Installation Procedure

  1. First install JAVA JDK and then SONY ERICSSON SDK. Downloading these two things would be a little problem for dial-up users but there is no other choice.
  2. Connect your mobile to PC via bluetooth or USB.
  3. When the Sonyericsson SDK installed successfully, you should find a Connection Proxy icon on your system tray, otherwise Click Start > Programs > Sony Ericsson > J2ME SDK > ConnectionProxy to start the connection proxy which while active will show its status on the system tray.
  4. Click on Settings icon (Gear). Select correct COM port for your connection. Choosing correct COM port would not be a big task. Open your device manager and you will find the com ports for your mobile USB/Bluetooth connection. Choose the lowest COM port apart from the COM ports that are attached to your system. Choose the BaudRate as 115200.
  5. Now click Connect. You should see your mobile pic on the connection proxy saying that it is connected.
  6. Open Sony Ericsson Device Explorer.
    Click Start > Program > Sony Ericsson > J2ME SDK > Device Explorer. You should see that the software is negotiating a connection with your mobile, and when successful, it will display a list of applications installed. In my case it displayed all the games installed in my W700 games folder.Important Note : If anyone faces error at this particular step saying “Malformed Response…… …. ” then it is due to some error in parsing the characters in the installed games. Delete games one by one in your games folder and Refresh the Device Explorer. It should work at some time..
  7. On your Sony Ericsson mobile, create a new data account.
    For that, Go to Connectivity > Data comm. > Data accounts > New account.
    Account type: GPRS data
    Name: Anything you want. Leave APN, Username and Password empty.
  8. Go to Connectivity > Internet setting > Internet profiles > New profile
    Name: anything you want
    Connect using: select the account you just added in the above step
  9. Still in Internet profiles window, highlight the profile you going to use and press More and select Settings.
    In this window:
    Connect using: the new data account you just added
    Internet Mode: Http (already there)
    Use Proxy: No
    Username and Password: empty
  10. Press Save to save this profile.Note: For broadband users under Corporate LAN, The settings are different. Use this profile settings.here.. Note the following…
    My IP address in LAN : 172.16.5.111
    DNS Address : 172.24.2.71
    Proxy server Address : 172.30.3.3

    create a data account named “broadband”
    ip address : 172.16.5.111
    dns address : 172.24.2.71

    create an internet profile named ” broadband”
    internet mode : http
    use proxy : yes
    proxy address: 172.30.3.3
    port : 8080

    streaming settings :
    connect using : broadband
    use proxy : yes
    proxy address: 172.16.5.111
    port number : 6082

  11. Opera Mini InstallationDefault browser that comes with sony ericsson mobile just not mean to be used with this type of connection. You need to download other browser to be installed. Download the compatible version of opera for your model from its official site. You must download both jar and jad files. This is a quick download since the file is quite small. Now you can install Opera Mini browser by just rightclicking the JAD File you just downloaded and select “Install on Device”.
    When installation is successful, highlight the Opera Mini in the Device Explorer and click on “Play button”, or right click and select Start to launch the Opera Mini on your mobile.Note : Launching Opera Mini by using the phone itself will not work.
  12. Now, If you are using Opera 3.0, it tests for network connection before opening the browser. If the connection test fails, check your settings once again. Restart your phone and try again. If everything is correct, i would suggest you to download opera mini 2.0. and proceed with the same steps above. Search google or download it from here ( Copy it to your phone and install from the phone since i cannot upload a jad file in my hosting site.)
  13. Enter any URL in your mobile and you are done if you are able to see that site on your mobile..Note: Please do not expect that you will be succeeded in the first trial. There is every possiblity that you may miss small things. I have spent one complete day for the connection and then succeded.

Some Points to note:

  1. Make sure “Serial Networking” is checked in device explorer.
  2. Connection proxy is connected
  3. Device explorer shows all the applications(games) installed on your mobile. If not, try restarting your device explorer.
  4. If every setting is correct and still you are not able to connect to internet, restart your mobile
  5. Use Opera mini 2.0 Advanced instead of latest version if you are not able to connect using it.

Why the hell am i doing this:

This post may seem a bit odd to you because who want to use internet in a cell phone if they have a broadband connection? Well.. here are a few applications for this.

1. You can access wap sites through your mobile.
2. In corporate offices with content based firewalls, this method provides anonymity to the users. (I cannot access orkut.com through PC, but i can do using my mobile ;) )
3. Browse by staying away from your computer (Bluetooth :D )
4. You can also learn several features of SE SDK. I had never known before that an emulator in PC exists for my mobile.

Source: The site is no longer available. But i can say that the creator’s name is Andre.