skysight-inc/HackerNews huggingface dataset:
I always liked the way this answer was presented as vim via vi.

> Your problem with Vim is that you don't grok vi.

http://stackoverflow.com/questions/1218390/what-is-your-most...
Posting of a bond, whether by a criminal defendant, civil plaintiff, or as a condition of some license is never presumed to eradicate malfeasance. It is a deterrent only: if the bond is sufficiently large then the person or business so bonded will be strongly hesitant to risk losing it. Hesitant, but not otherwise restrained.
There are some stores that just treat their employees better, even though they're selling similar products, as a matter of culture.

In the low end/mall type environment, look at In-N-Out or Chick-Fil-A vs. a badly-run Arby's franchise. Essentially the same product, but different culture. (McDonald's is even more interesting; they have great systems and generally hire younger or less experienced and more short-term workers, but don't seem to be as happy as the other places. McDonald's does do a great job of hiring disabled people, though -- and for a McDonald's job, a developmentally disabled person who is motivated and happy and has worked there 5 years is probably going to be a far better employee than a normal high schooler who is bitter about having to work.)

Generally "better" stores have higher margins, but not always higher prices -- Trader Joe's and Whole Foods both beat Safeway as a place to work.

If I lived in Iowa, I'd love to work for a place like Brownell's or in Colorado, Magpul, even for a lower wage than a company with less-good internal culture.
The small parts are just standard 0201 size. Brown ones are MLCC caps, black are resistors.
False!

The #1 trick is to swap control and caps lock. The #2 trick is to use control-[
Or play nethack!
Apple tracks a bunch of different metrics regarding sales. There are no bonuses for performance on any of them, and its quite difficult to get fired lack of sales. The metrics they use are (in rough order of decreasing importance):
Net Promoter Score
~25ish% of people who purchase a 'hero product' (iPhone, Mac, iPod, or iPad) get an email asking them to rate their experience. One of the questions asks how likely you are to recommend apple based on your experience on a scale of 1 to 10. People who give a 9 or a 10 are considered promoters, and those who give below a 7 are detractors. Your net promoter score is % of people who give a 9 or 10 minus % percent below 7. The 5th avenue store's average score was around a 52.

This matters a lot, consistent negative reviews are one of the few things that can get you fired.

- AppleCare %- This is the extended warranty apple offers. This is emphasized pretty hard, managers frequently cite studies that show higher satisfaction for people who buy warranties etc. The official target for this is 50%, but getting over 20% puts you in the top tier, and anything below 10% gets you negative attention. Store average was around 13-17%. Its pretty rare you actually changes someone's mind on buying it, most people come in decided.

- 1 to 1 % - this is % of computers you sell with one to one, which is a year of as-many-as-you-want hour longs training sessions on basic computer stuff. A 6% 1 to 1 rate was outstanding and over 10% was unheard of, but official corporate expectation was 25%

- Sales $

- personal setup % - how many people you can get to sit with an apple employee and be walked through setup of iDevice.

While I was at Apple, they were pretty good about just letting you do whatever you felt was best for the customer. There's was never any pressure to force a sale, and you were encouraged to talk to customers for as long as they wanted.

source: I worked at 5th ave, Apple's busiest US retail store for 6 months in 2011-2012. The store gets over 50% international customers (who often can't use the warranties/upsells in their home countries) so %ages may be drastically different from other stores.
Just install the goddamn DoD root certificates and the client browser will work just fine.

I've used approximately zero DoD computers since 2005 that had the SSL CA chain misconfigured for use on DoD websites. It's really not that hard, even my Linux box here works fine.
I did, and I think I might have mis-stated my point. GC thrash is a symptom of the problem, not the core problem itself. Manually managing allocations avoids the "resulting mess" that must be cleaned up from, which is where your big speed boost comes from. In general, the higher up you go, the further abstracted away from memory management you become. It's not that GC is inherently slow or anything, but simply that giving up control of where and how memory is allocated (in exchange for a more flexible language) is the reason for the speed difference.
To cut the story short, there is basically a single way to do "proper" inheritance in javascript, which is Crockford's prototypal inheritance [1]. There are a dozen variations on it, here is one:

function inherits (child, parent) {
extend(child, parent)
function Ctor () { this.constructor = child }
Ctor.prototype = parent.prototype
child.prototype = new Ctor()
child.__super__ = parent.prototype
return child
}

function Animal ...
Animal.prototype.x = ...

function Cat ...

inherits(Cat, Animal)

See Backbone's implementation [2] for another example. This eventually morphed into the standard `Object.create` method [3], supported in IE9+.

[1] http://javascript.crockford.com/prototypal.html

[2] http://backbonejs.org/docs/backbone.html#section-186

[3] https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
Yup, exact same story. Apparently this happens a lot :)
But if you make the bond absurdly large and never enforce the law, then no one bothers getting it because A) they can't resonably and B) there isn't any point.

Then add in twenty other ridiculous conditions and the whole thing becomes a total joke. Which is why HN companies don't bother complying at all, if they even know it exists.
For DoD it's already a requirement that any emails with URLs or other "clickable links" are digitally signed (possibly this is true for attachments too, I'm not sure).

However this is a policy which is not computer-enforced, which means of course that it's fairly useless in practice.
And our fascination with eugenics, apparently.
It looks like the site is stable now, thank you kind sir :)
If bored, you could try probing those various little gold test pads on the off chance they have a debug port[1] somewhere. Then again, Apple paranoia makes that overwhelmingly unlikely.

[1] http://www.devttys0.com/2012/11/reverse-engineering-serial-p... (although JTAG is probably much more likely if anything)
Or bobbin/pillow lace-makeing.
Have you considered swapping Esc and Caps Lock instead? Caps Lock is not very useful so tossing it into the corner makes sense to me.
Some other approaches:

- use the caps lock as escape

- use the space bar as escape

- map jk or jj as escape

I've personally been using the escape key itself for so long it doesn't bother me. I no longer even notice that it's any further for me to reach than other keys, so I have no reason to switch. And that leaves all those other keys I mentioned above for other purposes. For instance, I've mapped the space bar to : Now if only I could remember to use it.
Managing configuration on multiple computers is a pretty easy problem to solve. http://git.raylu.net/dotfiles/tree/
There are a lot of other tools that use hjkl. Most commonly `less`, but also pentadactyl (http://5digits.org/) and a lot of tiling window managers.
What's USB3 got to do with HDMI?
First ditch up/down arrow keys and use jk instead.

After a few days when you are confortable with it. Start using hl for side arrows.

I did it like that.
Below is a link to the DEF14A. All publicly traded companies have to file how their C-level executives & board members are compensated.

http://www.sec.gov/Archives/edgar/data/1490281/0001047469120...
It hasn't always been that way actually. I worked apple retail while in college for 2 years, and we only had 'runners' to bring inventory up from the back the last 6 months I was there... and the white macbooks were released at the time the "Specialists" (salespeople) were responsible for doing the running themselves.
So does the JIT optimization algorithms depend on popular conventions and patterns of how people write code with a language? Like in JS theres bad language features people avoid and certain patterns on how to code something. If such things changed would the optimizations start failing? I guess I'm wondering if speed is somewhat related to trends in that language.
Pfc. Bradley Manning to Face More Serious Charges in Leak
The solution to that is to make potentially damaging operations reversible, not to throw the problem back in the user's face. In fact, this is a very reliable design smell: any time you find yourself throwing something back in the user's face, stop and think about the problem for a few minutes. 99% of the time, the right solution is to provide more reversibility instead.
You can do both, actually. Using KeyRemap4Macbook, my esc is now capslock, and my capslock is ctrl if I use it with another key, such as ctrl-s, and esc when I use it on its own.
The best way to learn to use vim's hjkl movement keys it to play nethack.
It's worth noting that WoW uses Lua; at some point Blizzard switched from Lua 5.0 (with used a stop-the-world GC) to 5.1 (which introduced an incremental GC) specifically because of this problem. Before, UI code could generate excess tables, kick in the GC, and dramatically impact your framerate. The incremental GC significantly helped this, since it permits the GC to be run over multiple frames, reducing or even eliminating the perceptible impact on the user experience.
I was also unable to switch until I forced myself to go cold turkey. Putting this into your vimrc will disable the arrow keys

noremap <up> <nop>
noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>

It's extremely painful for the first day or two, but it's worth it. (Starting on a weekend might be a good idea.)
what z92 said, and don't forget you can use w to jump forward by words, which makes side to side movement a little easier.
> Mostly I'd love to know exactly what this chip/system does, so if anyone here with far more advanced hardware knowledge than any of us have feels up to hacking around, that'd be amazing! :)

Its converting an encoded steam to HDMI output. There aren't enough pins on a lightning connector to directly output HDMI and even if it could, you still need a transceiver somewhere (not particularly trivial in terms of space or power to stuff in the phone).

The SoC is most likely a little ARM core to manage stuff (Cortex-M0/3) with a video decoder and HDMI transceiver, the 256MB of ram is there primarily for the decoder to use. It also needs to mux the audio stream into the HDMI encoding.

As for 'it runs iOS', your really splitting hairs, its pretty normal for the master devise to load a slave device with its firmware when plugged in (rather than storing the firmware in flash on the slave). The fact that they would use some knocked down version of iOS isn't terribly surprising. Embedded versions of more powerful OSs are used all the time; There is a non-zero chance your stove and microwave are 'running linux'.
Judge Cuts Sum Owed to Apple Over Patents
Why not? AirPlay is a pretty high-level protocol, and it's got an ARM SoC, so the natural thing for Apple to do would be to use the ARM version of XNU with a minimal userland that has their AirPlay implementation and whatever codecs it needs.

At least, If someone handed me one of these dongles with a copy of the protocol spec and asked me to write the software for it, I'd do something similar except using Linux. (Sidenote: buildroot is great for creating embedded systems running Linux.)
Thanks for explaining. Understanding how to efficiently and effectively help is probably one of the most important problems, so kudos for taking a crack at that.
I worked at the store the OP worked at, and his story seems accurate. The 5th avenue store does more $/sq foot than anywhere else in the US, and grosses more than any other retail store in New York. In early 2012 the 5th avenue store got 'runners', who would bring the computers out to you, but it was often faster to run back and get it yourself. I sold ~30-50k of macs a night and would frequently be seen running back and forth to the floor with my arms full of laptops - this didn't attract negative manager attention - I was making sales.

His story checks out - I'm happy to answer any other questions re: 5th ave
So good! This made me realise how many times I go to "php.net" and do a search. Bookmarked it and will be using it from now on! Thank you!
Sure, vote me down. Keep the myth alive.

The discovery described entailed new ghettos, forced labor camps, etc. In other words, it's not about new killing centers, and as such NOT about the Holocaust in the typical sense of the word.

Do read on in the link I supplied please:

"Many camps were built quickly by civilian contractors during the summer of 1942 based on designs for military barracks, making the buildings poorly equipped for cramped family living.

To describe the conditions in more detail, the Heart Mountain War Relocation Center in northwestern Wyoming was a barbed-wire-surrounded enclave with unpartitioned toilets, cots for beds, and a budget of 45 cents daily per capita for food rations.[67]

Because most internees were evacuated from their West Coast homes on short notice and not told of their assigned destinations, many failed to pack appropriate clothing for Wyoming winters which often reached temperatures below 0 degrees Fahrenheit (−18 degrees Celsius). Many families were forced to simply take the "clothes on their backs."

Armed guards were posted at the camps, which were all in remote, desolate areas far from population centers."

In short: the new sites discovered were in many ways JUST like the Japanese internment camps (and vice versa), where Japanese people, often citizens of the USA, were kept against their will.
Hey, we're hackers. We only have strong opinions.
I would argue that a is just as good, or better, than i.
Why we?
Not really. The world was pretty connected then too, at least Germany. Technology doesn't change human nature. Every society is one disaster away from turning on each other like the Germans did.
The Benefits of Optimism Are Real
Had to stop reading halfway through, where have they shown a causal link between a reduction in gun violence and an increase in gun control? There were numerous incidences of violence under the assault weapons ban and it's not clear to me that the frequency has increased since the ban expired. Also, there is a neglected third use of firearms for sport shooting.

