The difference in code

Differences in coding the same code by different people

Advertisements

Connection between the Internet time and low grades?

A recent research (Social and Psychological Correlates of Internet Use among College Students) proved that students spending time each day on the Internet, texting or talking on mobiles appeared to be more anxious, miserable people and got lower grades. The study involved 536 students representing 82 different majors.

mattastressrelax.jpg

During the research, the students recorded daily mobile use, and each of them took social science tests which measured anxiety and satisfaction with their life, or happiness. The study was divided between students who used their gadgets only to keep in touch, but were able to put it away and get on with other tasks. Another group was higher frequency users, who were unable to control phone use and therefore glued to their mobiles.

The researchers admitted that they chose college students for their study because they seem to be the first generation to grow up immersed in the digital technology. The students allowed the researchers to retrieve their cumulative grade point average, as well as to measure their texts and calls sent and received and overall use.

The researchers revealed a strong relationship between high mobile use and high anxiety: for example, the students who text under the table during lectures don’t do as well as students who leave the phone in the backpack.

301 Permanent Redirects of non-www to www

The Problem

Search engines consider http://carra-lucia-ltd.co.uk and http://www.carra-lucia-ltd.co.uk different websites. As a result, if your website has been linked to from other websites using a mix of the two URLs you are effectively splitting the potential benefit of valuable link popularity.

The Solution

Using a 301 redirect on the “non-www” version of the URL, which is essentially a “permanent” redirect in server talk, you can effectively consolidate all of your link popularity to a single URL. This consolidation will serve to increase your website’s chances of obtaining and maintaining top rankings.

How To Enable The 301 Redirect

You need to instruct the server you are hosting your website on to redirect the traffic seamlessly. To do this you need to first establish what type of server your website is hosted on. There are two main types of servers that are in use: Microsoft and Apache (Linux/Unix). Once you have established the server type you need to follow their related instructions below. Please note this is best left to a person with some technical knowledge.

 


IMPORTANT: 301 redirects are a critical step in ensuring your website is search engine friendly. That said, there are over 120 elements that also contribute to maximum search engine friendliness. These elements are discovered by conducting an effective SEO Website Audit.

 

A) Installing the Non-WWW 301 Redirect on an Apache Server

  1. Ensure that your hosting provider has the Apache Rewrite Module turned on; this is a definite requirement for this fix to work. In most cases your hosting provider will not have a problem enabling the module if it isn’t already enabled (it seems to be on in most circumstances).If you have access to the httpd.conf file on your server then you can actually enable the module yourself. Open the httpd.conf file, back it up somewhere in case of error (you cannot be too safe) and then uncomment the following line:
    LoadModule rewrite_module modules/mod_rewrite.so
    Once the line is uncommented, save the file and restart the server then proceed with the following steps.
  2. Download the .htaccess file from your website’s root web folder to a folder on your machine where you can edit it.
  3. Make a copy of the .htaccess file and save it somewhere else for safe keeping in case you need to revert to the old version – do not edit this version.
  4. Open the original .htaccess you downloaded in Notepad
  5. Add the following code (in red) into the .htaccess file. Be sure to substitute “example.com” with your own website information but touch nothing else.
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
  6. Upload the file back to your website in the exact same place you downloaded it.
  7. Once the upload is complete open a browser and try visiting the “non-www” version of your website address. If the .htaccess is working as it should you will be redirected immediately to the proper “www” version of your website. This will be reflected in your browser’s address bar.
  8. To be 100% certain this has worked appropriately I suggest visiting this URL and typing in your “non-www” website address into the HTTP Server Header Checker. This tool will show you whether the 301 redirect is being provided by the server. This is what a search engine will see when it visits the site. The result should look like the following areas in red:
    #1 Server Response: http://example.com
    HTTP Status Code: HTTP/1.1 301 Moved Permanently
    Date: Wed, 14 Mar 2007 22:49:28 GMT
    Server: Apache/1.3.27 (Unix) PHP/4.4.1 FrontPage/5.0.2.2510 mod_ssl/2.8.14 OpenSSL/0.9.6b
    Location: http://www.example.com/
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Redirect Target: http://www.example.com/#2 Server Response: http://www.example.com/
    HTTP Status Code: HTTP/1.1 200 OK
    Date: Wed, 14 Mar 2007 22:49:28 GMT
    Server: Apache/1.3.27 (Unix) PHP/4.4.1 FrontPage/5.0.2.2510 mod_ssl/2.8.14 OpenSSL/0.9.6b
    Connection: close
    Content-Type: text/html
  9. If the redirect worked you are done! Congratulations.If this has not worked you need to restore the backup you made of the .htaccess file to your website. After the backup is restored go back and review the revised .htaccess on your computer, compare the information to the instructions above and make sure there were no mistakes. If no mistakes are found your server may require custom programming which is beyond the scope of this FAQ; please contact your hosting provider for more information.

