skysight-inc/HackerNews huggingface dataset:
I would call those options #2 and #3. Option #1 is:

1. Parallelize on a single machine. Most scripting languages have single-threaded bottlenecks (Python, Ruby, node.js, etc.), so this means using multiple processes.
xargs -P goes a long way. The coding changes are essentially a subset of what you need to distribute your program anyway.

32x or 64x speedup is nothing to sneeze at on a modern machine. The difference between 5 minutes and 5 hours usually solves your problem, practically speaking. And this means you don't have to touch every line of code, as you would if you were doing a C++ rewrite.

But also don't forget that you can often rewrite 10% of your code in C++ and keep the other 90% in Python, and get a 10x speedup. This requires fairly deep understanding of both your program and of the Python/C interface. It helps to adopt a data flow style so you are not crossing the boundary a lot. And make sure you release the GIL, and consider starting threads in C++ rather than in Python, etc.

I've also optimized an R program in C++ and gotten 125x speedup -- and that's single threaded C++; multithreaded would be another 2 orders of magnitude!!! But it also involved fixing a bunch of R performance errors, so don't underestimate that too.

In practice, any program which you actually care enough about to rewrite for speed usually has some application-level performance bugs -- i.e. slowness unrelated to the slowness of the underlying language platform.

People scale out to many machines because they don't want to rewrite every line of code. But the first step is to "scale out" by using all the cores on a single machine. In some sense, this is the best of both worlds, because you are incurring neither the overhead of distribution (serialization and networking) nor the complexity of distributed error handling.
So glad the renewables ramp is speeding up!
I am not understanding what all the hype is about "Electron". What does it bring to the table that I can't code myself? So many apps are based upon Electron.
I know, but for what it's worth it means the same thing.
It's not just about subsidy. You also have to price in the carbon pollution.
Of all things wrong in politics, UBI is your go to? Let's not like, end the drug war or stop domestic surveillance first?
Whoever is around when the cops arrive often gets arrested.

If you find a body in India, you run the other way.

If you take an injured person to hospital you get a bill.
Awesome! I think i'll build this on my balcony! I've acually been planning something similar in my head for years. But never actually did anything about it.
No. Our pricing table is simple. 45,000KRW(about $40) for 4 hours, 85000KRW(about $80) for 8 hours.
Infecting PE Files with Java Bytecode
I have yet to hear a non-political argument against a revenue-neutral carbon tax. It's a little infuriating.
I think you're replying to the wrong person - they just asked a question about when Erlang might be a good fit.

> Just call into a C lib from Erlang.

That's easier said than done. Certainly possible, but it's not quite as easy as just linking and calling.
>That you cannot conceive of it does not make it inconceivable.

True, but I find it sufficiently difficult to conceive of that I'm not convinced anyone else can. If you claim to be able to, can you explain it to me?

To me, saying experience "is" brain processing is like saying the image on the screen at a cinema "is" projector operation. One may cause the other, but they're still separate things.

> scientific theories [1] exist to explain exactly the functional purpose of consciousness.

But that doesn't explain the mechanism for conciousness to occur, it just explains why it might exist.
Hi,

This is Piyush from Docshare.io

Docshare is an instant document tracking tool which will notify you via email whenever someone visits your document.
And You will get insights like:
>> Overall Time spent on document.
>> Location/IP: Know the exact location of the viewer.
>> Email id (if enabled): Every time viewer will be asked to enter email to view your document.

