skysight-inc/HackerNews huggingface dataset:
Show HN: A sample project for Golang
I have been using golang at work and personally for more than 2 years now. A problem i faced when I started and the problem new gophers even today is how to structure the project. Most (if not all) golang tutorials seem to be very simple and do not describe how to structure a large application. Following project is an attempt to Showcase a manageable project layout for services in golang.

https://github.com/spy16/droplets

This project is far from complete. Would like to hear some feedback from the community before continuing on this.
>Ad networks get paid for fraud

Ad networks value proposition is give us money and an ad and your revenue will rise. If there's fraud that just dilutes the effectiveness of the proposition. Eventually poor quality networks die in the same way that the market winnows fertilizer etc. There is no free lunch
DC would be especially hard for NASA.
Is this true? I've never personally been affected by a bug, and every new versions has a list of bugfixes that were merged in.

I think most of those fixes you mention are actually semantic altering and thus possibly backwards incompatible.
The GCs alone? Yes. The rest of their respective runtime architectures? Highly doubtful. As GC-dependent as Go may be, it still does end up as native code.

But frankly, comparing Go to Java when things like Rust exist ... seems analogous to comparing the z80 to the AVR when 32-bit ARM cores exist.
Yeah, they posted this on their blog today: http://blog.digitalglobe.com/industry/sending-data-from-spac...
Docker isn’t supposed to make development faster, it’s supposed to give a standard way to package code and dependencies so that a small infra team can support a much larger dev team developing a large number of services with heterogeneous language and library versions.
All of human military history.
Google will reportedly open Project Fi to iPhone, Samsung, and OnePlus this week
Totally unrelated, but I just last week did say I loved being an American and love this country yet immediately I got shunned for being a crazy right-wing conservative. I'm like what??! So I can see how thought leaders in this space are keeping quiet waiting for the hypersensitivity to cool off.
We're talking about Assange here; why are you changing the subject?

And, I do not get my Browder citations from "one source." I can cite you a bloody youtube video of him talking about what a great guy Putin is.

This still has nothing to do with some poor bastard getting doxxed by a clown who thinks he is Sherlock Holmes.
Interesting -- they're going after the various log management companies (Scalyr, DataDog, Splunk, Sumo Logic, etc.).

Figured this was bound to come eventually since it's a very very big market and their basic CloudWatch product was lacking in many ways. It's not like Amazon to let an ecosystem eat their lunch.

Few things stand out:

(1) Per-query pricing seems...odd? Likely a good deal for small folks with a low volume of logs (i.e. just need to check actual AWS infrastructure logs vs. application logs), but if you have any actual volume this gets absurdly expensive ($0.005/GB scanned = $5 per query if you need to scan a terabyte. Large enterprises ingest multiple terabytes per day.)

(2) The quote "I pick the first one, click Run query, the logs are scanned and the results are visible within seconds" doesn't sound terribly promising performance-wise. "Seconds" is an eternity in the log management world.

Still, super interesting!
A Family of 17th Century Apothecaries (2014)
> Due to market pressure, Windows drivers are widely available, but Linux is not necessarily (fully) supported

That sounds like something Microsoft would say back in the 90s.

> I can't reliably print double-sided on our office brother printer. Getting the networked scanner to work is a lesson in debugging. On MacOS and Windows: Trivial task. Just works.

I've seen many people over the years saying the same thing in the opposite direction: their stuff works better on Linux than on Windows. You're just assuming that Windows is always better based on your personal experience. In reality, vendors often push out poorly written Windows drivers in a hurry and move on. If you're lucky, you might be able to dig out an update from 7-pages-deep on a vendor's web site, and maybe it won't introduce a new bug that keeps you on the old one.

Neither side of that binary is useful. Instead, look at the hardware you need, see how well it's supported on the platform you use by looking at actual user reports, and don't make any assumptions.

However, one assumption you can generally make is that, if a driver is in the Linux kernel, and people are using it, it will continue working, because Linus doesn't tolerate regressions in code that's actually used.
I imagine there are climates that are better for grass or certain species of grass that are very drought tolerant. However, in my experience, not watering a lawn will kill it. I have a few patches in my lawn that were killed this summer by lack of water due to a poorly designed sprinkler system.
Cool, seems about right and that is similar to how I did multitenancy in Django years ago. If anyone reads this and has a good answer, I’m still curious on one question that I was never able to answer (due to my limited knowledge of Postgres and other databases).

Is there a good solution for automatically scoping a query to a tenant at the database-level (perhaps using a custom extension or PL/PgSQL to rewrite the queries), assuming the tenant_id is in the SQL request?

I guess I'm asking if it's possible to move this functionality to the database layer with something like PL/pgSQL or the Postgres rule system... both of which I know very little about.

@db.event.listens_for(TenantQuery, 'before_compile', retval=True)
def ensure_tenant_constrained(query):
for desc in query.column_descriptions:
if hasattr(desc['type'], 'tenant') and \
query.current_tenant_constrained:
query = query.filter_by(tenant=get_current_tenant())
return query

Of course the only point in asking such a question is if there's a good reason to do it, and I can't remember why I looked into this in the first place (it's been more than a couple of years).
Funnily enough, I have a copy of 無門関 sitting right in front of me. Pretty sure it's case 15.

I'd add that a lot of the stories are challenges in the sense of asking "What kind of mind must the characters have to give these kinds of answers?" There's usually a sense in which the interaction feels most natural.

In a way they are like inside jokes. Once you get it, there's little question about the meaning, and usually there's no need for any philosophical sophistication. In my experience, a good bit of The Gateless Gate is uncouth humor.
A lot of people, myself included, still love and create acid. The original 303 itself is pretty absurdly (prohibitively) expensive to acquire, and it's a tiny plastic toy and net anywhere from 2000-4000$. A case study in supply and demand - with a little bit of hype, I suppose.

There have been a bunch of pretty good software emulations, most notably: https://www.audiorealism.se/abl3.html and even some much cheaper physical emulations: https://www.cyclone-analogic.fr/en/34-bass-bot-tt-303-070198...
> In practice this is incredibly rare.

That's why I said I'm sure it's fine in practice in my first post.

>If you're driving in London and someone gets a bit close to the edge of the footpath and looks like they might walk out, yes, you slow down and get ready to stop. If you actually think they're walking out, you brake hard.

>Because you don't want to hit them.

You don't want to hit them.

Entirely separately from that, if they force you to slam on your brakes, when you are not being reckless, they should be chastised.

> It's unclear to me what the problem is, here.

Giving someone right of way when they're going to cross the road is fine. But it should not be absolute and instant, forcing cars to brake at 100% power.

Someone on a footpath, giving no signs of wanting to enter the road, could do so in one second. It takes longer than that for a car to stop.

To solve the problem, give cars enough slack to stop at medium braking intensity before the right of way kicks in. That's all. Lack of right of way isn't permission to hit them. It just means they're wrong to be sprinting across the street.
Do they call up customers telling them their computer has been infected with a virus? I am suddenly terrified that some non-zero percentage of those spam calls may actually be legit, and that I may need to treat every one of them as authentic (until they ask for teamviewer).
Estás exagerando, no hablamos tan raro y nuestro acento suena bien :)
There's a difference between boycotting products made in China and protesting against building technologies that enable dictatorial regimes. They do not deserve to be conflated.
You don't have to imagine to find a sport with greater running distances, match lengths, and goals-without-a-goalie: Just go watch an Aussie Rules Football match.

They have roughly 2 hours of play, and it's not unknown for players to run over 11 miles a match.
> In the absence of reliable extensional rheology data, we can only point to the fact that when cats are deformed along their principal axis, they tend to relax more easily, suggesting that the extensional time is smaller than the shear time. Transient strain-hardening can nonetheless occur. Second, because, flows of cats are usually free surface flows, the surface tension between the cat and its surrounding medium can be important
It doesn't have that much money.
I completely agree. As for old laws used as leverage... Look up the laws for "gravity knives" in New York. If you live in New York, and carry a pocket knife, you are likely a criminal without knowing it. And it'll likely never become an issue, unless a cop decides that he/she doesn't like you.
> AMA

Just how much did you enjoy the scene of "The IT Crowd" [1] where Jen tries to pull off an act as an Italian/English translator?

[1] S04E04, "Italian for Beginners" - https://youtu.be/csLgX1IHPJs
If by Python you mean numpy, then yes.
Got it. Sorry about that and thanks for the heads up. I didn’t realize it was possible to move comments like that after the update window expires.
Technology is supposed make human work less. Ironically as the technology advances the working hours has also increased. Bertrand has written nice short summary http://www.zpub.com/notes/idle.html in the 1930's which is sadly very much relevant today.
Faire (YC W17) Is Looking to Hire a Senior Product Manager
Some technical details: https://services.google.com/fh/files/blogs/3ve_google_whiteo... (note: I work for White Ops)
Heat is a problem, but I think it is safe to say that power is a bigger one. Those big arrays are really expensive, really heavy, degrade in output over time, and have been known to fail on occasion. [0][1]

[0] https://spacenews.com/33046spate-of-solar-array-failures-on-...
[1] https://sat-nd.com/failures/index.html?https://sat-nd.com/fa...
The browser Brave is working on implementing native support for IPFS so the gateway is not needed: https://github.com/brave/brave-browser/issues/819
Please don't break the site guidelines by taking HN threads on extraneous flamewar tangents.

https://news.ycombinator.com/newsguidelines.html

