skysight-inc/HackerNews huggingface dataset:
> IsNullOrWhiteSpace() was added in dot net 4:

Look at what the helper actually does. I already addressed this in my comment.

string hello = magic();
if(hello.IsNullOrWhiteSpace())
{ ... }

Is significantly more intuitive than:

string hello = magic();
if(string.IsNullOrWhiteSpace(hello))
{ ... }

Plus it is consistent with things like Contains("XYZ") (e.g. hello.Contains("something")).

Truncate is useful just because Substring() throws a bunch of dumb exceptions. It is mostly a workaround for Substring's poor design.
I'm with you, both for your reasons and for another: it makes code harder to teach. "Oh, you'll see this. And this. And this . . . There's this, but no writes it that way. This is idiomatic."

There's some of this in all languages, of course, but "this bit of sugar will make the code cleaner and easier to read" assumes that everyone will adopt a new set of idioms wholesale (which they usually don't).
I've got a family friend who is a backhoe operator in Baltimore. He was unfortunate enough to accidentally breach one of those pipes containing sensitive fiber optics and was surrounded by DoD armed guards. Listening to him tell the story is pretty funny.

This type of thing, but that is just from a very quick google:
http://www.google.com/patents/US5218197
Hmm, so almost every bit of logic is pushed to the database. The parts that are not pushed to the database are then delegated to Template Haskell. Not exactly sure what this demonstrates. Macros are good? Seems lacking in terms of what the actual payoff is here.
How much do we have to bribe you for Bitbucket integration?
Ffmpeg, while useful, is probably the software utility that has dumped core on me most of them all. I hope this project has better coding standards.
I rode an early version, it's pretty fantastic.
"funded by USG"

When it's developed entirely in the open I'm not sure I see the concern here. If you have reason to believe they are somehow compromised or backdooring Tor please do share it, otherwise this is just FUD.
Agreed, I'm fascinated by this theory but I can't find a single reference to it.
gsa.gov seems to be only HTTP as well.
It's not super grammatical. I think the right way to do this is to invert a text compressor.

1) Take a state of the art text compressor like cmix (http://mattmahoney.net/dc/text.html#1243)

2) Compress a very large corpus of text with it.

3) Edit the compressed file, and add 16 random bytes to it.

4) Uncompress the text, and recover the part derived from the random bytes (for most compressors, the compression is sequential and it'll be at the end).

5) You now have a passphrase that sounds very natural and has 128 bits of entropy. It might be a short one with a rare word, or a longer one with more common words.

(P.S. I've tried to do it with cmix and got good results, though it didn't always work, so I suspect there is some redundant information in the compression to detect potential corruption).
gpg: Signature made Fri Nov 14 11:08:36 2014 PST using RSA key ID 478FE293
gpg: BAD signature from "Glen Barber <gjb@FreeBSD.org>"
At least on the 2013+ models, you can choose to make the TV not show the "smart" interface every time it boots. And you can disable the "Smart TV" boot-up splash screen, too.

I only bought the "smart" TV because Samsung's best plasma panel is not offered in a dumb TV (http://thewirecutter.com/reviews/best-tv/#apps ). But, since I had to buy it anyway, it does make a decent Netflix/Amazon Prime/Hulu player, which saves me an HDMI input and also means one less remote control.
Canonical source for mobile app metrics
What is a canonical source (site, ebook, book) that systematically reviews mobile app metrics and (ideally) provides benchmarks? I know metrics are going to be app-specific, but I want some baseline mental scaffolding. If someone asked me for a source on corporate finance I'd say "Valuation" and if they asked me about writing I'd say "Elements of Style." Those two books are not, respectively, going to make you into John Pierpont Morgan or William Shakespeare but they are efficient baseline starting points. What's the equivalent for mobile app metrics that can help avoid getting sidetracked in a morass of unsubstantiated assertions online?
So, to clarify something: you connect to the VPN, and the VPN connects to TOR. If you do it the other way around (as you point out) it's pretty worthless. If you connect to TOR from the VPN then the most de-anonymized you are going to get is "customer of this VPN provider".

As for paying for services such that "customer of this VPN provider" can't be linked to you, I'd look at places that specifically accept bitcoin (I'm not a fan in general, but in this case, it signals their willingness to avoid collecting normal billing data like name, address, cc#, etc.).

https://proxy.sh/

I have no affiliation but they popped up in the googlings. Seems to be simple enough to get their service without giving away anything personally identifiable.

EDIT: the reason I tease out those two parts is because I'm concerned people will think TOR can protect against entities that can do a global customer-of-VPN dereference. TOR doesn't protect against global super-adversaries, consult your local security practitioner before feeling safe, etc. etc.
Show HN: My new website
Hi skj!

- What do you exactly mean by side-by-side diff?
Currently you have diff view between the current HEAD of the Pull Request branch by the base commit.

- Yes, that is true. This is a known issue mentioned by others and there is definitely a need to fix that. ReviewNinja comes from the GitHub Enterprise context, where you usually can trust the internal tool offering, that's why we kept it simple with the permissions in the first place.

Thank you for the feedback!
I've been on both the buy and sell side of this negotiation quite a few times. thistleco's advice is pretty good. I'll just add one thing about the new GTLD program. Unlike the past, nowadays you are competing against the registrars themselves and the automated and MANUAL analytics they run on availability searches, whois queries and etc. As the OP said in a comment here, if you find a brand you like, don't hesitate because that name might be repriced by the GTLD operator due to your searches and activity around the domain.
The current Stanford-Binet test (and the next one, which is in preparation) use the typical 15 points per standard deviation scoring. The Cattell test is not a "mainstream" IQ test and correlates rather poorly with expected variables that ought to correlate well with IQ like academic achievement. Standard scores by the current definition are readily converted to percentile ranks by look-up tables, by the definition of standard deviation assuming a roughly normal distribution. As above, it's important to note that there is error in any IQ test. I've now had a chance to read the underlying papers related to this thread (which go back at least to 2008), and the IQ tests used in this study are even less mainstream than I feared. "A total of 240 individuals were evaluated with the Repeatable Battery for the Assessment of Neuropsychological Status (RBANS) and the Wisconsin Card Sorting Test (WCST)."

doi:10.1016/j.bbi.2008.04.156
I know I would get down-voted because of the display of emotion there but you replying with the Su-25 conspiracy theory which has been debunked ad-nauseam just really further makes my point.

Pretty much everything I shared is fairly common knowledge/sense with Occam's Razor applied to geopolitics. I'd be interested in which of the 'assumptions' you don't share.

And about the MH17 loss of life... I'm Dutch. I have close friends who lost close friends there. I feel the loss. I'm just even more sad that they even died mostly in vain.
That's an oddly aggressive response.

No, I was not referring to the Articles of Confederation. I was instead referring to the system of limited government defined by the Constitution.
https://en.wikipedia.org/wiki/North_American_English_regiona...

It's not mysterious, it's well studied and documented:)
There was some discussion in Dewars book "To the End of the Solar System"[1] about the different cultures at the national labs related to the development of nuclear thermal rockets. Something about the Los Alamos guys being all about experimentation, and blowing radioactive material out of the tail of the rocket, until an Oak Ridge director was brought in and mandating more modelling of internal behavoir. I may have those labs mixed up, it's been a long time since I've read the book.

[1]http://books.google.com/books/about/To_the_End_of_the_Solar_...
It reminds me of jackson-afterburner[0] in Java, which generates byte code for parsing and generating JSON.

[0] https://github.com/FasterXML/jackson-module-afterburner
Actually, CoreOS is a platform designed for orchestration and management of Docker instances. It’s not intended to be used as a base image for Docker containers. Specifically, CoreOS is based on Gentoo Linux, but the recommended base Docker image is Debian.

Well I learned something...
>I think projects like this are great but we also need to address the problem of being able to find a job for these guys after they get out.

