jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Yes, staying idiomatic is a good idea, it's worth pointing out explicitly.

As a tangent, while the original author was trying to abstract away the loop, I feel he left too many fragments of the loop behind, such as the start and end conditions. As such, I don't think the sum function is cheating too much, and is in fact the goal. I might describe the Total as "the sum of the dies' face values," instead of the more verbose: "the sum of the dies' face values, starting from the first die and ending at the last die."

In a sense, this runs parallel to your reminder to stay idiomatic: when you sum a list of things, it is common to add them all together, not just some subset. It is this shared understanding which lets us be succinct.

Though I do fear that I'm preaching to the choir :-)
I've used Drools: http://www.jboss.org/drools/

It's a deductive rules engine for Java, so you give it some objects with state and apply a set of first-order(ish) logic rules to them, in an if-then kind of form. You can give rules different precedence levels to create a sort of cascading effect.

Rules are stored in plain text, but they're read in and compiled into memory for efficient execution. Defining your own DSL spec is a breeze. Your rules are executed in the rest of the application with a few simple method calls. It integrates with Java in a really slick way, so you can work with POJOs and your rules operate on them.

It's a pretty cool DSL creator, actually. I used it in a research project by integrating it with the Eclipse JDT and creating a DSL for source code manipulation. Then I hooked it up to a little inference algorithm we created, and the result was a plug-in which could take a before and after piece of code, analyze the difference between the two (specifically in the case of adding annotations to legacy code), and generate a set of Drools rules that could automatically migrate similar legacy classes. See page 5 of our paper for an example of how our DSL rule base looked: http://people.cs.vt.edu/~tilevich/papers/rosemari-oopsla.pdf
There are so many things that are wrong with it.

"The individual "must exist for his own sake"

That "must" in there is basically undermining her own claims about rationality.

It might very well be that the individual exist for his own sake. But "must"? That's a pretty unsupported moral claim and by no metrics rational.

Her focus on the individual is in itself a very naive interpretation of reality.

What individual is she talking about. No man is an island. The very existence of what we call individuals depends on so many factors from our ancestors to the existence of a live-able planet to the air we are breathing.

If anything she wrote self-help books. To call it philosophy would be a crime to philosophy.

Or what about A = A. Existence exist. But what is existence? That is the question you must answer before you venture out from the premise and start prescribing what is right and what is wrong.
The highest income people I know are in the trades... plumbers, electricians, concrete. They make far and away more than the programmers I know.
Wait, they fly airplanes full of diapers to the West Coast!? I wonder what quantity of jet fuel exhaust gets spewed into the atmosphere, just so you can get diapers the next day. Even with the increased per-worker efficiency, is the overall environmental impact worse or better than cloth systems, or simply getting them from the corner store?
Prisons will probably have to adopt some form of electronic countermeasures. Civilian GPS is easily spoofed, auto-targeting lasers could make onboard cameras useless, and radio jamming ought to be put in place regardless of drones to combat cell phones.

Governments are able to play the game of constantly one-upping electronic warfare systems, but you could make it too expensive for civilians to have any sort of control or visibility when flying a drone over your site.
I think part of this is linked to not being at market equilibrium in low skill jobs. For example there are over 6 million jobs not filled in America most of which are low skill, some of which are due to structural unemployment like server staff turnover after the busy season.

The minimum wage right now is lower than it needs to be, which artificially create more businesses on the low end of the spectrum. If the minimum wage went up I think you’d see fewer small businesses with fewer openings, but the remaining workers would get a pay raise and the market could handle it.

For example perhaps instead of 6.5mm open jobs and $10 min wage on average and 3% unemployment you’d see 2mm open jobs and $15 min wage with marginal change in unemployment.

Just an illustration to explain my thought
Yes, good point. Note to self: don't accidentally lose phone.
Must be getting killed, times out for me.

Too bad, because I had wanted to see a python specific version of http://rubular.com
Can you please put it somewhere on the Internet. I'd love to look at it.

Thank you in advance.
For myself, some of the main reasons I like OpenBSD:

* Secure and functional out of the box. The base install comes with many common services ready to go, and I don't have to worry if I turn them on.

* Simple, understandable. With a little learning, I understand how my systems will behave. I love it that the man pages are present, current and thorough.

Are there downsides? Yes, of course there are. Hardware support is often lagging, and some OS features are still missing that have been in other OSs for years. OpenBSD is a smallish project, and a few dozen part-time devs can only do so much.

So do I recommend that everyone use OpenBSD for everything? No. But I think it's worth learning and adding to your list of options. There are roles where OpenBSD is simply the best choice available, and roles where it's either poor or plain unworkable. To discount it for anything because it isn't best for everything is a limiting viewpoint.

