dmlorenzetti

Joined 17 years ago

Karma
2,350
Submissions
433
Member since
May 19
I work on problems of air quality and energy conservation in buildings. Mostly I write simulation and optimization tools, using mainstream languages like C, Python, and F95.
View on Hacker News

Recent submissions

Comment · 1 year ago
Regarding the idea to have some macros that expand to null when unwanted -- I have some "developer" macros that, in day-to-day use, do things like showing TODO items.

The most useful one typesets the labels of equations, sections, figures, and so forth, so I can copy-paste right from the document as I'm editing. That makes it so much easier to insert cross-references while writing, without breaking the flow to search out the definition.

Rather than commenting out packages, I have two top-level input files, which `\input{}` the actual content. Those files differ only where they read the developer-oriented definitions:

    \input{latex_input/defn/dev_defns_for_devs.tex}
versus

    \input{latex_input/defn/dev_defns_for_release.tex}
Comment · 1 year ago
I don't know anything about literature.

You know what you like -- which is enough, especially if you are reading for pleasure.

In my experience, discussing a work, or reading about its context or meaning, often deepens my enjoyment of it. So maybe one "trick" is to engage with others. But at some point you can't go throwing your precious spare time into something that doesn't fundamentally engage you.

I no longer let it bother me if I don't "get" something that many others enjoy. Conversely, I have a number of favorite books (and movies and music) that I rarely recommend to others, because I've learned that few people share my personal response to them.

Comment · 2 years ago
It seems like it would be a lot easier to just have students call, e.g., `ta_fork()` rather than `fork()`, and then provide an implementing file to be linked with their program. Then `ta_fork()` allows the TA to trigger errors, either probabilistically or deterministically (say, by setting environment variables).

This approach would also give students insight into testing strategies like mocking, plus it would work on more operating systems.

[Edit: Not to disparage this project. It seems like it would have lots of uses, and it was probably a lot of fun to develop.]

Comment · 2 years ago
Comment · 4 years ago
being a janitor often pays really well

When I was a kid, maybe 5th or 6th grade, my family was driving out in the country and came upon a burning farmer's field.

We stopped to help, and my older brother and I were charged with keeping an eye on the smoking remains of a field that had already burned out. The adults, and my younger siblings, went to fight the actual fire.

By the time it was all over, my brother and I were both feeling slighted and sidelined. But as we got back to the car, my mother, may she rest in peace, told us how much responsibility we had been given, to be set such an important job, with no adult supervision, the farmer must have thought we were older than we really are.

Two points, I suppose. First, one doesn't always appreciate one's salient qualities. Second, 45+ years later, that episode still stands out in my memory for how rewarding it felt.

Comment · 4 years ago
Alex Jones reminds me of the Introduction to Kurt Vonnegut's "Mother Night" -- We are what we pretend to be, so we must be careful about what we pretend to be.
Comment · 4 years ago
Worth noting that InformIT currently has a sale running. Through end of 31-May EDT, use code SUNSHINE to get 50% off when you buy two books or ebooks.
Comment · 4 years ago
Similarly, they would use blanked keyword blocking. So sex education resources would frequently get blocked.

I had a colleague whose surname, Sextro, was part of his email address. He occasionally had messages blocked by blanket filters like that.

Comment · 4 years ago
You don't put science on your name if you're a real science

Having flashbacks to when a close friend was getting an MS in Political Science, and spent the first semester in a class devoted to whether or not political science is a science.

Comment · 5 years ago
Another example of selling the same space twice is cities moving from fixed parking meters, to meters that print out a parking receipt.

With the meter stuck on a pole at the parking space, if I pay for an hour but leave after 20 minutes, the meter still shows time. Somebody else can come and park there for 40 minutes, free.

But if I buy a paper receipt and stick on my dashboard, and leave after 20 minutes, the next person still has to rent the same 40 minutes of time.

Nobody I mention this to is upset about it (neither am I, at heart, though I do notice it). That suggests to me that conflicts over tray space on airplanes is driven more by a sense of claustrophobia and powerlessness, than by any particular notion of fairness or ownership.

Comment · 5 years ago
Comment · 5 years ago
"Numerical Python" by Johansson was an exception for me.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton