18 years Ago

Interfaces in Delphi − Part II

Published by marco on in Programming

This article was originally published on the Encodo Blogs. Browse on over to see more!


This is the second of a two-part article on interfaces. part one is available here.

In part one, we saw how to use non-reference-counted interfaces to prevent objects from magically disappearing when using interfaces in common try…finally…FreeAndNil() cases. Though this brings the interface problem under control, there is further danger.

Dangling Interfaces

A dangling interface is another problem... [More]

Firefox 2

Published by marco on in Design

 Firefox 2 Home PageAfter years of changing styles and hit-or-miss site designs, Firefox seems to have finally hit a nice, open, clean style. The download button is huge and green and inviting. The background graphic is confined to the product area (not in the header or footer, reserved for “corporate” use) and adds to the fun feel. Overall, it’s airy, making good use of white space and all text is well-aligned (bullet titles aligned with descriptions … yay!). Even the footer got alignment attention, offering an... [More]

Pitfall in the @For component in Tapestry

Published by marco on in Programming

This article was originally published on the Encodo Blogs. Browse on over to see more!


Any properties used from a Tapestry template have to be declared in the corresponding Java page class. It is highly recommended to declare these properties as abstract; Tapestry implements them for you, automatically including code that re-initializes each property automatically when a page is re-used from the cache. If you implement the properties yourself in the customary Java getter/setter way, it is up... [More]

Immutable Collections in Java

Published by marco on in Programming

This article was originally published on the Encodo Blogs. Browse on over to see more!


Java supports immutable collections of all kinds, but not in the way you would expect. A naive implementation would declare the immutable (unmodifiable in Java parlance) interface as follows[1]:

interface UnmodifiableList<T> {
  function T get();
  function int size();
}

There is no way to modify this list—the API is simply not available. That done, we can now create the modifiable version of the list... [More]

Alan Wake

Published by marco on in Video Games

Alan Wake is a psychological action thriller coming to the X-Box and PC in sometime in 2007. The game’s namesake is a writer, living in the woods somewhere, presumably along a coastline. It takes the realism of a Grand Theft Auto world to new heights, with forested lanscapes as well as small American towns rendered with an incredible level of detail. Throw in weather effects, a day/night cycle and realistic physics and this game has real-world environments like we’ve never seen before. The game... [More]

One Economy for All

Published by marco on in Public Policy & Politics

The Republicans have had control of two branches of government for almost six years now. The third branch fell to their control a couple of years ago. With the help of an extremely complicit and fawning Democratic minority, they have broken nearly everything they’ve touched. There is no need to reiterate the issues—suffice it to say that people are not happy. Bush’s approval ratings are between 35% and 40%, whereas those for the Congress lay between 15% and 20%. You don’t get numbers like... [More]

Anarchy

Published by marco on in Quotes

“Your right to swing your fist ends where my nose begins.”
- Anonymous

Kenny’s Wife

Published by marco on in Miscellaneous

Kenny’s wife is jumping for joy right now. Since he died before going to trial, the judge in the case was forced to accede “to decades of legal precedent” and wipe all 10 criminal charges from his record. Judge Revokes Lay’s Conviction (Washington Post) has the gory details.

“Legal analysts said Lake’s ruling closely hewed to a long-held doctrine called abatement, which allows a conviction to be vacated if defendants die before they are able to exercise their right to appeal. Courts typically rule that defendants’... [More]”

Animated Map of the Middle East

Published by marco on in Miscellaneous

The movie below is called Imperial History (1.1MB) and documents the occupation of the Middle East, Asia and northern Africa over the last 5000 years.

The following empires ruled over smaller and larger swatches of land throughout recorded history. The dates given are approximate and estimated from the movie. The names and ordering are correct. And, yes, there is overlap: that’s kind of the way it with empires.

  • Kingdom of Egypt (3000 BC − 1380 BC)
  • Hittite Empire (1400 BC -1050 BC)
  • Kingdom... [More]

New York’s Next Senator

Published by marco on in Public Policy & Politics

 Howie Hawkins for SenateThe mid-term elections are real; the United States will do its best to keep up the pretense of democracy this fall, if only to satisfy the UN inspectors and to show the world we still know how it’s done. We’re 0-2 (keep messing up the clean landing) in the last two and our much-(self)-vaunted efforts in Afghanistan and Iraq have failed to impress.

The midterms are so called because they come in the middle of a presidential term and offer only senators and congressmen instead of the big... [More]

Speaking to the U.N.

