"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Thursday, January 6, 2011

Web Hosting and Domain

Hi,
Let me share few information regarding Web hosting and DNS.

Web Host -Means Server where our website resides.This always up and connected to internet to make our web site active.

Shared Hosting:- Most of the host provides Shared Hosting , as it is meaningless to use whole server for small website which does not have very heavy traffic or not a big application.
At that time on a on server more then one website is hosted and manged.shared hosting is widely used , it is very cost effective too.Shared hosting may not provide full access to server(it is depends upon service provider also).

Dedicated Server:- Dedicated Server means only one particuler website or particular user owns a server.Where Owner(Person who purchase Dedicated server from host ,yes your own pc also can be a dedicated server).Owner have full access of server ,freedom of installing new s/w ,uninstall s/w.

DNS:-Domain Name Server
As we all knows on back side web request is made through IPs.
DNS :- Map the IP(where our website hosted) and Domain Name (like www.google.com ).
As defination you can say 
DNS is the service which translates between Internet names and Internet addresses.
If you are working on a Windows machine, you can view your current IP address with the command WINIPCFG.EXE (IPCONFIG.EXE for Windows 2000/XP). On a UNIX machine, type nslookup along with a machine name (such as "nslookup www.howstuffworks.com") to display the IP address of the machine (use the command hostname to learn the name of your machine).

DNS is such a big thing so it can not be explained in a single post I will add more information about it.


Have a nice day... 'N happy Coding :)

Sunday, January 2, 2011

watermark image over image

hi friends,
in my previous post i shown watermark of text over image. 2day I'm showing image over image



using System;
using System.Drawing;
using System.Drawing.Imaging;

//Original Image that you want to watermark
Image image = System.Drawing.Image.FromFile(@"C:\way2sms.png");

//Watermark
Image logo = Image.FromFile(@"C:\Capture.png");

//Create graphics object of the Orignal image
Graphics g = System.Drawing.Graphics.FromImage(image);

//Create a blank bitmap object to which we will draw our transparent logo
Bitmap TransparentLogo = new Bitmap(logo.Width, logo.Height);

//Create a graphics object so that we can draw on the blank bitmap image object
Graphics TGraphics = Graphics.FromImage(TransparentLogo);

//An image is represenred as a 5X4 matrix
//the 3rd element of the 4th row represents the transparency
ColorMatrix ColorMatrix = new ColorMatrix();
ColorMatrix.Matrix33 = 0.50F ; //Transparency

//An ImageAttributes object is used to set all the alpha values.
//This is done by initializing a color matrix and setting the alpha scaling value in the matrix.
//The address of the color matrix is passed to the SetColorMatrix method
//The ImageAttributes object is passed to the DrawImage method
ImageAttributes ImgAttributes = new ImageAttributes();
ImgAttributes.SetColorMatrix(ColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
TGraphics.DrawImage(logo, new Rectangle(0, 0, TransparentLogo.Width, TransparentLogo.Height), 0, 0, TransparentLogo.Width, TransparentLogo.Height, GraphicsUnit.Pixel, ImgAttributes);

TGraphics.Dispose();

//Do Watermarking
g.DrawImage(TransparentLogo, (image.Width - logo.Width) / 2, (image.Height - logo.Height) / 2);

//Save Image
image.Save(@"C:\MyWatermakedImage.png", ImageFormat.Png);




Have a nice day... 'N happy Coding :)

Saturday, January 1, 2011

Welcome 2011

With a pray we can welcome 2011 
. Oh god, pls give us the strength and health to overcome all the troubles and Pls keep the world around me in peace.
i Wishing  wish u all Fantastic,wonderful, amazing new year






Have a nice day... 'N happy Coding :)