skysight-inc/HackerNews huggingface dataset:
Does it connect to the database to fill in some values in the template? Does it keep connection pool of let's say 5 connection always open (as libraries like to do)? Does it have authentication? Is it public or private API? Who is managing security? Is it running behind it's own nginx or other proxy? Does it have DoS protection (PDF generation can be CPU intense)? What about the schema for request? How do you manage changes to the schema? They need to be deployed together with changes in other services, right? What about changes to database schema - you need to remember to update that service as well and redeploy it at the right time as well - just after successful db migrations - which live in another project.

All of that and much more needs to be replicated for each microservice, right?

Why not just have a module in your monolithic app that does it. The logic will still be separate. In most languages/frameworks you can spawn pdf generation task. Any changes are easier to introduce as well. There's no artificially materialised interface. Updates are naturally introduced. All auth logic is there already, you don't need to worry about deploying yet another service, same with logging etc.
There's a theory in economics about the optimal size of a firm. How big should a company be? The optimal size could be infinite, where all of society acts as one firm. Think Communist-style command economy. Or it could be one, where everyone acts as networks of individual contractors or single-owner businesses. Think anarcho-capitalism. But in reality it's neither extreme and falls somewhere in the middle; why?

It turns out that the optimal size depends on the balance between the overhead costs associated with allocating resources within one firm and the transaction costs associated with two firms doing business with each other. The overhead costs are higher with large firms because there's more internal resources, including people, to allocate. On the other hand, transaction costs are higher with small firms because each firm does less themselves so they need to transact more with others to accomplish their goals.

As the relative costs vary over time, the optimal size varies too, and firms in an industry will grow and shrink. If it increases, then you'll see mergers and acquisitions produce larger firms. If it decreases then you'll see firms start splitting or small startups disrupting their lumbering competition.

I suspect a similar thing happens in software, where there's an optimal service size. It could be infinite, where it makes sense to build large monoliths to reduce the cost of two systems communicating. Or it could be one, where it's optimal to break the system at as fine a granularity as possible (function level?).

The optimal size depends on the balance of costs. All else being equal, by drawing a service boundary between two bits of functionality you shrink the services on either side but you increase the number of services and add communication costs for them to exchange data and commands.

How these costs balance out depends on the technology, and there are competing forces at work. As languages, libraries and frameworks improve, we can manage larger systems at lower costs. That tends to increase the optimal service size. As platforms, protocols and infrastructure tools improve, the costs to run large numbers of services decreases. That tends to decrease the optimal service size.

The microservices movement, and to an extent the serverless movement, assume that in the medium- and long-term the technological improvements are going to tip the scales sharply in favour of small services. I agree that's likely the case. But we're not there yet, except in some specialized cases such as large distributed organizations (Conway's law). But it's going to be at least a few years before it's worthwhile to build most software systems in a microservice architecture.
I also really like the Timestamp class, are the obvious reasons not to use it?
Hello, can you please be more specific about the parts of the site you are talking about. Thank you in advanced.
You don't trust Microsoft--who wrote the kernel and many of the drivers you're using--but trust some random .exe from a forum?
Why aren't Millennials racking up credit card debt?
Well there are zero day exploits included so it's quite a bit different than Snowden's leak. It's old sure, but the NSA either had no idea they lost hold of it or knew and still decided to not warn vendors. Embarrassing either way.

https://motherboard.vice.com/read/what-we-know-about-the-exp...
> What's your personal definition of "failed"? AMD may not be the market leader but for the same price, their multicore processors are far better than Intel's offering.

They are not. I talk mainly about gaming performance here, because it's the one thing where cpu performance actually matters for a relevant market. Have a look at http://www.techspot.com/review/991-gta-5-pc-benchmarks/page6... as an example. The i3-4130 (that wasn't even their fastest i3 at that time) as fast as the FX-6350, the FX-8350 slower than the old i5-2500K. AMD has not one processor that can compete with an i5-6600K in current games. It's not like you can't play modern games with an FX-8370, but with that you pay as much as with intel, you get worse FPS and your processor uses more energy. Ah, and you buy into a dead socket.

