HNHacker News
TopNewBestAskShowJobs

samdg

67 karma · joined September 9, 2012

submissionscomments
samdg··on Show HN: Semantic search over the National Gallery of Art
I love old stereograms, and was happy to find a couple using this tool!
samdg··on Ruff v0.1.0
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.

samdg··on Alternative Shells
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.

samdg··on Rejected emoji proposals
Life finds a way. I'm from Québec and I regularly use the Martinique flag emoji as an ersatz.
samdg··on Heavier cars are safer for their drivers, but far deadlier for everyone else
Interesting prisoner's dilemma example.
samdg··on Chess.com vs. Lichess
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.

samdg··on EFF co-founder John Gilmore removed from org's Board
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)

samdg··on Show HN: A webcam made out of HTML checkboxes
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!

samdg··on Old photos of Bedouin nomads, 1898
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.

samdg··on A Programmable Programming Language
Title should be edited: Lanugage -> Language.
samdg··on Wekan: An open-source Trello-like kanban
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.
samdg··on Introductory bullshit detection for non-technical managers
Because you needed a "generic" version of it, but your manager read this article and told you not to do it...
samdg··on What's with the black bar?
> 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.

samdg··on “Curl Bash piping” wall of shame
I think this is what you are looking for: https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...