HNHacker News
TopNewBestAskShowJobs

ewiethoff

312 karma · joined January 24, 2009

submissionscomments
ewiethoff··on How to Build a Search Engine
Thanks! Some (http://nlp.stanford.edu/IR-book/html/htmledition/near-duplic...) looks useful for a project I'm on. And, no, we're not trying to index the Internet or do a Google Desktop search.
ewiethoff··on Offshore programming idea: floating luxury hotel for developers 3 miles off US coast?
> I wonder how they would be able to afford 300 staff for 600 programmers?

No minimum wage laws, and if the staff can't leave the ship, say hello to slavery.

ewiethoff··on Laid-Off Foreigners Flee as Dubai Spirals Down
Get thrown in the slammer for 4 years for eating a poppy seed roll. Ouch.
ewiethoff··on Python: copying a list the right way
Hmm, no. You have to add __copy__ and/or __deepcopy__ to every class.
ewiethoff··on Python: copying a list the right way
That's a module in the standard library.

What I'm saying is, there's no copy or clone or dup method built into Python's base object, as there is in Ruby. And Python programmers are not instructed to define a clone method for a class, as in Java. A __copy__ or __deepcopy__, okay, but not copy or deepcopy.

Hence, in Python you just don't see foo.clone() or foo.dup() or foo.copy() or foo.deepcopy(). Instead, you see copy.copy(foo) or copy.deepcopy(foo). Pythonic code often looks different than Ruby or Java, looks more stand-alone function-y than instance method-y.

ewiethoff··on Programming is hard
> "Compared to what?"

Shopping! Creating a useful software product is harder than buying one off the shelf. Creating great literature is harder than buying something at Barnes & Noble.

ewiethoff··on Python: copying a list the right way
> Clearly the answer is a .clone() or .copy() method...

if you want Python to smell like Java or Ruby. :->

ewiethoff··on Careers and Marriage
I've noticed it's pretty typical for the engineering and science guys I've gone to school with or worked with to marry nurses, physical therapists, religious educators, or HR gals. Think fem careers that are in demand wherever the two of you might live. And these marriages seem to last.
ewiethoff··on Homeless by choice (during grad school)
Nope, sorry, but thanks for the links. At the moment, I'm chuckling to myself about the hyper gal who knits sweaters for everyone at night because she never sleeps. Oh, and the ice covered hallway. And here I am awake all night...
ewiethoff··on Homeless by choice (during grad school)
Ah, yes, Lazlo was the name. Thanks for the Caltech scoop. (I was RPI ages ago.)
ewiethoff··on Homeless by choice (during grad school)
I can't help picturing one of the characters from an old Val Kilmer movie called Real Genius. This computer geek character had graduated--finished grad school, too--years earlier. He had ensconced himself in a secret hallway behind a closet in one of the freshman dorms. Every once in awhile he'd go creeping in and out of the closet of whatever guy happened to live in that dorm room at the time. No one minded much because he had such a reputation for accomplishment. I got the impression he was supposed to be Richard Stallman. Anyway, it's a fun movie, and various characters reminded me of people I knew in school.
ewiethoff··on Homeless by choice (during grad school)
Reminds me of how I felt reading Kim Stanley Robinson last year. Robinson creates a homeless-by-choice scientist (Frank) in his Washington DC climate trilogy: Forty Days of Rain, Fifty..., Sixty... Frank lives in a little tent high up in a tree in the city park and joins a gym for the showers. He meets up with dumpster-diving Freegans and traditional homeless people. Well, I won't go into the whole story, of course. But I think Robinson did a good job of making Frank a sympathetic character I rooted for. I kind of wondered, though, about the author himself showing off an a ability to write about "underground" living.
ewiethoff··on How to be a better programmer in 6 minutes
A bigger font is better for your upper back, too. Take a look around you and notice how many of your fellow developers--or anyone working with text at a computer--slouch forward every few seconds to peer at the monitor. Then notice yourself doing it. Bye, bye, chiropractor.
ewiethoff··on Heyzap: Online games reach the long tail
Wasn't the Long Tail debunked a few months ago? (http://www.theregister.co.uk/2008/11/07/long_tail_debunked/)
ewiethoff··on Google Earth updater now quietly updates all the Google apps
Auto update is horrid for disabled people and those with other usability issues. There you are happily using a product, and the next day you cannot. I'm going to be a crabby old snot and say, perhaps Google would see things differently if 99% of its employees were not so young and healthy. The trouble is, Google isn't just a whiz-bang company with whiz-bang ideas. It's almost a public utility.
ewiethoff··on Unix Time = 1234567890 On Valentine’s Day
The thought of unusual Unix times brings back memories... or nightmares...

For several years, the company I had been working for used a multi-platform GUI library called C++/Views. We had the code for the library itself and compiled it as needed for the various platforms we needed to support. It came with a handy, yet annoyingly buggy, WYSIWYG GUI-creator tool.

Wouldn't you know, the WYSIWYG tool stopped working in September 2001. C++/Views was no longer supported, and we didn't have source code for the WYSIWYG tool. A guy Brian and I experimented around with it awhile and discovered we could use the tool only if we set the system clock back before September 8, 2001. So, that became every developer's workaround: temporarily setting the clock back to use the darn tool.

Nasty billennium (1,000,000,000) bug. Fun, fun.

ewiethoff··on Ceiling Height Can Affect How A Person Thinks, Feels And Acts
I wonder whether the researchers took into account how the sound in the space bounces around. A higher ceiling often means more bounce. Me, I lose all concentration where treble sounds are bouncing.
ewiethoff··on Ask HN: Light grey text is killing my eyes.
Remember CSS Zen Garden (http://www.csszengarden.com/) and The Zen of CSS Design book? And Zeldman (http://www.zeldman.com/)? Way cool when cutting edge designers were figuring out what CSS 2.1 is capable of. But such low contrast! And lots of tan. Then the candy-colors-on-white "Web 2.0" look hit... Another year, another DTD.
ewiethoff··on Recreating the button
I encourage every architect in the world to design custom light switches for every building and position them in locations unique to each building. That way, everyone who enters any building has to first figure out how to identify and operate the light switches.

Sorry I'm so crabby about this. But, by golly, Google's new "button" really calls out for the question "Why?" And to think on top of it all, Google has to go through a lot of trouble (probably Javascript trouble, though I haven't studied the code) to make these silly "buttons" tabbable. Pretty soon, every Web 7.0 kiddie will try to replicate Google's "buttons" and fail to make them tabbable.

Agree: "Desktop clients still have a bright future thanks to stuff like this."

ewiethoff··on Goodbye Facebook
Legitimate question. From http://www.jwz.org/doc/groupware.html: "Your 'use case' should be, there's a 22 year old college student living in the dorms. How will this software get him laid?"

Ah, but if he's prone to computer addiction, the software needs to shove him outside to interact with real people, or shove him out of his chair to enjoy his girlfriend/boyfriend/pet(?!) in the next room. Perhaps Facebook needs the various noprocrast features HN has.

ewiethoff··on Ruby 1.9 Internals: Ordered Hash
A few random thoughts about Ruby's traditional unordered Hash:

The Hash#keys method should have returned a Set, not an Array. That way no one would have been baffled by the lack of predictable order. But, unfortunately, Set is not a built-in class. Hence, Hash#keys has to return an Array.

Since Rails came out, there's been, I think, an ever increasing use of Symbols as Hash keys. If you want to examine your Hash in a specific order--perhaps in a test--it's tempting to sort the Array of keys. But there's no Symbol#<=> method. Therefore, an Array of Symbols cannot be sorted (without monkey patching).

If, for whatever reason, you create a Hash whose keys are of various types, the keys are probably not sortable. Hence, there's no way to examine its contents in a predictable order.

A few thoughts about the new ordered Hash:

Personally, I see no need for the built-in Hash to be ordered. I'm so accustomed to thinking of hashes as unordered. And, because I don't have Ruby 1.9, I don't use the newfangled hashy syntax for passing parameters.

But one of the commenters (Radarek) points out something about parameter passing. He/she says, "It's another big + for ordered hashes because they are used as replacement for named parameters [in Ruby 1.9]." He/she mentions a project in which a method must process its keyword parameters in the order they were given.

The thought of trying to process keyword parameters in the order given is very jarring to my old-fashioned Ruby brain, and to my Python brain. Yet, evidently, someone out there wants to do this without telling the client to pass an Array of Arrays.

So I wonder what the major use case is for the predictable ordering of the built-in Hash. Perhaps it's for ease of examining and comparing Hashes in tests? Perhaps it's for processing keyword parameters in a specific order when they're passed using spiffy syntax? What?

ewiethoff··on Ask HN: What is your Lipson-Shiu type?
HTML head:

<meta name="description" content="Interactive spoof of corporate personality tests">

ewiethoff··on Ask HN: What is your Lipson-Shiu type?
I've filled out this test a few times in the past few years. Result: ICUE (Mad Scientist) or ICUG (Inventor) depending on what mood I'm in when I take it.
ewiethoff··on Google's new Ajax-powered search results breaks search keyword tracking for everyone
Hmmm. I'm not seeing this new "feature" when I search Google. I've turned on Javascript, I'm accepting Google cookies, I've even logged in. And I still see the usual http://www.google.com/search?q=ajax+crap results URL. I'm running Firefox 3.0.5.

Anyone know what triggers the new search results?

ewiethoff··on A Company Prospers by Saving Poor People’s Lives
A Google referrer doesn't do the trick. It's a cookie thing. http://news.ycombinator.com/item?id=460294
ewiethoff··on What I don’t like about Python
Pedant here. The fact that a Python lambda cannot be multi-line is not directly related to the whitespace thing. After all, it's easy to put several statements on one line by separating them with semicolons. No, the issue is, a Python lambda cannot include any statements; it can only contain an expression. Expressions and statements are different animals in Python. That's a fundamental issue.
ewiethoff··on Alex Payne: The Case Against Everything Buckets
Addendum:

(5) Different apps want to open files in different places. One app's Open dialog wants to look in the directory you finished off your last Open. Another app wants Open to look in the directory of the file you most recently opened by double clicking on its icon. A third app wants Open to look in the directory where you completed your most recent Save. Etc. As in the Save As problem, no one can remember each app's Open convention.

I know several older people (in their 70s) who sorely miss the days of yore when they worked with their user files on floppies. Each project lived on one or two floppies. Even if the OS allowed subdirectories, they didn't bother creating them. So, on DOS or early Windows, say, the users could always find their work at A:\ (unless there was no hard drive; then their work was at B:\). No getting lost in Open or Save As, no Recent nonsense, no digging down through folder icons, and hardly a need for built-in search.

We've been living with hierarchical file systems for several years now. And the upshot is, the Finder (or whatever it's called) and desktop apps plus newfangled browser apps don't present a consistent interface to the file system.

ewiethoff··on Alex Payne: The Case Against Everything Buckets
You want Mac OS 9 or earlier. :-) Well, maybe not quite. You could attach text comments to a file, but I can't remember if the comments were searchable. And before OS 8 or so, the comments disappeared whenever you decided to "rebuild the Desktop." You could assign a searchable, color-coded category to a file, but you were limited to one category per file and something like six or eight categories altogether. Still, though, the earlier Mac OSs were very handy (except for the crashing...)
ewiethoff··on Alex Payne: The Case Against Everything Buckets
Overall agree with the article: use individual apps that do well what they're designed to do, and use the file system to organize your stuff. Unfortunately, a tremendous number of users cannot make heads or tales out of the file system.

I believe the chief causes of the confusion are (1) different apps save newly created/edited files to different places (2) many users are clueless about navigating the file system within the Save As dialog (3) many users rely on an app's Recent list (4) many users don't know how to search their own file systems.

(1) Some apps always want to Save As to the Documents folder. Some always want to Save As to wherever you finished off your previous Save As. Some always want to Save As to the folder of the file you most recently opened in that app. Etc. No one can remember each app's convention.

(2) People don't realize they can navigate within Save As to someplace other than wherever the app feels like plopping the file by default at that moment. True even when shown over and over and over how to do this.

(3) Once you move a file, its entry in an app's Recent listing is probably borked. This sends people who rely on Recent for finding and opening files into a panic.

(4) They don't know how to click on the desktop and hit cmd-F or to click on Start->Find. And once they do, the Find window looks nothing like Google or a web browser. They don't understand what the various search criteria are or how to enter them. They don't know how to read the results.

ewiethoff··on Send Me Your Nominations for Algorithms That Changed The World
Name of author: Abu Ja'far Muhammad ibn Musa al-Khwarizmi. Name of work: al-Kitab al-mukhtasar fi hisab al-jabr wa'l-muqabala ("A Handbook of Calculation by Completion and Reduction").

John Derbyshire examines al-Khwarizmi's work in chapter 3 of Unknown Quantity: A Real and Imaginary History of Algebra [ISBN 978-0-452-28853-9], which I just finished reading a few days ago.

The first part of al-Khwarizmi's book concerns finding the roots of first- and second-order polynomials of one unknown. He classified the polynomials into 6 fundamental types, with all positive coefficients. Keep in mind, that negative numbers did not exist at the time, though subtraction did. He showed how to manipulate polynomials into a suitable one of the 6 types by adding a term (al-jabr, completing) or subtracting a term (al-muqabala, reducing).

Says Derbyshire, "al-Khwarizmi has no literal symbolism--no way to lay out equations in letters and numbers, no sign for the unknown quantity and its powers." The problems, the fundamental types, the procedures are all presented in words.

Interestingly, Diophantus 600 years earlier did addition and subtraction of polynomial terms using "a rich literal symbolism to aid the manipulations."

← PreviousPage 4 of 5Next →