Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
301 Redirect
8.9.2009 12:08:59 - Filed under : Asp.net | Misc | SEO
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
Domain aliases is usually considered spamming to the search engines because the domain name DUPLICATES the content on your primary domain and in turn, masks the domain name under the secondary domain. They may feel you are trying to trick them when you use a domain alias. Because what they see when they crawl an aliased domain is a website domain that has exactly the same content as the primary domain.

You can Test your redirection with Search Engine Friendly Redirect Checker

Below are a Couple of methods to implement URL Redirection

IIS Redirect

    * In internet services manager, right click on the file or folder you wish to redirect
    * Select the radio titled "a redirection to a URL".
    * Enter the redirection page
    * Check "The exact url entered above" and the "A permanent redirection for this resource"
    * Click on 'Apply'

ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

PHP Redirect
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>

ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>

JSP (Java) Redirect
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );
%>

CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end

Keywords : 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. Do not use "domain alias" for URL redirection.
with 0 comments

Gmail apps for Email hosting
6.9.2009 12:14:08 - Filed under : Asp.net | Misc
I'll show you how to tranfser your mail server (MX) to Google Apps.

Step 1/2 : Changing MX records (with plesk panel)
- Select your domain
- Select "DNS Settings" in Services section
- You will see 12 records. Delete only this record :     
  yourdomain.com.    MX (10)        mail.yourdomain.com.
- Add these records.(with Record Type = MX)
  Note : "Enter mail domain" is blank

 Enter mail exchanger        Specify priority of mail exchange server
 ASPMX.L.GOOGLE.COM.         10
 ALT1.ASPMX.L.GOOGLE.COM.     20
 ALT2.ASPMX.L.GOOGLE.COM.     20
 ASPMX2.GOOGLEMAIL.COM.     30
 ASPMX3.GOOGLEMAIL.COM.     30
 ASPMX4.GOOGLEMAIL.COM.     30
 ASPMX5.GOOGLEMAIL.COM.     30

Step 2/2 : Sign-up google apps
You should create your account with this url : http://www.google.com/apps/intl/en/group/index.html
Confirm your membership with mail that sent by goggle apps.

Optional :
Configuration for Outlook :
incoming : pop.gmail.com
smtp     : smtp.gmail.com
More settings :
Outgoing Server - My outgoing server(SMTP) requires authentication
Advanced - Incoming server (POP3) : 995
This server requires an encrypted connection (SSL)
Outgoing server (SMTP) : 465
Use the following type of encrypted connection : SSL

Note : You can access your inbox at http://mail.google.com/a/yourdomain.com

Keywords :  Gmail apps configuration/implementation/installation
with 0 comments

No buffer space available Fix
29.8.2009 12:08:04 - Filed under : C# | Asp.net | Misc | SQL
Error : An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full xxxx.xxxx.xxxx:80

Solution 1 :

I think I've found a reason for it: My anti-virus scanner, NOD32 v2.51.12 x64, with enabled HTTP scanning. If the HTTP scanning on port 80,8080,3128 and "Auto Detect HTTP communication on other ports" is enabled, both versions will crash. After I disabled the IMON (Internet Monitor) and EMON (MS Outlook E-Mail Monitor) features in NOD32 everything seems to work fine.

Solution 2 :

Editting the registry is not for beginners, if you don't know what you're doing I suggest you don't try this, basically it's use at your own risk. Anytime you want to edit the registry it is a good idea to back it up first..

If you are using Windows 95/98/Me follow these steps:

First step is to launch the registry editor. To do this go to Start, Run and type regedit. In the left pane navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP once there, look for an entry called MaxConnections. If it exists highlight it by clicking it and then right click it and select modify. Increase the value (recommended value is to double the current value).

If the MaxConnections entry does not exist you must create it. To do this, right click in the right pane and choose new from the menu and select String Value. Give it the name MaxConnections. Then right click it and select modify and enter a value of 800.

Restart your computer, if all goes well then you fixed the problem, if not, revert the changes by restoring the registry. (You may have to reboot to safe mode to do this).

