skysight-inc/HackerNews huggingface dataset:
Show HN: Looking for feedback on a Webpack/etc plugin
I say "/etc", because it kind of covers a bunch of different topics.

https://github.com/ryanmcgrath/react-iconpack

react-iconpack is essentially a suite of plugins:

- A Babel plugin to track <Icon> usage across your builds

- A Webpack or Browserify plugin to inject SVG source as a module

- A React Component that gets injected to handle
displaying icons from the aforementioned module

The build on npm is the old one, which the docs are still more or less current with. The code in the repository linked above is the updated version to work with Webpack; while it does work, it falters when caching is enabled on the upstream stuff (i.e, Webpack/Babel/etc). It's probably because I've just been staring at it for too long but I'd be interested in anyone's thoughts on integrating with said cache setups - the crux of the issue is that the Babel plugin won't run on already-built and cached modules (which makes sense, but is annoying in this particular case).

The rationale for the project is that I don't want to have to specifically import an icon at the top of each file just to display it - I'd rather just write the <Icon ... /> JSX and have it auto-pulled in. It rides on the mental ease of JSX all being inline (not interested in the for-or-against JSX debate).

Apologies if the formatting is off on this, I can never remember how it works on HN.
Design Grid Control Automated Tests Part 1
I'm a guy, and you want to appeal to me?

The best you can come up with is this? Scantily clad girls? Really?

It's just so insulting - like, the only possibly worthwhile aspect of my personality comes about through strippers, well thanks for that.

Let alone the other, multiple issues to take with this.
Many German websites have had this for years. I seem to remember hearing that it was mandated by law that social buttons had to be deactivated by default to protect privacy, but I'm not sure whether that was actually the case.

Here is a brief explanation in a German computer magazine: http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschut.... Their implementation: http://www.heise.de/extras/socialshareprivacy/ (which I believe this is a fork of?).

I would really love to see more sites adopt this approach. Tracking users in this was is completely unacceptable.
Should they have also hired male dancers for equality, or what is exactly the point in being angry with MS here? After all, MS gave them a paid job. How come a girl seeing dancing girls immediately feels unwelcome?
> We don't have flying cars.

There are flying cars - they are called "helicopters": http://xkcd.com/1623/
Again from Assange's article[1]:

---

In fact, Cohen had moved to Google from the US State Department in 2010. He had been a fast-talking “Generation Y” ideas man at State under two US administrations, a courtier from the world of policy think tanks and institutes, poached in his early twenties. He became a senior advisor for Secretaries of State Rice and Clinton. At State, on the Policy Planning Staff, Cohen was soon christened “Condi’s party-starter,” channeling buzzwords from Silicon Valley into US policy circles and producing delightful rhetorical concoctions such as “Public Diplomacy 2.0.” On his Council on Foreign Relations adjunct staff page he listed his expertise as “terrorism; radicalization; impact of connection technologies on 21st century statecraft; Iran.”

---

Good or evil is quite subjective, but there is a pretty clear connection to at least one presidential candidate.

That article is a seriously interesting (and long) read, assuming that it's all true of course - it is not interesting enough for me to start digging for proofs! ;)

[1] https://wikileaks.org/google-is-not-what-it-seems/
10k+ karma on HN (or a high klout score) = 0 productivity ;)
I'm the guy you were when you started.

I don't care how much do I get nor how much time I have to put into it as long as I like doing it and have something to eat.

I don't care if suits call me stupid behind my back or take advantage of that. They can keep their money, while I keep my passion: I think I get the better end of the deal.

And I'll try to stay that way :)
Niche Video Media
SuperMemo – Learn Fast and Forget about Forgetting
Are you saying assisted suicide is illegal, but _can_ be made OK by a contract? That's not the case in England.
By contrast, proxy voting is fine if you register your proxy with the local electoral office in advance.
Dupe of: https://news.ycombinator.com/item?id=11326165
The Bear Test v0.1
Screw the Harpies. What they did, is not equality. Their actions state that their small minority is more important than the vast majority.

Equality is asking for similar treatment, not banning someone else's fun. I reiterate, fk them.

You want equality? No problem. You want preferential -special snowflake- treatment? Hell no.
I think you have some reading to do to catch up with last century.
When I quit my prior job, they started a multi-month project to replace all of my PowerShell with "proper" C#.

Then they decided it was too hard, threw it all away, and just decommissioned parts of the application and run everything else manually.

Working under brilliant minds like that you can see why I quit.
Hell, at this point I'd be happy with "command-line python". I've seen a few-too-many "Rails, but only in RubyMine" devs.
It's interesting how the pedestrians walk on the "wrong" side. I guess you can attribute it to Japan having left-hand traffic.
For+Sale+or+Rent+Dean+SR42G+Natural+/+LP+Gas+Deep+Fryer+$250
The OP's point is that "This only works if you pay the appropriate amount".
If you go with that process, but discard the "money" variable, you'll only interview the people who got rejected from every one of the well-paying companies.
>This is not only nearly impossible to define in the general case

And this is why there are courts who decide how law applies in particular cases. This is how case law works. What the law means gets more meaning as precedents accumulate over time.
That's perfectly fine for those of us who use such addons, but does nothing to help the average non-technical user from being tracked.
I read the article why do you feel the need to summarize a part of it? Geez.
Business Video Streaming
I really don't understand how this can lead to hateful tweets like this one: "Fuck you xbox & your fucking "dancing" girls who are here to talk to the boys (You're not men if you buy into that act) #GDC16".

Some girls are here paid to dance and to visually please men like in a lot of clubs but I don't think they will go as far as not talking to other girls. Not to mention the idea of speaking in this kind of club setting seems quite goofy.

Also: "I don't want to talk to anyone here in case they're those shitty little boys enjoying the attention from the "dancing" women"

I find it very paradoxal to pretend being for inclusion while refusing to speak to people of another sex and wanting some people to be out of the party because of their sex and their outfit.
10 unlikely ideas that changed the world
Would such springs lose magnetism after a while, or do they remain permanent?
Potentially null features should be nullable and when not, it'll be a potential run-time error.
Booth 1.0 has been released (Geo-cluster based on Pacemaker and raft)
A more worrying one for me is the number of startups looking for an experienced dev (I have over 13 years of computer based work on my CV), but claim
"we are a startup, we can't afford to give you much".

Not even an offer of equity.
I've listened to WNYC for years but I have also lived all over the States except the Northwest and nothing can touch the quality of WNYC. I now live in PA but I stream the station all the time with my phone.
This does sound like a classic example of someone in the intelligence service being bad at conditional probability. "All the people we captured wear F91Ws" does not imply "everyone wearing an F91W is a terrorist"!
Motto for Python newbies
Yeah i think that quite a number of people in the game production business are basically not gamers. They are storytellers, they are animators, they are artists of various stripes, but they are just not gamers.

Thus there is a big risk that they will concoct schemes that will drive a gamer up the wall.
In the ideal world, you probably should have enough redundancy in terms of human resources so that one person leaving is just slightly inconvenient. Also, as an employer, you should be realistic that it's just a job to most of the people and they will leave whenever a better offer comes, just a matter of time.

So in the ideal world, there's nothing wrong.

However, we don't live in such a world, unfortunately, and should adjust accordingly.

There are many small companies that would struggle horribly if one of the key employees would leave, and eventually they will. Also, some employers expect loyalty and treat it very personally if they know that someone's is definitely looking to jump the ship.

It's right, I agree, but that's how it is usually.
I think you highlighted the main issue: it's not sexism, it's simply misplaced.

Would it be 4 women and 4 men, it would still be out of context and not right. I don't know if it's more jackass or more redneck, anyway it's not something that should be encouraged.
If they were going to a strip club, sure. But they weren't. This was a professional event. How would you feel if there were a leather-clad male stripper in your cubicle at work. I wouldn't like it... and probably less so if the women at work said "why are you so angry about this?" Because I'm trying to work and this guy is thrusting his pelvis around.
7 Deadly Mistakes to Avoid in Landing Page Design Pt2
As someone who has done some stuff in Mono this is funny
Now, it's just funny that Samsung hasn't learnt important lessons from its success with Android: serve hackers first, and market-share will come automatically. Someone please show them the Ballmer "song".
Fluffify
Maybe because it has nothing to do with sexism and it is all about attention-gathering.
Author really oversimplifies things when he chalks distinct Nordic mentality up to "all Nordics sharing a sense of kinship and having fond feelings for each other", and debunks it by pointing out they "dislike many of their fellow citizens" etc.

Of course things aren't as caricaturally trivial as that, which makes it a strawman argument, hard to take seriously.

Here's a more balanced take on Nordic mentality, from a British left-wing newspaper: http://www.theguardian.com/commentisfree/2008/aug/15/denmark...
What I think in such cases is "unless I can convince him that this is a bad idea, then I should let him do it". Yes, I understand that sometimes we aren't entirely sure why a thing is bad, we just have a gut feeling that it would break something, or is a bad practice.

So first off I try to convince them with everything I got. That usually works if I have solid concrete reasons. If I don't and let them do it there way. Sometimes it turns out my instincts were right and I get to learn exactly what was right about them. Sometimes it turns out I was wrong and his way was much more efficient and I get to learn something new.

Either way, it doesn't make the junior dev feel I am imposing my will on him. People tend to work harder when they feel it was their idea.
The ultimate negotiator cheat sheet
It's odd only if you imply that revenues of these media must stay at the same level as now.
Interesting way to look at it, but my guess is that a chess program on your average mobile phone could beat your average person (i.e. no professional) at chess.
From Ryan Cavanaugh's comment[1]:

> (...) there's already the let keyword available for those who want saner scoping rules. We should definitely update the docs to use let everywhere, though.

[1]: https://github.com/Microsoft/TypeScript/issues/5822#issuecom...
Who guards the Guardian?
Wrong URL. Try resubmitting.
Sorry, but that's stupid... Being exploited and loving it - more sounds like an mental illness then passion. You can keep your passion - even when you get paid fairly... But enjoy your happiness in slavery, if you like. Bad thing is you hurt people who may need fair compensation (wife, kids etc. ) for their work, because you show the suits they can find people stupid enough to do so...
https://www.youtube.com/watch?v=7xH7eGFuSYI
That makes sense, after all, you're going to be paying them, not giving them an award.
But about as annoying as senior devs who give bad advice or ignore half the words in your sentences and then give you bad advice, or who start giving you bad advice during a planning meeting after a 30 second brief about your problem that was directed to your manager.
Google Maps Timeline has both an "export this day to KML" feature, and a "download a copy of all you data" feature via Google Takeout.
Greybeards do not mix with the hipstor kids well. In the other news, the Pope is catholic.
My 5 year old Sony TV can no longer support Netflix and can't be upgraded. External hardware is absolutely the way to go.
sure but my moral code is out of date, so booth babes, and dancers at video games are out. what about cosplayers and female promoters?

are we allowed to promote things with models? can we have scantily clad girls at the grand prix anymore? or are they professional events? do we need to change beach volleyball uniforms?

i feel like i missed my morality update patch... someone got the latest changelog.txt?
It effectively does: the fourth amendment. More explicit verbiage is unlikely to matter.

Besides, nobody said Europe wasn't a surveillance society.
Genuine question - What about a "cashless" currency based on blockchain? (a la bitcoin). Wouldn't it be and not be under any single entity's control at the same time?
There's no magic to it at all. Have every candidate work on programming problems related to the work you do at your company. Have every candidate work on the same problems, and let them do it from home. Build and iterate on a rubric for grading those challenges.

