skysight-inc/HackerNews huggingface dataset:
MAKE VALUE TYPES ​​EASIER TO USE AND EXPLOIT THE TYPE INFERENCE CAPABILITIES
Hi! I have some ideas that I think They would be interesting on how to use Values Types. I have two proposal: How to define if? and how to use it? The two are separate proposal. I will write the first proposal.

1.Defining Value Types?
A. What about forcing a primary constructor to indicate that it is a value type, there is some thing like it in C#6, but in C# it just to make easy to define a primary constructor. So in Java we can use it differently. So we can say that if we use it that we are defining a value type. It is possible to have more than one explicit constructor. But I don't think that we have to force developer to write a constructor if it is not necessary. Why? According to the document Value-types constructors are really factory methods, so there is no new;dup;init dance in the bytecodes.

So I think that to define a value type we can only do:
<p><pre><code>
final class Point(int x, int y){

boolean equals(Point p){
return this.x==p.x&&this.y==p.y}

}; </code></pre></p>
x and y are automatically final and public members. So that can exactly be compiled like:
<p><pre><code>
final __ByValue class Point {
public final int x;
public final int y;

public Point(int x, int y) {
this.x = x;
this.y = y;
}

public boolean equals(Point that) {
return this.x == that.x && this.y == that.y;
}

}
</code></pre></p>
Simple, concise and contributes to productivity. I also I thought about something new.
We can also do:
<p><pre><code>
final class Point(int x, int y){
private int c;//if I wont
boolean equals(Point p){
return this.x==p.x&&this.y==p.y}
public static Point getFunPoint(){
}
public static void maFunction(Point p, boolean b, double b){
}
}
</code></pre></p>
B. Why not an implicit default equals. So if I do :
<p><pre><code>
final class Point(int x, int y){}
</code></pre></p>
that means if the JVM doesn't find an explicit equals, it cans do logical compare.
<p><pre><code>
public boolean equals(Point that) {
return this.x == that.x && this.y == that.y;
}.
</code></pre></p>
So a Point can be defined in one line:
<p><pre><code>
final class Point(int x, int y){}
</code></pre></p>
C. If we don't want to define something else in a value type, braces can be optional as in lambda expressions :)
So to define a value type we can only do:
<p><pre><code>
final class Point(int x, int y);
</code></pre></p>
Until they want their sexy opensource library to be used by more than one person.
Very cool! I just built and deployed a real-time voting app in literally 10 minutes.

https://crackling-fire-7227.firebaseapp.com
He probably meant HTTP header:
Ex: Content-Type: text/html; charset=UTF-8
Ask HN: Does App Store support non-store based paid users
Dear fellow HNers, we are getting into Enterprise App soon. It could have different subscription channel for payments - web, actual offline sales (bank cheques), another app store like Google play.<p>Can there be a model where users pay via 'web only' and are served through ios and android apps.
- is this possible
- are there any examples of such apps
- have/can store take any objections to this model.<p>Thanks in advance.
My goal is to be a better programmer. I started learning web development so that I could make websites of my own that earn my money.
Elon Musk Tells The Oatmeal He’s “Happy To Help” Fund Tesla Museum
WOO Sports Kiteboarders Startup changing the Extreme Sports Game
Knowing "what isn't" is often more valuable than knowing "what is", when there are so many options. It can strike out an entire tree of dependent conditions, enabling pursuers to focus better, with more energy and insight than before.
You can set it up anywhere between blocking everything to blocking nothing. I do have a couple of set up files to help people get started, here:

https://github.com/gorhill/httpswitchboard/tree/master/stuff

By default though it comes in block-all/allow-exceptionally mode, just like NoScript and RequestPolicy.

Eventually, as usual, as time permit, I would like to have a wizard for first install which will let the user choose which setup (from the ones above) is preferred to get started.
Right, but if you go with a "budget" dedicated supplier of dedicated servers for cheap (probably based out of EU such as Hetzner/OVH) or out of the US (through someone who provides "unlimited" bandwidth), have everything through s3 as a backup incase the server has any issues, you will be able to save money.

