skysight-inc/HackerNews huggingface dataset:
Yeah both are examples of the designer being a bit "cute". The piston thing is however totally idiomatic and recommended by the piston devs, while I've never seen anyone actually loop over an Option in real code.

Though it wouldn't be super terrible if it was idiomatic. I personally prefer to do `s.map(|val| { ... }), but there's a contingent that argues that `map` shouldn't be used purely for side-effects, and should instead be used for, you know, mapping. We've oft argued that if you want to consume an iterator, it aught to be with a `for` loop, so it might make sense to say the same about an Option? Option is such a trivial and core type that you basically end up with 4 ways to do everything you could think of, because semantically distinct conventions all end up doing the exact same thing:

for x in data {
println!("{}", x)
}

if let Some(x) = data {
println!("{}", x)
}

data.map(|x| {
println!("{}", x)
});

match data {
Some(x) => println!("{}", x),
_ => ()
}

The fact that you can loop over an option is kind of a side-effect of a lot of our APIs taking "thing that is iterable", and evidently it was convenient to provide that for Option (which is after all just a really degenerate collection).

You can of course `match` and `if let` an Option because it's an enum, but because there's two cases and one has no state, they end up being completely equivalent (the `_ =>` branch is just an `else`).

Then finally you can `map` over an Option because... It's Option. That's what you do with optional types, dangit!
Looks like MORIA (1975) predates even that. Damn.

https://en.m.wikipedia.org/wiki/Moria_(PLATO)
I bought 5 Arduino Uno R3 clones for $2.39 a piece off AliExpress and they were pretty good apart from shitty soldering on the headers.

They fill the "can't be bothered to read the 500 page long datasheet" niche for me nicely. I remember having to get along with datasheets and simple programmers and writing PIC assembly back in the 1990s and I'm glad that time is gone.
Minnesota recently fixed this so that a criminal conviction is necessary before forfeiture, and when I texted my state representative about it, he said my state senator already has a bill for it in committee in Pennsylvania.

http://www.forbes.com/sites/instituteforjustice/2014/05/07/m...
I didn't even open up Dark Castle. Looking at the Scrapbook was enough to take me back!
My dad is in his seventies and an immigrant from Russia. He would absolutely do this because he never got past his distrust of banks and other major institutions, nor did he lose his tendency to transport valuables in cotton linings sewn into a suitcase or a pair of pants.

Inadvisable? Absolutely. And I'm sure there's plenty of other examples of people moving around large amounts of cash for dubious reasons. So, if they lose the cash or get robbed, some degree of "I told you so" is absolutely in order. But getting robbed by your own government should not be on the list of possible consequences of dubious (but legal) ideas.
The default settings on Windows and Red Hat based systems are pretty good. On the other hand, I was very disappointed ~8 years ago when I touched an Ubuntu system. It was too plain for me.
That Mac Classic emulator booted on Safari on my iPhone 5s in about 5 seconds. A Mac Classic took up to several minutes to boot! Remarkable.
How can I optimize my resume?
I am 22 years old and I am about to graduate in computer science at a great university in Brazil. Every job I see near I live pays very badly, like R$2500 a month, it is US$665 with the current rate. Even with the bad salary I want to enter the labor market but I have no experience and all jobs I see requires previous work experience. I know C, JavaScript, PHP and little bit of Python from some personal projects I did for personal purposes.

It would be nice to hear tips on how can I optimize my resume in order to draw attention of a recruiter even without work experience.
I do not claim it is trivial.

But .. fulltext index done right, including per hashtag, doubles the storage requirements at most. And the ability to call up any tweet from history does not need to be as instantaneous is recent tweets (It's ok to wait 5 seconds for a tweet from 5 years ago).

> The fanout problem turns sharding into a lumpy problem because again, there is a power law distribution that can overwhelm any single machine.

Not really, in the case of twitter (where you only trace edges, not edges-of-edges and edges-of-edges-of-edges like Facebook and Linkedin do). In the simplified model I described, the web frontends all pull from the backend, but for the hot 10-million account followers -- of which there aren't that many --, you can just push them to the webservers so they don't even need to query)

