jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Yes, C strings are \0 terminated and that is what you'd end up with.

Memory management is between you, malloc() and free().

Assuming this were malloc()d memory, if you wanted to free up the unused bytes, you'd probably:

char *condensed = strdup(z_terminated);
if (condensed)
free(z_terminated);
else
// out of memory
The automotive industry was the first to build new state of the art factories in East Germany. Porsche in Leipzig, VW's transparent factory ( http://www.glaesernemanufaktur.de/gmd.jsp?dok=&lang=&... ), ...
Yes, I wasn't at all clear. What I meant was that sitting down as a newbie to Visual Studio, I was surprised at how many of the project types created by doing "File->New Project..." resulted in unmanaged .EXE targets. But I could have been misinterpreting that.
http://gameswithwords.fieldofscience.com/2011/04/missing-lin... raises some questions about the reasoning. In short, while it's a very interesting data set and a plausible conclusion, a number of conjectures need to be studied further. AKA the progress of science.
This article is better:

http://online.wsj.com/article/SB1000142405274870454760457626...

Comments from someone who reviewed the paper and was skeptical of the findings are available at:

http://www.cslu.ogi.edu/~sproatr/newindex/atkinson.html

There are links to some of his other papers on the guy's home page (http://www.psych.auckland.ac.nz/uoa/quentin-atkinson/), here's two on related topics:

http://rspb.royalsocietypublishing.org/content/early/2010/04...

http://www.isita-org.com/jass/Contents/2010vol88/PDFonline/J...

Interesting quote from the second paper, which looks at vocabulary changes in languages:

"Recent work has also shown that rates of lexical change are predictable based on the frequency of use and part of speech (Pagel et al. 2007) and that some meanings have a lexical ‘half-life’—the time after which there is a 50 per cent chance that the word is replaced—in excess of 20 000 year"
I had a similar situation at grad school.

I turned in a proposal (what ultimately was my thesis proposal). I had created my own model and it was described as such in the text. I got accused of plagiarizing my own model because I didn't cite a source. The comment was 'it is as if you are claiming to have invented it yourself.' approximately. The next line of feedback was something to the tune of 'This is what some might consider plagiarism in a university setting.' I got 1 point above passing for the paper.

I went to the professor and told her she clearly didn't even read my proposal because it anyone who actually read it would have read that it WAS my own model. Being accused of plagiarism and not reporting it to anyone was a fun ordeal. There was no consequences because it wasn't reported but I have my dignity and fuck you for accusing me of plagiarism. I went to the head of the program who said he basically didn't care, the professor told him everything was fine. So I went to the dean of the school, who said the head of my program told him everything was fine. But nobody would actually read or listen to any feedback. Ruined my grade for that course and really made me dislike the university and their ridiculous resistance to any sort of feedback.
The original source link at Vimeo (which, as other commenters have stated, should probably have been linked to instead of VentureBeat) states that the camera work was by http://whitmoreprod.com/ , which seems to be a professional film production/design firm.
I always thought they should have used the phrase "Manufacturer's Suggested Retail Price" (M.S.R.P). But I would actually favor striking the word "dollar" altogether. People can just use ordinary silver pieces bearing the mark "One Troy Ounce", which describes its physical mass only.
In theory yes. In practice they move to Libya.
If you are going to sue a company in CA, you will need a lawyer licensed there.

For contracts, you can hire a local lawyer if they put Nevada as the jurisdiction in the contract. Also, you can then sue them in Nevada.
Hmm. How does she know to use the median? What if I alternate between a Cauchy distribution and a lognormal (having different mean and median)?
(Very apropos nick, by the way)
Right, it's like when you don't give a person food. You aren't harming him - his own body is doing that as a secondary effect of simple food denial.

