skysight-inc/HackerNews huggingface dataset:
Show HN: Sketch Gallery – Share how you solve problems by sketching
Sketch Gallery shows public boards from https://sketchboard.me where you can sketch using a sketch style, rather than corporate documentation style to emphasise your idea, not how it looks.
Then you've done it wrong. Very, very wrong. You should be able to replicate your live environment locally and not being able to is a sign of a very broken development process.

I just cannot emphasise this enough. One of my skills is debugging, everywhere I've worked I've been one of the top debuggers if not the top debugger.

Never, ever debug on live. If you can't recreate the problem locally, you don't understand the problem yet. Keep trying to replicate it until you do. I'm talking days of trying, not 10 bloody minutes.

The key to all debugging, the very fundamental skill, is consistent replication. If you can replicate a problem consistently, you can fix it.

There's a class of problems where this isn't necessarily true, especially for desktop apps, but web development problems and javascript, you can almost always replicate locally.
Ironically, growing up in the Third World when software legality wasn't even a thing yet and game stores only sold cracked copies on Maxell floppies with handwritten labels, Monkey Island was the first -and for a long time, the only- game I bought in the official box.
Take lstree then. How would you give it an option giving the kind of ordering you want?
Do you mean "SpaceX was a mistake"? To me it read "SpaceX has made mistakes" (which you'd expect working with nascent technology).
`main` is the entry point of the program. Its type is `IO ()`. It is a warning to omit a type signature in a top level definition, so in a normal program you would have a `main :: IO ()` type definition. The `IO` allows any kind of effect.
Clinical Trail Solutions
Ex-Coffeescript ,now Javascript with lot's of Python experience guy here.

The "I understand CS code much quicker" argument is a valid one theoretically, but In my opinion, it does not hold up practically that well.

CS got one thing wrong that Python got right: There are many ways to do things.

When writing CS, I understood MY CS just fine... but it always took me longer to understand the CS of other people. Sometimes even longer than JS. This is such a huge drawback, and even if there is coffeelint, for teams, this is deadly.

A lot of devs need to read a fair amount of foreign code. Even worse a lot of coffeescript writers also need to read and understand a lot of JS code.

Understanding and reading YOUR code slightly faster gets mitigated by having longer to understand foreign code.

While some JS purists fail to see that Coffeescript has some benefits, CS people also underestimate how "quickly" you can understand JS code, if you're experienced. It's all about what your brain is trained to do.

In my opinion, with ES6, I would argue for most people (ceteris paribus) it just makes sense to read and write JS exlusively, if you want to maximize output-productivity of a full, practical project.

Shaving off a couple of seconds "understand-time" of your personal, well written CS vs well written JS will just not compensate other things that will take you longer to do with CS.
Very nice tool.

It helped me a lot to optimize my website perfomance.
I highly recommand for all web developpers...

If you use to many !important tag you'll be noticed.

If you load more than one version of jquery, you'll also be informed...

You can also know if you make too many request on your DOM. So you'll have to use JS variable instead of doing a lot of DOM request ...

All these informations are critical to get the best web performances.

Regards,

Ben Younes Ousama.
Sketch Gallery shows public boards from https://sketchboard.me where you can sketch using a sketch style, rather than corporate documentation style to emphasise your idea, not how it looks.
I know from a similar German project (http://www.deutschestextarchiv.de) and they have two independent non-German speakers transcribe the digital facsimiles to ensure that the transcriptions are as accurate as possible.
TypeScript / ES6 classes for React components – without the hacks
I don't think SV is ageist so much as "anti people who were working before the Internet" -- people like Vint Cerf are respected (was on the Internet from early), but the random MBAs who joined/founded startups in the late 1990s with no tech experience were pretty useless.
I know CISSP and i don't think studying for the certificate will give me the skills needed to be a good security researcher
Look at the UK where 90% of the establishment went to public school - liek wise for Harvard in the USA
Did we read the same article? The entire 'streaming section' is about pipes and I/O redirects. Running a command in the background is just forkIO $ proc ..etc.., as in regular Haskell.

Nothing tricky about it.
And now we wait...

While I like stuff like this, it's basically an open invitation to start messing about.
Radio Station Programming: LiquidSoap http://www.liquidsoap.fm/

Streaming: Icecast http://icecast.org/

Low bandwidth, low latency audio codec: Opus http://opus-codec.org/

Lossless audio codec: FLAC http://xiph.org/flac/
One significant thing slowing this down is all the access to the the shared mutable buffer. I'm confident it would go quicker if renderWeirdGradient was changed to be a pure function that either returned a new populated buffer or had the buffer as an argument and returned the result.

An even quick fix that would have some improvement would be to make the buffer final so that less indirections are required to read and write from it.

As others have already said the unsafeMutableBuffer may be appropriate for performance critical inner loops.
With leasing,you can afford pretty much any car you like(unless you start talking about ferraris of Bentleys) if you make an ok salary[1]. My only experience is in the UK,but I am certain that if you made $40-50k a year you could easily find a leasing plan that would let you afford the monthly payment on a Porsche - even better if you pick one that's a few years old, then it's really easy. You couldn't buy it outright, you probably wouldn't want to pay off the rest of the car at the end of the lease,but yeah, you could absolutely do it.

[1]and don't have kids/mortgage to pay off.
Blogging – First month’s restrospect
Django Rest Framework general model serializer
It should be evident by now that that one sentence is effectively meaningless in the US.
Interesting; this could potentially solve a pain point for me. I run a small set of services for some research collaborators and have been phasing out passwords, so users are authenticated solely via their public keys. That works for most classic "Unix server" stuff. But for the use-case of a remote GUI for scientific computing, the classic solution of network-transparent X is gradually losing out to a more iPython-style solution of a browser front-end. In which case I need to authenticate the same people in their browsers, and it'd be nice to do it via the same public keys.
Taming Nightstand Device Charging
There is a write up about the development of the STS-software[1]. If memory serves, the key is specifying everything extremely rigorously. It seems to me though, that writing such specification (if sensor A detects such-and-such value and sensor B...) would share most of the problems writing actual software does.

Another look at how to get "NASA like" confidence is provided by Richard Feynman[2] and Diane Vaughan[3].

[1] http://www.fastcompany.com/28121/they-write-right-stuff
[2] http://science.ksc.nasa.gov/shuttle/missions/51-l/docs/roger...
[3] http://www.amazon.com/The-Challenger-Launch-Decision-Technol...
If I would have a dollar for every copy of pirated software used on a (rather small) company I would be rich.

Stories that say that interns have kind of a code to knock the door and be able to come inside the (architectural) small office, are rather common..

Maybe not in US, but in South Europe this is almost a standard.
Replace paper notebook with Advanced once
Meet the OnePlus ROM: OxygenOS
Honestly, it's not the 2-4-8 indentation or the placement of braces that gets me when reading code. In Go, my biggest problem is that there are so many x, err := foo(); if err { ... } that I get lost trying to figure what the happy path behavior is.
In China it's out of necessity and safety, but the side benefit is that these groups become more tightly knit. I worked amongst many of the 'house churches' when I was in China. I wasn't a direct part of them, but the school I worked at had a huge underground of this type of thing. It made our IT security a bit more paranoid because from time to time we'd have government folks 'inspecting' this place far for frequently than at other schools in China in which I had worked. But that's another discussion..
Get rid of crap emails in your newsletter list – 100 free
> May as well just use a virtual machine at that point.

While this isn't true (as explained by others), I don't know why there's such dismissal in the docker community for a VM with ~zero boot time, good tools without requiring ssh (`docker cp`, `docker diff`, `docker exec`, volumes) and layers. These are good things! Of course packaging in a light-weight way is nice if you can manage that as well but it's not everything.

> Nice and composable, reproducible infrastructure.

Phusion passenger is also reproducible you're still using (the highly touted) Dockerfiles. I've no idea how you want to define composability.
While obvious to say, use cash.
If non-communiticating is taken as actually communicating you are correct. However proving that this is the case in court IMHO is not easy.
I like alternative two, except that I'd have it be

ssh <token>@<host> auth

This feels more natural to me and makes it easier to support other commands in the future should one wish to do so.

Regarding the part where he said:

>Running a custom SSH server along side a web server is not convenient. There is no good equivalent to the HTTP Host header, so hosting multiple SSH servers on a single IP address doesn’t work well.

That's not a problem. Your server got the host header over HTTP. When you generate the token, just tie the token to that host name.
I'm sure that some overall improvement is possible, but those gains are often going to come at the expense of reliability or emissions compliance.

(Which I think you acknowledge in your second paragraph, just seems worth it to be explicit about it)
3D video conferencing is now possible with realfaces.org
Has anyone who's seen the actual code comment?

From what I understood on the video, this is going to be distributed via a repo that is essentially already an iOS or Android template?

There wasn't much talk about the compilation process. Maybe the details (for the open source version) haven't been ironed out?
This is a link to a live demo. The website is at http://realfaces.org
Exactly this. I don't care about cross platform development. But I'd love to be able to develop UI's on Android using a similar paradigm I can do on the web with React. The main downside for me is that it's JS, not Java.
Yes, but I'd install it in the driveway, and not on the freeway ;)
Unless of course you're gay or trans. Most versions of "Christianity" take a dim view of those folks.
> I think there's much (~10x) more C code than Ada code everywhere where safety matters

Probably, but using C dialects and certification processes that make C just look like Ada with another syntax.

http://www.misra-c.com/MISRAChome/tabid/181/Default.aspx

http://en.wikipedia.org/wiki/DO-178B

http://www.programmingresearch.com/solutions/medical-devices...

> Also, it's not just Unix that's written in C or a descendant - there's also, well, Windows, and a load of embedded RTOSes.

Windows did not exist when UNIX was created.

MS-DOS was based on CP/M which copied ideas from UNIX into home computers. So while C didn't had a special place in home computers, UNIX was gaining adoption in the enterprise even Microsoft had their own UNIX, Xenix.

Which they used to cross compile some of their MS-DOS applications.

So it was only natural that when they started developing Windows, they used their in-house languages and both Quick Basic and Quick Pascal were not that up to the task, leaving C as the option.

Embedded RTOS are traditionally POSIX compliant, wich leads again to C.

Microsof is actually moving away from C, this is why they don't care about compliance any longer and speak about C++ and .NET Native.

Even their latest C99 related changes are only related to what ANSI C++11/14 require and a few key open source projects that they wanted to see supported.

Which is kind of funny, because Microsoft was the last C compiler vendor in the home computing space, to add a C++ compiler to their tools, with Microsoft C/C++ 7.0.

> If Ada made you as productive as C with extra benefits or something to that effect, you'd expect Ada to succeed at the marketplace at a scale at least comparable to C's - especially with the government support it had which put C at a disadvantage, not?

Not if people are expected to pay for the compilers.
I hadn't thought about the idea of communication security, but you are right, with the things you discuss in church, you would definitely need to consider that. I think you are right that these churches would also need to be "hyperlocal". A lot of that could be handled by Facebook with those "I'm having trouble, can you come over so we can talk" comments, with the meat of the discussion handled in person.
Penny Stock Pawnbroker Had a Clever Trick to Get Paid
> I've noticed a lot of Rust lovers commenting about how great Rust's type system is. It probably is, but I haven't run into any problems with Go's type system.

I think it depends on the kind of things people write. Most people I see writing Go code seem to be writing programs, a piece of code that performs a specific function for a user. In those cases, you very often know exactly the domain types, and Go's type system is perfectly adequate there.

Other programmers write libraries, functionality that is meant to be used by other programmers to build their code upon. In this case, you rarely know the context in which a user of your library will use it, therefore you cannot really make any decision about types. This is a big reason why people like having parametric polymorphism.

The constant arguments that we see online probably comes from people writing programs and people writing libraries arguing with one another without understanding the context in which the other writes code.
I've just tried making the buffer final and it results in a speedup of 8 times (not rigourously measured). From ~0.02 to between 0.0045 and 0.0025 on my computer.
Except static typing does matter. http://evanfarrer.blogspot.ca/2012/06/unit-testing-isnt-enou...
I'm more into Ruby than in JavaScript even if I have 10 years of Ruby vs 20 of JS on my shoulders. In my experience Python is always easier to read than JS. It's easier than Ruby for the part that spares me from a silly looking sequence of end end end at the end of some nested block (but that : before a new indentation level looks silly too.)

The syntax of both Ruby and Python beat squarely any C-like language, even if Python looks strange to me. Perhaps is the mix of objects and functions that makes it look a little C-ish, or the many __name__ one has to write in same cases. Anyway...

I would do without JavaScript's {} () and ; or Ruby's end (which bugged me a lot 10 years ago) but unfortunately that easier syntax is offset by the too many times it came biting me with nasty bugs after I cut and pasted code around during refactoring. Or having to take really care of how many spaces I'm deleting to match the indentation level I must reach. The editor can't autoindent all the file for me. It's bad enough when I'm working in YAML files (the format of Rails's i18n db, another ironic choice) and I don't want to deal with it in all my codebase.

So in my experience significant indentation is evil because as a matter of fact is making me less productive. Lot's of people share the same feeling, lots of people are happy with that. No problem, there are so many choices that we can always pick what's best for us.

PS: I just thought that maybe an editor could autohide Ruby's end (or color it almost away) and still be able to autoindent code. Maybe I'll try to tell emacs to color end in dark blue (black background) and see what happens to code readability.
> Never, ever debug on live. If you can't recreate the problem locally, you don't understand the problem yet.

I am guessing you have not been exposed to highly complex live environments. What you say is largely true but you state it as an absolute fact, which is a bit naive. Live environments tend to be far more complex than test or local environments and sometimes that complexity is what creates the bug. Sometimes the only solution is to debug live, but of course that is a last resort.
Not exactly released. And not exactly to public. As the site says "Please note that it is very rare for us to set up free trial access for individuals. Individual pricing is not available and all trial requests will be considered on a case-by-case basis."
OCaml does have opam (package manager), ocp-indent (a code formatting backend), merlin (a code formatting front-end for Emacs, Vim and Acme), a REPL, a byte code compiler, a native code compiler, a debugger that supports stepping backwards, can integrate with gprof, has ocamllex for building scanners, merlin for building LR(1) parsers, etc. And OCaml's been gaining speed in the past years, so there's a lot of nice things to see there.
Rehab for a digital zombie: my year without a smartphone
Thanks for the tip, I just bought the Kindle version!
Remind your CEO that retaining existing users is a lot cheaper than acquiring new users, and that the existing users bought in without the new shiny stuff so fixing the features you know they want is important. Remind him hourly. With charts.
Minimizing javascript code using a minimizer currently cannot be done well in a guaranteed way, because the minimizer must make too many assumptions. Therefore, I think javascript is too dynamic for a web-language.

Unfortunately, they didn't solve this with ES6.
Presumably IA can just get the Box and add the files to their own archive.
Internet Archive – Beta New Version
StatusPage.io (YC S13) Is Hiring Rails Engineers in Denver/SF
Seems irresponsible to release this publicly.
I've heard that the Chinese governments attitude towards Christianity is somewhat bi-polar. In the East they discourage and harass Christians, but in the West they openly encourage Christianity, to the point of paying the salaries of missionaries (as a way to counter the Muslim communities). Is that true?
No, sending your kids to private school is actively making it more rigged. If you tell them, it means you know.

Let me rephrase my previous post:

"Listen kiddo, since your dad got a high score in SAT he can apply to get you a 500 points headstart. Other kids can't get it so make the most of it."

You can still choose not to send your kids to private school if you feel it's an unjust advantage.
What these tools do is "generalize", which is essentially the same as "discriminate".

(If someone makes generalizing assumptions about another person, then whether this is based on shopping-behavior, or skin-color, is not relevant.)

Hence such tools should be forbidden, or at least their use restricted.
Patterns are uniquely generated in almost all types of information. What has been missing until the great rise of the World Wide Web is intent to monetize.
Earlier companies sold you products like Microsoft Windows, Coca-Cola and Apple Macintoshes. Advertising paradigms like television advertising, radio, newspapers while really nice, had a "last-mile-connectivity" problem - you never really knew how you got your customer - through TV, radio? I do understand Nielsen and other ratings companies and some TV analytics historically try to ameliorate this, but the internet has been the greatest driving force in the last few years.
Google and Facebook etc. and internet driven content engines have all traded eyeballs for content or products. As a result, the intent to improve advertising for the eyeballs (since presumably the eyeball count has a theoretical upper bound) has become the force du jour.
Hence the ability to identify stuff was there, except for the machine learning part which has grown up from academia tremendously. It is just that now we have the intent to use all this to identify and collect patterns from all sorts of data.
Whether that is good or bad or gray is another matter.
RunAbove – French Cheapest S3-compatible Storage ($0.01/GB/month)
Public school in the UK is private school in the US.
People are talking about monads and stuff like that. No need to worry about maths and words you don't need to know. That 'do' keyword up there indicates the start of a simple DSL. The DSL goes like this, every line is the beginning of a lambda. And the result of each lambda evaluation is passed into the next lambda.

So you get a sort of cascading scope of lambdas where the result of each lambda is available passed into the next. Each lambda depends on the evaluation of the previous one. Normally in Haskell functions are executed lazily, this structure forces the sequential evaluation.

So what are these cd, mkdir, output etc functions? They return an object with a specific type called 'IO'. This type is monadic, but that's irrelevant for now. Haskell as you know has no side effects in the language itself. The IO type basically is a command pattern, it says "execute this I/O with these parameters".

The monadic aspect of IO makes it so that at the end the commands will have accumulated in a list, of which you can get an item if you give it the results of the previous item. So that's what the main function returns, a list of commands with some lazily evaluated Haskell code in between them. Now comes the side effect part. The Haskell runtime system iterates over the list of commands and executes them. The result of each command is used to get the next command in the list.

So that's the core of the magic trick of monadic I/O, you make a lazy list of I/O commands, and have something external to the language execute those I/O commands, giving the results back to the language to get the next I/O command to execute.
Marmaris Ucuz Oteller
It usually takes weeks or months for reactions to bug reports. I have three open bugs (one for Xcode, one for iOS, one for OS X). The iOS bug is a regression introduced in the beta and reported in August. It contains screen shots and sample code. No reaction yet.
Even cheaper than Amazon Glacier storage.
Isn't that true with all religious groups? You feel much closer with people you share your secrets. Wasn't that the one core principle behind the instant love study that was in the front page few weeks ago?
Yes and no; There are already some rules governing case abandonment but we definitely don't need a government obligated to follow through every fool action it initiates.
You have misinterpreted the significance of the citizen kane slow cap animated gif.
Prometheus is really nice. It focuses on the right things needed to monitor distributed systems (complex expressions and alerting) where others (e.g. opentsdb and influxdb) fall short, at the expense of deferring the issue of massive scalability which, let's face it, it's not a real requirement for most scenarios.
Wow. I just have one question for you: why?

Have you ever heard of TLS and client certificates?
Every browser and every decent web server supports TLS with a client certificate for auth.