Your Ad Here

rel Attribute Meaning

Date: 21 Feb 2010 Comments:0

You may see rel attribute in many hyperlinks, it is a HTML attribute that is being used by search engines to ‘understand’ the relationship between target links and the resource on which they appear. Here’s more info about most popular rel attributes: rel attribute meaning example nofollow it signifies to the search engines that the [...]

Tags:

Should you create separate file for new enum in .NET?

Date: 20 Feb 2010 Comments:0

You may become in the following situation: You have some class and you want to add some enum for it, then you begin wandering should you add a new file for the enum. I think if the enum will be used by a single class then you should add the enum declaration inside the class. [...]

Simple Rotating Ad Script in ASP.NET

Date: 19 Feb 2010 Comments:0

In the home page, you can see ‘Your Ad Here’ image. If you go to another page, you’ll see another ‘Your Ad Here’ image. Here’s an example of rotating ad banners that you can use in your asp.net website: 1. You’ll need a folder in you web server with all the image ads in it. [...]

Tags:

Create a Na’vi Avatar Face using Photoshop

Date: 18 Feb 2010 Comments: 2 so far

If you have a photoshop and some free time, you can create a Na’vi Avatar face. Here’s some resources: 1. Na’vi Avatar Photo Manipulation Tutorial This tutorial contains all the steps you need to take to photo-manipulate yourself into a Na’vi. You can download the Na’vi ears. 2. Na’vi Avatar Photo Manipulation Video 3. Tutorial [...]

Tags:

Common Freelance Mistakes

Date: 17 Feb 2010 Comments:0

1. Falling Deadlines Time is money, so if you not succeed to finish your freelance project on time, your client may lose money by your wrong time planning. If you want further work, spend more time on planning your working time. 2. Always saying ‘yes’ Many freelancer are confused and afraid to lose the freelance [...]

Tags:

PHP Best Practices in Performance – Part 2

Date: 16 Feb 2010 Comments:0

After PHP best Practices in Performance Part 1, here’s the next post from the series: 1. You can use array_keys() within foreach() when dealing with arrays. The reson is that foreach returns a copy of the array value. Using of array_keys will avoid excessive memory consumption, ex. foreach(array_keys($array) as $ak) { $v =& $array[$ak]; … [...]

Tags:

How to declare and init a static Dictionary

Date: 15 Feb 2010 Comments:0

You may want to declare a static Dictionary variable in you code, here’s a simple example how it can be done in C#: using System.Collections.Generic; … public static Dictionary<string, string> dict = new Dictionary<string, string>() { {“key 1″, “value 1″}, {“key 2″, “value 2″}, {“key 3″, “value 3″} }; That’s all. It’s similar to the [...]

Did you grade your website?

Date: 14 Feb 2010 Comments:0

Today, While I was reading an e-book about internet marketing, the author claimed that his website grade of 76/100 in http://websitegrader.com. I decided to check my website http://www.devtheweb.net. … and the result was: A website grade of 96.5/100 for www.devtheweb.net means that means that of the millions of websites that have previously been evaluated, our [...]

Tags:

Free CSS Generator Online Tools

Date: 13 Feb 2010 Comments:0

Here’s a list of free css generator online tools: 1. QrONE CSS Designer – a css generator that allow you to view result as you select some of the options. 2. The Generator Form v2.90 – a css generator that gives you a lot of controls. 3. CSSCreator – it allows you to choose a [...]

Tags: ,

My URL Pattern

Date: 12 Feb 2010 Comments:0

I needed a url pattern that recognizes the following urls: http://site.com www.site.com https://site.com https://www.site.com Even more, I wanted after url detection, it to be replaced with: http://site.com -> http://site.com www.site.com -> http://www.site.com https://site.com -> https://site.com https://www.site.com -> https://www.site.com I use Regex’s Replace method. It detects all urls and replaces them with the correct format. Here [...]

Tags: ,