skysight-inc/HackerNews huggingface dataset:
My local grocery store does that automatically—the register rings items up at the full price and then applies all the discounts at the very end while you're waiting for the card reader to be ready. And it seems to do it intentionally slowly, about two line items per second, so that it takes exactly the right amount of time to be sure you notice it without getting annoyed at having to wait.
Their argument is that it helps to combat fradulent purchases where criminals steal identities, buy phones on margin with the stolen identity and then ship them for sale overseas. As it stands, they are stuck holding the bill.

The carriers should be forced to absorb the consequences of not requiring payment upfront rather than forcing the rest of us to suffer from this absurd locking strategy. The entire situation was manufactured by them. If they required payment upfront, then this would be the credit card companies’ problem. They are much better equipped to deal with such things than carriers anyway.
>unless you hide the apple logo somehow.

I once bought a macbook pro while providing tech support for an organisation that used them exclusively. One of the first things I discovered when setting it up was that it takes three layers of silver gaffa tape over the apple to completely hide its glow.
I have no 3rd party apps that spew content, and disable the web browser.

The web browser can be re-enabled if I need to look at, say, a production issue (I work in software). Otherwise it's "nice" to have to go grab a laptop to get online.
Hello there, thanks for building jenkins (or hudson?) you are an absolute hero.

Feel free to correct me, here is my take on it.

You are right the restarting in the declarative was not open, then closed. But I didn't say that, I said not having it was a dick move.

My point is a Stage is just an alias for a Job (or multiple) for the regular Joe who doesn't work on Jenkins code. That was always restartable at any time in my pipelines (Delivery Pipeline Plugin, Build Pipeline plugin, etc...). So when we started writing the old and new pipelines as code we assumed the feature would be the same, while learning the new DSL at the time it was not clear that it was not, at least to us.
Lot's of people thought the same the link below is an example of it. This was 2016 if I am not mistaken, it's now open source and congratulations for changing that as I said when it was pointed out to me, but I am not following the topic anymore.

I have no problem with the business, as I said I vouched for it, and in the end they brought the licenses. My problem was, the main reason to buy it was not support or something juicy like Cloudbees cluster management features, It was that we wanted restarts.

Is it bad? Absolutely not. But it's not something that made me feel happy. I just think it was not a thing I could easily communicate with the people making the decisions, was like punishing engineers for a problem that they can't solve, give managers a reason to buy it, Cluster management is a nice one, Automatic backups another, having miserable engineers is a terrible one.

About Stage view, I was frustrated from training support and others to use it on a complex pipeline just to see a new tool take over and from what I remember it was a very fast switch. There was no gain in changing to Blue Ocean at the time, as our restarts where not working on it. So we had one UI that worked without support and another that didn't with it. Again I am not following it the topic anymore, so this might be fixed by now.

https://issues.jenkins-ci.org/browse/JENKINS-33846
We had a CS class at UNH, a state university, where we learned how to express the complexity of an algorithm and then how to refactor algorithms to be less complex, when possible. Although we do not do this type of work for most of our jobs, it is not a stretch to think that half of people with a CS degree might have at one point known how to do this on the spot.
Let's be honest: most commercial programming jobs don't. And the person with a thorough working knowledge of the standard libraries is in a better position to do it anyway.
How do they notify?
Sorry Jeff, just noticed this comment!

Yes, absolutely. I liked it a lot as it added whimsy to a subject that could easily be written in a much drier style.

Appreciate it!
I've had good smart phones (e.g. Moto G) in the recent past for less than half that price. Maybe I'm just not in the target market.
So if BGP is trust based and hard to compromise then how were these Russians able to?

> They re-routed DNS traffic using a man in the middle attack using a server at Equinix in Chicago.
That's not true. I knew a lot of professors at my undergrad, which is a well-known university, that worked in industrial research positions after their PhD before returning to academia.
"I would suspect it's because a lot of China's foreign buying spree involves state owned/controlled companies."

