Follow me on Twitter RSS FEED

Display images below

Posted in
Display images below
This is displayed in email client when one receives mail from new sender.


So why this normally asked?
Many might say that to avoid explicit or porno image. Yeap its true, but not in all cases. Cos these images will have tracker which fetches information about user system and cookies stored in temp folder as well.

Whenever you open a mail from spam folder or new sender never click display images below button but only after ensuring the content is from reliable sender.


Even you can track a mail
There is a website called spypig which renders image to the user as a tracker. Just fill some details like your email id, number of times you need to get notified and image details. It renders an image. All you need to do is copy the image and paste it in your mail or blog or social networking sites’. Each and every time when user views the image you will be notified with a mail to your email id. That’s a cool feature but it’s only for fun.

Think about the other mails which you receive. Like mails from corporate companies with contents like offer letter, Money Transaction, Bank Statement and User Account details. Even these mails might have trackers. Just to see if you opened the mail. They use Email marketing software, which provides them all the necessary features for tracking.


Don'ts
Never forward these sought of mails as your identity can be found. Especially kinds like Offer letter, User Account details!

And if you’re smart and do copy and paste content then mail it to others J.These trackers can be anywhere in the body of email and might not always being visible content. It can be even invisible content (web beacons) and not always an image but even some text.
-This is a web beacon :P

Have Wonderful day. Cheers.

A much awaited email

Posted in
AOLMAIL:"You Got Mail"

hearing above words, im excited and wanna know what mail is that? and it should be the mail which im waiting for 3 months.

So from the default screen i moved to inbox,and ... seeing the mail.

never felt so happy and my excitement gone very high.

And its the mail from infosys offering me the job for system engineer-trainee.

Finally going to mysore for the training and its on Dec 6th, well another 2 steps to become a successfull infoscian.

Fix to Windows 7 icon issue

Posted in
My friend had an issue with win7. He dont have any idea how it happen but all the icons changed to windows default icon.














When he told me, i googled and found some fix to this problem.

so here is the solution
  • Try to Restore as all people use to do.
  • Else try to clear the icon cache database.
1. Close all folder windows that are currently open.

2. Launch Task Manager using the CTRL+SHIFT+ESC key sequence, or by running taskmgr.exe.

3. In the Process tab, right-click on the Explorer.exe process and select End Process.

4. Click the End process button when asked for confirmation.

5. From the File menu of Task Manager, select New Task (Run…)

6. Type CMD.EXE, and click OK

7. In the Command Prompt window, type the commands one by one and press ENTER after each command:

CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
EXIT
8. In Task Manager, click File, select New Task (Run…)

9. Type EXPLORER.EXE, and click OK.

Thanks to winhelponline

Creating Transparant(Glassy) Layer For Web Page

Posted in
Lets start creating Glassy Layer.

Step1:
  • Fire Photoshop CS2 and above
  • Double click on the layer to unlock it
  • Erase the white using Eraser tool
  • You ll see black and white checks (transparent area)
  • now add any image or graphics
  • By selecting the item you added previously change the opacity to 45% range
  • after that File->Save for Web & Device...
  • Select the type as png-24 which is found below presets and save it
Now the image file is created.
Step 2:
  • Now in the HTML page use the image created above any other images.
Now this is called UI Experience.

Static background image for web page

Posted in
Many websites have there background image as static even when scroll, So how they do that?
Its just a one piece of CSS code..

background-attachment:fixed;

Even when you scroll this blog the background image is still. Well many times this is very cool but not all times.

Reverse String using XOR and without using Temporary Variable

Posted in
My friend faced this question for TCS technical interview. The code the much simple but the logic is bit complex

char* rev(char* str)
{
int end= strlen(str)-1;
int start = 0;

while( start<end )
{
str[start] ^= str[end];
str[end] ^= str[start];
str[start]^= str[end];

++start;
--end;
}

return str;
}
The the above version is with while loop even one can use for loop instead of it.

XOR (Exclusive OR) table
0 XOR 0 = 0
0 XOR 1 = 1
1 XOR 0 = 1
1 XOR 1 = 0
So how does it works.

First operation:x1 = x1 XOR x2
x1:100
x2:111
New x1:011
Second operationx2 = x2 XOR x1
x1:011
x2:111
New x2:100
Third operation:x1 = x1 XOR x2
x1:011
x2:100
New x1:111


So finally we have done X1 and X2 are swapped. This method is for both without using Temporary variable and also using Xor operator...

Pretty Cool huh...

Adding Parameter values to Database Query String

There were always problem with Adding Values to query string...

Consistent way:
const string query = "insert into TABLENAME (Id, Name) Values(?,?)";
object[] ParameterValues = {
IntId,
StrName
};
SqlConnection connection = new SqlConnection(connection_string);
SqlCommand command = new SqlCommand(query, connection);
foreach (object parameterValue in ParameterValues)
{
command.Parameters.AddWithValue("", parameterValue);
}
connection.Open();
command.ExecuteNonQuery();

So with this way we can add all the special characters like without using \(Back slash) to a sql Database.

Hope its usefull..