Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 3y ago · link · parent

There are definitely people who have ADHD and are simply not diagnosed, as well as people who are "afraid of" medication for reason X.

For people who are unsure about this, though, ADHD having-ness is not 100% equivalent to "being unable to do your job with focus".

Like parent mentions, ADHD is fundamentally about low executive control. So if you find yourself often saying things and immediately regretting it (often mid-phrase), having trouble with addictive behavior, and otherwise just doing things and regretting them in social spheres (as you "know better" in theory), then it could fall in there. The social issues that come up with ADHD are an under-rated aspect of the disorder, and rules out a lot of the "it's not ADHD it's capitalism" stuff.

If you just can't concentrate at work... might be something else. Handling ADHD with meds can make your life better, but at the end of the day your job might just not work for you.

comment 3y ago · link · parent

I bought a NAS a while back, I might not have if I had the guts to my Macbook Pro that is in a closet because I don't use it anymore (but don't want to deal with all the futziness from having a folded up laptop overheat). Especially one where there are easy upgradeable storage solutions.

Half of RasPi usages don't involve any GPIO. Granted the RasPi's form factor is a part, but a very thin slice from some older machine works.

Hell, a media PC to just slap next to the TV works well as well.

There is a legit argument that usages for this are very close to usages for a laptop with the lid closed, but at one point the aesthetics do become nicer, and with all the TB ports the world's a bit your oyster.

comment 3y ago · link · parent

Alright I'm not going to engage with you on this, except to say that I've also written a report generator that does the whole "aggregate by time bucket and certain conditions across multiple tables" and it was in the Django ORM and it would end up as a single query that looked like what the SQL I would have written is. Lots of `query.explain()` calls locally to make sure I was getting what I want, but hey I'd be doing that for SQL in perf-sensitive queries as well.

I'm partial to the ORM being easy to lull you into writing quadratic-behavior stuff. You still gotta know how your DB works! But "mostly using the ORM, using SQL for some tricky things" works really well, especially given that the Django ORM lets you inject SQL fragments for a lot of behavior and have that "just work".

comment 3y ago · link · parent

People say this and it always sounds a bit like a myth, so here's a concrete search. Tokyo to Seattle, May 18th to June 8th. first link ([0]) with the sales city set to Seattle, the other time set to Tokyo ([1]).

Most of the airlines price the flight roughly the same (writing up the differences in pricing to currency conversions, like ~1%) but Singapore Airlines is offering the same flight at 3x the cost!

I feel like I've read in the past about how flight tickets are priced based on many rules, that are shared between various companies that sell tickets. My inference is thus that these rules might be dynamic, but they aren't like.... "price will change minute to minute based on all of the cookies in your browser" dynamic. Which then leads me to wondering: what sort of pricing rules are kicking in for these pricing differences? Because it feels to me a lot more like "lack of a discounting mechanism" rather than "rule that triples singapore airline flights out of Tokyo for Tokyo-based pruchases"

[0]: https://matrix.itasoftware.com/flights?search=eyJ0eXBlIjoicm...

[1]: https://matrix.itasoftware.com/flights?search=eyJ0eXBlIjoicm...

comment 3y ago · link · parent

Is Safari actually updatable separately? I thought that Safari major versions are OS locked on Mac as well?

Though I think most "Web View" apps on Mac just use Electron (shipping Chromium in their bundles)

comment 3y ago · link · parent

I think icloud is pretty decent as a solution, but one thing I think is kind of worrying is that it unlocks with the same "key" as your phone.

So if someone sees your PIN code, they can not only unlock your phone, they can get all of your passwords and change those passwords very quickly.

I enjoy 1Password being separate in that regard, and I would really like it if the iOS keychain would let you set a separate password in that respect.

comment 3y ago · link · parent

In that case for the SQL, you would be pulling in data from one table, putting it into another. in the ORM I would similarly model it by having an abstract model to hold the general shape of the table, and then one read-only model and another for writing. With some helper functions to pull the data from one or the other.

Though if you are working with views and not materialized views, performance wise "use .annotate when fetching data" will be roughly as performant as using a view. Views just end up getting swapped out when the planner deals with the query (in Postgres at least).

Of course I get this cuz I spent a lot of time with the ORM. I think it's easy for people to think "there must be a magic option somewhere in the ORM to do this", but sometimes there's no magic. The counterpoint, though, is you have Python behind all of this so stuff like "share schema definitions between classes" is easy and straightforward in my experience (including on projects with like...80+ models, some with way too many fields, so I get your pain). It might not be the exact API you want though

comment 3y ago · link · parent

Django's ORM is much better than most, to the point where Django considers that "I can't model this query with the ORM" to be a bug.

