Blogging Mistakes

Date: 24 Feb 2010 Comments: 3 so far

Here’s my list of blogging mistakes that I try to avoid: 1. Not Blogging Consistently A blog without new content is dead blog. Will you visit a blog again and again if there’s no new posts. That’s the reason I add new posts everyday. 2. Not using own domain for your blog If you use [...]

Tags:

PHP Best Practices in Performance – Part 3

Date: 23 Feb 2010 Comments:0

After the PHP Best Practices in Performance Part 1 and Part 2, here’s the last post from the series: 1. Instead of print(), use echo. It is a statement, so you avoid the function overhead of print(). 2. Incrementing a pre-initialized local variable is 9-10 faster than incrementing an undefined local variable. 3. Incrementing a [...]

Tags:

Free Adobe Alternatives

Date: 22 Feb 2010 Comments:0

Recently, I learned that there are many Free Adobe Alternatives. So, before buying some adobe product, you can check out the list of alternatives: 1. GIMP GIMP is often called ‘the free Photoshop‘. Some of its features are customizable interface, photo enhancement, digital retouching. GIMP works under Linux, Microsoft Windows (XP, Vista), Mac OS X, [...]

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: 3 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 [...]