skysight-inc/HackerNews huggingface dataset:
> Free speech is not part of the cultural or political history of China, as it is in the West.

This is not at all unique to Chinese culture - It is and has been the universal argument of dictators and oppressors worldwide. Putin uses it in Russia these days.

The claim is belied by Taiwan and Hong Kong, two indisputably Chinese places where free speech is highly valued. The idea that it's a Western value at all is belied by places like Japan, South Korea, Brazil, South Africa, Turkey (until recently) and endless more nations and cultures. Protestors in Iran and throughout the Mideast and into N. Africa in the Arab Spring risked (and many paid with) their lives for it. And very rarely does anyone with a choice vote to be rid of it.

It's widely considered a universal human value, and I think the evidence is overwhelming in support of that.
Actually this much is quite reasonable.

Unreasonable cultural relativism would be something like, pretending that child sacrifice is ok.

There's no reason to believe that absolute privacy and absolute freedom are universal objective moral values.
>corporations must not be the ones deciding which laws are applicable where.

This is literally restating this:

>the lack of political freedom in China is tolerable because that's just how Chinese culture is

Who decides when and where it is okay to disobey laws that restrict freedom/privacy? If not the modern day multi-nation states of corporations, who? Serfs?
What is "blogspam"? New to HN, and trying to maintain good posting etiquette. I posted the same link from sapiens.org a while back.
Delphi 10.2 was advertised to support making Linux web services, so I decided to put it to test. I created a Windows Apache module, added a Linux 64bit target, added a data provider and a database connection. The idea is to provide the database as a soap service on Linux to get a quick and cheap(!) Data layer.

The provider plays nicely with the client dataset and let's you interact with UI elements, sending automatic updates to the database through the soap service.

So when I switched to the Linux build, I noticed that data provider component in the components toolbar was disabled. That means it isn't supported on Linux.

Tricking the IDE with a Windows project, placing the provider in a data module and switching it to Linux target, I tried to get it to work on Apache. No response from soap.

After a couple of hours of eyeballing and recompiling the provided Delphi sources, I realized that the support is actually there, but there were some programming errors such as not implementing the entire interface, and somehow the memory manager behaved weirdly on Linux, causing another interface to go nil while refcount still didn't reach zero.

All in all, Delphi makes it easy to build Windows applications, complete with data layers and Model-view style. I just wish they would hurry up with the Linux server support.
Don't forget actually buying all the machines to begin with.
>get sued by their shareholders for breach of fiduciary duty

This canard is never an inviolate rule on how large corporations act. Each company acts differently in regards to so-called "fiduciary duty." Not all must maximize all opportunity to make money by sacrificing everything.
I cut my teeth on Visual Basic 6 and Delphi 7 back in the day, and always liked Delphi more for some reason...
Hey, I'm the founder of interviewing.io. We're coming out of private beta soon, which means we'll be sending out invites to folks on the waiting list shortly. A year is a long time though, and I'm sorry you had to wait that long, so I figured least I could do was kick you an invite (check your email). Thanks for being patient with us while we figured things out.
Not GP, but I've had 4 removed and it wasn't painful (under local anaesthetics). Just really uncomfortable, especially when you hear and _feel_ the crunch of a tooth being uprooted.
Apple never challenged actual law. To quote the article:

> [Timothy D. Cook] made clear that Apple would obey American law — but only after trying to shape the law.

In the case of China here, the law was already passed. Apple is just conforming to the law.
I like this thread. My people are here.
I interviewed at Microsoft in 1990 for a software test position and no one asked me a puzzle question so it had already gone out of style by then at least for my interviewers. They asked me a couple of questions that I recently recognized on the leetcode interview questions list in the easy section.
I did the laundromat thing for four years in grad school, then ten years in various units with in-house washer and dryer, and then back to a laundromat for the last six years. It was undeniably convenient to be able to wash something on a moment's notice or at night or whatever, but I have to say I really like the fact that for a 2-3 hour investment of time every 3-4 weeks, I can get my laundry all done, at once, because the laundromat lets me work massively in parallel. And because I'm running it all in parallel, I can sort the loads differently for wash and dry: for washing, sort by colour, and for drying, by fabric delicacy (jeans can take high heat, anything with elastic stays on medium or low, etc etc). My landlord has said it's fine for me to buy a washer/dryer (there is a hookup in the basement) but I've found I'm really not in any rush to do so.
Communicating outage notifications?
I had the same thing. There is little to no pain in the extraction, at least there was not for me. My wisdom teeth were quite big so I was completely sedated for the procedure itself. Followed by a few days of ice packs, lots of gauze in my cheeks, and nothing but milkshakes for meals and I was back at school and happy as a clam.
If you hire by checklist then yes. Otherwise, I would expect any competent programmer to be able to grasp Delphi.
> Is McDonald's?

I see McDonalds integrating Giphy into a larger ad campaign. Let's say they launch a campaign around happy moments with family. That gives them scope to includes moments from the TV or cinema spots as featured results when someone searches for a happy or family gif, which the user is more likely to do because they're aware of the campaign. That user then shares the campaign to friends on social media who may not be television watchers.

Or consider the next Minions movie. They just animate and render a bunch of Minions acting out the top Giphy search terms (subtly tagged 'Despicable Me 4'), and suddenly the movie is being organically promoted by thousands of users.
You ever been working with a JSON response, a CSV file, or a SQL query and you're just flipping between the data and your text editor, mapping each field into your model type? Type Providers automate that mapping so that you can "teach" your code the structure of that data and work with it without having to write the boilerplate.
Even if you think you are recycling it, it might be going to the landfill anyway. Only a few plastics, also aluminium and cardboard, are profitably recyclable. In some areas all the rest just goes to the landfill.
> So pretending that the privacy issue is one of "morality"

You lost me there. Privacy is a human right. Would Apple be silent if China tortured gay people, too, because of "cultural differences" and just because it's trying to add an extra billion dollar to its balance sheet?

Now I can understand the argument that as a for-profit corporation Apple is "neutral" to the laws in various countries. But to take it much further say that privacy is not important - well, that's where I disagree completely. Some countries care about respecting human rights, others don't. That doesn't mean human rights are not important because some large economic powers don't respect them. Otherwise the US may have never abolished slavery either, if it was "all the same" and human rights didn't matter or were "relative" from the viewer's perspective.
Alternately they presort everything like my old city did. Same trucks would pick up both cans.
This dentist Dr. Palmer (who died a few years back) had a theory that breastfeeding is of crucial importance in shaping the jaw, http://www.brianpalmerdds.com/summary.htm though I’ve seen some theorizing elsewhere that nutrient deficiency might also be a cause (in addition to the theory from TFA about chewing hard foods).
I'm by no means a networking professional, so maybe take this with a grain of salt, but no, your only two options are to handle the traffic or not. At low DDOS level you can offload certain traffic like dropping packets from certain IPs before your web layer gets to deeper inspection, but if there is enough traffic to overwhelm your layer 3 devices, you'll drop packets on the floor.

Alternatively you can usually let Akamai or similar advertise your IPs, and let them help with the load, but ultimately that's just distributing traffic to more devices so you can still check IPs against a blacklist.

Since we're talking about the availability aspect of security, there is hopefully no obscurity involved (confidentiality on the other hand is nothing but obscurity). And really, an obscurity technique like using alternate ports won't even help you much because that still hits your firewall and requires processing on each packet.
> I could have answered the question easily but what for?

To show that you're not a complete diva who's willing to put in some work even if it's unpleasant?

The question I ask is not real, either. It's entirely contrived. But I ask it because it's the best way I know to identify candidates who:

1. Can think critically about a data structure.
2. Can communicate with me about how to solve non-trivial problems.
3. Can translate an idea into code without thinking about it too hard.

Given lots of time there are much better ways to test a engineer for these attributes. Given an hour it's about the best I can do. That's not to say everyone who asks these types of questions does it well (I think there's a fair bit of cargo-culting around "The Google Interview") but if you're unwilling to even humour me I think walking out is the best response for both parties.
I wouldn't be surprised if they count someone who even views their gifs as a user. I guess at a $3 CPM they could make a buck off me in a year.
> if HN ever tried to do a major re-design,

I'd love it if they did. I find its minimalism too extreme, and the way they hyperlink unintuitive,
In Brussels they're absolutely everywhere. This page lists 42, and I'm not sure it's complete: https://www.hours.be/brussels/brussels/laundromats
Every change is a release if you squint right.
For the simple option of length, depending on what you've been working in you might be thinking of len, length, .length, strlen, sizeof, and undoubtedly many other variations of the same thing. Things that may come seamlessly and automatically when you're in the flow of actually coding in language X may be very difficult to choose between while standing at a whiteboard in a conference room
The pixel size isn't what determines if occlusion happens.

The planet and the star can both be much smaller than a pixel, as long as the planet is big enough to cover the star.
Cynicism is an underrated and much maligned virtue IMOP.
I've never used F#, so I might get this completely wrong, but I think they are a practical form of dependently typed programming: a type provider builds new types that depend on values in your program. If you have some sort of schema for data, a type provider could parse it and build appropriate types to hold data that conforms to the schema. A type provider for a database, say, could take a string that specifies a database connection, connect to the database, and then query it to figure out what sorts of tables it holds and then construct F# types capable of holding a record from one of the tables.
Apple has been using privacy as a marketing tool. But apparently it will go no further than that. Privacy seems to be useful to Apple only if it can be used as a marketing tool, otherwise it's discarded as fast as some "offensive app" in the app store.
Have you tried the Delphi compatible but open source https://www.lazarus-ide.org/
Why upgrade Concurrent map cache to Redis?
OmniPlan Pro 3.6.2 Cracked Serial for Mac OS Sierra Full Download
Piss off one early adopter power user to bring in a hundred casuals. You've served your purpose.
Does anyone use the Open Source Lazarus IDE?

https://en.wikipedia.org/wiki/Lazarus_(IDE)

It has Object Pascal and a RAD setup.
Basyesian Regret calculations show Range Voting to be superior, even when accounting for your objections.

http://scorevoting.net/BayRegsFig.html

There's even a theorem that it tends to elect Condorcet winners under plausible models of voter strategy.

http://scorevoting.net/AppCW

Believe me, its advocates have heard every criticism you can imagine, and the counter-argument is robust. I recommend you check out the book "Gaming the Vote".
I love Anscombe's quartet.
The article is really well written and has amazing design, but honestly does not seem very helpful. Isn't most of this learned in the first year of university? Who is the target audience in that case? Given the title, I hoped to learn some lesser used data structures rather than what a pointer is. With that said, I do look forward to future articles!
I call us people. You calling me serf tell much about your own mindset...
The opt-out button: "I don't need more coding interview practice".

My first thought: Whoever designed this is super salty for me not wanting to provide my e-mail.

Out of all of the problems in my life, too much e-mail is certainly one of them. I like to keep it to a minimum. And as an adult, a weekly coding problem falls so down far on the priority list compared to all the other e-mail I'd get.
Nibiru is usually referred to as "Planet X". If it was called "Planet IX", it would be a better fit. :-)
> Good CS fundamentals are important

Yes they are. Except, these interviews aren't testing for that. Finding the maximum sum subarray isn't testing for any fundamental.

> Just because someone wrote an impressive framework or library doesn't mean given a complex problem outside of their known domain

Why are you even hiring them for something that's not their expertise? Seriously, that's literally the whole point of the interview. I don't think Max Howell was trying to get in to the DeepMind team.

Calling these just some other web framework or package management tools is doing them an incredible disservice. Twitter used Rails. Airbnb uses Rails. If Airbnb hired DHH, it would be Airbnb's fault if they made him tune hyperparameters of some ML model rather than see how their web performance could be improved.

Honestly, at this point I'm convinced I could get HN to talk poorly about John Carmack's programming skills.
Solar water heating seems like a no-brainer for a laundromat. Most are in strip malls or freestanding box-type buildings with a lot of flat open roof space.

Article also didn't seem to mention cost of emplying attendants. Never seen an unattended laundromat -- people need help with jammed coins, etc. and to prevent vandalism.
Tokyo has a ton, often attached to public baths.

Here's a bunch (note the page numbers at the bottom):

https://loco.yahoo.co.jp/search/?ei=UTF-8&genrecd=0412010&ar...
It is exceptionally well written. It also seems to be targeted at very beginners, so I think it could also do good as targeted for students.
Hiring engineers based on data structure trivia is like hiring a marketing department based on spelling bee scores.
HTML always had tag omission and "self-closing" elements - these are features from its SGML roots. A formal SGML grammar for modern W3C HTML 5.1 can be found at [1] (my project).

[1]: http://sgmljs.net/blog/blog1701.html
> Removing VPN apps from the Appstore does not compromise the privacy of any Apple users

That's such BS. VPN apps are banned because they give users privacy. So it's logical that by removing them it hurts people's privacy in China.

> and does not prevent existing users of these apps from continuing to use them on their devices.

And that's a copout and you know it. As soon as people reset their phones or buy new ones they won't be able to "continue using them". Taking that as a "win" is absurd.
i have the same feelings about "cracking the coding interview"

the day someone unironically asks me to "Write an algorithm to print all ways of arranging eight queens on a chess board so
that none of them share the same row, column or diagonal" - I will jump off a bridge
> what makes Western values special? Absent an independent moral authority (i.e. God of some sort), there's no way to say that Western values even should be spread.

That's a philosophical challenge but not a real argument. Obviously we can, we do, and we must make moral distinctions despite the handicap of our lack of omniscience.

One way we do it is by the use of reason, which separates humans from beasts and our current world from the Dark Ages. There are arguments against the universality of these values, but the one above isn't one of them.

If Chinese law required Apple to hand over names and locations of its users for mass executions, obviously the moral relativism argument wouldn't hold. The issue here is that VPNs are a less clear moral issue - obviously it would be better if Chinese people had free speech, but is it worth Apple fighting a battle for it? Another way to ask: Is it ok for Apple to sacrifice their rights in order to make more money?

I'll also point out that the values are not "Western", but universal. The people of Taiwan and Hong Kong strongly embrace these values. As do the people of India, Japan, South Korea, most South American countries, South Africa, all the protestors of the Arab Spring from Iran to North Africa, etc. The only people who say otherwise are the dictators and oppressors, who conveniently find that their cultures are not conducive to freedom (Putin is making the same argument these days - it's a universal value of dictators).
That is assuming Hiroshima and Nagasaki sped up the process of surrender (and probably assuming that most of that million of lives would have been lost to firebombing civilian targets). I don't think the point is unclear - but it could very well be wrong.

I don't think alternate-history fables is much of a defense for war crimes, however.

You might hold that bombing Hiroshima and Nagasaki was done to speed up Japan's surrender, and/or that they did speed up Japan's surrender by a meaningful amount. Further, you might argue that somehow two bombs was meaningfully better than one for this purpose.

From historical record, I'd say it's more likely Japan would've surrendered quickly either way - and that the motivation was more on establishing the USA as a superpower for the post-war era.

Either way, I think it's hard to argue that dropping of nuclear bombs on cities was done "for the sake of their people". After all, no-one was forcing the US to continue the war in the Pacific - or to capture Japan. The US could have sought a cease-fire and withdrawn to Hawaii or similar earlier borders. If the goal was to "save lives".
This is not necessarily the best approach in this case, because taking the helm means doing a lot of management work and almost no coding.
That's not bubble sort.
> how many things that we currently categorize as one disease are really many different diseases.

Had a GI doctor tell me he thinks there are 'lots' of gastrointestinal syndromes that medicine has no way to identify. Also have read an epidemiologist years ago that wrote there are probably a lot more infectious diseases out there. Some of which may have serious long term complications.
> Banning VPN apps is a better response than only allowing compromised VPN clients

True. But China is doing both. It's only allowing VPNs that are compromised. So if you are somehow still surprised that you can use a VPN in China after the dust settles, you should know that VPN is likely compromised in China.
If all you want is generators and co-routines, then there's a lot of literature on this for C.

The original Icon compiler compiled to CPS C. That was pretty cool.

One can do much of what Icon did using GCC local functions and computed gotos to get something much closer to not-CPS.

There's Simon Tatham's PuTTY, which uses his co-routine macros, which are an extravagant meta-programming macros around a Duff's device. He also has an extensive set of meta-programming macros as well, not related to co-routines.

Some Schemes compile to C code where all functions always return immediately, but what they return is a continuation, and the top-level is a for(;;) { next = next(); }.

EDIT: I'm particularly fond of PuTTY. Its SSHv2 implementation all the way up to the end of authentication is a single, huge function. It looks completely synchronous, but it's not, because it's actually a co-routine. As a result, and in spite of being a single huge function, it's actually quite readable.
First, if he would have given that answer instead of saying others did it I would have answered the question. However, his answer indicated they asked just because of asking.

Second, even when you have those reasons ask questions on actual situations that would occur on the job. You run a large C# code base that struggles with its size and configuration complexity vs flexibility? Ask questions on how he would design a new speculative module for the Platform. What kind of pitfalls would he foresee? What would he focus on? See if his answer include your struggles indicating he understands what his daily job is about. If you search an engineer to speed up your image processing pipeline which is C++, data structures can be fine but don't forget that before optimizing them you probably have to spend a lot of time optimizing the design of the entire pipeline so also ask questions about that part.

My main advice is think before you ask. If you have valid reasons, feel free to ask data structures. If you don't, think again.
I was hired as a C# dev out of college. 6 months in, a legacy Delphi app was dropped in my lap for maintenance. It took me about a month to get up to speed, but after that it was just another platform/language.
Non-trivial is a subjective thing though. I see people asking the edit-distance problem for example, that was an award winning research paper a few years ago! Also, how do you differentiate between candidates who've seen your question before vs others seeing it for the first time? Most interviewers calibrate on one question. I think the scales these days have tipped on the side of luck. If you've practiced a shit ton of questions and you're asked one of them or closely resembling them, you're golden. Otherwise, you're screwed! I know of several current Googlers who'd attest to this.

In addition to that, it's entirely possible that the candidate is tired after 5 rounds of interviews and isn't able to think straight. But you're right, I don't think a better alternative exists yet.
You're betraying an extremely. And I mean extraordinarily, laughably modernistic world view. We were making accheulian hand axes for well over one million years. Plus. Technological development during that period really didn't look very exponential. How do you measure change when literally nothing new is developed for tens of thousands of generations?

If you only look at development since agriculture then yes, but that's less than one percentof the time since the taming of fire.
> It's interesting to see how Apple's centralized control turns out to be a convenient tool for authoritarian governments.

Yes, "interesting" -- and completely predictable. Some of us have said this from day one of the closed garden app store.
Be civil. Don't say things you wouldn't say in a face-to-face conversation. Avoid gratuitous negativity.

https://news.ycombinator.com/newsguidelines.html
The IDN vulnerability was fixed by Google in Chrome 58.

https://arstechnica.co.uk/information-technology/2017/04/chr...
https://bugs.chromium.org/p/chromium/issues/detail?id=683314

Why have you got such an old version of Chrome?
In Europe, all laundromats I've seen were unattended :)
I found no links to the code. Is that closed source too?