Lastly, anecdotal... of the people I know who are really actually familiar with many OSs (Windows, Mac, various Linux, various BSD), all of them like and use OpenBSD to some extent. These are people who know their options and will choose what they need to get the job done well.
Besides Spotlight (Cmd-Space, start typing the app name), System Preferences->Keyboard->Keyboard Shortcuts. You can define key combos to launch apps.
Wow, you're making a rape analogy. Glad you decided to stay classy and not make your post an instance of Godwin's Law.
I know that making people sign in to vote is a lot of work for them.

But, we need to track what people vote on Beansight to calculate their expertise on prediction.

But maybe the possibility to vote on a prediction without sign-in could be a first step to make them connected to Beansight.
Good points in the link. The only thing I'd like to point out is that the author starts with the assumption that BOOKS are what we WANT to read. Just because they've been the norm, does not make them the best method of knowledge transfer. I'd argue that 90% of each book is fluff. Back in the day, Charles Dickens and Co. were getting paid by the page, hence why all the classics are lengthy. Add to that the fact that school essays come with size requirements (a poor way of making people iterate on their thoughts), and we have a system where size is king. We've gotten used to a book being 100 pages or more, but knowledge can be transferred a lot more efficiently. Hacker News is one example of a better method, which really brings us to the following (incomplete) list of more concise writing methods:

- Cliff Notes

- Pamphlets

- Blogs

Some people see reading as a leisure activity. I see it purely as a knowledge transfer method, hence I prefer it to be concise and to the point. The only argument I can think of in favor or lengthy books is that by spending more time on the material, it sinks into your head better.
Everything on the iPhone (from 3GS forward) is already encrypted afaik. That's how remote wipe works instantly (by just deleting the encryption keys)
I think different people use it differently. Certainly a lot of people use it to postpone dealing with stuff.

I do think it’s possible to use it as a tool to help you deal with stuff though, and I think that’s what the person I was replying to was doing.
Exactly.

I sometimes wonder if people are so in the bubble that they don’t realize we’re rarely the audience.
The fact that we _still_ can't disable the drafts "feature" says a lot about how little they listen to user feedback. I've not found a single person who likes that behavior, the behavior doesn't make any sense. There is a good reason almost literally every other chat app with a similar feature simply uses color/icons to indicate the same thing.
Your dad is right.

If the wild alarmists are correct that the only way to prevent destructive climate change is to immediately dismantle all human economies and return to a life more like that of the middle ages, maybe we should just forget the whole thing and invest in sunscreen.
Usually, it is the healthcare provider, they require drug testing (urinalysis) and require patients to waive patient privacy. The details may vary by state or among providers. And, I believe some healthcare providers require patient privacy waivers that are broader than specifically required by the locality. This might be an effort to avoid having to update the patient waivers as local law change.

For example, a healthcare provider in Seattle, WA (UW Physicians') uses a controlled substance privacy waiver that can be read to allow any state or local agency access to a patient's medical record for any reason.

https://www.washingtonpost.com/national/health-science/state...
> [Deputy Attorney General Jesse Drum] said trackers placed by the government under a warrant are distinct from those placed by private citizens. Removing a device from a car where it has a legal basis to be “deprives the police of its use,” he claimed, and constitutes a crime.

That argument doesn't make sense if the suspect doesn't know that it belongs to police. Presumably, the suspect wouldn't have known in this scenario, and chances are a meth dealer has non-law-enforcement entities after them in addition to the police. It could've just as easily been a disgruntled "customer" or competing dealer who placed the device.

If I see a tracking device on my car, it's getting removed. For me, that'd mean contacting the police and asking them to look into it, but I'm sure plenty of people would simply remove it themselves. Why would that be a crime?
No, it is upscaled on the google side, before it is sent over the net.
So additionally to "Bioweapon Defense Mode" this will also be invisible to radars?

https://en.wikipedia.org/wiki/Stealth_technology
If they're "rebelling", then so are Russian agents here covertly. I'd say it's pretty clear the Constitution didn't intend for arbitrary criminal acts committed by individuals or small groups to count as rebellions.
How is that different from 2012 (or earlier)? I've had stuff on Heroku for years, never had a problem with this.
The line, "Money is a side effect of specialization" reminded me of one of my favorite Gary Vaynerchuk lines: "Do the single thing that you know best. Bring it to the lowest level. The sweet spot. It doesn't have to be music, doesn't have to be hip-hop, doesn't have to be P. Diddy. It can be P. Diddy's hair."
I'm not sure how to efficiently implement redis-style sorted sets using SQL, but the fact that I have to think about it at all means it's easier to use redis.

A lot of the other things could probably be done with the right combination of stored procedures and clever SQL but again, redis makes it so much easier as to make things qualitatively different. It's just a bunch of C files with no real external dependencies (I don't even have to run ./configure before building it!).

Operationally, for a generic non-db-expert kind of person like me, redis is much simpler to manage than PostgreSQL. With redis I don't need to worry about vacuuming, write ahead logs, archiving, query tuning & statistics, lock management, etc (to name a few things from the config file).
Actually, there is no paywall, yet, just need a free user account to get thru the "anon-wall", though I hear they will be adding a true paywall in 2011.
With Chrome 8 (at least on Mac), you can enable WebGL in about:flags
It was going along well the first two or three years and then it's like someone flipped a switch and turned on the douchebag magnet, then the ultra-right wing nutjobs arrived in droves. That's when I stopped commenting and pretty much left.

I'm not political in any way either left or right (I'm Canadian we like out political parties numerous and weird) but I found digg had become very polarized politically and to the point it was no longer a social news site it was a soapbox for for extremists.
While no one ever claimed it, tptacek was correct in assuming people were thinking it. Or, at least, a person was thinking it.

I'm really glad to see a possible explanation for why Homeland Security would be cracking down on music blogs. While I don't agree with the DoHSs actions, I now have a foothold in understanding the situation. It may or may not be correct, but as a fairly logical interpretation of the scenario, it'll suffice.

I'm disappointed to see your fairly dramatic response (though I like the elipses and poetic linebreaks :) ) and 'yummyfajitas's pat response earn collectively more upvotes for delivering far less information (no offense).
this is the free crack to get em hooked before they drop chrome os on the enterprise.

in all reality, i have been on google apps deployments where chrome was being adopted and there was no easy way to push it to 1000s of users, let alone configure and manage. this will really make life easier for admins transitioning to google apps who choose to adopt chrome as well.

not to mention google is providing support for chrome to those who have google apps for business.
It really depends which large company you work for. My very first job was at an average large company and it was rather soul crushing. I currently work at a huge media company that has a terrific work atmosphere/culture. I think the difference between the two companies was a bankruptcy. The later company went bankrupt, projects were canceled, the hackers in the room figured they would be laid off any day and started working on whatever they felt like. Clients caught wind of what the hackers were developing and started buying in. The upper management saw all of this and didn't dare mess with it.
Can you share what happened?
Why not yarn? That’s been around a really long time to give you fatigue.
Oh yes. When you pick the most godawful colour scheme for your UI to ensure the designers actually make a decision, and it sticks around long enough for everyone to get used to it and become standard.
I don't agree, but anyway, how does that even make him a scammer? Vitalik rarely talks about the price of ETH, and he's very open about the risks and shortcomings.

During the 2016-2017 bubble he was even tweeting that the crypto space had done very little to even deserve the runup. However you had several other prominent people tweeting things that only amplified the bubble, so it did little to tame things, but at least he wasn't participating in it.

If he's a scammer, as you put it, he's doing a very poor job of that.
I was looking at two items in the store today and trying to decide which one to buy. As soon as I saw one was not made in China, the decision was simple.

It's unfortunate that China is controlled by the CCP.
If someone posted such a thing, a mature, reasonable person would respond to the person’s ignorance with empathy for their interest in the subject and useful information. The idea that someone can post an article on the Internet, have it be read by someone because it was linked on HN (perhaps completely without their awareness or endorsement), and have someone like yourself insult and demean them due to what you see as ignorance should be embarrassing for you. Have you considered the possibility the author wrote this article in part to enable them to have a way to get an informed audience to enlighten them further on a subject they are interested in?
Wish I could find it, I tried briefly but failed miserably. Was kind of hoping someone would recognize it from my comment and be able to provide a link as I wouldn't mind re-reading it myself.
It's a documented phenomenon that happens so regularly there's a name for it: shrinkflation.

https://www.theguardian.com/business/2017/jul/24/sweets-are-...
My understanding is that this doesn't _technically_ do anything other than send a message.

> Although the district councils handle local matters and have no direct say over the chief executive’s programme, the elections were seen as a barometer of support either for the anti-government protest movement or for the embattled leader Carrie Lam Cheng Yuet-ngor and her handling of the roiling unrest. [1] is the source and seems surprisingly balanced on the mechanics of this election, but I'm no expert on HK politics.

[1] https://www.scmp.com/news/hong-kong/politics/article/3039151...
The iMac is almost 10kg (22lbs), that's what it costs for a monitor arm that can support that weight.
The idea is they can write their charts in excel, but have them rendered on a public (or secure) website automatically, allowing them to be embedded in web pages and documents without having to provide the raw data.

+1 for the api thing :)
The bizarre thing is that the help page says:

"You can remove your background image at any time by clicking Remove background image in the bottom left corner of the homepage."

