skysight-inc/HackerNews huggingface dataset:
Apart from grouping, custom indexes are great as default columns for joins.

I just wish Pandas treated named index columns as columns. When I write df["blah"], I don't want to have to remember whether I just loaded the data and it's a normal column or if I just grouped on "blah" and it's an index column.

Currently, in the latter case, subscripting doesn't work and you either have to do a reset_index() or look up the correct incantation -- something like df.index.get_level("blah").

I have a feeling that the root of the problem is that Pandas ended up the same concept of "index" both for optimized lookup and for the UI of grouping / joining. My guess is that get_level is less efficient than it should be, and thus Pandas discourages using it by making it obscure.
Except afaict SecureString doesn't reliably do that and shouldn't be used. https://github.com/dotnet/platform-compat/blob/master/docs/D...
The coordinate order is (X, Y) just like in math (and XYZ if you want to use a vertical coordinate) which differs from our colloquial (latitude, longitude). This is easier to remember if you remember PostGIS supports many non-lat/lon non-WGS84 coordinate systems.
I know some of those words
Ruby spec has been going for a long time. It came from rubinius originally.
Perhaps as an interface to `ffplay`, but it's certainly not complete enough to be the GUI for `ffmpeg`.
Better title: “What is the range of a number type for types recognized by C++”?

The range of numbers represented by an IEEE-754 floating-point is discontinous on the number line at any given precision. So there are a variety of possible answers with varying usefulness.
Love his comment in the github repo
This is what you should show students before sitting them through a 1 hour class lecture.
It can be very Lispy indeed: https://lfe.io/
Isn't the point of mentioning her identify to show how she viewed the comics from her particular viewpoint?
On most Linux package managers these days, FFmpeg is built with support for hardware encode, decode, and filtering out of the box.
It would if it were true. But in reality, there are lots of people with $40k starting salary jobs (example: a librarian, which requires a masters degree!) paying off $50k loans with 8% interest rates.
The benefit is reusing the matrix theory - matrix knowledge(!) - in different contexts.

In some cases making a matrix in physics is a quite sterile representation, like you suggest, like plugging in the numbers in an otherwise generally stated question. The matrix values depend on choices of coordinate system and everything, quite inelegant in that way.

Why practically use matrixes on the computer? It's efficient to compute in blocks instead of one by one.
Click on your profile photo in the upper right. The context menu includes a "pause notifications" option - you can set a timer or a regular schedule.
One thing you might try is to apply to grad school for an (online) master's in CS, if you can make that work in your situation w/rt admission and cost. The degrees and coursework from the reputable universities in the US are identical to the on-campus versions, and you will get an opportunity to network / bond with the folks in your classes, many of whom are already in the industry.

A few to check out:

- Georgia Tech, commonly referred to as OMSCS https://omscs.gatech.edu/

- University of Texas https://www.cs.utexas.edu/graduate-program/masters-program/m...

- UIUC https://cs.illinois.edu/academics/graduate/professional-mcs/...
Getting really good quality gifs out of it, on the other hand, requires two passes and some arcane command line options (or used to anyway) - though it is at least possible and produces impressive results given the limitations of the format.
A distributed system is one where the failure of a machine you've never heard of stops you from getting any work done. - Leslie Lamport

... via https://github.com/globalcitizen/taoup
PCs at the time were much more expensive, ran closed source Windows (versus open sourced Linux of OLPC), weren’t good ebook readers given their screen technologies, didn’t have mesh networking technologies, and a whole host of other things that made the OLPC far more interesting and hypothetically relevant to the problem they were trying to solve.
Can't a simple checksum or hash do the same (and without burning as much electricity as all of Argentina)?
In the past I have also thought along the lines of exit criteria and it didn’t work for me. The correct answer is you should leave soon. Exit metrics leads to thinking like “as long as I’m learning I will keep at it.” Or “as long as I like my coworkers I will stay.” Or “as long as I keep experience career growth it is a good place”. This can just be an elaborate justification of a nasty and unfair status quo.
I’ve known people who write out their exit criteria ahead of time “if an idea is ignored when I say it but accepted when someone else says it then I’ll leave.” This helps avoid biasing toward the status quo, but it’s hard to do midway through.

But really the answer is you should probably leave and sooner the better. I think this XKCD cartoon is pretty spot on:
https://xkcd.com/1768/
In my experience it is pretty accurate and it is the answer you are looking for.
Don't let the user set the password, just assign them something random. If you let users pick their own passwords some of them are guaranteed to pick insecure ones (i.e. anything which isn't random and unique to that site).

Though frankly we should be able to do far better than one-off shared secrets for each account. WebAuthn, for example, with the browser as the authenticator, protected by either a client-side master password or biometrics. That would be at least as good as a password stored in a password manager, with the advantage that the user doesn't need to store (and sync) unique passwords for every site. To log in from a new device just enroll a second authenticator.
I've had trouble getting it to properly handle transparency when outputting animated GIFs. The transparent areas wouldn't get cleared between frames without some extra settings. Also you need a special set of transforms to make it generate and use a color palette.

And the APNG support was even worse. I spent days trying to get it to output an APNG that was within Discord's sticker size limits without losing quality. Eventually gave up on it and switched to pngasm which easily produced a small enough output.

EDIT: I should clarify that I still think ffmpeg is amazing, but I find that it can be tricky and does have some limitations that seem to come from being the input and output formats being so flexible.
Celebrations over REvil ransomware arrests in Russia may be premature
Availability of Oxalate in Black Tea
absolutely. The OLPC looked like a well intentioned design-by-committee attempt of the first world people to solve the issue of the 3rd world.

>giving access to standard pc platforms would be a much better starting point

i've been in similar situation - end of 198x / start of 199x in Russia where we like the 3rd world were scrambling into computerization, and the standard PC platform with easy swappable/upgradeable components was the key here to the extent that even slightly non-standard brand-name PCs like Compaq/etc. were shunned away because the even so slightly customizations they had to their case, PSU, high-end adapters with custom drivers, custom usually non-upgradeable motherboards, etc. were making them practically feasible only to very rich companies/people.
iPhone internals are difficult to repair, but they make up for it with reliability. If OLPC had hit that target they could have been successful but it was basically not achievable for a mid-2000s laptop.
Your username kind of goes nicely with your point here.
I imagine that this doesn’t work as well with PIMPL code.
That's not a C flaw, you can use an allocator that prevents use-after-free.

https://github.com/bwickman97/ffmalloc

The point of C and Zig is that they are low level and you can do whatever, like not use an allocator, or write an allocator.
Well, I don't want to be super mean to you or NoSQL, but NoSQL itself was a bit of a fad.

Columnar stores and graph DBs have always felt more like "real" tech, something promoted for specific use cases.

Key-value stores I'm not even going to be denigrating at all since we've had them since forever and they do a great job at their tasks (BerkeleyDB, Memcache, Redis, etc.). They don't deserve being included into fads or niches, they're a very valuable universal resource.

At least that's how I see it.
As someone who has spent a lot of time researching all this: That is wild.
Using DataFramesMeta.jl [1], the code from the first example turns out pretty similar:

using DataFramesMeta, Statistics

@chain mtcars begin
@select :Cyl :HP
groupby(:Cyl)
@transform _ begin
:dumb_result = myarbitraryfunc.(:HP)
:demeaned = :HP .- mean(:HP)
end
end

(mtcars is from RDataSets.jl)

[1] https://juliadata.github.io/DataFramesMeta.jl/stable/dplyr/
>12 months and $250k behind on payroll.

Do you mind working for me instead? My projections are $20M revenue in 6 months after deployment. I estimate it will only take you 6 months of free labor to finish my project.
I'm a bit skeptical of the thesis of this book.

