skysight-inc/HackerNews huggingface dataset:
> I work under a micromanaging boss

I don't have a "boss" I have a "manager" or "team lead".

I don't work "under" or "for" my "manager", I work "with" them.

If you understand that connotations of words matter, you should use other words. When you start to use other words, you might start to act differently. When you start to act differently your manager might too.

Meanwhile, your manager sounds terrible. My condolences.

P.S. This TED talk[0] is all about power dynamics, and its kinda cool, give it a watch. But seriously, stop using the words you do because every time you do, you subconsciously convince yourself they have more power than you do.

[0] http://www.ted.com/talks/adam_galinsky_how_to_speak_up_for_y...
Just because your users are dealing with logfiles, their users should still be able to use č ƒ ø or whatever unicode character in the filename or url - which will consequently end up in a log file.
my netiquette says, more than about three lines of code should go in a pastebin anyway
Like I asked baq, say I don't know the encoding ahead of time, but get it dynamically (like in the declaration of an XML file). How would I decode the string?
Not really.

Principal, maybe, but SDE3 is a position you can be easily hired into with enough experience. As a promo it's a bitch, though, and absolutely not worth it. Jump ships for something level equivalent at a company with better comp and get promoted there.

I say this having stuck it out at Amazon for SDE3 before jumping ship. My only regret is that I stayed too long.
By insane, I guess the OP was thinking "not moral"...

>>> they're just very much weighted to the employer's beliefs

That's no excuse. Hitting someone weaker than you is not "very much weighted to your beliefs".
Not really, earth is waaaay closer to the sun, so goes faster in its orbit but has a lot less energy (when normalised for mass) than any of the voyagers. They are going way faster than Earth in the sense that we're they to suddenly to telephone to Earth's perihelion, they'd be going ridiculously fast relative to Earth
Next episode: Pwning coworkers thanks to Makefile
Cannot agree more.

glibc's source feels like archeology: there's so much history and remnants of bygone eras.

musl feels like a structured, well-engineered and specified piece of architecture.

This isn't a knocj against glibc. But it was grown, not built.

musl and the team's great documentation have been incredibly handy when I've been building tightly constrained applications.
> A .h file with different syscalls IDs

That's not portable even across versions of the same OS, many OS don't support raw syscalls and don't make any guarantees about them. That's why you can't statically link libc on OSX for instance, libSystem is literally the system's interface and necessarily dynamically linked.
> they sell it as a service and operate more servers than google

Citation needed.
serious question: why I see really almost no complains in other languages when they introduce breaking changes? is the migration handled differently or the communities are less vocal?
Connections between physics and deep learning [video]
Agreed about the phrase thing - updated the phrase accordingly to say:

"Fastest sorting of bounded integers"
yes, in webapps you almost always import from future unicode literals in py2 apps.
Yeah, but if you’re programming in Python then speed isn’t exactly high on your language feature priority list is it?
My bad - that was a typo when writing. Updating it.
And any code running there can read and write your RAM as it pleases because "ME is secure and obviously nothing bad can ever happen there so there's no reason to protect other things from the ME".
Show HN: A pure C websocket server to find cycles in the English dictionary
> Judging corporate based on fulfillment center working conditions isn't fair. One is a $15k job, and the other is a $115k job.

This tells you much you need to know about the Amazon mentality
> Is there something I'm missing here?

Yes (see other replies), and it's precisely the reason why this code shouldn't pass code review.

At first glance the first example looks like it should fail but in fact works. The second example I provided looks like it should work, but in fact loops infinitely.

The first one is tricky and nifty, but prone to bugs. Using signed counters is better way to go about it.
And being able to escape "*" instead of the current clusterfuck.
It would be a major thing for car batteries - lighter batteries with longer charge means you get more range from two factors - less stuff to move and more capacity to do it.
Using a sparse bit-array will reduce the memory space of the problem.
Sounds like you're pitching a complete rewrite, which absolutely isn't the case.

