Developping for the translation industry RSS 2.0



 Thursday, 11 June 2009

The difference between a 301 and a 302 is that a 301 status code means that a page has permanently moved to a new location, while a 302 status code means that a page has temporarily moved to a new location.

As you may know, there aren't too many situations where a 302 is the appropriate choice. How often have you temporarily moved a page? It's much more common to move pages permanently. However, for lazy webmasters, it is a lot easier to create 302 redirects than 301. You can simply use Javascript or a meta tag to create a 302. With Windows servers and IIS, creating a 301 redirect is pretty straitforward. In the website properties or the page properties, you select the following screen. You simply have to select the “A redirection du a URL” option and you have to make sure that the “A permanent redirection for this resource” checkbox is checked. If it isn’t checked, a 302 redirect will be issued by IIS.

301-redirect-iis

Using 302 redirects is a dangerous practice. Search engines don't like this redirection type because it is a common strategy that spammers use to get more of their domains up in search engine results. Another reason to use 301 redirects instead is that then your URLs maintain their link popularity. If you set up 302 redirects, Google and other sites that determine popularity ratings assume that the new link is eventually going to be removed. After all, it's a temporary redirect. So the new page doesn't have any of the link popularity associated with the old page. It has to generate that popularity on its own.

If you're changing your site's domain name, you should never use a 302 redirect. This almost screams "spammer" and is a good way to get all your domains blocked from Google and other search engines. If you have several domains that all need to point to the same place you should use the 301 server redirect. This is common practice for sites to buy additional domains with spelling errors (www.gooogle.com) or for other countries (www.symantec.co.uk), and then redirect them to the primary Web site. As long as you use a 301 redirect, you won't be penalized in search engines.

Other posts :

8 easy tips to drive traffic from search engines to your site

What Are Customers Saying About You Online?

Thursday, 11 June 2009 10:48:53 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
SEO
 Wednesday, 10 June 2009

This C# snippet lets you enumerate all the domain controllers in the current Active Directory Domain.

using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;

public static ArrayList GetDomainControllerNames()
{

ArrayList domainControllerList = new ArrayList();
Domain currentDomain = Domain.GetCurrentDomain();
foreach (DomainController dc in currentDomain.DomainControllers)
{

domainControllerList .Add(dc.Name);

}
return domainControllerList ;

}

Other relevant posts:

How To: Create User Accounts in Active Directory using C#

How to enumerate the Domains in the current Forest in C#

How To: Use Active Directory To Authenticate Users

Wednesday, 10 June 2009 13:07:53 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
C# | Code Snippet

This C# snippet lets you enumerate all the domains present in the current Active Directory Forest.

using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;

public static ArrayList GetDomainNames()
{

ArrayList domainList = new ArrayList();
Forest currentForest = Forest.GetCurrentForest();
DomainCollection myDomains = currentForest.Domains;
foreach (Domain domainItem in myDomains)
{

domainList.Add(domainItem.Name);

}

return domainList;

}

Other relevant posts:

How To: Create User Accounts in Active Directory using C#

How To: set NTFS Permissions using C#

How To: Use Active Directory To Authenticate Users

Wednesday, 10 June 2009 12:57:23 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
C# | Code Snippet
 Monday, 08 June 2009
Just found this excellent blog post (continually updated) that lists a ton of free SQL Server tools for all sorts of purposes. Check it out at http://weblogs.sqlteam.com/mladenp/archive/2007/11/20/Free-SQL-Server-tools-that-might-make-your-life-a.aspx.
Monday, 08 June 2009 10:04:24 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
SQL | Tools
 Friday, 20 March 2009

This function creates a new user Account in your active directory domain:

public string CreateUserAccount(string ldapPath, string userName, string password)
{
    try
    {
        string connectionPrefix = "LDAP://" + ldapPath;

        DirectoryEntry dirEntry = new DirectoryEntry(connectionPrefix);
        DirectoryEntry newUser = dirEntry.Children.Add(
"CN=" + userName, "user");

        newUser.Properties["samAccountName"].Value = userName;
        newUser.CommitChanges();

        newUser.Invoke("SetPassword", new object[] { password });
        newUser.CommitChanges();

        dirEntry.Close();
        newUser.Close();
    }
    catch (System.DirectoryServices.DirectoryServicesCOMException E)
    {
        //…
    }
}
 

