skysight-inc/HackerNews huggingface dataset:
I worked with a guy who thought all my code was shite.

Now. I'm pretty tolerant. So I did what anyone in my situation would do. I installed a debugger and stepped through his code until I found some pretty glaring security flaws (escaping POST input should be pretty high on your priority list) and fixed them for him. Quietly. I explained what the problem was and why I fixed it.

So I thought we were on the same team... but no. He insisted that I was incompetent.

It took me a couple of days to think of something and then to implement it. I took some of his code, renamed a couple of variables and then pretended it was mine and asked him for his opinion. He emailed me back telling me exactly how shit it was and how I was beyond help as a coder.

I took this evidence to his manager.

The three of us sat down and I showed the code I wrote. My boss explained how it was wrong, the bugs, the mistakes. He went to town. Then I did my pathetic grand reveal. Yeah. It's your code, cut and paste from the codebase. I changed these variable names (HeLovedCamelCase i_prefer_underscores) could you accept that you have a problem with me, not with my code. This is simply a vendetta against me ... respond now please. The look on his face.

He didn't work there the next day. Although there was a big hole in the wall where his fist entered and exited.

The business didn't exist the next month. Turns out that someone who would employ someone like that isn't the best person to run a business.

Life is full of surprises. Or lessons. Or something.

If you haven't watched the detectorists. You should. It's the most beautiful nerdy show about something that isn't coding.

https://www.youtube.com/watch?v=NgN7z0SD8v8
https://www.youtube.com/watch?v=hwWv6UphTWM
Most of the people I know in tech feel like they're aging out of the market. Small web/marketing agencies--the only development jobs available around here--want fresh grads for junior positions. Most of the time those are the only ones available, as there is rarely more than 1 or 2 lead/senior developers within the company.

I've never heard "you're overqualified" specifically, but I lost count of how many times I heard "we can't pay what someone with your skillset is worth and don't think you'll stick around because of it" when I was unemployed between jobs #3 and my current one for 5 months, desperately applying to any and all positions that got posted, like 'website maintenance assistant', 'adwords manager', 'forms developer' and 'frontend developer'.

Eventually two weeks before my unemployment would have run out, a senior java ecommerce developer position opened up, to which I currently cling with dear life. :)

This might just be regional/bad job market thing, I don't know. Never lived anywhere else but Maine.
I disagree. Not sure how you got from my position to yours.

The patent system is broken. IP laws are far too powerful and some things should really be sold at marginal production cost + a small markup for distribution.
Depends if you mean a hobby/small C compiler or if you were trying to write something of similar scope to gcc or Watcom, say. If the latter, there have been big developments in the optimization stages (not least due to CPU and architecture changes over the years) and the approach to targeting runtimes would be quite different (far less likely to target x86 directly nowadays when there are things like LLVM or even the CLR/JVM/similar).

At the risk of sparking controversy, I think Go is a great example of "how would they do it now?" which goes further than compiler techniques and back to rethinking what the runtime should even be.
It's going to depend a lot on the individual interviewer how well they can answer that question. If recruiting and the hiring manager don't both have good answers to that question, though, that's a big red flag.
A reason for that might be because if they tell you straightforward, then it gives candidates a chance to "fake it" just for the job when they might not be the best candidate.
An X shows up next to the preview/unfold when hovering, and allows you to delete the preview, at least in the full desktop app.
This is something I've entered my email into after at least a year or so. Great presentation and design and I'm sure it's good content too -- I'll get to know over the coming week :)
yes we are and it indicates the man is nonsense.
edges2cats is already way too fun. Thank you for the link!
can vouch
Super fascinating that meal timing can be so important. I had heard this before but shrugged it off as some kind of diet fad, but I can say from a personal level forcing myself to eat something every 60-90 minutes has really really helped my energy level. In general I have heard that you should not wait more than 4 hours between some kind of consumption.