These distinctions are important.
Another thing that kind of builds off of this that I've been thinking about lately after reading sama's blog posts. Do top VC companies that make predictions on the future of big companies shape the outcome of future startups? For example, if all the top VC firms are saying widgets are going to be the biggest thing in the next 10 years, does that cause enough of an influence to create that market and persuade people to go into that field rather than the one they were already intending on?
Any idea of what the time frame is for Docker Extensions or is still at the early proposal phase?
Definitely true: the key point is not having the screen be a fixed position from the keyboard however you accomplish that.
If you're looking to go lower (systems) level, or even if you're not, rust is worth checking out then too. It's the best experience I've had letting you require only the interface that does what you need, and it's also great at letting you make a type "from" something. e.g. you could require something be a HashMap, or merely that it can be converted `Into` a HashMap (a free action if it's already a HashMap).
Interesting work, and here are a few thoughts (in no particular order).

10 seconds seems very high for what's being done here. We can get realtime facial recognition (at like 30-60fps). Recognizing chess pieces ought to be trivial by comparison.

If you're taking the rules seriously, there should be a lot more rules: there are many (many) invalid board states. It seems strange focusing on just a couple. In fact, it seems strange looking at rules altogether. Why not simply have your algorithm figure out what piece is at what position?

SURF or SIFT might be useful here; where you're looking for features that identify specific pieces. In other words, I'm not totally sure if ML is necessary. I would consider processing the image with something like a canny filter and then running a shape detection on the contours.

Either way, really cool project, and great write-up!
> Following on the recent “faster than wc” blogposts, I decided to end this fad once and for all, using the best language ever created : Brainfuck.

This "Go faster than C" post was a complete joke, one could very easily write a "C faster than C" the exact same way to prove the absurdity of an optimized implementation that does not do what the original program does.
That isn't the insect apocalyse. The insect apocalyse is in a decade or so when insects overcome what it is we are producing to beat them down.
Some people believe Chromium offers the best browsing experience as well as security. For those people there is now a choice.
There's definitely still new Linux systems that are 32 bit (Raspberry Pi, etc) though probably not many as a developer computer. Maybe Crouton on a Chromebook?

Anyways you have a point about the simplicity of mmap. Reading up on the suckless philosophy, it does seem to fit.
Analogies can be useful even with zero common physiology. Please do try to compare human behavior to anything and everything in order to gain perspective on it. It's useful to compare mathematical models to human behavior, let alone another life form that we share genes with.
When I have described it that way, I have been told by people who seem to know that it's more complicated than that. I haven't been convinced by any of the explanations I've heard, but I don't know what the breakdown is there between my ignorance and not getting it explained very well.

Still, I'm fairly sure there's at least a strong element of that being one of the primary uses for this. It is not intrinsically useful for moving classical bits around in the usual way, because we have that problem far better solved with conventional technology. (All this quantum stuff is slow compared to conventional communication, and only statistically reliable.)
> What can I do to improve my attitude toward useful areas of my life and convince myself to stop wasting time?

I've been lucky since about 25 and haven't had major bouts of laziness since.

My solution before 25? Methylphenidate Hydrochloride. I wish that wasn't the answer, but it helped.
Location: Rhode Island
Remote: No
Willing to relocate: within the US
Technologies: Git, Go, Perl, SQL, Lua
Portfolio: http://patrickhurd.pro/portfolio
Email: patrick.hurd.1995 (@) gmail.com
GitHub: https://github.com/djent-

I have studied information and software security. I am interested in software development as well as code auditing, penetration testing, etc.
Yes, but they are only exchanging a constant amount of information to fool the server challenge, whereas we could hope to do better if the server builds challenges which use information that he knows the client has.

For some reason, this inspired me to write a blog post: http://a3nm.net/blog/deduplication_attacks.html and http://news.ycombinator.com/item?id=2489594
light on details or analysis
Another article that assumes programmers are engineers. Since I like gardening, I suppose I should be called an environmental scientist.
Th e ENIAC women would simply “set-up” the machine to perform these pre-determined plans: that this work would be turn out to di›cult and to require radically innovative thinking was completely unanticipated.

