16 years Ago

Encodo C# Handbook 7.17 – Using System.Linq

Published by marco on in Programming

I’m currently revising the Encodo C# Handbook to update it for the last year’s worth of programming experience at Encodo, which includes a lot more experience with C# 4.0 features like optional parameters, dynamic types and more. The following is an expanded section on working with Linq. A final draft should be available by the middle of April or so.

7.17 – Using System.Linq

When using Linq expressions, be careful not to sacrifice legibility or performance simply in order to use Linq instead... [More]

Published by marco on in earthli Software

 PHPDoc is a popular tool for generating documentation for PHP projects. I made a whole lot of improvements to it for PHP5 and created a new skin with clean separation between structure and styling as well as a lot of generation options.

The new style is cleaner, has far fewer borders, better margins and alignments and nicer icons (for all elements, with access visibility for all element types) as well as much more legible placement and more information, including direct links to source for all... [More]

PHPDocumentor Fork (earthli-v2)

Published by marco on in Programming

PHPDoc is a popular tool for generating documentation for PHP projects. I made a whole lot of improvements to it for PHP5 and updated all the skins to look less boxy, have nicer and more informative icons and be easier to use, and then created an earthli fork. This article includes a full feature list and screenshots.

The earthli WebCore (the software that runs this web site) is open-source. It is also relatively well-documented. The documentation is generated using PHPDoc, but a better... [More]

Movies Without Reviews

Published by marco on in Books

I’ve been keeping track of the movies I watched for a couple of years now, but have only recently been adding mini-reviews[1] to each so I can remember (A) what it was about and (B) whether I liked it.

Since I’m no longer maintaining the old text file in which I kept this list, I’m dumping the list here.

2008 (or so)

  1. Monster (2003) — 8/10
  2. The Good Shepherd (2006) — 7/10
  3. Breach (2007) — 7/10
  4. Sweeney Todd: The Demon Barber of Fleet Street (2007) — 7/10
  5. Eastern Promises (2007) — 9/10... [More]

Works Best in “__________”

Published by marco on in Technology & Engineering

More than a decade ago, the available web browsers—Internet Explorer, Netscape and Opera—differed widely in capability. Cutting-edge pages that worked in one browser either didn’t work at all in the others, or ceased to be cutting-edge. In those days, it was both common and appropriate to include a browser recommendation. “Best viewed in Internet Explorer” or “Best viewed in Netscape” flourished.

Today, however, the various browsers have standardized to a great degree. There is no longer a... [More]

Atomic Updates from Cringely & Palast

Published by marco on in Science & Nature

Two articles drifted down my news-pipe today that caught my eye: Is anything nuclear ever really super safe small and simple? by Robert Cringely and The no-BS info on Japan’s disastrous nuclear operators by Greg Palast.

We’ll start with Palast, who was formerly employed as a “lead investigator in several government nuclear plant fraud and racketeering investigations”. He’s also the guy who proved that Bush & Co. stole the election in 2000 and who’s been working in England almost exclusively because no one will hire him in the... [More]

Calm Down; The Japanese Are Not Trying to Kill You

Published by marco on in Science & Nature

Seriously, calm down. Stop babbling about how the Japanese are a closed society that would rather immolate our whole planet, taking us all down with them as they refuse to admit any mistakes made in an effort to avoid losing face.

It’s all bullshit, just like all such blanket statements about millions of people are.

I’m going to put this right here: Why I am not worried about Japan’s nuclear reactors by Dr Josef Oehmen.

Read it. It explains pretty well why a small explosion on top of a cooling tower in no... [More]

If we can’t, then no-one can

Published by marco on in Quotes

“There’s a time when the operation of the machine becomes so odious—makes you so sick at heart—that you can’t take part. You can’t even passively take part. And you’ve got to put your bodies upon the gears and upon the wheels, upon the levers, upon all the apparatus, and you’ve got to make it stop. And you’ve got to indicate to the people who run it, to the people who own it that unless you’re free, the machine will be prevented from working at all.”
Speech on the Sproul Hall Steps by Mario Savio on December 2, 1964


This was 45 years ago and the wheel of... [More]

Either Or

Published by marco on in Quotes

“We may have democracy, or we may have wealth concentrated in the hands of a few, but we cannot have both.”
Louis D. Brandeis, LL.B. in 1877 (quoted in Labor, October 14, 1941)