If you are running Windows NT/2000/XP follow these steps:
First step is to launch the registry editor. To do this go to Start, Run and type regedit. In the left pane navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters once there, you must create the entry TcpNumConnections. To do this, right click in the right pane and choose new from the menu and select DWORD Value. Give it the name TcpNumConnections. Then right click it and select modify and enter a value of 800.

Restart your computer, if all goes well then you fixed the problem, if not, revert the changes by restoring the registry. (You may have to reboot to safe mode to do this).

Consideration :

TIP 1 : I have seen NOD32 cause WSAENOBUFS (10055) on many systems. They seem to do something which lowers the resources available to networking applications.
TIP 2 : Problem is caused by a recent windows patch.  If you remove patch KB948609 the client side deserialization will except large datasets again.
TIP 3 : If an application performs many network connections simultaneously or within a short window of time, the application developer might need to increase this number and reduce the TcpTimedWaitDelay value to avoid receiving a WSAENOBUFS (10055) error: "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full." (http://msdn.microsoft.com/en-us/library/ms819739.aspx)


Keywords : WSAENOBUFS, 10055
with 0 comments

Sorenson Squeeze for reducing .flv files
27.6.2009 22:32:09 - Filed under : Asp.net | Misc
For starters, Sorenson Media has been the global leader in video encoding and compression technology for nearly a decade and a half.

What does that mean? It means that every day thousands of people rely on Sorenson Media for all their video encoding, publishing and delivery needs. So then the question becomes: Why wouldn't you?

When quality counts, turn to the company you can trust, turn to Sorenson Media.

Raw, uncompressed video is a huge beast. Traditionally, getting it online meant sending any large, foreboding video to the unknown server in the sky so they can encode and deliver to you when they got around to it. This takes up resources, bandwidth and most importantly time. Oh yeah, and it can cost a lot of money.

Utilizing Sorenson's desktop and web-based applications you can compress that video down to a manageable size, upload it to the web and publish to your site in a matter of minutes.

This is my experience steps for reducing size of flv file :

- Get .flv file with "Import File"
- Select "Format Sort" in "Audience presents"
- Select "Adobe Flash Video (.flv)" at line third
- You can choose "F8_256K" to best performance (according to my experience)
- Click "Apply" button to apply filter
- Click "Squeeze it!" at right bottom side of screen to start conversion.
- You can access converted file at directory that original file already located.

Keywords : Reducing .flv video file without loss of quality. Sorenson Squeeze v5.0
with 0 comments

AWstats Installation - Best IIS Log Analyzer
19.5.2009 21:57:37 - Filed under : Asp.net | Misc
AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically.  This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages.  It  uses a partial information file to be able to process large log files,  often and quickly.  It can analyze log files from all major server tools like Apache log  files (NCSA combined/XLF/ELF log format or common/CLF log format),  WebStar, IIS (W3C log format) and a lot of other web, proxy, wap,  streaming servers, mail servers and some ftp servers.

AWStats is such a great statistical tracking program to use, but there seems to be a lack of easy-to-  follow documentation available for installing AWStats on IIS.  This document covers the basic setup   process and will certainly get you started tracking statistics for your websites.  If anyone is having   troubles getting AWStats to work with IIS 6.0 (or IIS 5.1) after following this documentation please write to me  and I will do my best to respond.

Installation guide for English

Installation guide for Turkish

Troubleshooting :  
  When you trying to install AWstats after Perl, you may encounter this error :  "The installer did not find any PERL interpreter in your PATH"

Resolution :
      1] In Windows Explorer, right click on "My Computer" then goto properties.
      2] Click the Advanced tab
      3] Down the bottom click "Enviroment Variables"
      4] Click to New under the "User variables for .." Variable name : pl Variable Value : c:\perl (perl root directory)
      5] Click ok on all open windows

Keywords : AWStats, best IIS log analyzer
with 0 comments

Previous | Next
Current Page: 1