skysight-inc/HackerNews huggingface dataset:
I created Lua with C/C++/Java/Javascript syntax https://github.com/mingodad/ljs

Also forked a scripting language https://github.com/mingodad/squilu and extended it to accept a pseudo C++/Java/CSharp/Typescript syntax to make easy to reuse code and have fast iteration when creating new functions (with it and minor changes I could get https://ssw.jku.at/Research/Projects/Coco/ parser to work for easy grammar development).

Create a tool for create, document and prototype database applications at "user level" in near realtime (live) https://github.com/mingodad/db-api-server.

Extended GLPK to accept a bigger subset of AMPL and made some performance improvements in the GMPL interpreter https://github.com/mingodad/GLPK
Why Your Natural Hair Isn’t Growing
I built a C actor-like event library: https://github.com/FedeDP/libmodule

It actually has lots of improvements in the 6.0.0 pull request that i am delaying because i am too lazy (and haven't got much time) to fully rewrite doc.
I built an Android app that lets you create bookmarks for any kind of Android audio track (e.g. played by some music player or podcatcher app). My app, "Stop It!", captures which player app was used, which track/artist was playing, as well as the exact timestamp. I create bookmarks whenever I hear something I like (but I don't have time to pause the playback and make notes). Stop It lets me get back to that particular track and time stamp easily, hours or days later, and avoids that nice things fall through the cracks. The bookmark creation mechanism is to pause playback and immediately resume it, which you can do with any Bluetooth headset - no need to unlock your screen. The app is open source, but not on the Play store. I built it because nothing like this exists... More details here: https://www.augmentedmind.de/2020/08/16/stop-it-create-audio...
Currently:

AudioWrangler: https://apps.apple.com/us/app/audiowrangler/id1565701763

Got sick of my Mac using the wrong audio device when waking up, so I wrote a little utility that lets me prioritize which devices to use based on what's connected. It's my first app on the App Store. I'm enjoying learning Swift and using it to write desktop apps!

In the past:

* Lucid: https://github.com/mattgreen/lucid.fish

A pure-style prompt for fish shell that pioneered truly async fish prompts. Still use it daily.

* Fogeybot: https://github.com/mattgreen/fogeybot

A Discord bot for Heroes of the Storm that creates teams for pickup games using player ratings.
I see this sentiment a lot in language discussions; I really think the exceptions==goto parallel is overstated.

Exceptions are a recognition of and abstraction over a common pattern from exception-less languages: "if <error state>, return early with a special value and some info on the error". Client functions follow a pattern of "if <error returned>, then handle the error or propogate it upwards".

If you factor out that chain of early returns, you get "throw"/"raise". If you factor out the error handling, you get "catch"/"except". And if you turn that error info into an object/ADT, then you get the "Exception" class.

Exceptions are not adding anything new; it's syntactic sugar over a more verbose pattern you'd probably be using anyway. You could totally implement a clunky but logically equivalent version of exceptions yourself in any language.

Now, that being said, there's definitely a case to be made for avoiding over-abstracting and preferring explicitness to implicit magic. But that's much different than saying that exceptions are a under-abstraction like GOTO.
I see the message of this article more as "the high vs low taxes game has nothing to do with the problems of the poor, it is about helping or preventing any members of the middle class to become rich".

I tend to believe it. Trump shown us that the poor are so easy to manipulate into voting directly against their own interest that no one will be bothered to do much for their sake - it's not necessary at all for any politicians' goals. It's a balance of interest of rich (billionaires/centimillionaires) and middle class (the rest of the 1% or so). The rest of people are just taken along for a ride, some of them under false impression it has something to do with their interests.
Probably the closest thing would be to add a unique tag to each instance of the test:

for lhs, rhs, res, tag in [
(1, 1, 2, "thing1"),
(2, 3, 5, "thing2"),
(3, 4, 7, "thing3"),
]:
@test("simple addition", tags=[tag])
def _(left=lhs, right=rhs, result=res):
assert left + right == result

You can then select individual tests using something like `ward --tags thing2` to only run tests with that tag (in my example, the 2nd of 3 tests).

Since multiple tests can share the same tag in Ward, if you wanted to narrow things down to ensure you're only selecting from the tests generated in this loop you could do something like `ward --search 'simple addition' --tags thing2`.

You can also select multiple instances at once with `ward --tags 'thing1 or thing3'`.
why does that now make think of spherical cows? :-)
Works consistently every time for me, it relies on the web version so if the web version is working, it works (and if the app doesn't work it is because the web version is down).
I made a video input form: https://github.com/wgryc/video-input-js

The idea is that you have a form field-like command that you can record a response with. You can then submit the video via a regular POST request.

I couldn't find any simple tools like this for rapid prototyping different survey responses and experiences. It was fun to build and nice that some people have starred this on GitHub!
How can the core of the story of the guy who created Flamin' Hot Cheetos be true if he had absolutely nothing to do with the creation of Flamin' Hot Cheetos?

The real shocking part of the article is to find out that we (black kids growing up on the South Side of Chicago in the 80s) invented Flamin' Hot Cheetos because of our addiction to putting hot sauce on our chips. I honestly thought everybody did that, and didn't understand the early rise of the Flamin' Hots craze - I assumed there were always products like that available, because there were always local products like that available in Chicago.

> This is no different than how any other energetic, extroverted, outgoing, optimistic sales / marketing executive I’ve worked with would behave (let alone - a founder trying to pitch a VC). They’re not necessarily being dishonest - not everyone has an engineer or a scientist’s analytical memory and linear, organized view of cause and effect. And it’s not as if we’re talking about presenting evidence from a clinical study for a cancer drug here - the man is just telling a story, everyone knows that.

You could just shorten this to "who cares, it's just another bullshit artist."
Elder.js, an SEO first, Svelte framework and Static Site Generator. [0]

Lots of SSGs existed but none supported Svelte and I wanted partial hydration when people said it was impossible.

[0]: https://elderguide.com/tech/elderjs/
It is a travesty but I think that case works more for the person you’re replying to: it was evidence of misconduct (the prosecutor noticing his body cam footage didn’t match his reports) which called that into question, not just saying someone _could_ have tampered with the evidence.

This will work the same way: if there’s corroborating evidence, it’s likely to be as futile as the original article’s author predicts, but if there is something speculative which has only unconfirmed evidence from Cellebrite it might be enough to get that thrown out.
I built JsonBlob[1], to help mock out JSON APIs so that building backends could be decoupled from front end development. I'd been needing this tool forever and then finally spent a weekend about 8 years ago building it out. I've been trying to find time to rebuild it with Kotlin and Micronaut, but just don't have the free time I used to have...
[1] https://jsonblob.com/
There’s no “serious work” to do - either we play the game of picking and choosing whose use of electricity is less useful than others, or we tax carbon universally. Personally I prefer Bitcoin to video games, but I’m probably a minority. However I don’t think we should outlaw video games for being a giant waste of electricity (and time).
> de facto helping to undermine the containment system being placed on China by the West.

Tell it to every US ally trying its hardeest to play the situation
>“hey why don’t we go for a run, somewhere next Monday maybe around noon, just the two of us. I think there’s a nice track close to my place.”

欸！下个星期我们一起去跑步吧。比如星期一中午，就我们俩。我家附近好像有个挺好的跑道。

That's almost a direct translation that would work just fine in Chinese.

> I though of the activity first then the time then the person. Generally that’s how I come up with how to plan activities.

Then you will be really happy to learn about the topic-comment structure in Chinese. It's exactly what you want!

EDIT:

If you really want to say "go running together" before "next week" then that's also fine:

欸！我们一起去跑步吧。比如星期一中午，就我们俩。我家附近好像有个挺好的跑道。
People are different, but thinking you're both an extrovert and an introvert...means you're closer to neither.
"Booby trap" laws aren't relevant because they're specific to physical injury.

However, there are explicit laws against tampering with evidence or things that you'd expect are likely become evidence.
I was probably using that, when it was around.

Good, and possibly better than today's TST, but still short of my goal(s). And that's without its instability (ISTR that crashing a fair bit.)

I'd like to be able to:

- Search tabs (by metadata).

- Search tabs (by content).

- Organise tabs by task / project. Including assigning open tabs to tasks, and possibly to multiple tasks.

- A sense of utility vs. info tabs. (Pinned tabs ... sort of does this. Examples might be webmail, chat app, or tools like a dictionary or other data-lookup page.)

- Arbitrarily grouping a set of tabs based on specifiable criteria, or UI-based multi-select.

- Taking actions based on those groupings (close, combine under a single tree, bookmark, print, save, etc.)

I'd have to think more on what sorts of things I'd be doing, but Web as Workflow is a major component of this. Current browser design seems entirely antithetical to this.
Japanese Phonetic Hiragana with Audio
Michael Lewis: ‘We were incentivised to have a bad pandemic response’
The label actually says "100% grated", not cheese. It is intentionally misleading and it's obviously working.
I feel a lot of introverts enjoy patting themselves on the back. Case in point you found a book called quiet. Is there a book on the other side of the spectrum called "loud"?
React Frontload, a library to load data into components that works with the same code on client and server render.

Why? I wasn't happy with the pattern of hooking data loading into a router, and having to load all data needed for a page upfront at the route level and then plumb it through. I just wanted a way to let components specify what data to load themselves, and then do it on the fly as they render, whether on the client or on the server.

It still surprises me a bit that React itself never built in an async lifecycle method for server render that would solve this problem. React Frontload basically acts as a polyfill for that feature - it's been slowly ticking up towards 500 stars over the past couple of years, so I can't be the only one who finds this useful :-)

https://davnicwil.com/react-frontload
> Case in point, my last boss was a visible, forceful woman who emphasized relationship building. It took me a year to learn she actually is heavily introverted and spends her weekends not talking to anyone. She was an effective introverted leader but she was also just an effective leader, period. It wouldn't occur to her to share this article.

Maybe if workplaces would be more acceptable of introverts she wouldn't have to spend the whole weekend recharging. Indeed this is not the first article making the case for introverts and it is obvious that introverts can act like extroverts and vice-versa. But there is a price to pay, e.g. needing some recharge time.

> On the other hand, plentny of low impact people believe they have great ideas but they aren't able to articulate them to get any traction or even feedback.

Plenty of high impact people just spill out their ideas and let other people spend many iterations to proof that those are bad ideas. Many introverts come up with excellent ideas and let them speak for themselves.

Apart from that one shouldn't forget why people have been hired in the first place. So they bring something to the table and not everything was on the job description or is common knowledge. I wish there was more appreciation for different approaches, also given that almost half of the population is considered introverted.
Btw you do use this with stingrays to trick the phone into full power boost so it will use the battery very quickly. Useful if you want to encourage the user to go home to charge.

I don’t remember the details but it has to do with selecting which cell tower is the best and how strong the cell phone needs to boost the signal are two different steps. Or at least used to be 10 years ago.
I was also wondering why not use a heat pump into the thick atmosphere. Turns out there is a NASA design for that: https://www.newscientist.com/article/dn12905-antique-fridge-...
Thanks. The music app code is closed. There's a public demo still online, but I got terrible feedback, so I'm slowly rebuilding it from scratch with a completely different design.

As for DI: in my case, it was definitely worth adding. The original music app didn't have it, so I had to come up with convoluted mechanisms to share cross-cutting services with different ViewModels, and it got messy. Some had to keep references to services that they didn't actually need themselves, but their child ViewModels did... With DI, I just register the services with the library, and let it inject whatever a ViewModel needs.
Cool! That makes sense -- it still felt incredibly clever and tricksy to us when we were about 16 and trying to map our 'beautiful algorithm' into NQC sometime past midnight, for a morning competition.
Are videogames a giant waste of electricity?

It depends a lot on what activities they displace.
What the law is can't be realistically argued. What the law is is a function of what a prosecutor, jury, and judge collectively are willing to let a conviction go forward on.

This is what bugs me about common law. You can't take a statute at face value anymore once a sufficient amount of case law comes into the picture, and there is no active effort to reconcile the original statute with the reality of the case law it spawns.
1 in a 100 would be great odds. I’d kill for those odds...
At this point I've made a habit out of building homebrew tools and languages. Very few of these are purely because I was dissatisfied with off-the-shelf solutions; many of these just exist because I thought it would be fun/educational/challenging to build an X for myself from scratch.

I've made

- A dynamic programming language, Ink (https://dotink.co), which runs in "production" (for whatever that means for side projects) for around a dozen projects written in it.

- A compiler to compile that to JavaScript (https://github.com/thesephist/september)

- A bunch of language tooling around that language, like syntax highlighters, editor plugins, code formatters (for example, the code formatter https://github.com/thesephist/inkfmt)

- A small UI library (https://github.com/thesephist/torus)

- A suite of productivity tools (https://thesephist.com/posts/tools/) like notes, todos, shared whiteboard, contacts/CRM

- Twitter client (https://github.com/thesephist/lucerne/)

- Theres a few dozen more at (https://thesephist.com/projects/) :)

Many of these end up building on top of each other, so across the few dozen projects built on top of these tools they form a nice dependency graph -> https://twitter.com/thesephist/status/1367675987354251265
Is the UK heading towards mandatory vaccination of healthcare workers?
I remember a situation when after checkout an employee asked if I’d provide my zip code for statistical purposes. I politely declined and she froze, as if her brain didn’t know how to handle the exception.
> switching from JPG to WebP (a change with no real-world SEO value) to try to help SEO.

Nitpicking, but it _will_ have SEO value once Google rolls out Core Web Vitals this summer. Not massive, but it’s a very easy way of scoring a few perf points.
You're right. The linked page, is just Chapter 2 of Starting Forth.
Sure, politics is still important, but not as crucial as before. Elon Musk spent most of his young life reading technical books in the library and learning programming, while people who get into politics/banking are doing sports and lots of social events / social clubs.
I friend of mine had a switch installed on his leased car odometer/speedometer so he could shut it off. He was extremely careful to keep maintenance records consistent with drive time (performing his own oil changes outside normal service). To me the risk would be way too high, but it could be done in the early 2000's. Not sure about today.
> There is no good reason to put any form of telemetry in a non commercial open source project, ever. It is just user hostile behavior.

So tell me, why do people use telemetry at all? Why would it only be beneficial for commercial projects? That doesn't make any sense.

I'm in the process of building an audio application myself. One of the things I worry about the most, when dealing with complex end-user software, is how do I as the developer discover bugs and issues my users are experiencing. Only a tiny fraction of users go our of their way to submit a bug report, let alone do it properly so that it's of any use to me. Good telemetry is key to improving my user's experience, and I'm putting a lot of effort into getting that stuff right.
This blog's author wrote his own minimalistic static site generator: https://prog21.dadgum.com/

But, I think, doing things from scratch can be risky: ready-made solutions have a learning curve, but they also do lots of useful things which you might need, and writing all of that from scratch is really lots of work.

For me, it's always about find the right point on the spectrum between "write it myself to do exactly what I need" and "huge, bloated thing that claims to do everything anyone might ever need"
Douglas Adams and Terry Jones, 1997-12-07
If you're building a personal website from scratch in 2021 (especially a blog), I strongly recommend Hugo (https://gohugo.io) over Jekyll. I had used Jekyll for a decade and very often hit random quirks that have been completely eliminated with modern Hugo. However, there's a bit of a migration process if you are moving from Jekyll to Hugo despite both being Markdown-based blogs.

If you want a more advanced framework for a personal website, I recommend Wowchemy (https://wowchemy.com/) on top of Hugo, which gives the tools needed out-of-the-box like lazy loading/SEO/object-oriented collections, albeit with a massive learning curve.
Dogecoin.
"First, this is old news. And second, it's non-news."

If you asked the average person how much wood they thought was in their cheese they'd look at you as if you were crazy.

It's absolutely news because most people have not even the faintest clue that the cheese they buy contains anything but cheese, much less wood products.

I also see nothing wrong with calling cellulose "wood pulp". That's what it is, isn't it?
As we're getting closer to the end of the year, this is a wonderful post by Tim Urban on how to think about your life going forward. Make sure you have people you love and respect around you - family, friends, and colleagues. (5min)
Seems like this guy exaggerated his story, got speaking engagements, a book deal, and a movie deal out of it. Now, Frito Lay doesn't want to completely shut him down because they're getting free marketing out of it. Yes they published the statement saying it wasn't all him, but some of their execs are also trying to say he had a big part in something.

Why can't people just be honest? He has an inspiring story without all the embellishments, I wish he would have just stuck to it.
The art of the tick tock doc – Lara Hogan
One use case would be to integrate it blog sites for adding blog content (with markdown). But I don't know whether it supports this integration or not.
Hosts like Netlify also do this magic. Pushing to Master on Github runs any Jekyll plugins you want and deploys the site, including things like image optimization and CDN if you want.
I wrote a small library https://github.com/paulbares/spring-testcontainer that provides integration between the Spring (Data JPA) testing framework and Testcontainer library to easily test my application with different containerized database instances.
A fully featured feature store for our machine learning platforms to plug into.
that doesn't help. the problem was the length of the ship, not its width. a narrow entry point does not limit the length.
The Stingray is a commercially available model that you may have heard of.
It really hasn't stayed the same.

I stopped using it on my computers at windows xp (and windows 98 was the last version I spent any real time in) so the changes in newer versions of Windows are a lot more obvious (and confusing) to me. Here are just a few of the bigger ones:

The control panel has moved around a few times since then (and is way harder to find, I have to use the search feature to get to it) and now they have some windows RT replacement that I have no idea how to navigate. The user home folder (and even C:\) is harder to find now. Everything pushes you to use "one drive" which has non intuitive synchronization/corruption/compatibility/path behavior. The start menu is completely different and has ads now. I have no fucking idea how user creation works anymore but I think it's tied to some online service.

Linux has had a far more consistent UI. Xterm hasn't changed (as far as I can tell) since the version I had on my laptop when I was 12. Neither has FVWM (although they stopped calling it "FVWM2.") Bash has "deprecated" aliases but they still work. I guess GNOME has iterated on its shell a few times but it's not like Microsoft hasn't screwed around with explorer. Also caja is still there and behaves the same (does anyone actually use GNOME unironically anyway?)

Office has changed even more dramatically (which makes me wonder why people still stick with it, at this point libre office writer has fewer UI changes from word 98 than Microsoft word.)

If you want an example of "UI doesn't change much over half a century" look at coreutils. They make changes but people really freak out when they do because there's little difference between the UI and what is essentially an ad-hoc API.
I chose Jekyll as a static site generator because it was simple enough to understand what it does. Its build step is just taking a directory of markdown files and converting them to html pages using a template. It feels like the next logical step after writing all pages in html by hand.
Before I answer I'll just test whether this account has been shadowbanned like my previous accounts. It is a sad thing that I have to test for this but I'm not putting time in answering interesting questions for my answers to be blackholed again.

- edit -

Yes, shadowbanned again. Have a look at the comment history on this account and decide for yourself whether this is in any way defensible.

I'm done with HN.
Related: Never hit the "$19" button when getting a new MetroCard -- they are actively trying to cheat you with that, as it will leave you with just $0.05 short of a fare leftover on a card.

https://www.6sqft.com/19-05-is-the-perfect-amount-to-load-on...

The article's number of $19.05 is likely out of date since the last fare increase though.

And yes, the MTA is cheaper for hackers with an engineering degree and more expensive for unskilled laborers. SMH.
Fungi on Mars?
Yes. Because there is nothing unique about batteries, there is no way to defend against a replay attack in this scenario.
The Wall in the Head