skysight-inc/HackerNews huggingface dataset:
Nope, git can be initialized in directories with files in them.

➜ ~ mkdir test1
➜ ~ cd test1
➜ test1 echo "hello" > hello.ttx
➜ test1 ls
hello.ttx
➜ test1 git init
Initialized empty Git repository in /home/david/test1/.git/
➜ test1 git:(master) ✗ git status
On branch master

Initial commit

Untracked files:
(use "git add <file>..." to include in what will be committed)

hello.ttx

nothing added to commit but untracked files present (use "git add" to track)
➜ test1 git:(master) ✗
A surprisingly good read!

I went into it thinking "in reality, salary negotiations are so different from hostage situations; what's this person going to be able to show us?"

What a pleasant surprise to find new gems about how people work and what makes them tick. Thanks op!
Thanks for pointing that out. In fairness to Mozilla they do have the snippet "Earlier this spring, Firefox OS phones launched in South Africa[1]" tagged onto the end of their blog post.

I agree, the title of the post is a bit misleading and I have done further damage. Should definitely read ---> "Orange Launches [Their] First Firefox OS Smartphones in Africa" :)

[1] https://blog.mozilla.org/blog/2015/04/02/firefox-os-arrives-...
Questions:
- what kind of career do you want?
- What specific job market are you currently in?
- You mention the pay is great but dislike the work. How much time can you dedicate on projects you're curious/passionate and capable of doing?

Regarding unhappiness at work, I was in your situation some years ago and found that the solution to my problem was putting in the required hours at work and then going home and working really really hard on the things that mattered to me. Also I found that having a daily exercise routine helped a lot with my productivity and mood!

Regarding leaving your country, I'd start by marketing yourself better. Your site doesn't give specifics on what your ambitions are and does not showcase why I'd want to hire you. Perhaps, if you SHOWED me what projects you can do for me, I'd be more inclined to see where you'd fit in my organization. A great example of good marketing was this kid's portfolio that sprung some weeks ago: http://www.hostmeinca.com/

Another way to leave is by getting a masters in another country. Look for masters in a field you're curious about and then search for scholarships. There are tons of scholarship resources out there (google Fullbright, Daad, Gates Millennium Scholarships, UK council scholarships). A masters is also a great way to network and meet potential employers or even future coworkers that might end up giving you a recommendation down the line!

Some other advice (and I know the HN crowd will probably differ):
- GET ON LINKEDIN! Get people you've worked with to endorse you!
- go read this book by John Somnez called Softskills. It will help you market yourself better as a developer http://simpleprogrammer.com/softskills

Hope this helps!
I wanted to find out what the statute of limitation for rape is in the USA, because under German law (20 years starting with the victims 18th birthday), the rapist could very well be punished. And found out, that each state has their own regulation. I am all for federalism, but 16/50 different rape laws?
The Wikipedia article is also interesting. http://en.wikipedia.org/wiki/Sylvester%E2%80%93Gallai_theore...
OpsDash Self-hosted server and service monitoring
Go Buy a Casper
I'm always surprised at people who don't try something, but then draw conclusions based on their ignorance. I've found that often in life I don't get something until I try it.

Not dissing your attitude though... you aren't really drawing conclusions from what I can tell, you're just saying you don't get it at this time. That's pretty normal for most people, and there's nothing wrong with it. Nobody has a duty to get this stuff other than, say, mobile developers, or those working in fields it directly affects.

There have been a few people who have tried Apple watch, and have given it up. But even those people I think are drawing conclusions based on ignorance, because they are assuming that new apps coming out shortly won't make the device more worthwhile.
no, that is not the same thing.

In a case where the two people have differing accounts of consent, and there is no other usable evidence, the person is found "not guilty" (not the same as innocent) because it cannot be proved. This is not the same thing as assuming consent, it is applying the principle of the law.

Assuming consent is a much more insidious thing, which means actually disbelieving the victim on principal, because of the type of crime. This is not a problem in e.g. theft, because nobody assumes people want their stuff stolen.
You're not supposed to "flow" through multiple levels of abstraction in your head. That is the fundamental problem, and why we so often think that it's okay to have large functions (you know, to 'keep it all in our heads', or whatever reason is most often touted).

Not only that, but as the OP mentioned that it doesn't work if the methods/functions have side-effects, then we're building up opinions on a sloppy and fundamentally broken house of cards.

First off, your methods should not be having side-effects that are not obvious from the purpose of the method. And then secondly, back to my original point about not having to flow through the code. In light of that, a function should do one thing, and that's it. And when it does so, the method name clearly states what it does. After you put those two together, you simply "assume" that method does what you expect it to, and "flow" through the logic at a higher level.

I'm not going to go down into some silly "read_input_data" method while "flowing" through the high-level code, because I know what it is supposed to do. And by extension, at some point I will review it in its singular/atomic entirety, or would have already done so. Either read_input_data returns the data, or it loads it up into a instance-variable.
You'd have to have a standard vim config with folding to get it exactly the same.

Also, there's more restriction in that the single-use code block only has access to the variables passed into it, which makes it easier to parse, since less things could be happening. It serves to prune variables from the local scope.
That's coming in es6
"Only five states — Colorado, Illinois, Michigan, Ohio and Texas — require the testing of all rape kits,"

The story is about a rape in Illinois, and the kit wasn't tested, despite it being required.
So i'm not quite sure of the relevance of this tidbit, since they go on to cite other statistics that show, essentially, "you can make whatever you want the law, it doesn't seem to help this".

IE they seem to include it to say that it's sad every state doesn't force testing, but go on to show it doesn't even seem to matter when they do!
This is ridiculous:

@carbocation: "If you are interested in a physician's help but do not want to take a specific medication or class of medications, things will get a bit more complex"

You don't understand the pressure the doctors are under to prescribe these things. A few years ago I was bit by a tick and a few months later I developed severe problems because of that tick bite. One of the problems was that my heart would sometimes race. The doctor put me on antibiotics to deal with the bacteria from the tick bite, but the doctor said I also had to take Paxil. I asked, why would I need to take Paxil to deal with a tick bite? She said the racing heart indicated anxiety, which needed to be treated. I said, if the bacteria causes anxiety, won't that antibiotics resolve that? She said yes, but in the short term I needed to take Paxil. I asked, if the problem is assumed to be resolving in the short term, and the episodes rare, isn't this a classic use-case for something like Atavan or Klonopin? We discussed it for a long time, and we went round and round in circles, but in the end she made clear that her decision in this matter was final: my choices consisted of taking Paxil or finding another doctor. Since this woman was a well known specialist in treating the kinds of bacteria that one can pick up from tick bites, I decided to take the Paxil. But it struck me as absurd then, and now, that I had to take Paxil to deal with a tick bite.
Australia also has a huge Somalian community (particularly in Melbourne) = plenty of great restaurants. :)
http://typedrummer.com/r7h885
Interesting facts about realism. Being first is very relative.
> resources.arsc: a file containing precompiled resources, such as binary XML for example

yes, SO answer: http://stackoverflow.com/a/6646113
After carefully studying pictures of SNES cartridges, I think you're right. That's pretty funny that Boysel used game cartridges when creating the demo system for a patent lawsuit.
If you have a branch called "master", whose HEAD is currently "a4300d840a4d01767cb2e768e51f7e88cb40e8cb", for example, all that means is that there is a text file called ".git/refs/heads/master" which has the contents "a4300d840a4d01767cb2e768e51f7e88cb40e8cb".

That's all there is to a branch. Do:

cat .git/refs/heads/master

in any git repo you have on your machine and see (compare it with 'git log')

If you have a remote branch that points to the same commit, all that means is that there is a text file called ".git/refs/remotes/origin/master" which has the contents "a4300d840a4d01767cb2e768e51f7e88cb40e8cb". Again, that's all there is to a remote branch.

Well, ok, there's also an entry in your ".git/config" file that gives the URI for "origin" (or whatever you've named your remote server; origin is the default).

All these files are just text files. Have a look at them in your favourite text editor (or with less or whatever).
I stand corrected, wonder where I got that misconception from.
Call Your Mother: Be better about keeping in touch with friends and family
Here is a good review of how it works: http://economixcomix.com/home/tpp/
Wonderful article, even if the mid section gets a little too detailed about the history of MS and the understanding of programming abstraction layers.

Looking back on the past and being able to relay your day-to-day life like that into a story is very cool.
sorry, yes, I am aware that the burden of proof is on the accused slanderer, since these are civil rather than criminal cases. I appreciate that that wasn't clear from my original comment.
Bayern Munich vs. barcelona 12-5-2015
A fart-tracking Kickstarter wants you to stop cutting the cheese
TL;DR: It's Mother's Day. Forget this app and give her a call.

Some context:

I sucked at remembering to call my mom during college.

Not that I didn't want to or didn't care, I just plainly forgot. Calendar events didn't work, because sometimes I did contact her that day, and was notified to call her anyway. And what about all my other friends? How was I supposed to remember to keep in touch with them? I needed something easy, automatic, and scalable.

So, I made Call Your Mother. It intelligently and automatically reminds you to get in touch with the people you care about.
Never go stretches of time without calling or texting your family and friends again.

*Note: You could definitely label this as self-promotion, but it's free, has no ads, and has legitimately helped me be better about contacting people. Just wanted to share the tool, especially since it's Mother's Day. :)
See "A Note on Practice and Persistence":

"As you study this book, and continue with programming, remember that anything worth doing is difficult at first. Maybe you are the kind of person who is afraid of failure so you give up at the first sign of difficulty. Maybe you never learned self-discipline so you can't do anything that's "boring." Maybe you were told that you are "gifted" so you never attempt anything that might make you seem stupid or not a prodigy. Maybe you are competitive and unfairly compare yourself to someone like me who's been programming for more than 20 years."

http://learnpythonthehardway.org/book/intro.html
Nice, where do you source the data? From Mozilla's publicity machine?
I can't talk for others but according to my experience I found that getting high quality Python/Django developers is much easier than PHP. Someone would expect the situation to be the other way around due to the larger PHP pool, but it's not.
VACCINE EXEMPTION RIGHT- VACCINE RIGHT ATTORNEY ALAN PHILLIPS
Yeah, ssh -t host [h]top is the existing default and rtop doesn't seem to bring anything more to the table. Maybe it's another one of those "I wanted to learn golang" projects, but there's nothing in the README.md about it.

I thought at first that this was going to be a thing where you could feed it a list of hostnames and it would go to all the hosts in parallel and show you aggregated metrics across them, like "what is the distribution of cpu load caused by my main app server" or "what is the distribution of free memory on these 20 machines" over the next N minutes while I change something", sort of a halfway point between opening a few windows with "ssh -t host1 top" "ssh -t host2 top" ... etc, and having full-blown centralized stats gathering like with e.g. datadog.

That would be a pretty sweet tool; I haven't heard of anything in this space yet.
PHP is going through a technical renaissance and does not deserve (some of) the bad rep it has: http://radar.oreilly.com/2014/03/the-new-php.html

The community is huge and there are plenty of mature software and components to use. I would not be shy of using PHP and wouldn't worry about hiring challenges in the next few years.

That said, I would not hang my business on a single technology. Building with a combination of PHP and Node.js should be a good bet as these compliment each other and will provide developers chances to learn new things.
for the first time in modern history, your kids won't be better off or live longer than you.

That was not always the case. Wars, dictatorships, economic cycles, all affect how well a generation does.
"Proof" in the legal sense is not the same as in the mathematical sense. Courts can decide which witness can be trusted and which can not. You can be sentenced even if there was a possible explanation how things could have happened without you committing a crime. In the end it matters, what the jury thinks.

What the jury thinks about possible rape cases is of course depended on societies overall attitude to the crime and the involved group of persons. To give an extreme example: I would say, that a few years ago, many would never think that a priest could also be a rapist. Without the possibility in mind it is hard to convict somebody of something.

So we have to be very careful. There are a few cases of people ruining other peoples lives by accusing them, but most of the time, when somebody claims to be a rape victim and you have found DNA samples, probably it was indeed rape.
I recommend watching Ira Glass's video on the gap between your taste and your abilities. He addresses your problem specifically because it's very common: https://www.youtube.com/watch?v=BI23U7U2aUY

You need to refocus your goals away from achievement and towards output. Learn to become motivated by effort rather than mastery because it will be a long time before you are top 10 at anything. Nobody stays motivated for that long without enjoying the work.
That's the best news I've read in a while, thank you. Looking forward to it very much!
Jim Balsillie: Canadians can innovate, but we're not equipped to win
Try airplane mode
Author here. One key difference between the Intel and TI layout is that Federico Faggin (who later created the Z80) brought silicon gate technology to Intel from Fairchild. This provided much better transistor performance. But it also provided a layer of polysilicon "wiring", which made routing much easier. (Kind of like routing a single-sided printed circuit board vs a double-sided board.) This gave Intel a huge advantage in layout. But even taking that into account, the TI layout is kind of terrible.

Silicon gate info: https://en.wikipedia.org/wiki/Self-aligned_gate#The_Developm...
Kirk Johnson, the man behind the shock-image 'goatse', passed away
You may want to look at http://www.longnow.org and http://en.wikipedia.org/wiki/Long_Now_Foundation. One of their projects (the brainchild of Danny Hillis) is to build a clock that will run for 10,000+ years.
I always thought the best way to negotiate is to have the freedom to walk away. (BATNA - Best Alternative To Negotiated Agreement)

Your boss doesn't give you a raise - you find another job.