Related posts :

How To: Use Active Directory To Authenticate Users

How To: set NTFS Permissions using C#

How to enumerate the Domain Controllers in the current Domain in C#

Friday, 20 March 2009 13:11:31 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
C# | Code Snippet
 Wednesday, 11 March 2009

If you haven’t already jumped on the Silverlight train, here’s a fun way to get you started.

Tess has up on her blog a full tutorial on creating a game in silverlight.

Her game project is divided in 5 parts:

Part 1 - Creating the main layout

Part 2 - Creating a Car user control

Part 3 - Using Linq to XML to read and generate the levels

Part 4 - Adding drag and drop functionality to move the cars around

Part 5 - Storing high scores in Isolated Storage with Linq to XML

And by the way, she maintains the best debugging blog i’ve seen. Called “If broken it is, fix it you should”, she write very high quality content and covers lots of advanced stuff  debugging application hangs, application crashes and memory leaks.

Wednesday, 11 March 2009 09:54:18 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Silverlight | Games

What is Native Client?

Native Client is an open-source research technology for running x86 native code in web applications, with the goal of maintaining the browser neutrality, OS portability, and safety that people expect from web apps.

About the contest

Do you think it is impossible to safely run untrusted x86 code on the web? Do you want a chance to impress a panel of some of the top security experts in the world? Then submit an exploit to the Native Client Security Contest and you could also win cash prizes, not to mention bragging rights.

What is the contest

This is a contest with the goal to test the security of Native Client.

To participate, you will need to:

  • Register yourself (or your team)
  • Download our latest build
  • Join the NaCl discussion group
  • Report the exploits you find to our team

When

You can register for the contest on Wednesday, February 25th 2009. The contest will end on Tuesday, May 5th 2009 at 11:59:59 Pacific time. Sign up early to start reporting exploits as soon as possible.

What’s in it for you

Participating in the contest means that you will engage with early stage research technology. In addition, your work will be reviewed by a panel of security experts from some of the world’s most renowned universities, chaired by Edward Felten of Princeton University. Finally, by submitting high impact bug(s), you will also have the chance to compete to win one of our five cash prizes, as well as the recognition of your peers.

Eligible participants that are ranked in the top 5 positions of the competition by Judges will receive the following awards in U.S. Dollars based on their rank:

1st prize: $8,192.00
2nd prize: $4,096.00
3rd prize: $2,048.00
4th prize: $1,024.00
5th prize: $1,024.00

Winning Entries will be announced on or about December 7th.

Details at:

http://code.google.com/contests/nativeclient-security/

Wednesday, 11 March 2009 08:57:37 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
News | Security
 Friday, 20 February 2009

MicrosoftolsbofferThe words “free” and “Microsoft” don’t often appear in the same sentence, so imagine my surprise at discovering this deal: a free custom domain name, free Web hosting, free e-mail accounts, and more.

As you might expect from the name, Microsoft Office Live Small Business has a decidedly business focus–but that doesn’t mean you can’t use it for a personal site.

The freebie account includes not only the domain (any available .com, .net, .org, or .info address), but also site-building tools, reporting tools, project and document managers, 100 e-mail addresses, and collaboration-minded online workspaces. You get 500MB of storage, too.

So what’s the catch? There really isn’t one, though the free domain hosting expires after one year. After that, it’ll run you $14.95 annually.

Photo by Microsoft.

Friday, 20 February 2009 15:41:02 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
News

