skysight-inc/HackerNews huggingface dataset:
In 1999 I ran one of those rm -fR thingies with an unset var on a client production system. Systems were dog slow those days but I only noticed when the client called that his ERP was down. This was one my country's most successful car rental companies and all went through there. Ofcourse (...) the backups were broken and we did not use CVS yet. The client, a very nice man, said 'well that is unfortunate' and that was all. We restored a very old backup and copied the source files from my dev system to it. After that we ran a mirror in our office (nightly db copies via ssh), used CVS and weekly backup tests. Jikes.

Another one which was less my fault but I did blame myself for was dropping a server with 200.000 web sites on it because we had to move datacenters and it was xmas eve and very very slippery with ice. We slid and the server fell which wrecked the (hardware) RAID disks. This had working tape backups so there was a few hours downtime which was going to happen anyway as we were moving.

Now that I am writing this anyway; the most traumatic was mid of the 80s with my second computer when I was 10. I had one disk(!); they were expensive and I did not get a lot pocket money. I was learning assembly after Basic became too slow for what I wanted. I was building a game (Chuckie Egg rip off) and after a long time not saving I ran the game and it worked. I was happy and saved the game on the one disk with all the software I wrote with the save command. When I pressed enter I remembered, and I remember this very vividly, that I used the the disk basic ram space because I was running out of memory. The disk started spinning, computer rebooted and ... files (dir) command after gave a disk I/O error... The misery.

Edit: ugh. Just remembered a 1984 one; my father brought home a modem for the MSX-1 and those things were, for my notion of money, kind of bare gold, price wise. It was 100s of guilders. But it could only do Viditel. Which sucked. I wanted BBS access and that required shoving the thing into the MSX after Basic was already booted. The MSX cartridge ports are connected intimately to vital computer parts. So shoving it in crooked had my best friend looking at a purple screen after that I decided better would be to solder in a switch. I did that before with stuff I found by the road. I had to cut an IC pin to do it which I had done quite often; this time I cut it and it flew off... Eventually I was forgiven.
I also have a small pile of vb6 code that I must support. And while it usually behaves OK there are some instances where putting it on a Windows 7 machine to run will cause some headaches.

I got my first serious code written in VB6. It is the first IDE that I bought with my own hard earned money as a kid and it was great. I still dream of a day when there is a language/framework that makes development that easy again.
But from personal experience, it is a very real thing.

I'm a little suspicious of any paper "debunking" something I experience on a regular basis.
I recommend termite, it is not bloated and quite simple, best composed with tiling window manager: https://wiki.archlinux.org/index.php/Termite

No screens there because there isn't anything to screen, it is just plain console without any GUI (supports scroll-back)
Time Is Contagious
The memory aliasing point completely correct and very important (even though you probably want the `b[i] = val` outside the inner loop...) [...]

Do you mean the assignment to b should be or must be outside of the inner loop? I am pretty sure it must be outside of the inner loop in order to make the assembly version correct.
I will, let me to finish next phase of my plan before writing any blog post or AMA.(next phase : starting to work for big company or starting a successful startup)
> 10 years later, I was still getting svn blame based questions "about this code you wrote (in -r 6)"

That's fantastic haha
Yes, European police are more likely to be armed. Italy has its Carabinieri as a national-level armed police in addition to a separate set of regular police.

The key to UK policing's low violence rate compared to the US is, bluntly, that people care when members of the public are shot by police. It's regarded as a failure of the alternative methods. Whereas in the US people go beyond merely defending the police into practically cheering the street execution of a "criminal".
I remember reading that it happened to Isaac Asimov many decades ago so it's not a new thing (in the US that is).
I spotted some positions for Summer Interns - would it be best to apply via the website or directly to your email?
Thanks!
Fair point, and good on you then. (It has been illegal in Scotland for years, I lose track of some details down south.)
Scientists identify two brain networks influencing how we make decisions
This is brilliant. My day just got so much better.
The Docker Age: Monitoring Showdown Prom vs. TICK vs. Sensu
I'm a competitive runner, and 3kg makes a big difference to my running speed.
Buzzfeed doesn’t use slideshows. All the content is on one page.
How does such a thing happen? One would think science is evidence based...