But that just reverts it the default image, not the old white.

Edit: Actually it looks like the forced background is just temporary, for 24 hours, according to the Google Blog post:
http://googleblog.blogspot.com/2010/06/art-of-homepage.html
Sorry, I thought you were being intentionally daft by stating the only reason to deploy on IIS would be "Kool-Aid" etc. In any case, you quoted my short answer to what I thought was not really a question to begin with ("a very solid framework").
you have to click change background, then select the white one at the very end of the list.
The "uncanny valley" might apply here.
To Wolfram Alpha:
Hello, HAL. Do you read me, HAL?

Result:
Affirmative, Dave. I read you.
I would be fascinated to see several hundred years down the road how natural languages and computer languages have comingled and evolved into something new. I'd be inclined to believe that bringing natural language to computers won't just be a one-way street.

You already see this in places like hacker news here where people often use constructs like "s/thing/other thing/" because it's more concise and useful than writing out the natural language version.
Sure, but at least until now we haven't seen the tipping point for a change in Google's product design approach.

In any case that wasn't my point, my point was that as an entrepreneur one shouldn't be deterred by the mere fact that a big competitor is moving into your market
Buzz Aldrin cowrote a novel called "Encounter with Tiber" about the discovery of alien artifacts leading to the first colonies on mars. 11 year old me loved it, FWIW
I can't find the source right now, but I remember it being mentioned that the founders took some cash off the table during the first big funding round.
Thanks! There's always more to learn, and I'm definitely not the first to realize these things.

Glad you found some of it insightful. I'll take you up on your suggestion, and I've added the "Multitask vs Async" post idea to my list.
You know, I regularly see what you described as a "cliche" of the science fiction genre ... yet, like you, I can't name a single story that actually used it.
WebSockets and WebRTC are two very different protocols and have very different use cases.

WebSockets is an extension to a HTTP request that permits a bi-directional, persistent link between a client and server.
You can exchange chunked messages, reliably and in-order using TCP. Once the WebSocket is established, you have free reign over what datastream is sent.

WebRTC is an extension of RTP (a UDP based protocol) that adds a layer of safety (to both users and to network infrastructure).
The key requirement for "real-time" communications mandates that reliable and in-order delivery must be sacrificed in favour of getting low-latency data transfers.

Another benefit of WebRTC is that browser-side javascript has no control over the exact datagram being sent over the wire (called RTCWeb, all WebRTC communication is encrypted between peers using SRTP). This eliminates a whole class of UDP based attacks. The client (or intermediate proxies) must not be able to send a specially crafted UDP packet to arbitrary hosts and trigger a distributed reflection attack.

Having said that, WebRTC can be used to transport arbitrary data, you just can't send an arbitrary packet.
The phrase "The harder I work, the luckier I get." is often spoken by those who believe in the "Just World" theory. It allows them to believe that their success is due to their own "goodness" and conversely, that others who aren't as successful must not be as "good".

In reality, luck plays a huge part. When you see the hard working landscapers around your building some morning, you should be thinking "That could be me if I hadn't won the ovarian lottery."
People are going to wonder what happened to "Email2" though.
Why are people downvoting this? He's not making the argument, just explaining that people will put up this strawman.
I used to work near here:

https://www.google.com/maps/search/8th+and+townsend,+san+fra...

And people would regularly go the wrong way around the damn thing.
It's worth nothing that functional programming is hard not because of the functional paradigm, but due to the constraints you have while solving a problem (memory, for one).

This requires changing the simple, composable functions that you could reuse forever, to complex ones that have to split the work into multiple stages.

Another source of inherent complexity which has nothing to do with the solution of the problem itself, is the handling of the input or runtime issues. Input cannot be guaranteed to be always coherent, and runtime issues may arise while running (user interrupt). At this point, interrupting the computation is easy, but as an user I want maybe:

* know why the function stopped, with a meaning answer (not just a stack trace)

* know the location of the error in the input data

* the possibility to resume the computation

If you've ever programmed functionally, you know how hard is to do something as simple as give meaningful error messages buried into a series of fold/map calls.

Keeping state is a simple (and I would say equally elegant) solution to this recurrent problem. Please consider that I'm saying this from a functional programming perspective (as in: objects as localized state containers not necessarily breaking the purity assumption).

Another issue is that we, as humans, are based on a stateful world. Stateful user interfaces are sometimes more efficient due to the way _we_ work. This can be seen in something as simple as "now select a file", which brings up a dedicated section of stateful code to navigate a tree. As such, you are constantly faced with the problem of keeping state.
The line is 24 terrabit, so it's reasonable to assume that everyone will have a chance to peer to it, as it's unlikely to be fully booked.
I find it sort of terrifying that this was written by a teenager.