Jul
8th | 2008

FeedBurner RSS Error Fixed

Posted by Amit |
Filed under C# |

Hi all
It seems that the RSS Error has been fixed and http://feeds.feedburner.com/Dev102feed is working again.
If you have subscribed to the old feed (during the past couple of hours) please resubscribe to the Feedburner one.
Thanks and sorry again
Amit


Continue Reading...
Jul
8th | 2008

FeedBurner RSS Problem

Posted by Amit |
Filed under C# |

Hi all
We are having some RSS Feed errors our feed is OK but it seems that FeedBurner can’t find it. If anyone knows how to solve this, help will be welcomed.
This is the error we are getting
Bang! Kapowww! Krakkk!
(FeedBurner encountered an error while trying to bring you this feed and is now keeping its head [...]


Continue Reading...
Jul
4th | 2008

A Programming Job Interview Challenge #11 - Summing Numbers

Posted by Shahar Y |
Filed under Misc. |

The eleventh post of the series of programming job interview challenge is out. 75 readers provided answers to job interview challenge #10 and most of them had the correct solution. The correct answer as Alex, the first one to provide a detailed solution, wrote:

Here’s an O(N) solution:

Have one variable that stores the sum of all the values. Iterate through the list to add all numbers to the variable, which for simplicity I will call ā€œlistSumā€.

Now, take the theoretical sum of all numbers between 1…n+1: This can be computed in O(1), as the sum of numbers up to N is n(n+1)/2: So for numbers up to n+1, it’d be (n+1)(n+2)/2 (for instance, if the array is of size 9, we’d do 10*(11)/2, or a theoretical sum of 55). Call this sum ā€œallSumā€.

The missing number will be the result of computing ā€œallSum - listSumā€.

O(N)complexity, with only two tracking variables.


Continue Reading...
Jul
4th | 2008

Dev102 - June 2008 Blog Stats

Posted by Amit |
Filed under Technology & Internet |

Another month has come to an end and an interesting month it was!

The high light of the month was getting one of our articles on the front page of stumbleupon which drove almost 30000 visitors to dev102!!! That article was not a programming article but in fact a humorous one about company logos. That definitely gave a boost to our Page Views and Visits Stats but damaged the Page Views/Visits, Bounce Rate and Time on page. During that time dev102 crashed several times so we decided to install the WP-SuperCache plugin which removes allot of load from the server.
Read more about caching you WebSite here.

Blogging Idol We are also taking part in the blogging Idol contest Arraigned by Daniel from DailyBlogTips

The winner of the contest is the one who manages to add as many Subscribers as possible to his RSS feed over one month.

So get your friends in and help us Win it!


Continue Reading...
Jul
2nd | 2008

Why SortedList<Key,Val> Is Useless

Posted by Amit |
Filed under C# |

The other day I wan in the need of a sorted collection. I found that there are 2 sorted collections available. SortedDictionary and SortedList. Now let me ask you, what do you think is the difference? Well, my first though was that they are the same except for the keys, which in SortedDictionary have to [...]


Continue Reading...
Jul
1st | 2008

How to Generate Public Classes for Resource Files

Posted by Shahar Y |
Filed under .Net, Utilities, Visual Studio |

It is very common to use resource files in .Net applications when you need to store some data in a XML file. I usually use .resx files as string tables in order to avoid hard coded strings in my code. Two months ago, we published a post about a free tool which helps to extract hard coded strings to resource files. Notice that when you add a resource file, there is an automatically generated class with properties issued from the resources elements, so you can call this class properties instead of using the ResourceManager. The only problem with this class is that its properties are marked as internal and thus can’t be accessed externally (from other assemblies).


Continue Reading...
Jun
30th | 2008

A Programming Job Interview Challenge #10 - The Missing Number

Posted by Shahar Y |
Filed under .Net, Misc. |

Hey all!
Its time for a new Challenge. But before that, last weeks answer. Well the answer could have been summed up by saying just traverse in reverse and return the second node . There were a few interesting answers among them Jonathan Gilbert’s whoĀ was the first to answer correctly:
This seems pretty simple to me. An [...]


Continue Reading...
Jun
27th | 2008

Digg - The Worst Community Driven Site

Posted by Amit |
Filed under Misc., Technology & Internet |

I used to love using Digg, reading, submitting and digging. But no more! From now on I HATE them. I know Hate is a strong word, but hear me out and understand why I used this strong word.

On Friday the 13th of June I tried to submit one of my articles to Digg and I got the following error message:

This URL has been widely reported by users as being regularly used to spam Digg’s submission process and cannot be submitted at this time.

Weird I though to my self, probably just a glitch and right away I wrote an E-Mail to the Digg Support, here it is:


Continue Reading...
Jun
26th | 2008

A Small and Fast Domain Modeling Tool

Posted by Shahar Y |
Filed under .Net, C#, Utilities, Visual Studio |

This is a guest post written by John Daniel-Trask from Mindscape.

Mindscape have released a major upgrade to their LightSpeed domain modelling / ORM tool. Version 2.0 includes a visual model designer integrated into Visual Studio, LINQ support, and the ability to access multiple databases concurrently. LightSpeed is a small, fast domain modeling tool which uses convention over configuration to perform object-relational mapping without the need for complex mapping files.

In the past it’s been necessary to code LightSpeed models explicitly in C# or Visual Basic, but the new Visual Studio-hosted designer enables a more data-centric approach: developers can drag tables from Server Explorer and LightSpeed automatically creates the models for them. Developers can also add validations and tune performance parameters such as caching and lazy/eager loading through the designer. The designer also supports a “round-tripping” approach whereby changes to the database can be applied incrementally to the…


Continue Reading...
Jun
25th | 2008

The Best Job Interview Question (Software)

Posted by Shahar Y |
Filed under Misc. |

job-interview

During the Job Interview Challenge Series we are running here at Dev102.com, we usually get some comments from readers who think that the quality of a specific question is not good. Here are some of those comments:

  1. I hate interview questions like this, as it’s just a race to see who gets the a-ha moment first“.
  2. “This is not a good interview question. What does it tell you about someone’s engineering ability? Little. It’s a brain-teaser; either you get it or you don’t”.
  3. Really enjoying the problems so far but I’m a little disappointed with this one. I prefer ā€˜thinking’ problems to ā€˜research’ ones“.
  4. Isn’t this an awfully language-specific question?“.
  5. If you presented this problem in an interview and made me an offer, I’d turn you down“.

On the other hand, many readers provided answers to the questions and enjoyed participating in those challenges. Some thought that the questions are very good:


Continue Reading...

Search Dev102