|
|
Front Page News
-
|
Peter recently caused a bit of a stir with his article “ Sometimes an enum is not the best idea ”. In it, he had a very specific problem: When an enum is passed to a method as an Object, and that method converts it to a usable value by calling ToString(),...
|
-
|
In our last episode, we discussed the PortableAreaController base class, which makes it simple to create a portable area using Monorail. In this installment, we put that class to use. For the purposes of this example, the controller isn’t going to do...
|
-
|
Recently I had read a blogger comparing Castle Monorail with ASP.NET MVC. He chose ASP.NET mainly because it supported Portable Areas while Monorail did not. As a supporter of Monorail, I was very offended by this, and decided to correct the problem....
|
-
|
In my daily web-surfing, I often stumble upon snippets of C# code posted by people. Usually, I can tweak it a bit. Sometimes, I can tweak it a lot. I usually post a quick comment to the site offering it. Today, I came upon some code that was so bad ---...
|
-
|
This was intended to be a two-part article. It was just after I published the original article, I noticed that I’d left out a large part of ViewComponentEx. We continue….. protected bool RenderOptionalSection(string section) protected bool RenderOptionalSection(string...
|
-
|
I’ve been rewriting my website, njtheater.com, (very slowly) as a Castle MonoRail application. Along the way, I’ve written a number of ViewComponent and other elements. Many of these were of general use, so I’ve added them to the CastleContib project,...
|
-
|
(Me + you) && (you + me) var nomatter = dice.toss(); assert (it != null) me.Only1(you); assert(you == me.Only1()); (Me + you).happy = so; (more on the meme here ) Share this post: Email it! | bookmark it! | digg it! | reddit! Readability Stats:...
|
-
|
Over on CodeProject, I spotted an article by Mahdi Yousefi called " Creating an ASP.NET captcha using jQuery and s3capcha”. public static List<int> shuffle(List<int> input) { List<int> output = new List<int>(); Random rnd = new...
|
-
|
As I slowly rewrite NJTheater.com, one task that I was trying to move from a MSAccess application to a webpage would be made much easier if put in a wizard form, with the user being led through the steps. Since I was using jQuery throughout the site,...
|
-
|
You may have noticed that I don’t write on this blog much. But the thing is I do write a lot on the inter-webs about technical matters --- I just don’t to it here. Usually, I find something interesting on someone else’s blog, and then write an improvement...
|
-
|
With the pending appointment of Judge Sonia Sotomayor, someone pointed out that if she is approved, there will have been in 120 years, 111 Supreme Court Justices, of whom, only three were women and only two were African American, with all the rest being...
|
-
|
(Ok, this is the third time I'm writing this. The first time it was in the comment form of a blog. For some reason, it just swallowed the message without posting it, blanking the editbox, and then giving an error saying the edit box was empty. So, I tried...
|
-
|
Ok, there is actually no sex in this article. The title is merely a tribute to the great Ian Dury & the Blockheads. But there will be computers and Rock'n'Roll. Recently a question of StackoverFlow.com asked about "breaking the rules" of programming....
|
-
|
Way back into March, my best friend Chris and I made our predictions for the presidential election . Since the election is now over (mostly), it's time to review have well we did: Chris's Prediction James's Prediction Actual results President McCain The...
|
-
|
Right now, I'm in the midst of a long-running project to rewrite my other website, NJTheater.com (beta at njtheater.org ). In the process, I've discovered jQuery, the hot new javascript library that all the kids are using today. One of it's key selling...
|
-
|
I really should bring the subject matter here back around to computers..... Lately (if you consider the last year & a half "lately"), I've been working on a project on my laptop using VisualStudio (usually on the train to work). Every now & then...
|
-
|
I haven't posted here in a while, so I figure I'll go back to the old "generate content by taking online quizzes" trick. You are a Social Liberal (66% permissive) and an... Economic Liberal (20% permissive) You are best described as a: Socialist Link:...
|
-
|
David Ward has an interesting contest . Having three copies of Advanced ASP.NET AJAX Server Controls to give away, he's created a project on CodePlex , and is offering the books to people to who contribute the most to it. One can contribute code or documentation...
|
-
|
Recently I got a chain email from a friend, showing the magnitude of a billion. A billion seconds ago it was 1959. A billion minutes ago Jesus was alive. A billion hours ago our ancestors were living in the Stone Age. A billion days ago no-one walked...
|
-
|
I have this bad habit. I will frequently stumble upon a blog post describing some new technique, to which I will post a brilliant comment offering an improvement, which, of course, will get lost in the flotsam and jetsam of the blogosphere. I have to...
|
-
|
Many people skipped last week's challenge (like I had planned to). As it turned out, I was the only blogger to responded. For this week's challenge, they've gone back to a platform-neutral algorithm question: Your input is a string which is composed from...
|
-
|
My solution(s) for last week's challenge were cited, but, only as an "honorable mention" / "also run". This week's challenge is a different sort of animal. Not that it is particularly difficult --- actually I suspect it's quite easy --- it's just that...
|
-
|
My answer was acknowledged as correct for last week's challenge. So, let's see if we can make it two in a row. This week : Given a list of n integers and another integer called m, determine (true / false) if there exist 2 numbers in that list which sum...
|
-
|
I didn't actually skip last week's challenge for Dev102. I did write up a solution. I just forgot to post it. It was wrong anyway. Well, no sense it looking backward... This week's : Your input is an unsorted list of n numbers ranging from 1 to n+1, all...
|
-
|
I skipped last week's DEV102 challenge . I didn't think my answer was right. Turns out that it was. I was assuming that it had a limitation that would disqualify it. I assumed that my solution would only work if you placed the coins in a tight grid with...
|
|
|
|