Other criteria for failure: Market share. AMD has a little bit more than 20% of the PC-gaming market, http://store.steampowered.com/hwsurvey/processormfg/. It gets less and less since the disastrous FX started.

> Inefficient software isn't a hardware problem.

If you want to sell your hardware of course it is.

> Why would video game developers spend their resources designing software that take advantage of the available computational resources provided by AMD's 6 and 8-core line of processors if this only impacts less than 2% of the gaming community?

Despite all, the FX-6300 is a popular processor. I highly doubt that number. The FX line can't have sold that bad.

> But this is by no means a technical failure on behalf of AMD.

I'm not talking technique. I'm talking about performance, both in real existing applications and on the market. In both the FX was a disaster for AMD, and I really hope the coming Zen-Architecture can make AMD relevant again. A Intel-Monoculture would be horrible, as is already visible in prices and customer-friendliness of the offerings.
> People were still people 10 or 20 years ago, but Walmart didn't have the same crime problem

But is that actually a problem of Walmart's creation, or is it that the pressures that encourage shoplifting became higher among those that Walmart attracts and in the areas Walmart builds in the past 10-20 years.

Increasing staffing would probably benefit the people shopping there more than it would prevent shoplifting. And the greeters? They hired 60+ year olds for that, no one was dissuaded from shoplifting because of them.
Maybe, but I guess I don't see why you're so worried about it. It works and it costs less to run than it would cost in electricity if he were running it from his house.
> It should be put into law that businesses with lax security share a greater portion of the public cost of the crime which results as well as punitive measures for the irresponsible situation they created.

That sounds like a fantastic way to disincentivize any company from providing goods and services to the poor.
I mean character assassination tactics did not get invented yesterday. A lifestyle like this puts the credibility of any organisation at risk. I wonder why we even need to discuss about this. In no other field would behavior like this be considered acceptable.
It's almost absurd not to shop at Walmart or other stores that are "extremely successful in attracting" the poor.

If I buy groceries at Walmart or another discount grocer, my bill is nearly half of what it would be if I shopped at a "nicer" supermarket and well over half of what it would be if I shopped at a place like Whole Foods. And I actually find the experience of shopping at Walmart to be better than the experience of shopping somewhere like Trader Joe's because Walmart's large size makes things far less congested than Trader Joe's, where it seems like everyone is constantly in the way of each other.

And this is all for essentially the same produce and meats. In many cases, the discount grocer's produce is actually better quality than the supermarket's.
NASA's Mars Renaissance Orbiter captured 1,000 images during the martian equinox
Nonsense, sometimes people don't know when to stop talking, and it's more dangerous to let them continue. In those situations having the courage to interupt, and the knowledge to do it diplomatically, is important.
I use(heavily tweaked) xubuntu as my main system and windows 10 for gaming. That's why the lockscreen bugs me a lot. It's gonna be annoying every time I boot to windows.
> Unfortunately the shell "language" sucks, but still...

Why do you say that? genuinely curious
Doesn't even need to be a toy gun. Any toy will do.

http://www.miamiherald.com/news/local/crime/article90905442....
What's the problem with the lockscreen to start with?
21 cents isn't the true cost but cool nonetheless. He's on the free tier available to new signups for up to a year. For that matter he could have run it on T2.micro and it would still have cost pennies. Still, a neat setup. (Edit: Lambda's free tier isn't time limited, as noted in other comments below)

Lambda requires a lot of boilerplate and configuration to get things setup. Even when you use Serverless/Apex/Gordon, there's quite a bit of configuration to do. I found ClaudiaJS (https://claudiajs.com/) is much quicker to get up and running and it sets up the API gateways for you based on your API signatures.

A 35mb jar deployment has gotta be painful (zip, upload, deploy). It helps to have a local dev and testing setup off the get go. Once you get past all that, working on your codebase can be fun again.
It's about the automation of these things.

You now have generic interfaces (Dockerfile, docker-compose, Kubernetes/Rancher templates, etc.) to define your app and how to tie it together with the infrastructure.

Having these declarative definitions make it easy to link your app with different SDN or SDS solutions.

For example, RexRay for the storage backend abstraction of your container:

http://rexray.readthedocs.io/en/stable/

You can have the same app connected to either ScaleIO in your enterprise or EBS as storage.

We are closer than ever to true hybrid cloud apps and it's now much more easier to streamline the development process from your workstation to production.

I think it's pretty exciting :)
I was really thinking the same after readinghttps://news.ycombinator.com/item?id=12303075

So this article talks about how you would deploy a 1000 node cluster without actually doing it? Why not saying this is how to deploy a 100000 node cluster?
Refactoring a gambling site using DDD
Meet SAM, the system architecture mapper
> whereas OT is generally too complicated and unproven to offer that guarantee at all.

Citation needed.

I've built several production-level OT-based systems on top of ShareJS's JSON OT[1] code. The set of operations supported is guaranteed to be conflict-free and correct. We don't have AGDA proofs but we've used fuzzers to ferret out correctness bugs and its been about 2 years since a bug was found in the transform code. All in all, I'm very happy with the implementation.

Meanwhile, I don't believe a more generic JSON OT / CRDT system can be made conflict-free. (Well it can be conflict-free, but you'll lose data if it is). If you support arbitrary tree-level moves, you have the User A moves x into y's children, user B moves y into x's children problem. There are simply no good ways to resolve these operations without user intervention, or a lot more knowledge of the data structures at play.

[1] https://github.com/ottypes/json0
Everyone does groceries probably once a week. It would at least 30% of the population goes to walmart so its not hard to imagine 100 million weekly visitors.
I have seen excel, SQL, even MS office used as a buzzword. Of course there's also agile, scrum, etc.

Bigdata and machine learning are also hot word. But they are clearly modern engineering. Consultants exist to explain the best way to achieve modern best practices to people without the appropriate background. If someone asks about "Why no Hadoopz plx?", either explain the other technology used instead (maybe spark, storm?) or explain that the scale is small enough for Access to handle. That's a consultant's job.
From the article:

According to laws in every state in the U.S., Walmart has a duty to protect its customers from violent crime while they’re on store property. Under an area of the law known as premise liability, victims and their lawyers have argued in hundreds of lawsuits that Walmart failed to provide enough security.
varchar is different than a text field in mysql:
http://dev.mysql.com/doc/refman/5.7/en/blob.html

It stores text fields as blobs.

I suppose now the right way would be the json data type. It didn't exist when I was working with these servers though (or they were on a much older version of MySql)
https://dev.mysql.com/doc/refman/5.7/en/json.html
Oh, I agree. Hard to cover every case in a comment.
Serious Question: doesn't induction heating solve some of this? Also, it seems like they're focusing on tubing type structures.
I think you're putting superman hackers in an unnecessarily restricted box.

Everybody has a hobby. ;)
If the desktop has four cores now, then it has double the cores of a few years ago when two was standard and that was double the number of cores 'anyone' had ten years ago: desktop Conroe chips started shipping in 2007. Which means the number of cores has quadrupled in less than ten years.
Can you do similar stuff with clojure or Scala? Maybe there's a way to avoid the bad parts
"police making more criminals"

That in a nutshell is one of the real problems with crime in the US. It's unpopular to expect people to behave in a civil manner. Instead we tolerate their uncivil behavior by blaming schools, parents, churches, and now police for making them criminals. Forget personal responsibility, that's for suckers.
NASA launches a free public archive of its recent research results
What got me to make the switch was that it wasn't Firefox. I got so fed up with Mozilla's bullshit that I went looking for anything else, especially after they broke all of my custom addons. Qutebrowser ended up pleasantly surprising me.
I think part of the answer is that intel plan on selling over capacity and making money out what would have been basically unused fab capacity.
I live close to a UK Premier League football stadium. Every match day requires a police riot squad being deployed for crowd control. Given that these teams are privately owned I do wonder about who should ultimately pay the bill for what are public events held for profit.