Amen. This is a huge problem and probably a huge part of why recidivism rates are so high. If you can't get a job out of prison and you're low on money it's really easy to get your old drug/weed guy to front goods for you to sell. Instant cash, work on your own time, no background checks, work that is probably more exciting and interesting.

Huge sentencing reform is needed and I encourage everyone to get active or at least put your ear to the ground about it. A great source of info is the Sentencing Project[0]. They send out e-mails regarding the status of reform in different states and other general current events and information.

[0] http://www.sentencingproject.org/template/index.cfm
Um, this just wraps external openssh binaries, what's the point?

Also, the repo contains a private key.
I thought they weren't allowed internet access?

>Of course, as the class is taught inside a prison, it has an extra obstacle—inmates don't have access to the Internet at all, and their only time spent with a computer is inside the classroom.
The problem with Glass is first and foremost the price. All else would be forgiven if they priced it at $100. Think about this: the problem is that only a few people have it and they were "lucky" to pay $1,500 for it. Do you remember the kind of hate the original iPhone got when it cost $600 and up? Glass is almost 3x more expensive, pricing it right where most people cannot have it, yet don't like for others to have it either.

Now, I am not saying that this comes down to the sandbox "that's my toy" mentality. No, I am saying that the majority of people who are perpetuating the bad stigma associated with Glass have never used it themselves because it's simply inaccessible to them. Problems like "I can take a picture of you without knowing it" would be addressed much quicker if a larger slice of the population was using/misusing the device.

The secondary problem, the one that's much harder to fix, is that Glass provides no practical benefits. It's not giving you much extra information, it's not enhancing your life. If it showed me part numbers as I look under the hood of my car, or alerted me to lower prices at a different store as I look at a price tag, that'd be one thing. But its current tech is too limited. The "magic" is just not there. I don't care that I can capture an image of what I'm looking at currently, I can already do that. What I cannot do is quickly identify the type of timing belt in front of me, etc.
http://the.honoluluadvertiser.com/article/2007/May/10/bz/FP7...

