skysight-inc/HackerNews huggingface dataset:
Ask HN: Avoid moving to LA/SF due to earthquake risk?
I'm considering moving back to LA after a one year hiatus. However, after the recent earthquakes in Mexico, I started researching the probability of a major earthquake striking the LA area and the predictions are not reassuring.

For Southern CA, here are the stats for the next 30 years:
Magnitude 6.7 - 97%
Magnitude 7.0 - 82%
Magnitude 7.5 - 37%
Magnitude 8.0 - 03%

For the SF region, here are the stats for the next 30 years:
Magnitude 6.7 - 93%
Magnitude 7.0 - 68%
Magnitude 7.5 - 15%
Magnitude 8.0 - 02%

For reference, the 1994 Northridge earthquake was magnitude 6.7. Also, the Fort Tejon earthquake in 1857 in SoCal was magnitude 7.9.

I work in the film industry, so LA is the ideal place for me to live, but I could probably find work in NYC. I'm leaning towards not returning to LA due to the earthquake risk, but I'm wondering if I'm being irrational. Any thoughts on how to weigh odds that involve life/death?

Source: https://pubs.usgs.gov/fs/2008/3027/fs2008-3027.pdf
Fair enough. I just get sad knowing what I'm missing. I've worked with a bunch of desktop GUI builder IDEs (Visual Basic, .Net WinForms, WPF/XAML, and Qt) and I've seen the immense power they have in terms of developer productivity and application performance. Something like XAML is especially interesting because it brings the styling and responsiveness of HTML/CSS to the GUI builder paradigm. I started off with them and then have slowly transitioned to working entirely with web technologies (PHP, Rails, Angular, React, you name it). Not without reluctance for sure! It's a Faustian bargain to me -- trading off overall inferior technology and developer experience for the sheer reach and ease of deployment of the web. It's nuts to me to design a visual thing like a UI by writing lines of code. The GUI builders of yore really nailed this by allowing you to design something visual using a visual modality (drag n drop, realtime layout designers, etc.). I try to explain this folks who've only ever developed for web and usually their eyes glaze over. They can't seem to (or have an incentive not to?) appreciate the impedance mismatches and the fundamental trades being made with web user interfaces.
77-year-old sentenced to 10 years for growing marijuana
I just get sad knowing what I'm missing. I've worked with a bunch of desktop GUI builder IDEs (Visual Basic, .Net WinForms, WPF/XAML, and Qt) and I've seen the immense power they have in terms of developer productivity and application performance. Something like XAML is especially interesting because it brings the styling and responsiveness of HTML/CSS to the GUI builder paradigm. I started off with them and then have slowly transitioned to working entirely with web technologies (PHP, Rails, Angular, React, you name it). Not without reluctance for sure! It's a Faustian bargain to me -- trading off overall inferior technology and developer experience for the sheer reach and ease of deployment of the web. It's nuts to me to design a visual thing like a UI by writing lines of code. The GUI builders of yore really nailed this by allowing you to design something visual using a visual modality (drag n drop, realtime layout designers, etc.). I try to explain this folks who've only ever developed for web and usually their eyes glaze over. They can't seem to (or have an incentive not to?) appreciate the impedance mismatches and the fundamental trades being made with web user interfaces.
Cloud Computing – The Refute
> the current screw-the-programmer interpretation of ‘undefined behaviour’

I don't believe that interpretation was ever followed by anyone. In C parlance, "undefined behavior" only means that the standard does not define any specific behavior for a particular case. In other words, that particular code construct isn't valid C, but the standard doesn't mandate it should be illegal because some C implementation somewhere may have a very good reason to fill in the blank.

