skysight-inc/HackerNews huggingface dataset:
echo "Password: "; read -s pass; stuff --pass "$pass"

Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn't stored in your history.
Fossies – The Fresh Open Source Software Archive
Damn I thought you were 18/f
... and, as a Canadian, it would be like you were living in China at the time you made the estimate :-P
If driving in NL was as affordable and enjoyable as it is in the US, I'm convinced more people would do it.
Utter nonsense, he replied to a comment about expressiveness with [1], its only natural that I assumed he was saying that lack of static typing lead to lack of expressiveness.

[1]
ES6 isn't statically typed. It might be better for you , it is not for me.
Python has some safety checks that are missing in other languages, and this is a good thing. But it's misleading to call them "type safety", because they aren't connected to anything that can be meaningfully called a type system - all those checks happen at the value level (e.g. you can make a particular integer amenable to string_length, by monkeypatching the relevant methods onto it).
Everything you need to know about the Irish startup ecosystem
There was this explanation from an HN user: https://news.ycombinator.com/item?id=8901357

But Facebook made changes since then: http://www.infoworld.com/article/2908879/open-source-softwar...

I don't know much about it, just giving you links.
The Free Software Foundation has a good resource here https://www.fsf.org/resources/hw/single-board-computers on the "relative" freedom of single board computers.

The "enforced" binary blob really turns me off the Raspberry Pi. I bought a BeagleBone black as you can actually boot them without non-free software. Recently BeagleBone's GPU manufacturer Imagination Technologies made comments that the PowerVR chip https://www.reddit.com/r/hardware/comments/37h2a9/i_work_for... is planned to be open sourced.

If this happens I hope a lot more people will switch over to the BeagleBone rather than head in the direction of cheaper and cheaper closed ARM platforms. For me, the promising part of these single board ARM computers is that we may escape from running untrusted binaries and avoid things like Intel's Management Engine.
I use Firefoxes reading mode.
Ask HN: How is your docker based production flow?
Hello, I've started to use docker and docker-compose recently and I've been enjoying so far!

Just wondering how everyone is using docker in their production environment, I am doing a side project to learn docker & django and basically what I do is:

git push -> webhook -> run tests -> tag images -> docker push image to docker hub.

Then I am using docker machine to an AWS instance (ec2), in which I connect and docker pull the images and then docker-compose up -d

This is probably not the best set up so I am open to suggestions / learn from you :)

Cheers
Reactor – a library for building reactive fast-data applications on the JVM
How open-source MySQL keeps Eurovision live
As a supplement to this; if you do besiege his cities, always leave a narrow path of escape. A city without hope will fight to the death.

I'm fairly sure that is also in the Art of War too.
Goddam base-10-centric view of things :-)

Happy Birthday!
> He was also far more vindictive than Machiavelli.

> "It is also told that once, the thorns of a bush hurt Chankya's feet while he was passing through a forest. The wily Brahmin was cut to the quick, and wanted revenge. He got his revenge by pouring sugar syrup into the roots of the bush, thus ensuring that the ants ate up the root and destroyed the bush."

This seems wrongly interpreted on two levels. Processing sugarcane, while first occurring in India, happened about six centuries later [0]. That's hardly important, just that this legend, as people also tell it with milk[1], makes much more sense, allegorically.

As a metaphor, considering that it was while he did this that Chandragupta first saw Chanakya, and that together they united a bountiful, resilient people to overthrow a tyrant, we start to see his character. This legend also seems to show how forces of Nature bring people together in mystical ways that work to fix mistakes, ie, Chanakya avenging his father's murder by an extortionist king[2] with help from noble kings.

0: https://en.wikipedia.org/wiki/History_of_sugar#Early_use_of_...

1: http://bhojpuria.com/people/chankya.php

2: https://en.wikipedia.org/wiki/Nanda_Empire
“Invisible Electrostatic Wall”  at 3M adhesive tape plant
It was mainly for an exercise to get familiar with sqlite. Maybe later very rarely I can use the session data (hunting down sessions where you only remember some irrelevant command). Getting the duration of some commands is useful like long running simulations, compilations. It's especially handy where you don't expect it to be too long and forget to time it beforehand.

