jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
It's important to highlight that your code reviews are reviews of the _code_ and not him as a person or his character. You're both trying to make the best possible decisions to ensure that the product is stable, minimize the amount of bugs (and therefore toil), reduce the on-call incident rate (if you're in an on-call rotation), and teach/learn from each other. You're _not_ trying to change/review each other individually. People automatically have their defenses up if they feel like you're criticizing them.

As others have mentioned approach matters a lot. Saying "this is wrong, make it X to fix it" will be received poorly most of the time. Instead you can phrase it as a conversation in the form of "What do you think of refactoring this endpoint to follow the conventions we follow throughout this repo [link to examples]. It'll make the codebase more consistent and easier to follow along for others" or "I believe using `new Buffer()` has some security issues and has been deprecated [link to deprecation notice]. We can use `Buffer.from()` instead which has the same interface." (this examples are trivial but as things get more complicated who knows... maybe what you thought was right is incorrect)

For minor things such as formatting preference I strongly recommend getting a linter/formatter at stick to what it chooses. Make sure your CI enforces its formatting.
yes you can the default shortcut for turning it off and restoring everything to a single virtual destkops is
MOD + T
I hope you at least agree this isn't a bug that should go unfixed for 7 years.
Maybe I lost the physical artwork and I'm selling it to a forger. Exactly nothing ties an NFT to the real world object it is associated with.
Holy cow, I'm a very casual gamer, I was excited about the game but when it came out I decided I don't want to wait that long and I'll wait until they sort it out. 2 years later it still sucked. So I abandoned it. But.. this... ?! This is unbelievable. I'm certain that many people left this game because of the waiting time. Then there are man-years wasted (in a way different than desired).

Parsing JSON?! I thought it was some network game logic finding session magic. If this is true that's the biggest WTF I saw in the last few years and we've just finished 2020.

Stunning work just having binary at hand. But how could R* not do this? GTAV is so full of great engineering. But if it was a CPU bottleneck then who works there that wouldn't just be irked to try to nail it? I mean it seems like a natural thing to try to understand what's going on inside when time is much higher than expected even in the case where performance is not crucial. It was crucial here. Almost directly translates to profits. Unbelievable.
You'd have to do that globally to be successful. Otherwise you'll just drive producing industries to countries that don't care (Russia, for example).

Effectively what would happen is high CO2 parts (such as concrete) would be manufactured in a country that doesn't tax it. If you say "Oh, well we'll just tariff it!" then the next step would be to ship it to a country without said tariff. That country could then move the goods directly to the taxed nation or it could ping pong a bit till it reaches it's end goal.

Would that raise prices? Absolutely, but probably less than the $100 tax would. All the while increasing the amount of CO2 emitted due to all the shipping that would occur.

And, if you don't think that would happen, just look at how it's worked out with child labor laws.

The balancing act would be to tax hard enough to make industries want to decrease their emissions, yet low enough that importing isn't more economically viable. As a bonus, you could spend that revenue in building out clean energy sources to effect change faster.
Yeah, there are a few comments in this thread that reek of bad faith acting. How do we objectively examine the physics and chemistry of our planet's heat and atmosphere when we have GOP denialists and shills sharking around in all of society's public squares? On the one hand, we have concerned, career-scientists who want to help animals and plants and their home planet; on the other hand, we seem to have those looking to make a buck or be contrarian or take denialist views because that's what the GOP does, and people seem to take all the views of their side these days.
Location: Austin, TX
Remote: Yes
Willing to relocate: No
Technologies: Python, SQL, Java, Javascript, React, Linux, Docker, Postgres, git, AWS
Résumé/CV: https://www.linkedin.com/in/harrelchris/
Email: harrelchris@gmail.com

Prefer backend, data analysis, or data engineering role but open to fullstack.
No problem. I'm glad to say that I was in when it counted! The others... well, that's their loss. Again, love what you're doing. Please keep it up.
Why should we? Honestly they live better than the bottom 70% has ever done, they have access to fresh fruit and healthy meat even in the middle of winter, they have heated houses, indoor bathrooms with flushing toilets, roofs that doesn't leak and better medical-care than in any other period in history.

There may be bigger differences between the classes than there were 40 year ago, but thats a strawman - progress is measured in whether or not you advance, and doesn't depend on whether or not your neighbor advances more.
Humanely killed from whose perspective, ours or the animals'? I'm guessing if we could ask, most animals would prefer to live regardless of how painless their death would be or how enjoyable their lives were up until that point. I eat meat so I don't have a problem with killing animals for consumption, I'm just trying to understand the whole "humane killing" idea.
Reposting my thoughts from Reddit:

As a vegan I'm sad on two fronts.

a) That some vegans see the need to attack someone in this way.