While the authors overal point regarding Google Glass is something I agree with his way of going about getting there reeks of propaganda for gun-control. Can we cleanly separate the two issues or at least take an unbiased approach to both?
Gimp's latest user interface is harder to use than Xfig.
Classic Hacker News any more - top comment is a cynic. Even if this isn't true, what would the point be for lying? And what really is the harm done?
Understanding Strict Mode in JavaScript
I'm buying a KickPed
If you type google.com you don't expect FB to replace it to bing.com without telling you.

/path and /path/ are two totally different things in the standards, just like /path and /path2. Sure in most cases with and without trailing slash gives the same page; but it's not something you can assume.

Same reason why "we don't allow https links" doesn't mean you can just drop the s.
Rajiv Sethi: Why Do Groupon Campaigns Damage Yelp Ratings?
What amazes me beyond anything else is that there is anyone at all, aside from upper management, that even attempts to defend the killing of telecommuting. Anyone who isn't an exec at a large company does not have any real data on whether it's better or not. They may have anecdotes, they may even have a few anecdotes, but that's it. And, frankly, for execs there's an inherent conflict of interest. Just take Marissa Mayer :

http://healthland.time.com/2013/02/28/how-yahoo-ceo-marissa-...

This woman is ... I am sorry to use this word, she's disgusting. I have zero respect for someone who asks people to come into the office every morning, and says this makes things better, see she does it herself ... building a nursery into the fucking office, and for all I know she takes a helicopter to avoid the traffic.

This is about as honorable as an army company standing outside an indian encampment, armed to the teeth with automatic weapons, saying how they've "fairly negotiated a transfer of land".

These people are the reason we live in bland, empty inner cities with zero space for anyone and tiny apartments except for the super-rich. Telecommuting could solve that problem, and we should be fighting for it. To be exact, we should be fighting people like Marissa Mayer and other execs to get it.

Why the fuck don't we do that ?
I haven't read Tinker v. Des Moines in some time so don't take this as ironclad, but keep in mind that the school students are in general required to go to school. No one is forcing the protestors to walk inside the Supreme Court building and so I'm not sure the same logic would apply.

You have a good point with the yarmulke example, and in fact some states (like California) have even broader protections on what reasons unrelated to an actual business need you can use to ask someone to leave the premises.
Yes, but in hotspot's case I cannot remember if it is actually turned on in both "server" and "client"
Waiting to see if eastdakota or jgrahamc will chime in...
Dude, that's a fantastic suggestion!
You misunderstood OP, the FB error he describe is not about hitting a url "path/" that 301 to "path" and FB not detecting it.

In the uri standards, /path and /path/ are just as different as /path and /path2.
Art helps hackers
Not a cynic, a skeptic. And that's pud, who's a pretty major hacker.
Wow. That's a great suggestion, too. I've played for about 42 seconds and already feel more comfortable...
I work as a skydiving instructors and had a similar experience. A group of deaf college age students came in to skydive and I was paired with one of them on a tandem skydive. Generally we have about five minutes to gear up and train our students when it is busy (as it was that day).

During a lull I wrote up a quick briefing of everything I would usually say and go over on my laptop. When it came time to jump I greeted the student, smiled and then had them read the text while I geared them up. Them I made a big show of pantomiming everything we'd be doing while we laughed and conversed on the laptop.

It was a lot of fun :)
If you have failed to grok vi[m], you need two things. First, to understand just a little of two other editors, ed and TECO. Second, to know that vi's real modes are not what the naïve user, and sadly most documentation, call ‘modes’; they are line mode (ed mode) and visual mode (TECO mode).

