skysight-inc/HackerNews huggingface dataset:
> * Multi-touch swipe to go back/forward shows no feedback! (Safari does this best, where the whole page slides away, revealing what's underneath; Chrome does a half-assed thing with arrows fading in, which isn't nearly as nice, but at least better than no feedback.)

This is how it works on ChromeOS too. It even has a nice black and white effect on the previous page until it's fully loaded.
Ruby is flawless,Java is rigid,C well nothing against C,C++ is a mess yes.

PHP is a mix of C (apis like mysql_fetch_assoc ), C++ (:: ->) and java (class and interface ) with javascript weak typing.

It is a mess. I'm a PHP dev, the problem is when i have to maintain other's people mess too. Ruby and Java messes are far more easier to maintain than any PHP one.

There is also the PHP culture and community ,which quite toxic.

For all these reasons,while PHP is my bread winner I have no love for it.
Oh sorry, I was referring to this part: “The deposit is fully refundable so in case something unexpected happens to your business in the future you have no risk. Sound fair enough?”
Depending on the project. getting something done faster could be easier with a modern web framwork like Ror or Django (I use Django). But it really depends on what are you trying to build.. Also you should remember that python/ruby enhanced productivity comes with some learning curve, especially for someone coming from java, which is different (not as syntatic but mainly in idioms, best practices etc).

You may want to consider Play framework. another modern web framework that uses scala - which is actually an enhanced and more productive java (and if I recall correctly can compile plain old java as well.. )
"Stripping an owner of his team requires approval of three-quarters of the league’s owners." Time will tell if they go all the way.
AOL Security Update
I believe that is the implication. Think of incarcerated populations.
>is raw_input the same as stdin?

Yes.

$ echo foo | python -c 'print raw_input()[::-1]'

oof
Seems like a cheap shot since you should probably know that Python 2 has a builtin called input() that does the same thing; it would be more likely to be used than your combination.
My Clean Firefox 29 Install (upgrade from beta) has one single bar:

https://twitter.com/tschundeee/status/457986734324580352
I'm using NixOS for my HPTC and home PC. It took some to set it all up, including adding a few new packages (mostly related to 3D printing) and fixing some, but now it's running well and I'm really happy. I've always wanted distro where I can have all the configuration on the same place and which I can use to reproduce the whole thing.

There's a gotcha though. The default configuration will use the "channel" as the package repository (which is really just a nixpkgs snapshot that was automatically built by the build farm and automatically tested to some extent). Updating the channel is stateful - it's non-trivial to go back to a previous version of a channel, in case you want to extend and rebuild a working configuration (not just boot it). Personally I avoid the channels and instead just manage a nixpkgs git checkout, where you can make a tag whenever you're happy with the results of nixos-rebuild, possibly with an equally named tag in your configuration (/etc/nixos) repo.

Another problem is the insecurity of the channels and the cache. By default Nix will try to fetch builds from cache.nixos.org, even if you don't use channels, and anyone capable of MITM could give you whatever he wants. So for the moment, I've disabled the cache on my systems and I build everything locally (and the nixpkgs is fetched over HTTPS). I think that signing is being worked on though.

On a positive note, it's very easy to get help, and it's not hard at all to get fixes and package additions merged. All my added packages were merged in a few days, most within a few hours. In Gentoo I usually had an overlay with 15 or so packages, now I have just 2 local commits in nixpkgs. On the other hand, if you're using channels, making local changes is a bit harder than Gentoo's overlays.
Pentagon to Destroy $1 Billion Worth of Ammunition Because Data Doesn’t Talk
As written it reads as though the victim is the one being penetrated, but doesn't explicitly state it. I've always figured that whoever wrote it simply didn't realise that the victim might be the one doing the penetrating and so didn't even think about whether that should be included or excluded in the definition.
That would be nice, and some locations do that. New Zealand fixed line broadband is a good example. The US market, for some reason, doesn't.
For anyone seriously considering Tails, do invest either in a laptop with a dvd drive and run rails off non writable storage, or use something like a hardware switchable write usb: http://www.amazon.com/Kanguru-Solutions-Flash-Write-Protect-...
> When scientist thought they found particles travellig faster than light speed they checked the results, then the equipment, and then they assumed they had made a mistake and asked other people to check the numbers and the experiment.

And as it turns out, it was a mistake after all. Physics is solid to a satisfying number of digits after the comma.
why do people find it necessary to add a GUI to every fucking thing
Yes, that's the point - the fact that parapsychology passes these criteria throws the rest of science into doubt.
@platz, yes, this is correct. When currying and/or composing functions, it becomes more difficult to determine the input/output types of the function since the function signature won't be right there. I'm borrowing the `//+` syntax from Brian Lansdorf, since I saw him use it and quite like it. He mentioned he has "a lot to say on the topic" of commenting / type sigs, but I haven't heard him speak specifically on that.

Also, for functions that do different things depending on how many arguments are passed in, you would never want to curry these. The curry function relies on the function passed in expecting a specific number of arguments.
Yes, that's a very good point, though having briefly worked HR for civil service I'd say the diversity "upcheck" would be more beneficial. It doesn't erase the systemic discriminatory factor from the difference in criminal records for the same offense, but it does try to address it in a systemic form.

Of course, diversity initiatives simply covers hiring, not clearance adjudication. But there have certainly been many other areas of DoD where people with known criminal histories (to include felons) have made it to positions of responsibility, often to the amazement of the public. E.g. childcare workers at DoD bases, and even the civilian security forces at a grouping of Navy bases.

Even diversity planning has to bow to "bona fide occupational qualification" though. If the position description requires you to have a record free of things like organized criminal activity, then diversity planning can't help you (though it can make it that much easier for minority groups with no such criminal record to make it in).
I used Heroku for hosting my php site (http://sea-hag.net) for a while on the free tier. It was OK, but the DB add-ons were all pretty terrible (even on the lower pay tiers). In the end, I ended up getting a VPS and hosting it on that. Now it's lightning fast and I can't complain.

Heroku held its own for a while. I'd recommend it if you need to do some quick testing and get people on it to start, but I wouldn't pay for it.
A typical CLI might make a terrible piece of code to integrate with. I wonder if you can design CLIs that are better to integrate with, though. To some extent, this is what Git's 'plumbing' layer tries to be, although i don't know how successful it is.

One advantage of building on top of the CLI rather than via a library is that it enforces the rule that any functionality available in the GUI is also available in the CLI. It also means that any functionality added to the CLI is also immediately available to the GUI. With the library approach, it's easier for one to get ahead of the other.

Mercurial has an interesting take on this - the command server:

http://mercurial.selenic.com/wiki/CommandServer

This lets a process spawn a sort of daemon version of Mercurial, with which it can communicate via its standard input and output. Communication is a machine-friendly framing protocol which allows the parent to execute Mercurial commands. These are the same commands as you would use on the command line (interpreted by the same dispatcher, i believe, so really exactly the same). So, it's good code to integrate with, but exactly as powerful as the CLI.

The one real let-down is that the output is, AFAIK, the same as Mercurial's interactive output, which means the parent has to parse it with various command-specific regexps. If you were following this approach from the beginning, you would probably structure your CLI so that commands emit output in some structured form (eg a tree of named, typed values, or a table of named, typed columns), which is then rendered to the console somehow. You could then return a machine-friendly serialisation of that in command server mode.
Very interesting! I developed a similar system myself, for dates on a timeline instead of spatial data. I just knew that comparing dates of every item was inefficient!
I think the main reason for LE runmode is to be able to easily interface Nvidia GPUs that are also LE (without conversion)
And further, skilled pilots can be recognised by their landings, particularly in making soft ones in stormy conditions. Perhaps also in their customer service with witty commentary over the PA.

Divergent, but any skill I can think of will have a distribution of abilities. Some of these skills have a threshold beyond which incremental improvement gives little benefit. Walking example: if you can walk 100m in one go, you are better off than someone who can walk 10m. Likewise, 1000m > 100m. Does 500km give any more benefit than 50km? Maybe, but probably only for extreme use-cases (maybe competitive extreme-distance walking? I'd rather drive!). Similarly with technique - if walking technique is horrible it matter for mobility and injury risk. Beyond a certain level, it probably matters less. And maybe walking extremely well is a visual-social signal, as a marker for someone who is in good shape? I'd read somewhere research done on dancing as a marker of fitness for attractiveness to the opposite sex.
This is probably due to an understanding of rebases, rebases should be used to bring your commits to the top of the stack for easy review in OSS projects.

Amazingly useful for making sure patches are easy to apply while following a remote branch.

My biggest problem with hg is the lack of real topic branches and how they become impossible to delete -- and having to use things like quilt on top to try to make local branches more sane -- but it's frustrating because it's not the same thing.
Many of the Strongtalk team went over to write the Java VM at Sun. So Hotspot owes a great deal to Strongtalk.
Inspect the Firefox chrome and set the class of the folder to display: none using userChrome.css

chrome://browser/content/browser.xul
http://kb.mozillazine.org/UserChrome.css
Hijacking the thread, since you're around:

Regarding the last graph, the observed data looks like it matches a log-normal distribution, not a power law... Is this correct? Not sure how to interpret it, though. How did you compute your estimation?
Well, the Communist Party of the USA was committed to the subversion of the democratic government, at least at the time. And it was only limited to subversion because direct violent overthrow was impossible.

Even today membership in groups that espouse the "violent overthrow" of the government will exclude you from positions of responsibility in said government. You can correctly call it discrimination, but I'd simply note that the Constitution of the U.S. is not a suicide pact.
if you write them after the fact you aren't doing TDD or something as good as TDD. At least, this is what the TDD mob says.
Ever heard of NOW? They also are considered to be feminist. But they actively push anti man agenda, that has little to do with equal rights.
And the wider world would be a much better place if more people knew the command-line, the Unix philosophy and were able to unlock the true power of their machine.
I probably should have phrased this more clearly: I think that a python interface (or any other high level script interface) is the more convenient way for a programmer to extend or write hooks/extend the dcvs (I am now thinking about pre commit or post commit hooks in git, etc.).

Any first hand experiences with this?
- Doctrine - ORM

- Symfony - framework

- Silex - micro framework based on symfony components

- Laravel - framework

- Slim - framework

- Swiftmailer - email/transport framework

- Guzzle - http web service client

- React - async i/o

- reactphp/promise - promises

- AuraPHP - framework components

- Ratchet - web sockets

- Assetic - Asset Management for PHP

- Piwik - Open Source Analytics

- Monolog - Logging

- Goutte - a simple PHP Web Scraper

many projects use modular components from these and others.

also check out some repos with a lot of stars https://github.com/search?l=PHP&q=stars%3A%3E1&s=stars&type=...

careful though, Wordpress is there also.
Watch this:
https://www.youtube.com/watch?v=hg3VlyFBT38

Totally looks like a working device. Amazing!
Because there are plenty of users who are not comfortable using a cli for even a few things. Homebrew specifically is a pretty core staple in the OS X community and this now provides more accessibility for those people.
Yes! I had to extract some data (in 1997!) off a DOS payroll package written in about 1985 that ran on an IBM 286. It was churning away quite happily. It seemed a bit like a 3270 terminal style application so I assume it was inspired by something distant and IBM. That had track on and track off!

On a side note, it was pretty easy to get the data off and reverse engineer the file format using visual basic at the time.

Was quite a fun project :)
I personally don't see how a couple parameters in the constructor are adding so much complexity that you'd be better off without DI.

A good DI container can make it much easier to follow a pretty good amount of general best practices. Single Responsibility, DRY, and Open-Closed Principle to name a few.
Poetry is often about pain and torment. :)
I confess, I've never used Midnight Commander, so I thought I'd be a good guinea pig. I just installed it on my Mac and I don't find it at all intuitive. Two specific issues I had is that we're limited to displaying everything as text (e.g. what is ".[^]>" meant to represent? if it were a graphic, perhaps it'd be easier to understand), and also there's limited space in my terminal so commands are abbreviated (what does 'RenMov' mean? I can't 'mouseover' it to find out more information either–there's no way to interact with the app that might not also issue a command). Overall, it's left me with a vague anxiety I might accidentally delete a file.

This isn't meant to be a criticism of Midnight Commander anymore than it is a criticism of myself as a user. I have no doubt it's invaluable in certain situations. But I do think GUI apps offer clear advantages, and they're to be embraced.

Perhaps better would be the idea that all GUI apps should have lightweight CLI counterparts, to enable easier scripting/integration with a UNIX workflow, and be done with. OS-level scripting support is halfway there (e.g. AppleScript) but it could be better.
This news is 19 days old.

https://news.ycombinator.com/item?id=7566121
Meet the Fed's First Line of Defense Against Cyber Attacks
The author of the study is described as a feminist and specifically says we need to talk about sexual assault as experienced by men. Let's applaud feminism that's aimed at that kind of equality!
Square is a POS system, comparing it with a cash register is ridiculous. Many POS systems sold to restaurants fly well above the thousands of dollars with shitty UIs that take hours for employees to learn (knowing the turnover in the food industry, it's a lot of wasted time).
I'm at the final stage of interviewing with Twitter. Should this report make me nervous about accepting a potential offer?
API Keys on GitHub
I wanted to add something a little more dangerous to this recent meme. A lot of the time, people bake credentials into apps and then accidentally commit them. Especially database credentials and API keys.

A naive approach for hunting API keys gets a of false positives; things like api_key = "<VALID KEY>". But if we put some characters you'd be likely to find in an API key, we get a much better ratio.

https://github.com/search?q=api_key+%3D+%22z9&type=Code&ref=searchresults

Repeating the search with different values can yield a lot of keys.

Another method is to go for less keys, but more valuable ones. This has an awful signal/noise ratio, but the keys you find are pure gold to a bad guy.

https://github.com/search?q=amazon+api+key+%3D+%22g&type=Code&ref=searchresults

I expect most of these keys are redacted by now, but this has lead to real compromise in the past. This story was on HN a while back:

http://vertis.io/2013/12/16/unauthorised-litecoin-mining.html
My bad, I misunderstood -- while I don't want to think of that as AirBnB's problem (a person who is motivated to lease the apt will find a way to), it is the case that AirBnB is probably introducing a lot of people who might not lease their apartments out...
Is Mercurial the BetaMax of source control? Better technically, but didn't have the promotion that Linus gave to Git when he copied much of what Mercurial and other systems had and added a bit of his own flavor.
> For a 12-oz package from NY to SF, USPS delivers in 3 days for about $2 while FedEx and UPS start at ~5 days and $10.

The price comparisons aren't fair. UPS and FedEx either turn a profit or go out of business. You can see this when you compare the two groups on tracking, customer service, innovation in logistics, etc. If a business depends on paying customers who have choice, despite the disadvantages they have when compared to the USPS, they find ways to improve their services and cut costs.

Meanwhile, the USPS can tap on the government's shoulder and artificially remain in business.
Around here, it was "wand in" and "wand out" because they used a light pen to read a barcode on their badge to access the AS/400. My Dad still says "wand in" when he logs into his Mac.
Could you expound on why?
With all the revelations about the NSA, I thought I'd post an example of the US government using security researchers' skills for good.
Sure. Here is a silly example that adds a lol() revset to Mercurial that fetches all prime revision numbers:

http://inversethought.com/hg/revset/file/2ddbf1893f3b/lol.py
Why you Need to Capture Leads on Your Company Website
What I find weird about the design is the idea of "Getting the other tabs out of the way" idea. I don't care about the selected tab as I can see what page it it. When I go looking for another tab to go to they make it harder to read! The hell?
Dupe of https://news.ycombinator.com/item?id=7400790.
I believe he's referring to Parkinson's Law of Triviality (http://en.wikipedia.org/wiki/Parkinson%27s_law_of_triviality)
Wait, "quilt" as in the tool that manages patch files? That's still in use? Or is quilt a new Hg extension?
> Even Target got it wrong when I recently tried to buy a wedding gift. They wanted me to wait 2 days for them to deliver a vacuum to the store, even though they had half a dozen in stock when I called.

Had a similar experience ordering from Chapters Indigo around Christmas. I had the option to pick it up in-store, or ship it to my home. It was quicker to ship it to my home, because they wanted to ship it from their warehouse to the store I would pick it up at... even though that store had the item in-stock. This service would take up to 2-3 weeks to happen, IIRC (though I may be remembering wrong).
> Well, that's because it's an awful way to calculate a fibonacci number!

To be more precise, it is an inefficient method of calculating a Fibonacci number. Using your function, if you were to measure the execution time of fib(n), then divide it by the execution time of fib(n-1), would you get a more precise value of the Golden ratio?

> This is much faster and won't blow up your stack quite so much.

Or we could use an iterative version ... wait up your code changed to an iterative implementation. Man that's weird.

EDIT:

Your code:

unsigned long long fib(int a) {
unsigned long long x, y, temp;
while (a > 0) {
temp = x;
x = y;
y = y + temp;
--a;
}
return y;
}

I just noticed: x, y and temp have not been initialised.
It would be nice if their bootloader "just" loaded the entire image into RAM and let the user continue booting and running without the USB drive attached. Optical drives are on their way out, USB drives with a trustworthy write switch are obscure (if they exist at all) and this seems quite secure. I'm using scare quotes because I don't know how difficult this is.
"The reason for DI is that a very common point of change with software is at the interaction between clients and services. Tight coupling at this point of change is usually a design smell."

The problem with TDD is that if it is NOT a common point of change, TDD adherents often say that you should introduce DI anyway to make testing easier. "One day you might want to change out the whole database, so you should abstract out the DB into a blah blah blah pattern, with a layer of the rah rah rah pattern between to ..."
No, it doesn't — this legislation was specifically designed to include male-on-male rape:

A person (A) commits an offence if he intentionally penetrates the vagina, anus or mouth of another person (B) with his penis

There's no clause which limits applicability to females.

It's true that there is no offence in the UK of female-on-male rape. That's because the definition of rape in the UK is deliberately quite narrow, and specifically applies only to forcible penetration with a penis. Other sexual assault is defined by e.g. "assault by penetration".
As with most software, it probably depends largely on what you're used to. I started my distributed SCM life in Mercurial (moving from svn) and found it to be fast, simple and friendly to use. Being an experienced Mercurial user, I hated git when I first started using it - changing something as core to one's development life as the SCM isn't easy.

But after a while of working with both, you start seeing git and hg as relatively equal products, just with different UI quirks.

I eventually moved most of my projects to git, though. Not because I thought it was better, but because it was more widely used. And being the collaborative type, using git was the path of least resistance.
This Google Motherboard Means Trouble for Intel
For a different perspective of sexuality in a male only environment, I recommend Surprised By Joy, by C. S. Lewis. It begins with his life in boarding school.

Lewis could quite easily have been describing life in prison. I found it astonishing.
In 1997, I bought a new car. Look at that dot matrix printer in the finance office. Bet I'll never see one of those again for the rest of my life.

I got into my financial situation by not wasting money, and it seems a properly maintained 90s car could last 16 years..

You guessed it, October of 2014 and there's still a dot matrix printer in the financial office.

I've worked with cheap lasers and I've worked with expensive lasers and from a labor cost perspective it would take several thousand dollars to get a new laser as fast as the dot matrix, so I can't blame them. The latency of completely printing a form was perhaps 1/4 the time it takes a typical laser to warm the fuser, and surely the energy cost is lower...
can we tone down the elitist attitude? i personally enjoy how simple WP is to use and extend - that's one of its core strengths. As with any complex piece of software, there are a few wtf's to be had.
https://developer.apple.com/library/mac/documentation/Genera...
This was covered yesterday: https://news.ycombinator.com/item?id=7663845