Ask HN: React or JQUERY. Which one should I learn in 2019? - <AUTHOR> <comment><USER2> Well this isn't necessarily an this or this situation they are two very different libraries fulfilling two very different purposes.

That being said not very many greenfield js projects in the last 5 years have brought in jQuery as a dependency and that's because (as others have pointed out) it's dated. Everything you can do with jQuery vanilla JS now does.

React is always a safe bet to learn, an amazing framework that has taken over professional front end development (for very good reasons). Some people will try to push you to Vue.js because thats the new thing (and it also is a very easy library to get started with) but if you're looking for having a new skill React can't be beat. (It still has more than 5x the amount of downloads per month than Vue.js)

However before you get into any framework make sure you know modern javascript.

</comment><comment><USER3> React is a view library. It keeps the page to date with your data, much like Vue or Angular.

jQuery is a DOM manipulation library, so in a sense it is lower level than React. It abstracts the DOM implementations across browsers to provide a unified interface. It lets you do things like animations, and find element dimensions in a cross-browser way.

Today, developers are choosing React because it more closely aligns with the needs of modern webapps. Most browsers have become more standards-compliant so jQuery is not such a necessity anymore. React is a fast and readable library to keep your page up to date with your data.

</comment><comment><USER4> Both. Hard to understand react without some knowledge of jQuery. Also make sure you have a really good understanding of vanilla javascript. There is no free lunch (Unfortunately)

</comment><comment><USER5> None. Read MDN (like the QuerySelector page).

