A little something about everything

internet marketing and website development made simple..

How to see if a sender is being spoofed in outlook: helping to prevent fraud and malware

Many times you may receive emails in Outlook that are pretending to be someone they are not, even sometimes they may appear to be coming from yourself.

Simple and effective way to see who the sender of each email really is,

  1. Click on the window where you view incoming emails, then click "view", "add columns"
  2. Now click "New Column" and name it something like "Sender"
  3. Change the Type to "Formula", click "edit" and enter the following: 
    right(([SearchFromEmail],[SearchFromEmail]),InStr(1,[SearchFromEmail],"@"))
    or right([SearchFromEmail],len([SearchFromEmail])-InStr(1,[SearchFromEmail],"@")) to show just the domain.

How to globally redirect all requests from http to https using asp.net

The most effective method will be to use the global.asax file, here is a basic example:

<script language="C#" runat="server">
protected void Application_BeginRequest(Object sender, EventArgs e)	{
if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://"))
{
    HttpContext.Current.Response.Status = "301 Moved Permanently"; 
    HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace("http://","https://")); 
}
}
</script>

In some cases you may already have an application using the global.asax file, you can in many cases add the _BeginRequest function or adapt it if it already exists. For example add this after the <script runat="server"> tag but before any other code.

protected void Application_BeginRequest(object sender, EventArgs e)	{
	if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://"))	{
	HttpContext.Current.Response.Status = "301 Moved Permanently"; 
	HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace("http://","https://")); 
	}

In some cases this will throw and error, before sure to check the rest of the global.asax file for any other begin requests that may be conflicting. In some cases you may need to adapt the code to work in parallel with exiting code.

Huge pagefile.sys, how to make it smaller or move it to another drive.

Most likly if you have a huge pagefile.sys file, you have a lot of ram as well. In this case assuming you have over 16GB of ram you really do not need the pagefile.sys but you may want it just in case.

If you have an SSD drive for your primary boot/OS drive then the pagefile can eat away at your available space.

Run "SystemPropertiesAdvanced.exe", click "settings" under performance section.
Select the "Advanced" tab and choose "Change" under the Virtual memory section.
If you have more than 16 GB of RAM you can select No paging file, however even with more than 16GB I like to specify at least 4096/4096 under custom size. After you choose your size click "set".

Thats it your done.

Optional, you can set the pagefile to be on a drive other than "C", pagefile is used when your system runs low on ram as backup RAM. This can be useful if you do a lot of photo or video editing. I like to set a pretty large pagefile on my raid 10 array.