skysight-inc/HackerNews huggingface dataset:
The generated code is "pure" PHP. You have a controller for create, edit, list and delete. You can modify the controllers without problems and extend the functionalities. You can hide fields, add new ones, implement an upload images/files system...

The used framework is Silex (http://silex.sensiolabs.org/)

Thank you.
Also have a look at Spring Roo and roostrap if you're planning to do with Java and want to migrate your application to Google AppEngine or any other database.

http://bhagyas.github.io/roostrap/
5 Ridiculous Conspiracy Theories That Tried to Prove Aliens Exist
The power of the early start
This is one of those projects that has been on my side project list. I'm thinking you may want to play with the pricing a bit, since you could definitely charge more for the first paid plan, and its a big jump from the $9 to the $199 plans.

Are there any types of checks you plan to do in the future that you're not doing now?
Most other alternatives does not show you the names, resume and professional network of a substantial percentage of everyone who have visited your site.
How designers prototype at GDS
Oh, okay! Cool! I didn't realize it'd be valuable to anyone. I'll try to put together something for you, and I'll take it seriously so that it isn't biased one way or the other. I have some stuff coming up, but after seeing some incredibly neat stuff written in Rust, I'm planning on doing a project myself, and I'll email you with a raw braindump of my first experiences with the language, along with a list of previous languages I've learned as well as my experience level with each. Thank you for maintaining Rust's docs!
The most and least Internet savvy countries in Europe
Ask HN: Why my post not getting up-votes?
Why my post not getting up-votes, when similar post by someone else is making front page?
Does my initial karma matters?
To be fair, you can bind to any name. So, binding to `a` instead of `_` would work as well. You could then use that bound value in the corresponding expression.

However, I would have expected rustc to complain about unused variables in

fn main() {
for i in range(1i, 101) {
match (i % 3, i % 5) {
(0, 0) => println!("Fizzbuzz"),
(0, a) => println!("Fizz"),
(b, 0) => println!("Buzz"),
c => println!("{}", i),
}
}
}

but neither the playpen nor yesterdays snapshot complains. And if you want to suppress warnings about unused variables, you prefix the variable with an underscore, or just use only the underscore, which got common to mean "I don't care what value gets bound to this name.".

fn main() { let a = 0u; }

compiles with warning: unused variable: `a`, but

fn main() { let _a = 0u; }

compiles silently.
There are pull requests from May that haven't been even answered or commented. Am I wrong, or shouldn't it be a custom to at least comment why you're not including it into the code?
Spiking-Neuron Integrated Circuit with a Communication Network and Interface [pdf]
Its just deployment which can be a bit different and its a small part of everything. Libraries are same, whether you deploy on Heroku or AWS.
Looks cool. Spotted a bug.. clicking the link in the sentence.. "Crawling http://www.example.com..." doesn't work.
Having all that hashing going on is what makes the "distributed verification" meaningful. An attacker can compromise the bitcoin network if they comprise 51% of the overall hashrate. So if you lower that hashrate, the network becomes more vulnerable.

The ratio of hashrate:"mining reward" is arbitrary, a matter of monetary policy (one reason I believe Dogecoin is a much more viable long-term currency), and we could (if there were a network consensus) adjust it to give people more or fewer bitcoins for the same amount of hashing work. But there's no way to "save all the wasted CPU time (and considerable power costs)". Security relies on the network doing more hashing than any attacker could.
oh, she was asking for it! well, that changes everything.
A yes, the directional light (highlights, specs etc) would change...
Sonrisas Azules, asociación dedicada a hacer felices a los niños
Well, they had an actual artist do it.
"Privacy policy: Coming soon". That would be great.
Nope, it's still cleared at the end of the request (as it should be, this is not a bug or mis-feature, and is actually one of the things PHP got right for scalable apps).

What doesn't happen compared to CGI, IIRC, is loading the whole PHP engine from the start for every invocation. But no request specific memory is ever shared between invocations.
Thanks for the feedback on the pricing, it's a very first draft, so will definitely have some rework and testing before we release the paid plans. The second tier is really targeted at SMBs, where the business value of finding a critical bug before customers run into it exceeds $199/month.

We want to do lots and lots of checks that we don't currently do, e.g. linting the JS, correct MIME type checking, screenreader support, SEO, HTML/CSS validation, i8ln, intelligent form submitting, different browser agent support, responsive design, external font rendering

The hard part so far has been getting the crawler right, as some of you can probably see it's still a bit buggy.
You are right :(
I want to review all pull request with careful, It implies a lot of code and I need find the time.
You're not supposed to have "millions of symbols" in Ruby (or LISP for that matter) either.

I mean, you technically could, but it's not what they are used for.
Thanks! will fix that one asap
User defined literals in C++
Yep, and to do none escaped you have to use {!! $foo !!} which at least makes it obvious at a glance as {{{ $foo }}} {{ $foo }} got lost easily.
Is there a good split between generated/edited code?
Or do I have to change the generated code?

Also, can I regenerate only parts of the interface (after changes to the database, for instance)?
Git – Everything about this awesome SCM
A Front-End Developer’s Ode to Specifications
Scala guy here. This kind of thing is useful - I'm happy to pay the costs of garbage collection so I don't need it for ownership, but for separating out async operations from sync operations, or database-transactional operations from non-database operations, it's great to be able to represent that difference in the type system (and without a huge syntactic overhead). But then if you want to abstract over types like MaybeOwned, you need higher-kinded types to be able to work with them effectively. Has Rust got any further towards implementing those?
More or less I'm in agreement... but having gone through the rules (and found them to be remarkably similar to F1, GP2), I think that they are as much an impediment, if not more than electrical technology.

There are a least a dozen major technological concepts that are proscribed by existing rules which waste enormous amounts of energy and that prevent its full recovery. So even with the fact that current electrical energy storage technologies are much less energy dense than petroleum based fuels, it's technically feasible to produce cars which could produce laps times much closer to F1 or GP2 cars.

Total race time is another problem... but in all honesty at some point the cars can achieve some percentage of what the GP2 cars are doing (say 60%) and the rest is 'hidden' from the casual spectator by race design (as in sprint races with multiple heats).

I'm not really sure of all the factors that went into formulating rules that exactly match existing formulas (other than just copying the rule texts)... but result has been exactly what you said "no more than a dog and pony show" and it's no wonder why they've kept the races as far away from existing formula car racing as one can conveniently accomplish with a planet the size of ours.
PSR-4 does not require any case for namespaces:

> Alphabetic characters in the fully qualified class name MAY be any combination of lower case and upper case.
http://www.php-fig.org/psr/psr-4/
> Where's the research that says that the connection overhead is destroying humanity?

It's destroying big business who push lots and lots of resources to the browser:

- From an admin POV, you have to shard your domain => more work, more maintenance.

- From a browser POV, you have to open multiple TCP connections => you take slow start and TLS handshake in your face for each connection + the connections have to fight each other because the OS wants to be fair among TCP connections

- From a web admin POV, you want to inline your content to reduce round trips => you have more work to do on your resources

SPDY is certainly not necessary for everyone (it mostly benefits those who push lots of different resources), that's true. We're talking about businesses who lose a month worth of revenue if the latency to their site explodes from 50 ms to 500 ms.

But it still is interesting because the actual usage _on top of HTTP_ doesn't change: you still have your websockets or your Server-Sent events, you still have your keepalive, you can do a simple-stupid "one HTTP call per resource" and it will be handled efficiently, sometimes SPDY will work underneath to push content so that the next HTTP call will actually hit the cache without you knowing about it... all at the cost of changing (or updating) your library. Because you certainly don't write HTTP text directly to your TCP socket.

The interesting point will be for those library developers. The added complexity will certainly make it harder, but on the other hand the binary format and strict rules will make it easier to parse the messages... I'd like to see where it goes here.
Video Game Characters have feelings too, you know? [video]
If I understand, the approach that you are taking is that code is generated for the admin using the generator and then you would do modifications afterwards? What happens in such a case that the code is modified and then you run the generator again?

An alternative approach would be to supply custom classes to the generator at the time that it generates.

For example.

Class CustomerTable extends AdminTable {
$hiddenfields = [ "created_date" , "password" ];
$validation = [ "email" => "validateEmail"];

function validateEmail($validate_data) {
return validEmailAddress($validate_data);
}
}

Then the user can place this class somewhere specific or register it with the generator in some way, and when the generator runs it will use this class and not overwrite changes.

Like

$adminGenerator->use("customer","CustomerTable");

This way you can keep using the generator even after you have done extensive modification to the tables and code.
On one hand there are caveats with this, and on the other hand more opportunities. Here's one caveat that doubles as a benefit to someone doing this (assuming you want people to find your profile):

When looking at a profile, LinkedIn shows you lists of other profiles people who have looked at this profile looks at. You should presumably show up there far more often if your profile gets seen far more often. As a result your numbers will be skewed - you won't be able to tell who visited your website vs. came to your profile because it's suddenly showing up all over LinkedIn.

On other hand, that means actual human views of your profile is likely to go up substantially too.
Unfortunately I don't think higher-kinded types are planned for Rust 1.0. See the rfc: https://github.com/rust-lang/rfcs/issues/324 and this HN thread: https://news.ycombinator.com/item?id=7997926
none of the PSRs specify that the namespace name should be capitalized.
Nutrition for brain health and performance
B is a indeed good idea and it already happens, though not as much as Wikipedia would like. Why make a class write a long essay that'll eventually be filed in a bin somewhere when they could be make real contributions to open knowledge? It also might help with Wikipedia's recruitment problem.

There's some advice to help implement successful Wiki-assignments here: https://en.wikipedia.org/wiki/Wikipedia:Student_assignments
For 2D-like pictures (legs of fan pictured from bottom), the fix might be possible. For 3D (propeller blades with every blade having a right and a left face), it will be not.

The software will need to choose the final position of blades in the rendered picture. There is no ideal position since the blades have been moving throughout the scan time. Whichever position we decide, there will be information missing for one/more blade. Say, left face of blade no. X needs to be rendered but the camera only captured its right face. May be assuming that all blades have same shape and information of one blade can be used in rendering other blade will fix the problem.

Also missing background will have to be reconstructed. That's another issue.
Looks nice but it does not work for me, it seems to load forever.

By the way, I've noticed a small bug, the website seems to try to load http://localhost:35729/livereload.js so you should check your sources to modify this to the production URL.
If this post is anything to go by, then I suspect your poor English is making more difference than your initial karma.

But yes, initial karma does matter; I've had articles on my own blog that weren't upvoted when I posted them myself, but were then upvoted when a big-name user posted them. It kind of sucks, but if there's nothing you can do to change it then why worry about it? Karma is an indicator that you're doing something good for the site, but the important thing is that good content gets posted, not who gets the credit for it.
> Crawling http://bughunt.io/ for issues, results will appear below.

> Pending

> Oops, an error occured. Please contact us for support or try again.

;)

If you get "Oops: Request to start crawl failed" and click "Try It Out" again and again you get a lot of duplicate messages.
Same here, might be the HN effect, but it just loaded for 15m and then bailed out with "an error occurred".
Didn't work for me "Request to start crawl failed" after I entered a web page and clicked try it out.
error 502 , Bad gateway
>Error 502 Ray ID: 178ae6800de40b14
Bad gateway

Woops.
You can. The biggest caveat with isolating X clients in Docker is that you lose extensions like mit-shm (the shared memory extension), that badly affects performance compared to running apps locally. If you're used to running X apps over the network, then that's not such a big deal, though.
Why does it require http:// ? example.com should work without it.
4 Wearables That Give You Superpowers
The Cow Says, Have Fun
Great, thanks! (And Mozilla is owed some thanks for paying me, otherwise I wouldnt have nearly as much time to do it)
I'm not sure - if you are selling "software as a service" or any other hands-off digital product to (VAT-registered or not) companies in another EU country, then I think you must bill them at their local VAT rate and (possibly) pay that rate to their government's tax collectors (assuming you're above their country's VAT-registered threshold.) I may have read it wrong, though, I'm not an accountant.
Ebola Ebola
When trying to crawl a URL that sends a 302 with a relative URI reference in Location, it fails. E.g. if http://www.example.com sends a 302 with "Location: /en/".
There's no reason, we'll fix that one
I built this tool because I had a lot of production issues where I needed to make some changes and test them. I couldn't use devtools' Elements or Sources panel since I had to make this changes available as the page loads (inline script changes, css url changes, etc...).

I tried using Fiddler and similar alternatives (Charles, Burp), but:

1. When running it on the Mac you need to run a VM.

2. Fiddler shows you ALL the requests made by you're machine.

3. Moving between Fiddler, Chrome and Sublime is just annoying.

Since it's running a proxy server (it's actually based on http://www.mitmproxy.org) on your machine, it's also very useful when you want to test things on mobile devices.
Ask HN: Why/How did .io domains became such a prevalent choice for startups?
Oh great. More magic syntax that makes one thing look and behave like another, while not actually being that other.

Every time C++ gets new features, I feel like the designers must never have looked at a C++ core dump, trying to find out what actually happened. The source code bears practically no relation to what actually happens.

The C++ designers should perhaps stop trying to make their language into Common Lisp. You can only fake dynamic behaviour so far until it breaks.
I'm not a C programmer, but in general, I think this is a great idea. I really wish that it could be added to a high-level language. However, I think it's fundamentally incompatible with some of the features of high-level languages, such as dynamic typing, first-class functions, partial application, parametric polymorphism, structural typing/extensible records...
Pardon me, but 'custom makefiles' have absolutely nothing to do with C++. There are IDEs with C++ support.

Also, while working with headerless languages may be easier, calling working with headers 'very painful' is hyperbole.
I can understand that disabling permissions the app expects will fail, but faking the service the app expects permission for sounds like something that should work, and would be very valuable.
thank you! I was hunting for a similar bug and I think you've uncovered it.

Relative location headers are in HTTP 1.1 so we should respect them: http://en.wikipedia.org/wiki/HTTP_location#Relative_URL_exam...
"Large scale wars" happen when both sides are equally balanced in resources. When was the last time that happened?
JavaScript Developers: Take Your Code to the Next Level with FKit
And prior to that: https://news.ycombinator.com/item?id=1645291
I am replying to someone saying that these checks are too slow for use in aeroplanes by reflecting on how modern aeroplanes are part of a network.

And who would be surprised to find some kind of plug on the pcb in the seat rest?
15 Free HTML5 WordPress Theme Frameworks
How to succeed at Infrastructure Automation
Yes. I responded to this initially above.
Snap out of it. Please. I recommend you actually go to Russia. Don't go to China, because the Chinese government is actually trying to not look (and be) completely corrupt, while the Russian government are unashamed gangsters.

A Russian acquaintance of mine once said "I don't have a big company; I'm no criminal". Just reflect on that: You cannot be a successful businessman in Russia without using illegal means. A legally successful businessman in Russia is a logical impossibility.
Even though it makes sense with regard to the way operators work currently (they can be defined as members, or as free functions), it looks like a breaking change to me

struct A {
double magic(int);
};

string magic(A&, int);

is currently legal code. Under this proposal they'd effectively be overloads with different return types, which is is a compile-time error, unless I'm missing something.
Hey,

Marcus from Shortcut Labs (the company that created flic)

Feel free to ask any questions about flic :)
The crawler has been absolutely destroyed by HN, so I had to restart it- this is an unfortunate side effect of it being down. We'll add some better error handling on the client to fix this one.
Developing an Appreciation for the Cloud
If you enter a protocoless url (like "google.com"), it doesn't recognise it. Maybe default to HTTP if it's not entered?
It still doesn't make it more vulnerable.

If the hashing is made more efficient, that doesn't make it simpler for an attacker to grab a bigger % of the total hashing. After all, it's easier for everyone, so everyone can do more.

(In fact, if you had a bitcoin system whereby mining didn't use 100% cpu, I'd guess that more people would mine, since you could use miners for other purposes and not be forced to buy a dedicated miner box.)

I'm not talking about the mining reward either, that's irrelevant. If the reward for a mining block is 10 bitcoins, and the difficulty level is such that each block will take 5 minutes to mine (n.b. numbers made up, no idea what the current values are), you could drop the difficulty so that a block takes 5 seconds to mine, but are time-locked so that the next block can still only begin to be mined after 5 minutes.

End result: Miners race to mine a block, then are sitting idle until the next block time-unlocks. We still have the same problem for the attacker; they still have to take over 51% of the hashrate but as they can't defeat the timelock they have no way to improve their position.
I let Yondr lock my smartphone in a sock
I really don't understand this kind of bash every time C++ gets some cool new feature. A developer that does NOT want to use a feature can always not use it. But why should we deny it to those who are interested and use it at their own risk?
file sharing? pretty big nail. a decentralised system supports easy access to files considered to be obscure or "long tail". unless you want to say that bittorrent is not a decentralised system.
The only way to set PHP up as a daemon with shared execution and shared processes responding to requests is to use something like ReactPHP[0] -- even with mod_php, php5-fpm or similar, the execution context is still thrown away. The only difference between that and CGI is that the compiled byte code can be cached and the start-up costs are minimised as the bare interpreter process is kept around.