Which Part Makes Us the Good Guys?

Published by marco on in Public Policy & Politics

Warning: semi-inchoate and stream-of-consciousness rant lies ahead. YMMV.


It’s time to reëxamine our myth, to reëvaluate the stories with which we allow ourselves to be lulled into a complacency about who we really are. Or rather and more precisely, what it is that America really is when the scales have fallen from our eyes, when the rose-colored glasses are put away, when we stop turning a blind eye to the horror that our lifestyles engender the world over just so we can continue living... [More]

Therein Lies the Rub

Published by marco on in Quotes

“The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.”
Bertrand Russell

Troubleshooting a misbehaving designer in Visual Studio 2010

Published by marco on in Tips & Tricks

Anyone who’s used Visual Studio 2010[1] for a non-trivial Windows Forms project has run into situations wherein the designer can no longer be opened. Usually, it’s because the class encounters null-reference exceptions when referencing data that is unavailable until runtime. Those are easy to fix: just avoid referencing that data in the constructor or load-routine while in design-mode.

However, sometimes Visual Studio has problems loading assemblies that it seems it should have available.... [More]

Plastic comments

Published by marco on in Miscellaneous

The venerable Plastic.com is closing its doors for good this weekend. I’ve been a member for about a decade and contributed sporadically throughout. I saved my comments from the site before it goes dark and included them below. The context is often not there, but it’s an interesting compendium of issues from the last decade.

My stats were as follows:

  • name: dur
  • member since: Tue 23 Oct 2001
  • karma: 8 (astute scholarly underrated succinct)
  • favorite words: countries(16), already(10),... [More]

The State of the Media

Published by marco on in Public Policy & Politics

As usual, Stephen Colbert manages to encapsulate the problem with American media in a rant delivered to/in support of Mika Brzezinski on his show from the 18th (transcript below).

Mika Brzezinski Experiences Palin Fatigue by Stephen Colbert (Colbert Nation)

“Mika, you need to buck up. I know you think this story has no purpose other than to keep Sarah Palin’s name in the headlines for another news cycle. I know you think she has nothing to offer the national dialogue and that her speeches are just coded talking points mixed in with words picked at random from a... [More]”

Attention America: How to Pronounce a Certain German Propagandist’s Name

Published by marco on in Public Policy & Politics

Dear American Media, Political Talking Heads and Wonks of all Stripes,

If you’re going to insist on calling each other Nazis all the damned time, fine. I don’t even care that the shoe almost never fits.

But, if you’re going to invoke the dreaded Herr Göbbels (Wikpedia), at least pronounce his name correctly.

Take a close look, morons: that’s an umlaut, not an ‘r’.

While it’s inspiring that you actually manage the umlaut correctly, it’s a complete mystery why you all insist on adding an ‘r’ after... [More]

Wait up!

Published by marco on in Quotes

“Folks, once again America is falling behind. It’s not fair, though—we’re all obese, we can’t walk that fast.”
Stephen Colbert

Capsule Movie Reviews Vol.2011.1

Published by marco on in Movies

Books read in 2010

Published by marco on in Books

  1. Foucault’s Pendulum (1988) (second half) – Umberto Eco
  2. The Great War of Civilization (2005) – Robert Fisk (second half)
  3. Naked Pictures of Famous People (1998) – Jon Stewart
  4. The Drought (1965) – JG Ballard
  5. Drowned World (1962) – JG Ballard
  6. Spook Country (2007) – William Gibson
  7. Free Lunch (2007) – David Cay Johnston
  8. Stardust (1999) – Neil Gaiman
  9. Heat (2006) – George Monbiot
  10. Unbowed (2006) – Wangari Maathai
  11. Grieche sucht Griechin/Mister X macht Ferien/Zeitungswesen in der Steinzeit... [More]

Struggling through the Lost Symbol

Published by marco on in Books

It was the start of the long week between Christmas and New Year’s Eve and it was time to start a new book. A quick scan of the book shelf revealed many interesting candidates, but most of those were a bit more challenging than a week of this kind warranted. But look who’s hiding on one of the shelves: good ol’ Dan Brown.

This copy of The Lost Symbol had been obtained from the local Salvation Army secondhand shop for only a couple of bucks. I’d gotten Brown’s two other books in the same way,... [More]

Wikileaks 2010

