Better HN
topnewbestaskshowjobs
Log inSign up

Squid_Tamer

41 karma · joined Feb 27, 2014 (12y ago) · 8 submissions

Submissions

comment 8mo ago · link · parent

While (relatively rare) left-hand exits are a thing in the US, I don't think that's what the arrows on this app is showing. The screenshot appears to be showing a single exit.

The arrows probably tell you whether your first turn will be a left or a right immediately after leaving the interstate. Many exits have two lanes, one for left turns and one for right turns onto the connected surface street. You have to know which exit lane you want to be in.

On a road trip, gas stations and fast food to the "right" of your travel direction on the interstate are slightly preferable because you don't have to wait for any left-turn signals. The US allows you to turn right at a red traffic light as well, saving even more time.

comment 9mo ago · link · parent

If you get desperate, I've given my agent a custom $PATH that replaces the forbidden tools with shims that either call the correct tool, or at least tell it what to do differently.

~/agent-shims/mvn:

    #!/bin/bash
    echo "Usage of 'mvn' is forbidden. Use build.sh or run-tests.sh"
That way it is prevented from using the wrong tools, and can self-correct when it tries.

comment 1y ago · link · parent

For real. They could even gate sideloading behind a 10 question multiple-choice-answer quiz on the consequences of sideloading. That's how we license dangerous abilities in the 'real world' - demonstrated competence via standardized test.

It feels so transparent that their concern isn't actually user safety here.

comment 1y ago · link · parent

I think probabilistic counters are really interesting for this situation, as long as you don't need exact numbers.

  if random.randint(1, 100) == 1:
      db.increment(row)
Then, looking at the database, you can know that the actual count is approximately 100x the number of times the row was incremented.

There's an even more aggressive version that I've seen called a 'Morris Counter' which uses just a few bits to build an order-of-magnitude estimate of the number of events: https://en.wikipedia.org/wiki/Approximate_counting_algorithm

comment 6y ago · link · parent

I worked on a SaaS project who's customers are companies in an old-fashioned industry. A common requirement was that their data shouldn't be stored in the same database tables as any other customer. They were fine with it being co-located on the same cloud servers, using the same credentials... as long as their data wasn't on the same tables. So I used postgres templates to make a database per customer.

Didn't make much sense to me either but whatever pays the bills I guess.

comment 7y ago · link · parent

I figured out that if you click the "info" icon at the top-left of the screen, it'll bring up a little GUI editor with dropdowns. Still not great for finding categories, but better than "wdt:P279"

comment 7y ago · link · parent

I'm not so sure about this conclusion. I feel that below-average developers are less likely to answer stack overflow surveys at all. In my anecdotal experience, below-average devs usually have little interest in interacting with the overall "developer community" or reading about development more than the absolute minimum needed to finish their assigned tasks.

comment 12y ago · link · parent

Maybe I'm noticing a trend that doesn't exist, but it seems to me that the web industry is slowly realizing how much the original designers of the web got right.

RESTFUL services bring back the focus on URLs and HTTP methods. For a while there was a craze of embedding content in awful Flash and Java applets, but that died out because of convenience, better browsers, and SEO. I wonder if the future of the web is going to look a lot more like its history than we thought.