B) Installing the Non-WWW 301 Redirect on a Microsoft IIS Server

Microsoft servers do not have a .htaccess file to alter so we suggest that you contact your hosting provider and request they make this change for you. If they are baffled or need further instructions on how to make the changes you can refer them to the tutorials referenced below:

  1. Using Internet Services Manager create a new IP-based website using the http://xyzname.comURL or alternatively you can avoid using a unique IP by using the host header (virtual website) ofwww.xyzname.com.
  2. Now verify the server headers for each website using the Server Header Checker. The server response should be 200 OK for both addresses.
  3. Now add your domain-revised version of the following ASP code to the default home page forhttp://xyzname.com:
    < %@ Language=VBScript %>
    < %
    Response.Status=”301 Moved Permanently”
    Response.AddHeader “Location”, http://www.xyzname.com
    %>
    Note: do not change the spacing or line placement within the above code; place it as is.
  4. Once the default page is online first visit your website via http://xyzname.com to ensure the redirect is working. Next check the server headers for http://xyzname.com and make sure you see the following code within #1: “HTTP Status Code: HTTP/1.1 301 Moved Permanently”. That code will confirm the 301 redirect is being properly communicated.

ASP.NET CODE TO DO A 301 REDIRECT (VB.NET)

Private Sub Page_BeginRequest(sender As Object, e As EventArgs) Handles Me.BeginRequest

Dim myContext As HttpContext = HttpContext.Current

Dim currentUrl As String = myContext.Request.Url.ToString().ToLower()
If (currentUrl.Contains(“http://domain.com“)) Then
myContext.Response.Status = “301 Moved Permanently”
myContext.Response.StatusCode = 301

myContext.Response.AddHeader(“Location”, currentUrl.Replace(“http://domain.com“, “http://www.domain.com“))

End If
End Sub

Dim myContext As HttpContext = HttpContext.Current

How to remove related videos from the end of an embedded YouTube video

We recently ran into an issue with one of the videos on a website – that needed to have the YouTube Recommends videos at the end of the embedded video.

A quick search turned up with this great article from iluminea.com: How to remove related videos from the end of an embedded YouTube video

For those in a hurry, here’s how to do it:

?rel=0

This query string parameter will remove all related videos from the end of an embeded video.

Cooling Your Hard Drive

For several different reasons, storage is a very important part of a computer. These days, computers do far more than they ever have in the past. From businesses to family photo’s, storage is the ideal way to keep documents on your computer. The most popular method of storage is the hard disk drive, which we all count on for keeping our data safe.

Even though the hard drive stores data, it isn’t perfect by any means. Hard drive failure is very common with all computers, with no real way to prevent it. Although there are several different reasons why a hard drive can fail, the most common is overheating. Viruses and crashes are common as well, along with theft and accidental deletion.

When your laptop is on fire... backup your data
When your laptop is on fire… backup your data

With the older style and mechanics of hard drives, the RPM speed was low, meaning that the drives wouldn’t overheat. The hard drives we use now days, have speeds between 7,200 and 10,000 RPM, meaning that they can get quite hot when they start working. Computers of this day and age come with fans to cool everything down, with most hard drives including temperature sensors as well, so you can keep track of just how hot your hard drive becomes.

With hard drives today, overheating is a very common problem. The faster hard drives come with speeds of 10,000 RPM, which can make the temperature soar above 70 degrees F, really heating things up inside the drive. The mechanics on the inside are built to withstand the heat, although if things become too hot, you’ll encounter problems. If a drive becomes too hot and ends up losing the data, it may be next to impossible to retrieve the information – no matter how good your data recovery specialists may be.

One area that suffers from the drive overheating is the platters, which are magnetic media. Platters are what carry the data throughout the hard drive. Platters are constructed from optical glass, aluminum, or ceramic and normally coated with a layer of magnetic material. Once the hard drive begins to heat up, the platters will start to expand, which changes their size. When this happens, the magnetic surface on the platters will get destroyed, which results in a loss of data. If the physical area of the platters are damaged, it will result in unreadable sectors.

Other areas of the hard drive that can be damaged due to overheating are the read and write heads, head actuator, and the controller chip. Hard drives are very sophisticated pieces of hardware, and can’t handle overheating. The read and write heads are a common example, as they can easily render the drive useless if they become damaged. If they get too hot, they don’t make any contact with media, which pretty much stops the flow of transfer from information to the computer.

To prevent your hard drive from overheating, you should always make sure that it is cooled properly and well ventilated. You can always get additional fans and coolers, which will improve both ventilation and the flow of air in your computer. You can buy fans and coolers at very affordable prices, which makes them an ideal investment for keeping your hard drive or hard drives cool.

You can also get software that monitors the temperature of your hard drive as well. Whether it’s software, or additional fans, you should always ensure that your hard drives are kept cool. By keeping them cool, you’ll greatly reduce the amount of crashes. You’ll also increase the stability of your hard drive as well, which will make your entire computer perform much better.

Tips For Data Recovery

Anytime your hard drive crashes or you lose your data, you’ll need to turn to data recovery to properly restore your information. Data recovery is something most computer users are familiar with, as a majority of us have had to turn to data recovery at some point in time. Even though hard drives are becoming better and better, they are still mechanical and will always encounter problems.

The first thing to do, before any problems happen, is to always back up your data. If you create backups of your information, you’ll be well prepared in the event of a disaster. This way, even if your hard drive cannot be repaired and the data is lost forever, you’ll have the back ups to continue going as normal. If you didn’t make back ups, you’ll find the situation very traumatic when you discover that your data cannot be recovered.

Most hard drives will last for years before they start to encounter any type of malfunction or hardware problems. You can help prevent data loss by turning off your computer when it isn’t in use, or shutting it down when you hear the hard drive making an odd noise. If the hard drive starts to malfunction, letting it continue to run will only do more damage. If you shut it off immediately and take it to a specialist, you’ll have a much better chance of getting it repaired.

With natural disasters, hackers, viruses, or other problems, you won’t have the time to react. Before you know it, your hard drive will be damaged and your data will be gone. Although this can be very frustrating, data recovery can normally bring your information back. All you need to do is take the hard drive to a local specialist, then let them work their magic and show you the power of data recovery.

Backup ButtonThere are software programs out there that claim to recover lost data, although you should avoid them at all costs. Most of time, these software programs will do your hard drive more bad than good. Even though software may cost a lot less than professional data recovery services, the professional services will guarantee their work. If you turn to software and it only makes things worse – your more or less out of luck, as the software doesn’t guarantee anything.

Anytime your hard drive fails and you seem to have lost your data, you should turn to professional data recovery services immediately. They may cost you a lot of money, although they do the job right the first time. When it comes to your data, you really don’t want to take any chances – especially if you had important documents and files stored on your hard drive.

Offsite Backup Advantages

Western Digital My Book Storage Option
Western Digital My Book Storage Option

Creating backups of your data and files is a very important way of staying on top of disaster and missing data. Both small and large businesses, including individuals, always look towards a backup of information to keep them going in the face of disaster. Even though backups are a great way to keep your data safe and protected, there are some flaws with the traditional methods.

When you create backups of your data, you must store them somewhere where they can’t be damaged or someone else can access them. For businesses, offsite backup is a well known and popular way to backup files. It offers you several different advantages when compared to other ways, such as BluRays, DVD, external hard drives, and even servers. One of the biggest advantages to offsite backup is the fact that the backups aren’t stored in your office or business.

Offsite backup companies store your data in state of the art safes, to protect them against fire, flood, and even prying eyes. This can be extremely beneficial if unexpected things have a habit of occurring around your office.

Another great thing about offsite backups are the fact that they can be used as stores for your data. You won’t need to rely on online space, as you can easily go to the company who is storing your data and go through it anytime you wish. You can also use online space with most companies as well. You simply upload your data to their online storage area, then go back anytime you wish and view it. This is a very handy feature, similar to a hosting company.

Another benefit of offsite backup is the fact that your data will always be protected, and you won’t have to use CD or DVDs to do it. CD and DVD storage is great for individuals, although there will be quite a bit of them for most businesses. This can get somewhat costly, but more importantly, it will use a lot of space to store the backup files. They can also become damaged or lost, unlike offsite backup storage.

Offsite storage is also great if your business is in a bad area. If Mother Nature has a habit of bashing your area with floods, fires, or hurricanes, you should look into offsite backup storage immediately. They have ways to protect your information from harm, including anything Mother Nature can dish out. There is no need to worry about natural disasters, system failures, hard drive crashes, or data failure with offsite backup storage.

Even though you may not realize it, the data will be available anytime you need it. Online backup services are available anytime, day or night, and can be accessed anywhere you are. Most are easy to set up, and offers you very impressive security measures. They are also fast and very efficient, which is great for those who need to access their files immediately.

When it comes to offsite backup, you can store virtually any file you need to, such as text files, e-books, contact record, pictures, music, and anything else you can think of. The storage for online backups are virtually endless, capable of storing everything you need.

All in all, offsite backup storage is ideal for any business or corporation. You can store your data with an online offsite backup, or choose to do it physically in an offsite safe. The choice is entirely up to you. No matter which method of offsite backup you choose – your data will always be protected, and best of all – it will always be there anytime you need it.