> Robustness at that scale is more than buying a pair of SSDs and setting up RAID.

I most definitely agree. But it is cheaply doable when everything is so perfectly shardable as it is in Twitter.

> Then there's the fun part that Twitter is so reliable these days that when something else on the internet breaks, we check Twitter for updates.

That's possibly an illusion. Yes, Twitter is mostly reliable - but do you have any latency stats? e.g., would you know if, on a daily bases, 10% of tweets take 60 seconds until they appear on a viewer's refresh? The "hot" accounts would be cached and immediately updated, but the long tail might have minutes delay and almost no one would notice.

> But often, when you inquire, there is a solid non-obvious reason for non-trivial diversions from the simplest thing that could possibly work.

> I always find it useful to give the benefit of the doubt.

I do not assume other engineers are morons. In my experience as a consultant, though, those solid non-obvious reasons for non-trivial diversions are much more often than not "historical, do not apply any more", "we didn't have time or resources to do it the right way", "the guy who did the initial design did it wrong for whatever reason, and now we are stuck with it", "there's a legal reason that's not obvious why we can't do it that way", and a few others.

Twitter had the resources to do it better from very early on, and they didn't (I think it was 2012 or so before Twitter became reliable). For all I know, their system now could be the most efficient beast ever, and run on a ZX81 with 1K Ram with ultimate reliability, way better than I could ever hope to build.

I was just pointing out that the user facing side of twitter, technically speaking, is not very impressive. I've been doing it for a while on various technical forums - and not once did anyone offer a reason for why it's much harder than it would seem -- most of the responses were along the lines of "but mysql/pgsql/oracle can't take the firehose load, I tried!". Which is correct, but irrelevant.
I love pie charts. Good luck making sense of scatter and bubble charts unless you're already intimate with the data.
ctrl+] will act as escape in any vim out there. At least that I've encountered.

Having caps as ctrl makes it really easy to hit.
AMD is fabless they already are using other manufacturers to build their CPU's and GPU's.
Intel is the only one who's currently both designs and manufactures all of their components.

