HNHacker News
TopNewBestAskShowJobs

Hasnep

897 karma · joined August 31, 2019

website: https://www.ha.nnes.dev contact: h[at]nnes.dev github: hasnep
submissionscomments
Hasnep··on Show HN: Ultra fast Terraform plan and state parser written in Rust
My understanding is that this project just parses the output of a successful terraform plan, it doesn't parse .tf files or generate a plan.
Hasnep··on Dagger: a new way to build CI/CD pipelines
To clarify, this post is unrelated to Dagger.jl which is a parallel computing package for Julia.
Hasnep··on “World’s best” Guitar Hero player was a cheat
It's not considered cheating because music is not a competition.
Hasnep··on ReVanced
YouTube premium isn't available in all countries yet, although it's in way more countries than it was s few years ago
Hasnep··on One Year with R
I used to use DataFramesMeta.jl, but eventually I found that the mini-DSL that DataFrames.jl has created is really powerful and not overly verbose. Now, going back to the Tidyverse's syntax makes me feel a little uneasy, like there's just too much magic going on behind the scenes, even though I used it for years with no problems.
Hasnep··on One Year with R
A Julia solution with Chain and Gadfly might look something like this, although I've translated the R fairly directly so it might not be very idiomatic.

    import CSV
    using Chain: @chain
    using DataFrames
    import Downloads
    using Gadfly
    using Dates

    @chain begin
        Downloads.download(
            "https://api.coronavirus.data.gov.uk/v2/data?areaType=overview&metric=covidOccupiedMVBeds&metric=newAdmissions&metric=newCasesBySpecimenDate&metric=newDeaths28DaysByDeathDate&metric=newPeopleReceivingFirstDose&format=csv",
        )
        CSV.File
        DataFrame
        stack(
            [:newCasesBySpecimenDate, :covidOccupiedMVBeds, :newAdmissions, :newDeaths28DaysByDeathDate];
            variable_name = :Data,
        )
        transform(
            :Data =>
                (
                    x -> replace(
                        x,
                        "newCasesBySpecimenDate" => "NewCases",
                        "newAdmissions" => "Admissions",
                        "newDeaths28DaysByDeathDate" => "Deaths",
                        "covidOccupiedMVBeds" => "Ventilated",
                    )
                ) => :Data,
        )
        subset(:value => ByRow(!ismissing)) # Can't plot Geom.smooth with missings
        plot(
            _,
            x = :date,
            y = :value,
            colour = :Data,
            layer(Geom.smooth(method = :loess, smoothing = 0.1)),
            layer(Geom.point),
            Scale.y_log10(),
            Guide.xlabel("Date"),
            Guide.ylabel("Daily rate"),
            Guide.xlabel("Angle"),
            Guide.colorkey(title = "UK COVID-19"),
        )
    end
Hasnep··on Lifting heavy bricks to store renewable energy
The energy vault is a dumb idea, here's why

https://youtu.be/iGGOjD_OtAM

Hasnep··on Josh Wardle created Wordle as part of an ongoing quest to design online spaces
Game concepts generally can't be copyrighted, in the US at least. From Wikipedia [1]: > gameplay elements of a video game are generally ineligible for copyright

[1] https://en.wikipedia.org/wiki/Intellectual_property_protecti...

Hasnep··on Podman can transfer container images without a registry
Could you explain more about this? I can't seem to find anything online about it
Hasnep··on Mojang to Require a Microsoft Account to Play Minecraft
To clarify, the original Java version of Minecraft is essentially the same game with more gameplay features, the Bedrock version is the one with the microtransactions. Plus, the Java launcher lets you use any version going back more than a decade, so if you're not happy with the new features you can just pretend they never happened like some parts of the modded community do with versions after 1.7.10.
Hasnep··on Ask HN: I realise data science is not for me and feel depressed
I studied maths too, then spent 2 years in a data science role and in the last few months moved to data engineering which has aspects of both DS and SE and turned out to be what I wanted to do all along.
Hasnep··on Ask HN: Why is there no small Android phone?
If you're willing to increase the screen size to 5.6 inches you can get the Pixel 3a, although it's not actually a small phone, it just feels like one in comparison to everything else.
Hasnep··on Telegram now censoring channels in Germany for “violating local laws”
If you're referring to the recent books like Maus being removed from the school curriculum in America, they were banned for things like containing nudity and rude words. From what I can tell from the auto-translated version of the article, these Telegram posts were removed in Germany for breaking German law. Whether you think the German law is correct is a different issue.
Hasnep··on Polars: Fast DataFrame library for Rust and Python
Yeah, I agree it's not a good name. I think using the word macro instead of meta is more useful to the user, something like DataFramesMacros.jl.
Hasnep··on Overview of alternative open source front-ends for popular internet platforms
> At most they might ask GitHub to close the repo

There are also reports of Instagram accounts being banned for using Barinsta.

Hasnep··on Ask HN: I'm tired of intense code review cycles
Eslint is a linter, the most common formatter for JS that I've seen is Prettier.
Hasnep··on Which programming language or compiler is faster
In addition to the other replies, the comparatively long startup time makes it unsuitable for short scripts, and with a few dependencies it becomes unsuitable for even medium length programs. The startup time is always coming down and there are ways to compile dependencies ahead of time though. The JIT compilation can be annoying for real-time applications too.
Hasnep··on Polars: Fast DataFrame library for Rust and Python
The convention in Julia is that a package that defines a type Abc is called Abcs.jl. Also, DataFrames.jl provides its own manipulation functions which DataFramesMeta is a wrapper around using metaprogramming, hence the name.
Hasnep··on Internet uptake has accelerated during the pandemic
I would guess that poverty is a bigger factor than generational difference globally. The rate of internet use in America is about 90%, so it looks like a wide variety of ages will use the internet if given the opportunity.
Hasnep··on SpotifyWrapped: Spotify Turned User Listening Stats to a Free Ad Campaign
Last.fm should let you collect statistics from most streaming services throughout the year.
Hasnep··on Books.jl: Create Books with Julia
It looks more like bookdown for Julia
Hasnep··on The metaverse is already here – it's Minecraft
I wouldn't say "for all practical purposes" because one of the practical parts of open source software is the open source licence. It's more like a "source available" project, and only once you've bought it which seems fair enough to me. I'm sure it makes modding much easier which I'm grateful for.
Hasnep··on Node.js was vulnerable to a novel HTTP request smuggling technique
Why's that confusing?
Hasnep··on Ubuntu 21.10
I don't think Ubuntu defaults to btrfs.
Hasnep··on Almost All of Facebook’s Top Christian Pages in 2019 Run by Foreign Troll Farms
Because Relevant is a Christian magazine.
Hasnep··on Our fridge just emailed us to say we opened its door too many times
He explains that his landlord bought the fridge and he has kids who are opening the fridge a lot.
Hasnep··on What the Heck Happened to Rollerblading? (2017)
Not the person you're replying to but my advice would be to first make sure you know what type of skating you're going to be doing, because city skating/freeskating has different needs to fitness skating.

If you're looking at freeskates then you can't really go wrong with FRs, Rollerblade's RB series or maybe some Powerslide skates. Just check how wide your feet are because they can fit very differently, even within the same brand the RB skates are quite wide and Twister Edge skates are narrow.

Ideally try them on and get a feel for what's most comfortable for you, you can swap out the frames and wheels for something better later on, and usually the liner too.

Hasnep··on How did American “wokeness” jump from elite schools to everyday life?
I guess that if you speak Chinese as a first language you're not expecting to need to distinguish between 他 and 她when speaking, so it's harder to remember when speaking a language that has two different pronunciations.

I believe older Chinese used 他as a fever neutral pronoun and using 她 is a fairly recent change to mimic western languages.

Hasnep··on Time to retire the CSV?
The other key difference is instead of having complex quoting rules, TSV just disallows the tab character in the data.
Hasnep··on Amazon will monitor workers' keystrokes to 'combat data theft'
Capitalism?
← PreviousPage 9 of 11Next →