Happy Docsharing!
Every time I have accidentally started my editor without syntax highlighting due to a misconfiguration (e.g., the file doesn't have the right extension), it has impeded my understanding.

I will take that experimental data over a pile of arguments from first principles any day.
This article presents some very good points on how the user experiences workflow, and I have been taking significant note of this in my recent work.
I shall preface this story with the detail that I have a hundred-odd notifications a day I have to read and, for the majority of them, act in some way whether it be a reply or logging into a system.
Having started wearing an Android watch recently, I became more immersed in my notifications. However, due to a OEM implementation of notification permissions I ended up having to allow notifications on the home screen as well as the watch. Whilst this would normally only be a nuisance from a privacy standpoint, I found that it was causing additional disruption in my workflow. When I would look at my phone and see the first line of a message, which I was not used to seeing, I would then subconsciously either unlock the phone, or if it seemed relatively benign read it on my watch. However, after reading on my watch I found I ended up opening it on the phone anyway to either reply or read it in full. Since switching to AOSP and disabling lock screen details, while keeping the watch on, I started only looking at my watch and then answering on the phone when necessary. This subtle difference in going from phone-watch-phone to watch-phone was a significant shift in how I started processing my messages. When I was reading first on my phone, I was trying to determine with too much effort if the message was worth my time. When I got it on the watch first, it became easier to optimize my workflows.
Over the course of hundreds of emails this became a significant interruption.
Even the most subtle of notifications can be devastating to a proper flow when presented in larger numbers.
Yes, certainly a hard problem. I'm just trying to understand what happens today. Does the link break or (better) just stop getting updated?
Perhaps all critical automated systems should have some level of Chaos Monkey testing built into them, though it might be best if it was good enough to not fail even if that test was failed.
>I cringe every time someone says "it will never happen" or "it is too hard to exploit".

I think you misunderstand me. I'm not saying "it's too hard to exploit"; I'm saying "this helps me keep a low-profile and makes me a less appealing target". It's primarily a social-engineering hack in the sense that for all but the most targeted attacks, attackers chose easy targets.

By analogy, I'm suggesting you not walk alone in a shady alley at night.

>But will you still detect the problems on your security make-up if you mostly rely on the fact that the vulnerability is not seen?

This is a valid and interesting question, imho. I would reply with the following questions, in trying to determine whether the cost of obfuscation outweighs it's benefits:

1. do you really have the means to continuously audit your attack surface?

2. what is to prevent you from rolling back your obfuscation mechanisms for a periodic audit?

3. can you configure things such that your obfuscation layer only points to external traffic (thus allowing for continuous auditing via some private port)?

4. more to your point: you seem to be implying that you'll never have a configuration error on your system. Isn't it true that obfuscation can potentially guard against the occasional glitch?

There is a definite trade-off involved in obfuscation, but unless you're one of those (admirable!) people who use the best cryptography to privately discuss the best cryptography, I think the judicious use of "camouflage" generally improves security.
Silicon Valley's housing crisis, in one sentence
Did HomeJoy not have a review system? I honestly don't know. But are you confident this will be enough to differentiate yourself from competitors?
I readily admit I haven't even read the content in this case. I am just attacking the source: most of the times I have read their content on a subject that I am familiar with, it has been grossly misleading.

They definitely could be correct on this topic. I'm not familiar enough with it to say. However, I want to strongly encourage everybody to verify with other sources instead of lending this one even the credibility you'd give Wikipedia.
I did not imply that this was every case, or most cases. Parent said "worst case" - you have to be mindful of the cost you are imposing.
Well in Chicago some of the colleges are pumping out Java Devs...

I guess if you are comparing a 4 year college Java dev to a 6 week bootcamp Ruby dev you have something, but that seems weird...
http://www.theguardian.com/world/2015/jun/11/continual-polic...
I think that comparison between text and code is wrong! Totally! But maybe it depends how you experience code, it makes sense that it affects your preference to syntax highlighting. And I do not like how he took personal preference and tried to generalize it. If something works for you, doesn't mean it will work for everybody, nor that it can be scientifically true. I know what OP wanted to say, but I think we should stop with those deep minded subconscious thinkings that affect our code.

I like syntax highlighting it, it helps me. Not some over the roof-rainbow colors, I always like minimal and dark color schemes, but I think it would definitely feel weird to code without syntax highlighting. Although I would get used to it. But if it ain't broken don't fix it.
When I use a command line editor, I tend to launch a new editor for each file, edit, save, and quit. For GUI editors, I tend to just leave them running on some desktop and add files to them, so I rarely start them and wait; instead I just open a new file or a new window and continue.
I was unclear about that part. The designer will edit the HTML also, which is outside of JS.

We are not using React.
Then you're not a marketplace for independent cleaners.
Depends on what your generator does. If it just does simple calculations, just generate a second instance of it.

Otherwise there are constructions that provide a virtual copy of an iterator and cache the values they still need for the second loop.

Or just don't use an iterator if it doesn't fit the model you need, or turn it into an array before.

(Part of) the idea behind generators is that you don't store all results, because they could be a long or possibly even infinite sequence. E.g. in Python the basic iterator is range(X), which returns the numbers from 0 to X-1. If X=100000, it is a bad idea to generate a giant list of all those numbers, just because you want to know how often you ran through a loop.
Ya I love this as a counterpoint to much scaling.

Stackoverflow has pretty good uptime and pretty good performance, can't fault the end result.
I'm the guy that runs CoderPad, and I agree with your assessment. We believe our entry level pricing to be actually rather cheap, and our customers generally agree.
Are you using Ghostery, uBlock, or something similar? One of those may be blocking sideloading of content.
> What does it bring to the table that I can't code myself?

The ability to create reasonably good-looking cross-platform desktop applications using Node.js. Obviously Electron is not much use to you if you're already experienced in the native development kit of your platform, but if your main expertise is Node.js (which is the case for an increasing number of developers), Electron is quite handy.
Definitely iconoclastic, but Linus is also insanely good at what he does, so I wouldn't be so quick to dismiss that position, there might be something there.
As I understand it, encrypted GPS (L2) does depend on key material being periodically loaded from a fill device for proper operation.

The keys are rotated periodically, so if somebody stole a decoder, it would only work until the key in memory expires. (Military GPS receivers also have a "zeroize" button to destroy the keys in case of imminent capture.)
Have you considered pausing the GC for those blocks? Or am I misunderstanding your use case?
Oh god, seriously. I can't even stand to see my family or best friends that frequently and for that long, let alone a mob of coworkers (and I love my coworkers). I can see the value of doing this occasionally. But I couldn't spend a significant amount of time in the mob.
> As a free market proponent, I assume you support including the externalities of pollution from fossil fuels into their costs?

How do you even calculate that?

For you to calculate externalities, you'd need to be able to assign costs. What's the cost of greenhouse gases in the atmosphere? You can't calculate something like that.

So let me answer with a simple NO. We don't need anything like that. Cleaner technologies are overtaking and will replace fossil fuels. Our energy generation technology has never been stagnant and it won't be now. We'll move on to the next thing soon enough.
Your opinion on this is couple of standard deviations away from popular one. Is there a specific example where a program written in golang lacked compared to other statically typed languages?
Smiled at a few things, but the whole 'feed' thing is a major turn-off. It's like eating cake with a straw. I'll stick to reddit and xkcd when I need a laugh.
Taking a guideline for prose and misapplying it to code does not result in a meaningful insight. Just look at non-prose typeset works such dictionaries, we often see a selection of different font styles there to help the reader scan non-linearly. Look also at newspapers, again we see different font styles, sizes and weights to help the user navigate a page. Look at the references section of an academic paper - you'll find bold italic and underline all used on the same line. Color is very expensive to use in printing prose and so is generally not used, but in handwritten medieval documents color was often used:

https://en.m.wikipedia.org/wiki/Rubric

Also this claim isn't even correct - code which varies in color is not changing typeface! Really it's no different from using bold or italic in traditional prose, which nobody would complain about.
Ask HN: Distributed coworking anytime soon?
As someone raised in a more rural area I wonder if coworking could also be done online.

What are the parts that make coworking interesting? The audio-visual atmosphere? The more effective use of space and resources? Socializing? Community? Events? The socializing aspect of coworking would definitely be the emphasis for me.
Maybe "dragnet" wasn't the best term to use. I'm not talking about the NSA, but rather about automated brute-force attempts (think: random attempted ssh connections from the internet).

With regards to that, not stopping automated attacks in general is fully-independent of being a less appealing target for such attacks. The latter -- even on it's own -- improves security.
I think it depends on your skills. If you need maximum flexibility on every level (from multi screen setup to bit operations) then definitively vvvv since it's the most general.
MS Office 2016 Working Serial Key for Activation
Real naive question time, sorry ahead of time - are the police as corrupt as they're portrayed to be in western media? Bribes requested constantly, that sort of thing?
Why is that? What would you recommend to those of us who use TAILS frequently?
What happens if a function is renamed?
Just a hash or a single salted hash iteration has been on the bad practice list for a very long time. Hashes are designed to be fast, key derivation functions are intended to be slow.

There are a number of KDFs that build on top of the SHA family, from PBKDF2-HMAC-SHA1 to sha512crypt, that are all fine in principle but are often used with iteration counts that are off by 1 or 2 orders of magnitude.

5000 iterations sounds like a lot. It is not.
> the affected cars might safely and carefully pull over/become gridlock.

As a best case scenario I'd still file that under "wrecking havoc"
The go creators use the Acme text editor which itself doesn't have syntax highlighting.
Most likely the military because they need to test something... A GPS jammer perhaps?
> I never claimed there was an agreed on definition. But I think this is closer to one.

If there's ever a "definition", it would be something like - pain is what I feel when this neuron gets activated. Not really a definition though.

> Yes, obviously. The neural net would register your actions as an extremely negative experience, and do everything in it's power to get you to stop. How is that different than torturing a person?

You could also create an analog computer that uses the position of pieces of sand instead of a memory. Does positioning the sand in a specific way cause pain? In fact, there are pretty much infinitely many ways you could encode the memory in sand positions (or atom or molecule positions). So are there infinitely many feelings of pain and joy around us?
Well it's not too late to go to a larger place :). I've found it isn't that different, especially when they are a few years before IPO. AirBNB has a really small engineering team for their size too and are very web heavy.

If I was going to do a small startup again, I would found a company. Going from 40 employees / series A -> $1 billon unicorn, I realized that I would of made more at a big co even if I was able to sell all of my vested shares.

This is a pretty good overview: http://danluu.com/startup-tradeoffs/

If you want to chat just send me an email on my profile, I'm in SF too.
> One of the basic rules of thumb in typography is that, when writing a piece of text, you should choose one typeface and stick to it.

Right, because prose text never uses more than one type size, treatment, or formatting to make the content easier to read.
It's also fine if you want to live in it for a few decades.
Thanks for the link! I'm low on the totem pole with these sort of decisions, but I'll be sure to keep this bookmarked for any future meeting or opportunity to pivot away from Cisco :)
I find it amusing to see so many people questioning why Tesla didn't release a cheap Tesla sooner. The answer is: They don't have the batteries to do that. That's why they are building the GigaFactory.

People don't get that, on a large industrial scale, you actually have to think about supply. They think you just spend money and supply shows up because they are used to thinking on a household scale where supply is generally infinite for anything they could possibly consume.

I think one pervasive economic fallacy is that any amount of money can fix anything. We just need to find someone to write a big enough check, either the government or wall street and all those batteries will materialize instantly out of some technology horn of plenty. This has driven the focus on "stimulus" and "aggregate demand" in various forms of economic dialogue. We could use more supply side thinking about very large problems that the economy faces, especially in the public sector. Health Care, for example, is one of those things where, if you're not thinking about supply, spending more money just makes everything more expensive.
caution.
1. a tesla accessory site.
2. the report is full of projections and hard to understand what is wishful and what is not.
3. GM: $145/kw Oct 2015 - Tesla $100/kw in 2020, how is Tesla killing it?
I'm waiting for Ogre3D 2.0 to be released.

To be honest, I'm more and more tempted to make my own "engine" and implement just the things I need, instead of using an engine that will often have too many features I don't need.

All I really need is a camera, vertex geometry tools, and a flexible and well designed shader system (since shaders are now essentials for 3D graphics. Most of what an engine do, or should really do, is shader management).

I don't need:

* animation

* a scene manager

* sound

* inputs

* font

* texture

* physics

I'd really like an engine that only do graphics and do it well. That is what makes Ogre3D good at what it does. All I'd hope for is a data-oriented engine, instead of object oriented.
I think interfaces are a better example, personally.
agreed. depending on the area. take Toronto for example, detached home prices are growing by 15%+ YoY.. soon young couples looking for a place of their own will have no choice but to look towards a condo.
Yes, as I've stated elsewhere, obfuscation does little against targeted attacks.

It's really about being an unappealing target because some degree manual work is involved.

To be clear: these are not very strong security benefits, but I question the notion that they're marginal.
My specific use case was working with 'infinite lists', so the first options is ruled out.

The second option could be a solution, but the specific case was reusing a variable `const nums = iu.iterate(x => x+1, 1)`, and quite extensively. (It's just a helper function to make a list of all natural numbers)

It would be so much nicer if I could just reuse this variable throughout my code
This presumes the election process is fair. Gerrymandering, fraud, bribery, voter suppression, it's a wonder we even call the US a democracy anymore.
I like this but I think a crane rather than track and gantry makes more sense, eh?
site seems to be down? I'm guessing it's this project: https://hackaday.io/project/2552-farmbot-open-source-cnc-far...
Well, a video /is/ a series of pictures...
Really nice concept. Especially with greenhouses, you can build large systems of it in them.

But, and don't Vote me down, considering current events, how long until we see a "Weedbot"?
How would you copy it then? I have tried the npm deep-copy library, but that didn't work (Symbol.Iterator isn't enumerable for example)