Published by marco on in Public Policy & Politics

World leaders recently gathered at the U.N. headquarters in New York City to exchange ideas on how to move forward into the 21st century. The speeches of Bush, Ahmadinejad and Chavez were given the most coverage, though not necessarily for the right reasons. Morales of Bolivia tried to upstage Chavez by smuggling in a coca leaf; this gimmick was drowned in angry replies to Chavez’s correlation of president Bush with a whiff of brimstone. As usual, the media made the most noise about the least... [More]

Outrageous

Published by marco on in Public Policy & Politics

 Our corpulent body of state awoke from an uneasy slumber this week, heaving its bulk upward and exposing long-neglected folds to the harsh glare of sunlight, emitting a noxious stench that caused many a man to quail and many a gorge to rise. This flabby, pale underbelly represents America’s long love affair with ignoring the golden rule and with having its cake and eating it too. We need, in a word, torture. And we need it bad.

George Bush[1] is our undisputed champion, striding confidently... [More]

No Holds Barred with Olbermann

Published by marco on in Public Policy & Politics

Keith Olbermann has been given quite a bit of leeway to pound the drum for the overtly liberal media. His most recent work is this 8 minute speech—quite erudite and extremely critical of the president—demanding an apology from George Bush.

’Countdown with Keith Olbermann’ for Sept. 11 by Keith Olbermann (MSNBC) is the full transcript (search about 75% of the way down the page). He lambastes the Bush administration—in particular Bush and Cheney—for daring to deem everyone who doesn’t kowtow before them as “soft... [More]

Well-Struck by Barça

Published by marco on in Sports

In the world of club sports, advertising is everywhere. Though the US has thus far resisted the urge to plaster corporate logo all over its players, Europe has long since capitulated to this lucrative source of financing. Ice hockey teams look like a unicorn ate too many jelly beans and threw up rainbows all over the ice—potheads would love it if the guys just wouldn’t move so quickly. Football[1] players look marginally better, their team owners usually restraining themselves to a single logo... [More]

Looking Good for Nov. 7th

Published by marco on in Public Policy & Politics

November Prognostication by Ben Tripp (CounterPunch) has an ironclad list of reasons for why the Republicans will not be swept from power this November, as so many in the liberal media are predicting. Hint: they’re the same reasons that they won the last two national elections and enjoy a majority in all three branches of government. Not much has changed, so there’s no need to change tactics—tactics that only have to work on the small minority of Americans that can ever be bothered to vote in a mid-term election anyway.... [More]

Pope Benedict’s Point

Published by marco on in Public Policy & Politics

 Manuel II PaleologusDo not be alarmed. Though the pope has been in headlines lately, he has not been kidnapped, conceived a child with Britney Spears or baptized Suri Cruise (which would be awesome). It must be a slow news week, because the global media monster heaved its noisome bulk in a slightly different direction, using the Pope’s pointy hat to poke at the hornet’s nest of Islamofascism. With news of terror on the wane, it was about time we had our fears squarely refocused on the 21st century’s answer to... [More]

Sometimes Email Forwards are Funny

Published by marco on in Fun

Received via email from several sources (and rewritten to satisfy the excruciatingly high standards here at earthli News):

One day, during a daily briefing, Donald Rumsfeld told president Bush that 3 Brazilian soldiers had been killed in Iraq.

Upon hearing this, the president froze and all the color ran from his face. He slumped forward, head in hands and whimpered softly.

After what seemed like an eternity, he composed himself and asked,

“Just exactly how many is a brazillion?”

It’s the... [More]

Wil Shipley Wants to Give Me a Computer

Published by marco on in Miscellaneous

This essay is written as a response to the CPU giveaway by Wil Shipley (Call Me Fishmeal).

I double-click the GTA: San Andreas icon and watch, relieved, as the Windows desktop fades to black.

*Churn*

The intro graphic’s looking a little pink.

Drat. The font’s messed up.

*Restart game*

Again with the pink logo, but the font’s ok. Let’s load up a saved game and do some driving. Funky music accompanies the fade from the loading screen to Carl’s back. A quick look around confirms that Carl was taking some serious psychadelics... [More]

Malice and Intent

Published by marco on in Quotes

“Sufficiently advanced incompetence is indistinguishable from malice.”
- Anonymous[1]


[1] Adapted from the Arthur C. Clarke quote: “Sufficiently advanced technology is indistinguishable from magic.”

Limitations

Published by marco on in Quotes

