Guidelines for high-quality URLs

url-1024x768

Usability expert Jakob Nielsen (www.useit.com) urges developers to pay attention to URLs and
provides the following guidelines for high-quality URLs:
❑ A domain name that is easy to remember and easy to spell
❑ Short URLs
❑ Easy-to-type URLs
❑ URLs that refl ect the site structure
❑ URLs that are “hackable” to allow users to move to higher levels of the information
architecture by hacking off the end of the URL
❑ Persistent URLs, which don’t change

 

 

copied from wrox professional mvc 1.0

Posted in Technical | Comments Off on Guidelines for high-quality URLs

Thomas Edison, from code complete 2nd edition

When you come up with a first design attempt that seems good enough, don't stop! The second attempt is nearly always better than the first, and you learn things on each attempt that can improve your overall design. After trying a thousand different materials for a light bulb filament with no success, Thomas Edison was reportedly asked if he felt his time had been wasted since he had discovered nothing. "Nonsense," Edison is supposed to have replied. "I have discovered a thousand things that don't work." In many cases, solving the problem with one approach will produce insights that will enable you to solve the problem using another approach that's even better.

Posted in Quotes | Comments Off on Thomas Edison, from code complete 2nd edition

Send email from gmail using asp.net, godaddy shared hosting

godaddy[1]

“Sending email is working local, but when i put online its not sending and returning errors”,

We hear a lot of people online suffer from this annoying problem, i had the same problem but rather than spending a lot of time searching for solutions on google and forums, i went to godaddy support website, and i found the answer very clear, answers are on these to articles:

How should I send email from my IIS 7 Windows shared hosting Web site?

Using CDOSYS to Send Email from Your Windows Hosting Account

I tested this solution and worked perfect after launching the website on my godaddy windows shared hosting.

Posted in Technical | Comments Off on Send email from gmail using asp.net, godaddy shared hosting

Indexed pixel format problem in GDI+

Exception : "A Graphics object cannot be created from an image that has an indexed pixel format".

this exception happed in my application while trying to draw string on a .gif image,

I read about this problem and found in MSDN that: If the image has an indexed pixel format, this method throws an exception with the message, "A Graphics object cannot be created from an image that has an indexed pixel format." The indexed pixel formats are shown in the following list.

And found hundreds of articles talking about solving this problem, some a little complex and some really simple, i tested the simple way:

 

 

C# : indexed pixel problem

And its simply worked, just create a temp Bitmap and use it to create the Graphics.

Strange but worked!!

Posted in Technical | 1 Comment

Always liked this symphony Carl Orff: Carmina Burana

 

 

 

CarminaBurana

 

Carmina Burana
Explorer

Posted in Stream | Comments Off on Always liked this symphony Carl Orff: Carmina Burana

Trick to resize transparent images

I wanted to make a small image resize function in my asp.net website, and everything worked fine, but i faced a problem resizing transparent .png and .gif images.

After resizing done, i find that the output resized images transparent parts become white color and not transparent anymore.

This was my code:

 

And searched to find a solution for this problem with no hope for a complete easy solution.

 

And while trying to find a way, i remembered that i did a small resize tool “windows application” 4 years ago, i decided to try it and see the output, and i found after resize the image, the output is very nice and preserve transparent :).

I traced the code, and found the only difference is that in my windows application i was using the PictureBox control not the Graphics class.

I copies the code from there and put in my asp.net “sure needed to import System.Windows.Forms library in my asp.net to use the PictureBox control”.

 

And the Code became:

 

 

I believe that using Windows form control in asp.net is odd, but it solved my current problem, it may need some more testing for performance issues.

Posted in Technical | 1 Comment

Image of the day "twitter / over capacity"

twitter

Posted in News | Comments Off on Image of the day "twitter / over capacity"

Deploying ajax wcf service on shared hosting.

2 day ago i suffered from launching a testing website version on my shared hosting account, what i suffered from is that the website had a wcf ajax service which i was using in ajax calls from jquery to server.

I faced a lot of small problem in configuring the website to work the same as it works local.

The main problem i faced, that i didn’t find anyone on the internet talking about how to solve this problem completely.

After reading many articles and editing my web.config many times, i got it, and here is the result web.config which is running now on server and everything is working fine with wfc.

 

Notes:

My hosting was shared hosting godaddy, with IIS7 installed.

 

Also check this article, you may face this problem as me: http://blog.abstractlabs.net/2009/02/ajax-wcf-services-and-httphttps.html

 

Edit: after some days trying with ajax wcf on my shared hosting in my current project, i decided to remove it and get back to normal webservices, i don’t have time for “shared hosting-wcf” hassles, at least for now.

Posted in Technical | 2 Comments

Sometimes Ideas face’s …

 

Original Image

Posted in Geeky Life | Comments Off on Sometimes Ideas face’s …

28 !!!

 28

Posted in Stream | Comments Off on 28 !!!