It is amazing to me that almost nobody does this, but: almost nobody does this. They have programmers write code on a whiteboard, or on some whiteboard-coding site; they have them do programming puzzles ("solve Towers of Hanoi non-recursively"), they have them talk about code, or, more likely, computer science trivia. They'll have them "pair off" with one of their own programmers and "fix a bug". They'll have them work as a 1099 for a month to see if they're any good.

In reality, most companies are trying to hire on trendiness; they want people from the right schools and/or the right cohort of companies. They're aggressively courting friends and colleagues of their existing team, and the special people get very different interviews than everyone else. The actual technical evaluation is mostly a facade.
Transitioning well
I second that. When I was a student, I use MS stack a lot and sweared by it, but never really got to use the command line, since everything could be done faster using the GUI, and the command line had no benefits I could possibly see at the time.

I had to really use it when I started to do automated builds, and since then it opened my mind on the value of command line and above all the unix philosophy, which I really consider as super important now.

If I had to hire, I'd be relunctant to hire someone with Windows-only experience, not because I think the stack is bad, but because it's unlikely this person adhere to the Unix philosophy and is able to write scripts for small tasks, and automate important tasks with scripts.
What is the most dangerous thing for a person of any profession?
The seed is a 32-bit signed integer [1]. Diablo 1 was using the Borland C/C++ pseudo-random number generator algorithm, with a multiplier of 0x15A4E35 and an increment of 1 [2,3]. A Go implementation of the PRNG used in Diablo 1 is located at [4].

So I guess there are 2^31-1 unique dungeons per level. Storing, rather than dynamically generating, these dungeons would require a huge amount of disk space. For each level, a 112x112 two-dimensional array of 32-bit integers is used to store the piece IDs which make up each tile (a tile consists of four pieces) [5], and a 40x40 two-dimensional array of 8-bit integers is used to store the tile IDs [6]. Thus, a total of 51776 bytes (roughly 50 KB) is required to store the contents of each generated dungeon.

In total, more than 100 TB would be required to store the contents of each unique procedurally generated dungeon per level. The game contains 17 levels, so to store each unique dungeon for each level, a storage capacity of about 1.7 PB would be required. This might be possible today, but was definitely a challenge back in 1996.

[1]: https://github.com/sanctuary/notes/blob/master/bss/engine.md...
[2]: https://github.com/sanctuary/notes/blob/master/functions/eng...
[3]: https://en.wikipedia.org/wiki/Linear_congruential_generator#...
[4]: https://github.com/sanctuary/d1/blob/master/rand/rand.go
[5]: https://github.com/sanctuary/notes/blob/master/bss/gendung.m...
[6]: https://github.com/sanctuary/notes/blob/master/bss/gendung.m...
> As discussed in the article, most local stations are just republishing NPR content, not creating the kind of great content you're talking about.

All public radio stations I know of do republish NPR content, and that's usually the bulk of their programming, but I live in a very poor, conservative state and the local public radio station has local news and many other local programs. I can't imagine it's different elsewhere.

In fact, a quick look at the schedule shows all the programming from 8:30-12 on weekdays is local programming, with different shows on different days. If the affiliate in my state can afford that, I can't imagine others can't.
> If you are not paying for it, you're not the customer; you're the product being sold.

I hear this all the time but it's message is a bit off. I'll quote this page http://powazek.com/posts/3229

1) Assumption: This is new or unique to the internet

2) Assumption: You’re either the product or the customer

3) My Favorite - Assumption: Companies you pay treat you better (Comcast Anyone?)
He's mad about "Philip was ordered to pay child support to Michelle in the amount of $865 per week, retroactive to July, 2013, less certain credits."

From the footnotes:

2. Philip mischaracterizes the weekly child support order by including, as part of his weekly obligation, the lump sum of retroactive support he was ordered to pay.