25 meg downloads don't last very long, so the very worst is that your gigabit pipe gets caught for a bit - hell even a company like Linode does 2GB out for $160/m :).

S3 is very expensive for what you are doing, saying you don't need to own/run servers for things like a podcast is just pissing money into the wind.
Elon Musk agreed to help with the 8 million needed to build a Tesla museum.
From daily use.
And I did support for a company on HTCs, which are close to Motos but not the same.
Like I said, I'd like to compare on a model usage for different user profiles. Mine is modest, iPhone does 4 days (5 when was new), HTC did exactly 1 day.
Students Get iOS Apps Running (Slowly) On Android
I think it has more to do with the network peering arrangements of the VPN host more than privacy. At least that would be the benefit from my point of view.

If my ISP has a poor path to (for example) Netflix, but my VPN provider has a good (unsaturated) path, it could be advantageous. But this requires my ISP to have a good connection to my VPN provider.
If I'm going to bed it's my phone. I usually prefer to read on my laptop or tablet due to the larger screen.
Everyone run some fiber to your nearest neighbor in each of the 4 cardinal directions. Go to MIT, find one or more of the kids that already figured out to make all that work, and read their theses. Launch an open-source project for the required network hardware and its firmware, and manage to sell as many as you can produce at $30 each.

My pipe dreams are about a series of tubes.
No Place to Hide: A Conservative Critique of a Radical NSA
The rise of the smart phone and tablet happened in the same decade as when desktops and laptops reached their saturation point. Where most people are no longer buying a desktop for the first time, but replacing their old desktops. Thus slowing sales.

The Smart Phone isn't killing the desktop, and more then the desktop killed the main frame, we still use powerful dedicated computer clusters for computing, just like we did in the 60's and 70's before the desktop. The desktop just expanded the market of people who own computers, much like the smart phone is doing now.

That being said I do most my reading on a desktop.
Perhaps things are different in rust, but in C assignment to something which ought to not change (either by the = vs == typo or some higher level cognitive error) is not too uncommon source of bug.

Being explicit about what data should be immutable or not as a way of expressing intent helps eliminate these bugs. In rust, the mutability is analyzed strongly by the compiler and is important for the ownership rules, so I'd expected the use of the mut flag to be more successful than const is in C / C++.
I was considering backing but for me its pity that game is not for Mobile(Android tablet). I dont play games on PC (except Portal ;) )
I'd say it's pretty naive to think that they won't store the data and sell it at some point anyway. Why wouldn't they? There are little, if any, legal ramifications for them. By paying extra for 'privacy', you're just encouraging the bad behavior to begin with. Talk about social engineering..
I'm guessing this is just giving them a legal justification to do whatever they want with your data and making that the new standard agreement at the same time, by providing a false benefit to the consumer. They also get to make extra money off the people who prefer privacy in this setup.
Well, there is a browser setting to disable that feature. But in any case, the extension can block "behind-the-scene" requests if a user choose to:

https://github.com/gorhill/httpswitchboard/wiki/Behind-the-s...

By default all behind the scene requests are allowed (or else that would break auto-update and other extensions), but you can make it block everything (except of course for those net requests which are not routed through the chrome.webRequest API).

It is quite useful to also see (and control) net requests made by other extensions.
Apparently, I missed the excitement of this when it first rolled around. This is the first time I'm seeing this.

I backed them, and I don't often back things. I also don't often play computer games.

I think the comparisons to Braid are great - Braid is one of the rare Computer Games I actually did play and really, really love. I think this has a chance of being a puzzle game with similar levels of awesomeness, if done right.

I'm also amazingly impressed by the prototype that was built in 7 days. I'm not a game dev or close to it, but I'm very surprised by what they managed to get done in such a small amount of time.
I'm saying that the $50 or whatever that Papers.app costs versus the $0 Mendeley costs is not a factor for many rational actors (if those exist ;-). The real cost is the time and focus to find and read the articles. This swamps the $50. The $50 should not be a factor.

