News for hackers. Stuff that matters.

pietroglyph

Re:FFmpeg as a Library : libav tutorial on Friday May 14, 2021 @10:10AM (#27154513)
It’s good to have something like this. Last time I worked with libav the only available good documentation was the official examples and the ffmpeg (the tool) source code itself, along with the comments in the headers.
Re:The most effective malaria vaccine yet discovered on Saturday April 24, 2021 @08:09PM (#26929279)
Yep. Animals are the most common way that diseases are introduced to humans, and industrial animal agriculture brings these animals into close proximity with themselves and us. Removing animal products from our diets not only mitigates this huge disease reservoir but also removes a huge source of greenhouse emissions, land use, pesticide use (for feed), and animal and labor exploitation (the meatpacking industry is extremely exploitative in the United States.)
An interesting side point is that the graph optimization approach used here is somewhat similar to modern graph-based visual SLAM

The graph in the article can be seen as a factor graph. VSLAM systems usually have a (kind of bipartite) factor graph with vertices/variables that are either keyframes or ‘good’ features, with edges/factors between features and the frames that see them and between adjacent frames; each of these edges are the factors in the graph. This structure results in very large but sparse graphs, and there are factor graph optimization libraries that take advantage of this sparsity (e.g. g2o or GTSAM.) These libraries also use specialized optimization techniques for some of the nonlinear manifolds (e.g. SO(3)) that arise in SLAM problems.

This is a good list of the incidents precipitating this event, if you don’t have time to read the thread: https://wiki.mozilla.org/CA:Camerfirma_Issues
Re:GitHub Source Code Leak on Wednesday November 04, 2020 @10:22PM (#24995359)
> impersonating Nat Friedman using a bug in GitHub's application.

This is not a bug, it's a part of how Git fundamentally works. If you want to mitigate it you have to sign your commits. GitHub could only attribute commits in the UI if they're signed, but I suspect that this is considered too much friction to enable.

Re:Thrust Vectoring at Model Scale on Sunday October 25, 2020 @02:06PM (#24888432)
Joe Barnard (the guy behind BPS.space) has some great videos behind the controls involved in this project on the BPS.space channel: https://www.youtube.com/channel/UCILl8ozWuxnFYXIe2svjHhg

He also has a ton of other really great talks on controls engineering on his main channel.

Re:Uninstall Nano Defender on Saturday October 17, 2020 @03:11AM (#24808042)
I agree that they’re liable for some things in the court of public opinion (which happens to have a very short attention span and limited agency), but I don’t see how they’re legally liable unless you’re implying that the EULA would be found to be unenforceable in court.
+100 on this. A social environment that encourages this is a huge motivator. A good FIRST Robotics team is one way that you might get this (not all teams will have great student experiences, but they’re probably your best bet for this type of environment.)
Re:C++20 has been approved on Sunday September 06, 2020 @09:52AM (#24391291)
The thing is that this is not a huge issue in practice. I stick to uniform initialization in 99% of cases and it works out pretty well. I have far fewer bugs from initialization screwups than from other things.
Re:How will the world vaccinate seven billion? on Thursday August 13, 2020 @05:00AM (#24141304)
Most of your reply isn’t really correct.

> A vaccine is also an attenuated version of the virus so if becoming immune from the virus doesn't last long it won't last long from a vaccine.

A vaccine can be an attenuated virus, or a piece of mRNA or DNA, or a distinctive viral protein. Which type of vaccine you use+the adjuvants that go with it can result in very different immune responses and efficacy over time.

> This is false, immunity is strong and long-lasting.

Immunity to COVID-19 varies a lot person to person and is poorly understood. It does however appear that many people can be reinfected (especially people who had mild symptoms the first time.)

Re:Latest Firefox rolls out Enhanced Tracking Protection 2.0 on Wednesday August 05, 2020 @04:33PM (#24065255)
Google bullies you with Captchas if you have `privacy.resistFingerprinting` on.
Sounds like a good public service. I’d much rather have my data deleted until it’s secured than have it stolen by someone else.
Out of curiosity, is English your native language?
Re:An even worse anti-encryption bill than EARN IT on Thursday June 25, 2020 @05:38AM (#23638697)
> Our word used to mean something. > But now? How can we hold a higher ground than China when our own police forces use the very same tactics against our own protesters? How can we accuse the other side of building concentration camps when we have our own?

But we’ve had things like this for a long time. The police have acted like they do for generations, we had concentration camps for Japanese people during World War II, and we’ve always done a variety of other reprehensible things (propping up brutal dictators, destroying native civilizations, institutional racism of every possible flavor.) Frankly, I’m shocked that our word ever meant something.

Re:Dust in the Light on Tuesday June 02, 2020 @02:37PM (#23394462)
> how are the people living in the white neighborhoods to be blamed for that?

They aren’t necessarily to be blamed for that. This blog post isn’t really assigning blame to white homeowners.

> Basically everyone who isn't an outside agitator, but if you don't already believe me I doubt I'm going to change your mind.

Trotting out a nebulous, totally unsourced claim and then implying that anyone who questions you is wrong beyond help is… not exactly a convincing tactic.

Re:Google postpones Android 11 beta on Saturday May 30, 2020 @06:30AM (#23360062)
> The real reason the situation can't improve is the people angry about police brutality are misinformed and don't want to learn.

What information are the people angry about the current situation missing?

> It's not about the reality of the situation; it seems like more of a tribal thing.

This seems needlessly dismissive. The “reality of the situation” is that police brutality needlessly kills people frequently, most of the people who are killed are black, the police involved are rarely held accountable, and nothing has seemed to change for years.

Re:Google postpones Android 11 beta on Saturday May 30, 2020 @06:25AM (#23360040)
> US cops work in a dangerous environment

In the US policing doesn’t even make it in the top 20 most dangerous jobs by fatalities [1] or injuries [2].

[1]: https://advisorsmith.com/data/most-dangerous-jobs/ (original source is BLS; this source just did the per-worker math) [2]: https://www.bls.gov/iif/oshwc/osh/os/snr02_00_2018.xlsx (2018 is the latest data available from BLS)

Re:Show HN: This Word Does Not Exist on Wednesday May 13, 2020 @10:04PM (#23174385)
Amusingly, I got: "nonhumanoid, adjective; not having life". It appears that the model would describe itself as lifeless.
Re:Ask HN: Would you choose Dalvik VM to Arduino? on Saturday May 09, 2020 @02:43AM (#23122789)
This reply is a little late, but I work on things in the robotics space where there are much more robust libraries for C++ than in Java, and some little extra features (e.g. operator overloading for linear algebra libraries) really make a big difference.

For students however I think that Java is probably the better call (fewer footguns, more resources like the AP curriculum.)

In Washington state where I live, voter registration includes soliciting a signature, which can also often be checked with drivers license signature on file.

You have to be ignorant or deliberately acting in bad faith to say that signatures are an issue, because about 10 minutes of research will show you that states which do vote by mail get around these issues pretty easily.

States like Washington do mail-in voting quite successfully.

Vote-by-mail is cheaper (no polling places to run), increases voter turnout (which is why it’s universally opposed by the Republican party), and actually reduces fraud risk because it leaves a paper trail and removes the opportunity for voter intimidation at polling places.

Re:Humans Not Invited on Tuesday May 05, 2020 @07:20PM (#23086250)
I got in. Looks like the final site has an XSS problem.
Re:Ask HN: Would you choose Dalvik VM to Arduino? on Thursday April 30, 2020 @09:19PM (#23038182)
Sounds like a cool project!

I prefer C++ to Java, but I think there’s absolutely a niche in the US educational market because the AP Computer Science A test uses Java. It could be pretty nice to have a Java-compatible MCU for the high school students I mentor because that’s the language they know, and it would make some cool hardware projects more accessible.

My (slightly more recent) US high school experience had nearly all students cover the calculus you described by the end of high school, and about 1/5 of the students got fast-tracked to the point that they studied linear algebra and multivariable calc by the end of high school.

I talked to a couple of friends about this, and about 1/2 had similar course offerings.

Mentor involvement really varies team-to-team. I’ve seen teams where the students don’t do a lot on the software side, but the majority of teams I’ve seen as a “software helper” volunteer at events (and talking with other teams) have had significant student involvement.

On another note: the FIRST Robotics Competition’s official support library (WPILib) includes a number of advanced control features (trajectory generator, extended/unscented/“regular” Kalman filters, LQR) that were written almost entirely by students. I was one of the students involved in this work, and I can say with certainty that students can get a tremendous amount out of the program.

Re:PID Without a PhD (2016) [pdf] on Wednesday April 01, 2020 @07:52PM (#22754803)
This is how I teach middle school and high school students basic controls. They implement and tune a proportional controller, then the derivative part, and then I give them a feedforward model for the plant (usually a brushed DC motor.) The PD controller and feedforward is very easy to write and is quite approachable once you see how simple it is, and it can be very exciting to see a motor “do as you command” before your eyes.

I avoid integral control because it’s less effective and much harder to deal with than good feedforward. Most of the mechanisms we use (in the FIRST Robotics context) have a feedforward model and good system-identification tools so this works out well.

Re:PID Without a PhD (2016) [pdf] on Wednesday April 01, 2020 @07:45PM (#22754754)
What? If you have a good model of your system then you can (relatively easily) turn it into an optimization problem and use a LQR to choose gains for you. It’s true, this method still gives you knobs you might have to tune (Q and R), but these are easily conceptualized because they slide the cost of state excursions and control effort along a Pareto boundary. That means that you can get optimal PID gains just by saying how much you penalize a state excursion vs. how much you penalize control effort (e.g. distance from your reference point v.s. fuel use, or something like that.)

It’s also certainly true that a LQR won’t help you if you have no a priori knowledge of your system, but for many of the mechanisms we need to control this isn’t a problem.

Older »