skysight-inc/HackerNews huggingface dataset:
Process 1M Msgs/sec with Kubernetes and Lenses on Apache Kafka
Suppose you have two functions

fn f() -> Result<A, E>
fn g() -> Result<B, E>

Then you can write

fn h() -> Result<(A,B), E> {
let x = f()?;
let y = g()?;
Ok((x, y))
}

rather than having to do something like

fn h() -> Result<(A,B), E> {
match f() {
Ok(x) => {
match g() {
Ok(y) => Ok((x,y)),
Err(e) => Err(e)
}
},
Err(e) => Err(e),
}
}

(written from memory, please excuse syntax errors)

What's new is that this also works with Option<A> now.
Xperia XA Review: Nice design, good camera, better than the Xperia X
Show HN: AnyChart Android Charts (API 14+) – data visualization in Android apps
People like you, in the long term, will learn that the risk associated using an identity-based custodian based services (be it for fiat or for crypto) is never worth it. Why? In the crypto case, because counterparty risk is higher in this space (companies get hacked more often than banks being robbed). In the fiat case, because of the diminishing rate of value of your holdings due to inflation.
> But even with murder, the law doesn't stop murders before they happen, but rather only acts retroactively (and that is for good reason).

Murders are punished after they happen. But a plot to murder is in itself a crime.

Also, the fact that punishments come after the fact has nothing to do with this. Murder isn't banned after it happens. It's banned before it happens.

Lastly, you say "the law only acts retroactively". The main purpose of punishing past actions is to disuade people from doing them in the future. If I hate my boss but I decide not to murder him because I don't want my child to grow with me in prison, the law has stopped a crime before it happens.
1) It's very hard to get proof for good, but not exceptional games. Getting any feedback is hard. Minecraft was unique, it will likely get to a quarter billion sold copies eventually, it's not the game you want to compare your 3-month project to.
>>Lessons learn: don't quit your job until you have some sale volume.

Don't quit your job until your side gig is fully self-sufficient and you are being paid enough to cover bills/food/necessities and you have a few months saved up for emergencies and such.

If you can't work 40 hours per week at a basic job (and squeeze in a few hours of at least thinking/reading about your side project, if not actually coding/writing) and work another 20-60 on your side gig, you probably don't like it enough or have enough passion for it to sustain it even if you hit your stride.
A framework cannot change a programming language grammar without using macros. Most framework provide new types, functions, classes, constants, etc., which are expanding the vocabulary, not the grammar.

You can use the English language to express ideas on very different topics (food, law, engineering, romance, etc.) without changing its grammar.
That highly depends on which city you are in Romania. If you're in one of the bigger cities (Bucharest, Cluj, Iasi or Oradea) then it's going to be ok. If not, then you're screwed, unless you can work remote. At least, that has been my experience.

There's also the thing that the average developer salaries are surprisingly low. They are well above the national average, but it's only the top 1-5% who really pulls in the money. The latest numbers I have seen is an average of 5300 RON net (1185 EUR). While the national average is at 2100 RON (485 EUR). The top 1-5% pulls in more than double the average: 10000 RON (2170 EUR), if not more. You're gonna need a salary like that to live comfortably.

It makes sense for him to count in US dollars because even though prices for apartments and cars are expressed in euros in Romania, the rest off the world is still very much US dollar centric.
That's when your developer is in Romania. If your game developer lives in bay area, that's a full order of magnitude of difference in cost of living.
I had the very problem yesterday evening, so in case you did not figure it out:

To disable the Google feed if the disable toggle disappeared just clear the App data of the Google app to make it reappear.

To disable the Google feed if the disable toggle is present but has no effect anymore you can log out of the Google app by deselecting your Google account in the "search" settings menu.

I'd spend hundreds to avoid any kind of feed in my os.
Usually because the Western submarine was tailing them at the time, a fundamentally risky business.

There was a collision between UK and French SSBNs on patrol a few years back, and indication as to how quiet they can be - and SSBNs warrant the absolutely best ASW technology and techniques. An SSK, like the one missing, that has lost power isn't going to be making any sound at all unless the crew are doing it. If it is on the bottom you're essentially going to have to do a sea bed survey. The UK's Holland 1 submarine was lost under tow in 1913 only 1.5 miles outside Plymouth breakwater and remained undetected until 1981.
Review of Music Software Code Defects Part 4. Ardour
November 20 Weekly Development Update – Bounty0x
It has been for a long time, I mean part of it, not necessarily good. I'm glad people do it because it makes for interesting read. But the issue is that other (game) developers aren't your audience 9 out of 10 times.
Oh sure, definitely!
I assume part of his problem is the Steam description - some of it reads like nonsense (the twist/USP makes no sense, “fervent goddess,” “20 levels of pure mishap”) and the rest is actually discouraging, describing it as “back-to-basics” (read: not many features) and literally has a section entitled “why you might not like this game”.

Overall the concept is confusing. It’s a “coffee-break game” but also a really difficult roguelike with permadeath? Why? People don’t like to experience frustration in their coffee breaks, in my experience!
His sense of what games are "cool" wasn't in tune with the public. That's the cardinal sin. Pixel art dungeon crawlers aren't cool. It's as if he was a musician and decided to release a glam metal album today. Low budget, poor marketing, uncooperative bureaucracy - nah dude, none of that matters, you're just too in love with glam metal and people aren't buying glam metal.
http://chimera.labs.oreilly.com/books/1234000001802/index.ht...

Mastering bitcoin is the most recommended book on the topic and it's (mostly) open source.
The excess electricity could be used to burn less coal.
> He keeps saying over and over how he could never tell anyone because it would get out. But that’s his false axiom. Talking would’ve been the only way to find release.

There are huge elements of shame at work here. No, it is not logical to feel shame over being abused as a child. Nonetheless, it becomes one of your most closely guarded secrets because you are ashamed.

It can take years to get to a point of being able to talk about it and be able to process it, assuming you can find the safe space to do so.
JFK's back: chronic pain, failed surgeries, and its effects on his life and death
The nested cards are definitely a great tool to create the structure. Even after the initial outline, I came back to them every now and then to re-evaluate the logic flow or to place new sub-topics that came up.

The biggest win for me was how Scrivener supports an iterative workflow. I started with keywords on the cards for what a chapter should be about, wrote a few sentences describing the keywords inside the document, added context so the sentences became paragraphs, fleshed it out and polished it. During this process I used colour labels in the outline view[1] to keep track of the state of a chapter.

All this took away the pressure to write a long, good and coherent text. I only had to increment little by little to which my brain had far less resistance. If I was stuck on a chapter or couldn't motivate myself to keep working on it, I switched to another one and do a little work here, a little work there.

Also the usual Latex applied as well: I only focussed on the content and didn't format anything properly and left placeholders for images. I used Pages (the old version with two sided layout) for the final assembly where I only had to worry about layout and not on the content.

[1]: http://www.techtoolsforwriters.com/using-labels-in-scrivener...
You can write Rust in a quite functional matter, but as a language it works quite differently from Haskell or Scala. There's been a lot of discussion [1] around extending the type system to support something akin to higher-kinded types. The current result is the RFC you can find in [2], as well as a work-in-progress implementation of a new trait-resolution system for use in the compiler [3].

[1]: http://smallcultfollowing.com/babysteps/blog/2016/11/02/asso...

[2]: https://github.com/rust-lang/rfcs/pull/1598

[3]: http://smallcultfollowing.com/babysteps/blog/2017/01/26/lowe...
How old is your grandparent, and how did they start out? Are they still working as a programmer?
I absolutely agree with you--there is no threat of anything resembling revolution in the US today. The issue is not the self-obsession or lack of engagement the ancestor comment describes, but that e.g. Occupy Wall Street was never going to result in the actual occupation of Wall Street.
It matters because we're talking about letting the browser crash on all cases.

> We're trying to be secure against attackers.

We also want a browser that doesn't crash.
You can live quite comfortably, even in Bucharest, with $1200, as a dev. No need to be in the top 10%.
Whatever happened I hope for the submariners' sake it was quick.
I'm 10k words into my little writing hobby and will try this. Imported two chapters and I like the simplicity and aesthetics a lot. Absolutely love setting X words and having it tracked...simple, intuitive, awesome. I'm slowly getting back into writing after a hiatus so I'm sitting at a measly 500 words/day goal :D

My other authoring tool (Papyrus Autor) is great when it comes to Grammar/Spellchecking/Style and is pretty much the go to tool for German writers however it feels too cluttered for my personal taste. So I'm switching over to singular for prewriting with spellchecking turned off and then I'll load it into PA for the other tools (which will be an interesting and humbling experience).
watt-hours are the standard measure of electricity use over time; your electrical bill almost certainly uses it (KWh).
i don't know if it's saving money, I can't find information on that right now, but it does seem like a horrible situation to be in if you want to start a competing service with a company that's already established and included in an ISP plan.

The fact that he is trying to sell this as a repeal of regulatory overreach makes me kind of sick to my stomach. And, it's apparently an overreach because it solves a problem that didn't have a chance to come about? I feel like he's bullshitting me. Regardless, I like my internet access right now, so what problem is he solving for me or the rest of the public by doing this? If it's that these fast lanes will save us money it better be an enormous chunk of money to merit a such significant shift in the way I experience the internet.
Wait: the one who wants to silence speech is you.

We are just saying that, if you want to silence people in the name of past mass killings, you have to silence a lot of people. Nazis, communist / socialists, probably even Christians and Muslims, yes.

Wouldn't be better to just not try to silence anyone? :)
Tips for Getting Arch  Your Back
You should pay to five companies in different jurisdictions for a 3 of 5 multi-sig. As far as I know, nobody offers such service right now, but I think it will exist in the future.
> I don't understand how people still think that just creating and publishing a game is enough to sell enough copies or make a living from it.

Back in the 80s even the crappiest games sold relatively well. Infogrames made a whole publishing company out of it.
How I built the Chrome T-Rex Game in real life
I took a break from work to try out some personal projects this year and I got easily by with around that amount of money. As a student I lived on maybe half a that a month. Of course it would be different if I had mortgage and/or kids to take care of.

And before you say "wow, that's perfect, you could work remote, ..." consider that electronics and software (including games) cost more than it does in US.

(While I live in EU I think the most important part is that I live in former Eastern Block)
Anything in deep water is hard to detect. Submarines especially so, because they contain stealth technology to defeat trivial detection.