Or is the evidence dismissed because it broke with the old rules? At some point it should be possible to convince a collegue to check the weird findings with you, no?
Likewise, but mine was when I was first learning Linux in the mid 90's

I'd written a script to clean out /tmp (since it wasn't a virtual fs back then) at boot. Problem is that it hadn't successfully changed to /tmp but was running instead in /etc

Goodbye /etc, it was nice knowing you... first I knew about it was when my box spectacularly failed to boot.

However, this was _the_ best learning experience of my life. No internet (since that was my only computer at the time) gradually rebuilding /etc by hand from a root prompt.
Yes, we live in a time where minorities tyrannize the rest.
Web Developers / News Algorithm Developers / Programmatic Advertising Engineers | NewsNow.co.uk | Folkestone, Kent | Full-time, permanent

We may be a top ten UK media publisher, our websites loved by millions. Yet despite our huge success, we've jealously protected our start-up culture over the past 20 years. Which means today, we're still a company where everyone who joins us gets to make a massive impact. Our ethos and news product are well proven, but we know we've more to do to be the best site on the web for those seeking news from all the angles.

We currently have three opportunities:

- As a /Web Developer/, you will work directly with our Founder & CEO on a wide array of UI/UX challenges.

- As a /News Algorithm Developer/, you will work directly with our Founder & CEO developing an entirely new news product for the site, which will eventually replace the site's homepages.

- As a /Programmatic Advertising Engineer/, you will work directly with our Founder & CEO, driving the company's commercial success as an industry leader in development and application of programmatic advertising technologies.

We have positions in our strategically located office in Folkestone, Kent - an ideal commute from Canterbury, Ashford and Dover areas.

If you like the sound of us, we’d love to hear about you. Please get in touch!
http://www.NewsNow.co.uk/careers/
Stopping Exploitation from Being Profitable
True, there is a reason, but the reason is lack of focus among the developers, not whether it's good enough. Selinux has been maintained for years by just one developer (Russell Coker), and that just isn't enough to maintain up-to-date policy files for all 20,000 Debian packages. Lately Laurent Bigonville has stepped in to share some of the load, but I have never seen more than 3 people in Debian's selinux team.

It would take an explicit release goal to enable selinux for Debian, and part of that release goal would be requiring package maintainers to help with maintaining the policy files for their packages.
>As for code itself, Carmack implemented the pre-warp as a shader that projected the rectilinear image onto a surface (geometry). This approach was abandoned years ago and is now implemented with a pixel shader.

Not that it matters for your point, but it was the other way around. They are using a mesh based pre-distortion now.

>Although the exact distortion parameters depend on the lens characteristics and eye position relative to the lens, the Oculus SDK takes care of all necessary calculations when generating the distortion mesh.

https://developer3.oculus.com/documentation/pcsdk/latest/con...
Which is why I still often use PHP.

For my usages its a reasonable language.
1. Functionality that'll be used should be tested before going into production.

2. Using something like setroubleshoot will make sure any SELinux denials appear in the syslog so should be simple to diagnose, and sealert will tell you likely solutions. Personally I think that's how distros should be shipping SELinux, not sure what the downsides are.

Note, I'm mainly talking about servers here. Personal computers always seem to have messily-packaged applications running, so I can see why people get annoyed with SELinux there (although I've never had a problem with Fedora, yet...)
That's actually an ETN (exchange-traded note). But don't ask me what the difference is.
I don't see why this rather insightful post is downvoted. The site specifically targets these groups by name.

