Search Results

Posted by Shahar Y on Oct 9th, 2008 | Filed under .Net, C# | 13 Comments »

Sometimes we need to know the width of a given string in pixels, do you know how to compute it? Before writing some long code, please notice that the .NET framework class library provides such a method. When Googling about this issue, we find the Graphics.MeasureString Method, here is how to use it:

Graphics graphics = this.CreateGraphics();
SizeF textSize = graphics.MeasureString("How long am I?", this.Font);

Nice isn’t it? Well, there is one little problem here, how is the Graphics object created? The written code is a Windows Forms code, so the this is the Form itself. You can’t create the Graphics object by simply allocating it because…


Continue Reading...
Posted by Amit on Apr 17th, 2009 | Filed under Misc., Technology & Internet | No Comments »

Hey all.

 

Nothing new for this month so apart from reminding you that if you want to make a quick 30$ all you have to do is to drop us an good unique article (you can get more information on our Make Money Writing Articles Page). I will move on to the stats.

 

Here are March’s Stats:


Continue Reading...
Posted by Amit on Mar 17th, 2009 | Filed under C# | 1 Comment »

p>Hey all.

 

This weekend I typed Dev102 on google just to see what I will get and guess what? We have joind the big league :) We have site links!! This is what you get when you type Dev102 in Google:

Dev102 Site Links

 

Now all we have to do is get the links to point to the interesting stuff.


Continue Reading...
Posted by Amit on Nov 13th, 2008 | Filed under .Net, ASP.Net, C#, Web Dev | 5 Comments »

Today’s article is going to be one of many, or at least a few, that take a look at building an application using the new ASP.Net MVC Beta. I wanted to do this in a small series so we can look at each phase of the application in a decent amount of detail while keeping the length appropriate for a blog post.

 

This first part isn’t actually going to crack the lid on MVC just yet but we are going to look at a few things today.

  1. What is MVC and specifically what does ASP.Net MVC look like?
  2. What will the goals of our application be? What features will it have?
  3. What will our database structure look like?

Continue Reading...
Posted by Shahar Y on Oct 27th, 2008 | Filed under Web Dev | 16 Comments »

Author: Justin Bezanson

Have you been told that using those fancy JavaScript navigation menus is bad for your search rankings or that you will lose some visitors that have JavaScript turned off? This is a decision that all web developers face at one time or another. Do you use the cool looking menu which may help clean up large menus or do you cater to the largest audience possible? That can be a tough choice sometimes. Well, now there is no need to choose. In this article I will show you how to create a drop down navigation menu that is XHTML 1.0 Strict, CSS valid, opens external links in a new window, and is JavaScript free.

Keeping Backwards Compatibility In Mind

To keep things in perspective, in order to be 100% XHTML 1.0 Strict and support older, non-compliant browsers, a small amount of JavaScript is required. If you do not wish to support IE6 or older and don’t mind switching to a XHTML 1.0 Transitional doctype then this can be accomplished with 100% pure CSS and no JavaScript…


Continue Reading...
Posted by Shahar Y on Sep 9th, 2008 | Filed under .Net, Misc. | 21 Comments »

tape-measureSoftware Managers all around the globe, need to have some metric to estimate their workers. Sometimes the management event wants to create a precise and measurable way to know the programming progress and the developers productivity and performance. One of those methods is called SLOC – Source Lines Of Code. This metric is used measure the size of the software by counting the lines of the program source code. Some managers tend to love SLOC because it can be automated so it requires very little effort and the effect of it can be visualized. That is exactly what managers like! it is easy and it can be easily inserted into their reports, what could be better than that? It seems just perfect.


Continue Reading...
Posted by Shahar Y on Jun 17th, 2008 | Filed under .Net, Misc. | 1 Comment »

Software errors, are so prevalent and so harmful that they cost the U.S. economy an estimated $59.5 billion annually. There are many examples of very serious and detrimental software errors such as:

softwareErrors Obviously, we would like to deliver a “bug free product” to our customers, but unfortunately, this is an un achievable goal. While some errors can be very easily eliminated, other are very evasive. What are the measures taken into consideration when we decide if an error is evasive or not? Lets create a list of software error parade and talk about it:


Continue Reading...
Write Article for Dev102

Write for Dev102!

We pay for user submitted tutorials and articles that we publish. Anyone can send in a contribution

Learn More