Submarines are stealthy. Very stealthy. She likely has magnets to counteract detection by magnetic anomaly detectors (MAD). Many subs also have anechoic tiles to make them less visible to active sonar (but I don't know if this was the case in this instance).

If its sank and the crew aren't able to deliberately make a lot of sound then it'll have to be found by sonar sweeps.

This survey can be done by the kind of ship that Russia has sent to help find the sub.
I live in Poland, which is more expensive as Romania (as far as I know), but close enough. My first salary as a developer was 750USD net per month and I was able to live out of it easily, partying a lot and not cooking much (and I'm a smoker).

His assumptions were not too unrealistic, he just didn't factor out additional costs and should have had bigger margin of safety.

You shouldn't compare money like this between countries, differences are big and Romania is on the bottom of EU when it comes to income (though they are currently developing super fast, so it will definitely change - good for them).
>>three dimensions

This is definitely the big snag people lose themselves on. They are thinking about the search being in two dimensions, like a map. They aren't thinking about lost ships or planes in three dimensions; a formula squared vs. a formula cubed and how much faster the latter gets out of hand.
I don't see how that's straightforward, especially numbers 3 and 4. Are you gonna vote out the president just for NN? Even if you don't think the other guy is gonna be much different in that regard?

Americans cast one single vote (in presidential elections) for one of two candidates, on a myriad of issues of every level of seriousness. Leaving aside the fight to convince a majority of americans, just deciding to vote against someone for NN is anything but straightforward.

I don't see why the criticisms on the idea discussed in the article. We can try both routes, give them all the flak we can for this and also try alternative paths to NN. This is an extremely uphill battle, we should be looking for every remotely-viable path.
Yes, it's very impressive, and the purpose of the whole post IMO is part of the marketing (call me evil). Also if he didn't quit his job, he probably wouldn't be able to get this far within a year.
Austria in Europe, not Australia on the Southern Hemisphere :)

Innsbruck average temperature: http://www.holiday-weather.com/innsbruck/averages/

That's pretty close to Chicago.
It always saddens me when people claim Minecraft was unique, because it was actually a clone of Infiniminer [0]

[0] https://www.youtube.com/watch?v=LwM6OA9DkXI
Also:

Software developers, applications and systems software have parents who are software developers, applications and systems software at a rate 9 times the rest of the population.
Also, coal in China is much cleaner than coal in the US, for example. https://www.americanprogress.org/issues/green/reports/2017/0...
Potatoin: World's first vegetable crypto-asset
I'm pretty liberal, and I believe that there is some truth to the "less regulation and more competition will solve the issues" mantra. The issue here being that there isn't a real way to inject more competition into the ISP space. Soooo, we are just getting less regulation. Which will inevitably lead to abuses.
You vastly, vastly underestimate how hard it is to do what you just said. Consider the inverse square law, then consider how hard it is to illuminate things underwater at a depth where there is little to no ambient light. Consider the limitations of sonar and other technologies at extreme distances.

Then extrapolate that in three dimensions across a major light trafficked area.

I get that militaries keep high-tech stuff secret, but what you are proposing is more akin to magic or teleportation than anything reasonable.
Node.js Versions Used in Commercial Projects in 2017
There is a success hiding in what you call a failure.

You've built a fully working product in a short amount of time. It went pretty much as you have planned it. This speaks volumes to your abilities as a game developer.

You discovered that you are not that great at launching products, marketing, and sales. These are the areas you need to spend a lot of time improving.

It sounds like the plan right now is to get up on your own two feet, financially wise. Get a job that will cover your expenses, so that stress disappears. Start saving up again.

Start learning about sales, marketing, and product launches. They may seem like a second thought to you, but each of these areas is as important as product development.

Another thing to consider is when to quit your job. In general it is said that one should have about six months of living expenses saved up, just in case. This is to cover a situation where you have a job and lose it unexpectedly. That six months of savings will allow you to spend time to find a new job.

To quit your job and self-fund, you need a lot more savings. How much is tough to say. But let's say you give yourself six months to break even in your game venture (no guarantees!), you need to plan an additional X months of savings to find a new job.

The good news is the next time, you possibly will not need to quit your job altogether. You already have a well-built game. Tweak it, redress it, and spend 90% of your time launching and marketing. Perhaps you can do it while you have a job and reduce your financial risk greatly.
https://www.kelloggs.com.au/en_AU/products/corn-flakes.html This is the most popular in Australia and it has sugar and salt. Which one doesn't have sugar?
This wouldn't work. Only pre approved streams will be allowed.
These “whales” have built mega cities and hughe highways to interconnect.

The ISPs on the other hand have built the small roads that connect the highways to your home. You pay the ISP a monthly fee for limited usage of the road so you can get to the highway.

Not having net neutrality is allowing the ISP to control your access to the highway depending on your final destination or the kind of cargo in your car.
Your comment is misleading. The code in question is inside a function of the signature

extract_last_path_segment(&str, &str)

This is pure Rust, no C interface involved.
Within the system, they have not. External to the Ethereum network, I expect people heavily invested in mining infrastructure to fight tooth and nail to protect their investments.
I also read it as a success. Developing and selling hundreds of units of software in less than 4 months for mere hundreds of dollars is challenging and iterable.
Let's be clear on something. "The Internet" doesn't care how Americans go about ruining their economy by prioritizing certain network traffic. As a Dutchie my Internet is largely unaffected by the FCC.

If anything the FCC rejecting net neutrality may be a boon for investment in EU startups and might actually benefit the EU tech sector. So go right ahead and take a crap on yourself America.

But let's be clear that the FCC has nothing to do with "The Internet". They're strictly an American affliction.
> No. To save the internet, we have to make the most gigantic stink the world has seen since the Trump election.

This "call to arms" happens every year or two. Basically that's a short term solution, and sooner or later a law will manage to get the votes it needs and it's game over (will be very tough to reverse).

And even the demonstrations after the Trump election did not achieve anything, by the way, so I doubt this is a good analogy.
Amazon China Quietly Brings Black Friday to China
Oh thanks - I missed that link at the bottom. The tutorials look interesting too!
> Open? Like the ~25 years before 'NN'? I was there. Competition works.

The 25 years when internet was accessed over telephone wire which was regulated as a utility?

Do you even know why NN came to be?

> NN is just a typical BS branding for "More Rules". It's step 0 in the standard manual on mission creep.

In this evil governmental overreach conspiracy, who do you think benefits from these "More Rules"? What's their motive?
It is for sure, and it's fine, the amounts of money being mentioned are only material if you picked the short geoeconomic straw.
you could also have a small cargo area to deliver a few things.
Internet of Things (IoT) 2018 – Market Statistics, Predictions and Trends
NN will always be under constant threat. My own country had it all enshrined in law only to be overruled by Brussels.

You're fighting against an entire industry who will stop at nothing to expand profits.
I don't condone violence but I feel like it's coming. It just feels like so few of those representing the public are actually making decisions based on best interests and the rhetoric is getting exhausting. Net Neutrality and beyond - I'm surrounded by people who feel like our government does not represent them and that they are unheard. And, as MLK said "I think that we've got to see that a riot is the language of the unheard."
That's not how I understand net neutrality. If we go with the electricity analogy it's like saying the energy company charges a different rate depending on whether you use your electricity for your refrigerator or your coffee machine. That's completely different from charging based on the "quantity" of electricity used, which is what currently happens.

Why should the internet be any different? If your neighbor watches hours and hours of netflix every day then they'll likely be paying for a high-bandwidth/large data allowance plan. It's got nothing to do the net neutrality.
"What is life?" - Erwin Schõdinger
Lying on the floor of a club curled up drooling all over yourself in a dissociated state doesn't sound very appealing to me. I'd keep that for controllable environments.
Ask HN: How to convince my gf to think more about online privacy?
Coming from a tech background, I take a wide range of privacy precautions. I use Facebook's browser version instead of its mobile app, I try to give as little rights to local apps as possible, I use Firefox Multiple Containers on desktop to not surf the web while being logged in to Google, Facebook et al and I use a range of script blockers, all because I think it's worth the additional privacy I get. I hate being tracked across the web.

My gf however doesn't care that much about privacy and is wondering why she gets so much targeted ads on all the platforms she is using.

My problem is that I have a hard time explaining her why it's so essential to think about privacy and be careful with your data in a simple way.

How do you argue with non-tech people about the importance of online privacy?
I quit my job a few years back with around $150k in the bank to fund my startup. A few months later, still nervous about leaving full time employment, I took a job interview with a big four. I received an offer with a base salary of $600k. I turned that down and committed to the startup.

A few months on, I receive a letter from the tax department advising that my previous employer provided corrected earnings information and that I now owed them most of what was left in my savings account. Grim news.

That big four job was already gone so I ended up in another interview process. Leaving that interview for the train station, I realised the coins in my pocket were not enough for the train ride home.

I set out walking, it was about 5 kilometers, 30c degree heat and equatorial humidity and then it started raining. I was in a suit. Strangely enough I found myself smiling. I thought "is this all you've got?". I actually felt happy... with nothing.

A riches to rags story by traditional measure.