Why in the age of a _World_ Wide Web and "post-discrimination" are large companies such as Google deliberately targeting specific groups? What will be in the girls-only code program that might be inappropriate for boys?
New study releases top responsive CSS frameworks for 2017
Yeah...for a lot of scripts I've written in Python, it doesn't make a lick of difference if they run in 1 second or 10 minutes. They're glue-type things holding some internal systems together which run in response to events or on crontabs, using widely-used battle-tested libraries, and there clearly-written + decently documented. If someone needs to mess with them some day, they shouldn't have much trouble.

As much as I would personally rather write ruby or bash over python (key error will be on my tombstone), for AWS automation stuff, load CSV, mess with it, stuff it into a DB stuff, simple REST APIs, and countless other small-ish automations, Python works just fine at the current speed.
Better yet, fill every hard drive with random junk before formatting and selling them. If everyone has random data in their free space, it won't even look suspicious.
It sounds like a terrible working environment for the sysadmins. When shit is broke, you focus on fixing it. Being on camera is distracting, and setting up the livestream probably takes a bit of time that could be spent on actually fixing the problem.
Calculating these multidimensional indexes seems to be the major or even the only reason I've ever come across for having 0-based arrays. But it's a pretty big reason.
I managed to give up my one true soda love, Dr Pepper, over the last few months. I discovered that a strong tea gave me a stronger caffeine hit, which was one of the core components I was truly craving.

I bought a cheap teapot and I keep it on my desk. Worked well.

(That said, my weight remains a problem. I'm 25 and I need to lose 37kg. I'm firmly in the obese BMI.)
A "short list" which is four of the five listed programmes. Id est, 80% of the programmes on the list discriminate.
The one that caused me to do a double take was the "postal police"... the postal service, at least in New York, appears to have its own police force.
Actually, selinux also limits IPC. So moving things from files to gnome-keyring does not remove the need for selinux, it just changes the selinux policy from (access this object type) to (connect to this process type).
There should be a name specifically for this, like "VM Host Archaeology"
A few years ago I worked on a research project at a university where we generated quite a bit of data, and we would occasionally (every few months) run an archiving script which would copy data from one MySQL table to another and then truncate the source table. I once ran this without remembering that the columns in the source table had been changed a few weeks previously and the destination table and script had not been updated accordingly. Result: The insert into the new table failed but the old one was truncated anyway.

This shouldn't have been too much of a problem because a full dump of the MySQL database was made every night, copied offsite with scp, and kept for a week. But, when the time came to restore the affected table from one of these dumps I found that every dump for the last week had timed out silently and was incomplete.

The result was the best part of a week trying to reconstruct the missing parts of the table from what could be found in the dumps and to restore it successfully. I got most of it back, but we couldn't do much work for that period.
...isn't that the standard order size for a week in the states :p
> I think I would be charged with child endangerment these days if my kid (3 years in the future) was doing stuff like that.

> [...]

> The media is part of the problem.

Not the media is the real problem, but the tolerance of people towards the mentioned kind of laws.
Lawsuit says Westminster police violated protester’s right to free speech
Bring back IronPython!
Culturally I could use some good bubbleing. So much bad art I can't stand anymore.

It's the worst for movies, because it's such an investmen: If I don't cancel watching it after 5 minutes and only give up on it becoming better after 20 minutes (it might get better...) I ususally sit it through anyways.

Bad paintings in a gallery are easier and like image posts on reddit: you can just give it a glance and scroll/stroll on.
We're talking about maintaining a certain average weight over a period of time. Day to day fluctuations are not important.

I've found regular weighing and having a certain target weight useful, together with food intake logging. It helps me stay objective, and helps me with my self-control, especially with avoiding bingeing on unhealthy foods.
Hey, I think it's worth directing people to checkout Mt. Mograph[0] and from there looking of motions on Dribbler for inspiration.

I recently moved from working on media (largely motion graphics) into a more technical field of study. Mt. Mograph helped flesh out my after effects knowledge to improve my motion graphics.