We detached this subthread from https://news.ycombinator.com/item?id=18547535 and marked it off-topic.
While a GPU accelerated terminal emulator sounds great on paper, do keep in mind that GPU acceleration doesn't really give you that much in terms of raw performance. You still have to render glyphs individually, almost always on CPU. So, the reality is probably more that GPU acceleration gives you more flexibility, rather than giving you performance. Anecdotally, I just ran this and it takes roughly twice as long to slog through my dmesg as gnome-terminal.

That said... pretty cool. I don't know if there already existed VT100 emulation written in Go, but it doesn't hurt to have that. Plenty of applications might want to embed a terminal or otherwise have terminal emulation.
I guess you could technically call MMA "no-holds-barred" since it allows grappling, but it still sets the rules at a certain threshold, and where you place that threshold will always determine the winning flavor of martial art. Gambler's point is that the MMA rules are set at a level heavily biased in favor of BJJ.

If eye-gouging, ear-biting, headbutts, groin-tearing, etc. were allowed, most of BJJ's techniques would be rendered moot, just like allowing grappling obsoletes most of boxing's techniques.
If the Media Lab had awarded their award in say 2007, would you agree that would be different than awarding it today?
Show HN: Browser game you can play solo, with other randoms or with friends
Fantastic example. I've had more than a couple of my Marines end up in hot water for accidentally violating ROEs, and they paid for it. On foreign soil, against a country we were at war with. Shouldn't the same actions back at home be seen as more egregious, not less?
There are non-silent Buddhist retreats. Deer Park Monastery etc.
This might help

https://dzone.com/articles/memory-layout-of-multi-dimensiona...

http://exodus.physics.ucla.edu/Fortran95/scf95.lect3.pdf
Going back to 2005 or so leasing and announcing entire CIDR prefixes was pretty popular for spammers.

A /19 would run you about 8k/m and I assume maxmind updates are included in the cost.

I have no citation for this, but SORBS and friends blacklisted /24 by default. If you had enough servers you could send enough email to turn a profit before your /24 was blacklisted. Only until you got to SORBS level 3 was your prefix blocked. Of course they would delist you for 2000/day.
I'm happy using docker. What I think you're missing is dependency changes and general ease of running CI. (this may not apply to projects which have long-term-stable base and just add lots of code)

1. When some native dependency change is needed, you have to make at least 3 changes: the actual code update, the packer script, and your Jenkins worker. Unless you empower all devs to change this, you have a bottleneck. And it only really works as long as you can have both versions of deps installed concurrently.

2. It's hard to really run tests in production like environment. Spawning new instances is a long and annoying step. Spawning a docker container is trivial in comparison.

3. It enables devs to run meaningful tests without having the exact same OS on the desktop like what's running on the servers.

Docker has other issues, but for these use cases it really solves problems.
The author is saying those things about his own talks, not generally of everyone. Unless you're trying to claim they are never true in any case, I don't think there's anything to disagree about here.
A related big thread from the other day: https://news.ycombinator.com/item?id=18528423
And surely catnip greatly perturbs cat distribution and thus surface tension.
Haha,this is kovter. It's a slick malware,always found the infection interesting. It's fileless and uses javascript to start mshta which executes powershell from the registry and so on. It was one of my favs, happy-sad they took it down.
Your doubts are well-founded. A few relevant decisions:

- Warren v. DC (1981): The police have no specific duty to protect you, or to show up when called.

- Castle Rock v. Gonzales (2005): The police are not liable for failing to enforce your restraining order.
Yes, I cook for myself, and for my wife. I don’t have a commute (or more properly, I work from home, or fly somewhere to do on site work with clients). My wife does commute so I do all our cooking.

I keep the time down with a combo of simple meals, batch prep, and Costco.
> That clearly is not a residential plan.

That's exactly what it's marketed as. There are also plenty of symmetrical fiber services with hundreds of Mbps of upload from Frontier, Verizon, AT&T, and others.
Fight Club is one of my big touchpoints for disillusionment with media analysis.

I'm sure this would get an "A" in a film class, it has exactly the kind of insights people who comment on media are taught to find.

There's plenty of value in that, of course. But art has the ability to capture ideas the creator doesn't articulate directly. The difference between good analysis and an expanded plot explanation is the ability to extract that idea and put it into digestible words.

I see and feel glimpses of something else in this movie. I don't have the time, lingo or toolset to really dig into it, so I keep making the mistake of watching/reading commentary on it hoping someone else finds it and can explain it. They all seem blind to it.
I believe lots of people have found it will cope with 5V but of course that's out of spec. They're only a couple of dollars if you burn one out though.