If one or the other app happens to have features, tradition, or lock-in, in its favor, so that it will better turn your time and focus into increased subject mastery, that's what really matters.

I've found that having my papers organized by subject matter, searchable, and always available on any device, is a huge advantage in learning new stuff.

Over the years, it adds up, and you end up knowing more, which is helpful in lots of ways. To be crass -- it could be the difference between a 4% raise and a 5% raise for someone making $100K/y ($1K in the first year). That's a big deal.
Eh it has some default behavior quirks. Like being unable to log into arstechnica.com because it won't let that cookie get stored.
Agree 100%, especially about knowing what you will do with the result before you take a test. FYI, your English is great.
Here's some basic background: http://faculty.washington.edu/jwilker/559/SteyversGriffiths....
Typically this would be answered in a unit test like this:

This would be a really bad way to test all of "create a user, assign the user as an administrator, log off of the root admin, log in as the new user, create a product, delete a product, get the product list and verify the product isn't on the list".

You would be ignoring 80% of the flow.

The goal of unit testing is to test each piece in isolation and to provide confidence that when you have to assemble a lot of little pieces of code to form a larger piece of functionality, that each of those little pieces is working as it's contract says it should.

If your integration test containing 8 steps failed, would you know which piece of the puzzle caused the failure from the integration test report itself?

Of course, you could go the route of testing both small pieces of functionality and also testing large pieces (the integration tests), so that you can have overlapping levels of confidence.
"Choose not to be harmed and you won't feel harmed, don't feel harmed and you haven't been." (Aurelius, 2002, 4.7)

Aurelius, M., & Hays, G. (2002). Marcus Aurelius Meditations. Toronto: Random House.
Yes, this really seems like it's an FPS intended for non-FPS players. I think that's the whole point - the game basically says "let's eliminate all skill from the FPS game and make it into pure strategy and see if there's a fun game there".

That's an interesting question - once you can nail every headshot, plan every evasion, and spot every foe with complete ease... is an FPS still fun? Can it be made to be fun?

Obviously, for an FPS fan for whom the skill is a core part of the gameplay, this might not be an interesting question for them.
I'd argue that the ones on memory, floating point arithmetic and games programming networking have little relevance for most web developers.
Google Glass enters open beta, goes on sale to anyone in the US
But why are they looking if their code runs on Mono [1] ?

[1] https://github.com/aspnet/FileSystem/blob/dev/src/Microsoft....
the problem with this one is that the message is unclear. when I first read it 'we' sounded like the webmaster rather than Comcast. I got the point because I have context. they need clearer messaging. also on mobile chrome it is impossible to click the 'x'
I think everyone is completely missing the reason behind the omission of Q and Z.

Due to the database storage engine they chose, it was necessary to put a limitation on the number of Scrabble points that a password would award.

Q and Z are both 10-pointers, so passwords with them frequently blew past the limit. You can use J and X, but that's really pushing it.

And the "cannot contain three repeating character" rule is due to that being the trigger for the stored procedure that implements 'triple word score'.
https://github.com/ziyasal/FireSharp
Make good enough library, keep the source valid and the persons will come.

I have never done any special SEO tricks and yet all my content is fairly high on the results.

SEO in general is quite useless in my opinion. Make the content good enough so that people want to visit the site! Don't trick people to come there.
Anarchist conference descends into chaos
This assumes you gain zero benefit from a network effect, which is rarely the case.
through android application "Pulse". It was (actually is) a suggestion under "Computer" category
Dayum, that's one of the best articles I've read in a really long time. I think we are still decades away from really understanding experimenter effect, and till then, I take all medical studies with a fucten of salt.

Example: I used to be really into reading large meta-analysis dietary supplement efficacy, but lately I've stopped taking all supps. They changed consensus on plenty of them in front my very eyes, and I kinda lost faith in the field.
Startup Quality Survey
I am not aware of any problem which resemble this. You are talking about HTTP Switchboard here?
Can anyone provide some good reads on the replaying leap second concept? Has anyone ever taken advantage of this? How do projects that rely on subsecond accuracy and syncronization resolve the issue?