Underestimation of a task seems to be key in allowing women to succeed. Not only does it fool the gatekeepers, it also fools the women themselves. Put a mop bucket full of water in a typical woman's hand, and she'll lug it around as if it's nothing [EDIT: assuming she's into that kind of thing.] Hand her a dumbbell the same weight, and she'll wilt and clutch at it with her other hand. Take her backpacking in the mountains, and she'll prove herself ten times as strong as she would allow herself to be under a squat bar. Same thing in computing -- female office workers who can do wizardly things with spreadsheets and accounting systems often don't see themselves as having any aptitude for computing or programming. They see the IT help grunt who fixes their email login as being naturally much more gifted than them at "computer stuff." If they knew that what they were doing was basically computer programming, far fewer of them would develop any skill at it.
Aren't most activist movements led – to a great extent – by people who take rather maximalist positions? This is true in areas which have nothing to do with free software.

In a way, it is a form of society-wide bargaining. Ask for everything, get something. Ask for something, get nothing. Start big, end up small; start small, end up nowhere.
> The Free Software Foundation was founded in 1985. From there since Free Software has only lost ground. I don't think Stallman would agree that "lack of pragmatism" is really what's stopping things from changing for better.

Or maybe the FSF has absolutely miserably failed at actually getting their message out there?

The Right to Repair movement has been more successful; there's quite a bit of overlap between the concept of Free Software and Right To Repair: both are fundamentally about "I can do to the machine I bought whatever I want!" And it seems both the public and lawmakers are receptive to this argument. Right to Repair hasn't been as successful as I'd like (yet), but a lot more successful than Free Software. It seems to me that part of the blame squarely lies with FSF's inability to actually communicate their message effectively. Open Source has been more successful either.

I never like this kind of externalizing of issues and blame other people/corporations/governments because it's just not helpful. Even if you're 100% correct about all of that, you can't change what other people/organisations do where you have no influence, but you can influence what you do, so it's almost always better to think about "what can I/we do better?" rather than "what can they do better?"
I read that more to mean that by playing games that are non-free, you are fueling the existence of more non-free games, and thus doing damage to yourself in the sense of "freedom" since you are perpetuating non-free software. The game itself is not causing harm to you.
I'm currently testing the "longevity" of them.

I've had one on my keychain for a couple of years now, and so far it appears to hold up pretty darned well. It sits in my pocket unprotected with all my other keys, and despite its fair share of scratches it still works.

The reason for the "testing" is that they appear kinda "flimsy" compared to my Nitrokey, but so far it has stood up to every beating i've given it.

+1 for Yubikey.
And? What does this trivia change about how you interact with that project? Is it not possible that there were other ways you could learn about this eventually?
I understand why they don't talk about the CA functionality in OpenSSH (they want to sell their own product after all), but OpenSSH supports CA-based certificates out of the box, which makes it easy to generate auto-expiring SSH credentials. Then again, with a CA-based approach the root key becomes the golden key and needs to be protected, which might still be easier than protecting individual keys though.

I recommend using a bastion host through which all SSH connections go and to use a DevOps tool like Ansible to automate certificate/key placement on every single host. In addition, if you have a trusted network that people log in via VPN you should also limit SSH connections to the bastion host to addresses from this network, which will make it harder again to use stolen credentials. Finally, only a handful of people should have such credentials, most maintenance should be performed in an automated way via DevOps tooling.
- Oil industry denying climate change [0] [1]

[0] https://www.theguardian.com/business/2016/apr/13/climate-cha...

[1] original source of Guardian article: https://www.smokeandfumes.org/documents/document16

edit: add original source
>>"mess creates stress"

Everybody is different. Some people enjoy working in a messy room. I guess everybody is crazy in a different way.
I'm sure many on the ground at DFO cares but yeah there's no political leadership to do anything to prevent the seemingly inevitable extinction of residents.

No political will to cancel fishing. No political will to halt TMX, etc.

Jobs > *
this reminds me of an old XP-era program i had in the late 90s. every now and then I try looking for that program but can never find it (I thought it was called morpheus or something similar).

