skysight-inc/HackerNews huggingface dataset:
To be fair, sometimes calling some giant java library or installing tons of dependencies is just not realistic. Use the library for the mission critical stuff or the automated reporting without a doubt, but it's important to be practical and thinking on your feet as well.

In the meantime for quick analysis and testing 90% + can be accomplished with one line of (g)awk.

awk -v FPAT='"[^"]*"|[^,]*' -v OFS='\t' '{$1=$1; print $0}' "$filename"

More on FPAT [here](https://www.gnu.org/software/gawk/manual/gawk.html#Splitting...)
It’s equal. Google gets to know where you’ve been, and you also get to know where you’ve been. /s
"Another aspect of Russia taking crimea is that the people living there to a large extent welcomed it"

Because those who have not welcomed Russians have disappeared.

Random link from google search:
https://www.aljazeera.com/indepth/features/2014/12/disappear...
Bacuse csv is human readable and human writeable
All the companies unproductive enough to support that sort of crap should go oob, if only the fed would stop buying thier bonds.
I used to do it a lot at a FAANG and another time for an agency, and 1 per week was often. I had a track record of good hires apparently and they still only asked me to do it once a week at most. So I think you're doing it far too often.

As for advice on how to improve it-- my best advice is to see it as talking shop with a fellow coder. Let your guard down, discuss areas you both overlap. At least half the time I would need to be extremely patient while they attempted to contribute, but it's what you do as an interviewer to attempt to coax out the best in a candidate, similar to what _ah said in their response. Sometimes they come through sometimes not, which is the point of the interview of course! Good luck, and have fun meeting some new people. I've kept in touch with some, have learned a lot from others, and seen some around the office, I always enjoyed that aspect of it as well.
That sentence must have a typo in it, right?

Wikipedia [1] doesn't list any country that does use the colon (:) as the decimal separator, so possibly the period/dot (.) as used in most English-speaking countries, was meant?

1: https://en.wikipedia.org/wiki/Decimal_separator
Sounds rather like plutocracy and corporatocracy.
Unfortunately for the risk of death idea due to the way that scales it means we should bring everyone to the point of almost certain death tomorrow to avoid one certain death right now.
I prefer to use a SQLite database. And if a customer insists on CSV then I still use a SQLite database to import and/or export the CSV without them realising it. SQLite brings sanity to CSVs.
No, they didn't wait for the right president. The past 40 years, they developed economically and technologically.

It is only since Xi became president, that China feels confident to have a more assertive foreign policy.
I noticed recently that all the API responses from Twilio have an X-Shenanigans: none header.
In the UK we outsource to the cheapest provider. More bang for the buck but it doesn't seem very holistic and appears to encourage corruption.
I have a bunch of chronic health issues and have been recommended to take Vitamin D for about 15 years or more - my brother has MS and requires it as well. We both feel like direct sun works better than the supplement but our doctors both insist we use a supplement. I do, because I listen to my doctor, but I also make sure I get outside every day. I don't "tan", I just hang out outside every day (this is easy because my son is always interested in a bike ride or whatever). In the Winter it is more difficult as I live in a more northern city in Canada but I make it work.
Perhaps the golden age was, "when you were 21".
I think a better approach is back-front-back, or front-front-back; or front-front-back and then side-to-side.
Yeah, we've never had similar issues with line-endings ;)
After one lie they have zero trust. Most likely just trying to negotiate lower prices for Microsoft licenses.
Best if it works on Windows, our Windows PCs are quite a bit more powerful.
I have done this to myself in the past. Those were....dark days.
Show HN: After 50 iterations, I finally managed to publish my website
Hey guys! I am very excited to share my portfolio :D After 2 years and about 50+ iterations I finally managed to publish my website. If you got a spare minute, check it out!
Debugging on Android
I think that stems from the fact that no software ever properly supported them, they are non-printable characters so you can't see them easily. Whereas with CSV you can fire up notepad.exe and explore the data.

Given the inability to standardise on line endings "\n" "\r\n" or "\r" I don't think we can standardise on using unit or record separators
> All dynamic languages are deeply flawed in some way, especially Ruby

That sounds pretty dogmatic itself. You don't have to like dynamic languages - but that doesn't mean they are deeply flawed. The same could be said for statically typed languages with a different set of values.
Interesting approach. I learnt Chinese in university 20 years ago, and spent a long time in China both with traditional text books (self study) and just living there... Very curious about the approach of learning characters without the pronunciation - would love to hear about how it goes in the future when the author moves on to learning words and grammar etc.

This made me think about my own process of learning and improving Chinese, wrote up a bunch of rough notes here. Might try to experiment with a few things going forwards. https://notes.reganmian.net/a--chinese
Simple Google explains why:

- non printable character
- no single keyboard key
- intended for systems, not people
- etc
As soon as it is working!
From memory (and it's probably 15 years since I read it) I seem to remember that the argument for European domination as opposed to Asian was because the European landmass favoured smaller city states. That in turn allowed them to avoid the critical mistake of the isolationist Chinese policy of the Ming dynasty right at the moment the European states were beginning to colonise.

Chinese and European technology was roughly equivalent at the time, but the huge increase in economic activity by European states associated with colonisation gave them a lead that was impossible to reverse.

And yes, the book make it extremely clear how little race had with anything.
Free course for building your business in the Digital Space
I put together everything I know about building projects in the digital space into a 10,000 word course.

It is geared towards no-code and brings you from idea through to scaling.

It's broken down into 4 lessons.

You may be familiar with some of the concepts and ideas but I think there is a bit of value in it for everyone.

You can grab it at the link attached :)
Recorded this with my 15 and 11 year old daughters (a version of The Specials' 80s classic Ghost Town) https://www.youtube.com/watch?v=9tAUlAlMFEI
I don't think it does. You have still the issue of the unhappy monster once everyone else has hit the "max" utility. You would spend all your resources on them rather than improve things for the rest of the group because they are now deemed unimprovable.
The sad thing is that this happened last year.
Cheap lazy writing would be another way to look at it.

Does any one actually think this is good? Do any good writers defend it?

I'd put it up there with canned laughter. A cheap hack. I'd prefer a world it wasn't needed because writers were good at their art.
REvil Ransomware group demand $42M or will publish dirt on Trump
The toughest thing in Google is getting in touch with a Human there. Its virtually impossible unless you know people working there. And this isn't just about scale. Take cloud services. Getting in touch with GCP customer service is a lot more difficult than other providers.
You could of course just try again if it fails due to these excessively rare cases.

There are a lot of things that fail if packets arrive out of order and with random packet loss your experience is going to be awful, so both of these are rare.
Do you have a preferred library for python for example)?

Debian packages python3-odf and https://github.com/eea/odfpy seems to still have some activity (vs the other listed).
> PHP allows incompetent programmers to create insecure websites.

The points you bring up are good but my first instinct was to distrust you as you opened with that. I don't believe any specific shortcoming of PHP makes these issues more or less likely. Anyone can make an insecure website in any language.

Secondly I don't think I quite agree with the ethics of dropping a security vulnerability in a public forum. I think you should edit this message to remove the details and go through the proper channels to get this resolved, if it is indeed still a problem.
> The same processors should be used

This is an interesting thing. I should be possible to be smarter about different timings. ARM has very mature asymmetric core support for quite some time now. Intel will soon launch their own in the mobile space.

> Gaming builds usually cannot take advantage of so many cores

Indeed. Games have long been limited in their support for multiple cores. It's a bit surprising because consumer Windows, while it took its time to be able to support multiple sockets, has been able to support them for a very long time now.
She (through her investment advisor) sold 0.6% of her portfolio. So the case against her is much weaker, if any at all.

If you were insider trading on highly sensitive information, would you sell just 0.6%?
Spot the Difference: Two Governors Reopened Their States
Yep, the same story every year, and always for the same result.
There was just a proposed amendment which would change that. But it was withdrawn. Probably because they're worried about upsetting China too much.

The current government is very pro (formal) independence. But it's a bit hard to declare China and Taiwan to be seperate when China is threatening with invasion.
There’s also value in controlling messaging in a community. You can really affect community think by controlling what messages they see.
It was not emphasized in the article, but the quotes can be both single and double.

That said, it's futile to try to write universal CSV parser. If you need to write your own, just make it possible to choose delimiter and type of quotes and call it a day. LibreOffice Calc does same.
> Nobody cares about the halting problem from a specific standpoint. If it's algebraically guaranteed to halt, it halts. When it halts is entirely meaningless for purposes of the halting problem.

Halting problem from a specific standpoint is a popular area of research. Microsoft Research in particular has been active in this area, and Windows device drivers and other kernel event handlers are analyzed to prove that they will halt in a reasonable amount of time to avoid locking up the OS.

https://www.microsoft.com/en-us/research/publication/t2-temp...
I am working on Dwata, a (planned to be) power admin that is language/framework agnostic. Works with SQL and third party APIs (Stripe, Mailchimp, etc.) and has tons of team collaboration features, things that I have seen repeatedly in my 14 years/10 startups experience.

Self-hosted and open source, but I surely want to make a living off this.

https://github.com/brainless/dwata/tree/develop

I am working on this full-time, daily. The README is a bit out of date.
Are We Spied on Online? – America's Surveillance State – EP4 – Technology Docu
With IPv6 every user gets an IPv4 internet worth of addresses for himself which makes fail2ban useless.
> What if there is non ASCII data?

> Just use utf8 right? But wait…

> What if the program reading the CSV use an encoding depending on the locale?

> A program can’t magically know what encoding a file is using. Some will use an encoding depending on the locale of the machine.

Excel (for Mac at least) is a fucking pain in this regard. Just try this minimal UTF-8 example:

tmpfile=$(mktemp /tmp/XXXXX.csv); echo '“,”' > $tmpfile; open -a 'Microsoft Excel' $tmpfile

Hooray, you successfully opened

‚Äú,‚Äù

I'm not even sure in which encoding e280 9c2c e280 9d corresponds to that (not the usual suspect cp1252, nor any code page in the cp1250 to cp1258 range; easy to confirm with iconv).

One remedy is to add a BOM (U+FEFF) to the beginning of the file, but of course no one other than Microsoft (at least in my experience) uses this weird UTF-8 with BOM encoding (which the Unicode standard recommends against), so it breaks other programs correctly decoding UTF-8.

This means I can never share a non-ASCII CSV file with non-technical people. Always have to convert to .xlsx although it's usually easier for me to generate CSV. Then .xlsx opens me up to formatting problems, like phone numbers being treated as natural numbers and automatically displayed in scientific notation... Which means ssconvert or other naive conversion tools aren't enough, I need to use a library like xlsxwriter.

I'm not sure why it's so hard to just fucking ask when you don't know which encoding to use. (Plus it's not super hard to detect UTF-8. uchardet works just fine. Plus my locale is en_US.UTF-8, maybe that's a hint.)
I'd expect they would also ensure the Evil bit was set to 0. https://tools.ietf.org/html/rfc3514
Just today I needed to write a .csv file in Python on Windows and got a file with CR CR LF line endings by default (\r\r\n). That was using the standard 'import csv' in Python 3.
I don't really get the utility of HIBP. The answer to the "have I been pawned?" question is, of course, yes, multiple times. I think about the only way to keep your email out of the hands of the bad guys is to not use it or give it to anyone ever, at which point you don't need an email address.

What am I supposed to do whenever I'm involved in a new breach? Burn all my accounts and start again?
Why social trust is a bad way to decide lockdown measures
Show HN: inlets (2.7.3) Cloud Native Tunnel released with security features
I see
I’m currently programming mostly in python at my day job do you any good resources i could consume to gain more knowledge on OSes
> simply moving ssh off of port 22 cuts your drive-by log noise by 99.9%, which makes auditing clean logs much much easier.

Is there a reason you can't use some form of IP whitelisting?

I'm not a proper sysadmin, but when I play about on EC2 I always configure the security-group to block incoming connections to TCP port 22 except from whitelisted IPs.

The only time I've had to broaden the whitelist beyond just a few static IPs, is with mobile Internet tethering. They seem to frequently change my IP, so I guessed at my provider's IP range and whitelisted it with a pretty broad wildcard mask. Still much better than accepting connections from any old address.

I can see that my rather simple approach might not scale very nicely.
You don't get anyone hit 0 or 1. (Compare with probabilities predicted by a sigmoid - it never reaches 0 or 1.)
I may have misinterpreted utilitarianism, but I thought it was egalitarian because everyone's utility values were the same. Am I wrong?

Meaning the utility value of a cookie is the same for everyone, and the utility value of your first $100 is the same for everyone, and the utility value of anyone's second $100 is lesser than the first, etc, etc.

Obviously someone thought this Utility Monster idea warranted a wikipedia entry, so I assume there's some point in it, but it does nothing to break my head canon of what utilitarianism is.
It'd be hard to be more than 0.01 Tutankhamuns. That dude had rooms full of crap. E.g. https://kingtutone.com/tutankhamun/information/
It shows that other explanations are sufficient and make much more sense. But it's a historical explanation, not a double blind experiment.

Nothing will ever disprove "scientific racism" to people who are racist unfortunately.
Five Years of Rust
'Cat and mouse game': how Citizen Lab shone a spotlight on Israeli spyware firm
Haha oh dear, that was an unfortunate typo :|
You do realise that you are infringing on the registered mark of the Open Source Initiative https://opensource.org/logo-usage-guidelines
Working on Loc.Tax which is a collaborative tax project management platform based on Git.

We're going to build a platform for version-controlled legal, financial, and tax data.

https://loc.tax
nope. They passed an amendment exempting Senators from the FBI's no-warrant-needed web browsing snooping this week.

One law for the law-makers and one law for everyone else.
> I am willing to argue with facts but you just added another non-factual opinion to the pile.

I'm not interested in arguing with someone who doesn't respect others opinions, nor did I make baseless claims: I cited resources.

> ...Oh, and a Mario game implementation says nothing about the typical production uses of a language and its stack.

It's true, the mario runthrough was in pure ruby and not rails, and that rails has a slower performance vs. Ruby + Sinatra.
> Race based slavery began under capitalism?

As best as I can tell, it happened within the past 800 years or so.

> Didn’t slaves build the pyramids? Was there capitalism then?

Nobody really knows. But certainly it wasn't race based slaves. There is a difference between old world slavery - I conquer you and you become slaves regardless of race vs you are slaves because you are black, asian, native, etc. Tragically, slavery was common in the past but it was "race-blind".

> Have you read Sapiens by Harari?

I watched his talks - which are interesting, but like all mass produced "pop" history, it's really not that accurate.

> It touches on the fact that the Neanderthals and other species of humans died out ... perhaps due to genocide perpetrated by Homo sapiens, prior to the advent of capitalism by any measure.

Sure, they died out most likely due to being outcompeted. But once again, being outcompeted for resources is different than modern extermination campaigns where one was simply killed for being native, aborigine, jewish, etc. Where even without any competition for resources, the native americans, aborigines, jews, etc were killed simply for being native american, aborigines, jews, etc.
HNBooks: “Astrophysics for People in a Hurry” by Neil DeGrasse Tyson
This is not a joke: Read the Intel manual, maybe check out some of the learning repos on github that solves all the glue-stuff that isn't important. I have one such repo here:

https://github.com/fwsGonzo/barebones
So is tsv, but for some reason csv is more popular despite being the worst character to use.
I can't move my pinky independently of my ring finger, so I can't do a unique 7 and 9.
Second this, more often than not
Possibly?

https://outage.report/skype
That is correct. Plus limited satellite uplinks. The undersea cable connectivity especially in East Aftica sucks. I have the feeling the primary reason why these cables exist is because they connect South Africa to the huge cables between Europe and East Asia.
Utilitarianism is incompatible with Morals.

I'm no bible-thumper but I think the man from Galilee had a GOOD point or two.
Open document standards are a great place to start. Any standard format needs to have multiple possible vendors. And I agree it goes further than just document formats. This goes for all important formats, including how software interacts with the operating system.

There needs to be other vendors who can supply document editing software that is 100% compatible with MS Office. But more than this, there needs to be other vendors who can supply operating systems that are capable of running Windows software.

As long as a single company has the leverage that Microsoft has over the enterprise ecosystem we won't have a free market. Governments can start by mandating that new software deployments have several possible vendors, including at the operating system level.
> Hooray, you successfully opened

> ‚Äú,‚Äù

> I'm not even sure in which encoding e280 9c2c e280 9d corresponds to that

That'll be MacRoman (not very surprisingly).

https://en.wikipedia.org/wiki/Mac_OS_Roman
That must be a thing. I have a sister and a son, same way.
For me, this only works when I start drawing balls. When I start with the tip or the shaft, all I get is wild doodling.
Ant collective cognition enables efficient navigation in disordered environments
N.B. Floats won't rountdrip by default (you need to call `read_csv(..., float_format="round_trip")`)
Disagree.

Data.table’s fread is leagues ahead of pandas.

https://www.rdocumentation.org/packages/data.table/versions/...

Fread has automatic footer detection and has automatic skip logic to help parse out mangled headers in some csvs.
The Future of Remote Work Is Not That Remote
You don't say, someone sent a CSV like that to me yesterday...
Agile Scrum is not working
>>> Getting used to something else will meet some resistance.

It's too gentle to say that users are struggling or resisting.

The fact on the ground is that a significant part of users are simply incapable of learning new computer software, they can't even use effectively the software they've been working on for years. This is glaring in a giant government organization with tens of thousands of employees. Thus any attempt to move OS is doomed to fail.

Classic example is the popup when closing a word document. "Do you want to save the document before exiting? Save/Quit/Cancel". The typical user clicks the little red cross in the top right corner of the dialog.
The Future of Air Travel ‘Will Be as Enjoyable as Open-Heart Surgery’
>> NVIDIA's main competitive advantage over AMD and Intel is its software stack. AMD could release a 2x powerful GPGPU tomorrow for half the price and most current NVIDIA users wouldn't care because what good is that if you can't program it?

I always wonder why it is so hard for AMD to develop a true competitor to CUDA, but for AMD hardware? Not try to solve GPGPU programming through open standards like OpenCL, just copy the concept of CUDA wholesale. They could still build it on top of LLVM etc and release the whole thing as open-source, but have the freedom to not have to deal with design-by-committee frameworks like OpenCL, so they can ensure focus on GPU programming and nothing else, and only on those platforms where the majority of the demand is. There is not much wrong with OpenCL, it's just not nearly as good/capable/easy-to-use as CUDA if all you are interested in is GPGPU programming.

AMD is a big company with a lot of revenue, especially recently, so why would it be so hard to have a team working full-time on creating a direct CUDA knock-off ASAP?
Year ago I remember learning about appliance stores who advertise "lowest prices guaranteed!"

More specifically, if you can find another place which sells the same model for less, then you get it for the other price.

Thing is, they are the only seller of that model. The vendor has a model X123 for that shop, a model X124 for another place, etc. And that shop is the only one who can sell that specific model. So they of course have the lowest price.

Something similar exists for software: that's why there's "home" and "office" and "professional" and "enterprise" and so many other variants.

So, your "home" version only supports 2 connections at a time, your "office" one doesn't implement a certain function that "professionals" are more likely to use, and your "enterprise" defaults to logging. Even better, with software you can have a unique product for each sale.

All different pieces of software, so all different prices.

Then on top of that, you don't sell the software but software + support. And the support costs can vary.

Which means I think it's easy to bypass your hypothetical restriction.
Wow, thanks, I've never used the notification alert service since I use a custom email for every site I sign up.

That's cool, thanks!
Easy: CSVs are human readable and writeable and humans tend to have a comma sign on their keyboard, while they don't have the ASCII record seperator visible (teaching them to use eg Alt + 30 will not work).

And if they had that key on their keyboard then you'd have the comma problems all over again: What if a ASCII record seperator shows up in the field?