edit: I just thought, I could make a function, bind that to a variable and regen the generator again and again
That is exactly what we are doing. We spent roughly 4 weeks of pure research to get the scroll UX to 100% perfect (Turns out making a fixed positioned background element scroll the main scroller and be clickable is hard. Which is also why many implementations of flying carpet suck).

The goal is absolutely to make this not annoying at all.
FTC’s chief technologist gets her mobile phone number hijacked by ID thief
Advancement also fueled by environmental awareness?
It reminds me http://codecrap.com/

Also - is it like this app is more like a reddit channel? (Or is there some more added value?)
This is what happened during the Great Horse Manure Crisis of 1864[0]. Cities like New York and London were drowning in manure from all the horse-drawn carriages, which caused major health issues. No one could find a solution until Henry Ford came up with a process to build affordable cars and made horse-drawn carriages obsolete.

[0] http://www.historic-uk.com/HistoryUK/HistoryofBritain/Great-...
Wix launches automated web design service built on artificial intelligence
This sounds like a recipe for basically asking the cleaners to underreport their hours to "go the extra mile" in exchange for high quality scores. How do you avoid this?
The cost is how much people would pay to prevent you for emitting it into their air.
Give us driverless cars and we may as well go back to the family room radio for nightly listening.
As a JavaScript developer, I use and don't dislike Electron apps (currently running Atom!) but one thing I do have to say is that they use a lot more battery power and CPU. As much as I like Feross' work, I tried using WebTorrent Desktop[1] but after some hours of running it my Macbook's fans turned on. To me, a torrent client should always sit quietly in the background taking up as little resources as possible.

[1] https://webtorrent.io/desktop

I can imagine it feels worse in older hardware. For an app meant to be used only in one OS, it makes more sense to just go native.