skysight-inc/HackerNews huggingface dataset:
Well, there is always this scenario: when you can't even use CTRL+ALT+F2 to get to some type of terminal and only the power button, held in for ten seconds, will do. That's when you should not 'kill -9'.

I have heard the best practice advice for many years and I think that the 'you should send some friendly signal first' is not universally what works out best. For instance, if your Chrome browser is getting out of hand and the system is permanently doing some 96% wait for some reason, a gentle killing of Chrome will take ages and, when it restarts, you might get some but not all of your tabs back. With a killall -s 9 you can be back to work quickly with all your tabs (and underlying swappiness problem hopefully resolved).
Finally an app that is compelling enough to make me
want to upgrade from my iPhone4 !
I think there will be a lot to worry about before we have to worry about running out of oil.
Fazla kahve zaralı
Solved by Flexbox Cleaner, hack-free CSS
No, it is not pointless.

The point of this law is to create the perception that the authorities are doing something about the perceived epidemic of upskirt photography.

The same authorities also erect signs next to escalators warning people that upskirt photography is a crime. They serve the same purpose: to make escalator-riding ladies feel that the authorities are watching out for them.

Don't knock it. It works.
As if often the case with stackoverflow answers, all of them are wrong in different ways. You should only kill -9 when every other signal the program is likely to respond to has not worked. kill -9 is likely to leave program in a state that requires manual intervention, especially if that program is a database.

If you're a developer, before you kill -9 a program send SIGTERM (ie kill without args or kill -15). If the program does not respond, run gdb -p <pid> and then "thread apply all bt" before killing it. At the very least, you should get a good idea of why it was not responding to other signals.
What makes it worse is when other developers whisper in their ear that you are in-fact hallucinating. This is often done out of jealousy, spite, or plain old ignorance.

The bottom line though is that if your primary stakeholders are listening attentively to the developers concerns about the underlying integrity of the product then you've got much larger problems than just a messy codebase and it might be time to abandon ship.
Yet another note app for iPhone, iPad and Mac
What kills me about this thing is that it's still an almost-notebook. They take a tablet and make you choose to run almost-Windows or Windows. It's most visible difference to other tablets is a great keyboard concept, but it's not quite a notebook in that it now needs a kickstand to stand up. I'd rather have a notebook that has a rational keyboard that holds the screen at whatever angle than something that is almost exactly the same, but somehow inferior.

I'm really not against the whole idea of a Windows tablet, but if the keyboard is that important...just make a keyboard that handles the weight of the screen. In fact, the keyboard I bought for my mother-in-law's iPad does that just fine (minus the variable-angle) so I'd still rather have the iPad or Android tablets. Or a well-executed ultrabook. Easier for working on the couch/plane/train etc.

Still, I'll forward this article to an artist friend. It looks great for a drawing tablet and maybe it'll work for him.
I have a few coworkers who have them. The hardware itself is pretty nice, but the support has been awful when she's tried to deal with a problem she had with the power adapter. Her power adapter connection was too loose and wouldn't charge the device; her coworkers' power adapters worked perfectly in hers, though, so it was just the AC adapter.

She spent about a month arguing with them and not being able to use the device because she couldn't charge it. They kept saying it was a software issue and to reinstall, even though she could wiggle the power adapter and get it to connect.

Other than that, the hardware is good, much better than the Surface from an artist perspective (and several of our artists have shelled out over two grand for a Companion after seeing hers, and none have bought a Surface).
I used to argue that.

Android's largely convinced me otherwise.

(Android isn't a Linux OS so far as I'm concerned).
Right: programmers shouldn't rely on it, but neither should it be the only tool that users reach for when they want something to stop.
My naive answer: If a normal `kill` did not do the trick.

At least that what I do.

I guess a process is given more space to "clean up after itself" with a normal `kill`; where a `kill -9` forces it to die.