3. The judge found that the value of Michelle's assets was in excess of $720,000, and that the value of Phillip's assets was nearly $16,000,000.

4. The judge found Michelle's weekly income, exclusive of child support, to be $3,914.25, and Phillip's weekly income, exclusive of the child support obligation, to be $6,846.64.

So in other words Phillip Greenspun brings in over $350k/year and is getting all fired up about having to pay at most $45k-ish to support a child that he helped bring into this world.
I would have felt uncomfortable, too. It would gross me out to be at an industry event that the vendor had deliberately sexualized, and on several levels, most notably "this vendor thinks I am the kind of person who wants to see dancing girls at an industry event."

It would be much worse, I think, were I a woman and outnumbered 10:1 by men.
Template-driven forms in Angular 2
The Problem of AI Consciousness
No. Don't promote things with models. Don't have scantily clad girls at the "grand prix". That stuff is creepy.
Yeah, how come, what do you think? Can you imagine any reason? Sometimes a good exercise for understanding others' points of view is to actively try to empathize. What kind of reason can you imagine for a girl to feel unwelcome at a post-conference party full of guys and sexualized female dancers? Or does it completely stump you?
In theory, yes. But currently, there exist enough structural problems, as much I know, that Bitcoin or similar schemes can not replace cash.

Further, even with a total secure system, there will always be the pressure of the governments to control it.
Additionally if it's your first exposure to a non-Algol language, you're going to have a hard time... you definitely won't feel comfortable quickly. But at least going from, say, Java to Python, you can quickly feel fairly comfortable writing Python code just like you would Java! (Your coworkers who understand "Pythonic" might hate you though.)
Cash, on the other hand, empowers its users.

And convenient electronic payments doesn't in anyway empower users?

Also, if people are unbanked and below the poverty line I would expect they would be more concerned with getting by than "Orwellian levels of surveillance."
You're referring to Nazies, so are you suggesting simply sterilization of "stupid" people? That gets you most bang for the buck and could have been done since 60's with ease.
No, neither of those things are going to happen.

It might happen if you designed a password hash from first principles, but that is not how Argon2 was designed, or, really, any of the Password Hashing Contest finalists. They're built on top of existing crypto primitives.
Not only is the surveillance problem, but when all the peoples money is in the banks, banks have more control to charge people for "handling" their money, so not just negative interest rates are the problem.

Also when all the money is in the banks, governments have much more freedom to apply higher tax levels or just take the money.
+1

I live in Japan and I commonly see dancers during big club events. Clubs simply hire both male and female performers and everyone's happy.
He missed one tactic the psychopaths use - "we're looking for money, but our customers are paying us late, so we can't hire anyone to help you".

The conscientious (i.e. me) will end up doubling down and going into burnout mode, trying to keep on top of all the work. This prevents one from thinking at a higher meta-level about what is going on. I should have asked the sales guys their view of things, and then I would have heard more company gossip and the real picture would have been clearer (they were getting screwed, too, on deals)

Live and learn. The people who control the money should never be trusted.
Would people's reaction be different if the dancers were dressed differently?
> almost nobody does this.

Maybe this is an US thing. I changed jobs last year and nearly every single recruitment process involved exactly that, after a remote interview them giving me a small project worth 2-5 hours of work and then going over what I produced one week later. This was for companies in central and northern Europe.
Exploring JavaScript Expression
In interviews I actively try to down play the companies I've worked for and the things I've done with them. The reason I do this is that I don't want people to come in with unrealistic expectations and expect me to live up to them. I also don't believe in preparing for interviews. I'm ok with the rough edges I have. I want my imperfections to come through on some level. Yes I have a preference for certain technologies. I love what I do. They should be more concerned if I didn't have an opinion. It doesn't always work out in my favor. shrugs Rarely, do I serve up great interviews back to back on different days. I'm an front-end guy because I love building them. That's all.
Transform a Browser into a Basic HTML Editor