(No affiliation whatsoever, I just find his videos great, first one is a bit long while he gets his bearings)

[0] https://YouTube.com/mtmograph
Will Amazon eventually buy one of these carriers? Or maybe start their own thing?
> To say that a product "sucks" because they don't cater specifically to your arbitrary desires is grossly unfair.

Then again, if they name their project(s) "suck less", it's completely fair to say it sucks. If they can have arbitrary standards about what constitutes suckage, why not us?
{{187 778 8969}} Belkin Router Support Phone Number –Callpcexperts.com
As a sysadmin, I'd find it incredibly distracting to be on a livestream while trying to fix a critical issue. For your employees sake I hope you don't do this again.

Have a single point of contact that provides information about the recovery process. Being transparent and providing technical info is good, but that task should not be handled directly by the admins at the same time they are focusing on the drop-everything-shit-is-broke emergency.
You might want to look at PyCharm (Has free community edition, $99 year for pro) and Python. My eight year old writes Python!
> dd ... got the devices around the wrong way

dd always makes me nervous as hell when I need to use it. I usually end up checking four or more times. Still got it wrong a few times.

Nothing like having to recover data with forensics to make you build a fantastic backup system with great redundancy.
The very first page says “compiled languages are usually limited to static types.”

It’s good authors of Objective-C or C# didn’t get the memo.
Please stop do this.
You can google the title to bypass the paywall.
I grew up playing paintball. They're just liquid balls in a thin plastic. With a jacket on they won't bother you too much. At 50 ft the rental guns will start to stop breaking, especially on soft clothing. At 100ft the best guns you can buy will start to stop breaking even on bare skin. I have a hard time imagining them being effective outside of a very small set of circumstances.
The following Cloudflare blog post addresses the same issue: https://blog.cloudflare.com/protecting-everyone-from-wordpre...
Fresh out of college (2004), I worked at a company that was a VB.NET shop and one of the tasks I started with was porting a bunch of ASP (not .Net) pages to ASP.NET using VB.NET.

I absolutely loved the language, coming from a Java/C++ education in college.

Then, my next job, it was a mix of VB.NET, PHP, and C# (custom software shop). I did all three and decided that C# was where I wanted to be. I simply found that VB.NET was too "wordy" with all of the "If/End If" and "Get/End Get" and "List(of Foo)". I just found it easier to follow with if(eq){}, Get{}, and List<Foo>.

Simply one's own taste, I suppose.
Unfortunately, this is an area that could use some work. Tools for writing new policies are a long way away from what they could/should be. If you need something to work with SELinux that doesn't come with a policy you have essentially three options, in order of preference:

1) Develop a new policy from scratch. This is fairly hard, and the tools, such as they are[0], are not great. There's a couple of good resources out there, including [1] which has some good examples, and Dan Walsh's blog [2].

2) Use audit2allow to generate a policy semi-automatically. The resultant policy won't be very clean, and will almost certainly be more permissive than it needs to be, but if 1) is too much work (and I wouldn't blame you for this), then this is the next best thing.

3) Run your binary in the unconfined domain (do something like chcon -t unconfined_exec_t /usr/local/bin/foo), but leave the rest of the system enforcing. This will mean your binary itself is able to do anything, but the rest of the system is still protected.

Oh, and if you haven't read it before, you should definitely check out [3](pdf).

0: http://oss.tresys.com/archive/slide.php
1: https://github.com/TresysTechnology/refpolicy/blob/master/po...
2: http://danwalsh.livejournal.com/
3: https://people.redhat.com/duffy/selinux/selinux-coloring-boo...
I find in hard to fork human behavior and have anything one might consider a good adoption rate.
Get emailed when someone comments on a subject on HN
Been there, done that. I managed to loose 30 days of billing data without a working backup.

At a 7 man music streaming startup 10+ years ago, there was an issue with our production server. The application was working, but the reporting tool on another server was no longer getting the daily copy of the Firebird database from the live server.