enough said.
18Fer here. Before I answer in greater detail, why do you think FIPS requires RHEL with mod_nss only? I don't see why an OpenSSL in FIPS mode wouldn't fit the bill too.
Did you forget a /s tag in there? You can't actually believe that racism, sexism and especially classism no long exist in our society.
> There are tons of college grads that either didn't study computer science at all, or studied computer science and didn't do very well (and don't like it enough to do it outside of school) that are getting high-paying jobs (relative to general populace) at lots of big tech companies.

This also flips the other way: I've interviewed PhDs with little ability to operate in an engineering environment. The industry is definitely more meritocratic than, say, the banking, consulting, and business world.
I know this is slightly off topic, but I've been wanting to ask this for a long time. Can you make https://www.annualcreditreport.com into a .gov HTTPS A+ grade secure site? It's so easy for people to get scammed by fake sites, it'd be great to say, "go to creditreport.gov - it's the real one"
Speed, weather, and cargo storage are mostly about transportation over...distances. For most shorter hops you need none of those things. Hence my statement.

Of course existing cities wouldn't be rebuilt from scratch. But cities change all the time.

Driverless cars certainly are better suited for the way cities are today. But as it becomes obvious that there are alternatives that don't require as much wasted real estate as cars use, and that crucially don't give up the personal freedom that cars provide, cities can and will adapt to that.

The city of 2035 will likely be moving down that kind of path, whatever the exact details look like. New development will be designed for it from the ground up.

This is just how transformation happens.
Dart is getting it in the next release.

https://www.dartlang.org/articles/await-async/
So, framing the question as "a language shouldn't have features that you don't have to use" is kind of obfuscating the issue. The answer to that, for example, is of course not--as the Python folks are finding out (or celebrating, depending on how you feel about that way of thinking).

The problem is that the vast majority of languages have some features that you don't use, and even if others use them then things still generally work out okay--you can hide it away.

C++, via operator overloading, exceptions, backwards compatibility with C and its problems, templates, function overloading, and all manner of other things, is simply too large to be trusted. I assert that it is so difficult as to be practically impossible to ensure that, if you rely on third-party code outside of your direct control or the language spec, you are writing safe, performant, bug-free, and maintainable C++ code. C is magnitudes simpler, and people still manage to fuck that up.

Everyone bandies about the performance of C++ and the whole only-pay-for-what-you-use aspects of it, but in the fast majority of cases that's simply not important from a business or project standpoint. If you're writing numerical code, for example, why not just use the hyper-optimized compilers available for Fortran? If you're writing tight embedded control code, why not just use assembly?

Sure, I've had a friend that worked on the CMS at Cern and they used some unholy pile of C++ dating back 20 years and that worked well. I've known a bunch of people doing bioinformatics and they all write/copy/paste shitty C++ and get faster results than their semi-legible Python or MATLAB.

That said, all of those use cases are academic, which is maybe the last place where performance even matters (arguable in and of itself). You might claim "but but but games!" and then you'd be wrong again, because a great number of games are written using super-slow scripting engines and terrible C++ codebases. Mike Acton, giving a talk at a conference this year, pointed out that there was no compelling reason to use C++ over C because the OOP features fall on their face in a high-performance environment.

It's just a bad language. It was useful once, it's occasionally useful now (if you must, which you usually don't), but we really should just move on to new things.

Its OOP features are poorly thought-out, its performance with the standard library is pretty bad without modification for certain use cases, its learning curve is absurd, its growth is unbounded. Just let the thing die.

To answer your question about rewriting things:

We did write a lot of things from scratch, and spent years battle-hardening them, because we didn't want to deal with the (at that time horrid) development overhead and philosophical issues of Boost. STL was fine until it wasn't due to some cross-platform issues. QT/POCO are cool in their own right, but didn't match our use case.
I'd like to know more, if you know more. Especially about software. Is Google Wear going to change a lot?
The community is a single complex system; bad effects aren't localized. Fractiousness trains us all to drop civility and reflection, even on other topics. I think the Broken Windows Theory applies here. Flamewars blast all the windows.

It's tempting to think that we could brawl on controversies and then switch back to politely discussing unikernels, sort of like how rugby teams go out together after bashing each other on the pitch. But after years of experience we know that that is beyond the capacity of this forum—probably because the social bonds here are weak. Failing to take that into account, because we want to have it all, would damage what we do have on HN.
There is also a big difference between "provided a degraded experience in non-Chrome browsers" and "you have to actively disable CSP (a global setting) for it to work in Firefox."

Also, with respect to performance, this comment in the article might shed some light:

"Also see Bugzilla entry. The use of spare arrays with huge indexes was a performance issue in Firefox. It's been fixed in Inbox and in FF but not shipped in FF yet. (https://bugzilla.mozilla.org/show_bug.cgi?id=1087963)"
PlainTalk – a simple network protocol syntax
This website has literally no purpose. (check the source!)
Looking for help making an animation
Looking for help making an animation... by having a function turning a number into geometric shapes that scale.

I've got this idea to represent the repeating ~0.111

As fractional bits of geometric shapes so it would be
(white square representing zero) . Black square, then a slightly smaller black square, and so on.

Why would I do this? I'm trying to work out ideas at the moment that aren't very clear regarding a new concept related to binary.
You can install from a flash drive or single dvd. They've been working fairly heavily on the install process in versions 9 and 10.

EDIT:

I thought about this more after submitting. The many disks are likely for seeding the ports tree. If you have an internet connection available or opt to not install the ports tree you can install off much smaller media.
Agreed. The real problem is with the current tools for building images.

As a proof of concept, several months ago I built a few tiny Docker images using musl libc and no package manager. But I had do deviate from the normal image build process to do so.

http://mwcampbell.us/blog/tiny-docker-musl-images.html
Guys, we're programmers here not statisticians:

def test():

... n1 = numpy.average(numpy.random.normal(100,15,52))

... n2 = numpy.average(numpy.random.normal(100,15,40))

... return abs(n1-n2) / ((n1+n2)/2.0)

...

>>> vals = [test() for i in xrange(0,1000)]

>>> numOver10 = len([v for v in vals if v > .1])

>>> numOver10

2
FreeBSD's approach to releases is stupid. Releases like 10.1.1, 10.1.2, 9.3.1 and 8.4.1 should be done.

Only big vendors have the resources to maintain their own patched systems they can use in production.
Hey yall -- I'm a cofounder at Hack Reactor, which wrote the curriculum and is running the program from an instruction and student success standpoint. This is my baby and it's exciting to see it getting some attention this week -- I think that prisons should be schools by default and I hope that public perception changes. AMA if you're curious.
Why Asana Is Switching to TypeScript
Seeing this website reminds me of myself. I too have been building computer stuff since I was a 5th grader. I was going to study CS in college. After I was rejected by my dream school, I went on to study economics and mathematics instead, because it was the one of the best program that my school offered.

I've seen your projects and they speak for your passion. I think it's amazing that you are doing what you are doing. I'm not going to lecture you about whether to go to college or not. College has its merits and demerits. All I can say is keep up the good work!
I posted this a few days ago here: https://news.ycombinator.com/item?id=8583393
Take a look at The Sugar Open Source Project, http://www.sugarforge.org/content/open-source/ - should give you an idea of how you might go about implm it
I'm a little bit disappointed that it isn't going to make the enterprise. I work in a science lab, and it would be awesome to have it racked by the door so that I put it on as soon as I get in and I can verbally take notes, video, and photographs, seamlessly throughout the day, and then re-rack it at the end of the day.

Because it's all a matter of work, this also avoids most of the sticky issues of privacy, etc.
They are given printed quora questions by Last Mile staff, then they write the answers longhand. It's old school.
This is only true if you are building the implementation of async/await as a compilation hack (maybe a "transpiler", as people now like to say) rather than as a feature of the virtual machine. You don't need "threads" to implement this, you just need the ability to work with multiple stacks and then have use the techniques from coroutines. (Some people call this "green threads", but that's not the kind of "threads" you would refer to when saying C# has threads.)

I imagine the reason they avoided doing this was to not require browser vendors to make half their browser internals safe for usage in reasonable coroutines ;P. I can also see them having wanted to guarantee that the feature could be implemented using a transpiler rather than requiring it to be a native feature of the browser, and generators being explicitly marked at both the declaration and call sites (or async await with the limitations you mention) have that property by allowing a continuation passing transform to be applied to the generator's code. (Which could be applied to all code, of course, but not native browser code. edit: Well, you could so that as well, but it would violate other assumptions about how the code is supposed to work, and isn't something anyone has infrastructure to accomplish ;P.)
I think it's important to realize that AI doesn't have to have bad intent to do us harm.

Al it need for AI to have horrible consequences is for us to rely on it more and more and thus allow it to control more and more parts of our lives.

I don't fear the human level intelligent AI I fear the rat level intelligence that comes before.
If improvements in A gives you gains, whereas the use of some other B also yields more gains, then you can always say that any of the A gains are "a portion of" the B gains.

A compiler that only beats interpretation by 2:1 is either a poor compiler or something else is going on, like most of the work actually being done by subroutines that cannot be whose performance is not being affected by the compilation (Because, for instance, they are written in C and intrinsic in the language run-time).

There do not have to be explicit calls to such functions. For instance, compiled arithmetic that is heavy on large bignums will probably not be much faster than its interpreted version, because cycles are actually spent in processing the arrays of bignum digits (or "limbs"), which is done in some bignum library code. The code being compiled looks innocuous; it just has formulas like (a+b)*c, but these turn into bignum library calls. Since the bignum library is written in C and compiled, the calls run equally fast whether called by interpreted or compiled code. That's where most of the time is spent, and so compiling the interpreted code makes no difference overall, even if 90% or more of the time spent there is knocked out by the compiler. (Amdahl's Law.)
Context: http://www.reddit.com/comments/m16fd