There are of course some mismatches, but it's pretty hard to have a query that is not at all modelable, and Django's ORM is ... fairly predictable (I have some gripes about how obvious or not joins are but it's subjective).

comment 3y ago · link · parent

I don’t know how Docker Hub falling by the wayside plays out. I suppose most cloud providers really should offer their own container image repo mirrors or something instead. But it’ll be painful

Wild to me that Docker inc. Doesn’t just charge to pull prebuilt images. Just send docker files!

comment 3y ago · link · parent

Two things:

- you can set up flash cs3 in an XP VM and goof around

- it’s not the same thing! But im finding the Phaser 2D Editor (an IDE for Phaser) to give me some of the goodies I missed from flash

comment 3y ago · link · parent

This is definitely dependent on the group of people, but if you have like 2 or 3 people doing it, everyone ends up doing it. Nobody wants to talk to a person on their phone, even if they can multitask

comment 3y ago · link · parent

I mean in the "real world" what happens is you do this once, and then you keep on using it and gradually make changes. Annoying, of course, but I think cargo is fortunately still relatively simple stuff, so the scope is much smaller than, say, Python setup.py shenanigans (though Rust build.rs stuff will definitely require some futzing around with environment variables at the Cargo level).

The "obvious" thing would be to either generate cargo files from Bazel stuff, generate Bazel stuff from cargo files, or have a third source that generates both. And like... yeah, if you are suffering from compile time issues, Bazel can make that stuff order of magnitudes faster (especially if your dep tree is pretty horizontal), so there's a reason to do it!

comment 3y ago · link · parent

You have to declare in Bazel as well.

But really, I think that people don't go extremely granular on this. For Rust projects that are spread over 10-100 crates, I think that most people would just model the crate dependencies rather than at a file level. Mostly for pragmatic reasons, but also because that will likely model your test suite closely and your build requirements.

Bazel is a build tool, so one "module" (in Bazel you talk about target) per build artifact basically aligns with what people want. But you can in theory go really granular, making it so that tests only run if files it depend on change (less granular and that becomes "crates they depend on change")

comment 3y ago · link · parent

Even just for running test suites incrementally, Bazel is pretty nice. If you have CI that takes "too long", Bazel is basically the only serious tool that can get you to incremental CI in a pretty rigorous way.

Though I seriously wish there were a better option, because there are a _lot_ of usability things with Bazel that make me very frustrated when working with a repo that is "merely" quite large.

comment 3y ago · link · parent

You seem to know more about this, so I'm wondering: is "most tokens are really securities, but the way tokens work means you couldn't really make them compliant securities in the same way that my paper plane is a plane but I won't get FAA approval to sell it to American Airlines" a way of envisioning the world on this? Or are 'compliant securities' theoretically a possible thing in some vision of the world where compliance means something?

comment 3y ago · link · parent

If I had to guess, the SEC is actually saying "you are offering many products, and _way too many of them_ are securities. We will not list them all because it would be way too much work. We will not list one because we don't want you to overfit on the example. We want you to actually do the analysis across all of your products".

I have to imagine the SEC and Coinbase are in fact talking directly on a more off the record basis here as well... but who knows.

I think the equivalent here is the IRS saying "look, these numbers look wrong to us. Please check them. We are not in the job of doing taxes for you".

comment 3y ago · link · parent

The classic bit was that Slack was "no remote" pre-2020 (I'm sure nobody was counting the number of days that the C-suite and other executives deciding that were AWOL though)

comment 3y ago · link · parent

Anyone up for this exercise, I might recommend QBASIC from Microsoft instead. Built in help manual and a "real-ish" IDE. And it was on the Windows 98 CD!

I value "infinite online resources" but having integrated books of documentation in the IDE includes such valuable writing. I miss it so much when going through the hastily-written "getting started" tutorials I end up with nowadays (the scope of problems trying to be solved is way different of course)

comment 3y ago · link · parent

Well if you have a source of vocab you can do it.

Honestly CSV import is the way to go. That leaves you with how to get cards in. That depends largely on how you are working with stuff.

Some bespoke options include:

- The Kindle dictionary lookup history is an SQLite file on the kindle. Scrape that and pull it out

- Write a CLI command to lookup words in some dictionary website and stick that somewhere

- Just have a text file open somewhere where you paste words, and then you do the lookup later.

I think there's a lot of ways to make things easier, especially if you're working with another language with an open source dictionary. You need to do some one-time elbow grease to get it in, cuz what people want is different.

Another thing you can do if you like just going wild: just download somebody else's card deck. You can set things up to show you (for example) 10 or 5 or even 2 new cards a day. You will end up being shown a bunch of new words. You can just absorb those over time and see how that helps.

comment 3y ago · link · parent

I mean for math I think I would have benefited quite well from sticking in various known derivative forms into Anki. You can walk and chew bubble gum here!

comment 3y ago · link · parent

Perhaps the fact that the food could literally be poison for the person eating it? And if this person has no communication skills...

At least when you're 3 and talking you can be more clear about what's going on with your body if there's a problem.

"Why give them any food at all" is a very glib reply to them. I'll let you figure out why people might avoid certain foods and not others, and why people feed small children

comment 3y ago · link · parent

Because when you commission someone _they initially get copyright_ and then assign it to you.

comment 3y ago · link · parent

I have had a similar-ish idea floating in my head for a while, which is a library + executor + editor UI for per-app scripting capabilities.

Something that would let people write out basic automation workflows to respond to events, similar to what Zapier or Salesforce offers to its users.

There are, of course, halting problem-style issues. I _think_ you could paper over some of that at the description level. But really you want the right kind of hooks into the actual system. A scripting tool that is just "oh but you just hit the API" is way less nice than bespoke components for your own system.

And with event systems you have the usual event propogation issues of accidentally causing a massive fan-out of events from some action and causing your sysetm to fall over.

But this is really something that someone could write out as a component for other systems and make a lot of business SaaS's automation floors way better.

You really do want to offer _something_ to users, though. The users that can write Javascript... well, Zapier lets you write Javascript. Hell, Google Cloud Platform lets you write Javascript in little script blobs, complete with Google Docs-level concurrency. This is a bit weak compared to that.

1
626364
225