As for the Chinese fabs, there aren't that many Chinese manufacturers that can produce an ARM SOC at this moment, the only one of note is MediaTek (And while they are cheap, they aren't that cheap to cause any major issues), you can't just copy a CPU easily, it's not like you can buy a full blown functional reference design from ARM that will be commercially viable you actually need to develop it yourself (especially considering that you need quite a bit of stuff in the SOC that ARM doesn't cover). If you look at the current ARM SOC's even if they are based on the same ARM architecture they are virtually nothing alike.

And it's not like Intel didn't had (Acer, SiS, NEC, UMC, IBM, National Semiconductors, NexGen, Transmeta, fuck the 90's to early/mid 2000's were filled with x86 knockoffs) or has competition in the x86 arena from Chinese (And non-Chinese) companies heck VIA is still making cheap X86 CPU's many of them are very low power (watt per watt until the new Core-M stuff some would actually out-perform intel in some cases) the problem is that all of them are kinda crap, and most importantly don't have a well established ecosystem (interconnect-buses, chipsets, memory controllers etc.) and outside of cheap embedded systems (or 20$ 7" "netbooks" from DealExtreme or Alibaba) you won't see them anywhere.
Not exactly. Ayahuasca actually refers to the vine Banisteriopsis caapi, which is a powerful MAOI, but contains no DMT.

Traditional preparations often (but not always) contain other components which contain DMT, the effect of which is normally metabolized by a mitochondrial enzyme called monoamine oxidase. Since the ayahuasca vine inhibits the activity of monoamine oxidase, a preparation of ingested DMT taken with, or after, an MAOI will allow the DMT to reach the brain.

The vine taken on its own, however, has an intense effect which is said to be mildly psychedelic, and a preparation of just the ayahuasca vine qualifies as ayahuasca.
At the risk of becoming somewhat conspiracy-theorist-like, a possible benefit might be this: (from the ampproject.org FAQ)

How will advertising work on Accelerated Mobile Pages? (...) As part of that, those involved with the project are also engaged in crafting Sustainable Ad Practices to insure that ads in AMP files are fast, safe, compelling and effective for users.

If Google should at one point choose to block all non-AMP-compliant ads in Chrome, it might be a good idea to get into the boat early when "AMP-compliant" is still in the process of being defined.
LINQ: Test-Driven Learning - http://martinchavez.github.io/LINQ/

This project is aimed to help the user further study LINQ with a test-driven approach. Each unit contains an annotated tutorial and a platform where you can test your understanding of the topic.

Overview

- LINQ Query Syntax

- LINQ Method Syntax

- LINQ Extension methods

- Lambda expressions

- First() and FirstOrDefault()

- Where()

Sorting

- OrderBy()

- ThenBy()

- OrderByDescending()

- Reverse()

- Sorting with null values

Creating

- Range()

- Repeat()

Comparing and Combining

- Intersect
- Except
- Concat
- Distinct
- Union
- Projection

Select()
Join()
SelectMany()

Totaling

- Sum operator

Grouping and Summing

- GroupBy(Single property)

- GroupBy(Multiple Properties)

- GroupBy(Parent Property)

Measures

- Mean (using Average)

- Median (using GroupBy)

- Mode (using GroupBy and OrderByDescending)
>Can you give examples of people who were arrested for no -criminal behaviour? I'd thought they were just arresting people who'd been pictures commuting crimes?

In my country? Tons. And more people who have been arrested while being non-criminal in a demonstration, and then falsely accused of criminal behavior (and with stuff planted on them).

Sometimes that gets dispelled in court, othertimes there is even third-party footage showing police planting stuff on them.

And then there are police units in disguise coming out of police vans, merging with peaceful protesters, and inciting violence and damages to break a demonstration.

>why is being arrested such a big deal?

Depends on the country. In the UK, but several others too (including mine) you can be held without trial for months (up to a year or so actually), you can get beaten up in the police department, etc.
You are assuming in this case that the young man in this case has access to the banking tools that you do, which is a big assumption. Poor and minority populations are less likely to have bank accounts, and more likely to keep their savings in cash[1]. Combine that with the fact that he was more likely to be stopped for being black in the first place and you have a recipe for abuse.

1. https://www.fdic.gov/householdsurvey/2012_unbankedreport.pdf...
There is nothing illegal about doing it so it shouldn't be anyones business. Who in their right mind? A farmer or two going to buy some equipment, me paying my first year of college, and plenty of folks buying cars. ACH transfer and cashier checks cost money, and hell, even Walmart won't cash a cashier check.

Your attitude towards other people's business offends me about as much as the actual seizure. Its attitudes like this that make the US more dangerous since "Shady" is the same reason SWAT teams are used to throw flash bangs in houses and server warrants. That attitude escalates the danger to us all.

What's wrong with "untraceable"? How is it anyones business what anyone does with their money unless they are actually committing a criminal activity or defrauding someone? If those were happening and charges were brought and a guilty conviction happens, then fine seize the money, but not until.
This. New switch mode ones are crappy, really crappy!

I have a stash of old linear ones that aren't fortunately. Worth their weight in gold.
Yet another way to rub their native app in my face before I can even get to their web app.
For those who didn't RTFA, he carried his life savings with him in cash. We've seen several stories like this: person has $xx,xxx in cash on them like that's just a normal thing to do. Bad thing happens. Person is incredulous. No one thinks they have any culpability for opting to carry $10k+ in cash over vastly safer and free alternatives.

That doesn't excuse the seizure, but I don't see how it's worth our time to get mad about people experiencing bad outcomes when they take stupid risks.

There are many other examples that make a better case against civil asset forfeiture.
There are very good TI Cortex M3 and M4 Tiva Launchpad boards (for $12.99) and for the ultra low power applications the MSP432 cortex M4 launchpad boards (for $12.99) with very good documentation and support.
Whoever gets to "1Ghz per user" in the cloud first, wins.

Reason: with the future being a socket per user over which the HTML5 interface is streamed, the user experience can be speedy if that same socket has a dedicated core too. I really want 2Ghz per user, but let's not be greedy.
1 Reason Startups Fail
24 cores, now compare that to AMDs pitiful attempt at ARM with 2-4 core chips. Its like AMD is actively trying to go belly up.
Waterloo's next wave: the 21st century technology fever reshaping the city
Yep. Go to the local Walmart and see how many people use their check cashing, money orders, bill paying, and debit cards. Heck, I use one of their Bluebird AmeEx cards for a lot of online bills. Its more convenient than my bank to throw a twenty on to pay for Netflix.
Do you think China arrested talented hackers or dummy replacements?
State of Containers: A Discussion with CoreOS, VMware and Google [video]
Correct. However, you'll probably mark it as spam once you notice the 4 emails. In case of twitter, people hardly notice repeatable content, say, posted after 8 hours. And the tool allows you to auto-delete your previous tweet, and then it posts the same tweet.
If it makes you feel any better, damn-near everybody in the US knows that English policemen don't carry guns. It's pretty much the first thing people bring up when one mentions bobbies.
You make the assumption that he had the financial instruments to make other arraignments. wadetandy pointed out a report that shows a lot of people don't.
I would guess that recording was essential for VHS's success. By the time DVD became successful, ca. 2000, there was a infrastructure of video rentals available and hard disk recording of movies became possible/was just around the corner. So the killer app for VHS was recoding TV, while the killer app for DvD was rentals and somewhat ambitious home video creators would go digital.
Letters to the editor is a heavily moderated comment section.
Deep-learning robot shows grasp of different objects
then you would have correctly assessed the satire.
My first thought was to compare this to drug dogs in the US, who are trained and encouraged to render false positives as a means of delivering probable cause.
That's not true. They are just hidden.

Stm8, $1.28 http://m.aliexpress.com/item/32351992629.html

Stm32, $3.06 http://m.aliexpress.com/item/1568685935.html

Edit: my phone did a stupid.
Considering you can't buy dog meat at the grocery store, there are certainly exceptions carved out for "livestock" animals versus pets. As far as I can tell, those exemptions are by species and not by "purpose."

The ASPCA indicates that most states specifically exempt specific species from cruelty laws. https://www.aspca.org/fight-cruelty/farm-animal-cruelty/lega...

Googling a bit, I found California Penal Code 597.3, which contains one example of specific exemption in a live-animal retail scenario. "Provide that no animal will be dismembered, flayed, cut open, or have its skin, scales, feathers, or shell removed while the animal
is still alive." In a subsection, any poultry species is specifically exempted.

I am not a lawyer and I am having trouble focusing between legalese and descriptions of cruel acts, so I am going to stop hunting for examples.
Qcom should really split into two companies. A majority of their profits come from their very high margin IP business. I don't see the point of trying to get into these low margin businesses.
Oh sorry! I completely misunderstood what DetectIndent was doing, that's a good tip.

I did want to point out that there's some sense to forcing the code to look the same on every machine though. Of course converting tabs/spaces is automatic, but my point was that the mix of the two requires either manual editing or conforming to the width of whoever made the error. It does happen, and I've been on at least one project with a professor who would occasionally mix things up while in the throes of editing (and they used a tab width of 8 which made it especially irritating for others!). With spaces you at least force whitespace to mean only one thing and if you absolutely can't stand someone's indentation width you can still change it like you can with tabs.

This really is personal preference though. Spaces explicitly represent the author's original intention including their indentation width, while tabs make it more convenient to others while conflating whitespace to mean two different things. Both are entirely reasonable though.
So, where can one buy a 64-bit ARM motherboard with ECC memory slots at a price around an Intel / AMD offering? I keep seeing these announcements but not the corresponding competition to Intel / AMD motherboards.
Can we please stop pretending that this has anything to do with loading pages faster?

Stop breaking the web. It's stupid. You can try to just shove the ads down someone's throat but you're in for a surprise, again. Any attempt to force it will actually hurt the advertising. People don't hate ads. People hate obnoxious, obtrusive ads that bloat the page to the point of making it completely useless and the whole experience fruitless frustration.

Non-obtrusive ads work just fine. I know that for a fact, they pay my bills.
Qualcomm has 20-25 years of experience with designing ARM processors over AMD, for all of the reasons why AMD will belly up their attempts at getting into the ARM market isn't one of them.
One more reason - new hires can be cheaper.

Or can appear cheaper to bean counters, at least.
If you are writing Java code to manage unprivileged Java code
(such as an applet container), you are subject to about as many
severe rules as if you are writing C code. If your Java code
is itself unprivileged, however, or if you are ignoring Java's
privilege model, you are subject to far fewer high-severity
rules than if you program in C.

Is the main thrust of this article.
But perhaps the largest hurdle is that most of the chips are surface mount devices.

This used to be a deterrent for me, but these days I just whip out my ExpressPCB and make a breakout board for the part that I'm interested in playing with. The price is really manageable. Typically my breakout board includes a few basic goodies such as decoupling caps, and a 3.3 V regulator.

But I appreciate the simplicity of being able to just breadboard something.

One reason that this works so well is the chip has a built-in serial bootloader.

That's a nice touch.
I agree with your conclusion - but your premise of conspiracy is wrong.

Using virtual Money is obviously much better than paper money. The difference is should it be centralized or de-centralized and anonymous ?

The paradoxical economic problem with decentralized money is that the govt has no control over it. Which means during bad time its going to be very difficult for the govt to enact changes. We learnt it the hard way During the great depression when money was pegged to gold and the govt was unable to use inflation to restart the economy.

Its a deep economical problem for which there is no known theoretical solution. Is it possible to have a decentralized monetary system that can also be controlled by a representive govt ?
Honest (albeit provocative) question: from a political point of view, does it matter?

The fact that China is willing arrest any of their own citizens at the behest of the US government is a pretty big deal. I'm not sure exactly what it means, but China doesn't strike me as the kind of country that's especially keen on being the US's lapdog.
With a development board: yes. But if you want to do hack something on a breadboard or make your own PCB it is really convenient to have THD ( through hole device ).

The ARM used in the article is the only TDH available AFAIK.
Roost (YC S14) – hiring a customer success engineer in NYC
Roost:

- Is the leading SaaS provider of web push notifications.

- Is currently handling over 100k requests / minute. Scale and speed are incredibly important to us.

- Well funded, high growth.

We’re looking for a senior engineer who:

- Can work with customers through sales and installation.

- Familiarity with the web (HTML, JS, caching, etc)

- Driven to provide good customer experience.

- Solid troubleshooting and learning skills.

Benefits:

-Flex vacation policy

-Manhattan offices

-Healthcare

-Competitive equity

Email casey@goroost.com with resume for more information.
Oh yeah, people seem to try to "properly" pronounce a word if you ask them. In the past, if you'd asked me to enunciate a world with an unstressed vowel, like "about", I'd probably say "a" for that first vowel even though it's always a schwa in practice.
That shouldn't encumber most people though. How many people who don't already know that have the skills to seriously compete with ARM? Probably none.
I'm saying what little evidence we have (mainly that there are many LSD users and they span quite a bit of viewpoints) does not support the idea that they'll all become "love bombed" messengers for peace or whatever. My implication being that the more evidence we get, the more we'll find out that LSD doesn't just deliver some external value like world peace but enhances ideas already in one's mind.

He's saying there's not enough evidence to tell. But with the implication that once we do have evidence, it'll show that LSD really does "love bomb" people.
1Ghz is a meaningless number I assume you base it on current IPC performance of desktop CPU's which is completely irrelevant.
You're correct that it is not wise to carry that much cash. However, we are allowed to do it. We are allowed to carry cash on us. I personally wouldn't do it unless I didn't have any other options, but for someone to have their money taken from them without evidence that it was derived from criminal activity is really messed up. And this isn't the first time that civil forfeiture has been used to deprive law abiding citizens of their property.
SSRI's have impacts (albeit not as long lasting) for reasons we don't understand yet they get dolled out like bread. Sure, you don't see visions while taking them but the side effects are no less profound. After years of personal experience with them I think they're WAY over prescribed. But the fact that they're legal at all, to me, is justification for legalizing psychedelics for research at the very least.
Thousands take to Berlin to protest EU-US TTIP accord