I know some vegans consider (including myself) see it as a deeply moral issue. However, I'd rather be like Ghandi than a fundamentalist. First and foremost, we can't help how we are made. I can't understand how it is immoral to care for oneself first. That said I personally haven't suffered adverse health (quite the reverse).

b) The fact that my choice for me causes some people to want to knock me down.

Time and time again, I find my veganism attacked by people who aren't vegan. Whether they make a joke of waving their meat meals in my face, or attack my moral/ethical/dietary stance. It seems like a lot of people who are omnivorous either feel guilty about it or simply don't like the idea that I have chosen a moral stance stricter than their own. I find it disappointing, both in the title and the comments of this thread that people seem to want to take me down a peg for my beliefs.
We're slowly adding more ES5 features to JavaScriptCore. While Object.freeze is not in yet, we do have Object.defineProperty, which you can use to make individual properties read-only and non-deletable. Once Object.preventExtensions is added, freeze and seal should be trivial.
Thats one way, but honestly it is far from the best.

The only part where people matter is that they have to be more impressed by you than any other candidate - the best way to do so may be to smooze with them, but honestly you should only do that if you can't impress them by writing a useful program, or design an nice website.
So is Europe. But do you really want the US to be relative to China as Europe is relative to the US?
Quality for Chinese products varies, though. A friend of mine uses as a main phone a chinese one, mostly because it can take two sim cards (i.e., two phone numbers). It's good enough for daily, intense use, and as a bonus and laugh factor it also has an antenna and TV included.

That said, my experience with Chinese products and parts has been less then satisfactory. I guess we don't really have any way to discern good products from bad... no "brand recognition" to speak of. It's too bad, because I bet there are a lot of good companies out there making good products.
Look, veganism is a preference, not a religion.

For me, the salient facts are that eating animals and animal products is a) ethically questionable and b) avoidable.

But it's just a choice. If I go round someone's house and they've cooked me an otherwise vegan meal but put cheese on top, I'm not going to be a dick about it, I'm going to eat it. Food isn't magic. Maybe this makes me not really vegan, or a "bad vegan" or whatever, but I don't know or care what the rules are. I don't even know any other vegans. It's nobody else's business.

I know it's a privilege to be affluent and healthy enough to be able to be selective about what I eat, but I choose to exercise that privilege, just as I choose to exercise other counter-evolutionary privileges like using contraception and not murdering people who annoy me.

Could I do more? Could I be a better person? Certainly. Always. But doing this much is so easy that it's a no-brainer, so that's how much I do. Maybe I'll do better tomorrow.

I feel kind of shocked and alienated by how aggressively negative some of the posters here are being about that choice.
I got this but still at end it say check it
"Most commonly, students want to know if they can start their own businesses while on OPT. The SEVP explained that it is possible to be self-employed, as long as the nature of the business relates to the student's degree program and the student is actively engaged in this business. If self-employed, the student must work full time. While not specifically stated, this is likely to be an area in which the documentation of employment and the nature of the activities could be reviewed closely. So consider the risks and discuss the possibilities with your immigration counsel."
First, congratulations!