Published by marco on in Public Policy & Politics

 The article What WikiLeaks revealed to the world in 2010 by Glenn Greenwald (Salon)offers a terse and eye-opening list of leaks in 2010.

The leaks range from revealing that U.S. forces are operating in Pakistan and Yemen—contrary to official statements by high-level U.S. officials—to revealing that the Obama administration folded on prosecuting Bush-era human rights transgressions (as well as avidly continuing them) to the Pope refusing to aid investigators in sex abuse investigations to dozens of other instances... [More]

The Stories the Rich Tell Themselves (And that We Believe)

Published by marco on in Public Policy & Politics

You would think that this article, Down and Out on $250,000 a Year by Karen Hube (Fiscal Times), is an example of Swiftian satire. You would be wrong.

“The bottom line: It’s not exactly easy street for our $250,000-a-year family, especially when it lives in high-tax areas on either coast. Even with an additional $3,000 in investment income, they end up in the red — after taxes, saving for retirement and their children’s education, and a middle-of-the-road cost of living — in seven out of the eight communities in... [More]”

A One-Rule User Manual for the Internet

Published by marco on in Quotes

The author wound up an article on recent findings on climate change with the following paragraph:

“Please use the comments to demonstrate your own ignorance, lack of scientific knowledge, ability to repeat discredited memes, and lack of respect for empirical data. Also, be sure to create straw men and argue against things I have neither said nor even implied. Any irrelevancies you can mention will also be appreciated. Lastly, kindly forgo all civility in your discourse…you are anonymous after... [More]”

On The Year of the Linux Desktop

Published by marco on in Technology & Engineering

It is, apparently, indefinitely delayed due to the advent of a completely new class of devices that no longer need desktops. Pity. In a recent discussion on Hates Software, one commenter noted:

“Those of us with jobs and credit cards won’t put up with that nonsense and will pay for the problem to go away.”

“That nonsense” to which he refers is any of the typical just-download-the-sources-and-compile-it-yourself claptrap peddles by those who don’t understand a good-goddamned-thing about usability.... [More]

An Argument In Favor of Wikileaks

Published by marco on in Public Policy & Politics

The article Leak Soup by Morgan Meis (The Smart Set) discusses Ambassador Ischinger’s[1] response to Wikileaks actions, published in the New York Times, in which he wrote: “[t]his is more serious: It is about war and peace, and it can be about life or death.”.

“And that is where Ambassador Ischinger lost me for good. That is where I went over to the other side, where I became a Julian man. There is only so much bullshit that any man can ingest, and I’ve been topped off. Mr. Ischinger is in the same lineage as all the noble men... [More]”

Overriding Equality Operators: A Cautionary Tale

Published by marco on in Programming

tl;dr: This is a long-winded way of advising you to always be sure what you’re comparing when you build low-level algorithms that will be used with arbitrary generic arguments. The culprit in this case was the default comparator in a HashSet<T>, but it could be anything. It ends with cogitation about software processes in the real world.

Imagine that you have a framework with support for walking arbitrary object graphs in the form of a GraphWalker. Implementations of this interface complement... [More]

Java Memory Usage on the Mac

Published by marco on in Technology & Engineering

I’d heard that Java was a memory hog, but this is ridiculous:

 Java uses 16 million terabytes of virtual memory

It’s impressive that the machine was responding at all, actually. :-)

Colbert Report & Daily Show Roundup

Published by marco on in Fun

The essay interpreting Eric Cantor’s blatant religious censorship as an art statement is brilliant.

“This defunding threat isn’t some cheap exercise in mindless censorship; it’s an anti-paradigmatic revolutionary work of conceptual art-banning. And, while its point of departure may be Senator Jesse Helms’s admittedly ground-breaking defunding of the National Endowment of the Arts over André Serrano’s Piss Christ, it’s not a derivative “Oooh, I’m a Christian, I’m so offended” because, as the... [More]”

Sneak Peek at OS X Lion

Published by marco on in Technology & Engineering

If you browse through the new iLife videos, you’ll notice that the person doing the iPhoto demonstration is clearly using an OS X with a new UI style. The styling of the controls has changed subtly, with a stronger and darker blue highlighting line around the focused text-box and a much smoother look for the dropdown list:

 Text fields & Popup menu

When the dropdown list is opened, the popup menu is much different than that in Snow Leopard, in that it’s now black and sports a softer shadow:

 Popup-menu Open

Well, exciting stuff... [More]