skysight-inc/HackerNews huggingface dataset:
>It’s pretty well known that Guido van Rossum isn’t big on functional programming. Python tries pretty hard to make functional programming painful, to a degree that seems rather extreme, given how simple the fixes for the pain points would be.

>Python has lambdas, but they’re seriously hamstrung: They can only be a single expression. No statements. Furthermore, Python has a bunch of built-in language features that are totally obviated by adding a decent syntax for multi-statement lambdas.

This guy doesn't understand functional programming and why the lambda exists as a single expression.

Either way I agree it's better to have multiline lambdas but I disagree with how he related it to Guido making functional programming painful... If lambdas had multiline statements then the lambda would not be following the functional paradigm. In functional programming EVERY function is a single expression, including the main itself. In fact, in functional programming, your Entire program is just a single expression.
I do something similar; you can see my scripts at https://hackage.haskell.org/package/archiver https://www.gwern.net/Archiving%20URLs
Gruber's site (1) attracts one of the richest advertising targets in the world, iOS developers (2) serves as a leader for directly monetizable media such as speaking events and podcasts aimed at the same elite audience. His business model enables his reading model. Also, which is more distracting: a "dickbar" or Gruber interrupting his podcast to read a spiel?
Reddit bans non-ISIS supporter for posting ISIS videos on r/CombatFootage
>> even the right to possess certain drawings

These would be drawings of child pornography, just to clarify.
I had the choice between Ruby and Python years ago. I choose Python because of the community, not the language. They are more or less equivalent, although I prefer forced indentation.

Nowaday, ruby is dying in his RoR and Japan niches so the question is moot.
Yes, I'm definitely not blaming them, I can see somewhere on my bill where my energy is coming from; but it's still mostly fossil (because obviously). They are making great strides in alternative and renewable energy. I would think their cost to go mostly with renewables are much more expensive to them than my cost to go mostly renewable. They're going to move slow on this.
I would be interested in hearing what the security pros think about this..tptacek, grugq, dguido, idlewords. At this point, these are the guys I trust with security advice.

Worth mentioning their VPN recommendations: algo by trailofbits and freedome. There is another paid service they recommend but I can't recall the name.
Skype outage causing connectivity issues, company says it’s a “global incident”
Show HN: SnappyBird in 100 lines of code
People are undoubtedly flagging it because this topic has become a religious issue for them.
This argument has been used by ISPs for as long as I care to remember and it's always been BS. I used to work for one and I cringed every time I had to say that line to a customer, but that was our official position even regarding speed test sites.

ISPs know even most savvy customers wont be able to prove beyond a shadow of a doubt that they are being throttled/not receiving their promised bandwidth and so they use that grey area to say "Yeah, must just be that server or a router or something."
> Cyclic data structures (without additional layer of indirection) require unsafe, or reference counting and dynamic borrow checking.

Doesn't this apply to any language?
Python would benefit a lot from getting Eiffel style contracts. And wouldn't be any less pythonic than it's now.
A Python Was Recorded Vomiting Out an Entire Deer in a Bizarre Video
I don't think pylatex does what lax does i'm not sure though. Try getting latex output from pylatex for formulaes like x * 3 * y * (x/(x-y)). Lax goal is being handy for quickly writing down common math formulaes.
Don't get how any competent programmer can recognize a glaring flaw... type checking. A program without type checking will inevitably lead to less maintainable code.
This technique is already the equivalent of a proprietary browser plugin, except for that it's running completely outside of the browser sandbox.

The proper fix here is to stop with the DRM bullshit and just use HTML5 <video> like everyone else.
Used to work for CSCO myself. Was amazed they (internally) didn't have centralised PKI, so we rolled our own as an acquisition.

This is the Sky UK middleware project isn't it? I know a couple of people who work there who said it's a bit of a clusterfuck. There were some good things at CSCO when I was there, but loads of WTF moments.
What exactly is the outcome here? Lets say I do all of this, what's my life supposed to look like?

I mean these are all good advice points if you want to increase the zeroes in your bank incrementally, but they are also the same tips that lead to a mundane, average, uninspiring life.
Your misunderstanding that comment. It was built "in the same datacenters by the same IT engineering team" but it was always it's own thing. "AWS services were quickly adopted by many teams" after it was built and a commercial product.

Sure, the intent was Amazon IT would eventually move to that system. But, they could let other companies work out the issues first vs. risking their main website. Just consider the risk for them if AWS goes down and take their own site outline while they are trying to sell high up time. That's simply a risk they had no reason to take.

PS: Remember, well executed traditional large scale infrastructure has higher up-time than AWS because AWS adds complexity.
Firstly, it's not exactly a novel problem - as the advisory points out, there were earlier public examples of the bug class in 2005 and 2010.

That aside, the issue here is that you can have a program that correctly writes only to properly allocated objects on the heap, and to properly allocated objects on that stack: but if you can get the stack to grow down into the heap without it being detected, now your properly-allocated objects on the heap alias part of the stack (and your properly-allocated objects on the stack alias part of the heap). So now the correct writes done by the program can write to unintended places, like return values on the stack or function pointers in the heap.

The core trick is the "without it being detected" part. What they've done is find places - some of them in library code - that the stack is grown by more than the size of the guard page in one go, and where writing to the guard page itself can be avoided (or in the BSD case, they've found ways that the guard page itself can be disabled). There's also some other clever tricks around expanding the stack and the heap.
Evolution of the Reactor Antineutrino Flux and Spectrum at Daya Bay
Generally bulky substrates are inefficient and require additional catalysts for binding. (Typically kinases.)

So something with an unexpected tail won't react. It will not occlude the receptor either because it won't bind with it reliably...

These things are very, very precise.
Since I started using the free community edition of pycharm, almost all of these kinds of typos have been caught by the IDE! Really recommended.
Sure, but there are plenty of great games available for less than $50. And if you can wait a year; you can probably get today's great game for significantly less than $50...

I know some super financially conscious folks who purposely stay one "Game system behind". Nintendo Switch is coming out? Buy a Wii U and collect games for super cheap. Hour of entertainment at a fraction of the cost.
I was quite excited to see this, but I feel like almost everything in this post was "table stakes" for production Django, and nothing particularly groundbreaking. Having said that, I work on a large Django codebase, maybe these things aren't as common in smaller projects.

Looking forward to Part 2!
Yeah, you basically make initial implementation easier at the expense of maintenance and debugging, which sounds like a good tradeoff until you think about the relative amount of time you spend doing one thing vs the other.
> Each one of those things is inherently a form of energy storage, because you don't need any of those to start up or stop at the same milisecond where you flip the switch.

You lost me. I don't understand how that connects.
Amazon announces Prime Wardrobe, tackling fashion retail head on
> Sure, I could choose to run my laundry cycle at 8pm rather than 5:30pm, but the convenience factor of doing it when I want to do it is going to trump the pennies they'd give me to wait, every single time.

However, the heating element in your dryer doesn't have to be run like that. You start the dryer, and it starts tumbling your clothers with the motor, and blowing some air with the fan, but the heating element can turn on and off in coordination with the rest of your house, and you wouldn't even notice.

Also, most of us run a load just before going to bed, and shuffle it to the dryer in the morning.

Do you care if the washer takes a little while before starting up while you're sleeping? I sure don't.
Except that not every country belongs to the EU. If you have customers globally, you'll still have to deal with conflicting requirements.
If you're going to complain about an article not mentioning something recent, at least verify that the article postdates the thing you want it to have mentioned.
Making a Rails App Move Faster: A Tale of Lessons Learned
Why would you advise to mine bitcoins? If you feel it's a good investment just buy some.
Have you not worked at a big company? This is 100% normal for everything.

For the required training I do because my work touches health care: The company has a record of what training I need. It sends me a list of courses. I then have to register for those courses -- within the same company. They can't register me for it on their own. I take the course, get my passing grade and now the course and my training record know that I have a passing grade for the course. So naturally I have to print that out, upload it to another site and mark it complete. Someone in India (literally) checks this. Not done yet, I fill out a paper copy by hand with course numbers and dates and sign it. Upload that and turn in physical copies to my management. If I want credit on the number of hours training I have for the year, I need to update that manually as well. Expect these forms to be kicked back multiple times on the way because the date is in the wrong format or some other reason. Also expect to take multiple forms of the same training within the same training year because it has been repackaged (not new courses, regrouped same courses).
This site is totally illegible for me. Yes I can always increase the font size but the default is just tiny. The whole site is unpleasant.

I still can't get over realizing 5 years ago why Google always directed me to this site when I would googled "markdown". When I realzied this was the guy who made markdown and so I had to read his site as an authoritative source... It's ironic he complains a lot about usability, etc.
Web is ready for you on line Elm
> This was his way of trying to be “top gun” when in a room where he wasn’t the smartest person.)

Why on the earth all the "business" people is so stupid ?
Related relevant discussion in here, too: https://www.reddit.com/r/syriancivilwar/comments/6ia39n/redd...

> As YPG veteran and SDF supporter, Arab-Moroccan has filled a vital hole in the spam of pro-regime and pro-SDF content that fills this subreddit daily. Daesh is a massive player in this conflict, and there is almost no attempt by other sources to post their content. Censoring him doesn't really accomplish anything. Watching Daesh propoganda videos is what motivated me to go fight them in the first place.
Marry well.
What I mean is this:

Your spouse should have a career or should think of having a career of his/her own. Its not about having a lot of money, its to eventually have someone as a financial backup in case things go wrong. Works for both partners.

