skysight-inc/HackerNews huggingface dataset:
What you're talking about has nothing to do with modularity. You're thinking of DRY. They having nothing to do with each other.

DRY tells us the code for looking up a user id by user name should be written in only one place, not that the code should be called from only one place.

The mistake was assuming the name->name function was idempotent, because it wasn't.

You are right to suggest using a name->id function instead. It would not suffer the same problem because the canonical name should not be stored... it's an implementation detail!
Sounds awesome! Hope to be able to try your app one day!
I was explicitly referring to the US Constitution and federal law.
70% - early stage
Ditto, almost all the substantive debate I see comes from the British, French, German, and Chinese press.
I would also like to see many more tech article and much fewer political ones. Especially ones about the NSA, this is one instance where it would be nice if there was some kind of partitioning to HM, possibly like reddit.
Argentina before and after Pinochet. Compare the relative GDPs of Argentina and Chile, the coup was in 1973.
http://www.wolframalpha.com/input/?i=gdp+per+person+argentin...

Also, Hong Kong made a big change for the better after the foundation of the ICAC.

http://en.wikipedia.org/wiki/Independent_Commission_Against_...
Cant wait for droid!
This patent trap commentary is 4 years old. I don't think this is on anyone's radar anymore. Otherwise Xamarin would not even exist.
Their pricing for the hard drive is reasonable but their storage pricing is higher than what I pay with Crashplan ;) I haven't taken advantage of Crashplan's initial drive seeding because my upload speed is fast enough.
Do you have any links to suggested style guides?

Google returns this: http://docs.scala-lang.org/style/ or this: http://davetron5000.github.io/scala-style/index.html but do you have any that you'd recommend?
We're not talking about performance loss but a relative performance difference. It's at least possible that MySQL might've introduced performance gains that MariaDB didn't get. I have no idea whether this is the case.
That is tinfoil hattish. The Syria situation has been brewing for years, and the strategic factors that make it into a hard problem run back decades. I'm surprised we've managed to keep out of it this long.
>I don't believe a right to bear arms is an integral part of being human.

Couldn't disagree more with this. I think the right to self-defense is very much and integral part of being human.
Looks like it's built around KVM (Kernel Virtualization Modules), i.e. "containers", rather than full-blown virtual machine emulation like Xen or VirtualBox/Vagrant.

It appears to be a configuration management / deployment tool for KVM containers. New to me too, gonna dive in and check it out.
Can a person still fly charter if they are on the no-fly list?
2TB uploaded so far to Crashplan in around 3 months.
Great perspective on one of the most important issues Gen Y needs to address.
Step 1: quit job
Step 2: create ultimate 3d tic tac toe
The video is excellent: http://irfu.cea.fr/cosmography
I started using Scala ~2.5 years ago for my undergrad thesis. At the time I didn't really know what I was doing and essentially wrote Java with map/reduce on collections.

I've been working steadily in Scala since and currently do so professionally. I'm a fan, especially with the Akka actor framework.

Lately I've been playing with Play, Akka and ReactiveMongo. For-comprehensions offer a terrific abstraction for dealing with asynchronous code. My current side project is "Street View for Flights" implemented in the above stack. Lots of calls to third-party REST APIs after checking if data has already been retrieved and inserted into Mongo. Code like the following allows for controllers to be asynchronous while staying readable:

def byCode(airlineCode: String) = Action {
Async {
for {
airline <- Airline.findByICAO(airlineCode) // returns Future[Option[Airline]]
} yield airline map { a =>
views.html.airline(a)
} getOrElse NotFound
}
}

The advantage for me is that those futures could be redeemed either by finding the requested object in Mongo and on failure retrieving it from a third-party API while not blocking and keeping the code readable. Either way, the controller just gets a Future without blocking.

Other parts of this project make heavy use of Akka actors to feed server-sent events (sort of a compromise between Comet and WebSockets). Development has been great fun because Scala really allows me to write code at a higher level. Asynchronous, typesafe, nullsafe code with the compiler as my safety net.
Twitter has one: http://twitter.github.io/effectivescala/
Remember that BoA doesn't actually own the risk on the mortgage. That was sold to owners of the Mortgage Backed Security. BoA is the servicer of the loan. Think of it as a fund manager.

