Better HN
topnewbestaskshowjobs
Log inSign up

samdg

67 karma · joined Sep 9, 2012 (14y ago) · 14 submissions

Submissions

comment 1y ago · link · parent

I love old stereograms, and was happy to find a couple using this tool!

comment 3y ago · link · parent

I was an early adopter of Ruff, what sold me wasn't even the performance win, but the advantage of having a single configuration file without third-party plugins, making it much easier to run the linter in my editor, CLI, pre-commit hooks, and CI without any fuss.

The speed of the tool and its development pace astound me.

If the authors/maintainers are lurking here: know that you're doing an amazing job.

comment 3y ago · link · parent

I've been using Xonsh as my main shell for a few years now, and I'm really pleased with the switch.

There are some downsides you need to overcome:

* Slower to start. Takes a second or two before I can start typing when I open a new tab.

* Less stable. Upgrading will occasionally break something, or spit out warnings you gotta find a way to silence.

* Lack of compatibility. Tools that change you shell profiles to shim some executables (like rvm or pyenv) will not work. I typically source some files manually, or resort to bash if I need to.

* Tab completion is not straightforward.

But IMO I get ample compensation:

* I can write much better and cleaner scripts using Python's syntax and standard lib. Being able to use `argparse` is a blessing, compared to how you read arguments and flags in bash.

* I'm actually able to remember the syntax for looping and conditional.

* I'm more self-sufficient in the terminal for small things like arithmetic operations, generating a UUID, testing regexes, etc.

* Having typed/structured data in the shell, vs everything being plain text is also quite useful when you don't want to turn some easy task into some complex text processing pipeline.

comment 3y ago · link · parent

Life finds a way. I'm from Québec and I regularly use the Martinique flag emoji as an ersatz.

comment 4y ago · link · parent

Interesting prisoner's dilemma example.

comment 4y ago · link · parent

A feature I was surprised not to see in the "Cleaner page UI during chess games" section: Lichess has a zen mode that maximally simplifies the UI.

It removes the chat, navigation menu, move history notation. You're left with the board, clocks, resign/draw/takeback actions, and move replay.

You can activate it by pressing "Z" during a game, and there's a menu option too.

comment 5y ago · link · parent

Just look at the sibling replies to see how delightful this new word is to some other folks here!

Sometimes using a word outside the register [0] or literary style is just a way to include a nice lexical nugget.

[0] https://en.wikipedia.org/wiki/Register_(sociolinguistics)

comment 5y ago · link · parent

A colleague of mine created the EmojiVision app for iOS: https://apps.apple.com/us/app/emojivision/id1472824315

It's similar, but with different sets of emojis and variable fidelity. Very interesting results!

comment 5y ago · link · parent

Current title: "Old and photos of Bedouin nomads, 1898".

I'm guessing the "spectacular" was omitted from the original title to be less clickbaity, but the "and" should be removed as well.

comment 8y ago · link · parent

Title should be edited: Lanugage -> Language.

comment 9y ago · link · parent

And actually there is... For me the image is cut at about one third down the way, and I can't scroll to see the rest.

comment 9y ago · link · parent

Because you needed a "generic" version of it, but your manager read this article and told you not to do it...

comment 9y ago · link · parent

> I'm not trying to be snippy, but the answer is generally on the front page. Or you could type "died" into the search box and choose most recent.

But that presupposes you know this black bar indicates someone's death, which is not the case of the person asking the question in the first place.

comment 10y ago · link · parent

I think this is what you are looking for: https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...