Anyways, i have something fun and nostalgic to play with for tonight
True story - I just used this principle to re-org my closet, a perfect pandemic thing to do. All the most recently used, still-clean-enough garments are placed at the end easiest to reach, the level one cache. Rarely used items are at the other end, the long-term storage, while in between is the L2 cache. On laundry day the L1 cache gets flushed...
True. An analgesic drug will help cope with the pain caused by inflammation, but an anti-inflammatory like Ibuprofen will reduce the cause of the pain.
Exposed is a Kotlin SQL library that you might be interested in.
sRGB was engineered to be indistinguishable from a power 2.2 function, even though it's harder to calculate.
Yeah I’ve been struggling for decades to stay at a stable weight, and have found my personal perfect combo that works now is “20% exercise and 80% diet”. Strict OMAD, zero processed sugars, and my dinner is a loaded up feast of a plate full of nice healthy food. Exercise is 1hr walks (at a solid pace) and/or half hour of body weight exercises.

With that combo I’m the healthiest I’ve been since my teens.
So, if I get this right, ZeroDB ends up being a service to persist (to it) a flat dictionary of encrypted buckets.

When a given bucket is requested and decrypted by the client, it will have the data as well as the references that let the client treat them as a B-tree, presumably because the clients put them there?

I'm taking that assumption from "The server doesn’t know how individual objects are organized within a tree structure, or whether they even belong to a tree structure at all."

What does this mean for adding a node? Does the client have to traverse the whole B-tree (requesting log(n) entries) down to the point of addition? How about rebalancing, etc? It seems like the clients would be wholly responsible for maintaining the tree.
We try hard to avoid spin.

From the article:

Google Ads, one of Dart's biggest customers, is committed to Dart and supports this new strategy. Scott Silver, VP of Engineering for Ads, says, “We are committed to building our next-generation web apps with Dart, and a renewed focus on generating optimal JavaScript helps us deliver great apps to everyone with a modern browser. Dart has significantly improved our engineers' productivity and our ability to quickly launch and iterate. We currently have one million lines of Dart code and the number is growing fast.” Many other teams inside of Google, such as Google Fiber, Google Express, and Google's internal sales team, use Dart for business-critical apps.
There are certainly times when operators seem to be overused (I'm thinking of Lens in particular). But I think this criticism is overstated. One of the things that makes it more desirable to use operators rather than named functions is that due to type classes, the meaning of the operators will change with what context they're being used in. Another is that sometimes there really isn't a great name to be found; an example is the `<* >` operator in the Applicative class (space put in for formatting). Once one becomes familiar with the operators, it's much easier to read something like `doThing1 >> doThing2 >> doThing3` than `sequence doThing1 (sequence doThing2 doThing3)`.

I'm not sure why you chose the two examples you did. The Haskell version of the Ada program you wrote is as simple as can be:

hello = putStrLn "Hello, world!"

While I'm sure an Ada program that did what the code you pasted does would be of comparable complexity to the Haskell version. And being familiar with how monadic functions work lets me guess pretty well what the code does, despite having very little knowledge of the libraries involved.

main = do -- atomically create a new transactional variable init'd to 0
shared <- atomically $ newTVar 0
-- atomically read the variable and print it
before <- atomRead shared
putStrLn $ "Before: " ++ show before
-- Fork a thread where we show the variable and sleep 25 times
forkIO $ 25 `timesDo` (dispVar shared >> milliSleep 20)
-- Fork a thread where we add 2 to the variable and sleep 10 times
forkIO $ 10 `timesDo` (appV ((+) 2) shared >> milliSleep 50)
-- Fork a thread where we subtract 1 from the variable and sleep 20 times
forkIO $ 20 `timesDo` (appV pred shared >> milliSleep 25)
-- sleep 800 ms in the main thread
milliSleep 800
-- read the variable and print it
after <- atomRead shared
putStrLn $ "After: " ++ show after
where -- define some convenience functions
timesDo = replicateM_
milliSleep = threadDelay . (*) 1000

atomRead = atomically . readTVar -- perform an atomic read
dispVar x = atomRead x >>= print -- read then print what was read
appV fn x = atomically $ readTVar x >>= writeTVar x . fn -- read, apply a function and then write
No, I'd use an electric motor.
I had this very same thought today, reading Inside the Machine by Jon Stokes. Recommended. Amazing how abstract the programmer model can be from the real hardware.
Here's a example from the New York Times--Haskell in the Newsroom.

Eric Hinton (whose first programming language was Haskell) gave a phenomenal talk about the cultural shift to Haskell at NYT, and the interesting ways in which they use it.

Some examples include Fashion Week image processing to analyze which colors are in style, building composite images by hue (and the massive speedups they get from parallel processing), book review analysis, high-speed video processing, and so on.

Worth checking out just to gain a newcomer's perspective to programming, what they were able to accomplish with Haskell, and how they integrated it into their existing environment.

[0] http://www.infoq.com/presentations/haskell-newsroom-nyt

EDIT: Clarity.
I've never understood the "double pay" argument.

You pay for internet. Netflix has to pay for internet too. To deliver packets to Comcast's network, Netflix can chose to pay any number of transit companies, or they can cut out the middle man and pay Comcast. Why is it ok for Netflix to pay a transit company, but not Comcast?
Are there people here on HN that believe the election was stolen? I haven't seen any evidence, most of the lawsuits haven't borne fruit either. However, I also recognize that there may be blindspots/biases.

I'd really like to hear from anyone who believes this, to present a cogent argument. I promise not to attack. I want to hear the argument from the other side. I also beseech the rest of HN to please refrain from attacking anyone who is doing so.
This is a failure of leadership by the republicans - plain and simple. I don't care if this comment is perceived as partisan, it's a statement of fact. If the republican leadership had unequivocally come out against the narrative that the election was stolen, this wouldn't be happening.

Edit: Yes, it's true that the top leader and his acolytes have engineered this outcome, but the majority of the republican leadership did not want this and do not benefit from this, they were (with some exceptions) simply too cowardly to speak out against it.
God, poor Capitol Police.

Imagine having to try and reason with that crowd, to avoid having to shoot anyone.
Every election has fraud, and this one was no different. It's just a matter of the scale of fraud. From all evidence thus-far, this election is not all that different than past elections when it comes to voter fraud. There was more chance for fraud (due to more mail-in voting), but no one has been able to prove it was large enough to impact any election result.

So yes, Trump has been riling up his base with words of stolen election, which has led to this moment.
It is in memory performance, which is what I assumed was being measured here.
they will release their own governance token through an airdrop. It's the new way to fund decentralised startups - no need for VC. Essentially it's the equivalent of an IPO on day 1.
Anecdote: most pre-teachers I met in college were pretty academic crappy. Many were in it for the MRS degree, or so it felt.
This is making less and less sense. The insight that labels are not the same thing as the thing, itself is a pretty thin one when you water it down like that. You’re taking a truth and turning it into a nihilistic premise that no label is meaningful, just because it’s a label.

If that’s the case, programming must be a hellish experience for you, since it mostly consists of labeling things well.
There's just too much out there. Try to make things that replicate (subjective|probabilistic) good in the universe. Also this:

http://matt.might.net/articles/phd-school-in-pictures/

(It applies beyond academia, too)
"would you throw anyone from the last 100 years into the mix?"

Carl Orff, John Williams, Danny Elfman, Hans Zimmer.

For more individual achievements, Zack Hemsey for "Mind Heist" (aka the song from Inception) and Clint Mansell for "Lux Aeterna" (aka the Requiem for a Dream song).
I was unclear. I wasn't referring to the amount of time to get approval, but the amount of time that they'll have to spend doing an H1-B. Yes, they can hire someone to do (some of) that, but "now they have two problems".

That said, adding 2-4 weeks to the hire cycle is another cost.