EvilTerran

Joined 14 years ago

Karma
1,298
Submissions
493
Member since
Mar 27
View on Hacker News

Recent submissions

Comment · 8 months ago
You can add a screenshot button to the toolbar from the "Customise Toolbar" screen, does the exact same thing as that context menu item.
Comment · 1 year ago
Same!

I also enjoy reading SciPy as "skippy".

Comment · 3 years ago
Back when I played Minecraft, I wrote one I was pretty pleased with:

If you have a stack of items, you can pick up half of them by right-clicking on it, which is very convenient when you're dividing out a stack on the crafting grid to make many copies of a recipe that needs that item in 2 or 4 slots; but for some recipes, you need to put the same item in 3 or 6 slots, and there's no built-in way to divide a stack into thirds.

So I made an AHK script that, when I held down a key, would

- pick up half of the items in the stack I'm pointing at (right-click) - move the mouse one inventory space to the right - put them down (left-click) - pick up half of them again - move back one inventory space left - put them down, adding them back to the original stack - and repeat

and it would only stop after one of the "pick up" steps; so, after a few iterations, you'd be left with the stack divided into equal thirds, two in your inventory & one on the mouse.

Eg, starting with a stack of 60, it goes 30/30, 45/15, 22/38, 41/19, 20/40, 40/20, 20/40, 40/20... then release the key, and you've got three stacks of 20.

Comment · 6 years ago
Comment · 6 years ago
I guess you could send changes to the DB on-the-fly inside a transaction, so when the user clicks "save" it's just a matter of running COMMIT? Not sure what effect that would have on performance as the transaction grows, though.
Comment · 6 years ago
I believe you're thinking of the "Facebook Container" addon - it's "official", in that it's made by people at Mozilla & has their corporate blessing, but it's not installed by default.

AIUI, the only "container" functionality built-in to the browser is... infrastructure, I guess you'd call it: Firefox provides all the tools for addons to do stuff with containers, but doesn't actually do anything with them itself.

Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
I find PCRE's rule easy enough: for a character you want to be taken literally, if it's punctuation backslash it, if it's not then don't; any unbackslashed punctuation (or backslashed non-punctuation) may be a metacharacter.

Compare to, say, POSIX or Vim[0] REs, where some punctuation characters are special with a backslash, others are special without, and I can never remember which is which.

[0] Regardless of the state of the "magic" option - the only way to get consistent behavior is to start every single RE with either \v (which works like PCRE) or \V (which works like your proposal).

Comment · 6 years ago
> For instance most spray cleaners come in bottles made of high-density polyethylene, which can be readily recycled. But first consumers must remove the spraytops, as they are made from different plastics and are not recyclable. Then consumers must find a way to pry off the brightly-colored, printed plastic wraps that packagers are increasingly wrapping around bottles to make the labeling more attractive.

> “Who does all that? Nobody,” said Sanborn.

I do! It's a little fiddly, but any sharp knife with a point you can slip under the label does a good enough job of slicing those off.

Good to know that helps, actually - I've often wondered whether I was wasting my time bothering with it.

Comment · 6 years ago
Comment · 6 years ago
> python came up without a platform to support it

What about numpy (+ its ecosystem, scipy/pandas/etc)? I get the impression that's contributed a lot to Python's growth over the years.

Comment · 6 years ago
So I changed the z-index of Div A to be 5 or something. But it didn’t work! In Firefox, div A was on top, but in Chrome, Div B was on top. Argh! Why?

... why indeed? I can't think of any (presumably fairly simple) scenario where that would happen.

Comment · 6 years ago
Sure, I don't disagree - I meant only to add context for anyone reading who was unfamiliar with Haskell, lest they come away with the impression that the lack of a .get()-equivalent was some kind of egregious oversight.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton