skysight-inc/HackerNews huggingface dataset:
I guess I don't see this as much of a negative question as others seems to. I'm one of those people that likes to work on more obscure solutions to things just because they interest me. Might or might not end up with a better solution than the common method, but I gain insight that I can maybe leverage on some other problem. So the question "why didn't you just..." usually ends up with me stating why I thought that solution was interesting and what I've learned by avoiding the obvious solution. Of course, sometimes I simply didn't think of the obvious solution, but you can't put yourself out there without a little risk.

I don't tend to assume ill intent for questions like that. Someone saw the problem, and proposed an obvious solution. That's just being helpful, even if they start off thinking you're an idiot.
Until they start shipping cellular modems or connecting to open and unsecured networks.
> Locating the center of mass below the center of thrust makes a more stable system.

That’s a common fallacy, early rockets placed the nozzle’s on top based on this assumption but it’s not useful. Ex: https://en.m.wikipedia.org/wiki/Rocket#/media/File%3AGoddard... The issue is the thrust is in line with the angle of the craft so you get the same thrust vector from below or above the aircraft.

Edit: https://en.m.wikipedia.org/wiki/Pendulum_rocket_fallacy
Hi, author here. May make sense to make SDS in perspective given a few comments I'm reading here.

1. Yep, more than "strings" SDS may be consider a library for dynamic buffers, especially from people coming from C++ or higher level languages. However I think that for C, it makes sense to provide a very low level thing like that.

2. In practice, if you see how SDS is used (extensively) inside Redis, it normally models things where you would do realloc magics, pointer math, and so forth: from client output buffers, to actual strings to accumulate error messages, to the Redis String object itself.

3. Probably an UTF-32 layer could be implemented on top of that, but I would think the two modules completely separated from the POV of the implementation. Like having an additional utf32.c file that provides additional interfaces on top of SDS.

4. The peculiar approach used by SDS header-before-pointer creates some problem with Valgrind and similar tools, however Valgrind will just report "possibly lost", that are messages mostly safe to ignore. However the advantage of using SDS strings directly with C function libraries is very handy.

SDS strings are not perfect and tend to be extremely optimized for Redis, if you look at the API, they allow to do things that are very low level, like pre-allocating the internal buffers to improve performances when you know you are going to read a big chunk of data from a socket or alike. However while imperfect and very tuned, these kind of libraries show how much you can easily improve C, with little work, and how many unsafe things in C are about lack of abstractions.

The value of SDS is "less is more" in the simple API they provide that pretends that SDSs are just plain-strings++. You can see this in a few features: plain C pointers interface, and the policy of always terminate the string. They need more love anyway, and to be less specialized for Redis, adding more useful APIs. Maybe at some point I'll find the time.
Ok. Then bring your politics to work.

But when you have to make a difficult decision (whether to ban a popular Youtuber for hate speech), make that decision based on precedent, the good of the company, and for the users. Don't view it as a personal attack to your political beliefs, and default to banning when the free speech happens to clash with your beliefs, while defaulting to complaining when people talking about LGBT+ rights get demonitized.

Also, if you are allowed to take your politics to work, accept that others may bring their opposing politics to work too. The vocal conservative-right Googlers are in the minority, and are mistreated as such by the political power brokers. A union should be for all the workers.
> The banks assume the risk of a borrower not paying them back, and therefore get to be picky about who they lend money to.

This used to be the case but is not so common anymore today. A lot of debt issued by corporations or households (mostly mortgages) nowadays is securitized and sold directly to investors. The bank doesn't have the risk on their books and gets paid for their service (creating packages of debt with attractive risk / return ratios) but doesn't receive interest payments.

> I think a better answer is something close to basic income, but not quite. Instead of allowing banks to choose how much new money is created, and who benefits from it, I think there should be a governing body that decides how much new money needs to be introduced every year.

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 from a loan and be able to pay it back.
I think that 3x is a pretty standard recommentation. For instace, a quick google gave a first link (from cliffnotes.com) that says this.

Here's a guideline to what freshman can expect throughout their college years: Each unit of credit requires 2 to 3 hours of outside classwork per week. So, a student carrying 15 credit hours should plan to spend 30 to 45 hours each week studying beyond the classroom.
no* BPF programs are written in a very small subset of C (or rust or C++), which does not include dynamic memory allocation or unbounded loops.

* you can use maps which are persistent key-value stores provided by the eBPF runtime, and you can call out to approved C functions provided by the kernel, but those won't allocate memory for you.
Copyright is not deleteright.
I’m hoping Mozilla will move to libplacebo [1] when it’s stable. It’s seems the most promising.

[1] https://code.videolan.org/videolan/libplacebo
In the Amanda Knox case they wrote two stories, one to run if she lost and one if she won. The in case she lost story included quotes in reaction to her losing and a description of her reaction to hearing the verdict. The story was written before the quotes it includes were (it claimed) said. They accidentally ran it when she won demonstrating that they completely invent quotes. This is not the only instance they've been caught completely manufacturing quotes.

Everyone knows that news articles can be selective in how they choose to report, and that therefore they should rely on multiple sources. This is bad but not a fatal error. If a news agency completely invents quotes that destroys the fundamental trust that makes it possible to build on flawed sourcing.

> The Press Complaints Commission has upheld a complaint against the Daily Mail

> The [incorrect] article ...was live for 90 seconds

> [The incorrect article] included quotes attributed to the prosecutors apparently reacting to the guilty verdict, and the description of the reaction in the courtroom to the news, stating that Knox "sank into her chair sobbing uncontrollably while her family and friends hugged each other in tears"

> It further stated that the family of Meredith Kercher "remained expressionless, staring straight ahead, glancing over just once at the distraught Knox family".

> The newspaper apologised for the mistake. It said that it was standard practice in such high-profile cases for two alternative stories (plus supporting quotes) to be prepared in advance

> It had published an online apology and explanation to readers; published the correct verdict in print the following day; launched an immediate internal inquiry (and subsequently changed its practices regarding such 'set and hold' stories); and also disciplined the person responsible for the error.

> Although the PCC recognised that the newspaper had acted swiftly and proportionately to correct the breach of the editors' code - and acknowledged that the story had only been live for a short period of time - it nonetheless remained "particularly concerned" about other aspects of the report, most particularly the fictitious account of what had happened in the courtroom.

> The attempt to present contemporaneous reporting of events in such a manner was "clearly not acceptable".

https://www.theguardian.com/media/greenslade/2011/dec/09/pcc...
SEEKING WORK - Portland, OR or Remote

I'm a full-stack developer with 18 years experience. My specialties are Rails, Postgres and Chef/AWS. I'm also very comfortable in Javascript, Python, and a few other things.

At the low level I've done paid work writing custom Postgres extensions with C and SIMD CPU instructions and implementing performance-critical network services with Rust. At the high level I can design and wireframe features, show their business value, talk to customers, lead other developers, mentor, consult on application architecture, and advise on scaling/performance. You don't want me to pick your color scheme though. :-)

I am reliable, easy to work with, quick to turn things around, and a good communicator. I can work solo or on a team, either as lead or a team member. I value client satisfaction as highly as technical excellence.

You can see some of my recent work here:

https://illuminatedcomputing.com/portfolio

https://github.com/pjungwir/aggs_for_arrays

https://github.com/pjungwir/active_model_serializers_pg

If you'd like to work together, I'd be happy to discuss your project!: pj@illuminatedcomputing.com
This is probably out of place, but are you OK? I burnt out about a decade ago, and would have agreed with a lot of what you're saying back then. It took me years to get back into a happy place with tech.

Dysfunctional teams and organisations produce this kind of cynical rage, not Lean.
To bring a new fight to the attention of more of the public: big pharma is attempting to have the FDA prevent people from using their own stem cells for healing via regenerative medicine - either fat or bone marrow derived. They want to force centralization and also for consumers to buy the stem cell products they're developing. Their arguments are fear mongering and non-sense, however they've so far been doing a good job manipulating the FDA.
How much is industrial hemp used in countries where it has always been legal though?
Amen.

One of my pet peeves is talking about debt without corresponding asset levels. Corporate America has a net worth of ~$35 trillion.
At which point I'd only buy TVs without them, or just buy projectors instead. That'd be too ridiculous.
Lets say you burn it to generate power, as a lot of refuse is in Sweden. That's substituting for fossil fuels. Is it better to burn oil out of the ground, or carbon extracted from the atmosphere? You're creating a more sustainable cycle.

As a material, if you're using it in place of plastics again it forms a more sustainable cycle over a reasonably long time frame.

Yes we do need to sequester some atmospheric carbon long term, but establishing a more sustainable carbon materials cycle has an important role to play.
Hurl – A Database-Free Pastebin
Originally, simply having one at all qualified it.

I believe the idea of common schools originated in the USA, or at least it did as far as Western countries are concerned. Well into the 19th century, the European attitude was that parents were responsible for providing for their own children's education, and nobody else's. Working-class children were largely shut out.

More contemporarily, the US is still in the top 10 by at least some rankings. But talking about those rankings doesn't sell ads or get the voters riled up or help rich parents feel good about all the money they're spending on private schools, so there's a tendency to cherry pick the rankings where the US is merely in the top 10%. Ideally followed by intensely fetishizing Finland.

(Fetishizing Australia, which tends to rank even higher than the nordic countries, never seems to happen. Funny, that.)
Ask HN: Does the front page get too many anti-tech pieces on it?
The front page seems to have more and more regurgitated anti-big-tech articles month after month. I find myself occasionally reading the articles (which most of the time aren’t great, or really indicative of anything important), or reading the comments which rarely talk about anything but the same concerns- privacy, monopoly, worker rights, etc.

These posts rarely make it to the 500 or even 1000 karma mark (which tends to be news of significance for many users), but make just enough to get on the front page, and stay there for a long time.

I’m curious if anyone else is noticing, or, is tired of the pattern.
Isn't this the same FBI that is trying to make encryption illegal and who insists that backdoors are safe?
I would imagine something closer to rust in terms of base and then being able to put Haskell on top without loosing any safety guarantees. Or possibly even allowing an arbitrary type system as long as you can prove it's sound with the guarantees of the language.
> Huh, it's a Paradox game?

It's published by Paradox not developed by them.
What you do is something like the following:

typedef struct sds_s {
char data[0];
} sds;

Which makes them essentially equivalent, but not from a type perspective. Then to handle conversions, you add explicit functions a la

char* sds_cstr(sds *str);

Then you have full type checking to help you (and an additional advantage if your data format changes).
How can your group know something that informed experts don't? If you have special knowledge they don't, then they aren't informed. Your group might knowingly take a risk in guessing the experts are wrong, perhaps to test a novel idea, but that's not the same as refusing to recognize their opinion as valid, like in groupthink.
Thank you for your feedback. We have just implemented auto language detection for the UI based on your browser language.
I pretty much always have freenode channels open for #reprap and #smoothieware.
Bleeding edge of reprap has been IRC for many years...IMHO.
Agile Jokes to Surely Make You Die Laughing
> Presumably smart TVs are subsidized by the manufacturer selling the data they collect on you.

There's no presumption, this is known.

https://www.businessinsider.com/smart-tv-data-collection-adv...
You can use CSS to customize the tab bar. I personally prefer multi-row tabs and I have it configured to do that.
It's a meaningless word and just marketing. On premises cloud is called a network, as it has been for decades.
I wonder if there's a market for some company to resell smart TVs that they've lobotomized.