The database server had run out of disk space so was no longer able to make backups to transfer. So I stopped the apps, stopped the database, cleared out a lot of old logs and backups that was no longer needed, and brought everything back up again.

And then I swore, as I am sure YP did at Gitlab when he realised what had just happened.

The database had started up using as you would expect its last persisted state. In this case, its state 30 days as it was then it ran out of disk space. :( Firebird had been happy running in memory since then though not able to persist any changes. And since the backup procedure was to export the database to a local disk file then scp it to other nodes, it had been happily transferring 0 bytes files for weeks. :/

Had I cleared up some disk space then exported the database before I shut it down then there would have been no problem.

As I realised the severity of this I quickly got hold of our CEO to say I totally fucked up. We then worked together to piece together the missing data from access logs, 3rd party purchase records, and other reports and sources that he had available. We managed to rebuild most of the missing data though there were some gaps in the last 7 days. Not recovering 30 days at all may have killed our tiny company.

We learnt from the mistake and I worked there happily for another year before the company got bought up. Naturally the next project I did was to write a decent alerting system (I won't go into the 300 duplicate text messages I received from it during one night whilst on holiday in southern France).

I have made many mistakes since, just never the same mistake. And with the years I take better and better precautions, scale horizontally, test backup restores etc. But mistakes still happen, just don't panic, and don't try to be the midnight oil hero :)
Just FYI, https://akkroo.com/jobs/developer says no Visa's and this says Visas.
That xterm README is from 1991. I believe it has improved a lot since.
The problem is that I never had local users that might be malicious or that were prone to be hacked.

The attacks for servers tend to be over the network and there are many different ways to mitigate those.
That sounds much less like a genuine lack on the part of reality, and much more like your reward system being tuned so strongly to favor shiny polygons popping out from under polygonal rocks that, when you turn over a real one, their absence disappoints you.

Your other examples are just as flawed. When you build a treehouse in your backyard, you end up with a treehouse - and the knowledge that you built a treehouse, and that you can build a treehouse. When you build a treehouse in Minecraft, you end up with nothing. It's an arrangement of bytes that's rendered by an imaginary machine into an arrangement of pixels that corresponds roughly with some abstract idea of what a treehouse might be. There is nothing in the slightest about it which is real, and that includes the feeling it might give of having accomplished anything.

I get that, in an industry which revolves around building imaginary machines, it's easy for us to get confused and forget that's what we are doing. That it's easy is no excuse to let it betray you into sloppy thinking, though, and that's what I see here. Imaginary machines appear to have satisfied you well enough as a kid, which is reasonable. Assuming from this that imaginary machines are good enough for every kid is not reasonable at all. What you found to enrich your life would've intolerably impoverished mine, and those of almost all the people with whom I grew up. As such, I find your prescriptivism uninformed, premature, and faintly arrogant in a way I don't think you've reflected upon or even recognized.
I had a small Sinatra server I had written to get data from Oracle and place into a resque queue for some machine learning categorization to run.

It was small, but there was code that could be made more dry by moving out into a function, so I did that and call that function whenever I needed to get new data.

Unfortunately I forgot to close the connections that I was opening with my refactored function.

Checked it was working, time for the weekend.

At the same company one time our tech lead got some code from the main Java dev in Argentina that was supposed to be an improved way of handling customer alerts, he copy pasted it and put it into the alerts class without even thinking about the code. 2 months later there was a major issue being raised about why was it nobody was getting any alerts! Tech lead worked from home on this important issue. There were meetings.

Anyway I was the one who found the issue because I thought let's check the repository, hey tech lead touched some Java about 2 months ago which he shouldn't be doing! Let's look at the code.

The code was just obvious that it would never do what it was supposed to do, even to me who doesn't do Java.

This is not to say the tech lead was a bad developer, far from it. He probably just lacked some of the deep paranoia that would prevent me from ever copy pasting in some code from a trusted colleague without reading it over a couple times.