(If you can't find a higher salary elsewhere, what reason is there for your boss to offer more?)

You're in salary negotiations for a potential new job, they don't offer enough - stay at your current job.

You're interviewing when you have a job and the interviewer is being a tremendous douchebag - walk out.
IANAL, but getpocket doesn't appear to have a trademark registration[0] (and I don't think they could since it's such a weak mark [1]). So they may be able to get a design mark so that a similar logo can't be used, but it's entirely possible to use "pocket" for a similar service.

So while it may be "nice" to not use a similar name, it's doesn't appear to be required in this particular case.

[0] - http://tmsearch.uspto.gov/bin/showfield?f=toc&state=4807%3A5...

[1] - http://www.dmlp.org/legal-guide/naming-your-business-choosin...
I had read an article on the fall of winamp once, I think it was this one by ars technica: http://arstechnica.com/business/2012/06/winamp-how-greatest-...

It seems like in the case of winamp there was a mix of bad management decisions and what is now history (the rise of the iPod, web 2.0, and the fall of AOL's primary service).
This is something I've also been wondering for a while (I live in Peru).
Most of the folks I know follow this path: apply for a Master's degree abroad and then try to find a way to stay in that country. But this is the thing: I'd love to work abroad without having to do a Master's because I don't like reading/writing papers, it doesn't seem like a very optimal path to me.
So my current strategy is to build a portfolio on Github, get freelancing work online and then see if some company abroad hires me. Could this work? Could some company hire me based on my experience online? Glad to hear any thoughts on this
I know this doesn't answer your question specifically, but if you have a site and a product already launched, and if it is working, why change to just to accommodate a single person. Not to knock him or his skills, but that seems like spinning wheels when you could be out selling and improving.

Now if the site is not developed and you do not have a product, I would say do whatever you are most comfortable in to get it launched. There will always be the next great language out there and to second guess yourself now is just wasting valuable time. PHP, while it has its moments, is not a bad language to build a product with. There are plenty of big name sites that got their start as PHP or are still built on PHP. I highly doubt that in the next few years that PHP developers are going to be a thing of the past.
FWIW, the syntax highlighting is a little overwhelming for me.
From the blog: "Is so lean and mean it can run on a Raspberry Pi. The server mind you, not just the agent!"
> Another thing to keep in mind is that most rape and sexual assault is committed by people whom the victim knows personally, which makes the majority of cases much simpler to prosecute than this one.

That's actually more difficult to prosecute successfully. It's much easier when you have DNA evidence linking two people who otherwise have no connection whatsoever, and demonstrating that forcible sexual contact occurred despite the rapist claiming to be somewhere else at the time.

It's much more difficult when the rapist is a relative who has plenty of opportunities to be close to the victim, plenty of alternative alibis or excuses, and (most importantly) plenty of leverage to emotionally blackmail the victim into not filing charges.

Rape can occur within marriage or domestic partnerships, and this is probably by far the most difficult to prosecute. The fact that the victim knows the rapist makes it more complicated legally and logistically, not less. In an abusive relationship, it's considered a success just to get the victim out of the relationship at all, and if they're in an emotional state where they can still move on and function in life, that's an added bonus. In situations like these, trying to prosecute the rapist is a distant pipe dream.

> Yet another thing to keep in mind is that although rapists tend to be repeat offenders, only a small percentage are "serial rapists". That is, they're rare like serial killers are. Those guys barely exist.

I really don't understand where you draw the line between "repeat offender" and "serial rapist". If you look at the link I cited in the original comment, it provides data on the number of repeat offenders, which is already troubling enough to be of concern, regardless of whether it meets your unstated threshold of "serial rapist".
"Role-playing games were dangerous: they warped fragile young minds, breaking down the barriers between the real and the imaginary. The irony is that it was the authorities, not the players, who couldn’t tell a game from reality."

... well said.
Feels like click-bait, I am not sure if that has been declassified or not...
Using Xamarin.Forms MasterDetailPage
This article serves as a pretty clear cut example of the pejorative "hipsterism". She's essentially rejecting the very culture she identified with previously solely because of its perceived higher degree of popularity in metro areas.

She also has a wrong headed idea about metropolitan areas in general and about San Francisco specifically. These are not cities that have inherently normalized counter-culture, raising a generation of conformist non-conformists. They are centers of migration. The overwhelming majority of the population is not from San Francisco or even from California.

The reason you don't see many counter culture types amongst adults in the suburbs is because, by the very nature of conformity, it's difficult to get a job and making a living as an outsider. So as you grow up, you either conform or you move somewhere where there are like minded individuals. San Francisco didn't create counter culture...the counter culture moved there and created San Francisco.

She didn't move to S.F. and find out city kids are posers. She moved there and found 1,000's who moved there from the suburbs just like her. Confronted with the cognitive dissonance of discovering that she's not a unique snowflake and, in her own way, is just as conformist as "mainstream", she decided to declare herself "authentic" and every one else a poser.

She was counter culture _before_ it was cool. For real.

edit

I've seen this sort of reaction so many times it deserves its own logical fallacy.

The True Scotsman Fallacy.

The True Scotsman Fallacy is the assertion that oneself, or one's inner group, is the only true representation of a particular culture, viewpoint, or interest group. All other groups are rejected for various, seemingly arbitrarily selected, criteria.
> It was my understanding the XML was compiled into a binary format for faster parsing on device, am I wrong on that?

That's correct, but it still requires the additional overhead of parsing the compiled resources and using reflection to instantiate Views. Anko instantiates Views directly.
The usual term here is indeed "parameter", as in "parameter validation flaw".