skysight-inc/HackerNews huggingface dataset:
> Considering this is C, there is no way to prevent this easily since you can't express a type that is one-way convertible (i.e. sds -> char* ok, char* -> sds not ok).

typedef struct {
char *s;
} sds_t;

will produce an error if you try to pass a char* instead.
http://codepad.org/CmrskN9n
The dude ventures out to torrent a video, gets interested, and then in conclusion wants to tell Google engineers where he found it ??????????? That's great ass covering on the end bit there.
It sounds like the cure is worse than the disease.
WireGuard is, from what I understand, probably ready for prime-time, it simply hasn't been proven to be.
previously I was using the heat sync that came with the 4B, inside the ABS plastic case that came with it (both in the canakit set)
If the bank creates "new money" and lends it to a business who pays it back with interest, isn't it in fact the business who has "created" the money? From this perspective, the banks are really just making bets on who they think can create value.

In reality I don't think new money benefits anyone in particular. If anything, inflation is detrimental to money holders. As alluded to in a sibling comment, this new money is distributed holistically and is for the benefit of the system itself (or a byproduct of the system, if you prefer).
Busyness leads to bad decisions
I was thinking about this too. I just want to recoup some of my time investment. My only concern is that it'll make some people not buy in hopes that they can wait for others to pay - but I suppose those people would probably just use Chrome/Firefox with free plugins anyway.

Thanks, I'll think more about this. I think it'd also give people confidence in the security of the code - running browser extensions is a little scary since they technically have access to everything. As a customer, knowing that it'd be open sourced would give me some peace of mind that it's not doing anything malicious.
TFA specifically names what is different between SDS and libraries like bstring:

> Normally dynamic string libraries for C are implemented using a structure that defines the string. The structure has a pointer field that is managed by the string function, so it looks like this:

struct yourAverageStringLibrary {
char *buf;
size_t len;
... possibly more fields here ...
};

> SDS strings as already mentioned don't follow this schema, and are instead a single allocation with a prefix that lives before the address actually returned for the string.
My personal taste complaint with a lot of people who open a brewery... Everyone seems to think that more hops = better beer. There are so many other possible flavors and types to a beer than some type of IPA that is absolutely overloaded with hops. But that seems to be a very common type of thing to brew. When I open something and am assaulted with the aroma of hops, it's not appealing anymore.

It was interesting 7-8 years ago. Now it's just "oh here we go again".

I have a personal theory that the overwhelming aroma and taste of hops in a beer can be used to mask many errors and missteps in the brewing process, which might be more easily tasted by the customer if it were, for example, a weissbier.
PrepScholar | Boston, MA | Onsite | Full-time | Product Manager | $100,000-$200,000

PrepScholar’s mission is to improve education at scale through technology. Our flagship product is an SAT/ACT prep program that automatically learns the strengths and weaknesses of each student and creates an individualized learning program through machine learning. You can think of it as an automated tutor that provides a compelling learning experience at scale. We also have a large web presence with over two million monthly visitors to our free tools and articles.

We believe we have a major advantage over other companies in our space because of our technology-centered and analytical approach to education. We're profitable and bootstrapped, and you'll work on products that impact millions of students worldwide.

You’ll be responsible for all aspects that feed into that product’s P&L including: optimizing marketing, product, sales, and continuing technical improvements. You'll oversee growth of the entire product, including opening up new marketing channels, developing lifetime customer value, expanding our range of product variations, and improving the program itself.

You will determine which ongoing projects have highest returns (ROI), expand those, and propose creative new projects. You will translate these projects into budgets for your product line, and be responsible for implementing the projects. The implementation includes making hires and managing teams, as well as working with engineers, marketing experts and test content creators.

Responsibilities

* Build and manage a product roadmap for product launch and iterations

* Interface with engineers and test content developers to create the product

* Develop effective marketing materials for all our online channels

* Manage P&L and develop a strategic business plan to grow your product to a dominant position

Our ideal candidate has:

* Experience being responsible for P&L (e.g. running a department, running a startup or side-project with positive cashflow)

* Understanding of a broad array of marketing channels, including researching whether a channel is appropriate for a product, starting up new channels, and using tracking/metrics to prove positive ROI of a marketing channel

* Experience with SEO, content marketing, and Adwords

* Distinctive problem solving, organizational, and analytical skills with the ability to evolve product strategy based on research, data and industry trends

Please send your resume and cover letter to job.pm+hn@prepscholar.com, and read more at http://www.prepscholar.com
What format? I'm eager to know the solution to this non-problem.
It should be illegal. How much is your employer allowed to know about you or who you contact outside of work?

The answer should be nothing but there's a moral hazard wherein employees can't do much about it without limiting their career.
Loom+&+Leaf+Cyber+Week+Sale
after you're done using your hemp hacky sack you bury it miles under the earth's surface and it slowly begins to turn into coal
Substantially more than the people I know over the age of 40. Of course that’s a relatively arbitrary number.

Many of the younger people I know may not fully understand the vector they create for network penetration, but they often joke about it always listening. For whatever reason, the older the person is (in my experience), they don’t have one inkling of internet security.

My point is that I’ve worked with too many people, roughly 40 and above, who have no regard for their internet security. I know for a fact someone with malicious intent could steal their identity and assets in a matter of hours.
> as I don't believe most companies would bother to port their software to another architecture

For a Java/Node/Python application, this means changing one line in a docker file, and running preprod/integration tests.
My entire argument is that The Daily Mail is so uniquely bad in a specific way that they shouldn't be used as sourcing for anything.
Right, small actors == small (stack, code), preferably stackless coroutines that hopefully don't do much CPU hogging and just lots of cooperative behavior -- I'm ready to believe that M:N does well for that when the coroutines have small stacks or are stackless, and that you don't even need a scheduler for them if there's no yield operation as then you need only ever "schedule" coroutines whose pending I/O events have occurred.

I.e., coroutines are just a C10K method, and you must end up with more of them than you have OS threads and HW CPUs.

If, e.g., Bryan Cantrill and others who claim M:N is bad are wrong, they're only wrong -I think- if they extend the claim to stackless / small stack coroutines. But Bryan Cantrill's seminal paper on the badness of M:N threading was not about stackless coroutines, but about very stackful coroutines (pthreads).

M:N is necessarily bad if the M things have large stacks (which was and is the case in, e.g., pthreads).

M:N is necessarily good (C10K) if the M things are extremely light-weight.

Everything we see in this space, from Scheme-style continuations, partial continuations, to hand-coded CPS, to stackless co-routines, async/await primitives that allow compilers to do partial CPS conversion / coroutines -- all these things are about program C10K, which is about a) using async I/O, and b) compressing program state / reducing overhead to serve the most possible clients.

As a program state compression technique, nothing beats hand-coded CPS, but it's utterly not user-friendly. Scheme-style continuations mostly shift program state from the stack to the heap. The sweet spot is async/await.
> What I don’t want is anyone making it a point to bring their personal politics to work. We have other forums for that.

And few forums affect us for 40 hours / week of working plus whatever impact they have outside of the workday. And few forums provide the opportunity that our employers do. Getting Google to care about climate change has far more of an impact than holding a sign up in the street does.

> If I don’t like their politics I can vote at the ballot box, donate to causes, volunteer etc.

Good luck - your employer can spend billions per year and make your efforts inconsequential.

> Unionization is political but it’s on a different plane. It’s worker vs employer rather than potentially worker vs worker.

I'm glad you've come around! But this is also potentially worker vs worker, as there are plenty of workers who are happy to not negotiate on a level playing field, and who are happy not to have things like healthcare or higher wages for all (there's a weird strain of authoritarian subservience in American workers).

> Do we really want to approach a time when one group of workers takes one side, another takes another side and they protest against each other and cause disruption to the vast majority who have no interest in getting personally involved?

This has already been happening with union protests for hundreds of years. Workers don't always agree and aren't always compelled to join a union. Corporations hired groups like the Pinkertons to attack unions and kill some disruptive workers (and your employer has recently hired a firm know for squashing unionization efforts...).

Nondisruptive protests do much less to effect change than disruptive ones. Rosa Parks was disruptive when she sat in the front of the bus, early unionizers were disruptive when they shut down factories and rail, unions and activists were disruptive when they marched for civil rights, or against murders and abuses by police and government. The US was founded on such principles - tossing tea into Boston harbor was a political, disruptive act, and I bet the workers on the ship were pissed about it the next day. None of these past actions were undertaken by a majority. A minority of people supported the patriots in the Revolutionary war and fewer still participated.
This is just like consumer debt. It's better to get a 3% mortgage and put all your cash in the stock market then to payoff your house. Not only do you get a higher return, but you save on taxes.
With a work profile on Android, I can temporarily disable all of my work account stuff with the push of a button. It may not be as physically satisfying as throwing the phone in the bottom of a drawer for a week, but the vacation experience is the same.
There is a package that uses python for regular expressions, which gives you the full pcre power: https://github.com/benma/visual-regexp-steroids.el/
Some maybe, but none in near my house -- when the power is out, the gas stations close.
Is there a ceiling on what our brains can understand?
"Wait, why couldn't you use sshd?"
Prepare for Holiday Shopping Season – Credit Union Tips
I use ranger as well, when pared with tmux it makes a very powerful tool. with a nVim socket running. When I press enter on a file, it opens in a new tab in nVim and tmux changes focus to the vim window. If I want to lint or run a file, the appropriate key bind runs the command in the 'debug' or 'lint' pane in tmux with the file as an argument.

That was the key that finally made my tmux/vim editor situation into a full blown IDE.
I give money to the SAF as well, and even GOA. SAF has done fantastic work, but most people haven’t heard of them.
Show HN: Commit Messages of Frustrated Developers
Because the double type can guarantee accurate reproduction of values up to the size of its mantissa (52 bits) you can effectively use than as integers up to that size. It would be nice to be able to just have an integer directly though as that would be more efficient

IIRC some JS engines are capable of detecting many circumstances where floating-point is not needed, particularly for simple cases like loop counters, and their JiT compilers will produce code that uses integer values instead of floats for those purposes - but how reliable that is for cases any more complex than that I don't know.
> I managed to get a 55" with no networking or applications

I'm surprised you managed to find one. They seem quite rare these days outside of some budget brands that don't bother due to cost.
Because even back then, in simpler times, only a simpleton would discard the personal wallet they had prior to taking the job and exclusively use the company-issued wallet.
AMD has the same "Secure Enclave".

AMD PSP; "AMD Platform Security Processor".

:(
To your defense, you're sharing a truth that is often difficult for many technical founders to hear/read. Many either over-estimate their non-technical skills or don't care to think about them at all, as "the better product always wins" myth remains present to this day. I am not personally exempt from this thinking, especially at the start of my entrepreneurial journey, where I wasted many months bringing products to market, to no avail. I am also certainly not the first person to make this observation.

If you aren't willing to hop on a demo of your product via video chat with a potential customer, per their request, you're directly lessening the chances of that product's success. With that said, once you realize that without marketing or sales, nobody will see your beautiful creation(s), you quickly realize the need for such. Personally, this lead to a desire to learn, practice, and master these skills. However, you can easily find others with a seemingly natural affinity for these skills and delegate these efforts to these individuals (whether partners or employees), enticing them with stock and/or salary should you have sufficient revenue and/or funding.

EDIT: I want to make it clear that I am not suggesting solo ventures succeed less often than those with more than one founder. There is research (see that from NYU and Wharton) pointing to exactly the opposite.
Chispa Project which builds libraries for elementary schools in Honduras. https://www.chispaproject.org

I have strong ties to the country and I think early education is extremely important to a nation that needs to build itself up.
The restriction on viewing and disseminating internal corporate information (not user PII, but design documents and plans) outside of one's field of responsibility is new, and there was wide concern internally that it looked like setup for this type of "you don't agree with another team and are throwing same in the wheels by adding inconvenient questions; get fired" arrangement.
Location: Boulder, Colorado

Remote: No

Willing to relocate: Yes

Technologies: React, Angular, AWS, Firebase, Python, TypeScript, JavaScript, HTML, CSS, C++, Elm, Scala

LinkedIn: https://www.linkedin.com/in/michael-nicolaou/

Github: https://github.com/tzatzikisauce

Email: Michael.nicolaou@protonmail.com
Earlier this year Google e-mailed all employees and noted that accessing docs outside the scope of your job responsibility is forbidden and a fire-able offense. I think this policy change marked the end of the open culture you speak of.

Whether this was a legitimate policy change or a change simply made to find reasons to fire activists, I don't know. But, it was made clear many months ago that digging around to access docs outside your spec could result in a firing.
I'm on the comment page here because all of the articles have less information than the comments! Thank you HackerNews users for giving us the skinny on Oxide.
I've been curious about esperanto for a long time and in the midst of serious study of design so was pretty excited to see the intersection here...

Unfortunately this just seems to be some kind of logo. Looks nifty. But the meaning is not clear to me.
That's the strangest interpretation of copyright law I've ever seen.
Thank you for the appreciation. The Atari ST was a very important computer for me when I was growing up, and I love talking about it.
Similarly (and unsurprisingly, given that many are made from spices), pigments. I recently read "The Secret Lives of Color" by Kasia St. Clair, and its pretty remarkable what has been required to produce various pigments throughout history, and the costs associated with doing so.
Should just use the ICU string library. You get utf support and much more that is needed for modern string usage.
https://unicode-org.github.io/icu-docs/apidoc/released/icu4c...
Most people I know still use "éléctrocuté" to describe what happens to them when they get shocked from an electrical outlet.
My preferred approach for handling this type of scenario is to write C code that is valid C++, while adding a bunch of C++-specific mostly-compile-time safety checks which can't be expressed in pure C. It's not perfect, but it has helped me reduce the impact of footguns without sacrificing the interoperability advantages of C.

(And as other commenters have noted, wrapping the char* in a struct addresses the immediate footgun in question.)
> If you have access to a large research library you could also try that.

It would be great if public research libraries were more common - to be honest, I don't even know if such places exist.

I know that research libraries exist at most universities and certain other organizations (generally focused on what that organization is for) - but they either require you to be an active student to access them, or are private.

As an individual who isn't a student, but still wanting to do research, my only options are to purchase such research (in the form of books, magazines, or journals/articles), or find it on the internet in some form. Even then, I know that I am not getting everything - and likely missing out on a lot of information.

But what other choice do I have?
Not to put too fine a point on it, but this probably makes you part of a group. There are probably people who will comment agreeing with you is what I'm trying to say.

We're all, kind of, members of the People's Front of Judea. (Except, of course, for those of us who are members of the Judean People's Front.)

I commented on this before. Basically, most of us are rebellious in almost exactly the same manner as every other "rebellious" person. Same taglines. Same clothes. Same beliefs. Same pass times. Etc etc etc. We've all become the brooding teenager, who believes him or herself to be unique and counter cultural. Yet somehow that teen still looks, sounds and dresses like every other unique and counter cultural teenager on the planet.

As humans, we haven't really come up with a way to escape groupthink. That fact has got me wondering if groupthink is simply a facet not so much of human behavioral psychology, but rather a facet almost of evolutionary behavior? Something we can't tear ourselves away from, because it's literally who we are? We basically only choose which group we are part of, whether or not we're aware of it.
Yeah, that's shitty of them...
Riffing on this a little bit based on my experiences with multirotors but not having any kind of "autorotation" capability with them:

Most motors on multirotors are BLDC motors that require active control to make them spin. Voltage gets applied to the motor phases sequentially to make it spin. However, when they're completely open-circuit, they actually spin quite freely! I've seen the ones I had (26" prop) windmill quite well in a mild breeze. The trick, though is that you're probably not going to get much descent-arrest out of open-circuit BLDCs. Another possibility is short-circuited BLDCs; in that condition, the rotos are quite tough to turn. My speculation is that the props wouldn't spin much at all in a short-circuit condition. Buuuuut... if ESCs were able to modulate the open/short-circuit condition (even without power to actively spin the motors), I suspect you might be able to get some kind of arrested descent situation.

I've been thinking of building an ESC from scratch this winter... this might be a useful feature to experiement with!
Personal privacy is not the same as corporate privacy.
Programming Biology: Read (R), Write (W), Execute (X)
There's no way of knowing if the NSA's spyware is on your hard drive (2015)
How would a governing body decide who can get a credit? A big part of banking is creating customer relationships and learning more about their companies, cash flows, growth opportunities or challenges. Because banks already have a good overview over a company's finances they are probably in the best position to estimate who would benefit and pay back from a loan.

The governing body would only decide how much is created not who it goes to. Every citizen would get an equal share of all newly created money. Banks would still be able to lend money as they see fit, but they would not be allowed to use leverage.
From my casual observation I believe that young people outside tech have not even the slightest clue about how things work and also have no skepticism. I agree that old people are vulnerable but so are young people. Just in different ways.
Apple Calls New Russian Smartphone Legislation 'Equivalent to Jailbreaking'
Russia plans to replace “unreliable” Wikipedia with its own version
After I switched from SRE-SWE to just SWE, my team (of six SWEs) used IRC and it wasn't because of my influence, either.
Did you put that picture in, knowing full well that the company will take the wallet and contents?
If LibGen can announce all of the torrents in a JSON payload with health metadata, that can be consumed for automated seedbox consumption and prioritization. Check out ArchiveTeam's Warrior JSON project payload [1] for inspiration. It need not even be generated on-demand; render it on a schedule and distribute at known endpoints.

[1] https://warriorhq.archiveteam.org/projects.json
Tumblr’s First Year Without Porn
If only some of the money made would reach the scientists lel. Most of em will give you their paper per mail if you aak them. The majority does not want them to sit behind paywalls...
*assuming your programs can be ported to ARM
This isn't Skunkworks where they're developing experimental aircraft for extremely well trained pilots in the military. They're trying to make these for consumers who don't even want to get a pilot's license. They should be designed to be far safer than what is available today if that is their target audience.
You say this but I bet most of the people who style themselves plain text purist really do mean ASCII.
UTF-8 is the preferred internal storage format for most applications. The reason is space efficiency.
I've used IRC pretty much forever.

I use it for, err, online chat. If I want real-time chat I do it there.

None of the other platforms offer anything other than fragmentation of the user base as far as I'm concerned.

I don't care about the fact that like, you need to run a client all the time, ten year old me was leaving his computer on before he knew what a server even was, I do it anyway because I self host a ton of stuff (for basically the same reasons, almost everything else is proprietary and wanky in some way).