discussion

jQuery vs. Yahoo UI API design

I am baffled by the difference in design between jQuery and Yahoo UI APIs. Disclaimer: I have a strong dislike of the jQuery api, but I am also a huge ignorant in web programming and javascript in general, so I could be dead wrong and come back here begging for redemption. so long... The point of my question is the following. The two de...

BigLearningUpFront or EvolutionaryLearning?

When faced with a task, a new business domain, or a new library/framework/technology in your work environment there are basically two approaches: Take a book, close yourself in a room for one or more weeks with your head in the book, finish the book and start designing, or coding, or read the documentation, code a bit, read more, code ...

Primality check algorithm

Primality Check is probably one of "those" tough problems in mathematics. So, whats is the best and fastest algorithm available to check the primality of a huge number. The most crude and the slowest way probably is: public static bool IsPrime(int i) { for (var x = 2; x < i - 1; i++) { if (i % x == 0) { ...

Why would you use a Content Management System?

I want to help a friend manage his business site and I thought that a CMS would be the thing for him. But I’m not so sure anymore. I recently discovered all this CMS industry and… sincerely… I don’t get it. Why are so many CMS solutions out there? Why isn’t there a definite leader on the market? What can you use it for? Why would you u...

Why "alt" attribute for <img> tag has been considered mandatory by the HTML validator .. ?

Is there any logical or technical reason (with the W3C validation) for making alt as required attribute .. This is my actual problem:though my page is perfect enough with respect to W3C validation rules .. Only error I am getting is line XX column YY - Error: required attribute "ALT" not specified I know the significance of "alt" att...

Saving "Tags" - Quickest Way

I want to save tags related to a discussion post. The same as the 'tags' that Stack Overflow uses. What is the best way to do this? I was thinking of saving them in the 'discussion' table as a single comma separated string, but I'm not sure if this is the 'fastest' way assuming there will be lots and lots of rows in the discussion tab...

Visualizing multiple simultaneous progress bars

My application framework provides a progress reporting service to plugins. Each plugin can request any number of task monitors and is then responsible for updating the status includes a textual message, percentage progress (or indeterminate). Process monitors are free to switch from discrete percentage / indeterminate at any time. What ...

Using vs lambda.

Is it equivalent? public static void Using<T>(this T disposable, Action<T> action) where T:IDisposable { try { action(disposable); } finally { disposable.Dispose(); } } new SqlConnection("").Using(conn => { ...

Optimize Select Query

Hi, I am using SQL 2000, and I am running a simple select statement on a table containing about 30 million rows. The select query looks like: select col1, col2, col3 from Table1 where col4=@col4 and col5=@col5 and col6=@col6 The table has a clustered index in it (i.e. a primary key), but that is not being used as a where criteria. All...

Which third party website thumbnailing services do you use?

I've got a requirement for showing thumbnails of arbitrary websites. I need to be able to show small thumbnails (120px by 90px), and larger thumbnails of around 480px wide. I'll need to specify the queue and invalid placeholder images and preferably have a pingback when the queued images are processed so I can respond appropriately. I'd ...

Which Frameworks Abstract Away the DOM?

A recent twitter post I've seen made some comment to the effect of "the DOM is Javascript's ugly date". I tend to think that the DOM is a horrible way to define user interfaces and certainly in the context of multiple browsers with their quirks I find trying to build sophisticated web apps with complex view layouts to be a completely fr...

An error from appplication written in C# that displays know to all message Send to Microsoft?

I know the title may be misleading but i didn't knew how to describe in title. I've wrote an application in C# 3.5 / MS SQL. Application is 90k lines big. I don't use many Try Catch clauses so when error happens it's usually displayed to user with dialog box saying would you like to Continue and the error message. But recently I've noti...

Java Urban Myths

Along the line of C++ Urban Myths and Perl Myths: What are the Java Urban Myths? That is, the ideas and conceptions about Java that are common but have no actual roots in reality. As a Java programmer, what ideas held by your fellow Java programmers have you had to disprove so often that you've come to believe they all learned at the ...

Is there a way to tell from code whether the application was developed in Visual Studio 2008 Express or Standard or Pro?

Hello, Is there a way to tell if the project was done in Visual Studio 2008 Express Edition or higher (pay) versions were used? Like if you were handed over a project and they ask you what version of Visual Studio was it created with (except the obvious 2005/2008/2010 difference). With regards, MadBoy ...

Is downcasting (i.e. casting to derived type) ALWAYS wrong?

What is your perspective on downcasting? Is it ALWAYS wrong, or are there cases where it is acceptable, or even preferable or desired? Is there some good measure/guideline we can give that tells us when downcasting is "evil", and when it's "ok"/"good"? (I know a similar question exists, but that question spins out from a concrete case....

What is proper way of verifying your C# WinForms code works in Visual Studio 2008?

I'm writing an application in WinForms c# that is over 90k lines big. I am not very experienced coder and after some lines of code (depending if it's something new or something I've done before a lot of times) i start my project with F5 in Visual Studio to verify that the things I've done work as i wanted it to. For example: if data f...

Recurrence Relations

I am currently enrolled in a programming class and we are covering recurrence relations. I was just wondering if, ever these actually get used on the job. If so, I'd love to hear some examples of when it is useful. ...

Is there a Java web framework similar to Joomla?

I got some experience on Joomla and I like their community and Joomla's plug and play. They have a lot of tested components working well. I remember my first steps: easy to start and the only requirements are good old Apache and PHP. On the other hand my only - but massive - complaint is I have to use PHP. I cannot get comfortable with P...

Why Silverlight Out of Browser over WPF Desktop App?

is there any reason why one might want to select Silverlight Out of Browser option over a pure WPF Desktop app? i guess one might be easy to port to a web app? i guess a pure WPF app will provide more performance and features? ...

Adobe AIR 2 Native API/Code

will using Adobe AIR 2 Native API/Code make the app platform specific? if so what might be the use of using AIR in such a case, so that i can have a front end using existing web technologies? ...