[https://developer.mozilla.org/en- US/docs/Web/API/Document/qu...](https://developer.mozilla.org/en- US/docs/Web/API/Document/querySelectorAll)

</comment><comment><USER6> Well, 2019 is still half a year away... but in any case learn both, but favor React and plain JS. i.e. only learn enough jQuery to get by - you can do most everything without it with modern JS; I only come across jQuery in legacy code.

</comment><comment><USER7> Javascript.

</comment><comment><USER8> Wait for Web Assembly.

</comment><comment><USER9> React is so 2018. Learn Vue.js</comment>


The Hacker Who Cracked the Code in Iron Man and The Social Network - <AUTHOR> http://www.wired.com/underwire/2014/01/movie-fake-code/ <comment><USER2> Well if nothing else this suggests there is a lifestyle level business in the Entertainment industry doing "code" inserts. The article lays out all of the things that are challenging (copyright issues, continuity issues, and cost) so building a small consulting firm around providing "code" for these situations cost effectively and reliably solves a need.

The go to market strategy is to get writers in the screenwriters guild aware of your offering, and let the lswyers know you provide guarantees, both that your "set" code will not conflict with anyone else's copyright, but also that copyright can be asserted on it so that the film has greater protection out there. Which gets the lawyers insisting the writers use your stuff.

You'll need a good design asthetic and some markov-chain like software which can generate plausible looking code on demand.

<comment><USER3> Did you see the article by the guy who did the effects for Tron: Legacy? Brilliant stuff.

[http://jtnimoy.net/workviewer.php?q=178](http://jtnimoy.net/workviewer.php?q=178)

Not a markov chain, he just recorded himself at the shell. It made me grin when I saw that bit in the movie and the commands actually made sense (the rest of the film... not so much)

<comment><USER4> Wow, that is obnoxious to read the whole thing in that font.

</comment></comment></comment><comment><USER5> My biggest surprise is that nobody did something like this sooner. Especially how distracting it is when someone in a movie is controlling a weapons system or saving the world with code written in ActionScript.

Unless ActionScript somehow becomes the dominant programming language of the future, in which case the future looks darker than I thought.

<comment><USER6> I know it is a little off-topic. But what is so bad about ActionScript?

<comment><USER5> Nothing in particular, it is very similar to other languages like Java, I just wouldn't recommend it for saving the world. Unless the world is being attacked by Flash game loving aliens.

<comment><USER7> At the point where I'm fighting aliens in a metal suit with a super compact free energy source strapped to my chest, I think the runtime performance characteristics of the software involved is the least of my concerns.

</comment></comment></comment></comment><comment><USER3> Be a movie hacker: [http://hackertyper.net/](http://hackertyper.net/)

the code it's using - [http://lxr.free- electrons.com/source/kernel/groups.c](http://lxr.free- electrons.com/source/kernel/groups.c) \- is GPL so hollywood may choke on the copyright issue. Press alt x 3, caps lock x 3 or esc for special stuff

</comment><comment><USER8> I don't get it: If you're some bored (and/or clueless) computer consultant for a movie, isn't it _much_ easier to randomly google "C++ code" or grab from github, or, even better, grab the source code from the Linux kernel than pasting from an obscure Intel Architecture Manual?

Do you think this manual was just sitting on the guy's desk when his manager came with the request "Create an authentic looking code snippet, you've got 5 minutes"? Who are these people who create these "code" snippets anyway? If anyone with knowledge enlightens me I'd be much obliged.

<comment><USER9> Maybe it was decided by a non-technical person. "Code? I have no idea, grab an Intel manual!" This sounds plausible from someone who would have never heard of github.

</comment></comment><comment><USER10> "The 'quality' of the code really comes down to deadlines".

</comment><comment><USER11> Fairly sure I remember the Archer guys pointing out some of the code they wanted to put up on the show needed quite a bit of checking to make sure there's no IP fowl ups. Including the output from the program, it can still need correct licencing.

</comment><comment><USER12> The Social Network paid particular attention to this, to the point that they tracked down[0] the actual slides[1] Zuckerberg would have seen in his Harvard OS class for the scene in the classroom.

[0] [http://matt-welsh.blogspot.com/2010/10/in-defense-of-mark- zu...](http://matt-welsh.blogspot.com/2010/10/in-defense-of-mark- zuckerberg.html) [1] [http://www.eecs.harvard.edu/~mdw/course/cs161/notes/vm.pdf](http://www.eecs.harvard.edu/~mdw/course/cs161/notes/vm.pdf)

</comment><comment><USER13> Nothing new, we had similar articles and discussion on HN:

[https://www.google.com/#q=site:news.ycombinator.com+movie+co...](https://www.google.com/#q=site:news.ycombinator.com+movie+code)

Movie director David Fincher uses computer monitors with a green/blue Screen, the computer graphic is added in post production. Check out the behind the scene footage of "Social Network" (2 disc DVD ed)!

</comment><comment><USER14> Am I the only one thinking " Who cares "?

</comment><comment><USER15> Hmm, ctrl+clicking the links in the article does nothing.

<comment><USER16> Check your popup blocker. I was surprised by that, too.

</comment></comment><comment><USER17> So movies are superficial?!</comment>


Google Ramps Up Chip Design - <AUTHOR> http://www.eetimes.com/document.asp?doc_id=1320981&cid=SM_ELE_EET_Edit <comment><USER2> One does not simply walk into Mordor. As mentioned in the article, at the spec level it makes perfect sense. Examples include hot-swap processor and memory boards. But to actually go about designing large processor chips - that's not easy. It needs DNA, one simply can't put together such a team by ones and twos. Apple had to go buy PA Semi, a start-up that had serious expertise in chip design covering two processor families.

That apart, does anyone know how much capex and opex benefit a company like Google or Facebook will gain by designing their own chips, as opposed to using commodity silicon?</comment>


Caching Tutorial for Web Authors and Webmasters - <AUTHOR> http://www.mnot.net/cache_docs/ <comment><USER2> Even though it shows somewhat advanced technique of using the "content" CSS property with element attributes, flashing titles when hovering anchors in headings is just _extremely_ annoying.

I tend to move my mouse over the text when reading and this is making all paragraphs jump whenever I do that.</comment>


Numbrosia - Merit Based News - <AUTHOR> http://www.techcrunch.com/2008/03/16/numbrosia-merit-based-news/ <comment><USER2> Does anyone else find it funny that this is an HN link about a TC link about a HN link?

</comment><comment><AUTHOR> Way to go amichail! I did _not_ see that coming.

It's interesting as an example of Arrington pulling a story from a news.yc post. The original post: <http://news.ycombinator.com/item?id=138243>

<comment><USER3> Do not half the posts on techcrunch have something to do with Ycombinator in some way? :)

<comment><AUTHOR> Yeah, it seems like they do these days. I guess my assumption is that amichail's site got picked up solely off the news.yc thread whereas most YC startups get covered after being in contact with techcrunch directly.

</comment></comment></comment><comment><USER4> Persistance pays off! Good luck.

</comment><comment><USER5> Wow! congrats amichail. That was a surprise indeed.</comment>


Babson Burnbook gets 1200 visits in two days and then gets shut down by school - <AUTHOR> http://www.babsonfreep.com/2011/11/burnbook-me-smolders/

<comment><USER2> Off topic but perhaps someone could tell Babson Freep their WordPress has been hacked and displays spam content and links when visited by Google. Check Google's cache of the page linked to in this article for example.

Apologies for putting this as a reply on HN but I emailed their contact address twice and got bounced both times.

<comment><AUTHOR> looks like they fixed it

<comment><USER2> Nope.

Set your browser's user agent to "Google" to see. This is a common exploit to lift scam sites in SERPs.

Screen shot:

[http://autoreverse.s3.amazonaws.com/2011110_Babson_Freep_hac...](http://autoreverse.s3.amazonaws.com/2011110_Babson_Freep_hacked.jpg)

Google cache:

[http://webcache.googleusercontent.com/search?q=cache:JIadb7r...](http://webcache.googleusercontent.com/search?q=cache:JIadb7rPPiEJ:www.babsonfreep.com/2011/11/burnbook- me-smolders/)

</comment></comment></comment><comment><USER3> though I myself hail from babson, sad to see the top entrepreneurial school discouraging entrepreneurial endeavors.</comment>


How we use MongoDB in the cloud - <AUTHOR> http://teamgeist.io/blog/how-we-use-mongodb-in-the-cloud.html

<comment><USER2> tl;dr how to get started with MongoSoup (a German MongoDB-aaS provider) and Heroku</comment>


Don't be afraid of the s-word - <AUTHOR> http://the99percent.com/tips/6519/dont-be-afraid-of-the-s-word

<comment><USER2> Very useful article. One thing I struggle with as a consultant is gauging a client's price sensitivity. Unfortunately, the article doesn't cover this point in great detail.

I also have trouble mentioning my team's hourly rate without scaring my clients. Our rate is higher than a good number of my clients expect. This is especially problematic with smaller clients. I have some leeway to offer discounts, but it's hard to do without first gauging client expectations.

Does anyone have any advice on how to talk about a project's potential price, and how to get a better idea of the client's budget?

</comment><comment><USER3> I thought it would be about Shatner and Shit My Dad Says:

[http://www.huffingtonpost.com/2010/08/09/shit-my-dad-says- bo...](http://www.huffingtonpost.com/2010/08/09/shit-my-dad-says-boycott- _n_675685.html)</comment>


Mental Models - <AUTHOR> http://www.useit.com/alertbox/mental-models.html

<comment><USER2> I think it needs to go further. I don't think users tend to form mental models, at all. To them, as I argued in [http://d-flat.dylanlacey.com/2010/the-parable-of-the- magic-b...](http://d-flat.dylanlacey.com/2010/the-parable-of-the-magic-box), computers are a magic box, not deterministic in any way.

To assume that File->Print prints in all applications, based on it working for one, is forming a mental model. Time and time again, I've seen this NOT be the case.

I think you need to form a decent balance between not surprising the user, and having an interface that's _just_ different enough to make them form new mental models.

</comment><comment><AUTHOR> I have _so_ got to deal with this with OurDoings. People (early adopters especially) have an ingrained model of how photo sharing works, because they're all albums plus something tacked on to the album model to try to make it better. A site that doesn't ask you to organize photos into albums is easier, but messes with that mental model.

Does anybody have sucess stories of helping users overcome mental model inertia?

</comment><comment><USER3> "Why not just type, say, www.bing.com into the URL field?"

Because four keystrokes and a click are often quicker than twelve keystrokes.</comment>


Namecheap.com emergency maintenance - <AUTHOR> http://status.namecheap.com/archives/27188 <comment><USER2> I've been planning to diversify my domain registrars recently, and have seen plenty of discussions on HN comparing the alternatives. While I'm looking at possibly splitting registrations across other registrars, I'm more interested in alternative NS providers.

Namecheap's API isn't exactly welcoming (contact support to enable, XML-only with no official libraries). Additionally, their web interface is terribly slow (accessing from UK).

Does anyone _not_ use their registrar's DNS services for small deployments?

Especially looking at how other people manage lots of small project sites, none of which are big enough to necessitate a dedicated NS and the associated management overhead.

<comment><AUTHOR> I used AWS Route53 at a previous employer where the domains were stuck at a different registrar, and thought it worked well.

FWIW, though, we've been using Namecheap on side projects for years, and had generally positive experiences. (In particular, their chat support has always been responsive and empowered to help without bouncing you around the organization -- which I wouldn't necessarily expect from a company with "cheap" in its name.) Assuming they're transparent about this issue, I won't be rushing to leave them.

</comment></comment><comment><USER3> Look like they have now been offline for over 13 hours.</comment>


HMRC forced to delete five million voice files - <AUTHOR> https://www.bbc.co.uk/news/business-48150575 <comment><USER2> HMRC = Her Majesty's Revenue and Customs, the UK tax office.</comment>


Intel Security Issue Update: Addressing Reboot Issues - <AUTHOR> https://newsroom.intel.com/news/intel-security-issue-update-addressing-reboot-issues/ <comment><AUTHOR> This is -- to say the least -- frustrating. First, the busted microcode is still available on the Intel Download Center[1], without any warning that they recommend that you not, in fact, install it. Second, the press release is still being evasive: they have not merely "received reports"; they in fact know that it's causing issues, and the press release is avoiding the much stronger language that Intel is giving privately (namely, don't install this).

The broken microcode is (at some level, anyway) forgivable; Intel's ongoing inability to communicate transparently and honestly with its customers during this crisis of its creation is much less so.

[1] [https://downloadcenter.intel.com/download/27431/Linux- Proces...](https://downloadcenter.intel.com/download/27431/Linux-Processor- Microcode-Data-File?product=52214)

<comment><USER2> Why should they bother communicating clearly with their customers? Who are those customers going to turn to? AMD? ARM?

Between Intel's numerous CPU bugs that they refused to refund customers for and ME, it's crystal clear what Intel thinks about their customers.

<comment><USER3> Customers actually could turn to AMD... their offerings are very competitive right now.

<comment><USER4> I'm thinking of building an AMD dev box. For enterprise consumers, if they're using 1U or blade servers, they could make the choice to switch to AMD for future nodes.

<comment><USER5> I have a Ryzen developer box at work and it is awesome, paired with 32GB of RAM and SSD's it absolutely screams.

My next home PC will be Ryzen 2 at some point this year.

<comment><USER6> Linux or Windows? I've been doing dev on a large React app recently and the thought of running __npm install __on Windows makes me anxious about the performance vs my Mac - wondering if Windows has gotten better of late with lots of tiny file I /O.

</comment></comment></comment></comment></comment></comment><comment><USER7> I think it's a bit ironic that the text, in a sense, blames Google for these problems by calling them the "Google Project Zero Exploits" as if Google was some sort of cyber crime syndicate using their evil powers to exploit intel.

<comment><USER8> Wow, that's a good point. "...the exploits uncovered by Google Project Zero" would be much, much more appropriate.

<comment><USER9> The "Intel CPU fundamental design defects uncovered by Google" is more like it.

<comment><USER10> "Intel CPU _deliberate_ design defects now uncovered by Google"

</comment></comment></comment></comment><comment><USER11> Uhm, what a mess. This, just when Linux vendors began pushing updated intel- microcode packages (Ubuntu just released intel-microcode 3.20180108.0). Should we put the update on hold until this issue is hopefully resolved, or should we still update as suggested in the last paragraph of this Intel press release, somehow believing that the random reboots don't apply to "end users"?

<comment><USER12> Lenovo has put out an advisory about what to do with the BIOS updates that contain the microcode:

[https://pcsupport.lenovo.com/de/en/product_security/PS500151](https://pcsupport.lenovo.com/de/en/product_security/PS500151)

 _Withdrawn CPU Microcode Updates: Intel provides to Lenovo the CPU microcode updates required to address Variant 2, which Lenovo then incorporates into BIOS /UEFI firmware. Intel recently notified Lenovo of quality issues in two of these microcode updates, and concerns about one more. These are marked in the product tables with "Earlier update X withdrawn by Intel" and a footnote reference to one of the following:

1 – (Kaby Lake U/Y, U23e, H/S/X) Symptom: Intermittent system hang during system sleep (S3) cycling. If you have already applied the firmware update and experience hangs during sleep/wake, please flash back to the previous BIOS/UEFI level, or disable sleep (S3) mode on your system; and then apply the improved update when it becomes available. If you have not already applied the update, please wait until the improved firmware level is available.

2 – (Broadwell E) Symptom: Intermittent blue screen during system restart. If you have already applied the update, Intel suggests continuing to use the firmware level until an improved one is available. If you have not applied the update, please wait until the improved firmware level is available.

3 – (Broadwell E, H, U/Y; Haswell standard, Core Extreme, ULT) Symptom: Intel has received reports of unexpected page faults, which they are currently investigating. Out of an abundance of caution, Intel requested Lenovo to stop distributing this firmware._

<comment><USER13> it gets worse, Lenovo shoved out that firmware update as a 'critical' update back in december, and now it's causing major issues [https://forums.lenovo.com/t5/ThinkPad-T400-T500-and- newer-T/...](https://forums.lenovo.com/t5/ThinkPad-T400-T500-and- newer-T/KB4056892-multiple-problems-on-T440s/td-p/3933019)

</comment></comment></comment><comment><USER9> Spin control. By "higher system reboots" they mean "the OS crashes after their CPU 'fix'".

</comment><comment><USER14> Sorry If i had this wrong, they knew of the issues in June, and they only fix it in Jan.

I can hardly call this rushed.

<comment><USER15> The fixes weren't widely run until this week.

<comment><USER16> presumably because Intel does not have access to the necessary hardware configurations to test the fixes on?

<comment><USER14> I couldn't accept this as an excuse when you have possibly the worst CPU bug in x86 history, or perhaps all CPU history, with ample of man power and resources, along with 6 months time frame.

Rush isn't a word I would use.

</comment></comment></comment></comment><comment><USER17> I think all the more jarring is the smiling face of the spokesperson next to this announcement. Atleast can't the announcement be not with a photo or have a serious looking photo of the spokesperson.

<comment><USER18> The photo seems to remind me of someone saying, "that's all you get _suckers_ " coupled with an evil grin.

</comment></comment><comment><USER19> "We have received reports from a few customers of higher system reboots after applying firmware updates."

What does higher mean here?

<comment><USER20> The original statement, as phrased by their engineers, probably was something like "Our latest firmware regularly crashes your system, triggering reboots" (plus a few paragraphs with a highly detailed description of why that happened that only the engineers who wrote the firmware would understand)

This is what they ended up with after a few reviews with legal ("we can't say 'our'; they'll eat us in court") and marketing ("We need a less emotionally loaded way to say 'crash'")

Legal aimed to maintain just enough meaning in the statement to be able to say "we warned customers as soon as we could"; marketing aimed to make it a positive message. I guess that's why 'higher' won over 'more'.

</comment></comment><comment><USER21> Happy face on profile of that post is a bit out of context with the customer's feelings...

</comment><comment><USER22> Intel's "security pledge" is hilarious, when ME/AMT continues to be used as a backdoor.

This just in:

[https://business.f-secure.com/intel-amt-security- issue](https://business.f-secure.com/intel-amt-security-issue)

</comment><comment><USER23> I think it's hard to see how this will affect Intel in the long term.

When Samsung phones were blowing up, I thought that was it, but somehow people kept preferring the phones.

<comment><USER23> Now, in retrospective, the Samsung battery issue affected only a small portion of users, whereas this will affect every single user in the form of decreased performance.

</comment></comment><comment><USER24> probably related news from Dell: "NOTE 1: 13G, select 12G, and select DSS server BIOS files have been pulled from [http://dell.com/support](http://dell.com/support). This note and article will be updated as soon as more information is available" [1]

the pulled out BIOS update files for 13th gen were released on 5th of Jan.

[1] [http://www.dell.com/support/article/us/en/04/sln308588/micro...](http://www.dell.com/support/article/us/en/04/sln308588/microprocessor- side-channel-vulnerabilities-cve-2017-5715-cve-2017-5753-cve-2017-5754-impact- on-dell-emc-products-dell-enterprise-servers-storage-and-networking-?lang=en)

</comment><comment><USER25> To be fair, it can well be that some sloppy OEM drivers take too many assumptions on reserved bits in registers (which the new microcode may be legitimately changing) or on undocumented timing side-effects related to some instructions (which the new microcode may affect, being that the root problem in the first place!).

These symptoms are also the classic ones you get when you install an OS on a new-generation, well-functioning CPU.

<comment><USER26> Don't speculate, it adds nothing but confusion.

<comment><USER25> My comment is no more speculative than those blaming the new microcode for causing reboots. The real bad quality, bad update process and unjustified binary nature of OEM firmware is too often overlooked.

</comment></comment></comment><comment><USER27> My broadwell (i5-2500k) windows desktop has started blue screening like crazy if I do large continous network transfers (i.e. saturating gigabit ethernet). I didn't have this problem before I rebooted for my most recent update.

I thought it might be memory, but an 8+ hour memory scan (windows internal one, not the normal linux one) didn't tickle any bad bits and its not erorring in any unique component, each time, it seems to be a different one (first I caught the blue screen, it was the network driver, that made sense, so I upgraded it, just in case), but then it started being ntfs and other things. wondering if its just limited to those arches, or others.

<comment><USER28> > My broadwell (i5-2500k)

That's Sandy Bridge, 3 generations older than Broadwell.

<comment><USER27> and apparently with the latest news, it perhaps wasn't all in my head

[https://newsroom.intel.com/news/firmware-updates-and- initial...](https://newsroom.intel.com/news/firmware-updates-and-initial- performance-data-for-data-center-systems/)

</comment></comment></comment><comment><USER29> Doesn't exactly reassure you, does it.

</comment><comment><USER30> Well this promises to be fun, especially for cloud providers (and those running instances on the cloud, who now potentially get to suffer through host instability)

<comment><USER31> Intel's adaptation of Netflix's Chaos Monkey [0]?

[0]: [https://en.wikipedia.org/wiki/Chaos_Monkey](https://en.wikipedia.org/wiki/Chaos_Monkey)

<comment><USER32> I was thinking the same thing as I read this. "Chaos engineering" has served some customers very well here.

From speaking in my circles, I get the impression that those of us without our own data centers to worry about are much better off than those who do.

</comment></comment></comment><comment><USER33> I heard from my colleague that he had boot issues with a server (new Centos7 kernel) and a RAID he set up today.

</comment><comment><USER34> "We rushed a patch out and it's causing problems we don't understand yet. We'll rush out an updated patch as soon as we can, so please don't hesitate to install that."

<comment><USER35> Please don't use quotation marks to make it look like you're quoting someone when you're not.

<comment><USER36> It's clear that monochromatic's "quotation" was ironic.

A possible convention for ironic quotes:

[https://english.stackexchange.com/a/3471/207671](https://english.stackexchange.com/a/3471/207671)

> _To avoid the potential for confusion between ironic quotes and direct > quotations, some style guides specify single quotation marks for [irony], > and double quotation marks for verbatim speech._

</comment></comment></comment><comment><USER37> I _just_ had a hard crash/reboot on a Dell running Windows 10 on an AMD processor, followed by a couple of auto updates. There was no indication of updates being available before the crash.

<comment><USER38> Out of curiosity, how do you suppose an Intel microcode update caused a blue screen on your system running an AMD processor?

<comment><USER39> These issues aren't limited to Intel, and the people developing the mitigations are probably sharing ideas with each other.</comment></comment></comment>


Ask HN: Has anyone built a reactjs state editor yet? - <AUTHOR>

I'm looking for a reactjs plugin/mixin I can use to modify the state of any component at run-time.<p>I've built something like this before for arbitrary JavaScript objects (https://github.com/Azeirah/Object.remote), and I will port it to React if it doesn't exist yet, just wondering if it's already out there. <comment><USER2> React dev tools? [https://chrome.google.com/webstore/detail/react-developer- to...](https://chrome.google.com/webstore/detail/react-developer- tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)

</comment><comment><USER3> ever looked at [https://github.com/gaearon/react-hot- loader](https://github.com/gaearon/react-hot-loader) ?

<comment><AUTHOR> That's close, but not it unfortunately. I'm looking specifically for a UI that allows me to modify the state of every and any component at run-time, I have no need to replace any code.

<comment><USER3> Hmm, I'm not sure if your approach is even possible. In React a component itself holds the state internally only (this is also why it is so cool also) and the render function outputs everything to the browser. But once it is rendered there is no way back into the component. It's one way in React. You want to change deep internally react components and the react hotloader mentioned is the closest you can get. But I hope you will find a solution. And BTW: The React Hotloader also preserves state... so you can code and state will change.</comment></comment></comment>


Millennials choosing 2-hour commutes vs. paying high rates to live in cities - <AUTHOR> https://www.businessinsider.com/millennials-reviving-exurbs-longer-commutes-cheaper-homes-2019-3 <comment><USER2> "Choosing" is a very loose term here. No one chooses that type of situation, but are rather forced into it.

</comment><comment><USER3> Umm...I'm a GenX'er and this was old news when I started working. The 'commute from where it's cheaper' thing has ever been thus.

Doesn't make it fun, though. :/</comment>


Quantum Algorithms via Linear Algebra - <AUTHOR> http://rjlipton.wordpress.com/2014/12/06/quantum-algorithms-via-linear-algebra-2/

<comment><USER2> _"... One thing important to us is that the book should look and feel like a linear algebra text. ..."_

good to read, for the linear algebra alone.

 _"... what has really been driving the surge are quantum algorithms, which by our expectant understanding of Nature promise to accomplish tasks beyond the feasibility of our abundant classical computers ...."_

anyone got an idea of what problems (aside from passwd cracking)?

<comment><USER3> There are three main types of problems on which quantum computers outperform classical computers

1\. Searching an unsorted list. (boring)

2\. Factorizing numbers - generally the hidden subgroup problem. This one is interesting because it breaks certain classical cryptographic schemes. (just shift to different crypto schemes)

3\. The one that is really interesting is the ability to simulate certain quantum systems efficiently. (it doesn't look from the contents that these guys are discussing these algorithms). The ability to simulate quantum systems efficiently has promising applications in biological systems, chemistry and condensed matter physics. These applications have the potential to create structural changes in human civilizations on the scale that the classical computer revolution had.

For example, drug design today proceeds by a lot of trial and error and experimentation. This is because of our inability to simulate cellular processes by using classical computers. Quantum computers might be able to make some of these simulations feasible, both in terms of time and economics. It is only currently a 'might' because on the one hand we have had continuous improvements in quantum simulation algorithms, we have also realized that certain problems cannot even be solved feasibly by even quantum computers. Future progress in the field of quantum algorithms will tell us which side of the fence we land on.

<comment><USER2> _"... The one that is really interesting is the ability to simulate certain quantum systems efficiently. ... applications have the potential to create structural changes in human civilizations on the scale that the classical computer revolution had. ..."_

@abdullahkhalids, thx for answering a simple Q. Excellent summary & can see why there's a lot of interest in this area.

</comment></comment></comment><comment><USER4> Some light reading for my next long flight.</comment>


Coldplay Wristbands Turn Audience Into Giant LED Display - <AUTHOR> http://mashable.com/2012/06/14/coldplay-xylobands/

<comment><USER2> Myself and my brother built a prototype of a very similar wristband last year, completely independent of these and without knowing about them (we built ours in the summer, we first saw Coldplay's in autumn). At first we were pretty dismayed and annoyed to see that somebody had patented the concept (we never looked into exactly _what_ the patent covers), though one of the guys we were working with has connections in the Coldplay management team and assured us its fine for us to continue.

But then we thought about it some more and realised that we didn't need to, that the coldplay wristbands have some flaws (for what we wanted to do with them) that we can better tackle in other ways. Our goals are very different from Coldplays anyway - they seem to be using their wristbands more to make the DVD look awesome than to please the crowd present (though theres obviously some of that too). Our goal was always interactivity and engaging the crowd in more direct ways.

So we cooked up a similar concept which is not only _more_ suited to interacting with the crowd, but also less expensive to produce. So win-win.

The wristbands are cool and maybe we'll still do something with that (depending on the patents of course - the Xylobands don't really do exactly what we want, so we'd probably want to build our own anyway) but we did the startup thing and pivoted and came up with something better (for our purposes).

 _The laptop would be connected by cable to a transmitter box and antenna. These are supplied by us on a free rental basis with a £500 refundable deposit._

Our own transmitter cost us about US$20 to build. Sure, it could only be controlled by USB-MIDI (while afaik theirs supports stuff like DMX), but meh, it wouldn't require a £500 deposit.

In any case, I'm now repositioning myself as more of a backseat tech consultant for this project rather than hands on engineer as I'm working on an unrelated startup and don't have time to stay involved in the day to day building of audio/visual gadgets, so over the next few weeks I hope to finish off a few more prototype devices and then leave the production up to someone who has a better idea what their doing.

</comment><comment><USER3> The most obvious improvement they could have made would be to vary the transmitter's power so that they could create a (very very approximate) circle of light around the transmitter point. Raise and lower the transmitter power, and you increase and decrease the size of this light circle. Great for pulsing, explosion style effects.

Different transmitters in different locations could trigger different colours.

Thinking further, they could have introduced multiple low power transmitters across the audience, or highly directional transmitters pointing at the audience from a central spot. You could then create colour clusters, rainbows, spinners, rather than just a uniform effect.

</comment><comment><USER4> Fun project:

\- add an IR LED to each band and make it transmit a unique 2 byte MAC address on the IR channel(s)

\- get a high speed, high res panoramic camera and some good computing gear

\- figure out from the sequence of frames where each MAC address is

\- control individual pixels

<comment><USER5> \- add an IR LED to each band and make it transmit a unique 2 byte MAC address on the IR channel(s)

I would think it would be easier to just put a serial number bar code on the back lining up to a MAC of sorts and scan it when the person arrives correlating the the serial number to their seat. That should give you all the location information you need, at least for the non-standing room only areas of the stadium.

</comment></comment><comment><USER6> I'd be more impressed if they were able to individually (or in small geographic groups) address the wristbands. Then you might be able to get some sort of interesting visualizations as opposed to pulsing.

But, it is a neat trick, and certainly looks cool from above.

</comment><comment><USER7> They need to incorporate location of the wristband with some sort of triangulation between transmitters. Then they can make it an actual display. I'm sure this will happen in the not too distant future and I'm excited to see it.

<comment><USER8> Using highly directional antennas on the transmitter should be able to accomplish similar results without increasing the cost of the wristbands.

<comment><USER9> What if these bands are paired to phone via bluetooth so that the base station can send commands to the phone (through the mobile network) which in turn relays it to the band - would it allow a more fine grained control with acceptable latency?

<comment><USER5> Latency would be huge with that setup. 900mhz radio has more than enough range and bandwidth to handle 50,000 - 60,000 devices updating several times a second. I've used LSR [0] modules in the past for prototyping and they have a gateway that would allow you to control the entire thing through ethernet so any computer could run the program and just spit out ethernet packets to send control information.

[0] <http://www.lsr.com/>

</comment></comment></comment></comment><comment><USER10> More info: <http://xylobands.com/glowbands-product_info.php>

> How do they work?

> Xylobands™ are operated using our proprietary software that can be > downloaded onto your laptop.

> The laptop would be connected by cable to a transmitter box and antenna. > These are supplied by us on a free rental basis with a £500 refundable > deposit.

</comment><comment><USER11> Anyone reminded of the scene in Snow Crash when YT calls in a Code, and everyone at Vitaliy's concert thinks it's a visual effect?

</comment><comment><USER12> I went to their website to try to find pricing but they require contact info. Anyone have any idea on how much these thing cost when you're purchasing in bulk?

<comment><USER13> Chris Martin is quoted here[1] as saying the bands are costing GBP 400,000 (USD $640,000) a _night_. $20 a band!

Looking at the teardown[2] there's a radio receiver chip, microprocessor, couple of discretes/inductors/popcorn, then the plastic case and band with hi- bright LEDs and a battery. I'm thinking most of the cost is in the LEDs and battery need to drive those LEDs for two hours.

[1] [http://blog.chron.com/celebritybuzz/2012/06/coldplay- spends-...](http://blog.chron.com/celebritybuzz/2012/06/coldplay- spends-640000-per-night-on-wristbands/)

[2] [http://hackaday.com/2012/02/19/ask-hackaday-did-you-catch- th...](http://hackaday.com/2012/02/19/ask-hackaday-did-you-catch-the-grammys/)

[3] Top _that_ , Bono! =)</comment></comment>


Getting Started with Python for Data Analysis - <AUTHOR> https://medium.com/towards-data-science/getting-started-with-python-for-data-analysis-64d6f6c256b2 <comment><USER2> Wow, what a great and simple guide</comment>


Sweden's government has a bizarre economic problem – collecting too much tax - <AUTHOR> http://www.businessinsider.de/swedish-government-collects-too-much-tax-2017-2?r=US&IR=T <comment><USER2> The problem is not that people pays to much taxes, but that they use the tax agency as a save account to earn a 0.5% rate. A lot better than my 0% at SEB.

<comment><USER3> Yeah, the title's misleading. It sounds as if the govt is wielding a heavy hand, but it's actually a money-making scheme citizens are using during a time of negative interest rates. The govt has to return the overpayment, with interest.</comment></comment>


Show HN: The Remote Clan – Community for Remote Work - <AUTHOR> https://remoteclan.com <comment><AUTHOR> Hey everyone!

We have been working on Remote Tools for over a couple of years, trying to speed the growth of remote working.

However, we still felt there was something missing. Current communities around remote work only focus on jobs in the form of job boards. They miss the basic human need - to interact.

We built The Remote Clan, a community for remote workers to build a strong career with the help of those who are pursuing the same goals.</comment>


Why I Do Not Use ORM  - <AUTHOR> http://database-programmer.blogspot.com/2008/06/why-i-do-not-use-orm.html

<comment><USER2> I think we covered this one the other day.

ORM rocks in some situations and in others, all you want to do is get your claws on SQL.</comment>


Panama Papers: Mossack Fonseca says leak came from hack - <AUTHOR> http://www.aljazeera.com/news/2016/04/panama-papers-mossack-fonseca-leak-hack-160406112826467.html <comment><AUTHOR> What do you guys think? Was it really a hack, or do they just want to smooth over internal difficulties?</comment>