The fact that it helped so much deeply disturbed me. When I was tired I would just have cup of coffee. Sometimes I still do, but simply having an “RX Bar” or some almonds can be just as powerful. That’s the level of effect we’re talking about here. In ancient history a topic that came up again and again was that many emotions originated in the stomach. I can see how they might have gotten this.

Also for dietary advice in general recommend the book “How Not To Die”. It’s a good book, but the extreme ethical standards of the author and his desire not to get involved in the fitness industry make it even better than usual. It’s good for general diet advice as well as also preventing the chronic diseases which are so hard to treat after a certain point.

How Not to Die: Discover the Foods Scientifically Proven to Prevent and Reverse Disease https://www.amazon.com/dp/1250066115/
One dev I worked with asked the following question at the companies he interviewed at (he got offers from all of them, btw): "What percentage of your co-workers would you like to see fired?"

Most interviewers responded in the ten percent range. One notable exception was a place where they responded with "fifty percent" -- I can't imagine what it was like there.
Not much you can do other than fight a war of escalation.

If you want to give the phisher lots to do, create say 10 versions of your site where the html/css/js are tightly intertwined. Such that html version "a" only works with css/versiona.css and js/versionb.js. Mismatches create a site you can't view, interact with etc.

Then, for each version, put your countermeasures in your main js and css files, and tweak your site so that it doesn't work at all without those main js and css files. Add subresource integrity to the each version of the main html that pulls them in. Obfuscate each version of js and css.

And vary up the countermeasures per version. Like displaying the bitcoin address with css (selector:after {content: 'abc'}, with an image, dynamically with obfuscated javascript, etc).

Round robin which version of the page is served. This will make caching anything hard for the phisher, and the variations of countermeasures might get them to find a softer target.

Shitload of work, though, just because some ahole wants to skim money.
LLVM is big, heavy, complicated, powerful. Kind of against the spirit of writing a lightweight C compiler. On the other hand, an x86 assembler can be easily implemented by one person and requires minimal cpu and memory resources.
From Academic to Biotech Startup Co-Founder
Does your concern about an interviewer misinterpreting the intent of the question change if the asker presents as a white man?
> The worst is when they go for the blue/orange palette.

http://theabyssgazes.blogspot.com/2010/03/teal-and-orange-ho...
Except they don't have the talent, the knowledge, or the incentives to educate people properly.

They have the incentive to create a job pipeline for their own companies.

Amazon, Microsoft, Apple and Facebook have exactly one thing in common: they're all big tech giants that exploit workers.
Regarding union: Say you have

char *p

You definitely can’t do

union { char *cp; int64_t *ip; } u;
u.cp = p;
return *u.ip; // bad

...because the undefined part isn’t casting the pointer, but reading through it. Nor may you read through a pointer to union, if the memory was not already typed as that union type:

union { char c[8]; int64_t i; } *up;
up = (void *) p;
return up->i; // bad

(...well, you probably shouldn’t, anyway. One of the clauses in the C standard seems to condone it, but a WG document[1] suggests that the clause is just misworded, meant to allow accessing a pointer to a structure field with the field’s type, but allowing the opposite instead. And suggests that it will be fixed in future standards. Who knows, though.)

You can do this:

union { char c[8]; int64_t i; } u;
for (int i = 0; i < 8; i++)
u.c[i] = p[i];
return up->i; // ok

But that’s more verbose than memcpying directly into an int64_t, and the compiler will optimize both versions into a plain load (as long as the target arch supports unaligned loads), so there’s not much point doing it that way.

If your data was declared as a union in the first place, of course, that’s different. But the OP was asking about strings, so I assumed the input in the C case was just a char *.

[1] http://open-std.org/jtc1/sc22/wg14/www/docs/n1520.htm
Are you a remote worker yourself? It's probably going to be hard to understand the problems if you haven't experienced them yourself.
GiveDirectly is interesting. After Hurricane Harvey, they simply distributed cash to affected people. It would be quite revolutionary to see them integrate with something like Zelle or Square Cash in the US, BitPesa in Africa, or Paytm in India to do feeless peer-to-peer transfers or lending of cash to anyone with a mobile.

https://www.givedirectly.org/
Scientists Are Just Starting to Understand Earth’s Eighth Continent, Zealandia
> Suggesting that everyone introduce four hops of latency or that we all participate in a multi-billion device DHT (which all just translate to "much slower" to the typical user) is just not a practical solution to these problems.

DHTs can actually scale really well.

But systems don't have to be fully distributed to be less centralized. For example DNS stakes out a strong middle ground.

The problem with e.g. Facebook is that it's a closed system. You can't "apt-get install" a Facebook daemon and run your own Facebook server whose users can still talk to the people using facebook.com.

Part of the reason for that is the law but most of it is just network effects. Most people don't use GNU social because most people don't use GNU social.
I agree it's good to point that out and add your examples to the discussion. But the article struck me as fair:

-It's first and foremost a profile piece of a man who is definitively right-wing and has major ties to right-wing donors and interests.

-It had a wary narrative on Pauling as well, who is clearly indicated as left-wing.

-It offers warnings about alt-science in general in the closing paragraphs.
Curious—that book just caught my eye at the library. Time to go pick it up.
It is the closest healthcare system in the developed world to free market capitalism since every other country has socialized medicine; a system much more free-market than ours would create an untenable hellscape for the vast majority of the population that would be voted into oblivion or cause massive riots and death. We sit at the most extreme free-market end of possible healthcare systems that could feasibly exist in reality.

Imagine a true free market healthcare system. Or just one step further than ours: no medicare. Imagine if every middle-aged middle or lower class American had to, as their parents age and require more healthcare than anyone can feasibly afford, choose: bankruptcy and permanent insurmountable debt, or watch your parents die knowing you chose not to stop it. What glorious freedom.
Great work, really! Thank you so much.
REPLs are super nice, TDD is super useful, but neither of them either preclude or obviate the advantages of static analysis. Although in practice, none of the popular statically typed languages has a standard REPL (except maybe TypeScript?) which is really a shame.