Therefore, anyone writing code in standard C should simply not fumble around by writing code he does not know will actually do, and those who target a specific compiler implementation are required to know what the compiler actually does in that specific case (i.e., how they've defined the behavior left undefined by the standard) and proceed to know very well what they are doing.

In short, "undefined behavior" never meant "screw-the-programmer". At most, clueless programmers screw themselves due to ignorance.
Same, which is why I switched. But in order to force you to do it right it helps to rebind the original ctrl key to something else, in order to kill the old habit. I found that after about a week or so it came pretty naturally.
ES2018 ecmascript parser
Volunteer for a local charity that needs your help?

Contribute to the (standard, maybe) library you like the most?
Spend it like a normal 17 years old. You have decades for coding, but you can only be 17 once.
When the VB/MFC layout was replaced it was with WPF. WPF is declarative, flexible, handles high resolutions well etc.

It's what I imagine a reasonable HTML/CSS would look like.
i know it makes the whole 'tenure points' system harder, but couldn't 3 be done with a series of ad-hoc comment boards with scoring?
Well change may be coming. Their contract is up and likely to be fully changed over next year https://www.bizjournals.com/albuquerque/news/2017/05/16/cont...
Given the nature of your post, the incorrect usage of [sic] really stands out...

There aren't really any set-in-stone rules about language, the "accepted meaning" of something depends entirely on who you ask. Personally I am more of a descriptivist than a prescriptivist, as long as I can understand what the person means I'm fine, I might even encourage "incorrect" usages if they are funny or somehow apt.

On another note, I like that you recalled and found a seemingly unimportant comment of yours from over two years ago that related to changing word usage.
Your pointy-haired boss wants a list 5 levels deep where the second paragraph of item 2.4.1 needs to be at the third level of indentation, but the second paragraph of 3.1.6 needs to be indented only twice because it belongs to the 3.1 item?

FWIW Emacs solves this with text properties. You can attach a property list to any arbitrary character.

For better or worse, org mode has no such equivalent.
Change mariaDB root password on XAMP
300 percent growth to £129M is impressive growth and those stats are 9 months old, so if they have been able to continue to increase their revenue growth they maybe ending 2017 with £250MM+ which would be about an 8-10x multiple on their 2017 year end revenue which isn't that outrageous.

The challenge with startups is that you don't yet have a clear insight as to how their sales and marketing spend will evolve over time, so people are willing to invest in growth of revenue over those metrics.

What's more worrying is their gross margin percentage. Taking the revenue growth and sales and marketing expense and overall loss out of the equation, that margin percentage is going to make it extremely difficult to make a business model that works in the long term.

However, building a large revenue base helps to offset that, but we've also seen that play out negatively for companies in a similar position like Groupon.

I think with this valuation they will need considerable consecutive years of revenue growth to grow into that valuation meanwhile their losses are high and also increasing so really this funding round buys them the usual 12-18 months of runway.
Biology simulation with LTspice
Really? ... Please don't post shallow hyperbole noise like that.
We're moving our business to Portugal in the new year, Lisbon has a great tech scene.... there are other places for film other than LA, particularly without natural disasters. I'm sure others will provide more measurable experience in their comments to follow.
And you don't even need React for that.
> WPF in particular is a good example of an XML-based markup language specifically for UI, and it's light years ahead of HTML5 in terms of how easy it is to achieve common things, and how flexible things are overall.

This is why I had big hopes in XHTML and the XML components, but then we got HTML5 instead, yet another pile of hacks.
Show HN: Support style schemes on a React.js component
It's also a great way to keep people who would otherwise be rioting to solve the real issues complacent and divided. If you're super rich because of offshoring profits, why not let people fight amongst themselves about which group of immigrants is ruining America? When you start getting more heat from people actually mad about the true issues, why not spend a very small percentage to fuel the distracting dividing issues to get everyone off your back for a while again?
I do see a valid point to be made about historical racism and how the definitions of who is accepted into the acceptable category (what you call White) has changed over the years. What I don't understand is how White people are also not a race, but a social construct, which literally makes no sense.
Graphviz is fantastic. I'm pretty sure you can still read your .dot files into OmniGraffle (for when you need to add a lot of color and annotations).
I also think its power comes from being to be turned into a callable library useful in several other languages (python). Also I can't imagine using a service that hosts my private data in order to build a layout... but maybe that's just me.

Two other alternatives:
The best one for network-bounce / sequence diagrams.. great for when you need to explain all the bounces in your mulit-tiered web app
https://www.websequencediagrams.com/
and
http://sverweij.github.io/mscgen_js/
In [0], Baudrillard himself: "The Matrix is surely the kind of film about the matrix that the matrix would have been able to produce."

[0] http://www2.ubishops.ca/baudrillardstudies/vol1_2/genosko.ht...
Once you've created a seam (possibly a unix socket, many of my designs rely on those) exposing the same socket over TCP becomes relatively trivial and now you effectively have network transparency anyway (see also spiped).

But, yeah, so long as the client is a separate process, getting it transited over the network can be done separately.
I would add that its not just that you can interact with different objects in the markup, but that there's a huge collection of operations built into Org-mode on emacs that does interact with them this way. You don't need to write code to interact with the org markdown; you just use the already written org features.

For example, the ability to search a file or set of files and collect responsive org heading items in a separate "Agenda" buffer is hugely empowering for a lot of different uses. Org-mode on emacs has both very broad and very deep functionality.

It's not necessarily easy to learn, but you can ignore the more complicated stuff if you want, just use the very simple basics and remain ignorant of the much deeper functionality that's there for people who want to make use of it. Or, better, start simple and learn more complex bits and pieces as you go; there's an active and friendly org community that helps with that.
S Photo Editor
Exactly. This isn't "fuck the programmer if he fucks up," it's "let's try to do really good optimizations."

It's really nice to be able to use abstractions that cost nothing because the compiler is smart. In this particular case, you might have a function pointer that exists for future expansion, but which currently only ever holds one value. In a case like that, it's really nice if the compiler can remove the indirection (and potentially go further and do clever things like inline the callee or do cross-call optimizations).

The other piece of this puzzle is straightforward data flow analysis. The compiler knows that there are only two possible values for this function pointer: NULL and EraseAll. It also knows that it can't be NULL at the call site. Thus, it must be EraseAll.

For every person complaining that the compiler is screwing them over with stuff like this, there's another person who would complain that the compiler is too stupid to figure out obvious optimizations.

I'm very much in favor of making things safer, but I don't think avoiding optimizations like this is the answer. C just does not accommodate safety well. For this particular scenario, the language should encode the nullability of Do as part of the type. If it's non-nullable, then it should require explicit initialization. If it's nullable, then it should require an explicit check before making the call. The trouble with C isn't clever optimizers, it's that basic things like nullability are context-dependent rather than being spelled out.
I think it is a bad thing if a useful service could not exist - and people who voluntarily chose to be employed by that service cannot have access to those jobs.

I think it's better to be employed and increasing your value/skill set in the job market than living off welfare. You can't move up the ladder if you don't develop skills.
You're right, I skimmed related posts from "T.k." and they're full of the same muddled thinking. A "List"'s fundamental operation is random access? A "List" is either a "Collection" or an "Array"? Wut?

It seems like most "code camp" teachers know just enough to give a passable performance. There's no depth of knowledge but given the brevity of these courses, maybe it's a moot point. Still, this guy should focus less on his Brand and more on getting up to snuff.
In order to "hold onto the assets" the FED actually has to buy US Treasuries when its current treasury holdings mature. The way the FED sells assets is to simply allow the treasuries to mature without buying any to replace it. The implication is that by choosing to buy or not buy treasuries, the FED can help control the US treasury interest rates which either help boost or slow down the economy as needed. The issue with holding and never selling is perpetually low interest rates which encourages people to borrow more since it is cheaper to do so (in theory stimulating growth, but in reality inflating asset prices when it goes on too long). If the FED doesn't unload its treasury holdings, interest rates stay low and capital will continue to take bigger risks to find higher yield, plus an unsustainable asset price inflation as it remains cheap to borrow money to buy assets like houses which then go up in value which creates even more demand through more cheap credit.

I'm already over simplifying, but here is a less abstract illustration: Imagine you lose your job and you need some money to get back on your feet. You borrow against a line of credit to cover living expenses. You find another job but it doesn't pay enough to cover your standard of living, so you keep the line of credit open and just make the minimum payments. You are the US economy and the line of credit is the FED right now. If the line of credit is not paid off, if you lose your job again, there will be nothing to borrow against or even make the minimum payments. The smart thing to do is pay off the credit card balance so you can use it again if you're in trouble. The problem is you can't do that unless you cut back on spending... and this is why the FED always points out that the control of the situation is not with the FED but with congress, they need to cut spending... <insert laugh track>

And I didn't even address your exact point. This is just the "non-toxic treasuries". The toxic stuff is non performing home loans. Imagine trying to sell those back to someone! Are you willing to buy them?

More info here: https://www.newyorkfed.org/markets/mbs_faq.html
According to M-W, "overly and timidly careful" wasn't its original meaning either; it simply meant "fearful". Both "scrupulous" (which is not precisely the same as "painstakingly careful") and "overly careful" are adopted meanings, not the originals, so why lament one and not the other?
Love Graphviz, been using it for some time now. It's kind of painful rendering large graphs. Does anyone know the particular reason why `dot` and friends only seem to take advantage of one CPU core when drawing graphs? Multi-threading unimplemented? - or impossible to implement for some reason?
"I'm not arguing there aren't inherent differences in the sexes, I'm asking you why you think the current representation of gender in the workforce is correct."

No. I'm saying we don't know whether the current representation is the "most natural", but what if it is?

Furthermore if you had looked through the video you would have realized that the entire basis of the documentary is an attempt to answer why labor force participation often becomes gender segregated. You say that it's because of lack of "encouragement", but maybe there's something else at play.
When Beauty Meets MarTech Innovations
Also note that openntpd just ignores that leap seconds exist, and just assumes the local time is 1 second wrong when it happens.
I would agree with this.

FWIW, the most concise and straightforward critical theorist that I've read is Vilem Flusser: https://en.wikipedia.org/wiki/Vil%C3%A9m_Flusser

There's a short compilation of his essays called "Writings" that is a great place to start, for anyone interested. Most essays are < 15 pages long, IIRC.

Very simple, elegant arguments, with little fluff. One of the few philosophers I know whose writing is absent the usual obscurantist cruft.
Pantex still exists. The facilities discussed in the article replace Rocky Flats, which was shut down in the 90s.
Styling separable from content is the direction W3 wants to go. So being aware and adhering as much as possible should improve performance and long-term maintenance burden.

I agree the tradeoff probably isn't worth the extra time needed to carefully structure your html and do css acrobatics.

I just get triggered when someone claims the holy trinity idea works good with html/css/js. It doesn't, but that's OK.
I'm against THIS referendum, but please, tell me how I'm forced to participate or being ostracised.

By the way, a poll from today in El pais, 82% of the people in Catalonia would defend a LEGAL referendum
I freelanced online and did a startup at 17. The pay was terrible and the startup a failure, but beyond all that, the knowledge was worth it.
> There's ongoing work to use a layer on top of Rust's super-fast DFA-based regex engine to accelerate these grammars

Will it really be faster? It didn't seem so from that GitHub thread.

As a data point for anyone curious, I'm using Syntect myself in a toy project. With Oniguruma (C NFA regexes), it highlights 200 lines of Rust in 40 ms on a 10 W TDP Celeron, which is all right, but a bit slower than I expected.
Go to the best college you can. Live on campus. Only once in your life you'll be living and surrounded by so many people in that age group.
Internships will come in time.
I agree. I would try to sum as a couple very original ideas that are more solid, combined with a great many loose associations that are tenuous, but according to the french style, given much weight and pomp; it actually makes the the writing style more inspiring/entertaining, but the ratio of claims to justifications is quite low. I also remember going though a great number of paragraphs without grokking anything at all, but i was also a bit younger then and perhaps able to focus less.

Nevertheless, it inspired me to pick up a few of Baurdrilliard's other books (e.g. Cool Memories) which are even less rational, so S&S was probably his best work.
Why would the independence be conced with just 40% of people defending it?
Much of the code in the post could be simplified by using the awesome `attrs` package [1].

Or if / when PEP 557 gets adopted.

[1]: https://github.com/python-attrs/attrs

[2]: https://www.python.org/dev/peps/pep-0557/
It seems to be quite dependent on the location. In places with fewer restaurants, they do seem to have dropped the barrier a little and allowed on more takeaway style places. In places like Shoreditch though, it’s just hundreds of top notch restaurants.

I guess it’s just down to Deliveroo’s (sometimes quite annoying) strict rule of not delivering further than 2km, so depends on the density of restaurants.
It doesn’t mention taking naps.

But damn, they make life pretty great!
I really can’t stand busses. I used to walk 8 miles a day to avoid them!
Awesome. Thanks so much.
This is modern day phrenology. It _cant_ work.
I like very much the idea to create and use analog computers even if the only one I had met was my slide rule.

In this case the goal is to make students "feel" with their hands, brain and perhaps guts what are genes and protein expression, as they are here physical entities that can be seen, their production could be measured by a multimeter, etc..

Bruce Land sets the bar very high. Bravo!
I started out like you. Here's how I learned to make money. I started a small business tech firm and just went out and asked businesses what their problems were and came up with ideas on how to solve them. You've taught yourself code, now teach yourself how to make a business. "Ready, Fire, Aim" and "Emyth" are great books to start. What I've learned in following this path is that there are three things to quickly generate skill-based income:
1. a list of businesses with discretionary budget to spend (leads). Companies will drop $1,000; $5,000; $10,000; or about $35,000 on an experiment (you) depending on their size. Enterprise environments (200 knowledge workers or more) have more structured problems, smaller ones tend to have problems that also involve sales/marketing- consider learning about both from Hubspot Academy. Create a speadsheet of 1,000 leads. Then you know you can't run out of business opportunities.
2. create a path to your potential customer making a purchase. once you have a lot of leads you have to learn what people want to be pitched. as an engineer, you want to solve real problems. that's awesome, it's also how you create real value, get referral clients, and generally just get to do cooler things for more money. But it's too much friction for someone to take a risk on a new relationship and change their entire way of thinking. Change one way they think about their situation. Read "the challenger sale." You are inventive, that's why you love to code. That's a skill that makes you better than any other type of sales person.
3. build systems for yourself. if you do the first two you will get relationships. relationships take management and people feel about you however well you manage that process. scrap together systems that make you an automatic boss at things like follow up, meetings, and showing your clients what you are doing and how you have helped them. zapier, trello, hubspot crm, boomerang for gmail. it's ok to use your coding skills to smooth out the integrstion of these systems, but resist the urge to reinvent them. use them as the scaffolding that let's you build for your clients.

Finally, have an answer for your age (tell them what motivates you) but don't bring it up. You run your own business, people pay your business. If you have a trusted adult, google how to DIY forming an LLC in your state and make it official.

I have seen many unexpected setbscks in my life. the ability to create a business from nothing enabled me to overcome them all.