Following my post on Chuck Norris programming facts, here is more facts for your viewing pleasure:

  • MVC actually stands for Model-View-ChuckNorris. Controller is just one of his nicknames.
  • Chuck Norris was written in C# which itself was written in Chuck Norris
  • You don't follow Chuck Norris on Twitter. He follows you, finds you, and kills you
  • The design of Silverlight DeepZoom was directly inspired by Chuck Norris’ powers of bionic vision.
  • Chuck Norris doesn't write code...oh no, he thinks about the finished product and the code appears.
  • Chuck Norris has no need for virtual methods. Nothing can override Chuck Norris.
  • A synchronize operation doesn't protect against Chuck Norris, if he wants the object, he takes it.
  • Chuck Norris invented recursion to see what would happen if he roundhouse kicked himself.
  • Chuck Norris can multi-thread on a single processor by breaking it into pieces.
  • Chuck Norris wrote a program that calculated the last digit of pi.
  • Chuck Norris' compiler is afraid of displaying warnings to him. It just fixes the code automatically.
  • Chuck Norris uses Vista with UAC turned on. He has received no warnings. Ever.
  • Chuck Norris monitor has no glare…no-one glares at Chuck Norris.

 

And as a last one for today, try to type "How to Find Chuck Norris" in Google and click "I'm Feeling Lucky"…

Friday, 20 February 2009 13:34:35 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Humor
 Friday, 13 February 2009
“Beware of bugs in the above code; I have only proved it correct, not tried it.”
(Donald Knuth, 1977)

“It is practically impossible to teach good programming style to students that have had prior exposure to Basic; as potential programmers they are mentally mutilated beyond hope of regeneration.”

(Edsger W. Dijkstra, 1982)

“The question of whether computers can think is like the question of whether submarines can swim.”

(Edsger W. Dijkstra)

“The use of COBOL cripples the mind; its teaching should therefore be regarded as a criminal offense.”

(E.W. Dijkstra)

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”

(Bill Gates)

“Software suppliers are trying to make their software packages more ‘user-friendly’…  Their best approach so far has been to take all the old brochures and stamp the words ‘user-friendly’ on the cover.”

(Bill Gates)

“Never trust a computer you can’t throw out a window.”

(Steve Wozniak)

“Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.”

(Stan Kelly-Bootle)

“Computers are like bikinis. They save people a lot of guesswork.”

(Sam Ewing)

“No matter how slick the demo is in rehearsal, when you do it in front of a live audience, the probability of a flawless presentation is inversely proportional to the number of people watching, raised to the power of the amount of money involved.”

(Mark Gibbs)

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”

(Martin Golding)

Walking on water and developing software from a specification are easy if both are frozen.

(Edward V Berard)

Java is to JavaScript what Car is to Carpet

(Anonymous)

"If you want to set off and go develop some grand new thing, you don't need millions of dollars of capitalization. You need enough pizza and Diet Coke to stick in your refrigerator, a cheap PC to work on and the dedication to go through with it."

(John Carmack)

Software and cathedrals are much the same - first we build them, then we pray.

(Anonymous)

Friday, 13 February 2009 16:45:37 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
General | Humor
 Thursday, 05 February 2009

Seth Godin’s blog is one of those that I religiously follow. He is a great marketing guru, wrote numerous books and speaks at various conferences. He always finds the right way of saying things and he’s simply a great writer.

If you haven’t already done so, add his feed to your feed reader.  You won’t be disapointed.

For example, here is Seth’s post for today.  Very insightful.

The telephone destroyed the telegraph.

Here's why people liked the telegraph: It was universal, inexpensive, asynchronous and it left a paper trail.

The telephone offered not one of these four attributes. It was far from universal, and if someone didn't have a phone, you couldn't call them. It was expensive, even before someone called you. It was synchronous--if you weren't home, no call got made. And of course, there was no paper trail.

If the telephone guys had set out to make something that did what the telegraph does, but better, they probably would have failed. Instead, they solved a different problem, in such an overwhelmingly useful way that they eliminated the feature set of the competition.

The list of examples is long (YouTube vs. television, web vs. newspapers, Nike vs. sneakers). Your turn.

Thursday, 05 February 2009 12:15:45 (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
Business

Navigation
Advertisement
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2018
Stanislas Biron
Sign In
Statistics
Total Posts: 135
This Year: 0
This Month: 0
This Week: 0
Comments: 1
All Content © 2018, Stanislas Biron