I guess it comes down to how much hassle it will be for you if you need to replace the ESP8266.
A fast tick database, a simplified SQL layer on FoudationDB
How AI automation could boost employment: The role of demand
The “black-on-black” crime narrative as an explanation for police excessive use of force disregards the structural and historical issues that formed these neighborhoods, as well as the social and economic factors that currently sustain them. Paul Butler explains that the violence in black communities is a symptom of historic discrimination, brutal policing practices, and mass incarceration. Thus, if we want to decrease “black-on-black crime” we first need to address the systemic issues that maintain it.

This passage starts by discussing an explanation for police excessive use of force and ends by discussing an explanation for crime within the black community.

It seems like the authors are saying that we can’t use crime within the black community to explain police brutality until (unless? because?) we use systemic issues to explain this crime. This seems fuzzy. It’s likely that black-on-black crime is a symptom of something; but that doesn’t prevent it from having symptoms, too.
Maybe something like https://schinckel.net/2017/12/20/django-multitenancy-using-p...
State secrets are not really that secret, and ya, it does sound rediculous and a bit ignorant.
What’s wrong with seconds when implementing / running a new query?

Obviously disk iops are the bottleneck with such a system, so encouraging folks to conserve them by charging for bytes scanned seem like a good measure.

Won’t an enterprise implementing this themselves or using third party tools have to scale out their index nodes based on the amount data queries are scanning?
Yes, you may certainly receive a call or email. I've been on both the sending and receiving end of those while working infosec at different companies.
Probably the same, but why do panderers need a broadcasting platform?
2018 Update: Our New Research Directions
Show HN: Pb; a command line pastebin service helper
No, it really isn't. The court requires someone to notice the pattern, or be aware of the pattern, and be willing to risk their reputation. With a union, the onus is on the business to act right, or risk labour action where the SRE folks walk out, and all the little blinky lights turn off.
Idk about the blockchain stuff, but it is semi-featureful since it can extract text from images (I'm assuming its just using Tesseract OCR. At least it could get the text out of this http://www.antigrain.com/research/font_rasterization/msword_...), and I assume audio (but I am having difficulty testing it out). Tbh the formats it accepts as well as the fact that it is available over messenger are huge "selling" points for me and should be way more emphasized on the product page than blockchain and AI.
We must triple our efforts to counter catastrophic climate change. Or else
I imagine there aren't a lot of drawn games?
You can use postgres' row level security to do this: https://www.postgresql.org/docs/9.5/ddl-rowsecurity.html
There's definitely a strong historic Buddhist monastic tradition in Korea. The Christianity that has taken hold in Korea is the American/evangelical sort and they don't do monasticism, so it seems strange to me that it would be associated with the West.

Anyhow, when I made the comment, I was thinking of the last line of the parent post "even in the West as a modern alternative to a monastery". To me, an alternative to monasteries seems redundant when you can go to a monastery.
Ahhh nice, I will check this and the other guy's links out!
Whenever I feel like my life is too driven by work and guilt driven by capitalism here in the US, a glance eastward is a great level setter.
YouTube gave a big clue that its $12 premium service is headed for extinction
The Plutonium Files: America’s Secret Medical Experiments in the Cold War (1999)
Except for, like, the entire case. I wonder if you'd say the same if it happened to you?
You said> "_many_ subsequent studies in different regions _all_ cited in the article and _all_ finding a _precipitous_ decline."

There aren't "many" there are only a few. Those are scattered in content, some are unpublished, some are unpublished data, all by varying types of researchers in different fields and with varying methodologies. One study is about spiders, another about insects, etc. This is hardly "Insect Apocalypse" - it is just "Insect Madness". I'm willing to wait until more serious research is done and collated.

The fact is this article and many others about "Insect Armageddon/Apocalypse" were triggered by a single study of a a single 220-acre area of German wilderness by a bunch of amateur bug-chasers. Here they are:

https://www.nytimes.com/2017/12/04/world/europe/krefeld-germ...

And here's their paper that started it all:

http://www.bouldercountybeekeepers.org/wp-content/uploads/20...

Read it and weep. A study of 220 acres in Germany. See

https://news.ycombinator.com/item?id=14323533

for criticisms and notes.

Not that their work isn't worthwhile (I'll leave that for others to decide). But from their original article we now have many, many misleading and alarmingly shrill articles, all predicting a worldwide insect population collapse based on very little scientific evidence.
But in Japan, is the culture there to associated all the Mc's with McDonald's, like in America? Do they even have the "Dollar" menu (Yen menu?).

Anyways, I doubt naming McKernel had any thoughts of McDonald's and the implication of the cheap dollar menu.
> coding (HTML tables ahoy) and sending launch emails

FWIW you should probably be using something like MJML rather than hand-coding HTML tables. (There are a few alternatives, that just happens to be the one we use.)
Cultivating Serendipity: A Visit to the New York Times ‘Morgue’ (2017)
Retro-Terminal Emulator