mdhughes

joined 8 months ago
[–] mdhughes@lemmy.sdf.org 1 points 4 weeks ago

I was doing some ST retrocomputing last night, and GEM was just great, so much cleaner and simpler than modern GUIs.

[–] mdhughes@lemmy.sdf.org 41 points 4 weeks ago (3 children)

print( ["even", "odd"][num % 2] )

If you need to avoid evaluating the wrong branch:

print( [lambda: "even", lambda: "odd"][num % 2]() )

[–] mdhughes@lemmy.sdf.org 1 points 1 month ago

I only use nerdtree, and bind some scripts to F-keys. Haven't updated in a couple years, just works.

[–] mdhughes@lemmy.sdf.org 8 points 2 months ago

Other way around. You punched the edge to make it writeable (or double-punched to write on the back side, if you were brave). Cover it to make it read-only. The 3.5" sliders were the same mechanism, open was write, closed was read-only.

[–] mdhughes@lemmy.sdf.org -1 points 3 months ago (10 children)

If you write to a text (as opposed to binary) stream, \n produces \n or \r\n (or \r if old enough) depending on platform just fine.

Nobody should be using C++ anyway, but plenty of languages have silly system newline constants, which do nothing useful.

[–] mdhughes@lemmy.sdf.org 5 points 3 months ago (5 children)

I wonder if he Dremels the case open and explodes the power supply. (no, I don't click his links)

[–] mdhughes@lemmy.sdf.org 13 points 4 months ago

Waterfall: Boeing/ULA does this. Their rockets cost $4B per launch, don't work, strand astronauts. Maybe the next repair/test cycle, if management's dumb enough to keep paying them.

Agile at least launches something.

[–] mdhughes@lemmy.sdf.org 19 points 5 months ago (2 children)

ed (1) is still the standard text editor.

[–] mdhughes@lemmy.sdf.org -1 points 5 months ago (1 children)

The locked bootloader is having a lock at all. Without that, anyone can enter at any time.

In reality, home door locks are merely suggestions, they're trivially picked or broken open, windows can be entered through. But if you DID have a secure building, you wouldn't want any of the security systems to be replaced.

You get full access to operate in a secure building once you've used the key/biometrics/passwords/interrogation. You don't have access to replace the locks with tinkertoy homebrew shit, because we know that's not as competent.

[–] mdhughes@lemmy.sdf.org 3 points 7 months ago

Used to be slashdot. Some people say it still is.

view more: next ›