Common mistake in Ecommerce
http://www.smashingmagazine.com/2009/10/08/15-common-mistakes-in-e-commerce-design-and-how-to-avoid-them/
This is a Company related to pipe bend we do all types of bends and wish to have link with all Indian pipe factories
Labels: Ecommerce | at 12:59:00 AM
http://www.smashingmagazine.com/2009/10/08/15-common-mistakes-in-e-commerce-design-and-how-to-avoid-them/
Labels: C#.Net | at 8:15:00 PM
This is a simple implementation of a TCP client server relationship.
Compile the server and client programs separately. Before compiling change the IP address in both programs to match that of your machine (NOTE : to get your IP address run 'ipconfig' from the command prompt in Windows NT/2000 m/c's)
When the server program is run, it will indicate at which IP it is running and the port it is listening to. Now run the client program is run , so as to establish a connection with the server.
When a connection is established the server will display the IP address and Port from where it has accepted the connection and client will ask for the string which is to be transmitted to the server.
The server on reciept of the string will display it, send an acknowledgement which will be recieved by the client.
The client can be either run from the same machine as the server or from a different machine. If run from a different machine then a network connection should exist between the machines running the server and client programs
//
/* Server Program */
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
public class serv {
public static void Main() {
try {
IPAddress ipAd = IPAddress.Parse("172.21.5.99");
// use local m/c IP address, and
// use the same in the client
/* Initializes the Listener */
TcpListener myList=new TcpListener(ipAd,8001);
/* Start Listeneting at the specified port */
myList.Start();
Console.WriteLine("The server is running at port 8001...");
Console.WriteLine("The local End point is :" +
myList.LocalEndpoint );
Console.WriteLine("Waiting for a connection.....");
Socket s=myList.AcceptSocket();
Console.WriteLine("Connection accepted from " + s.RemoteEndPoint);
byte[] b=new byte[100];
int k=s.Receive(b);
Console.WriteLine("Recieved...");
for (int i=0;i Console.Write(Convert.ToChar(b[i]));
ASCIIEncoding asen=new ASCIIEncoding();
s.Send(asen.GetBytes("The string was recieved by the server."));
Console.WriteLine("\nSent Acknowledgement");
/* clean up */
s.Close();
myList.Stop();
}
catch (Exception e) {
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
---------------------------------------------------------------------------
/* Client Program */
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;
public class clnt {
public static void Main() {
try {
TcpClient tcpclnt = new TcpClient();
Console.WriteLine("Connecting.....");
tcpclnt.Connect("172.21.5.99",8001);
// use the ipaddress as in the server program
Console.WriteLine("Connected");
Console.Write("Enter the string to be transmitted : ");
String str=Console.ReadLine();
Stream stm = tcpclnt.GetStream();
ASCIIEncoding asen= new ASCIIEncoding();
byte[] ba=asen.GetBytes(str);
Console.WriteLine("Transmitting.....");
stm.Write(ba,0,ba.Length);
byte[] bb=new byte[100];
int k=stm.Read(bb,0,100);
for (int i=0;i Console.Write(Convert.ToChar(bb[i]));
tcpclnt.Close();
}
catch (Exception e) {
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
// This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
| S.Thangaraju
|
|
Labels: Visual Basic 6.0 | at 7:35:00 AM

Introduction
Here I am me again, with other programming trick. VB doesn't provide any support to icons in the menus (VB 6 and previous). Then, to accomplish such task it is necessary to run over to calls native API of Windows.
Purpose
Some programmers say that that is unnecessary. But it is common the users they to use the toolbar in most of the cases. It is interesting that he can associate the menu options the entrances in the toolbar.
For an application to be easy to use, it should be the most friendliest possible and not to demand of the user, complex reasoning.
The people use computers to activate your tasks and to win time.
The road of the stones
The best way to accomplish this task, would be with a visual atmosphere. Where you could choose in the list of available menus the item of wanted menu and in other (parallel) the wanted icon (what is made by other tools).
However, I will teach the less friendly, however functional way of the you make it.
API
Collapse
Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetSubMenu Lib "user32" (ByVal hMenu As Long, ByVal nPos As Long) As Long
Private Declare Function SetMenuItemBitmaps Lib "user32"
(ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal hBitmapUnchecked As Long, ByVal hBitmapChecked As Long) As Long
Const MF_BYPOSITION = &H400&
Code Piece
Collapse
Private Sub SetMenuIcon()
On Error Resume Next
Dim hMenu As Long
Dim hSubMenu As Long
Dim Ret As Long
'Get main menu ID
hMenu = GetMenu(hwnd)
'
'MENU FILE
'Get sub menu 0 (File items)
hSubMenu = GetSubMenu(hMenu, 0)
'set bitmap to menu item, by ordinal
Ret = SetMenuItemBitmaps(hSubMenu, 0, MF_BYPOSITION, iNew.Picture, iNew.Picture)
Ret = SetMenuItemBitmaps(hSubMenu, 1, MF_BYPOSITION, iOpen.Picture, iOpen.Picture)
Ret = SetMenuItemBitmaps(hSubMenu, 2, MF_BYPOSITION, iSave.Picture, iSave.Picture)
'Skip the separator (it's 3)
Ret = SetMenuItemBitmaps(hSubMenu, 4, MF_BYPOSITION, iSave.Picture, iSave.Picture)
'Skip the separator (it's 5)
Ret = SetMenuItemBitmaps(hSubMenu, 6, MF_BYPOSITION, iExit.Picture, iExit.Picture)
' The rest of the code was removed to maintain clear. See in the file 'ZIP the complete and functional example.
End Sub
The icon may be 14x15 pixels.
If you have some doubt or suggestion, order an email.
Contact
E-mail: willians@bb.com.br
MSN: willian_cpp_br@hotmail.com
ICQ# 89506722
Phone: +55 (64) 612-6030
Fax: +55 (64) 612-6010
Labels: Security | at 8:03:00 PM
One can block the website by using the below tricks
Step 1: Click the Start button and select Run. Now type the following text in that Run box:
notepad c:\WINDOWS\system32\drivers\etc\hosts
Step 2: You will see a new notepad window on your screen containing some cryptic information. Don’t panic. Just goto the last line of the file, hit the enter key and type the following:
127.0.0.1 orkut.com
127.0.0.1 facebook.com
127.0.0.1 myspace.com
Save the file and exit. That’s it. None of the above sites will now open on your computer.
You can block as many websites as you like with the above technique. If you want to remove the ban later, open the same file as mentioned in Step 1 and delete the above lines.
Pretty simple but remember, our children are also very smart. And there are some popular ways to unblock websites.
Labels: MTNL | at 6:33:00 PM
GPRS SETTING for MTNL MUMBAI Dolphin & Trump Users-:
• I.P. Address : 172.16.39.10
• Port No. : 9401 or 9201
• Authentication type : Normal
• User Name : mtnl
• Password : mtnl123
• Data Bearer : GPRS
• Access point name : gprsmtnlmum (for Postpaid Dolphin)
gprsppsmum (for PRE-PAID Trump )
• Mobile Homepage : http://wap.mumbai.mtnl.net.in
OR
MTNL MUMBAI Dolphin/Trump Users can take GPRS/MMS Setting Directly from this website-:
: Logon to http://202.159.213.33:8082/msp/html/
(Setting will come By SMS)
MMS SETTINGS FOR MUMBAI-DOLPHIN/TRUMP-:
• Profile name : MTNL.MMS
• Every thing is same as mentioned above(In GPRS Setting) but the homepage will be different.
• Home page : – http://172.16.39.140/mms/
Labels: BPL | at 6:25:00 PM
To make 10 ka Gang to ur BPL Card first u must have that 10 ka service enabled on ur card, else u can contact customer care to 50555
BPL user who have enabled that service can Just send the sms to 50505 as,
gang 9xxxxxxxxx to 50505 toll free.
where 9xxxxxxxxx is the number of ur friend to whom u like to add.
If u like to remove some number frm ur 10 ka ganng and replace that number with some other number then send the sms as,
new 9xxxxxxxxxx 9xxxxxxxxxx to 50505 Rs.10/sms
where the first 9xxxxxxxxx is the old number u like to replace, and the second 9xxxxxxxxx is the new number u like to add
Labels: M.Sc.IT Part I | at 5:57:00 PM
This link will contain all notes for M.Sc.IT Part one. And it is very important link
Check it out !!!!!!!!!!!!
http://www.4shared. com/dir/3844894/ 63f8ad0c/ MSc-_IT__ Part_I_.html
http://www.4shared.com/account/home.jsp