I would demystify the process of creation. Show them your wireframes, your pencil sketches, talk about the business v. creative push and pull. Make it interactive - break them into groups of 2-3 each for 5 min and show them Notch's time-lapse in the background on projector while you have them work on exercises in ideation - what would their game be? what would the levels, characters, and challenges be. They don't have to present - just get them comfortable with the first step of creation - putting it on 'scratch' paper.

If you have time, deconstruct Flappy Bird. The scrolling left to right background v. making the bird move. How the object detection is greatly simplified when you have only one coordinate to detect (y-bird and y-pipeTop/y-pipeBottom). How adding gravity to the bird (downward velocity) allows you to fly the bird.

"Making Metagun" by Notch
https://www.youtube.com/watch?v=ZV-AFnCkRLY

"Creating Prelude of the Chambered" by Notch
https://www.youtube.com/watch?v=KcfFJ6pNEZk
For what it's worth, I tried to run the CloudFoundry release on my local BOSH installation and it froze my Macbook. I'm sure it's very useful in cloud environments or on beefier machines, but it's not very useable for local development vs something like Docker which doesn't require a bunch of VMs.
A hand-written lexer should beat most table-based lexers. Hand-written lexers encode the automaton state in the program counter and encode the transitions in code branches, whereas table-based need to use a separate variable and encode the transitions through an indirection followed by a loop.

Parsers are a different kettle of fish entirely though. You hypothetically compare a handwritten parser with a "fast" generated parser. Presumably a handwritten parser will be faster than a "slow" generated parser?

If the language to be parsed is simple and has no ambiguities that need semantic information to resolve (this is not the case for C, for example, never mind C++), a generated parser may save time. Would it be faster than a handwritten parser? I have my doubts, for similar reasons as lexers. The automaton state is stored implicitly via the program counter, and state transitions are in code: similar arguments apply. If the handwritten parser is doing more busywork, such as a lot of recursion to handle precedence in expressions, then it may be slower. But if it uses precedence parsing just for operators, it can get that back, while not losing the benefits of recursive descent style.

OTOH, if you're trying to parse a fairly ambiguous language, you can save a substantial amount of effort with a parallelized LR parser, something that builds a forest of parse trees and discards options that are no longer feasible when more information comes in: a Tomita or GLR parser. Parsing such languages with recursive descent typically involves a lot of extra work building up semantic info as you go, or parsing a simpler form of the language and rewriting with disambiguation later, after further analysis. But GLR parsing is O(n^3) in the worst case. Hand-written may be a lot more work, but it might also be faster. It depends.
Very true. I've seen software and consulting firms with the worst systems and processes because anyone good at them was working externally not internally.
http://www.mequonsteve.com/regency/. Very cool.

It was only manufactured for a year and sold for an astonishingly high price (for the 1950s) of $49.95.
The tidbit that surprised me most is that Steve Jobs gets a greater fraction of his wealth from his shares in Disney than he does from his shares in Apple.
I attended both UCSD (undergrad) and UTCS (PhD), and UT Austin is light years ahead in terms of fostering entrepreneurship at the academic level. Examples: UT had one of the very first business plan competitions in the world 30 years ago (MootCorp) and it created the very first tech commercialization competition 10 years ago (Idea2Product). My personal experience is that the university administration (president, VP of research, Austin Technology Incubator, deans) is very encouraging in regards to any and all entrepreneurship efforts - the major obstructions have come from tenure-track professors. Most research professors consider exploring startups a waste of time, since it does not directly lead to publications.

Another example is that as recently as five years ago, UT's business school (McCombs) discouraged their graduating MBAs from diving into startups. Reason: their rankings were heavily influenced by the salary their alumni rake in immediately after graduation. So the official party line was to encourage them to go into big business with a cushy salary. Luckily that's changing now.
I think the key point is that customers are very different and that currently "broadband" is sold as a single type of product.

The person who downloads a few songs and videos and checks email wants a very different product from the person who is constantly uploading torrents.

Net neutrality is mostly just FUD though b/c with the exception of protocols that specifically exploit "shared bandwidth" pricing, it's unlikely to impact anyone (since consumers do like choice). Even my google/bing example is quite farfetched, b/c it's not likely worth enough to Google to subsidize bandwidth just to get search clicks, and in any case Comcast could sell Google analytics data without having to restrict anyone's choices.
I sort of doubt it. From my experience at Overture/Yahoo there were certainly multiple classes of words where advertisers were willing to pay more than $20 (cars, jewelry, mortgages (at the height of the bubble), lawyer services (particularly malpractice and mesothelioma, which was the highest priced keyword for many years)).

OTOH, maybe AdSense is limited to $20? Contextual advertising is a lot less valuable than search advertising.
Diggz vs McClure - cage match, $5 entry.
You could frame the report in terms of "How in equal are people in terms of the ability to generate wealth honestly?". I don't think the report mentioned anything about stealing, cheating or coercing.

A janitor in Australia makes a whole lot more than a janitor in India, and is able to save a lot more after consuming the same amount of goods, for example. Both earned their wealth honestly but why is one wealthier than the other merely because of living in a different country? Statistics like these can provoke some good questions.
The first rule of Apple software quality is that you don't talk about Apple software quality. All Apple software is, by definition, perfect.

Look at Rolex watches. They're a pure status symbol. They don't keep time all that well. Rolex doesn't even submit them for Swiss chronometer certification any more.
You seem to be thinking of this as a parallel military/policing effort. I was thinking individual/social. Things of low cost, and hopefully with other benefits - such as keeping community members feeling engaged and included, providing an environment conducive to less violent memes, things of that vein...
See comparison here: http://www.gnu.org/software/parallel/man.html#DIFFERENCES-BE...
> fact is businesses need contact information to make money. Upsells, deal emails, etc.,

Fortunately, there are plenty of exceptions to this rule. For example, price comparison websites (I built, ran and sold one) need nothing of the sort, it's just a mediocre marketing tool (your users are much better at recommending your product than you are!).
I had a lot of WindowServer crashes with my 30" external monitor at work when I upgraded to Yosemite. Found huge discussion threads on it on Apple's forums - it's been fixed in 10.10.2, so if you get on the beta channel for updates that should hopefully solve it for you. It fixed it for me and the latest beta seems solid. It was happening to me every time I unlocked my computer, and I would lose all my windows/tabs - maddening.
Quoting from bartender Jeffrey Morgenthaler's recent book:

> My experience using these has resulted in more than a few cracked ice balls, whose deep fissures essentially increase the surface area of the ice ball, negating any benefits in that department.

I had pretty much the same experience with my molds (I was using the Tovolo brand, rather than the one you linked to, though).
Sure: As I remember from my college physics
course in electricity and magnetism (E&M),
a series wound electric motor has,
with the simple mathematical model,
infinite torque at stall, that is,
not yet rotating. The torque falls
off from infinity
quickly as the motor starts to rotate.

So, yes, the Tesla can get some
fantastic acceleration from a standing start.

Also, yes, as used in some ocean going ships,
it can be good to use
Diesel-electric with no
transmission. That is, the Diesel
engine drives an electric generator, and the
electric power from the generator
drives the electric motor to drive
the propellers and move the ship.
In this case the motor-generator
combination provides essentially
an ideal transmission -- "Look,
Ma, no gears!".

Tesla has done better on both power
and range than I expected. Good
for Tesla.

But I would still be concerned about
battery charging time -- there's no
royal road shortcut to the energy
that 4600 pound car needs, even if
the braking captures kinetic energy.
Or, driving at highway speeds requires
pushing air out of the way and, then,
putting a lot of velocity, thus,
kinetic energy, into that air.
Also will want A/C or heat for the car,
and that's more energy.

So, the batteries need to store a lot
of energy. Then to charge the batteries,
also need a lot of energy. Do some
simple arithmetic and can discover
that charging via
100 A at 240 V in the garage of a house
will result in hours of recharging time.
Okay then use a charging station:
For a full charge in just a few minutes,
that will be one heck of a powerful
electrical connection.
And, that charging current has to
pass through the batteries which
traditionally heats the batteries.

Next worry: How long with the
batteries last, and how much
does it cost to replace them?

So, mostly I'd be concerned about
recharging time. For a trip to
Grandma's 900 miles away, with
a range per charge of 200 miles,
charging time will be an issue.

But Tesla's done better than I expected.
Electric power steering / steer by wire systems still have a backup mechanical link. This issue here is the backup when in self-driving mode, where nobody would have their hands on the wheel so you couldn't rely on that link. So instead you have to have a second system as a backup instead.
That's not particularly Haskell specific.

What's more Haskell specific is recognizing many problems can be solved easier when seen through the lens of parsers, interpreters and/or compilers.

Haskell's and the whole ML family of languages are great at writing parsers etc. In fact they were originally invented for implementing other languages.
I agree with all that.

The only way something like PDDB would work in practice to help the people intended, is for the software to become very widely used. For example, where everyone stores their pornography in a PDDB.

In that case, you would also store some porn in your PDDB, and would give up the password to that with little coercion. If they can't then prove the existence of more information, then you might be let go without too much damage.

Obviously, you shouldn't be storing porn that is illegal in your (or most other) jurisdictions in the first level of your PDDB.

In any event, good luck trying to get even a fraction of normal users to install and use this software. Even if all the Linux distros include it by default, I don't think that would be enough, that would just widen the target to "all Linux users" in oppressive country A.
Is that dump going to be maintained under the new regime? While they can't redact existing data bumps due to the license those are covered by, they don't have to keep publishing updates. If that happens then scraping becomes required for the copy-spam sites and such.

Though that is a bit conspiracy-theory-y and I expect blocking Tor is more an issue of a small but very active number of people using it to create accounts to post anonymous spam or abuse. For that, which can be a very real problem, I would suggest a more fine-grained block: stop people from those addresses creating accounts, or posting from relatively new (or recently inactive) accounts, or perhaps somewhere in the middle: prevent connection from Tor addresses posting at all, but still let people use the site. That way you still block the abuse, but have less impact on others accessing via Tor.
What is obvious today might not have been obvious in 1996.

Our experiences and training has changed dramatically over the past 26 years.
Looking for a job in a particular programming language, without saying anything about the problem domain, seems weird to me. But I suppose I'm unusual in that I've found a problem domain (accessibility) that I deeply care about, and will cross languages and platforms to work on projects in that domain.
Its not behind a flag in Chrome as I've used it in Chrome as well as the caniuse table agrees.
You don’t. More than twenty years in and I’m certain that “passion” and “purpose” are gilded carrots used to misinform and sway the naive when used by capitalists. You won’t find purpose in a capitalist society.

You’re more likely to find a decent trade of your time, skills, and social connections for money, stock options, bonuses, and a benefits plan.

Treat it like a mercenary and you’ll do okay.

Now that isn’t to say that you, an individual, cannot find you own passions and purpose. These come from within and you won’t find them validated in a capital market. Know what they are and try to align your opportunities with them when you can and you can go pretty far.
O'Reilly books were once a major part of my adult life. When I worked on a daily basis in Lower Manhattan, I bought nearly every O'Reilly book about UNIX tools and languages. Most often, I bought two copies: one for my desk at work and one for my home office.

The first purchases I made at the very beginning of Amazon.com were O'Reilly books, two copies at a time. Initially this was because the Borders Bookstore at 100 Broadway didn't have the book I needed yet, or didn't have two copies. I still have a few of the Amazon.com invoices in a storage box, somewhere in my utility room.