Anyway; I don't know the exact answer -- will come back later to read a wiser person's answer. :)
Over 15 years ago, as a teenager, I taught Linux / UNIX Admin courses, and worked as a consultant advising folks, and in the late 90s I was very adamant that you should never -9 anything unless you know exactly what you are doing.

As infrastructures have grown, and I have managed large applications involving tens to hundreds, often over a thousand servers, and I have grown to accept that a power supply can fail and a node can disappear from the network and it's even possible that none of its' components, including its' drives, will ever work again. I've never _really_ experienced such a catastrophic failure, but it's a lot easier to sleep at night if you just assume that.

kill -9 should never be worse than pulling the power plug, which is what netflix's chaos monkey always tries to simulate.

we all have to live on a continuum of how much of that we can survive, but if you always assume abrubt failure, it'll be pretty tough to give you a bad day.
This is a bit like saying that since your car can do emergency braking, you should always do emergency braking. Some processes clean up after themselves more neatly, or finish the current run of what they're doing first. It's dependent on what it is that you're stopping.
To follow this up: test these situations, design yourself into resilience. obviously, you can't build perfection in a day, but for anything you rely on, be it mysql, redis, memcached, postgresql, rabbitmq, whatever, just kill -9 that shit in staging periodically while a few people hit the url, and see what happens, what logs, etc.. assume failure.
You can't really corrupt a database that easily, can you? That's half the point of using a database, so you have transactions, etc.
Data mining Reddit posts reveals how to ask for a favor and get it
The advice to never ever use `kill -9` is too strong. It's fine to use if you know what the program you are killing does.

In my case, processes I have to `kill -9` are

- programs that only read data files (or write to dispensable files)

- programs that I know don't react to SIGTERM (there is no cleanup logic, but still something makes them swallow SIGTERM)

- often then are simple tools (e.g. ls) that become wedged in a system call or in kernel code (when trying to access a bad NFS share)

- in the other cases they are in-house programs that are either badly written, or too complex (the worst offender is CERN's ROOT, if it becomes wedged you have to `kill` and `kill -9` several processes it spawns), or where we don't care enough to fix them

Interestingly, there seem to be some cases where even `kill -9` doesn't help. What I do then is to freeze the process with Ctrl+Z (Ctrl+C doesnt work of course), and then `killall -9 $(jobs -p); fg`.

Actually, I have one program I routinely call with `program; killall -9 $(jobs -p); fg` and end it with Ctrl+Z. Sad, but true.

(Of course, if your process is a database or a GUI tool or something, then all the standard wisdom against `kill -9` applies.)
As a useful variant of this: I have grown accustomed to killing processes that hang with kill -11 (SIGSEGV). This is essentially the same as -9, with the exception that it creates a coredump.

Saves a lot of hassle with manually attaching GDB.
This is what tabs are for.
One example of where you might not want to kill -9 (-KILL) is a web server, like nginx. If you kill -QUIT (-3) nginx it will do a graceful shutdown. Nginx closes its listen sockets while allowing existing clients to finish. Many other daemons have similarly friendly behavior if you give them a chance to shutdown gracefully. They should degrade safely (if not nicely) with -KILL (-9) as well.
In German, yes. In English, the first association is Hitler.
Perhaps I'm blind, but what is the license for Fira Sans?
I think you may be forgetting glibc :). It certainly doesn't fall under the rubric of "easy to replace" -- although it's certainly possible.
If the process is not designed to survive the crash than it's a more like a bug. I'd rather encourage everyone to design programs in a robust way: when they can clean up after themselves upon relaunch.
>‘Leader’ and „Leiter” share the same etymology, „Führer” does not.

You're not being pedantic, you're introducing an unnecessary element. The etymology of a word isn't relevant in determining its current meaning. Führer is usually translated as leader and there is nothing wrong with that translation.
kill -9 should never be worse than pulling the power plug

No, it shouldn't, but just pulling the power plug isn't exactly recommended behaviour, either. There aren't many admins out there who will happily yank the power cord out of their desktops when they want to power it down.