edit: for anyone interested, there has never been a negative leap second (it's always been something like 23:59:59, 23:59:60, 00:00:00). see http://en.wikipedia.org/wiki/Network_Time_Protocol#Security_...

edit2: however, there are negative leap seconds in UNIX time. I wonder if there's a vulernability here? see http://en.wikipedia.org/wiki/Unix_time#Leap_seconds
> If your kids are into robotics, you may also be interested in MOSS

Ah, thanks for reminding me! I'd been keeping my eye on MOSS and they should be out now! Cool that Scratch supports MOSS as well!
I like the chrome extension
Good point, I forgot to mention that.
There should also be an article about how every programmer should write without too many grammatical errors. Some of the emails I used to receive were borderline incomprehensible and I'd have to go battle it out in person.
>Advertisers seem reluctant to realise that irritating people like me ( ad tolerant) is a rwally bad move and is the reason so many peopke use ad blockers.

You're a tiny, tiny percent of users who actively chooses to view ads. Not to be insulting, but advertisers don't care what you think - the money they lose from your custom isn't worth the effort to make the change.

I don't bother blocking ads and I've never felt the need to install anything.

But the day I come across a site which I deem annoying enough, you can bet I won't hesitate for a second, and that'll just blanket block everything. As long as the advertisers play nice, I don't particularly mind. I don't care to differentiate between 'good' and 'bad' advertisers - just like how I'm not worth their time, neither are they worth mine.
Distributed, Low Latency Scheduling with Sparrow
Amazing. I didn't realize it until just now, but this is exactly how I wanted the Star Wars Jedi Knight series to work.
In those areas, SEO is going to have little to do with the uptake of their libraries.
My interest was piqued by this article, but upon initial investigation, I'm having trouble stomaching putting $50 toward learning how to use github... Any reason I shouldn't just skip ahead?
Well I can see you're damned here for explaining your experience with a product.
Xen Project Partnership Laid Groundwork for CentOS Variants
Isn't the irony here that Elon Musk inspired the Tony Stark in the movies? http://www.mnn.com/lifestyle/arts-culture/stories/tesla-ceo-...
How do you type your password into your telephone, something this system has to support?

There's a lot of speculation in the thread that this is the reason, and it's not a totally unreasonable guess. If this is the reason, then you're right, my scheme would not be suitable.

While we're all guessing, though, I think there are reasons to doubt a "password via DTMF" requirement. Look at the other rules: Passwords are case sensitive, must contain both letters and numbers, and "Cannot use proper names," whatever that actually means. None of those makes any sense with DTMF, where any string is non-uniquely reduced to a string of digits. Passwords are also limited to 20 characters, which is just as arbitrary with DTMF as with anything else.
Have some motivation for the project. Code should be written to address a problem or scratch an itch. For example, a personal project I am working on has a goal of destroying PHP. So every time I get discouraged, I think, "If I don't keep hacking, then PHP wins, and that's really horrible."
Because NaCl. It's basically Google's version of ActiveX, not supported by other browsers.

http://en.wikipedia.org/wiki/Google_Native_Client
In your definition if you introduce or remove a bug your not refactoring. More basically for things like simulations or graphics you may trade accuracy for speed so your code may behave slightly differently, but be much faster. The important bit with refactoring is the goal is not fixing a specific bug, however realistically for any sufficiently large change bugs can and will be both added and removed.

Edit: "Typically, refactoring applies a series of standardised basic micro-refactorings, each of which is (usually) a tiny change in a computer program's source code that either preserves the behaviour of the software, or at least does not modify its conformance to functional requirements." http://en.wikipedia.org/wiki/Code_refactoring
Create and configure EC2 instances for Rails deployment using Ansible
My cellular provider monitors data traffic to sell off to advertisers. Everyone is opted in by default - no price increase for opting out though
'You can't have a thunk in such a language that may end up either one thing or another, "depending".'

Well, you can, and on a very rare occasion that's what you want (see "amb"), but you should be explicit that that's what you're asking for (and probably why) because those occasions really are pretty rare and usually pretty complicated/subtle.
A 66 Year Old Letter to the Startups of Today
Asylum immigration lawyer
Many individuals come to U. s. Empire due to their Perform, business, research, as a wedded associate, some of the factors for one to search for the help of an Immigration law lawyer. Also, Immigration law Law are different for individuals from different areas around the globe due to their need .
Short film shows the complex beauty behind 'the cloud'
It is an expensive opt out of targeted ads.

AT&T refers to the ad targeting as "Internet Preferences": http://www.att.com/esupport/article.jsp?sid=KB421828&cv=812&...

Sounds like they gather your full browsing history, and then assist 3rd-party ad networks in targeting their ads at you. Or, worse yet, just hand over your browsing history for ad networks to process. Their marketing materials don't seem to make this clear.
Maybe front-end developers; but agreed, not every programmer should know SEO.
I would absolutely love AT&T and copyright holders to get into a long and protracted legal fight over this. Let the demons tear each other to bits.
No, it only assumes that you don't gain a positive net benefit from a networking effect in a network where people use ad blockers and then get upset and storm off your site if you do something about it. In the absence of data to the contrary, that doesn't seem like an unreasonable assumption.
We can generally all agree...

This made me smile. I would like to imagine that there were consensus on this point.

Now, let's talk solutions.

I think the effective solution for much of the nation will be wireless, but FCC and affiliated interests have been postponing the liberation of enough unlicensed spectrum to make that feasible. The dominant regulatory scheme creates scarcity where none should exist, and that's how all of these bastards keep the gravy train rolling. They rue the day they decided to just let the microwave ovens have 2.4 GHz, because now that frequency is proof that there is no physical reason to "license" electromagnetic radiation. If we can just pry a few more spectrum slices from their grasp, including those better suited to slightly longer ranges, that's the hole in the dike that will eventually create a market in telecom.
If you design every day, this is definitely a good way to simplify the supply of inspiration. Decent start.
There are also laws preventing unreasonable search and seizure, but it still happens.
Or Gmail. Or countless others.

If you're going to split the screen I think it needs to be split in half for there to be an expectation that they're independent, unrelated elements.
All changes to the matrix are temporary by default. Click the padlock to make them permanent. At first, this might be annoying (though it is just one-click to make it permanent), but once you have all your rules for your usual sites, it's nice that all is temporary by defaults.

There is a request log in the dashboard/Statistics tab where you can see in details (full URL) what was blocked or not.
Girls and Big Data (by my sister in-law) – Real-time data analytics
This would be amazing team play. It's bringing back memories of when I played in a top Quake clan when I was a teenager. You could practice and coordinate certain runs, some members sacrificing themselves to capture the flag - however with this the level of complexity and timing actually sounds fun and challenging enough that I'd be interested in starting to game again.
Yes, the only difference is, those who have accumulated that million dollar net worth by retirement age (and oftentimes about half of this is home equity), actually get to retire. The rest have to keep working to pay the bills.
October CMS | free, open-source, self-hosted Laravel based cms
October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. It allows developers to have full self-expression and the freedom to build web applications however they want.
In most real systems, deletes of core business objects like 'product' are really only soft deletes; there are caching layers; deleting things has knock-on consequences for other things (if you delete a product when an instance of it is in a customer's shopping basket, what happens?) - it doesn't seem illogical to want to test that when you 'delete' a product, it disappears from the product catalog... but then you'd want to do other tests to verify it remains in a shopping basket, and is still visible in purchase history, and so on.
For the 2010 earthquake (which was at 3:30 AM) electicity went off in the whole city and I didn't have a flashlight handy in the room I was living in. The only luminous thing I had handy was my cell phone screen, and no, it doesn't help very much in complete darkness in a room scattered with debris and fallen-down furniture. I'd rather have had a flashlight.