Moonshot projects usually fail, by definition. OLPC was likely to fail from the beginning. That doesn't mean it wasn't worth trying.

We can -- and should -- diagnose and learn from everything which went wrong. The name -- Charisma Machine -- is fair. It describes what's wrong with a lot of modern MIT: big names, big charisma, and marketing over substance.

On the other hand, for the burn rate (~$12M/year), it seems like it was a worthwhile risk. If it worked as promised, the gains would be in the trillions. If it kinda-worked, the gains would still be high. I gave it maybe 5% odds, and I think that's fair for this type of project.
Why don't they use Crystal? Wouldn't it support the listed value propositions too? And the syntax is close to Ruby.
“It’s not perfectly secure so use a totally insecure alternative instead” seems like terrible advice.
Oh god, thankfully small but a world of snowflakes is something to fear so let’s keep it in check.
Apologies; apparently I was thinking of integer multiplication using FFT:

https://en.wikipedia.org/wiki/Sch%C3%B6nhage%E2%80%93Strasse...

But my question (which wasn't about asymptotic complexity) stands: can we think about matrix multiplication as a convolution? If so, we can do pointwise multiplication sandwiched between Fourier transforms -- I don't expect it to be fast, I just expect it to be possible.
Seismologists don't just sit there making models. They also like to do things like drill big holes into faultlines.

If you're studying faultlines, you want to have reasonable access to the subject of your study. Otherwise you may as well be a marine biologist living in Kansas.

https://www.youtube.com/watch?v=n9ZPq5FRmnE
https://www.gns.cri.nz/Home/News-and-Events/Media-Releases-a...

Physical measurement is used to make better models, you need both. This: https://www.youtube.com/watch?v=lH_PAGimWJM informs this: https://www.youtube.com/watch?v=HipS-7kGe9c

Likewise, if you want to study volcanoes, you'd want to have access to volcanoes.

https://youtu.be/eJGmkOFBDvg
> if “scholars” ran this world, nothing would be done. Inaction is far easier than action, and no one has all the answers before big leaps are taken

Do you mean to defend the OLPC folks as action-takers, or criticize them as scholars?
Consider trying the ELK contest (I am)
The author of this piece didn't work at the company. It sounds like the company wasn't really full of technical people. The perpetrator probably thought they were so much smarter than everyone else that they'd never be caught.
I believe there are apps on the app store that do this sort of thing, Halide[1] comes to mind as something I've read about, but I've never used it.

[1]: https://halide.cam/
It would be nice to have some explanation on the search term syntax supported. like: Joe Biden vs "Joe Biden" vs +Joe +Biden
Disney+ is similar to HBO Max. "Continue Watching" often takes me to the episode I just watched, and there's no way to get to the episode list from there. I usually access shows I'm in the middle of by going to my Watchlist, which always takes me to season 1, episode 1.

Meanwhile on Hulu, I recently watched episode 1 of Over the Garden Wall and instead of continuing on the the next episode, it autoplayed the episode of a completely different series.

They're in a really sorry state UX-wise.
DNA Mutations Do Not Occur Randomly – Discovery Transforms Our View of Evolution
Perhaps. But this article, like so many others like it fails to mention one of key points about his legacy. That is, Dr King was assassinated not while he protested for civil rights (in the early to mid 60s), but later during his quest for financial justice and mitigating income inequality.

Bobby Kennedy met the same fate, while also questioning wealth distribution.
Most of the time, the objects you are actually interested on are not NxM grids of numbers, but linear functions. For simplicity, I will assume we are working with real numbers.

Suppose you have two linear functions:

f :: R3 -> R3
h :: R3 -> R2

and a point:

x :: R3

The first problem you have if you want to work with these functions is how to represent them. As it turns out, assuming you have a set of basis vectors, any linear function Rn -> Rm can be represented by exactly n * m real numbers. Further, if we arrange these numbers in a grid it is easy to fill in the grid if you know how the function acts on the basis vectors, and it is easy to read off how the function acts on the basis vectors from the grid.

Similarly, a point in Rn can be represented by exactly n real numbers. Again, this representation depends on a choice of basis vectors.

For simplicity, let [?] represent the matrix representation of ?.

The second problem you want to tackle is how to compute function application y = f(x). Given the representations defined above, y is the point in R3 that is represented by the result of the matrix multiplication [f][x].

The third problem you want to solve is how to compute the function composition g = f∘h. Again, g is the function given by the matrix representation [g] = [f][h]
You can compromise and give the developers the ability to add dependencies as well. In a separate “dependency mirror” package. But those have to be code reviewed like anything else. So you have a paper trail but adding a dependency is lower friction. And you still can’t accidentally (or maliciously!) pull in an evil dependency without at least two people involved.
That’s because we rely on China for parts to make the robots and there has been a huge shortage. At least in America, we need to back to being self reliant. Software is not going to eat anything without hardware.

It’s all happening in Asia and we outsource our manufacturing to them. This won’t end well for America.
Ask HN: What do you do with your plethora of USB cables?
I have many USB charging cables of all the types - they break so easily... I have so many - but I feel bad just throwing them out - and even with the ones that still work, but I don't use that connector type any longer, I also don't want to throw them in the trash..

What do you guys do with them?
That’s the reason China’s media keeps giving us: it’s for the olympics. Seems like a heck of a stretch to me. China has already hosted an olympics. They’ve had their 1936 moment. And for the past twenty months everyone has understood that the 2022 games would not be the usual circus.

The events are being held in other cities and will be attended only by a select few ultra-privileged CCP supporters and foreign dignitaries (see story below) … common foreigners are banned, the general citizenry is banned, no one in Xi’an was ever getting near the olympics.

Beijing’s excuse for lockdown is BS. The CCP is scared shitless of this virus.

https://www.si.com/olympics/2022/01/17/beijing-winter-olympi...

I have to say I’m surprised you subscribe to the CCP’s framing of their lockdowns.
The first sentence describes SNESticle as "much requested, much anticipated, much rumoured" but never released, and there's no mention of why.
> To make what ought to be a system call you have to load some DLL, sys, or lib file at a random (but fixed) path and call a function on it.

“Ought to be a system call” is a matter of opinion. Among OSes, Linux is an outlier in that it keeps its system call interface stable.

Many other OSes choose to provide a library with a stable interface through which system calls can (and, in some cases must. See https://lwn.net/Articles/806776/; discussed in https://news.ycombinator.com/item?id=21859612) be called. That allows them to change the system call ABI, for example to retire calls that have been superseded by other ones.

(ideally, IMO, that library should not be the C library. There should be two libraries, a “Kernel interface library” and a “C library”. That’s a different subject, though)
Having worked at two FAANGs I feel a lot of these comments are being made by people who haven’t worked at them, and are more just saying things that go with “big business”.

Politics: present at all companies, big and small. My wife worked at multiple startups and the politics and behavior were vastly worse than she experienced anywhere else outside of academia.

Bureaucracy: this is kind of true, but good management tries to minimize it. Across multiple roles that only real bureaucratic problems I ever had were disclosures, and generally they either happened immediately or I didn’t actually need them. Some bureaucracy that you definitely get at bigger companies is HR related, but oftentimes that’s because small companies don’t have dedicated HR. That can lead to serious problems of it’s own.

Impact: far too team specific, certainly at a smaller company you have the potential to have a greater impact on the business itself, but you also have a lower probably of having impact outside of the businesss.

Work/life balance: outside of crunch periods I never had any work/life balance issues. Those are much bigger issues at small companies and startups. Generally what I see is that when people come into a FAANG straight out of college they still have the college “100% work all the time” mentality. They also don’t have experience in actually releasing software: it takes time to learn to actually realize that not everything is “must ship critical”. It took me a few years to get to “this bug does not actually impact users, so it is ok to punt to a follow on release”

The big thing to note is that politics and similar is a /much/ bigger issue outside of engineering: program management and organizational management tend to have an element of “we have to fight about who gets resources”. But again IME the FAANGs I’ve worked at have many more systems in place to limit that. When it goes wrong is when you have politics at high levels in the organisation: VPs, etc. Geberally though in IC positions you’re insulated from that by distance - but at smaller companies that distance is reduced and becomes sad.
I had a similar thought, actually started an open source project by myself at https://github.com/alpaylan/cvdl

My view is to have it similar to html/css paradigm of web. I started working with TOML based schemas for defining CV's, actually wrote my CV in the schema.

If you wanna go forward, I would love to be a contributor, also I would love to get your opinions.
So it sounds like Zig makes a distinction between pointers and arrays. Am I reading that right?
> mark email as spam literally months or years after we sent the original email
When a persistently spammy company compels me to open the Rules page to filter their trash, you bet I’m also going to Select-All and Report As Junk in hopes of maximally dinging their reputation. No idea if it works, but there’s one explanation :)
Now try this with eg. OpenCV, or ONNX, or tflite, or a million other packages that try to download additional information at compile time.
No it's "don't use this thing which doesn't do what it says on the tin and is therefore a foot gun." Something that is obviously insecure will be treated with more caution / put on the correct side of the authorization boundary compared to something that claims to be.
So Tim Berners-Lee and Mark Andreesen are our modern Prometheus? Eagles picking their livers at dusk forever more?
My family is one of those 3,000+ immersed in this event. It was surreal seeing it on the front page of HN earlier today. We haven't touched the water in our house for about six weeks now, spending lots of time going back and forth between our house and hotels and laundromats and fast food places for daily needs, while trying to figure out what to do next. We're discarding most of our kitchen items and appliances that touched the water, and trying to move elsewhere.

At first, I figured that this was no big deal. We've dealt with water quality issues before in various places, using bottled water or boiling for a couple days, or just running the water until there was no visible sediment. I realized that this was more serious when other residents started reporting symptoms consistent with things that my family had experienced over the preceding weeks and months. The symptoms were mysterious and generally low-level, the kind that you would mention to your spouse but then write-off, rather than taking a sick day to see a doctor until they persist for a month. So we know that we were exposed to something nasty that we couldn't see, taste, or smell until it reached some peak around Thanksgiving.

What's most disconcerting is that we really have no idea how long we were exposed, to what chemicals, and in what amounts. I don't think we'll ever know, since rigorous sampling and testing and monitoring didn't start until after the Navy facilities folks started drawing water from a different well and flushing the pipes. Furthermore, there has been a pattern of Navy officials telling a story that everything is fine, and being evasive about the details, and then revising the story and releasing not-so-fine details later as a result of public outcry. Repeat several times. I don't even know what the working version of the official story is at this point. The Navy, Army (which also has many affected residents), and Hawaii Department of Health have issued starkly different guidance, forcing the Environmental Protection Agency to step in and mediate.

I actually considered submitting something on this to HN a few weeks ago, hoping to get opinions on the situation from some disinterested experts that hang out here. How bad might this be for us? Does any version of the story make sense?

The financial costs to the government will be staggering. Affected residents are getting paid for months of hotels, meals, and incidentals. We're submitting claims for damaged property items. The Navy has acquired dozens of huge filtration devices and flown them here overnight along with contractors to do remediation and consultants to inject expertise. All of this was over Christmas and the peak tourist season in Hawaii, plus COVID supply chain issues, at the highest possible prices.
Nerd-dictation, hackable speech to text on Linux
No - because physical media is usually ~99% plastic.

We need every effort to reduce plastic. Full Stop.