Last night I spent several hours getting a server back into gear after a 'pulled power plug' event. A friend's rack was affected by a (seven-hour!) substation power outage, and it wasn't on a UPS, so it didn't shut down cleanly. Eventually we were able to coax the server to boot again (had to remove all USB devices in the process, including internal ones), and the problem was a corrupted MBR. Make a rescue usb stick, boot into that, finally diagnose the problem, cat a new MBR onto it, and tada, fixed. Let's just say that I don't find the argument "shouldn't be worse than just pulling the plug" to be particularly comforting at the moment :)
Glassholes Use Google to Destroy a Restaurant's Rating
It's licensed under SIL Open Font License 1.1:

https://github.com/mozilla/Fira/blob/master/LICENSE
When should I not use signal names in conjunction with kill?

Never.
I thought the option to select an avatar in the seating layout was an interesting feature: so the gregarious can sit with the gregarious, the droolers with the droolers, and the taciturn with the taciturn. Selecting a female gender would probably guarantee you don't get an empty seat next to you however...

But of course most of these booking sites actually hide pricing information until you tell them exactly when and where you want to fly. You won't find out that you can save some money by taking a two leg obscure routing or flying the day before.
This is the world's fastest robot on legs
Never mind old Adolf -- the bit of pedancy I really admire in your post is that you consistently and correctly use different typographical quoting conventions for German, English and Danish.
As someone currently helping to build an airline website, I'll just point out that the booking process, and other processes concerning the interaction with actual flight data, are controlled by a few organizations (global distribution systems) that have access to this data and our hampered with bureaucratic workflows. The airline itself might be able to hire great designers and developers to build out the informational side of their site, but the actual booking process has to contend with a slew of regulations (and IMO are poorly run and horribly old school) to connect customers to booking and seat picking services. It is very hard to innovate in this area.
Same here, DejaVu Mono in my terminal. Just tried the Fira Mono and it is OK but the line spacing seems far too big for my taste.
> What I've learned in the months since is that in order to overcome the panic and anxiety you have to do something very simple yet seemingly incredibly difficult; you have to let it happen. Let the panic wash over you. Don't run. Don't distract yourself. Close your eyes and focus on breathing from your belly--deep breaths from the belly rather than shallow breaths from the chest. And then pay attention to where the panic is and what it feels like. Just observe whats happening and let it happen.

"I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings
total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past I will turn
the inner eye to see its path.
Where the fear has gone there will be nothing
....only I will remain"
-- Frank Herbert, "Dune"

I had some brief moments of anxiety when I was growing up -- I never sought any treatment, but the coping mechanism I developed was essentially what you describe. I suspect others have had more/stronger problems -- for me the thing passed after a few years, and so far hasn't come back.

I certainly recommend seeking treatment with any illness that is bad enough that it causes problems in daily life -- I'm sure I would have needed treatment if it didn't just pass "on its own".
If a database is not kill -9 resistant then how can it be power-off resistant?
Yup, there are risks too though with that approach. You should be sure that ulimit for core size is large enough (not default almost always). Also, a core dump can take a very long time if your programs address space is large. It might involve writing tens of gigabytes to disk. So not only do you need the file system space, but you also need to be prepared to wait tens of minutes while your program is dumping core.
A Visual History of Typewriter Art from 1893 to Today
When we ran the AdWords account for [major UK travel agency that you will have heard of] we never used templates. We created 50000+ keywords and thousands of associated adverts -- with a mix of hand-written keywords/ads and custom code to generate them. And we tuned the results frequently, which often involving writing more code. (In OCaml, no less!)

If you don't take shortcuts, you get better results.
The problem is that this involves more than 30 minutes of my time. Setting up my development environment after the clean install will take half a day and I'm sure that I will forget to configure something in the process which will cost me even more time when I need the tool working.

I switched from Lenovo (which just worked without any problems) to Mac because I thought it's the same quality (it'll just work) with the bonus of allowing me to develop for iOS.

