Recent submissions

Comment · 4 years ago
Sort by lowest start, merge left when they overlap. Emit current span if not. Repeat.
Comment · 4 years ago
It's not a US thing and not even necessarily related to being bullied in school. Lots of parents scold their children for being into useless or eclectic hobbies.
Comment · 4 years ago
I found out yesterday that our facility management is employed with us. But we also handle seriously sensitive data.
Comment · 4 years ago
Have you looked at Millercsv or jq?
Comment · 4 years ago
Kill9 can keep ports locked for a bit after exiting which is a quite annoying
Comment · 4 years ago
> To change a person's behavior. If someone keeps lying, cheating, and stealing in society, we want to make them to stop so that they can reintegrate and become a beneficial member of society.

I think a common criticism of this stance is, that it does not ask why a person does something that others want to punish. Obviously there sometimes are no answers, but often it's poverty and lack of options. So this begs the question, why people come to steal and murder etc.

I personally don't believe that "punishment" is usually well invested in a person. Rehabilitation and support structures are probably the better option.

I am also realising that it gets very interesting for white collar crime "without a victim" such as tax evasion or manipulation of stocks. My intuition is to punish exactly these crimes, but I think that's my bias showing.

Comment · 4 years ago
Have you had a look at arrow? It has those capabilities
Comment · 4 years ago
I try to encourage newcomers to refractor the code into a form they understand, fix the problem and then undo that refactoring as much as possible. If they actually come up with a better abstraction I'm up for it.

Refactoring will give them the chance to see what the actually moving parts of code are.

Comment · 4 years ago
I most definitely go to Italy and complain about the quality of the coffee. And I do actually appreciate bitterness in coffee.
Comment · 4 years ago
Sorry, but the modern form of DIPA most definitely is one of the most accessible forms of craft beer. They usually aim for low to no kettle hops, only whirpool and high levels of rx hopping. Fermentation, mash and grist all serve to make the beer sweet. The end result: a beer low in bitterness, silky, extremely sweet (these beers can finish above 1.030) with intense fruity notes.
Comment · 4 years ago
This looks really neat. Haven't taken much time to look in depth, it it took me a while to find info on whether this was k8s or podman related. Maybe the docs could make it a little more obvious. (for those wondering it's k8s)

Would mirrord actually work with podman? It would be pretty neat to setup something akin to a canary deployment

Comment · 4 years ago
They also offer tanzu as on prem cluster where you can somehow use kubernetes to provision kubernetes virtualised kubernetes clusters.
Comment · 4 years ago
> Even with a few DAGs, Airflow will spike the CPU utilization of the VM to 100% for X minutes (in my case about 15 minutes) which is quite interesting. My tasks basically query SQL Server -> dump to CSV (stored on GCS) -> import to BQ.

Have you checked why that is? Airflow does Reimport every few seconds. We've had an issue where it didn't honor the airflowignore file making it execute our tests everx few seconds. The easy solution was to put them into the docker ignore.

You might also be having too much logic in your root levels. It's recommended to not even import at root level to make importing faster.

Not saying it's not an odd tool though.

Comment · 4 years ago
Especially since its not really a language safety feature. As a reader of code I much prefer knowing what I need to pay much attention and what not. As a writer I want to be reminded when I promised myself to not touch a variable.
Comment · 4 years ago
> If they decided one day that - "let's make immutable by default", then it'd be performance hit - wouldn't it?

Not really. It's just a syntactic default, reassigning local variables should be discouraged from except for iterators etc. It just fosters bad habits.

For example, A list can still be mutated like usual, the reference however may not change. This usually allows compilers to do optimizations in multithreaded situations. But that's not why I code that way, it reduces the cognitive burden of keeping track which variables are actual moving parts as opposed to context/names etc.

> C# has readonly and const

Haven't written C# in a few years, GP was talking about variables as far as I can tell and their lack of immutability.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton