skysight-inc/HackerNews huggingface dataset:
When ever I drive through west Texas all that sticks out to me are the giant wind turbines. Giant as in a 10-15 story building. When you drive up on a large patch of these turbines you might be able to see thousands at once, and there are possibly hundreds of such fields in west Texas.

I am not pro or anti gas, oil, or wind. The primary difference is that wind is linked to the grid. Its not a package available for export. Oil and gas are chemically stable (roughly speaking, non-degrading) liquids that can be transferred anywhere. This makes fossil fuels ideal for export where wind is not, but damn there is a lot of investment in wind energy generation.

As an additional matter of perspective I live very close to one of the largest oil refineries in the world, which is really close to one of the largest petroleum export harbors in the world. I am currently living in Kuwait. I really don't see anything here that would classify as a petroleum culture.
January 2017 article.

That said, Ted Nugent called and he still wants his shirt back.
Have a Unicorn Dating from the Unicorn Dating Site
I'm literally a national champion at a ridiculous hobby, so I feel pretty confident that many of these people are actually super serious. People get way invested in stupid shit all the time.
Again the point is easy code reuse.
You can't prepare for the complete collapse of civilization.

Even the Survivalists who go out with "nothing" and build their shelters, start their own fires, hunt their food, they still need backpacks to carry their gear. They still need gear to carry, like saws, axes, fishing poles, knives. They still need clothes to wear. They still depend on the infrastructure of society in myriad ways.
The program’s start coincided with a rise in nationalist sentiment in China.
Shortly after he came into power six years ago, President Xi Jinping rolled
out a campaign against Western values, investing Communist Party members in
academia with the power to redline even the most innocuous and apolitical
expressions of American culture.
And funding American culture in China became particularly unpopular in
Washington as the Trump administration worked to distance the countries and
anger built over Beijing’s propaganda in America.

Perhaps this is what the author was going for, I can't help but feel like I am reading about the development of Cold War 2.
No, I'm describing XSS. You know, where an attacker injects scripts on your pages, and the attacker's requests come from the same origin as your own requests. In CSRF, the attack is hosted outside the target site.

I don't believe a situation exists where using cookies for client-side storage is more secure than local storage. Could you please explain this in more detail?
As a hiring manager, I agree 100%. These people are everywhere. I've also given someone the benefit of the doubt -- he wrote a Java book! once we hire him, I'm sure it will work out -- only to find, nope, he can't code on the job either.

Other hand, I'd suggest instead of "lying" that people are just myopic about their skill sets. I'd been writing JavaScript code for years, for example, but on an interview learned about a whole world of "modern" JavaScript that I didn't know existed. Clearly they thought I was a fraud. But I'd just been living on the 3rd floor without ever visiting the basement where all the pipes and boilers were.
Former Houston old-energy chemical engineer here (also grew up in west Texas). I switched careers to cleantech, and I see now something I didn't see back when I was in old-energy: being neutral about fossil fuels is just as bad as being pro fossil fuels.

First, that attitude makes you, your family, and your friends more susceptible to propaganda from pro-fossil fuel interests. You're more apt to believe crazy stuff like we'd have to stop using plastic or that nuclear would have to also go away. You're more apt to doubt the science behind climate change. You're more apt to be mislead on the economics or feasibility of renewables.

Second, that attitude makes you think we're not in a rush, so we can afford to wait until things are figured out more. It makes you think that we have to figure out storage for wind and solar and airplanes, even though we don't have to worry about that until we reach much higher levels of penetration than we currently have (and we're already making good progress nonetheless). It makes you think that we'd fall into chaos if we use less natural gas and oil, even though it's going to be a gradual transition and will be replaced with equal or better alternatives.

Unfortunately, because of previous neutral attitudes like yours, we're now in a goddamn race for our lives as the nightmares of climate change are starting to happen (how many Americans died in Puerto Rico? California's wildfires? etc.). Nature doesn't give a fuck. It's too late to be neutral anymore.

So from one Texas energy worker to another, I beg you to stop being neutral. Unlike most other people, you actually have domain expertise to have a substantial impact fighting climate change. Remaining neutral when you work in energy is just making everyone else's lives worse.
> iterate through the string backwards

What about multi-byte characters?
that's an interesting idea. how can we implement that without it becoming awkward?

the problem i see is this:

it is unexpected, so the interviewee doesn't know what to make of that offer.

i don't know how much time to give them, and they don't know how much time they need. they also don't know how much time they should take.

i don't even know if they are the type that likes to take a quiet time to think. if they aren't then that offer could come across as a suggestion that their answer is wrong and they should think about it more.

at best it would be some institutionalized coffee-break, like we do the interview in two parts, first we are doing a bunch of exercises, then we take a break and after the break we do something else, but the interviewee is offered to add thoughts on the exercises that they may have come up with during the break.
Wherever you live, there are likely companies with limited liability of the owners. In the US they are corporations or LLCs or limited partnerships. In your country they may be named differently. See https://en.m.wikipedia.org/wiki/Limited_company.

When such a company runs out of money, nobody else will be required to come up with cash to pay its debts. You don't need to read the bankruptcy laws to verify that, it's just the definition of a limited liability.
Ask HN: What are some underrated skills that a programmer should have?
I've seen that a lot of people recommend knowledge of git and regular expressions as must have underrated skills.

what are some others that one should have as a developer?
X64 was designed with this in mind. All non-active bits must be the same value (a so called canonical address) or the processor will fault. You can’t use them for flag bits unless you make sure to clear them before dereferencing memory.
Perhaps the US administration stands to benefit from tensions too? After all, it is the US (Trump) that has started unprovoked giant trade wars with the result of the world (including China), not the other way around. Sometimes it is silly to argue "who started it" but other times it is not. In this case, afaik, Trump started it.
Notes on Structure and Interpretation of Computer Programs
It would be then interesting to see if there is a scientific correlation between changing one’s language habits and depression.
I’ve always considered the “start talking positive and things will go well” advice as shortsighted and oversimplistic, but maybe there is indeed a correlation, and a positive reinforcement through language is possible.
Mantras and chants can have a strong influence on our brain waves, so maybe there’s a way to leverage positive language and repetition to ignite a change in the way we feel and the way we think.
Empty Homes and Protests: China’s Property Market Strains the World
Entropy. Good point. I don't think many brought up that issue, it's either ignored (we know what we're doing) or coped with when it's too late (we knew what we're doing).

Entropy handling should be the goal for 2019 UI/Frontend engineering.
> I think is that cast vs billet crankshafts are almost a pointless argument outside of classic car enthusiast communities, or race communities.

It is an aviation community in this case as well. They are re-purposing a car engine. It seems the loads on the crankshaft if it is directly attached to the propeller will be quite different that what the would be in a car. With a propeller there would be a bending component (propeller acting a gyroscope) besides the twisting component, especially when say doing aerobatics, while in a car the it will be mostly a twisting component.

So perhaps then cast vs billet becomes more important as one can withstand bending forces better than the other generally.
Can you traverse an array? Do you know that a string is an array? Do you know how the end or length of a string is represented in your language of choise? Do you know how each character is represented? Do you understand Unicode? Do you understand memory allocation? Is the string being reversed in place or you allocating a new string? What are the space and performance trade-offs between those approaches? I mean, you can fill a whole interview with just this topic. So yes if your answer is string.reverse() then expect some follow-up questions.
Yes. Chance + opportunism can lead to plenty of long term gains.
Criticality events don’t end up as massive explosions without careful design to keep the parts close enough for enough time to release the energy. Otherwise the force of the reaction will move the material away from each other and “snuff out” the reaction.

They can still release substantial amounts of radiation though, and one such event caused the death of Louis Slotin during the project.
I find your argument compelling, and IMO you should not be scared to get banned from HN for that kind of comment. It‘s actually in line with many other comments here.

I too feel that there are not enough women commenting here. The discussions would be more complete and interesting if that wasn’t the case. We obviously only get a half of the picture without female participation.

It’s offtopic, but since you asked for it. Being highly controversial/polarizing does often help growing an audience, I‘ve seen this time and again. I don’t know how long you have been doing what you are doing now, but I heard growing an audience for a YT channel/blog/etc takes a couple of years of continuous effort, posting as much as possible. I mean, pewdiepie (whatever one thinks about him) uploads every single day.
One thing that is not entirely clear to me about constructions like these is the behavior of array indexing. I understand how to differentiate the assignment of x+y into the variable z, but if I use X as an index into memory and then write Y at that location, the proper result of differentiation looks a lot less clear. One reason for that is my memory locations are discrete points, but X must be treated as if it was continuous, if functions over it are to be differentiable.
What drives me absolute bananas is the way they changed licensing for Visio. You could get the database reverse-engineering feature (Pro version) for a fixed, one-off price up to some point. Now it's all subscriptions. Blah.

(great software though, I have to admit)

As for the main topic, my favourite diagramming tool is GraphViz, mostly because it is easy to script / automate, does a great job auto-placing things, handles large diagrams quite nicely and works on any OS.
in a situation like that i'd like to see both happening. start the emergency procedure, and while it's running think through if you missed anything or if there is an alternate approach.

just had that happen. we had an overloaded server, and while we tried to figure out how to make the server faster, after some thinking we realized that the better long term solution was to change some of the architecture so that the server would get less load to begin with.

that was definitely not what came to mind first.
I think the worst part is that fresh water is used for fracking fluid and the contaminated waste water is injected back into the earth, when we can look at the water usage rates and population and see a problem coming in fresh water supplies.
Notepad.exe !
Thanks for calling me out on that. I've got several assumptions packed in there about what the user is trying to do (validating the market, smoke testing, etc).

I'm going to go back and rewrite that opening. It should at least be something like "first step on the long march to product launch." And that is assuming that you are going the Lean Startup, 30x500 et. al. way.
This could be solved with resource access requiring multiparty agreement, like the Bitcoin multisignature wallets: the location that contains the food and water for a week requires permission from 2 parties that are located in 2 separate geographical locations
See also rsplit(':', 1). But instead of either of those, you should really be using library functions that already understand the format in question instead of making up your own rules.

>>> u = urllib.parse.ParseResult('', '[2001:0db8:f00f::0553:1211:0088]:10443', '', '', '', '')
>>> u.hostname
'2001:0db8:f00f::0553:1211:0088'
>>> ipaddress.ip_address(u.hostname)
IPv6Address('2001:db8:f00f::553:1211:88')
>>> u.port
10443
Funny Coub Video Compilation 196 – Top Vines Publication Videos (FunnY Cube)
First of many. That placeholder look is thanks to my acute lack of graphic design skills. Getting better one day at a time...

> Maybe this is his way of getting free feedback?

Close. It's really content marketing for getting signups for LoudList. The world gets a list of resources I genuinely found useful, and not so easy to locate, and I (hopefully) get a mailing list.

I've gotten feedback on the landing page at https://loudlist.io (rough draft though it may be) already from the resources on this list. That's where I got the idea for the blog post.
Elephants, dead fish and vomit
It won't solve most of the problems, but if you're using PostgreSQL its native inet datatype (which supports 4 or 6) instead of a text or binary string can save a world of pain and there are alternatives in some other RDBMSs:

https://www.postgresql.org/docs/current/datatype-net-types.h...
https://www.postgresql.org/docs/current/functions-net.html

First class network and ip types that properly support contains and exclusion operators make a lot of things less error-prone and potentially much faster.
Google has been caught banning AdSense accounts to avoid paying website ownsers. I wouldn’t be surprised if they were found to be banning developers of apps that take eyeballs away from Google services.
The fact that Confucianism has been dutifully promoted and propagated by nearly every Chinese emperor, either insurgent-turned or self-proclaimed like the current one, attests that it's truly a powerful reigning tool.

Also Shang Yang's five principles of subjugating subjects: 愚民(idiotizing)，弱民(weakening)，疲民(exhausting)，辱民(demeaning)，贫民(impoverishing)。
usually with a lot of community feedback and approval

Has "community approval" ever been a prerequisite for commercial jet airports in the US?
That doesn't make sense to use GKE for this. Eventually you will just have bunch of VMS that run only your DB (since you need to avoid interference of other workloads) and there are no support for multi DC mode... And what benefits? Restarting SQL or Cassandra is not very cheap operation and can cause large data migrations.
Your first sentence is missing a word. Can’t what? I gave you links to show my working.

I have no idea what you’re referring to with “47w per m2”, can you elaborate?

Ditto “needing continuous replairs“. There’s a rover on Mars that’s been running for about 15 years continuously on solar with no human maintenance.

From an engineering point of view (though not political), you don’t even need to worry about night time, because the earth is round and even planet sized grids don’t lose enough power to raise my example of 2.155¢/kWh to even as high as coal. And that’s if you refuse to use the fuel cell tech that already exists.
I remember as the average packet size on the internet. Googling average packet size yields that- https://etherealmind.com/average-ip-packet-size/
Captivating algorithms: Recommender systems as traps
The article is well-researched, however it misses several details of why people promote Mandarin so much.

Mandarin has been promoted since imperial Chinese times because the emperors, their administration and all officials wanted to understand each other without translators, hence Mandarin or 官话 (language of the officials or "Mandarins") was used when you wanted to communicate properly to officials more senior or junior to you and it thus became prestigious by association.

The reason why it is promoted so heavily to now and sometimes in a degrading manner towards local languages is so that Chinese people can actually communicate with each other even if they're not from the same region.

If you can only speak a local language and not something like Mandarin or occasionally Cantonese, you're looked down because it is like a US person who can't speak English and only some incomprehensible "redneck" language (pardon my rudeness, just an example).

https://en.wikipedia.org/wiki/Mandarin_Chinese
If you ever sat on the hiring side and had just one new hire not work out, you would understand your throw away statement is actually more absurd than asking for free work. Let's flip the scenario and go your way instead...

Imagine being a programmer applying for a job and not being asked to demonstrate your skills at interview. The interview goes well, and you're offered the job.

You give your 4 weeks notice on your existing job, and turn up to your new role. You sit down, it's day one, and you're presented with a small sprint of bugs to work through to get warmed up on the project you're assigned.

Your heart sinks.

You realise that you are totally out of your depth. The solution you're working on is hard, the documentation insanely complex, and you feel more and more despondent as the week goes on.

By the end of the week your colleagues and managers have started to pick up on your struggles. Despite their effort to help you can't make meaningful progress. To cut a long story short you're let go, and now you're unemployed.

-THE END-

As an employer and owner of a software company, it's my job to assess the skills of somebody as quickly and efficiently as possible. If getting them to "build a small bedside table for free" gets both me, my colleagues, and the candidate attending the interview comfortable that we're offering a job to somebody who can succeed at my company, then so be it.
Regarding the pronouns: what I notice within myself is that when I nudge myself to be more altruistic, in a giver's mindset or care more about others then I feel often more good as opposed to when I think about myself.

I think it's because it's easier to get anxious about oneself compared to anxious about someone else.
> I was annoyed because they lied to me.

That's a bit of an overstatement, chances are there was a miscommunication and the person interviewing you did not know that you had been told there would be a know ruby questions. Seriously, its just an interview, they're not going to go out of their way to accomodate your every request, just roll with it. Since you were able to debug the ruby code, its sounds like you could have gotten the job if it wasn't for your attitude. IMO the right attitude is more important than raw technical skill, you might pass the "Can he code in ruby?" part of the interview, but fail the "Can he handle things not going his way?" part.

I recently had an interview for a developer job where I was asked lots of devops questions, even though it wasn't a devops-heavy role and I don't have much devops experience listed on my CV. I wasn't able to answer many of the questions but I drew on what little knowledge I did have to try and come up with answers. In the end I got the job because the interviewer said he appreciated how I tried to reason out answers to his questions even without much knowledge in the area. If I would have gotten all annoyed and started acting like I was being lied to and cheated then I doubt I would have gotten the job.
It's difficult to write any regional Chinese language because for about two thousand years, the standard written form was Classical Chinese, which is about as close to spoken forms as Latin is to modern Romance languages.

The only reason Mandarin is writable is because of a huge vernacular 白话 drive after '49. Cantonese is also writable, but is only really used for things like TV scripts, it isn't generally taught.

Good luck trying to write Min (Taiwanese is a Min language), Shanghainese, or other language branches--you can write most of the vocabulary since it's almost always cognate to Mandarin or classical Chinese characters, but particles, pronouns, and other grammatical parts often have no standard character.
Didn’t you spend any time in the area you were buying a house before you signed?
It'll fail you with port vs. no port.

1234::5678:9876 is ambiguous. Is 9876 a port or part of the address?

The common explicit format is [1234::5678]:9876/
It has to be the case that if everyone agrees to spend on something together you get much more bang for the buck than if everyone is out for themselves. That’s the whole reason why tribes outcompete individuals, cities outcompeted tribes and nation states outcompeted cities.

At the extreme, if a small band forms an army, it doesn’t matter how well armed and fortified a single family is; the army is taking them down.
> Purposely saying something wrong seems a little dishonest

I agree. I never proposed that. I said I purposely ask questions the person at hand might consider dumb.

Note that many classic “dumb” questions are actually interesting, if not in their specifics then in why so many people ask them.

> imagine what your response would be if you found out that someone you were interviewing was pretending to know something they didn't

Again, asking dumb questions doesn’t require lying. Everyone goes through a dumb-question asking phase when learning. (I do.) The worst effect of this might be the interviewee walking away thinking me uninformed. Which, if I’m interviewing them, I probably am (relative to them). That’s why they’re being sought! In any case, people thinking I’m dumb is a fair price to pay for a well-tempered executive.

[1] https://en.m.wikipedia.org/wiki/Dunning–Kruger_effect
Circumventing video identification using augmented reality
Bye 2018, Welcome 2019
Oracle's Larry Ellison's private jet was infamous for ignoring San Jose's noise curfew and flying too loud a jet for night flights.

Meanwhile, the San Jose Sharks' charter would often get bounced to Oakland if they missed curfew.
A nice observation. It's a fundamentally important and very practical part of what Buddhism teaches by the way.
> Perhaps the US administration stands to benefit from tensions too? After all, it is the US (Trump) that has started unprovoked giant trade wars ...

Ok, but how did he manage to do that during Kerry's and Stengel's time? I don't remember Kerry being his Sec. of State. And if US stands to benefit, why did Kerry ask Cui why they were doing it?

There might be some confusion here about the timeline. Blaming him for overfeeding the koi, shaking Macron's hand for too long, or drinking too much diet coke is fun but traveling back in time is a bit too much one might say ;-)

> Sometimes it is silly to argue "who started it" but other times it is not. In this case, afaik, Trump started it.

Alright, then so then Trump is justified in his trade wars because he didn't start it?
I recommend against using games as evidence. If nothing else: Civ2 was all about trade, Civ5 all about city improvements; 2 and 3 encouraged large empires, 5 gives you ways to win with just one city.