As it turns out, superficial things like the look and feel is better on the Mac, but it's nowhere near in terms of stability. I used my Lenovo for 3 years in work and at home as my only machine, whereas the Mac is in use for 1 day per week and I've already had more crashes on the Mac than I ever had on my old Lenovo.

I just don't have the time or the interest to babysit my laptop.
Which university can you get an engineering degree in PHP from?
16 weights? What are the corresponding CSS font-weight values?
There is no Server field in the HTTP response of my site.
<offtopic>

I know that grammar comments are probably not welcome here on HN, but I think that since you seem to have an interest in it, I'd point this out:

"Its" only has an apostrophe when it's a contraction of "it is" (or "it has"), the possessive is always "its" (without an apostrophe).

</offtopic>
not corrupt != everything is peachy

At the very least, you need to be prepared for a possibly very long replay of logs. Also, a huge number of people run databases in a configuration that doesn't make those guarantees. For example, many people will run mysql (esp. less performant slaves) with innodb_flush_log_at_trx_commit = 0 for performance with the understanding that a failure might require manual fixes.
Surely not over that period of time.
Just checked out the screenshots on the App Store. To whoever made it, you shouldn't call "yet another app". Not only does it look better than the default on iOS(duh!), but looks just as good as Evernote (though changing the icon outline and having a better font palette wouldn't hurt). And it has version control! Kudos, and hope much success with it
I don't quite get what you are implying here. "cats are people" is a patently bogus claim whereas their possession of emotion is hardly worth debating.
Don't exaggerate the impact of a kill -9. It can be safe if a homegrown application has a bug or there is a hardware failure preventing a clean reboot (like a locked IO to a disk that is no longer in order).

Sure it will mess up some things, but when management is pushing to limit the downtime of, for instance, a golden-image provisioned Linux machine, I'd kill it off no problem.

Now when we are talking a hardware box running some form of Oracle/mySQL - no, don't use -9 indeed.
Mumbai based Pizzeria tests successful delivery by Drone
I don't remember the exact details, but I once had a DB admin flabbergasted because there was a non-numeric character in a field/row that was numeric. The DB engine crashed upon starting and could not clean it up.

I think it was Oracle.

If I remember correctly we had to get the vendor involved

This happened after an unclean shutdown (power failure). The disk were RAID, but the cache battery was dead so there was some corrupt data written to the disk on block level.

THis could happen too on a kill -9.
Yeah, sorry I wasn't clear why. The first is that React is pretty large so it slows down the watch/build cycle enough that there is a lag and second is that in production React can be loaded via a cdn. Since everything is bundled into one file with Browserify its better for the end user download speed if you pull 3rd party libs out.

I also didn't give the main reason for using the NODE_PATH method. Browserify doesn't resolve duplicate relative paths so if you have a structure like this:

/src
main.js
components/a.js
components/foo/b.js
components/foo/c.js

and a.js requires c.js via relative paths:

require('./foo/c.js')

and b.js also requires c.js via

require('./c.js')

then c.js is included twice in your bundled code since Browserify uses the pure string path as the key. If instead you put /src in your NODE_PATH you can do this in a.js:

require('components/foo/c.js')

and this in b.js

require('components/foo/c.js')

and c.js will only be bundled once since it has the same path.
The 3 strikes law: a slice of pizza and a one way ticket to the big house
The reader needs to be careful--"wishes" are at once irrelevant "unkowable"-- as such they don't make anything "illegal". The language greenwald uses is intentionally mis-leading and manipulative, in this regards.
5 Interesting Facts about Neutron Star
Nice range of weights.

Anyone know a source where I can get the Liberation fonts in a similar range? My Debian installation just has three weights.
I know. But not as weighty as my old M4.
I recommend a MIFI device. Best thing I ever got. Saves me tons of money; I cancelled my two mobile subs and my home internet. Only need 1 data sim sub and that's it. Great stuff.
Gang Related 1. Sezon 1. Bölüm Türkçe Altyazılı izle
on xfce4-term the linespacing looks about 1.5 compared to Droid sans Mono.