Six works great and is simple to push through for side-by-side compatibility. That combined with `from __future__` for Py2.7 allows most codebases to work with small changes in a side-by-side manner.
I bought a kickstarter after seeing it adverstised on Facebook. That is some anecdata at least.

I have to say, though, a lot of the stuff advertised on Facebook and Instagram seems kind of dodgy. Unless I am just being targeted for dodgy stuff by their algorithms.
IMO that's the wrong approach. The correct one would be: "Hey, you know all the software you want to pay me to write? It will be in Python 3 now".
behold the demoscene https://in4k.github.io/wiki/c-cpp

focused on windows, because grafix. also, linux guys are more likely to use C anyway.

I only remember a comment about avoiding exceptions, which I might have read first in the context of micro controllers.

https://www.google.de/search?q=site%3Apouet.net+c%2B%2B+exce...

https://www.google.de/search?q=site%3Apouet.net+c%2B%2B+stdl...
> Do you do all your development in closed/isolated environment because of your coworkers posing threats? That sounds a bit paranoid.

Not because of my coworkers posing threats. And this wouldn't have to come from a coworker. Though that's what the author suggests the issue isn't limited to that which unfortunately seems to have taken the upper hand in the discussions around this.

But I do most of my development in isolated environments. Not because I don't trust my coworkers but because people can fuck up, things sneak in and can break my system or leave it vulnerable.
the C standard library is not perfect but good enough
So, the great irony of the leadership principles was the lip service they were paid at Amazon and how much I miss them since leaving.

They're a seriously good bit of Amazon culture that's been perverted into something you can use to submarine any meeting. If treated honestly, they seem (to me, anyway), like a fantastic set of rules for governing a company's actions. Sadly, it's difficult to align incentives with actually honoring and encouraging those principles :(
I let it go and it happened as you are predicting: worked very well personally and very bad professionally. It was a good tradeoff, but now, 1 year later, I'm planning to get back and do a better use.
Unfortunately, in this case the "pro" is the admin who has to manage the Mac fleet or the developer who has to use a Mac at their place of employment. This is all being due to their widespread popularity as "pro" devices.

If Apple plays fast and loose with this as a marketing term only, when will this "pro" market open to competition? I suppose it already has, judging from this article.
It will rot your mind. I'll take LaTeX + git, thank you.
I accept the argument that the suffixes mean something a little different in these SSE2 instructions than in the "classical" x86 instructions. But I think it should be clear where these suffixes come from (thus there is some convergence of the Intel syntax for new instruction towards the AT&T syntax). And indeed the instructions paddb, paddw, paddd, paddq are the same on Intel and AT&T syntax. Look at

> https://docs.oracle.com/cd/E19253-01/817-5477/817-5477.pdf

First convince yourself (for example by looking at page 26-39) that in the individual tables the column "Solaris Mnemonic" stands for the AT&T syntax and the column "Intel/AMD Mnemonic" stands for the Intel syntax.

Now look at page 48. Surprise: It is paddb, paddw, paddd, paddq both in Intel and AT&T syntax.
It's a Turing-complete language that can do file-I/O, so it's a given that he can "pwn" his coworkers.
In general the best way to learn anything is to start with a skeleton then add details (flesh) later. This is very true when it comes to math, especially at higher levels. You need to understand the concepts before memorizing anything will be worthwhile.

I'd add a few more things to your list. A lot of students hit a wall when they run into calculus. Partly this is the same old problem of mathematics being taught poorly in general, and there's also an annoying element of calculus classes being difficult on purpose (being as it is a topic which can involve an arbitrary amount of memorization and busywork) for stupid reasons. But additionally calculus relies heavily in having a firm grasp of advanced algebra, trig, and pre-calc, all of which equally suffer from the general problems of our educational system. Reviewing those subjects, probing for weaknesses in understanding, and shoring up any weaknesses can go a long way to making your life easier as you tackle more advanced subjects.

Also, as a general rule and a corollary to your third point: don't treat college as a race to get a valuable piece of paper, one that requires merely toil and busywork to acquire. Treat it as an opportunity to acquire new skills, understanding, and knowledge. The piece of paper might improve your earnings incrementally but the knowledge will not only change the way you look at the world it will unlock a great deal of potential in terms of what you can do (in your career and elsewhere).

P.S. since we're stating bona fides, here's mine: I got my math degree mostly by accident. It was something I was good at and a reasonable default choice, and I hardly had time to think about it before I graduated at 20. I don't "use" my math degree in my career typically but it's definitely made me a better developer and critical thinker.
3.0 was, yes, because some significant new bits weren't yet implemented in C.

Python 3.3 caught it back up to, and started to exceed, 2.7 on benchmarks. And the gap is only going to grow as the 3.x series improves and the 2.x series lies stagnant.
P2P networks
Is there any good news regarding private DC++ hubs?
Member when webpages were all content and no ads?
I will read more about bucketsort and update the article as necessary.
Code coloration wouldn't be that useful (if the snippets are that long they should probably go in a separate pastebin or a proper repository, reddit's comments do just fine without)

On the other hand backslash escaping (the lack of it and emphasis clusterfuck drives me nuts), block quotes, inline code/monospace and links I really miss.

Section titles, lists and tables would be nice as well, though not deal breakers.

Considering the maintainers have repeatedly refused to make any improvement to comment formatting in almost 10 years since HN was created, I'm not holding my breath though, it's obvious nobody cares about comment authorship and craft.
Reminds me https://en.wikipedia.org/wiki/Toshiba_4S
BANQUET TABLE SUPPLIER KUALA LUMPUR – EBay
Trip Based Public Transit Routing
Fission – Serverless Functions for Kubernetes
As compared to Windows in which an app can't do that?

Windows provides UI isolation between privilege levels:

https://msdn.microsoft.com/en-us/library/bb625963.aspx

As compared to Windows or Mac where apps are sandboxed by default?

As the sibling commenter mentions. Mac App Store applications are required to be sandboxed:

https://developer.apple.com/library/content/documentation/Se...

The same applies for Windows Store apps.

Windows has rootkits as does Mac.

Mac has system integrity protection (SIP). Even as root, you cannot replace system files (unless you disable SIP):

https://support.apple.com/en-us/HT204899

So, in contrast to default Linux distributions, a root kit cannot replace system files (a common trick that root kits apply is to replace system files to preserve itself during reboots and to hide the root kit, e.g. by hiding it from 'ps' output).

Moreover, macOS only loads signed kernel extensions, so it is not possible for a root kit to inject itself as a loadable kernel module. I think the same is true for Windows, but I am not familiar enough with Windows.

I am also not worried about government agencies having unfettered access to my machine as a default setting.

You are throwing two things one one heap now: (1) having a backdoor and (2) sending out usage data.

If you believe that there is a difference between Linux, macOS, or Windows when it comes to (1), this is utterly naive. Linux distributions have a large number of package maintainers and upstream projects. You cannot be certain that none of these ten thousands of people is compromised and inserts a subtle backdoor. And even if you are certain about this, it's likely that government actors have a collection of exploitable remote and local exploits.

When it comes to sending out data, such as usage data, use an app firewall. E.g. with a program like Little Snitch, it is easy to configure which program can contact what server in the outside world.

Ps. Linux has the potential to be very secure. A lot of the technology is there (e.g. Wayland and SELinux). The problem is that the Linux community is too conservative and/or believes in the myth that Linux is already secure.
I'm not going to work for free.
In python 3 you can use:

b1 = b'bytes'
s = str(b1, 'utf-8')
b2 = bytes(s, 'utf-8')

instead of using encode and decode.
More consistency.

If I like something, let's like it more consistently. Let's really eat pizza for 3 days for every meal. So I can order the large one and pop slices into the microwave and enjoy the fuck out of them.

More motivation for progress.

If I decide I want to build a house let's not lose enjoyment after 1 hour of searching the net for floorplans, materials, warehouses, plots of land, and so on.

Also, better [internal] metrics. And naturally better interrupt management. Both internal and external. With better metrics we could see whether what we were doing (and possible what we can do) was (would be) effective/good/useful and how much. And with more efficiency we could reschedule more frequently (not just after we spent a day fiddling with something) so we'd be more effective overall.

