jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
A lot depends on the product you are manufacturing, and the relationship you have with the manufacturer.

Business in China operates via 'Guanxi' [ http://en.wikipedia.org/wiki/Guanxi ] - which losely translates to a heirachy of: family first, then friends, then people from the same town, then of the same province, then of the same country, and then, the lowly gweilo / white devil.

If you don't have previous contacts or a solid history in China, you fall right to the bottom of the stack - meaning you'll have a bad price, bad negotiation point, low priority in the factory, and ripe for being 'disappointed' with your experience.

Likewise, many people who outsource manufacturing to China hop on alibaba, find a manufacturer with a low per item cost, and think they've cracked East/West trading. Not so. There are many, many hidden gotchyas involved - ranging from child labor, poor conditions, the 'factory' you chose isn't even the manufacturer, to hiden nasties in pricing / shipping, etc.

There is a large misconception that products from China are junk. This is partly true. Some products from China are junk - simply because the Chinese can and will manufacture according to the resale price specified by the buyer - that is to say, you.
When you buy a $1 item from WalMart, and you know its price 'should be' $5, you contribute actively to this problem. Want to see a great product made in China? Look at your Apple device.

If you're contemplating doing business or manufacturing in China, there's a few basic things to do to avoid common pitfalls:
1. Visit your factory. Fly over, arrange meetings with 4 - 5 similar factories, and inspect them all. If something seems suspicious, return unannounced to see the reality. This is really, really important. Meeting clients and relations are very, very important in China.
2. Understand / learn how Chinese do business. If you don't have local contacts, consider finding a local broker to do the hard work on your behalf, and negotiate Chinese/Chinese (See Guanxi above). Due diligence here is important.
3. Plan for 12-month development cycles. If you're in a big factory, you're competing with their big clients. Most manufacturers plan in 24-month development cycles, so plan at least in 12 month cycles. This is just common sense.
4. Factor in shipment prices / shipment terms. Learn the difference between EXW / FOB / etc. These make huge diffrences to your bottom line. Remember for production runs to have shipping insurance / liability insurance.
5. Don't fall into legal issues: ensure you know what and how your goods are manufactured. Making toys / figurines? Make sure your factory is certified to make them, or be able to live with the consequences.
6. Be realistic about your MOQ. If you're looking for 5 items, don't look to China - you'll only waste your time and the factory's time.

Like any decision in business, you need to consider what works best for your business.

Source: 30+ years of manufacturing hardware [locks, tools, etc], toys [figurines, plush, etc], and electronics [PCBs, injection moulded cases etc] in China.
I'd buy this phone if it had GPS & 3g/4g as well. It would be a great travel phone. Pop in a local sim, get connected with basic services, have directions available to me, and forget stressing about my expensive primary smartphone being either lost or stolen in another country.
What exactly do computerized record processing systems have to do with algorithmic trading, besides that both use computers to do the actual processing necessary?
That document actually says that YOU own everything you do outside of work, so long as it doesn't use company resources or is directly related to your work at company.
Perhaps I am too much of a simple country boy to be fully into the social media online thing, but there is a whole aspect of job hunting/employee finding scenario that is missing from our thinking here. Quite after the fact, I realized that I had been an unconscious networker and that in my multi-decade career that there had been a very low number of non-networked job landings. The rest, including the consulting/contracting that I have done were from the network I had grown into from previous professional relationships.

Being in a profession that automates things, we (self included) tend to try to automate things that don't automate well, or do things by remote control that should be done in person. One case in point was my son when he was in grade school. There was a lot of difficulty for all involved for him to focus on his homework. Finally, I hit on a pretty simple and essentially zero-technology solution. I would sit in his room with him, not supervising him so much as being there for him to ask whatever question he wanted. Many interesting questions came up, and some were even related to his homework, but his grades skyrocketed. This was about support and not about being the other room and loudly saying "get back to your homework".

So if you have a mental bias towards automatability, this method sounds "inefficient", but perhaps that is a false efficiency.

Similarly, successful hiring is forming a relationship. A relevant book is "Confessions of a Headhunter" in which the author tells of tracking executives for quite some time before an actual approach is made. Now that is particularly expensive as executives are a smaller percentage of a population than startup dudes and dudettes, but that seems to be a better direction to go than trying to do this by remote control.

Incidentally, the introduction to that book tells of the author's sailing experience in which he nearly won a race against severely better boats, and failed to do so simply because he didn't happen to think that he could.
That offer has been on the table awhile. I suspect they're desperate for top talent. I don't mean this in a bad way, but I highly doubt an impromptu conversation in this particular topic will be a winner.
Yeah, just reminiscing about the past. ;)
Agreed, I view it as more a low friction sort of thing and also thought that quote was off.
Ok, we'll use that latter suggestion above. Thanks!
If they weren't already-made in Julia yes (and a library didn't do the work of composing it and presenting as a monolith, since pretty much all large frameworks like Flux and DiffEq are also made this way). Although you're maybe trying to imply that everything that anyone needs is already made in python, I occasionally end up finding small issues between my use case and what's immediately available and I have to twist my problem into a stitch of "kinda what I need" pieces (like having to change my problem into a vectorization problem, a long chain of corrections using pandas to fit an interface and then some weird logic to transform the table into a CSV in memory to use postgres' COPY or UPSERT because pandas to_sql is not flexible enough and iterating and inserting is too slow). Sure I always achieve the result using already-made stuff, but the glue logic ends up taking more time and honestly ends up quite hard to maintain for other people (or even myself after a few months) after all it isn't my algorithm logic but some adhoc puzzle I just solved.

In Julia, if the DataFrame library is missing something I can just loop like an array and have a method that works just as well as if the library provided it, the CSV, DB and table processing libraries all use the same conventions so if library "A" solves my issue I'm not forced to use the same library "A" serialization method. Basically instead of twisting the logic to what I'm given, I just fill in the blanks. Sure Julia has way more blanks, but Julia also has half of the age of some of the Python's library I use, it's more about the maturity of the community than anything to do with the design choices of the language and I can only hope it gets better and better with time.
Here’s the comment that that one was a reply to:

> I believe there is ample research showing height and attractiveness (one could reasonably consider weight to be one determining factor in attractiveness) do play a factor in career success, compensation, and selection for leadership.

Look, only about obesity and height (and mainly height). To which they replied:

> I think it goes more the other way around. …

Which makes no sense because no one ever mentioned hair, so that can’t be used as a direct counter-argument to a comment about research on height.

Are we gonna continue this? This is enough for me.
My only theory is bro science tier idea that fat accumulate some toxins and then it released during weight loss.
Mate that looks like some grand theft auto cheat code you’re trying to type on the PlayStation to spawn a covid mask
VLC is GPL2.
" Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith. "

> Also, when we we ban an account, it's usually because of a repeated pattern of behavior, not just one comment. Had it just been one comment, I'd have warned rather than banned.

Exactly two of said user's posts were deleted (and they seemed quite mild), they did not get any warning. Also interesting how you did not reply to the user themselves.

Meanwhile you have actual toxic people like DanBC, tptacek, and a few others roaming around freely. Subjective and selective enforcement of rules is worse than no enforcement.
Err, out of all these incidents, half of them were not muggings and just elderly just being pushed and shoved to the ground.
Sorry, I actually intended to reply to the parent of your comment -- reposted and deleted my response just after you commented.

Parameterized queries aren't a panacea, but they seem to mitigate most of the issues. That said, a lot of people rely solely on them, thinking they really are. While certain things make the vast majority of attacks infeasible (e.g. using SQLAlchemy rather than any straight SQL), nothing can replace actually knowing about the security issues and designing solutions that are immune to them.
PSL: Public Suffix List

https://publicsuffix.org/

> A "public suffix" is one under which Internet users can (or historically could) directly register names. Some examples of public suffixes are .com, .co.uk and pvt.k12.ma.us. The Public Suffix List is a list of all known public suffixes.

> The Public Suffix List is an initiative of Mozilla, but is maintained as a community resource.
sure, which is why you handle those sort of things in your file-loading and memory-allocating routines accordingly. for high-performance game development you don't malloc() very often, and if you don't have enough memory to run the game, then you handle that by displaying a message or something and then ending the game. you only fopen() in a few specific places when loading resources, and if that fails, then either you made a mistake as a programmer or the user's assets are corrupted. either way, you display a message or something and end the game. in both cases, there's no need to pollute your entire codebase with the headache of exceptions.

like I said, this mindset might be domain-specific, I'm not sure, I haven't used C++ meaningfully for anything else.
Some SQL expressions can get extremely complex.
This one is just what you need:

Sudbery, A. (1986): Quantum Mechanics and the Particles of Nature: An Outline for Mathematicians.
Can you please follow the site guidelines when posting to HN, and the Show HN guidelines when posting to Show HN threads? Your comment breaks both of them, and is an instance of the snarky, dismissive culture that we're trying to avoid here. I'm sure you didn't mean it that way, but these things get upvoted, and condition the entire thread and ultimately the ecosystem.

https://news.ycombinator.com/newsguidelines.html

https://news.ycombinator.com/showhn.html
Echoing this. I visited Cuba when I was in college. While I was there the only way to access the internet is to buy an "internet time" card (costs like $2 and gives you 30min to 1hr online) and connect at a public hotspot.

It was actually quite nice being forced to disconnect. It's almost funny how quickly you go from wanting to know what is going on in the world to not really caring anymore, when it's out of mind you don't really think about it.
If you're not trying to build an SPA with them, not weird at all. For basic crossbrowser compatible interactive elements, vanilla JS and/or jQuery are/is more than enough. As long as it's easy to maintain, just use what you are familiar with and gets the job done.
To my understanding this plan should include the spouse and any number of kids up to the age of of 23 (age limit for the kids, not for the spouse of course). Dental care and eye care might be a bit limited in these kinds of plans. This means that you have to pay extra if you want more then the medical necessary minimum.
What is not "nice" about Element ?

I've finally had the opportunity to try it during Christmas, when I finally managed to convince a friend to try it, and I was very pleasantly surprised to the degree of polish it had both on Ubuntu and Android !
This stuff came out of the ground in the first place. What are we supposed to do about all the millions of tons of nuclear fuel just lying around in rocks and seawater right now?

What we need to do is evaluate the risks from all the current options. Fossil fuels, renewables and nuclear energy and come up with a balanced strategy. There are people dying right now from radioneucleotides released from fossil fuels, or just ambient radioactivity. It's a matter of relative risk.
Gun control is a uniquely US problem, at least in its current form. Yet this isn't going to have the same problem as gun control, for example, how easily can people obtain nuclear material?

And terrorists? Sure, but an explosive truck is probably easier than one of these. And if sales are controlled, then they won't have a domestic army of them.

In terms of hacking? 100% agree. It's why I find Tesla's OTA updates to be, frankly, insane. Full control of things like brake firmware has been demonstrated, with an OTA fix to brakes in the past.

This means that, along with autonomous modes, you could perhaps manage to (especially with an inside man), force-push updates, regardless of driver permissions, to all Teslas out there. And set them to run into everyone they find, just run over as many people as possible.

So there is tonnes of risk, and anyone thinking "Oh, they'll secure thing $x" is, IMO, a damned fool. Hack, after hack, after hack, after hack, proves this to be absurd.

We literally cannot lock down anything. Anything. Not CIA infrastructure, not any corporate infrastructure, not government infrastructure, not health care, nothing.

So I agree, 100%, robots with guns = horrid, just from that one angle. But I contend that they are cheap, and effective, so you can bet governments will use them.

The link?

Your reference to chemical weapons. I see the concern, yet I'm more concerned about genetically engineered death. And training people from (for example) China on how to do this, seems beyond absurd.

The future is biotech created death I think.

Another example, genetically engineered animals, designed to kill as well. How about mosquitoes, pre-loaded with viral payloads? What about bacteria which infects well water, and is literally impossible to ever get rid of, once in the wild? How about a fungus, which destroys wheat, which primarily the west eats, yet the east doesn't (rice)?

How about gut flora/fauna, which when fed (eg, when you eat), releases a mind altering substance? A poor fellow was infected with yeast, which made him drunk every time he ate, so imagine a genetically engineered set of bacteria which releases a mild hallucinogenic? One that makes it impossible to concentrate?

How will you cure this, if your scientists can't think straight? Or worse, what if it's an aphrodisiac? Let's try to solve a problem, when you can't keep your hands off of yourself.

I can think of so many endless horrors, and most of them biotech related.

https://www.cbc.ca/news/politics/china-canada-universities-r...
"what this car feels like to drive" is part of the A to B part though. It's engine, suspension, transmission, steering linkages. Passenger seating. It's not a software interface.
> None of those require or suggest the behavior seen in the video.

What! And how can you say the behaviors in the video is inconclusive proof of voter fraud!?! Or at least suggest voter fraud?!

Where's even the thumb drive? You've managed to see things from a few pixels and what commentators are saying what it is. What if I tell you, that's a bag of weed. Can you see a bag of weed? What, no? Can you see a thumbdrive? I can't!

> Actually lots of voting machines read the ballot and record the result onto digital media.

So... this lady, who looks like her job is to sit there and count mail ballots, also has access to the voting machines (which is nowhere to be seen near her in the video), and is allowed to have custody of the results for who knows how long, while she does other work? These assumptions would mean such lax security, that then sure, rampant voter fraud is possible. Next you and the entire fraud-founding Internet commenters will want to see the security procedures of the whole voting operation and that are to your satisfaction. I don't have all the facts and can't deny that maybe they are that mind-numbingly lax (in which case, as a supporter of a US government based on sanity rather than nutjob conspiracy theories, I would be worried that rampant and easy voter fraud benefiting Republicans happened), but don't you think there would have been Republican party officials who have actually reviewed said procedures and who would've said "Hey, why are you letting random people have custody of the digital results?".
Then you changed the semantics of the code. Now a program that e.g. prints a message in its destructor, which gives this output:

Message 1
Message 2
Message 3

Will give this output:

Message 3
Message 2
Message 1

Your odd/even fix also won't work, because a function may push an argument to a list, and pass the list in another argument, making the original temporary accessible from any recursion level.

A call to a destructor is a normal call. If you need to call destructors, then it means your tail call is a call to a destructor and not what you're seeing in the code. It's a fundamental semantical problem. You can't have "make the last call in this function be an implicit call to some function" and "make the last call be the explicit call to this other function" at the same time.
yeah, and as others pointed out it fails right-identity as well. had a brain fart recapping the laws, though i think i got associativity right at least!
Wow... I wonder how that works. 'next' and 'previous' links?
One of those is my submission. I posted it in response to all the buzz over figuring out VR markup.

It seems to me no one wants to actually use existing stuff. People are just having fun reinventing it.
The biggest takeaway people should have from this video is that a modern nuclear strike is effectively an overwhelming Denial of Service attack against emergency services, infrastructure, and supply chain... all at once, on an immense scale.

Enough so that quickly scaling a "proper response" just isn't possible. Even if just a single large city (500K+ pop) was hit with a single, typical modern warhead (200-300kt), the results would be covered in history books for the rest of the millennium.

A large scale exchange? The best you could hope for is that you're living in the Southern hemisphere to avoid the immediate horror, though the next 20 years would still be horrific.
How do you prepare for the complete breakdown of society and 200 million survivors competing for resources that will support maybe 15 million people in a blasted, utterly destroyed landscape with no infrastructure or production.
EDIT: Was trying to figure out a disparity in timing- I didn't know about the rescue pool feature!
Realm — http://realm.io — San Francisco & Copenhagen

We’re building a fast database for mobile. We just launched this month and the amount of attention we’re getting is already forcing us to scale fast! We’re primarily hiring iOS, Android and C++ engineers to join our product team. You can see full details about all the job openings here: http://realm.io/jobs/ or hit me up directly if you have any questions! tim@realm.io
Would be interesting to see this list imported into something like delicious (not sure where since I wouldn't trust such a resource on that site now) to get all kinds of useful features built in by default.
Sadly, my productivity has not improved one bit :(
I didn't realize how big the disparity in the number of employees is between IBM and Apple. 426,571 for IBM vs. 49,400 for Apple
I'm just oozing with buzz-word juice.
I just used a jQuery plugin called tablesorter: http://tablesorter.com/docs/
I was under the impression the LHC was down until 2012 while some changes were being made.
Being a sys admin and having to plan disaster recovery I can understand this scenario. I've played it out in my mind, its been done to death on paper and we've tested it. My question is, why aren't reddit doing anything about it? After numerous outages over the past few months it seems reddit's answer to everything is, "It's not our fault, it's Amazon". In all honesty without turning this into an attack that is ridiculous. If my company were to suffer outages on a weekly basis, my boss and I would both be under the gun and seriously before it even got to that point we would be restructuring systems and shifting hosting platforms. Before anyone says to me, "hold on, you cant just go moving infrastructure". BS. When your business is the website and you are providing a service, availability is damn well key. I've moved datacenters more than once, I've delt with disaster recovery, I know how to do these things transparently and before you start thinking I'm arrogant well actually I only have 4 years of experience in the system administration game so I'd expect people with more talent than me to be able to get the job done pretty damn effortlessly. If our company suffered an outage of more than 3-4 hours we'd be switching to our DR plan end of story. That means switching dns and pushing to warm standby servers.

Engineers of reddit, take some initiative. Move off aws. I dont care how hard it is, look at the outages you've suffered. Look at the problems you've had. Havent you figured it out yet? Get some physical hardware with rackspace and sort it out.

Please understand this comment is not meant to attack anyone but I am frustrated with people shifting blame and not taking responsibility. If your down 30 hours then you have failed.
I have a site idea I'm working on that I think can disrupt online dating. Current online dating sites don't solve a problem. Even OkCupid which perfected the current implementation of dating sites only provides what are essentially just profiles.

My idea uses a more social approach, have people tag those they're already interested in (friends or acquaintances) and notify both parties if and only if there is a mutual interest (both groups tag each other), otherwise wait.

This method is 'rejection free' and solves many of the problems associated with dating in a way that incentives users to reveal their true interests.

I want to localize it to colleges only at first so there already exists a somewhat 'trusted' community. I think this idea solves a lot of the problems commonly associated with dating.
Probably a little offtopic but if I don't make the cut ... call and tell me or email, don't have me wondering what's going on.

Its so simple but an amazing number of companies just will not take this simple step. So rude, and people remember things like that.
Anything like this for SASS that isn't Compass?