Costs to many lines on screen, nice font though.
Do you mean patents in general or just software patents?
I fly quad and tricopters a lot, and this is very unsafe. Any motor beyond 2210 size are flying meat-cutters. Even the plastic props, but especially the carbonfiber once can seriously cut flesh, en tendons. You see; these bruhless motors have mass in their bell, and once they rotate they won't stop (like a gasser). They keep chopping.

Story time. A flying buddy had his micro-quad (only 5 inch props) setup on the table. He bumped into the remote and throttle lock was not engaged. One of the props cut his wrist, and hit a few arteries and tendons. They had to pull back a tendon from inside his arm (so he told me). I feel sick just thinking how it looked.

All he said at that moment was "I'm going to need a Doctor".

Another story. I had a tricopter on top of the table. I was calibrating with (my mistake) props attached. I programmed the arduino telling it to arm when a certain switch was "On". But this switch was already on. The moment the Atmel cpu initalized it send the motors to "Arm" and in a panic I grabbed the remote hitting the throttle a bit. The battery was beside the tricopter so it was light. It took of, chopped off the chandeleer's power cable, in to the teak-wooden table and my arm. It was a mess and I still have a scar 2 inches long. It needed stitching. It was only 20% of throttle.

To the point: Tie-ing a meatgrinder, even if it's a Parrot, to a dog is a bad idea. So please don't try this on your favorite mutt. At the very least use propguards or impellors.
First I'd heard of this, curious! What's the reasoning behind banning FaceTime?
I have to ask: In what way did Kodak try to stop digital cameras? They failed to remain relevant in digital photography, but I don't remember them trying to stop it.
Fun videos.

I think the following is the mentioned paper, but unfortunately, it's paywalled.

http://scitation.aip.org/content/aip/journal/pof2/26/4/10.10...
@pandatigox Thanks :)
NASA publishes free ebook on communicating with extraterrestrial civilizations
It's probably better to use SIGABRT (-6) for that, as it also dumps core and is less likely to be handled by the process (there are valid reasons to handle SIGSEGV and continue in execution)
yes but there are some weird regulations with the FSA in the UK that doesn't allow you to use amazon... Our lawyers chose our providers, we can't rly do anything about that.
The app shown in the pictures is "Manga Studio"
I do it all the time. In production. While testing my code.

~ The most interesting man in the world.
Hayden: I'd lose all respect for Russia if they haven't fully exploited Snowden
A SELECT form field bad practice, and how to fix it
So now instead of sending my friends a URL I have to give them vague instructions about where to find the content?

Welcome to Web 3.0!
There are 42 years of estimated recoverable oil left (in the top 17 producers) according to 2012 EIA numbers.

1324B/85M/365 = 42.675.

http://en.wikipedia.org/wiki/Oil_reserves

That assumes no consumption growth. The economic argument from peak oil people says: "OK, when we're down to 10 years of oil left, just how much more expensive is a barrel of oil going to be, given that increasing scarcity is evident? Does that price rise also feed back to 20 years? What does it do to the economy, and/or what alternate forms of energy take its place due to economic pressures?"

So yeah, within your lifetime you'll probably feel the effects one way or the other.
SCIENTISTS SAY YELLOWSTONE WILL GO BANG
Off topic now, but is the title confusing? The word "Dating", I can't make sense of why it is there and/or what it means.
Typo, should be "Data Mining" not really that confusing in this context though.
Who says it was?
fb-flo, a live edit tool for Chrome by Facebook
I see Hayden hasn't given up on his "Snowden is helping the Russians, therefore the enemy" narrative.
500 Developers Already Signed Up for MaidSafe Project
What they mean is that there would be special cases for let patterns so that

let (a, b) = Foo(a,b);

is a fine destructuring. It would be a special case for let, since the pattern would have to be more explicit in function arguments and in match, but I think they have a good point.