So when the mortgage is foreclosed, it's not BoA that takes the loss, it's the owners of the MBS.

The article says: "they also pushed people into foreclosure to collect additional fees from them." BoA has discovered that foreclosure is more profitable than loan modification for them due to the fees they charge in the former case.
So if a username gets passed from service to service and you want to make sure it is in canonical form you can safely apply .lower() and if it was already in canonical form there is no harm done, and it is easy to stay safe.

Why?

Suppose you only pass the original name around instead. Then you don't require your canonicalization function to be idempotent, which might be good in your case since it wasn't.
Agree, even at around people I know I still dont hear about it, and these are people who are on the internet every day.
General public? I just hear SSDD.
As far as this thread goes, rednukleus did specifically say "high margin places". But yeah, it's just an often-overlooked angle on a (still) hard problem.

I'm not sure about your example of the local dealer. The "local" part implies to me that personal relationships and long memories will play a relatively large role in someone's business. It could be extremely beneficial to at least be seen as looking out for others to your detriment, and it would probably be easier to do for real than to fake convincingly for a long period unless your customers are ignorant.
It seems you're already over the hurdle of not assuming other languages have the same grammar as English. From my experience (internationalizing a site for English and Japanese with both heavy back and front end rendering) with that groundwork laid, at least Japanese is relatively simple.

A favorite solution for varying lengths of content is html's flex box. Luckily I only had to support WebKit.
The ex-employees listed specific executives by name who authorized and directed the fraudulent process.

...

These are senior executives who, if this alleged conduct is true, should face criminal liability.

Are we going to finally see a few bank executives in handcuffs?
Perfect Ultimate Tic Tac Toe AI
In Challenge to SurveyMonkey, SlimSurveys Bets Big on Brevity
I am reminded of Steve Yegge's "Platforms" rant.

> Our Google+ team took a look at the aftermarket and said: "Gosh, it looks like we need some games. Let's go contract someone to, um, write some games for us." Do you begin to see how incredibly wrong that thinking is now? The problem is that we are trying to predict what people want and deliver it for them.

https://plus.google.com/112678702228711889851/posts/eVeouesv...
"Were charges filed" is not a productive criteria for whether or not a search was reasonable.

A cop can pull you over for swerving on the road for suspicion of DUI, even though he/she has no definitive proof you are drunk - and it may very well turn out you were sober.

This does not make the stop unreasonable.

A search that does not lead to charges is a false positive, but a false positive is not in and of itself indication of reasonable-ness.
Maybe with spinning disks, instead of/in addition to allocating IO operations or bandwidth, you could allocate seek distance.
Its difficult to get funding or backing from a VC if there is no business sense to the project.

Think of some way of monetizing the product. Usually this is by selling the product, or by using the data collected to sell? That could potentially work.
Fun. Uses outside aesthetics?
That's a great way to describe it. It's a "lightweight" VM that is created per process.
Not necessarily. It their canonicalization function were idempotent (e.g., the identity), then this database scheme would work well.

How else do you map username to user id?
You can simultaneously believe that something is justifiable/natural and that it is destroying open source. I think the majority of people would not jailbreak to use such a store, thus limiting the potential audience and reducing the incentive for developers to release to it.
I'd start with those who you would like to hear from. My list started with:

@paulg | Paul Graham

@ycombinator | Y Combinator

@a16z | Andreessen Horowitz

@BillGates | Bill Gates (because of his involvement with charity)

@fredwilson | Fred Wilson

And then a whole load of accounts following my personal interests such as the Bitcoin related ones.
Seems to be a bug on the dropdown menu, once it's open i can't seem to close it without clicking on one of the items in the dropdown menu.

Also the code on your demo page hasn't been compressed, that is to say there's lots of whitespace making the files larger
If the government had a wiretapping program for fiber-optics, they wouldn't call is PRISM. Why? Because you don't name your top-secret stuff with descriptive names that imply what it does.

PRISM is a web-app. The slides make it pretty clear its a web-app. The army field manual link helpfully posted before in this discussion outright says its a web-app.
I saw that movie too!
Decrypting iMessages at Rest, Questioning NSA Access to Apple Network Devices
And that is indeed the case. You only get a limited time of CPU, after that it's powers goes to somewhat like zero.
I presume you're talking about self-driving tech?
> I just sometimes get the feeling someone pressed accept to every feature enhancement to the language at some point as just about any feature you can think of in a modern language has found its way into Scala.

That was also my impression. Clojure is sometimes painfully restrictive (I need forward declarations for functions if I use them before they are defined? In a compiled language in 2013? Really?), but at least it is curated.
TS/SCI is relatively common because it doesn't give you access to much. It just means you've been vetted. Actual secrets are still organized by code word, and you can only access them if you're explicitly read in (i.e. given "code word clearance"). Some more details: http://www.outsidethebeltway.com/clearance_fever/
I'd suggest limiting your app to either a PC app or a mobile app but not both - since it would probably become too complex? Maybe just go with an Android app, and limit the recognised voice commands to a handful. The amount of resources around now for Android development is good, and there's a built in speech recognition package.

http://developer.android.com/reference/android/speech/packag...

Demo app:
http://androidbite.blogspot.com.au/2013/04/android-voice-rec...

To start you can go through the tutorials on Google's android dev site.
http://developer.android.com/training/index.html
Kid-tested. The 7-year-old loves it. Thank you for saving me from plain-old Tic Tac Toe games with my kid.
The problem is that the battery is such a huge part of the car's cost.

It would make more sense to lease the battery.

I don't think battery swapping is a great idea.

On the contrary, it's the only way EVs can possibly work for the masses. The drawbacks of swappable batteries are substantial and worrisome, but the potential benefits are staggering.
your opinion is based on misunderstanding. The GPL says one thing: no restricting others.

You can say, "that takes away my freedom to restrict others" but that's like saying, "your law takes away my freedom to have slaves"

The GPL doesn't remove freedom except in one way, which is an unintended side-effect: incompatibility.

What the GPL actively restricts is POWER. What you want that the GPL blocks is not freedom, it's power.
Thanks! Thats exactly the detail I was missing.
> they couldn't release it under an updated license (like the
> ASL2 or GPL3) or dual-license it for compatibility with
> other projects without getting clearance from each and
> every contributor.

IMHO, this is a huge advantage: it guarantees that the maintainer of the project can't run off and so something crazy. The linux kernel allows every author to retain copyright, and there's some security in that: since it is basically impossible to get clearance from even the most significant subset of copyright holders in the kernel, it will forever be GPLv2.

Look at it this way: if Torvalds were evil, he could require everybody to assign him copyright, and then take everybody's work and let corporations pay him to allow them to use it closed-source enviorments. Or even un-GPL the whole thing and sell it to somebody. (IANAL, obviously - not sure about that last one)

Point is, there is security in nobody having controlling ownership of a project,
"the freedom to deny a freedom" is not freedom, it's power.
I mostly follow the official one on Scala. I deviate from it a little to help me stay sane when switching between languages like 4 spaces tabbing and sticking to K&R style[1] for indentation/braces. Using an IDE like Intellij or Eclipse can also help reinforce consistency as well since you can set the way it formats for you (and also have it auto-format before you commit to git).

Most important thing is to just stay consistent with whatever you decide upon more than which formal style you choose. If I were working in a team with Scala, then I would stick with a formal spec (or just let the IDE auto-format for me to adhere to the team's style when committing).

[1] http://en.wikipedia.org/wiki/Indent_style#K.26R_style
How the far right hijacked Kansas
It happens that GPL encourages continued sharing, but that's not it's motivation. The motivation is strictly to prevent people from using the software in a way to restrict others.
In summary:

1) Language X sucks.
2) Runtime Y sucks too.

Boo freaking hoo.

On paper, everybody's an expert when it comes to programming languages and runtimes, but funny how all the really popular and widespread options have well-known flaws. Why do you think that is, hmm?
What happens to the game if you switch order when you take a board?
Joomla is using a XOR cipher in ECB mode to protect user data
Bitcoin price on watch with Bitcoin Paranoid
India To Send World's Last Telegram
Someone having the freedom to do something doesn't mean they get to be free from criticism.
Don't Narrow Your Life Just Yet
IBM Mentor Day - Applications are now open for innovative technology startups
> Doing so across the board would likely be detected but targeted usage likely wouldn't be

This whole conversation is about wholesale data access, so targeting is not relevant. Besides, even if you are talking about targeting, the claim is, they are storing data and then targeting 'retrospectively'. So without a time machine there's no way they are going to be able to go back and MITM the targeted conversations they want to listen to after the fact. They would have to be MITM everything all the time.
SV builds amazing spy tools, is horrified when they're used for spying
The article seem to suggest that they are just going with their new games platform which supports multiple platforms. Do you have a source on it's popularity?
OpenDyslexic: Free and Open Source Dyslexia Typeface
>I suspect that the powerful conspirators some people seem to suspect are well aware of my friend's lesson and are equally unwilling to tolerate a partial success.

It depends on what constitutes success.

Take this hypothetical: the target has a habit of driving lightly to moderately intoxicated. Assuming he or she survives, do you think anyone is going to believe this person's story about what actually happened when the toxicology report comes back saying they were intoxicated? No.

The said conspirators would still reap partial success in the form of a clear message and chilling effect, not to mention inflicting potentially debilitating injuries or the resulting damage to the target's reputation.

Hypotheticals aside, you're probably right. If an unlikely cabal of evil conspirators are going to go to such lengths, they likely would prefer a more predictable outcome.
False positives seem like an inevitable side-effect of wanting to minimize false negatives. I've been tuning snort rules for the past couple weeks...
Ask HN: What's the pay range for a content site dev not in a tech center?
I'm probably getting a job offer soon from a small content site development firm in a rather sleepy part of New England. (Think CMS sites for a med school or newspaper, not web apps.) My degree isn't software-related, but I've got a couple years of part time remote work with a very good company/title. What kind of money should I be looking for?

The position is "Web Developer," and they also have a Junior Web Developers, so it's probably a lowish-mid-level position. Everyone is telling me that there's a massive developer shortage around here just like everywhere else, at least for content sites. It's hard to get a feel for the salary range of low population areas on sites like Glassdoor and Salarly, so I figure this might be of interest to other HNers who are out in the relative sticks.

Edit: Seems like this was post was deleted. Not sure why; I tried to make it as general as possible so other devs in outlying areas would have interest in it too. Beyond the location I'm guessing my situation is almost perfectly typical for an HN reader--just out of school, a bit of good experience, starting to look for serious work in the tech field.
Why would you leave your car intentionally empty? Why inconvenience yourself like that?

There might be people who can't plug in, but that'll happen regardless of swapping. You might make the argument that swapping could convince more people in that situation to buy the car, but that's hardly a downside for Tesla Motors.

>it will shorten the battery's lifespan a lot

It doesn't do that if you set your depth-of-discharge correctly. Lithium cells are more sensitive to temperature than charge cycles anyway.
I did say saas for cars, i wasn't totally clear, hence the extra note.. not trying to be antagonistic. a couple of big reasons saas took off so quickly..

1.major cost of delivering a big product with little or no involvement / feedback from customer.
2.customer gets to pay for only the useful life of the service

That is.. saas is a method for sharing risk and aligning usage goals. i am quite definitely not talking about any mandatory structure.
Think I'm a hybrid vs. pure technical founder, though I am doing all the frontend and in theory will be doing some of the backend too. I spend 90% of my day coding.
@Unbounce seems to always provide good links, and they always seem to be actionable - I feel like I should be paying a subscription fee.

@Lessien has some occasional good insights.
Also, Amazon Glacier is only $0.01 per GB.
Setting up Cloud9 locally on a Chromebook Pixel
Actors and the way Scala handles async is one of the reasons I wanted to get into using Scala on Android actually. The awkward way Android handles it is chock full of Java boilerplate and Scala's way is just much more elegant.

Another feature that got my attention was the ability to have a SQL framework that handled things similar to LINQ. I haven't tried it much yet, but Squeryl[1] has looked promising for being a Scala equivalent. I may have to look into Akka more though as that will easily take care of async SQLite calls as well[2].

[1] http://squeryl.org/introduction.html

[2] http://www.gamlor.info/wordpress/2012/05/async-sql-and-akka/
Bill Nye spoke at WWDC about deflecting asteroids. Interesting bit was how little you need to move the thing for it to work (ie, not destroy earth). One cool idea is to land a swarm of solar "mirror bees" on it -- light has momentum, so the mirrors would push the asteroid just by collecting light.

Anyway, yea, we really should be working on this problem.
I had no idea this was the baby of the Delphi/C# guy. I am super excited now.
Amazon.ca has the book for CDN$ 26.43 (free shipping).
http://www.amazon.ca/Realm-Racket-Learn-Program-Game/dp/1593...
No, declaring literals is a compiler technology that works with any SDK.

Subscripting requires runtime support in the form of `-[NSDictionary objectForKeyedSubscript:]` and pals , available only in iOS6 and above:

http://developer.apple.com/library/ios/documentation/cocoa/r...:
No, they can't, unless they are willing to pay Apple a $100 a year tax for the privilege.
"AdBlock" in Youtube comment
Post a comment on Youtube with the word AdBlock and its status becomes: "Comment Pending Approval!"
The point is, in most of these cases, BoA is NOT the owner of the loan, they are just servicing it, and they make larger fees from foreclosure than they do from short sales. In other words, they are screwing both the homebuyer, and the investors who own the bonds which own the mortgage.
"Unless they are in some weird tax situation where a dollar written off is worth more than a dollar earned (unlikely)"

Actually, quite likely - $1 written off has a net "value" of $1 when written off, adjusted tax, etc., whereas $1 earned is actually $1 minus corporate tax rate.
I find that my patterns of productivity when varies a lot when coding. Occasionally I get in 'the zone' where I have laser like focus and can knock out hundreds of lines of code in a night. Other days, I have no inspiration and write next to nothing.

Can you clarify how you would measure a percentage of a day (are you referring to a 24 hour period or the awake hours)? I think a more sensible metric would be to ask how many hours per day on average does a technical founder spend coding.

Averaged out in the first few months, it must be around 40-50% of my day. (~5-6 hours max).

I find it hard to believe that anybody could clock more than 70-80% sustained for more than a week. With 8 hours of sleep a day, you would get 16 hours of potentially productive time. 80% would equate to ~13 hours of coding leaving you with 3 hours for meals and general 'life admin'. That's not much.
If a car did that, you could just put it in neutral.
If it makes you feel any better, most of the big companies I work with are moving full-stop from Solaris on SPARC to Linux on x86-64.

People who make the purchasing decisions are finally fed up with Oracle's incompetence and utter contempt for the rest of the industry. It's a shame, but I won't really miss Sun when they're finally, mercifully put to death. I hate Oracle for what they did to that company and I wish nothing but ill toward them.
"I’ll update when Edward Snowden action figures are released."

This, and ad hominem psy-ops is what we're reduced to, having a US-UK gag order of the leaked evidence to eliminating scrutiny of the dragons themselves. ES needs to get his evidence aired in the open soon.
Roll your servers more often. If you have autoscaling set up, you should be good to go. Yes, this is harder for infrastructure servers, but you should automate the creation of those as well.
No that's not what you do. If you have enough time, first you insert some fool like Sarah Palin or Newt Gingrich into the movement, and slowly dismantle it from the inside (the Tea Party). If you need something quick, you insert a provocateur into the group that instigates some kind of violence that makes the whole group look stupid.
Fog Banks – When Your CEO Can't See Ahead
>used as storage for the superchargers

Superchargers don't use batteries. SolarCity does, though.

http://www.solarcity.com/residential/energy-storage.aspx