Category: Knowledge Base

How to redirect www requests to non-www URL

If you would like to redirect all the requests to the www version of an URL to the non-www version – for example http://www.geekpedia.com to http://geekpedia.com – you can do that by placing the following mod_rewrite rule in your .htaccess file: RewriteCond %{HTTP_HOST} ^www.geekpedia.com$ [NC]RewriteRule ^(.*)$ http://geekpedia.com/$1 [R=301,L] The redirect code 301 means Moved Permanently […]

A complete list of what each IntelliSense icon from Visual Studio .NET means

Here’s what the icons in Intellisense from Microsoft Visual Studio .NET represent: Assembly Delegate Event Interface Namespace Structure Public class Protected class Private class Public constant Protected constant Private constant Public enumeration Protected enumeration Private enumeration Constant inside enumeration Public method Protected method Private method Public property Protected property Private property Public variable Protected variable […]

When you have to pass an array to a method, you can directly pass the values without creating the array

If you have to pass an array to the method myMethod you would usually do something similar to this: int[] myArray = new int [3] {23, 48, 96, 114};myClass.myMethod(myArray); But why create an array when you can pass the integers directly? The compiler takes care to pack the integers into an array. myClass.myMethod(23, 48, 96, 114);

Back To Top