But I agree with you that it has nothing to do with smart vs. less smart.
I only put on my resume things that provide value to the potential employer. I was a chef in restaurants and on a yacht for 17 years before coding but on my resume, which is only one page, all that experience is included in 2 lines at the bottom because it doesn't show anything of value beyond my coding experience for the type of positions I was applying for. If I apply for a management position, my executive chef experience will take up a second page.
Unthinkable ( http://www.imdb.com/title/tt0914863/ ) is a good film with Samuel L Jackson that covers torture and how far is it 'right' to go.
For everyone else who doesn't know what "6/4" refers to, it refers to the date of the Tiananmen Square protests:

https://en.wikipedia.org/wiki/Tiananmen_Square_protests_of_1...
I like the idea. It is something that we may buy at my job, but it being "cloud based" is a deal breaker for us, any plan for some self hosted version?
Kinda neat, isn't it?

We actually approved a change in our constitution because of the current situation. Our current govenor, he's an idiot, was elected with 34% of the votes. The previous election saw him win with something like 38% of the votes.

So, we had a referendum on the ballot and we will now have run-off voting.

I can, within reason, live anywhere on the planet. I've enough resources to get resident status and citizenship with pretty much every country. I retired and looked all over. I didn't 'settle' on Maine. I think that confers a negative view. So, I picked Maine because it best suits my needs.
Thanks! As much as I can market just about anything, I’ve never been good at making things to market. Appreciate the insight!
I'd say you're right if we'd talk about a junior dev, but not when talking about a seasoned senior.
Hmm, I am a couple years out of college and therefore fit the definition of "senior developer", so perhaps you are right, and I just haven't noticed the effects yet.

But right now, things are really really good for developers who only have a couple years of experience. But perhaps that is going to change as all these junior devs become senior.
No markup for cost of capital e.g. factory equipment to manufacture something?
Typing Higher-Order Components in Recompose with Flow
Suppose postdoc X submits a terrible review to a conference. Conference committee member Y requested the review from X, and thus learns that X is a bad reviewer. Later on, Y's colleague Z is considering hiring X for a faculty position and asks Y about X. Y tells the story about the terrible review. X doesn't get the job.
Δύσκολη έξοδο στην Νέα Σμύρνη ο Ολυμπιακός
Порно видео ролики смотреть онлайн бесплатно на Pornuha.xxx
Instead of hiring a tour guide, use one on your phone
Thanks for that link, I hadn't seen this before. Very insightful to read the words of Woz on this; inspires such great respect.
That didn’t really have a bearing on the tulip mania.
What if he instead made a more reliable setup and recipe? Then someone could make a lab and rent it out to people wanting to make their own stuff. It would still be DIY but it would be in a more controlled environment. This model does involve some risk to the lab, but hey have the renter agree to binding arbitration or something.
It's in the same vein as Plank's quote:

> A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it.

aka "science advances one funeral at a time"

But of course the "entirely" is taking it way too far.
How is that preventing you from doing what you want to do more than not socializing does?

You're simply being forced to choose between two things you want, because you can't do both. That happens even when you're alone -- or at least, I haven't figured out the correct method of writing in my (paper) journal and taking a shower at the same time. Or taking bong hits while swimming. Or napping while playing video games. Or....

This doesn't sound like you're being prevented from doing what you want, when you want -- you just can't do two things you want at the same time. But this isn't unique to socializing.

(It also sounds like failing to take responsibility for your choices so you don't have to deal with being forced to choose between them and can blame Them for forcing the decision.)
looking for a side project
Cross-purposes only in theory. Scientists are made of people.
If anyone's interested in a fiction that partially explores this try Corey Doctorow's new novel Walk Away [1]. It's about people who 'walk away' from regular society. They to create their own high tech society because they completely ignore IP rights, and instead aggressively share techniques using the wiki model.

1. http://amzn.to/2ymP8EM
The amount of on chain transactions supported by a global mining network is fixed. You can’t just keep adding side chains or else you will run into the same scaling limits.
You seem very strongly invested in this point, which is strange considering how easily refuted it is:

Property existed long before third-party regulation.

Rather than ownership being enforced by a third party with monopoly on violence, it was enforced by the threat of escalating violence from the property owners themselves.

Eg. You take one goat from my herd and refuse to give it back, and we are now at war. Result: Nobody takes any goats.

So the property was defined by mutual understanding and mutual enforcement, not regulation.

This is still done in some societies and sub cultures (Eg. Criminals). Even animals do it, with things like territory or sharing food from a kill.

A mutual cultural belief in property strengthens this mechanism and makes it work more smoothly. This cultural belief is part of what ""free-market" types" (sic) would like to spread.
Thank you for that, I had no idea he streamed. The Witness is one of my all time favorite games.
Rider 2017.2
His newest is RV128IMAFDQC emulator https://bellard.org/riscvemu/
Really? That's high school chemistry in this part of the world
Streisand effect is a beautiful thing.
The drug was repatented with the delivery mechanism, as soon as the original patent expired.

It's the usual practice to keep novel delivery system/drug combinations off the market until the original drug patent expires, thereby extending the profitability of the patent, at the cost of users suffering medicine that is consequently decades out of date.
People trying to game the rules come from all sorts of different backgrounds, so my concern wouldn't really be affected.
I'd love for a lot of the pieces of my problems to be solved.

I think our industry forgets that solving 50% of the problem is still a big improvement over having the whole problem.
Glad you found my writeup useful, and your CT stuff sounds interesting. You may also find https://github.com/google/xi-editor/issues/250 interesting, especially the TODO list of optimizations.

Yes the Xi CRDT (closest we have to a name) is based on Raph's work, plus some discussions we had and about one week of me standing in front of a whiteboard figuring out how to apply the concepts to doing a merge on Xi's specific CRDT structures.

Currently Xi also stores many bytes for each character typed, but one of our planned optimizations is to delta-encode chunks of old revisions. The operations are stored with fields that are designed to delta-encode efficiently so for runs of normal insertions we should be able to get down to ~2 bytes per character.
Yes, and Dropbox (& others might too) offers to listen to PrtScr and save in Dropbox/Screenshots as image automatically, without using paint or anything.
I’m having a hard time loading any puri.sm articles. Anyone else having a problem?
I've followed the first ~50 or so videos mainly because I'm interested in 2D game design and game physics at the basic levels (writing engines and physics).

Commenting to ask if anyone has additional resources / streams / guides on those topics they can recommend.
Industry develops and retracts chemical classes in waves without seeming to absorb the larger lesson.

I've studied environmental and industrial chemistry and I'm not sure exactly what larger lesson the author thinks was available for the taking but left unabsorbed by industry. The highly halogenated structures that dominate persistent organic pollutants (it's the multiple fluorine/chlorine/bromine atoms that cause persistence, not the benzene ring) were largely developed in an effort to improve human welfare. PCBs were not flammable, so safer for use in hot transformers than earlier plain-hydrocarbon dielectric fluids. Polybrominated diphenyl ethers show up in furniture and clothing because they are effective flame retardants. They became ubiquitous in direct service to human safety. DDT seemed, initially, like a miraculous savior of human health and crops from harm by insects.

After many real-world cautionary examples, the availability of better bench screening assays, and the development of quantitative structure-activity relationship models, today we can have a pretty good idea of whether a compound will be an endocrine-disrupting persistent organic pollutant before it becomes a high volume industrial product. None of these lessons or tools were available in the first half of the 20th century when these chemicals entered the mainstream of industry. Animal tests were around, of course, but the insidious thing about a lot of POPs is that they don't have obvious, acute health consequences. The LD50 may be quite high. If you're just trying to figure out "will this kill exposed workers/consumers," the assays won't reveal that (e.g.) long term thyroid function suffers in exposed mammals, or see endocrine effects that interfere with sexual organ development in young animals. You don't know what you don't know.

All that said, I certainly can and do criticize the modern chemical industry for foot-dragging, delaying tactics deployed against regulating chemicals that have demonstrated obvious ill effects in animals, or that are so structurally similar to other POPs that they really shouldn't maintain grandfathered approvals. It took until last year for the EPA to regulate perfluorooctanoic acid in drinking water, whose formula alone should ring chemists' alarm bells with regard to bioaccumulation and persistence: https://en.wikipedia.org/wiki/Perfluorooctanoic_acid
https://news.ycombinator.com/item?id=15437697
First of all, that has nothing to do with the UNIX philosophy, second of all, it has nothing to do with type theory. Anyone is perfectly capable of implementing a Maybe/Option/whatever type in C, allocating it on the heap (because you wouldn't be able to return it if it were stack-allocated), and then returning a pointer to it, whereupon C's actual type system would happily complain about mismatched types if you tries to use this type without deliberately accessing its internal members, at which point you're doing exactly as much intentional effort as if you used a convenient accessor macro that checks to make sure it's not the nil case. While I agree that C (and its type system) could be much better, fixing the problem is not quite as simple as "just design a better type system".
I wrote http://pythonsweetness.tumblr.com/post/119568339102/block-ra... because I had the same problem, maybe see if it works for you
Newcomers to the show will not only be treated to the finest, most beautifully understated sitcom of recent years, but also to the best depiction of male friendship anywhere in contemporary popular culture.
That's what youtube 1.5x / 2x speedup is for ;-)
Its absolutely nuts. With all the housing pricing problems we have in the US its crazy to me that we don't have HSR popping up everywhere to ease restrictions on commute.