I.e., they have a list of TV models that they know how to disable network connectivity without causing any other problems. You order from them, and for some reasonable fee they'll make the change, verify everything is okay, and ship you the unit.

Personally, I'd be willing to pay a $100-200 premium for that, especially for a TV that (pre-lobotomy) sells for over $600.
Exploding Topics – Discover rapidly growing topics before they take off
Khalsa Aid: https://www.khalsaaid.org/
Have met the guys who run it, and they do great work all over the world.
They do have backup generators, and a convenient source of diesel to run them.
I know these, but there's also CSS so I don't understand why this needs JS..
> Until they come up with a way to phone home without my Wi-Fi

I've seen several reports that some TVs will find and connect to an open Wi-Fi if you don't set them up, and then phone home that way.

Probably better to connect it to your Wi-Fi, but block its access to WAN. Or open the TV and remove the module entirely.
It's likely they are looking for further investors via hackernews.
The article details an incident where he electrocuted himself.
> Flutter is available for C++ desktop programming

I know Flutter for desktop is in process. Any link with more info?
There are inter library loans so some college library that specializes in the field will retain the book.
We have just released a new version which allows you to use the SERP with Javascript disabled. Enjoy!
SO also allows you to browse all answers (and questions) from a specific contributor.
Harvard’s Graduate Student Union Begins Strike
And we can't vote these regulators out nor boycott them.

Stories like this erode my faith in...everything.
None of that has anything to do with this article though.
Any links or ways to push back on this?
I used a form of this system to take notes when I participated in the first cohort of Udacity's "Self-driving Car Engineer Nanodegree" a few years ago. I found it very useful, and ended up filling about 3 notebooks (one sided) worth of notes for the effort.

I say "form of the system", because I wasn't as formal with it, and didn't do the "bottom page summary" - but it still worked well for note taking; I think the very act of doing these notes "hands on" helped with deeper understanding and retaining of the material.

On a side note - one other thing I learned from that class was to never again take a MOOC course on the first iteration; you are essentially the "guinea pig" experiment for beta testing it, and that can be a frustrating experience at times.
It's awfully hard to believe an article that is dead set on sensationalizing and demonizing everyday materials:

> metallic BBs, electrical wires, batteries, cellphone parts, circuit boards

> hobby fuse and wires, batteries, dismantled cellphones, fire starters

> Thermite ... recipe for chlorine gas

> plastic zip ties like the ones used by police when they are making large-scale arrests

> knives, decorative swords, a loaded 9 mm pistol and a large, fully loaded Russian bolt action rifle, along with several hundred rounds of high-caliber ammunition.

> machete, steel wool, a Duraflame log, coffee grinders and shards of metal shavings

Who doesn't have most of these "ominous materials", for basic every day civil purposes? And if someone needs a written recipe for chlorine gas, I doubt their ability to make bread without burning down the kitchen.

Sure, the article also contains details that do indicate the making of bombs (although once again, playing with explosives can be just good clean fun), and more importantly actual connection to the crimes. It's just not good that the majority of their narrative is built on innuendo and further marginalizing their audience with ominous fear.
I don't find it painful at all. You need to think about the lifetime of your strings. The lifetime is usually convenient to split into two (consecutive) phases: the first phase is when the string gets constructed / modified, and the second phase is the immutable phase up until the string is released again. You'll often have separate string types for these phases: A string builder type for the mutable phase, and a simpler immutable type for the immutable phase.

Often the former will need just a single shared allocation (per thread). That works if you're only ever constructing a single string at a time.

Often the latter won't be dealing with memory management at all. You will often represent it by a plain char pointer and optionally a length field. Management-wise, at most you will need to construct it initially by making an immutable string from the mutable one, and a call to a release function when the string is no longer needed.

The fact that the string isn't modified in the immutable phase makes it trivial to pass it around as an ordinary char pointer (plus optional length), which is as convenient as it gets.

In rare cases you might want to make a hashmap for string interning. I've used interning in a past compiler project, where it was used to collapse identifier strings.

That will probably cover more than 95% of all your string needs. And it's very easy to be vastly more efficient than any from-the-shelf GC'ed string type with this. All you need to invest is to write a little near-boilerplatey code, but it's far from "hard".
There are vanity vhosts and there are cloaks.

Cloaks apply uniformally but will not mask the last bit of your reversed hostname. So it might leak info about your ISP or region but not your full IP.

What you stated is true of vanity vhosts though. Which will mask the whole record only if you’re logged in. :)
Thanks! The Math in that paper is mind boggling! I hope to get to a point to understand it someday.

Very naive question: the paper uses integrals (perhaps Lebesgue --- can you tell how naive I am, yet?) for proving some lemmas etc. As a beginner it's hard for me to understand how integrals come into picture in number theory.

Not that it is my plan to do so, can you tell me what all fields of Math (specifically textbooks) and techniques I need to be familiar with to understand the paper?

For e.g., Abstract Algebra (D&F), Functional Analysis (graduate), Combinatorics etc.?

This will give me a much clearer picture on how various fields of Mathematics come into play.

Thanks again!
Mark43 | Various engineering roles | New York, NY / Toronto | ONSITE https://www.mark43.com/careers/

Fight crime with code

We build software that literally helps save lives. Our clients are Police Departments, 911 Dispatchers and First Responders

Be a part of an awesome team in a late stage startup (featured on multiple “next startups to break out” lists). Learn more here: https://www.mark43.com/careers/

Back-end: Java ElasticSearch Kafka

Front-end: React Redux JavaScript

Hiring:

[Sr] Front End Engineer (New York and Charlotte)
[Sr] Data Engineer (New York)
[Sr|Mid] Dev Ops Engineer (Build/Release) (New York)
I think it's one of the bigger misconceptions that programs have to be Turing complete to be useful, or even that functions should be allowed to be Turing complete by default. In fact, in many cases, we should probably have been programming in a way where functions are not Turing complete by default, just as in some modern languages, functions are not allowed to modify global state by defaults (functions are pure by default).

The programming language Zig is aiming to be able to calculate the stack requirements for a given function. This has enormous benefits if you can do it in areas like embedded software. You can guarantee that you don't run out of memory (functions in Zig can't use an allocator without permission either). But to do this, functions can't do recursion, and probably can't be Turing complete in general. I don't think Zig will ban recursion, but it will give you some powerful tools/options if you avoid it where you can.
How Important Is Voice Search on Digital Marketing?
As their website is crawling to a halt, there’s also this story on the Harvard Crimson. https://www.thecrimson.com/article/2019/12/3/grad-union-stri...
GSAP – GreenSock
Wait, if you can no longer trust ICANN, does not that mean you cannot trust the whole internet (domain name system) anymore?
I suffered a battery lead failure on a large hexcopter this summer at ~27 ft. It was spectacularly destructive to the airframe. Had it been a motor/prop/ESC, it would have had enough thrust to land (awkwardly), but cutting power to all 6 motors at the same time (flight controller has a separate battery)... not recoverable.
Every global standard is a clusterfuck at some level. That is just the nature of the beast.

Look at any widely adopted standard, be it exit signage, networking protocols, time standards anything... you’ll find a cluster.

If you tore down every one of those and tried to rebuild “from first principles”, eventually it too will become a clusterfuck.
per week, but not per day.

If a student has 3-4 classes a day, they can't reasonably spend 9-12 hours working solely on digesting those lectures that day. They'll have homework at the very least, likely some ongoing projects, normal human activities -- not to mention that in the US they probably also have a part-time (or full time) job.
Strongly Typed Events
The bdwgc has a #define to set whether or not it should check for interior pointers.
A lot of web apps also use vim-inspired keyboard shortcuts, for example Gmail, Twitter, Reddit.