And so on.

And probably a lot of these are pretty hackable, as in sprinkle cocaine on that pizza, alaways a bit more the longer it was in the fridge. And probably physiologically it's possible to make a pill that'd give you focus for one hour, we already have a dozen or so ADD/ADHD pills used as attention enhancer nootropics. And we have drugs that alter our view of our own life. Bam, instant feedback on your life. Are we going the right way? Yes, good, keep doing.

Is that too mechanical? Sure, yet sometimes that'd be pretty useful.

And in general, what if you could take a pill to feel in love with someone for 500 days? You get together things are okay, but emotionally something is bothering you a bit, both of you take a pill, and done. Instant good relationship.

The same could go for not getting dragged down by half-hearted relationships.

And that's basic limbic system efficiency, nowhere near mind-hacking. We'd benefit a lot from better pattern matching, better memory (faster, more accurate, etc.), better associations, better theory of mind. A bit of raw working memory, maybe a numeric submodule, something for proper alarms, alerts, better introspection, and so on.
I guess he was referring to AWS vs Google Cloud. AWS is clearly the market leader. However, including Google services it's likely that Google could've more servers. Don't think there are any numbers out there to check that.
> (which is the absolute majority of the developed world)

I'm a German writing web apps using Django, and I constantly got UnicodeDecodeErrors when mingling with older browsers, uploads from Windows users, copy-pasted content from word processors etc.

The problem isn't (only) whether Latin-1 has all the characters, it's what encoding gets thrown at your software.

Python 3 was a blessing for handling user-provided input.
Congress President SoniaGandhi Admitted to Hospital with Viral Fever-Todayincity
That is exactly it. For example, on the Atari ST you display graphics by copying the bitmaps to the screen address.

Much of the C code is used during precomputation of data before the actual time-critical code is run. This involves copying lots of data in order to set it up so that as little computation as possible is performed in the actual time-critical parts.
They're in latin-1 though, which is a byte-per-character encoding.
EURUSD Rejects Higher Level Prices with Risk More Weakness Envisaged
Write it out 100 times before morning
It is, or at least had been on every distro I've used. I had to explicitly enable it to use gnuplottex.

The article shows a default config file where it is enabled for a handful of commands.
Watch this video:
https://www.youtube.com/watch?v=X6V1N64eEuc

I learned quite a lot. It's from one of NH's inventors (Peter Schwabe aka cryptojedi).
https://en.wikipedia.org/wiki/Grotthuss_mechanism
You are not reading what the person you are replying to is saying.
For Deutsche Telekom fiber you don't need no special router. Dial in with PPPoE over VLAN 7 similar to VDSL, minus the VDSL modem.
> Relying on Apple may fuck us over in the future, but Android would be fucking us from the start.

Sometimes having it tough from the start is good, especially if it forces you to build something more flexible. Not so good if you go on a crusade to fix every edge case specifically.

I'm speaking generally and definitely not "defending" Android here, as the platform does need too much edge-case-fixing which is usually overwhelming for small shops.
in a diamond battery what serves as anode and cathode, how do you connect wires to a diamond?

this diamond making process would be quite hazardous.

I wonder if they should just create a layer of diamonds and and sandwich that between C14 rather than try and rely just or those diamonds to power spacecraft (would save having to develop the non-radioactive diamond layer).

would a standard diamond also do that trick, I don't see why a radioactive diamond would be different if it is in the presence of C14?
Show HN: UberJewellery.com – Buy jewelry with Bitcoin
I've written Windows programs without the std library. The Win32 has plenty of replacement functions you can use instead though so it's much less work than what's presented here.

You get the same sorts of benefits though.
This is being a bit paranoid, but do your colleagues pgp sign their messages? How do you know it is really coming from them?
For the more self-righteous startups (the kind that will grill you on engineering ethics when the job is to make a plugin to add a squiggly line filter to instagram), you are probably screwed as they will basically invoke Godwin's Law instantly. Similarly, for the companies that have to deal with real ethical concerns(government/charity work, etc) you are also probably screwed just because you are a liability (nobody wants to be the one who hired a Theranos employee if poop hits the fan).