London Met police costs - http://www.met.police.uk/foi/pdfs/disclosure_2014/august_201...
I didn't say it is commendable work. SIP is what we have at the moment as a standard and is being used by a lot of products out there and it was written by a Cisco employee. That is all I said. I am not intimately familiar with SIP to comment on its pros and cons.
A quick scan of history would inform you that what is not acceptable in most fields is talking about sex parties publicly. The existence of crazy parties in various industry and entertainment fields throughout history is very well-documented.
Perhaps in the future Intel will be making "N core" ARM chips for data center blades, where N is a largish number with a killer bus / cache stack attached???

Something to be said for low power systems to pass all that relatively simple web traffic (JSON -> prepared statement ... row -> JSON) between the outside world and the databases, which might still well benefit from higher power / performance x86 chips. (who knows, maybe 128 low power cores serves a database better than x86, also, I can't say -- although being charged per-core by Oracle for little cores would really suck)

I'm a software guy, so feel free to expand on why this is BS, or not, hardware guys/gals.
I'm pretty sure it wasn't at a loss.
> So far he has made $7,971 after trading commissions.

It would be great if they mentioned what kind of percentage return that is. I'm curious to know if he put up $100k of his own money or $1M.
WinRAR Any Version Activator with Crack Free Download
Listen
[Mixtape] @TheLabelMG - Hacked :: #GetItLIVE! http://livemixtap.es/v8w @IndyTapes @DJPrettyBoyTank
The last survivors of Meridian 59
Ask HN: Are you planning to use .net core?
I have been working with .net stack for a long time but always wanted to switch to open source.I really liked c# and VS.As godsend,Microsft decided to make .net core .I spent quite a lot of time on learning linux and .net core by the time it hit RTM I love working on vs code and Ubuntu. I was hoping to make a switch to .net core but I am not seeing an adoption as I thought.Also don't see any job listing for same(may be its too early). Are you working on any big .net core projects or planning yo use it?
I assume the author meant to emphasize reading. And when you try to speed-read/browse multi-column layouts, it's becomes slower because your eye needs to cover a larger horizontal area.

For example, when Flickr transitioned from a single-column to the current row-by-row clusterfuck, it became much harder to quickly find a particular image in someone's photostream.
Custom Crawling is usually a difficult process but having the right infrastructure and experience can make the whole process much easier.
EduBirdie UK
A journey to explore neural style algorithm: From GPU to Mobile
we've adopted it daily to solve the issue with bad merge history. Seems that git will do a merge on the server and is confused on who did what. Care to elaborate on how you solved this problem w/out rebase?
Microsoft Just Made Fun of Apple in Its New and Hilarious Ad
You can type to Cortana.

I find it very useful and would most definitely turn it on. It will also become a lot better in the future when software is integrated with it (office coming in the next update).

The "spying" has been greatly exaggerated, I think, by people who suddenly found themselves without a reason to hate on Microsoft and it was the obvious choice.
Thanks for the example code, it actually has me wondering whether using the pipes has any impact on performance. They are much easier to read than the nested function calls that would be used instead.

However, I mean I just searched for an R script on kaggle and the first I found is this: https://www.kaggle.com/bpavlyshenko/grupo-bimbo-inventory-de...

From my experience that is a typical example (data.table is very common, but not so much dplyr and the pipes).

I looked through the recent/featured questions on stack overflow and cross validated and saw only "old school" R as well. For example:
http://stats.stackexchange.com/questions/228800/
Numeric precision and taking the n-th root
> annoyed by his merge commits

Getting rid of merge commits is literally the only benefit of your workflow over the standard branching model.
Yes, the criminality is the problem.

But say having someone present at an entrance for much of the day clearly cuts the number of shoplifting incidents. It's pretty reasonable for the police and town to push for that staffing if it is less costly than handling the displaced incidents.
You don't need to talk to use Cortana. I had Cortana disabled until the Anniversary Update came. If you don't agree to letting it see your emails/calendar/personal stuff, it will become a limited version of itself (in fact, it didn't prompt me about it until I actively tried to do something that needed it). I was OK with letting that limited version enabled, and thought I would still not use even that.

A few days ago, however, I had to set a five minutes timer. It was much easier to press the Windows key and type "set a timer for five minutes" than to go search for whatever app is responsible for timers. I find the "grandma-friendly command line" part of Cortana much more useful than the voice control part, and I can see why it comes enabled by default. I mainly use Linux and wish I had something like that in my KDE desktop (the Alt+F2 command bar is similar, but nowhere close).
There was a launch of some more modern AM3+ boards. Like https://www.asus.com/Motherboards/970-PRO-GAMING-AURA/specif..., those boards support USB 3.1 Gen2, they bring M.2 slots and NVMe (on PCI-E 2.0 of course).
That's a function deployed as a library, not a real library; the word library implies many functions.
Apple earns a dollar per customer per day
I get what you're saying, but will also note that this is probably subjective based on where you live. In my city, most of the walmarts are crowded, loud, and dirty. A lot of merchandise somehow ends up on the floor. The lines are long. The produce quality varies greatly but is not very good.

I once saw a Walmart in another state with a live lobster aquarium. My local friends almost didn't believe me. (I live in California)
I don't think the statement that there are fewer people in poverty is true. Especially if you are counting numbers and not percentages. But going by percentage you can see on this chart [1] that we seem to be at levels similar to the mid-90s and that the current trend is upward. Specifically it seems like ages 18-64 in 2011 are fairly close to the highest rates since 1959 (when the chart starts). Another chart that doesn't separate by ages [2] seems to show that we haven't had significant drop in poverty since the 60s.

[1] https://en.wikipedia.org/wiki/Poverty_in_the_United_States#/...
[2] https://en.wikipedia.org/wiki/Poverty_in_the_United_States#/...
Hard to say, but it is. When a person leaves their door unlocked and people walk in and rob the place, the thieves are responsible and guilty but the neighbors will cluck their tongues and wonder why someone with perfectly-functioning locks doesn't use them.

That's why a person leaving their house unlocked and getting robbed is used as an (unacceptable) analogy to a person getting sexually assaulted when they walk down the street at night in skimpy clothing. The "Victim could easily have done something more and chose not to" aspect is already taken as a given in the unlocked-door scenario.
Yes, yes, yes.
Though a rehash of https://blog.codinghorror.com/the-best-code-is-no-code-at-al... (which is itself a rehash)
In July, three Walmart employees in Florida were charged with manslaughter after a shoplifter they chased and pinned down died of asphyxia.

No wonder they call the police when they want shoplifters choked out: police don't get prosecuted for that.

This is much ado about nothing. All big companies run periodic "let's take a shit on society to save some money" programs. They find something that costs a little money (e.g. a modicum of private security), the absence of which won't cause them to go out of business immediately, and they stop doing it. Even if they eventually have to restart in most locations, they still save money over the interim. If society really wanted to end this practice, society would stop bending over backwards to coddle large corporations, or even to allow them to exist in the first place.

TFA describes problems in lower-income urban and suburban settings. Maybe these are the Wal-Mart stereotype, but Wal-Mart has stores in many other communities that don't fit that mold, and which may not have seen the crime wave described here. The mayor in TFA had the right idea: declare problem stores a public nuisance to force Wal-Mart to do something. What Wal-Mart will do, was also identified in TFA: hire a bunch of off-duty cops. It kills three birds: security will actually improve with cops on the premises, police chiefs won't publicly criticize a business that's paying their subordinates lots of money, and the cops they hire will use the resources of the whole department anyway. Again, however, this expenditure will only be required in those special communities that have lots of potential criminals.