Yet if you look at the data objectively, Chinese companies (both private and state-owned) are just playing by the rules of the western market economy. They are purchasing and investing, playing the capitalist game just like everybody else.

The west also has state-owned enterprises. In Canada, we call them crown corporations (e.g., Bombardier). Yet whenever a corporation is owned by a western government, tons of waste happens and somehow our companies rarely make products that are competitive with the global market. They are just not competitive.

So it seems to me that China and their companies are playing the capitalist game better than EU, and the core of EU are being sour grapes.
Looks like it was about an hour and a half before anyone in that thread figured out there'd been a BGP hijacking.
Alas, I really do care about the thought process. If a person arrives at a great decision for bad reasons, I may not want to hire them. More importantly, though, I'm interested in when candidates pick not-optimal choices for good reasons. So much of software development is about tradeoffs. Seeing and hearing how they tackle those tells me much more about how they'll do than the specific code in question.

As an aside, the reason not to work on novel-to-you problems with job-seekers is that it's very hard to fairly compare candidates after. I strongly prefer pairing on the same problem with all the candidates in a batch. Otherwise it's hard to tell if a bad result is due to a bad problem or an unacceptable candidate.
You certainly cannot un-unlink file by linking the pseudofile in /proc somewhere, as that would involve cross-filesystem hardlinks.

But it is probably possible to write simple kernel module that would allow you to do that through some non-standard interface.
Flash (ab)use this to hide the cache files for streamed videos. They create a temp file, then open it, then delete it. You can however still grab it out of proc...
The new CI/CD from Gitlab looks great... I am on Github otherwise I would definitely use it. In fact I find myself amazed by their development pace, every release is packed with stuff.

GoCD is a super simple CD platform (from user/developer point of view), easy to learn and with little possibility to snowflake it, with a Fan in dependency resolution that works nice.

The UI is not awesome but does the tricky for support teams and others.

BTW I have no association to any of the CD/CI companies I just like to work on this topic.
I don't have the patch notes for reality to hand, but i assume it was a similar hack to the time dilation in Eve:

https://www.eveonline.com/article/introducing-time-dilation-...
Show HN: A TDD starter template for JavaScript interviews and exercises
Fast - does that mean it's time keeping is running ahead of the actual time. :-)

Joking aside, when I see something advertised as "Fast" against the incumbent, I would expect to see some benchmarked data to back that claim. Do you have any?
Do you get a IDE with compiler for the palindrom question?

Id say that close to 0 out off 10 engineers at work including me would get a working program without debugger or print statements.

Just tried in c and got me 2 compiles to get it right. Without the output I would just present a nonworking program.
Including insurance is brilliant.
That's interesting about the access permissions and ownership; I thought that access permissions in POSIX were path-dependent. Some quick experimentation indicates that ownership and access does in fact apply across hard links.

There's still some truth to the path-dependent notion, in that you may not be able to access a file through a hard link in a directory that you do not have access to, even if you have access to that same hard link through another path. But if you don't have access to the file itself then you're out of luck.

This does make sense from a security perspective, but I thought that the path-dependent checks in the kernel were strong enough to not require inode-associated ACLs.

You're right about restoring the file by re-linking to the hard link, but you can access the contents and cp it out of proc at least.
Any behavior can end up being "addictive" if you keep doing it even as it has negative consequences for your life and are unable to stop, right?
I've found myself wasting a lot of time configuring new projects at the beginning of interviews lately, so I made a quick starter template for TDD JavaScript projects using Jest. I hope you find it useful. Please feel free to leave suggestions or contribute with a PR.
How to Flush DNS Cache in MacOS
Well of course many people in the US are worried about violence. They see frequent cases of mass shootings on TV, sometimes in places they know or places much like the place they live or work. They see the Police officers getting gunned down, or gunning unarmed people down on an almost daily basis. If I live in a society like that I’d be pretty paranoid too.

But is the solution to this problem mass gun ownership? I think more and more school children in America are beginning to realise that actually no, that’s not the right way to think about this.

Is it really sound to compare the USA to Somalia and Afghanistan as though that comparison is just as relevant as a comparison to the UK or Australia or Canada? How many democratic countries have suffered revolutions and mass social breakdown? All of a sudden you end up with a very short list, and usually within a short period of time of coming out of a dictatorship of some kind, before democratic institutions and processes have become established. How many that have been democratic for more that 50 years? I can’t think of a single one.

Finally about 30,000 Americans die by the gun every year, many by suicide but that just goes to show the risks of easy access to guns. (If you disagree - people could stab themselves to death instead - compare death rates with other stable affluent democracies. You might be able to explain away some of it but I’m already rounding down to the nearest 10k.) Let’s say you have one uprising every 150 years. To pay it’s way in blood gun ownership would have to be responsible for saving over 450,000 lives. That’s about half the total of the Civil War. I think it’s far from clear that this would be the case, and surely isn’t having huge numbers of firearms in circulation more likely to make such a tragic breakdown of society even worse?
Just a little trivia;

The fastest way to reverse a string is in JS is:

function reverse(s) {
var o = [];
for (var i = 0, len = s.length; i <= len; i++)
o.push(s.charAt(len - i));
return o.join('');
}
They did make a non-compatible API, and it is immutable. The HN title is just wrong. The actual project was just trying to explain that their API would be familiar to moment js users. They didn't mean to imply stringent API compatibility.
Not saying you are wrong, but you wouldn't be the first person to wrongly assert they could quit whenever they wanted.
Your terminology is slightly off, so I'm not entirely sure what you mean. M.2 is a form-factor, which can be NVMe (PCIe-based) or SATA-based. Yeah, a bit confusing but M.2 supports two different protocols.

If you mean RAID0 SATA drives (in the M.2 form factor), well the processor's south-bridge has a lower limit compared to the direct-to-CPU connections most NVMe drives get.

SATA is great for bulk storage: either cheaper SSDs (~$250 for 1TB for MX500) or big hard drives (~5TB Toshiba Hard Drives for $150). But for maximum performance, you have to go NVMe.

After all, RAID0 NVMe drives will simply perform better than RAID0 SATA.

---------------------

Case in point: the Samsung 970 Evo has a specified read bandwidth of 3700 MB/s.

The SATA3 connector has a maximum speed of 600MB/s theoretical (and in practice, SSDs only achieve ~550 MB/s). So you'll need SIX RAID0 SATA drives to keep up with this single Samsung 970 Evo. Assuming your southbridge can even sustain 6x RAID0 (probably not. In my experience, south-bridges seem to slow down dramatically by 3x RAID0).

All you need to do with the 970 Evo is go RAID0 2x 970 Evo to achieve performance that no SATA RAID array will ever touch.
How did they interview these engineers to hire them in the first place?
There's an incredible decade-old map that shows space around the centre of Earth on a logarithmic scale - it's detailed enough to show the core, mantle, and crust at the bottom, and the Great Walls at the top:

https://www.astro.princeton.edu/universe/

I finally got round to printing a two metre tall version of this to hang in my hall a couple of weeks ago!
Having been laid off due to downsizing, I think everyone should go through it at least once. Sure, the first time will leave you panic stricken, but you'll come out the other side with a lot more clarity about the employee-employer relationship.

You are disposable. Even the CEO is disposable (as I've seen many times). Once you realize that, you'll stop the BS about loyalty to your company. It's a business arrangement, nothing more. Your job is to get the most you can (money, experience - whatever floats your boat). If it no longer works for you, leave. They'd do the same to you.
Looks fake.

Do you have any working versions of the phone?

A video of the phone being used?

All pictures look like renders, not real devices.

Not sure who would pre-order something with such little information.
While I agree with the decision, I developed a whole new respect for Gorsuch after reading his dissent. It was brilliantly written, clear, plain english and was an amazingly principled approach - i.e. he agreed that inter partes review was effective and convenient, but argues that convenience isn't a measure of constitutionality. I also appreciated his arguments about the non-independence of the review board and the ability of the director to apply political bias/policy to decisions (which has already been done multiple times). If it weren't for the ability to appeal the board's decision to a real court, even though I like the inter partes review process, I think I'd have to agree with Gorsuch on this one.
GDPR's right to portability only extends to things you provide directly, or are collected on the basis of explicit consent, or wmthings which are required to fulfill a service or contract, like status and photos. There are explicit exclusions for a lot of things like things collected in service of antifraud & security efforts, and for things collected offline (IIRC), leaving a big set of holes that they can hide quite a bit.

They're also not allowed to infringe on the data rights of other users which is why the friends list export is so anemic, for example.
It looks like for some reason GCC is returning EOF from the second getchar() call and his terminal is rendering it as ^@.
Exactly. 95% + of the work out there is more about plumbing and a doesn't design to plumb together. On the rare occasion when I have had anything algorithimc to do I Google for similar problems.

The last time I had a proper algorithmic problem, I was in an academic institute and we had a guy researching algorithms so I asked him (though he didn't come up with mush). It was basically a variation the stable roommates problem. I came up with a solution - brute force plus a load of optimization and it worked well enough for the purpose.

When I get that crap in interviews some of the time I get the answer, some of the time I don't. Its pot luck. Its says very little about my skill for the jobs I am applying for. Ironically I was way better at answering those things 15 years ago when I was fairly crap at building reliable robust systems.
>Blloc OS

Everything indicates this is Android based. Some remarked it was compatible with the Play Store.
On FAT the "permissions" are in fact part of the directory entry (IIRC some OSes in "multitasking DOS" family even have FAT extended by having what essentially is the unix mode, uid, gid tuple in the directory entry).

On NTFS permissions live in MFT, which essentially is same thing as inode.
It's possibly OK (very strange but OK) to not know what ACID stands for. It's def. not ok to not know about Atomicity, Consistency, Isolation, Durability and more importantly why you need them if you are a DBA.
I went to a friend's house once and fetched a couple of old shitguns from her attic. They were serviceable, but had developed a this coat of rust, enough to require re-bluing.

I believe the heat cycling (heating + cooling + condensation) in an attic acts on guns the same way auto exhaust acts on a car's exhaust system.
Show HN: On-demand preview environments for your pull requests
Not only this, but it shows you're actually paying attention to the company
Super Tuesdays: Newsroom Programmers Gear Up for the 2018 Midterms
Wow, that's scary. I even told someone recently, jokingly of course, they forgot to add HSTS for their mvp app.

But MEW doesn't have HSTS? I would never use it personally on a public Wifi, but many people will for sure and they have no idea they'd be MITM'd.
If you delete a file in PHP then you 'unlink(file)' rather than 'rm(file)'. Never knew there was a reason, thought it was a quirk.
I also had many ... But allways mixed results.

Soostly it worked, bu no allways. But I like to rely on it - and no loose da
I don't have a week to dedicate to crap like that. I do have 15 years of experience building stuff people actually need and i am reasonably good at it.
I think it depends on how you're filtering the people who get to your interviews. If it's purely based on a resume screen, you can get a lot of people who can't code.

Personally, my first-line screen is a short answer (3-5 sentences) to a programming-related question. [1] For me, about 90% of applicants who pass that can also code. I like that better than a resume screen, as plenty of people who haven't officially been programmers are decent coders.

[1] Examples here under the "Join Us" section. https://web.archive.org/web/20151005181908/http://www.codefo...
It’s hard to amend the constitution, and there are lots of failed attempts for each amendment that eventually passes. Part of that is by design, so we don’t end up with something dumb like a vague counterterrorism amendment passed in late 2001 that repeals half of the Bill of Rights. But I think if there were more originalist judicial decisions, that would apply political backpressure towards the amendment process instead. Of course, that would slow down the rate of changes, which is almost a definitional part of conservatism.
Calculate the number of years you'd need to work at your current savings rate before you can "retire early" or be financially independent. The following formula is something I adopted from finance blogs and is just an enlightening simplification.

E/S * 25 = Y

Where:
E: Your yearly expenses.

S: Your yearly after tax savings.

Y: The number of additional years you need to work

Implications:
-If you spend and save an equal amount you have about 25 years of work to go.

-If you save many multiples of what you spend, you may have just a few more years of work left before you are never obligated to work again.

-If you save just a fraction of what you spend, then early retirement is not looking so good.

-Every dollar per year you spend in early retirement will need at least 25 dollars backing it up in your nest egg.

-Spending more money means you are obligated to work a hell of a lot harder and longer. (Which is not always an option in bubbly, ageist fields like tech)

Assumptions:
-Expenses and Savings stay constant throughout your life.

-You put your money into an index fund that nets 7%, 3% of which goes to keeping up with inflation, 4% of which is your safe withdrawal rate (which is also where the constant, 25, comes from).

-Your current bank balance is 0.
When I set alarm clock to 6 after a few days I wake up by myself at 5:55
On the other hand, passing actuarial exams does get you in on the ground floor of that career.
GCP supports DNSSEC, I moved all my domains away from Amazon due to this

was very easy to setup on GCP too
You were already able to do this by loading any other kind of cached resource.
I'm not certain what he expects: lifetime risk-free employment? Yeah, there's stress involved with risk. But the risk one has as an upper-middle-class American is tech is nothing compared to the risks that others alive today face, and less than nothing compared to the risks that others in the past have faced.

Nothing last forever. Not a job — not even one's life. Make the most of it while you can.
Of course it's only big news once a US company does it. sigh
I don't think the cross-filesystem hardlink is the problem, since the link in proc is a symbolic link.

I can do this experimentally by creating a symbolic link in /tmp (a different filesystem) to a file in /home, and then creating a hard link (with ln -L) from the symbolic link to another file in /home, and the result is a valid hardlink to the same inode as the original file.

This doesn't work through /proc for an unlinked file, but only because the underlying link call requires a path, not an inode. You can create a hard link out of proc if the file has not been deleted, though, without any cross-filesystem problems.
Could be a process that checks every minute with slightly inaccurate measuring which leads to 1h3m minus 1 second reported.
> > You get at the thing being pointed to by dereferencing the pointer.

> Which you can't do in Java! There's no * operator.

. and array indexing dereference pointers in Java, just as -> and array indexing do in C. I've already mentioned this several times.

> all these concepts from C/C++ that just aren't there in Java.

The Java language spec disagrees with you (before you said that explanation was pedantic; now it's incorrect?). As well, C and C++ did not invent pointers; you're the one insisting that Java's pointers aren't pointers because they don't behave identically to C's, I was saying that the specific differences don't change the fact that they're both flavours of pointer. No one is claiming that Java is source-compatible with C.

And really, there's no alternative explanation. You can learn each special case individually if you want and let your brain connect the dots to form the notion of how to use a reference without having sat down and thought about it and unified the concept, but that seems like so much work to get around learning a pretty simple idea that fully explains all of it without any special cases.
> There should be one-- and preferably only one --obvious way to do it.

So says Tim Peters in The Zen of Python. Unfortunately, this statement has never been true of the packaging ecosystem.

Today, tools like Pipenv, Pipsi, Pyenv and Cookiecutter (among others) make it easier than ever before to start a Python project, and are nearly as painless as similar tooling in Ruby and Node.

I have created (well, forked) a Cookiecutter template that helps new Python users get started with some of these tools from the beginning, while avoiding a lot of painful ritual that is most confusing to beginners or those who are not established Pythonistas.

I'm looking for feedback and for ways to make this more useful. And of course I'd never be displeased by the occasional PR or GitHub "star." Thanks!
I've only re-read "snow crash" - but that was actually a listen to audiobook on a roadtrip