Better HN
topnewbestaskshowjobs
Log inSign up

version_five

21,081 karma · joined Apr 27, 2021 (5y ago) · 5,986 submissions

Submissions

comment 3y ago · link · parent

> tricky

Yes I'd say awk is unsuitable for csv files that can contain text fields with arbitrary text, that includes commas, newlines, quotes etc.

It gets hackier and becomes the wrong tool as the number of edge cases to handle increases.

comment 3y ago · link · parent

Looks like he copy pasted the python version from another forum post, and didn't look at it carefully. I'd suspect it can be made to look a lot cleaner (edit, yes, e.g. by just translating each of the main lines in the awk script to an if statement) I agree with the strawman comment.

comment 3y ago · link · parent

  silver searcher
Thanks for the reminder, I knew something like this existed but I couldn't remember what it was called!

comment 3y ago · link · parent

I'm glad you mention that because I forgot something: I try and stick with only stuff I can find on most computers in order to minimize dependencies. That's a big advantage imo of learning how to use awk and tr for basic data analysis, for example. You can ssh into any server and work without installing anything.

comment 3y ago · link · parent

If I have a text file of csv that I need to do something with, I'll usually start with a shell script and coreutils + sed and awk.

If I need a script to generate some output (a regular use case that seems to come up for me is random numbers with some property), I tend to use python.

I also use python if I need to do more complicated aggregations or something on tabular data that pandas is better at. Though it's fun to try with `join` and awk sometimes (parsing csv can get tricky).

If I need to plot something I tend to use jupyter notebook but it's way more satisfying to use gnuplot, which I mention because it fits naturally into workflows that use shell tools like awk.

comment 3y ago · link · parent

Lol, from how I understand you post I feel like it could be a comedy skit about a Welsh guy going to the coastal US and acting normally, like telling drinking stories, while the sheltered people around him are horrified.

comment 3y ago · link · parent

One could think about it as consulting, but productized, on top of a service. Something like AWS is mind numbingly complicated. Amazon has solutions engineers but there's also a big 3rd party market. And some part of that market doesn't need fully bespoke solutions but can be well served by a SaaS that sits on top (of course entailing risk, but it's all risky).

OpenAI isn't there yet, personally I'm bearish on generative AI and openAIs dominance, but they're the major player, and there's a version of the future where they dominate the landscape with a complex enterprise offering like AWS that leaves room for intermediaries. So it's not a bad idea to include bets on people who are building these intermediary products as part of a vc portfolio.

comment 3y ago · link · parent

I must have misunderstood your post then, sorry. Edited now.

comment 3y ago · link · parent

Do you have anything to say about the article?

comment 3y ago · link · parent

To be fair, there are companies based on providing metrics for AWS, e.g. Vantage, so it's not surprising to see VCs making bets in this area

comment 3y ago · link · parent

This (my post) doesn't seem to be getting much traction. I'm really surprised there is so much ideology in the python community that this is tenable. Unless I'm missing something this is not to comply with local laws, it's just some insane idea that they've taken upon themselves to impose. More people should be concerned about this. Python is pretty important, and if there's this kind of ideology in the community, it should be a serious concern for everyone interested in free software. Would you go to a conference that you had to be baptized to attend? Or want to make serious use of a software that required that of its community?

Edit: and now it's killed. Normally I understand why posts get killed, even if I prefer they didn't. In this case I don't agree with it, I believe this is a pretty important issue for anyone interested in free software. Hopefully some will still see the dead post, and I encourage people to repost so this gets some attention.

comment 3y ago · link · parent

A cool mission

comment 3y ago · link · parent

  I've poured over ((ok, grepped) ~500GB of Chroincling America data to find lines that meet my low standard for nonsene, basically ones that match egrep "[^a-zA-Z0-9 ]{3,}"
I'm super curious to know fast this was. grep is generally very fast and this should be doable on a normal computer, though it might take a little while

comment 3y ago · link · parent

  It honestly does feel like they have magic screen powers to influence your brain. You'd likely understand what I'm talking about if you'd ever owned one. 
Also anecdotally, my (infant) son is absolutely mesmerized by the sight of a phone screen. I don't let him see it generally, but if he casually spots a screen, it's like it's the only thing in the world.

comment 3y ago · link · parent

Some of the blame should rest with researchers, and referees of their work. I agree with the authors here, but I also think it's a poor choice to base your research on a closed model, and for reviewers not to accept research that has a dependency like this. How did it become standard academic practice to work with something like this that you cannot interrogate.

comment 3y ago · link · parent

Or TLC as the learning channel or History channel (assuming these still exist).

There are also lots of "Open Government" initiatives that end up being about making everything as opaque and confusing as possible. There were (are?) popular in the "big data" era, though funnily enough, if you watch "Yes Minister!" from ~40 years ago, there is a similar gag about "open government" in the first few episodes, so it's not new.

See of course Orwell, "we care about your privacy" banners, etc. People like to lie as blatantly as possible.

comment 3y ago · link · parent

Is this good PR for the VPN company? Aren't they admitting they snoop on what userd are doing? Isn't that undesirable in a VPN?

"Use our vpn! We record when you're watching porn!"

1998.

Eco-dread is a luxury belief we can no longer afford(nationalpost.com ↗)

2 points · by version_five · 3y ago · 1 comment

comment 3y ago · link · parent

It would only be plagiarizing if you took the content and presented it somewhere as your own without attribution.

What they are doing is bypassing a paywall, which should clearly be the point of the links. You can decide if you have an ethical problem with that.

comment 3y ago · link · parent

Ironic in the context of their recent article https://www.nature.com/articles/d41586-023-00799-3

  Political endorsements can affect scientific credibility
  In 2020, Nature endorsed Joe Biden in the US presidential election. A survey finds that viewing the endorsement did not change people’s views of the candidates, but caused some to lose confidence in Nature and in US scientists generally.
A good reminder of what's wrong with modern politics. People think their political causes are so important that they trump civil behavior in any sphere, ie staying neutral when operating in what should be an apolitical sphere. Like that idiot from expensify.

2001.

Pycon 2023 requires vaccine verification(us.pycon.org ↗)

5 points · by version_five · 3y ago · 4 comments

comment 3y ago · link · parent

Open chatgpt alternatives were discussed recently (link below). Consensus is they are not as good, but hopefully increased interest will change that same as happened with stable diffusion. It's unfortunate that llama got all the attention because it's not an open model, just leaked, and now it's far and away the most popular "available" model and has the most supporting applications.

https://news.ycombinator.com/item?id=35243435

1
666768
200