I love my wife but financially I am in trouble. I make enough money but she has no career aspirations. Her family is quite poor and I had to get mortgage for a house for her parents. In future I will also need to worry about their health expenses.

This effectively means I can never get out of the rat race.
Apple’s new stats could revolutionize the way we find podcasts
IMO package authors should document the exceptions that they throw.

The Python exception hierarchy is not as good as I'd like. It should be harder to match NameError, AttributeError, etc because there's rarely a sane way to handle those.

People often write code expecting to "handle" exceptions but usually end up masking design defects. Most of the time you can only sanely handle a handful of exceptions way back at the base of the stack. And the handling at that level is usually "log" and/or "limited backoff/retry mechanism". Most of the code you're writing shouldn't do much with exceptions other than perhaps add context and re-throw.
I'd like to see this in a simulator.
Generate keyword arguments programmatically in Python
Can you think of a (non-contrived) example where automatic promotion to float is going to cause a non-trivial error when computing (say) a household budget?

"You can only push off the complexity for so long if you want to do things that aren't trivial."

There are a lot of things that aren't "trivial" that nonetheless don't require a totalitarian type system.
Why enslave someone when they will happily take your crappy job?

Drive for for Uber, temp work driving your vechicle for Amazon, writing/posting for Facebook, and even here--on Hacker News? (Hasen't made money, but the goodwill/potential must be staggering?)

Let's face it, unless you have a very high barrier to entry profession, like brain surgeon, actually bad choice--I know one that happened to be in the resturant business, or one did until her resturant burned down, without property insurance I add.), or have family money to take risk; life in America is not great.

I don't want to argue. I know some of you in tech are very happy right now. Let see what happens when letitgo, and buystufffromagayman--yea, it exists; I thought it was a tv parody, goes bankrupt.

I don't have any answers, but some of what Trump promised sounded good.

We are in a crisis. We need to allow those that are looking at being homeless a safe place to pitch a tent. We need to lighten up on all municipal regulations/fees/fines, and tie all those regulations/fees/fines to annual income. It shouldn't be illegial to pitch a tent on county property.

We need to reduce the supply of eager workers. (I don't know how anymore. There's to many people that will work for free, and pride themself's on it.

And the big one----taxes on the wealthy? Let's put it this way, if you want to take the irritating parts of your Spaceship overseas; move yourself, and your family right along with the savings. Really--sell that mansion, pull the kids out of private school, and Move.

I'll stop my rant.
You've called it sneaky and surreptitious, but I suspect in many cases it can be very useful to be able to wrap a function without performing shotgun surgery on everywhere it's called.
Yes I think it's also about which part of the EU. The majority seem to support the EU as a whole but some of the political structures like the Parliament and Commission - less so.

"Since 2012, there has been a steady increase in Parliament of the fight against terrorism and respect for individual freedoms as a priority policy for the European Parliament, and this is now in second place (42%, +8 compared with 2015).

Meanwhile, some other indicators remain relatively unchanged. A clear majority of Europeans still believe that being a member of the European Union is a good thing (53%, -2), and that their country has benefitted from this membership (60%, =).
Likewise, around seven respondents in ten think that there is more solidarity amongst Europeans than issues which separate them (71%, -3). Nearly one European in two also shares the opinion that a harmonised social welfare system reinforces their feeling of being a European citizen (46%, +1).

We also noted that the neutral image which Europeans have of the European Parliament (44%, -2), and the more significant role which they want to see it play (46%, +2), are two indicators which also remain stable. In addition, Europeans remain well informed about the European Parliament.
Finally, other results show a decline in this survey. For example, Europeans feel that their voice counts less and less, both at national and at European level. However, in 26 of the 28 Member States, they felt that their voice counts more in their own country (53% in average, -10 compared with 2015) than at EU level (37% in average, -2). When asked about the future situation, Europeans are increasingly pessimistic, both in the EU (54% « things are going in the wrong direction », +13 compared with 2015) and in their own country (58% « id. », +14),

Among the various elements of European identity, a significant decline in the single currency as one of the essential elements is also noticeable (33%, -6), particularly in the Euro area."

Source: http://www.europarl.europa.eu/atyourservice/en/20161110PVL00...
Could you read about my stuff at Catallax.info and tell me it makes you feel the same way? I mostly agree with you but think there is an underlying property of the immutable ledger that will lead to some really interesting things. The news section has some of the latest info.
Twitter bots get enterprising, courtesy of Sprout Social
It avoids hearthbleed style bugs. That's not a small thing.

The biggest issue I once had with semantic white space was that demanded convoluted rules and imposed itself into the syntax like in the single line lambdas case... But then Haskell has none of those problems.
>This is another odd market where somehow the US incumbents seem unable to implement an obvious feature that is common in other countries.

This is not quite correct. Grocery stores have had delivery in large cities for a while. There's even a pretty famous scene in the movie Magnolia (1999) that revolves around it. The US is big, and has a lot of empty space, and has many different markets that are tough to coordinate. It's no surprise then than it has taken a big player like Amazon to offer wall-to-wall coverage of grocery delivery. It still hasn't been proven to be something a sufficient number of Americans even want.
But you are a dev. These people are not. Code is not their product.
For the profiling, I'd also recommend `run_profile_server` from django-extensions, and Snakeviz as a visualiser for that data. It records cprofile reports per-request so can be useful for seeing what takes the time in a single request.

Common hot-spots I've noticed (other than n+1 queries) is deserialisation of database rows into Django ORM objects - it's relatively expensive, and template rendering. I'd definitely choose Jinja2 on a new project for templating as it's more generally more capable and approximately 2x faster, the downside being the goal of "logic-less templates" is slightly harder to achieve.
> having a less violent society is very much an evolutionary advantage

I don't see how this is the case. We have a lot more violence than is necessary for adaptation or survival. I don't think our 'ingrained sense of fairness' is an advantage, I think it is similar to what already exists in nature, but is then broken down by our fragile emotional state and confused by our higher brain functions clashing with our evolutionary simple heuristics. It's like running a web app in AWS to control a shopping list and it's source code consists solely of algebraic expressions. It's cumbersome and problematic. I'm sure developing our higher brain functions was useful in our survival, but it clearly conflicts with our instinctual survival traits.
Give me an api end point to send an image to, and a text response. Ill hand you cash.
I've been developing with iMX over 5 years and I'll heartily recommend that part over any other Linux-class SoC on the market right now.

Freescale's support is probably the best available out there in this class of chips. Documentation is mature and plentiful (excepting the GPU of course but that's being worked around), and there is plenty of code sitting on their Github servers including Yocto recipes that are pretty close to mainline.
So how would you solve e.g. a number factorization problem using these machines and a divide-and-conquer strategy?
Until we have One World Government we'll have to respect the laws of the countries we do business in.

This is an example of why some local services are winning out against global competitors. Respect for and knowledge of their specific niche.
Running a clothes dryer unattended is not safe. Those appliances are among the more common causes of house fires.

And as a practical matter, busy parents with small children can't defer running the washer and dryer. It needs to finish in time to fold and put away the clothes, and you often need to run multiple loads.
A well designed refrigerator can hold temperatures without "turning on" for quite awhile if the door isn't opened and warmer food placed in it in that time period. The insulation is "passively storing" the temperature differential.
Refigerators commonly have a compressor to cool the freezer, and then a heat exchanger to equalize between the freezer and the fridge.

So the freezer can store energy by working extra hard bringing things down from -5C to -20C whenever it's expedient, and the equalizer keeps the fridge in its usual temperature range. Nothing spoils, and you don't even have to notice.
Just curious, did you advise others to invest in a specific product, business, market and or idea? Micro or macro?
3.33 years after its release, someone actually beat Threes
At a prior employer of mine, you accrued 12 sick days per year, up to a maximum of 120 in your bucket at any given time.

If you were ill, you were permitted to use as many of your accrued sick days as necessary. In any given calendar year you could take five sick days without any documentation, but the rest had to come with a note from a doctor indicating you were too ill to work.

There was also a company policy that stupidly tried to incentivize attendance at work: if you used no sick days in a year, you would receive a "bonus" vacation day to use the following year. Setting aside how this incentivizes people to come into work when they're sick, it also set up an perverse incentive after an employee actually had to call in sick.

Suppose you had to actually take a sick day due to illness. That day off cost you the free extra vacation day next year. Now you may as well just "call in sick" later in the year and exercise your remaining un-validated sick days.
https://github.com/A9T9/Free-OCR-Software

Based on this github they might be using the microsoft ocr library.
> ... already having an HR department to deal with employees and labor laws

Isn't the HR department a thing because of the employee labor laws?

Maybe they need a "Legal team" to manage their compliance with state regulations? Or is it possible Comcast already has a legal team covering all the other state regulations they already have to comply with?
I actually need to do this. Is there a best practice for handling the certificate? It needs to be installed on the machine for the browser to trust it. All I can think of is to make a new certificate for every machine at install time and binding an obscure domain name to the loopback interface, so it would be highly unlikely to overlap with a real site.
Yeah, "continuous" was a bad choice of word.
> are you really going to make the point that metaprogramming should be banned ?

As a fan of the concept of the "Catfish" developer (even though I'm a "corporate drone"), absolutely.

Or, if not banned, kept to an absolute minimum. It's like the preprocessor in C. You can do anything and everything in it... but should you?

You can be exceedingly clever with metaprogramming, but clever code is exceedingly hard to read and maintain. Give me boring, explicit code any day of the week.