But for the majority of firms, it is just a job. Just be very clear on what your job responsibilities were and that you did them.

But one thing to be very wary of that others haven't addressed (and have basically given horrible advice on): Be careful. What you say can be viewed in a very negative light if poop continues to hit the fan. Do not "dish" or air any dirty laundry. Depending upon how your branch is handled, consider actually talking with your manager/HR on the proper way to respond to any questions. Yes, it can screw you there. But they will know you are leaving the moment a reference is checked so it might be worthwhile to cover your butt.

I am not a lawyer and this may actually be a case where consulting one is not a bad idea, but my personal suggestion from similar (but not as high profile) situations is:

"I am not at liberty to discuss any ongoing investigations or court cases. And besides, even if I was, I wouldn't know anything anyway. I was just responsible for coding widgets 4-30 and improving our infrastructure for STUFF."

Covers your butt as you aren't disclosing anything and reasserts that you were a code monkey.
Apple doesn't make design decisions based on redundant stock.

Besides, Apple Watch sold extremely well for its product category.
.. and so far it has AFAIK never succeeded to protect from all these attacks. That's what I meant with 'locked inside a computer'. It also doesn't matter because in the real world you don't have that bunker in between.
There are plenty of apps offering real time collaborative WYSIWYG these days: Google docs, office 365 etc
Python 2.4 was, until fairly recently, still supported in a RHEL LTS.

Enterprise being stuck with old versions isn't new. But it's a radically different world.
There's nothing subconscious about it. A boss by definition has more power. Pretending it's not so won't change the facts.
I would imagine it as a spasm. You have not control over it and you don't try to rationalize it, just accept it as something that happens to your body.
Serious answer (seriously): because Python 3 didn't break enough stuff.

For all the complaints, Python 3 was incredibly conservative about making changes that would completely break existing code. String handling was basically the big shift, and if you were writing good code to begin with wasn't super hard for most problem domains to adjust to. Clearing up some cruft in the way the standard library was organized wasn't hard to deal with either. And there wasn't a lot of new syntax in 3.0/3.1 and quite a bit of it was backported into 2.6/2.7 to make the transition easier.

And then there was a bit of a moratorium on language changes in 3.x to give people time to catch up from their 2.x codebases.

The result of which is a lot of people who didn't think Python 3 was a big enough deal to be worth putting in the effort to migrate, when the 3.x series started releasing. And now many of them are finally noticing all the cool stuff that's in 3.x now (3.6 is about to release), and noticing that their favorite tools and libraries have switched from "we support 2 and 3" to "we're dropping support for 2", and realizing they didn't take advantage of all the time they had to port stuff, and are angry and feeling left out and trying to find complaints to level at Python 3 in the hope that enough people will agree and just magically end it, port all the new features back to Python 2, and let them keep going as-is.
I have a simple Python implementation of Countingsort, Bucketsort and Radixsort, if it helps: https://github.com/MauriceGit/Advanced_Algorithms
Not really. In any Linux system I've seen,if you can change PATH you can already execute your /tmp/cat directly. And generally PATH and LD_LIBRARY_PATH are not passed through suid or sudo.
The big thing is not so much the changes that you need to make for Python 3, but supporting both from the same code base. Combined with the fact that this is often very necessary and will continue to be necessary for quite a while (LTS distros on Python 2.6 or 2.7), people think "why not just use the minimum?". If you have good support from things like six and good testing then it's possible, but it certainly adds a development tax.

Python 3 has been adding more features (especially concurrency-related) that don't seem to be getting back-ports, or at least the libraries that support them in Python 2 lack the ergonomics of nice syntax sugar. Eventually there'll be a tipping point of all major LTS releases on 3.x and enough carrots in Python 3 that none of the little things will matter any more.
No. You might find reading more about this particular 'problem' worthwhile [1] especially the part about its applicability in the real world.

1. https://en.m.wikipedia.org/wiki/Newcomb%27s_paradox