Having said that I didn't use it too much yet, I have my regular history in place too.
If you look at the FAQ and test cases this is a direct mapping to things wasm currently has, thus: no GC objects, just primitive values and direct heap access.
Rendering isn't the slow part here. The projection is (and map projections are quite expensive to calculate).
Wow, really gorgeous app! Are you planning to expand it beyond Toronto at any point? (UK pretty please)
It's fascinating how little documents we have of people who were incredibly famous and powerful while they lived.

Often, some claim that Jesus of Nazareth didn't exist because we have no documented evidence of him from his lifetime. But Alexander was viewed (in his time) as conquring the whole world, and we still don't have written evidence from his life.
Ok. I really hoped in something much more deep.
thanks for the great work!
Is the argument a dictionary?

if (a instanceof Array) ...

// or polyfill
Array.isArray = Array.isArray || function(a) {
return a instanceof Array;
};

Object.keys can be cleanly shimmed without braking older browsers. You can always shim in the behavior you want, as long as you don't need IE7 support.

Object.prototype.values = function() {
var instance = this;
return Object.keys(this).map(function(key){
return instance[key];
});
}

Replacing globally in a string

console.log("I lose and lose again, not even close.".replace(/\blose\b/g, "win"));

If you're using ES6 or node-style modules, you shouldn't generally mess with global state, unless you are polyfilling new features. Promises (bluebird), fetch, etc...

Understanding falsy values is a core part of learning JS, as is coercion... no it isn't perfect, but there are flaws in any language you can bring up.

As to a function assigned to a variable vs a function declaration, well again that's part of learning the language.... Being able to use functions as first class expressions is a very powerful feature, that frankly works pretty well.

Of the features missing from JS proper, an isolated invokable web-workers scenario with plain, side effect free functions/modules would be a great start (not the current way via secondary script).

That said, most of your complaints are things that are easier to work around, or simply things that you learn with the language. It's not that different from learning warts in Python (which is better than many), C#, Java or anything else.
I really wonder why, when talking about climate change, the reference to deforestation has been downplayed so much compared to a few years ago. Isn't that just as important as CO2 emissions?
I would love to use this! Had to grep through ancient backup diffs way too many times to resurrect that perfect command line.
Semi-serious question: do you delete all your emails after you've read them too?
Uber in taxi war of attrition with Chinese rival Didi Dache
But that means you've just disallowed a whole class of some very efficient data structures (in the collected context). Those are the very same data structures (trees, graphs) that are useful for arbitrary lifetime objects, namely exactly the objects that would most benefit from a GC.
Using Social Media for Lead Generation
Cool, did not know that about the leading space.
I have also been doing C# and JS for years and completely agree. JS is nice for prototyping because of the light footprint but as soon as your code gets more complex it becomes a problem to manage/maintain, far from impossible, just harder. From this perspective TypeScript is a godsend.
Cloud ERP Integrates with Microsoft Power BI Yay
Meh, they dismiss java & pypy very quickly but they don't understand that these languages require warm-up. If you benchmark runs in less than 2 seconds half of the time measured is starting the runtime, profiling & compiling code. I think that interesting computational problems in economics have a much longer running time.

For this kind of algorithm, basically working with arrays of doubles, java should be within 20% of c++ and normally it is just as fast.
From the article:

"satellite observations and ground-based ecological work. The former gives an overall view of where forests do and don’t exist on the Earth’s surface. But the latter goes underneath the canopy to determine how many trees exist in a given area in a given type of forest."

It seems that satellites give a good measure of the acreage covered by forests but are not suitable for differentiating individual trees. To do that requires on the ground sampling and as more sampling is done it is being discovered that the actual number of trees differs substantially from previously established estimates.
You could just disable it instead, saves some cpu cycles.
Solving a simple asynchronous task in both Go and C#
Pluggable Resolvers in Bower 1.5
"Java's issues with floating point arithmetic in high-performance scientific computation"

Can someone explain this?
"Can one go to another country, declare oneself as their leader and then just lead by being nice?"

The thing is that Alexander's biggest proportion of conquests were the former Persian Empire's - lands of various people which all their life lived under some foreign rule. So there was a change in power, now here's this new ambitious and charismatic leader offering some of the most nicest conditions imaginable if you just submit. Considering Alexander's record of winnings and therefore - the chances of a revolt against him, is it that hard to believe that people preferred to stay put?
DUBAI’S MOST AFFORDABLE NEIGHBOURHOODS
I was really hoping that Silverlight would gain more traction than it did... for that matter, it's far closer to what I was hoping for when Adobe bought Macromedia. I had been hoping to see a new flash container format that was similar to what Silverlight became using SVG and MP3 with JS as it's main interfaces in an open structure (for the format and player), Adobe could have stayed king of tooling... Flash and Flex are still way better in terms of tooling for some relatively complicated presentations, simulations and the like for a browser than what you now need to hand code with current standards.

It really takes something like WebAssembly which multiple browser vendors back to get traction... Adobe was in the position to give us this almost a decade ago.
Infra Bazaar facility for sourcing construction gear, materials
"built on" is not necessarily synonymous with "developed on".
That isn't strictly true. If you add the qualifier "without mutating the tree" then you are correct.

Otherwise, you can avoid parent pointers by reversing pointers while you traverse, but this requires using a bit per node (which you can generally steal from a pointer in practice) to indicate whether a visited node was the left or right child of its parent. Getting rid of the extra bit is trickier, but it can be done, e.g. Robson traversal that uses the links of leaf nodes to store the stack.
Unlike C++, Java ensures that floating point calculations always yield the exact same result, regardless of the underlying platform. This can degrate performance.

I am not sure if they meant that thought, in my opinion this is an advantage of Java.
What's "dramatically more" is all about context, it's not just about the relative change regarless of what's changed.

Wouldn't you consider a 7.6x change in your salary "dramatically more"?

>It's not even an order of magnitude more!

That's irrelevant. Even in software profiling, making something run "merely" 2x as fast can result in HUGE profits and savings (e.g. the movie studio that gets its rendering done in 3 months instead of 6).
Doesn't it seem that acreage is more relevant?

(I didn't read the article)
6 Steps to Creating a Secure Website
Am I invisible? Or the jobseeker’s account
Because the Liberals are trying to win an election against the ruling Conservatives right now.
Google sued over claims that Waze stole rival's data
Oberon convinced me what is possible with GC systems programming languages.

My conviction is that programming with GC requires a generation change and companies like Apple, Google and Microsoft pushing for them. As they are already doing on their OSes.

Sadly this is an area where FOSS doesn't seem to pick any steam, mostly likely due to the research effort that is required.
My understanding of the boot process is that:

- the VC4 starts up and a ROM starts executing
- the ROM loads bootcode.bin into the SRAM
- bootcode.bin sets up the DRAM and loads the start.elf and fixup.dat
- the start.elf sets up the ARM core and loads the Linux kernel

ARM code only starts executing at the last stage.

The only bit that's actually necessary on the SD card is the bootcode.bin --- everything else is under the control of whatever's in there.
There are a couple of airports with regular commercial service missing from this map. They're quite new though (0-3 years). Probably just old data.
The leading space behaviour is true only if HISTCONTROL="ignorespace" is set.
The email Natalie Massenet sent to announce her £100M resignation
>I spent a week doing a lot of React projects

That's not much -- and all the projects are probably toy projects, to fit all of them in a week's span.

>while it's nice, it is what it is- a view layer.

Sure, that's why you use Reflux, Redut and some other Flux architecture helper to frame your code, ReactRouter, etc.
Hilarious alternatives to the Singularity: https://docs.google.com/presentation/d/1B75jindDAWsm8lBHPl4y...
Yeah... I mean give me layers of interfaces, indirection and dependency injection that's hard to follow. Class structures that don't flow well for procedural workflows. Projects with dead end code paths because they are so big no one person understands even half of it. I mean, these are such great things.

I've totally missed them in modern JS development, and haven't been fighting against many of these practices for years now at all (/sarcasm).

Seriously though, my biggest issue with JS development today is people that don't understand patterns beyond what they use in C# and Java, and don't want to keep things simple and easy to reason about. Most C# and Java applications I've worked with have many layers of unnecessary complexity for the sake of, more because "that's how it's done in 'Enterprise' software" more than it is about what's truly needed.

I actually really like C#, and the thought of being able to use some of the features really appeals to me. That said, actually working with solutions common from .Net, I've been happier without it. I've spent the better part of my time the past 4-5 years migrating away from .Net solutions to Node based ones... once you get past people trying to implement overly complex patterns and embracing "the node way" of simple, composable, functional modules... it can and does go much more smoothly.

--- edit:

When I say complexity for the sake of... it's usually for the purpose of testability, often in scenarios that don't have tests, and beyond that aren't trying to target multiple implementations of an interface. Even then, with JS you don't need the added constraints. I know there are "contract" concerns, but what that gets you is WS-* and SOAP/WSDL hell that nobody really understands vs easy to reason REST/JSON services. In the end, having simple systems where you have to learn a bit of convention tends to be easier than complex systems with layers of indirection.
bash history had never seemed to work for me between tmux windows. Commands are 'trapped' in their respective window and the last one to close 'wins' and writes its history over the others.

So I end-up with never-closing task-based window sessions and occasionally copy-paste commands to a safe file for future reference.

I really should investigate the root cause some day...
It's explained in the article. They have combined satellite imagery with observations from underneath the canopy, so they had both the area of forest and tree density in the particular forest.

> The scientists were able to reach these estimates by merging together two separate mechanisms for sampling trees — satellite observations and ground-based ecological work. The former gives an overall view of where forests do and don’t exist on the Earth’s surface. But the latter goes underneath the canopy to determine how many trees exist in a given area in a given type of forest. Thus, the study amplified satellite views with no less than 429,775 separate measurements of the density of trees at different locations around the globe.
Deforestation is a form of CO2 emission: a stable forest is roughly carbon-neutral (over long time scales obviously), a growing forest locks up carbon, a shrinking forest releases carbon.
No, emails are important.

I also don't run a keylogger.
Is it really so that the Polish programmers are so good?
Floating point calculations are only guaranteed to be platform independent when you use the 'strictfp' modifier.
Be able to use any language for the front end is great thing, but I have a concern for existing frameworks/libraries.

If someone build a great tool, lest's say the equivalent of D3.js, in Java; I don't see a way I can use it in python without having to write a python API for that library.

It's not necessarily bad. The first advantage being, that hopefully people are going to stop recreating new javascript frameworks every 2 months.
Your shell is likely configured to write to the file, instead of appending to it.

shopt -s histappend

In your .bashrc should do. To have it write after every command take a look at http://unix.stackexchange.com/a/1292
http://askubuntu.com/questions/67283/is-it-possible-to-make-... might do it?

(In zsh I believe it's:

setopt inc_append_history
setopt share_history
)
Did not know that, for me HISTCONTROL=ignoreboth is set in my .bashrc. I think Debian's adduser creates a default .bashrc file where this line is present, I'm not sure though.
Happy birthday Jacques! I am not far behind you, and I have to say that I am loving my mid forties...
It is like this:

1. Create full new version

2. Run a diff with the old version

3. Patch

Because of 1, it is bound to be slow (in a computational complexity sense). Based on the popularity of React and its wide acceptance, I wonder if people learn computational complexity theory anymore these days?

PS: yes I know there are tricks to make 1 faster, but these are really hacks (require extra thinking and are error-prone) and deviate from the original "React" philosophy (they are basically the old style of doing things), so these don't count.
Do be aware though that this only works if HISTCONTROL is set to 'ignorespace' or 'ignoreboth' (for bash anyway).

For zsh, you need to have HIST_IGNORE_SPACE set.
Konami code in one tweet (140 chars)
Βελτιστοποίηση+Μηχανών+Αναζήτησης+-+SEO+|+WEB+DESIGN
Two things:

1. After travelling for a while, I believe that the air and nature of the region DO affect your brain and seems to be in sync with the people in that region.

2. I think this is more of a tale for cultural resilience. If the elderly teaches the young that they'll find until the end; they'll fight until the end. Look at Palestine.
This reads like something from the 30's; just replace 'K2' and 'Acid' with 'Reefers' and 'laudanum' or something.

This too shall pass.
This guy was me at my current company.
My second last day is today.
> March 20, 2015

:P
EaseUS Todo Backup Home 8 Keygen with Serial Crack Free
Perhaps its because I grow up in a different culture, but I see completely different use cases. There are already way too much though crimes, and mob lynching over something simple as twitter.

Imagine local lynching club which assembles every Thursday evening (something like bowling), 'data mines' nearest victim and have their way. All with silent support from authorities, because their victim said something nine years ago, which can be quoted out of context.

And once government and HR departments get their hands on this...
Location: Pune, India
Remote: No
Willing to relocate: Yes
Technologies: Unity3D (iOS & Android), C#, C++, Java
Resume/CV: https://docs.google.com/document/d/1Wf-3cBuszCZQt9eOh7_pCUMkQQHwBNbJIFXRrmXL9Jo/edit?usp=sharing
Email: manishpmathai@gmail.com
Man, way to put words into someones mouth.
Just need a callback

var konami = [the tweet code]

konami(function () {
alert('hooray');
});

Ok it's perfectible, and the code probably miss a lot of use cases. But it was just for the challenge to fit it in a tweet.
See my comment elsewhere in this topic.
github: https://github.com/jesusfv/Comparison-Programming-Languages-...
rmxt I don't think there's much point debating with this guy. He's not interested in learning and sharing his understanding. Only interested in proving he's right and I'm not even sure he knows what he's trying to prove right anymore. He's finding anything he can to backup his argument, not sharing sources that he used to formulate his opinions.
Regarding Arrays:

var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
xArray = window.frames[window.frames.length-1].Array;
var a = new xArray(1,2,3);
>> a instanceof Array;
<< false
>> a
<< Array [ 1, 2, 3 ]
>> Object.prototype.toString.call(a) === "[object Array]"
<< true

All I'm saying is there are way too many such things that you have to keep in mind.
I do not trust vendor scripts.

Really fscking annoying: scripts that include inline binary data.
Thankyou. We're already pulling in 4k a month and reaching schools.
Array.isArray is already in ES5 and can be used in any reasonably modern browser (meaning IE9+)
To clarify, Tim LeBon's book is the Achieve Your Potential book.
At Apple, a few % of performance improvement were a huge deal. These things add up over time...
Got an Apple Watch. Didn't see this coming. She knows
Something I've wondered about reference counting and optimising compilers: I assume at a lowish level an inlined function call might look something like,

pointer->ref_count += 1
obj = pointer->ptr
//...do something with obj...
pointer->ref_count -= 1
if pointer->ref_count == 0:
free(pointer->ptr)

Assuming ref_count isn't messed up by another thread (which I guess we're free to do if we haven't put locks around it, or declared it volatile?) then you could optimise away the increment and decrement on `ref_count`, right? I guess I wouldn't be surprised either way.

What I'd like to know, though, is whether the `ref_count == 0` check could get optimised away as well. To you and me it's obvious that the count is positive at the start (as a precondition for the pointer access being correct), but I can't really see how an optimising compiler could know that.
Yeah I can understand your point. Not nice being told what to do or forced what to do.
When did the UK start demanding taxes to help refugees btw? I'm not aware of this.
WASM models memory as a big array which is your heap, all memory management within that is up to you. There is no GC, there is no new / delete or anything else. For the use case of porting C programs to your web browser this is fine, for higher level languages you're a bit stuffed.

I hope WASM gains some sort of GC eventually, because writing a GC in WASM will make me cry. :-(
WASM, however, is a new runtime that doesn't yet support GC: https://news.ycombinator.com/item?id=9741503