ed is a line editor based on search-and-replace using regular expressions. To edit existing text, you typically locate it with a search and change it with a replace. Sometimes you refer to nearby lines with .±n addressing, and sometimes by absolute line number (having printed a few lines with the ‘n’ command); and sometimes you change entire lines (with ‘c') rather than doing a replacement; but really, search-and-replace is where it's at. vi's line mode, which you enter with ‘Q’ or more commonly one-off with ‘:', is just ed on steroids.

TECO is a character stream oriented editor, or, if you prefer, a programming language for manipulating streams of text. http://scientopia.org/blogs/goodmath/2010/11/30/the-glorious... is a decent short introduction. TECO text manipulation functions have an optional count, a function name (one or two characters), and an optional argument terminated by ESC. That should already look familiar; vi's visual mode is watered-down TECO. Sure, many of the functions have different names — vim's ‘h’ and ‘l’ are TECO's ‘r’ and ‘c’ — but some are the same: ‘i’ followed by an argument (i.e. some text) terminated by ESC is the function that inserts its argument before the current editing point. It's counterproductive to think of vi as having an ‘insert mode’ and ‘append mode’ and ‘replace mode’ and ‘substitute mode’ and whatnot, just as it would be conterproductive to think of the x in sin(x)² + cos(x)² as being in ‘sine mode’ or ‘cosine mode’.

Spend an hour with ed and an hour with TECO, and you'll begin to grok vi.
Weird, not sure how I missed it. Sorry.
Judge cut Samsung payout to Apple in Half
The current forced labor camps in North Korea looks to be indistinguishable from how the nazi forced labor camps worked, except on a single nation scale.

The sad part is that there are no clear stop to it in any time soon. It seems that as long it is a powerful enough nation/allied nation, they can do what ever crimes they like. Only once it is all over will people be look back and wonder why they let it happen.
This would be a far better article if it was interwoven with actual code examples. Otherwise, you'd have to switch back and forth between a copy and their code and the blog page to actually grok what they're talking about.
Here's my theory. Apple has made its reputation in the 90s with the film/graphics/illustration market, and that's where the Power Mac/Mac Pro was a critical product. Once the switch to Intel was made and laptops started catching up in speed/GPU power, less people needed a fixed tower just for Photoshop/After Effects/Maya, they just put those apps on a laptop. Moreover, the professional market is always smaller than the consumer market, and consumers don't want desktops, so Apple just went where the money is.

They got rid of Xserve and they'll likely get rid of the Mac Pro if demand falls significantly.
whatever man , php is not going anywhere soon , you can hate it all you want doesnt make a difference.
The outdated hardware often makes the savings not worth it.
The act of soldiers hopped up on religion and hiropin (speed) means it is morally justified dropping an atomic bomb on a civilian city?

To the extent possible, I will never do business with you or any company you are associated with. You sound like a horrible person.
you should add commenting capability to the page.. how neat would it be if someone from the not-actually-deaf group were to share a self-confirming anecdote (and possibly, an update on how they're doing now)!
Thanks for the feedback. This is not meant to be a full replacement for documentation. I always find myself just looking for an example of how to use some code or how to do something with code. This is designed to help solve that problem as quickly as possible. I do think, though, that there is room to add that feature you describe. It would be easy to detect when some characters are entered that are present in a lot of functions, then display a list of relevant functions etc.
Well, there's going to be a major update of the Mac Pro this year, widely presumed to be something more than a mere upgrade of the internals.

It's difficult to explain the continued use of outdated chips over the past few years, especially after they discontinued the XServe and told everyone to use the Mac Pro instead.

I suppose the Gruber-esque answer is that Apple (especially under Steve Jobs) wants to present an elegant vision of what computing should be, every product a work of art with considerable mass market appeal. The Mac Pro is basically indistinguishable from a bulky 90s tower PC, and very few people actually need it.

It's a decidedly unsexy product. Apple is not Dell or Lenovo, they make very few products and they make a very big deal out of each one of them. The Mac Pro is an unfortunate necessity that they cannot reasonably discontinue. But it's not a product that Apple really wants to make.
LOL, thank you for broadening my horizons a little.