Shared-nothing turns out to be really nice for scaling web apps. One of the few things PHP got right from the get-go.

[0] http://reactphp.org
One of the best articlets I've read about the ruby dsl's was on practicingruby. You guys can check it out here https://practicingruby.com/articles/domain-specific-apis is free now.
HN effect, the MVP really isn't designed for this kind of scale... yet!
No, they are making the case for having a large proportion of Chinese farmers leave their plots to allow them to be aggregated into larger farms operated by fewer people.

There are two basic problems there: Too many people, and that it is hard for farmers to provide sufficient security to get loans to finance industrialisation because they don't own any land. With the latter, you could get collectives arranging to aggregate their land and e.g. share machinery.

Basically, they've socialised the land ownership, but not socialised the farming operation, and as a result they have a mismatch where they've made their farmers a high financing risk. Either socialising parts of the farming operation, or privatising the property would both likely be better than their current alternative for profitability of farms.

But the issue of too many people exacerbates the problem: More efficient farms have the potential to be more profitable because you can farm a larger area with fewer people. If the number of people remain constant, you don't have the same incentive, since you are paying for the labor anyway, and probably won't be able to afford it either. So ultimately whatever they do, they will want to encourage a reduction in the number of farmers.

The problem is that the government would not like to have to deal with a growing unemployment problem in the cities by driving people to leave their plots, and they also would not enjoy the social unrest it could potentially cause to force the issue. Hence their slow reforms.

(It's also very indicative about the ideology of the Chinese government that it has not made any moves towards socialising the farming; e.g. they could have increased the land rent but provided farmers access to collectively owned farm machinery as part of it, or even explicitly required farmers to arrange cooperatives and only rent out bigger parcels of land - instead they are opting for means of making farming rights a commodity subject to market forces)
The VR One: An affordable, “Open Source” VR headset solution
agree, we'll add one, does anyone know of any good template resources out there?
How to Use Firejail to Set Up a WordPress Installation in a Jailed Environment
> not statically of course

Right, but that's the point!
FFF is pretty rad, as is Slim framework. I like Slim so much I've been cloning it for Hack[0]. With the next week off work, I'm looking forward to getting it close to parity!

[0] https://github.com/LeanFramework/Lean