“Computers are useless. They can only give you answers.”
- Pablo Picasso

Programming is Writing

Published by marco on in Quotes

“Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to to, let us concentrate rather on explaining to human beings what we want a computer to do.”
- Donald Knuth

Get Ready to Rumble

Published by marco on in Public Policy & Politics

 Mahmoud Talkin' TrashIn the article, Iran TV debate challenge to Bush (BBC), Mahmoud Ahmadinejad throws down the gauntlet and challenges Bush to a live televised debate to “let both sides air their views uncensored”. Uncensored in Iran, maybe. But if Americans aren’t allowed to see Janet Jackson’s pierced nipple, you can bet your ass they won’t be seeing George Bush get his ass handed to him by a the president of Iran. No worries there, though, as the US pooh-poohed the suggestion, calling it a “diversion from global... [More]”

Fun with Windows Display Drivers

Published by marco on in Technology

In order to enhance the learning process, the lessons learned will come first:

  1. Using the “Hibernate” feature will eventually bite you in the ass
  2. Hibernating while using an external monitor as the primary display is a bad idea if that display will not be around when Windows re-animates
  3. Doing step (2) while attached to a display that is rotated 90 degrees is a sure-fire way to see things in Windows XP you haven’t seen since Windows 3.1.

In order to begin a rip-roaring rollercoaster of an... [More]

A Pleasant Daydream

Published by marco on in Fun

This photo montage of Postcards from Ken Lay (Whitehouse.gov) is one way to speculate a happy ending for the thousands of former Enron employees who may not have yet seen their way to forgiving “Kenny Boy” with quite the same fawning sycophantism to wealth mustered by Bush and his cronies.

 Kenny and Dick: a Missed Connection?

Imagining the Tenth Dimension

Published by marco on in Miscellaneous

 Imagining the Tenth Dimension is a web-site dedicated to the book of the same name by Rob Bryanton. With a resounding recommendation by none other than Greg Bear, this book explores a universe of ten dimensions, as put forth in string theory. The preamble contains the following disclaimer text:

“The “theory of reality” that I advance on this website and in the book “Imagining the Tenth Dimension” is not the one that is commonly accepted by today’s physicists. Anyone wanting to know more about... [More]”

Tehching Hsieh

Published by marco on in Miscellaneous

 One Year Performances is a website dedicated the performance art work of Tehching Hsieh, who, during the late 70s and early 80s, did some simple, elegant pieces that tested the limits of human endurance. Each piece has a simple rule, by which he lived for one year.[1]

1978-1979
I shall seal myself in my studio, in solitary confinement inside a cell-room measuring 11'6" X 9' X 8'. I shall not converse, read, write, listen to the radio or watch television, until I unseal myself on September 29,... [More]

The US Budget Explained

Published by marco on in Miscellaneous

This Flash video, Oreos by Ben Cohen (TrueMajority), uses dessert to focus your attention on the ridiculous numbers in the US federal budget. The first illustration (below) shows the size of the military budget as compared to the sizes of other portions of the federal budget. On the one hand, he’s conveniently left off Social Security and Medicare (the two biggest non-military programs in the federal budget), but on the other, he’s only included the official Pentagon budget, which does not include Homeland Security’s... [More]

Rules of the Dance

Published by marco on in Quotes

“You dance with the ones that brung ya, I guess.”


[1] In response the White House’s clear and official support for the Israeli response to the Hezbollah attacks—no matter how severe.

Deep-Seated Notions

Published by marco on in Public Policy & Politics

Even the most clear-thinking among us—those used to examining every last assumption and idea implicit in their attitudes and opinions—fall occasionally into the trap of widely held prograndistic notions. Crime and Punishment by Billmon (Whiskey Bar) has an excellent article on the recent Supreme Court decision—5–4, of course—which firmly applied the Geneva conventions to all prisoners, including enemy combatants and any other fantastical definions invented by the ruling plutarchy to deceive themselves and... [More]

Stevie Y − “The Captain”

Published by marco on in Sports

 Steve Yzerman retiresSteve Yzerman has retired from the NHL. He played for the Detroit Redwings all 23 years of his career, leading them to 3 Stanley Cups and 21 playoff appearances. He’s even got an Olympic gold medal, which he won with Canada when they could still play international hockey. ‘Captain’ forever has a place in hearts of Detroiters tells his story.

“There’s not a statistic for heart, but Yzerman would be the unquestioned record-holder. Through the years, he’s had five knee surgeries and lost all his... [More]”