Recent submissions

Comment · 5 years ago
That’s dead on what I’ve been doing on my projects for some time. I also track it with a correlation id once it reaches my network so that I can put all logging and context into ELK for my aggregated logging. I can then see everything that that request did in my entire system.
Comment · 5 years ago
Others already pointed out that you can use a core method. What I see is that I actually rewrote a query that had 7 joins (yes, it was not great), and rewrote it in SQLAlchemy that made for a the query to have a lot fewer total lines of code to write.

I validated it by checking out what it would generate via its internal SQL compiler.

So for me, it was more like, am I competent enough to write less code and fewer mistakes, due to functions, autocomplete, etc. versus writing the full SQL.

It's a time saving for me, and the queries are expected. I also echo the SQL query to make sure that that's the exact query I want.

Lastly, I then groused at the engineer who decided that the query pulled in so much crap from so many tables in 1 query.

Comment · 6 years ago
Yes, but wealthy or not, the UCs limit the number of kits from high achieving schools, usually to around 50 for UCLA and UCB, as examples.

They then accept a certain number for every lower achieving school, due to the 10% requirement (is it still 10% these days?). People then game the system, with the wealthy, moving to a poorly performing school, and the child will be ranked very high in their school, so it is easy to get into the highest rated UCs.

I will also disagree that the SAT is a leveling field. The reason is that in the high achieving schools, the child is sent to private tutors and classes every single year of their lives starting in elementary school. The parents will spend $1k+/month on activities as well as academic classes. That type of knowledge seriously adds up.

For the disadvantaged, they _could_ but the steps are a lot steeper, and most don't make those steps.

Comment · 6 years ago
If it's super simple like that and the throughput isn't massive, use something else you don't need to support, like AWS's SQS.

If you're bad at hosting and need the throughput, there's cloudamqp.

So many options for pub/sub systems so use what works for you.

Comment · 6 years ago
You would think, until you get to a split brain issue. The master and failover lose connectivity, and they each then think they're the master.

There's ways to repair it (and it has happened to me one total time in 4 years), but it does happen. I personally try to make my message processing idempotent for the worker to help alleviate these situations.

Comment · 7 years ago
Data on that point? What's the comparison to new ICE production?
Comment · 7 years ago
From the article: "The score will be calculated using 15 factors, including the relative quality of the student’s high school and the crime rate and poverty level of the student’s neighborhood."

So no, it doesn't account for you to secretly discriminate against you. What it does do, for the penalization part, is that the schools that are in affluent neighborhoods have access to much better resources than ones from Compton or Watts.

To me, a kid from Compton who scores 1500 on the SAT far outweighs someone from Palo Alto High who also scores 1500 because of all the resources the latter received to be able to reach it.

Moving is orthogonal to the problem, except that the district could be brutally hard for some kids.

Also, imagine the other folks in your neighborhood who got literally everything. Driving to school in a Maserati and spending for 4 different tutors over the course of 12 years.

Who is more deserving? You, who scored 1500, or him, who scored 1500? I sure hope you don't say, "it should equal!"

Comment · 7 years ago
All that about Tesla is true. The one hope I have is the updating software. Their usb stick audio is miserable. Favorites break.

Better phone integration would be great.

Either way, the electric car experience is so much better than anything else. Maintenance on my Leaf is near nothing.

Comment · 7 years ago
It might be scary to you, but who runs Python at scale? youtube ran it for quite a long time. reddit yelp

Those sites seem mainstays to me, with good load. Perhaps performance is a problem for you for the server load and costs that you want, but it does allow you to iterate quickly to get your product out the door.

Last thing though: Checked errors. I think that's largely solved with type hinting (along the lines of TypeScript) where you get some guarantees.

Stacks of choice though for me is really Python and Go. I would use Go for when I truly need that raw speed with a lot fewer servers in Go in terms of horizontally scaling.

Comment · 8 years ago
As we have seen, the heavier vehicles do disproportionately more damage than a lighter vehicle. If you road repair, tax by a formula of weight and mileage if you must.

Having a driver if a hummer pay the same taxes based upon miles driven versus a a VW bug really doesn’t make sense when we know the stress put in the road by the hummer is substantially more.

Lastly, for LA, having a disincentive to have an emissions free car while driving just gets the air quality even worse.

Comment · 8 years ago
Progressive for federal income taxes, yes. But overall progressive, the answer is simply no.

Many places switched from part of income tax to fees. Skyrocketed increase for fees to national parks this past year. Went up 300% for a weekly pass. You apply that over and over again in many parts of your life, and it adds up.

It just simply costs more of the percentage of your income to live and because of it, it takes a bigger chunk of your income and thus isn’t progressive.

Lastly, Social Security is a kicker for the one thing that is flat out regressive. Capital gains pays zilch for it, and it stops at 127K or so of income. That tax is burdened by the middle class.

That’s chump change for the wealthy, but anyone hit by it is burdened less and less the more money they make.

And don’t tell me it’s a “fund”. That’s not how the GOP acts with it.

Comment · 8 years ago
No chance. There are lies and there are statistics. It misses the point about local taxes and fees.

If you flip it around, and ask, how much of your total income is used to pay taxes and fees for federal, state, and local taxes, the ones at the lower end will be paying a much higher percentage of their income.

There is only so much you actually have to pay for when you become rich where the folks on the lower end must pay for certain things that take a larger part of their income.

No chance it is “fair” and we know who is writing the tax laws.

Comment · 8 years ago
Molten does what I've seen in RoR land do. You decorate and document your schema. It then can spit out an OpenAPI spec, use its schema and tooling around OpenAPI.

So it becomes a choice. A decision of writing mostly OpenAPI, or writing Python via an API that is defined by someone (or a small set of people).

I'd personally rather learn OpenAPI specs as you're going to live in that world anyways, as it gives you so much tooling.

It's not hard, and you could take that yaml file and generate code for other languages in case Python's performance specifically for that API (especially it if is a microservice), runs too slowly in the real world and need a faster runtime, etc.

Comment · 8 years ago
How does this compare with Connexion?

Uses Swagger/OpenAPI that then uses convention (or fully defined) packages, and methods for REST. Runs on top of Flask, and does a lot of all of the validation all from the yaml file. Plumbing taken care for you, etc. so you can focus on business logic?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton