Better HN
topnewbestaskshowjobs
Log inSign up

awild

426 karma · joined Sep 14, 2016 (10y ago) · 187 submissions

Submissions

comment 4y ago · link · parent

Sort by lowest start, merge left when they overlap. Emit current span if not. Repeat.

comment 4y ago · link · parent

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 4y ago · link · parent

I found out yesterday that our facility management is employed with us. But we also handle seriously sensitive data.

comment 4y ago · link · parent

Have you looked at Millercsv or jq?

comment 4y ago · link · parent

Kill9 can keep ports locked for a bit after exiting which is a quite annoying

comment 4y ago · link · parent

> 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 4y ago · link · parent

Have you had a look at arrow? It has those capabilities

comment 4y ago · link · parent

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 4y ago · link · parent

I most definitely go to Italy and complain about the quality of the coffee. And I do actually appreciate bitterness in coffee.

comment 4y ago · link · parent

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 4y ago · link · parent

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 4y ago · link · parent

They also offer tanzu as on prem cluster where you can somehow use kubernetes to provision kubernetes virtualised kubernetes clusters.

comment 4y ago · link · parent

> 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 4y ago · link · parent

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 4y ago · link · parent

> 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.

comment 4y ago · link · parent

It's usually on a syntactical level, to disable reassigning a value. For objects this means the reference is still mutable, value types are locked.

Js has const, C has const, Java final.

Imho it'd be awesome if mutability were not the default and we would have to mark mutability, but until then any variable that doesn't need it, is final. Which also helps skimming code

comment 4y ago · link · parent

Ggplot is extremely powerful if you can grok its grammar, which takes some getting used to. But I'd assume that if you see a graph in a scientific paper it's made with ggplot.

Having many data points you want to explore you are always going to be at the edges of what your hardware and software can produce.

The last really big datasets I worked with were for my thesis and I had to do subsampling to below 10% to get results within 10minutes or so and that was basically plotting midi recordings of piano performances, so nothing gigantic

comment 4y ago · link · parent

I've recently got back into Card games after growing up on mtg, and there is a whole bunch of games where you don't buy random boosters but whole expansions. Netrunner/nisei being an example. They seem to still work with fomo, but you don't have to invest past a certain point to get actually creative/expressive play and deckbuilding.

comment 4y ago · link · parent

> try loading a 15GB CSV in Excel.

Or visualising it in r or pandas without meaningful subsampling.

comment 4y ago · link · parent

They are most likely more capable but Cosmopolitan which this is built upon has a different use case than just instrumentation

comment 4y ago · link · parent

Question for people who've implemented these kind of compression schemes: some of these mechanisms require local context (rle and s8b) how do you handle random access in these cases? Is the metadata embedded as a sort of key frame to which we have to advance before decoding the value? Or as a separate block in the headers?

RLE especially sounds like it could degenerate into a binary search per lookup, maybe aided by caching the bounds of the last run and assuming locality and linear-ish usage?

This might sound obvious, but wasn't mentioned in the article, you can also apply integer based compression schemes on dictionary encoded data.

And floating point values don't always need those 64bits when the use case and input data don't require that level of precision.

comment 4y ago · link · parent

I very much feel you. I have a pretty large mp3 collection that is a mix of pirated, bought or ripped from (library) CDs. I started using Spotify only a few years ago when maintaining a phone library started to get cumbersome. Geniunely hated their reccomendation algorithm.

I've discovered nts.live somewhere in 2021 and have been listening a lot to their shows. The selection of music is diverse and very obviuosly curated.

Where else would I find a podcast of lofi outsider pop that ventures from brittle shoegaze/ambient track into one of the greatest disoc/pop songs ever sung by a 10 year old girl: https://www.nts.live/shows/okonkole-y-trompa/episodes/okonko... (Around 1h40min)

comment 4y ago · link · parent

Get yourself one of those coffee dosing spoons or just a normal tablespoon. Have not had any problem with dosing.

comment 4y ago · link · parent

> The official docs basically solve your problems without much fuss, you don't have to rely on horrible vendor-specific forums.

tdodbc also comes with examples that are so far beyond the scope of a normal persons usecase, they honestly just feel like some greybeard doing the equivalent of a 10 minute long Tony Hawk combo. It's just such a pain in the butt to use, we had to fight teradata all the way till very recently.

comment 4y ago · link · parent

It depends on how complex your usecase is, but using pods and just scripting your containers' composition isn't such a hassle in podman.

comment 4y ago · link · parent

Sprinkle in some naive liberalism

comment 4y ago · link · parent

I would recommend you to read capitalist realism first. It's about 120 pages and not the most complicated essay.

The main idea of fisher is how we seem to have lost the ability to envision futures that are not basically less evil versions of capitalism. Which manifests in depression and odd melancholy of futures of the past.

comment 4y ago · link · parent

What fisher and I suppose GP is saying that a future radically different from our own. Especially one that is not inherently just window dressed capitalism. In zizeks words "it's easier to imagine the end of the world than the end of capitalism"

Without context these sound like hollow leftie catchphrases but especially Mark Fisher managed to show in many ways how this manifests in capitalist realism

comment 4y ago · link · parent

Airflow is relatively easy to set up once you have the hang of it. At its most basic it needs three containers (server, sql, executor), and your dag definitions which are very straightforward python code.

comment 4y ago · link · parent

Throw some reverb on the to be reversed recording for spooky premonitions
1234567