skysight-inc/HackerNews huggingface dataset:
Corrected, based on some new test JSON^1

Print state transitions to standard error

Usage:

yy059 < 1.json 2>1.dbg | less
less 1.dbg

/* extract, reformat, print json */

int fileno (FILE *);
#define echo do{if(fwrite(yytext,(size_t)yyleng,1,yyout)){}}while(0)
#define jmp (yy_start) = 1 + 2 *
#define pc(x) putchar(x)
#define dbg(x) fprintf(stderr,"%s\t%s\n",x,yytext);
%option nounput noinput noyywrap
%s x1 x2 x3 x4
%%
^\40+
/* quotes
+-------------------+
| "key":" |
| "key": " |
+-------------------+
*/
\"[^\":\]\)]*\":\40*\" {
dbg("0--x1");
echo;
jmp x1;}
/* bracket + brace
+-------------------+
| "key":[{ |
| "key": [{ |
+-------------------+
*/
\"[^\":\]\)]*\":\40*\[\40*\{ {
dbg("0--0");
echo;pc(10);}
/* number
+-------------------+
|"key":1 |
|"key": 1 |
+-------------------+
*/
\"[^\":\]\)]*\":\40*[0-9\40\12\15]* {
dbg("0--x2");
echo;
jmp x2;}
/* bracket
+-------------------+
| "key":[ |
| "key": [ |
| "key":[ |
| "value" |
| "key": [ |
| "value" |
| "key":[ |
| "[value]" |
| "key": [ |
| "[value]" |
+-------------------+
*/
\"[^\":\]\)]*\":\40*\[ {
dbg("0--x3");
echo;
jmp x3;}
/* brace
+-------------------+
| "key":{ |
| "key": { |
+-------------------+
*/
\"[^\":\]\)]*\":\40*\{ {
echo;pc(10);}

/* NB. [\{] open brace */
<x1>[\]\{\"] {
dbg("x1--0");
echo;pc(10);
jmp 0;}
<x1>[^\]\{\"\12\40]* {
echo;}
<x2>[,}] {
dbg("x2--0");
pc(10);
jmp 0;}
<x3>[\]\"] {
dbg("x3--0");
echo;pc(10);
jmp 0;}
<x3>[^\{\12\40\]]* echo;
\n|.
%%
int main(){ yylex();exit(0);}

1. https://gist.githubusercontent.com/wololock/0ba478cfeb73b36c...

Need more JSON samples to test.
Mold (the linker) uses it
Every single 3p library that's imported into Google's monorepo gets vetted for license. If it's one of the standard licenses, it gets approved somewhat fast, but it's still time time consuming.
Presumably, there are social reasons for sweet potato washing as well. But, I think the idea here is that the practice had a non-social-cultural purpose at first (washing the hot sweet potato that came out of the fire) but now is widely retained for only a social-cultural purpose (washing fresh sweet potatoes, apples, and other things that are not hot)
Nobody lost their job, or suffered any particular inconvenience over anything the Church Committee did. They all continued on to retirement unbothered, with full pensions, then mostly cycled quietly into military contractors' management at a big markup, billed to us.

The COINTELPRO revelations were promoted as ending the program, but there is no public evidence anything changed. The stories about attempts at spying via ESP were themselves successful disinformation campaigns conducted against the American public. Most people who have heard of them believe them, wholesale.
Absurdly lax qualifications for margin and higher-level options trading.
There is a recent uptake in companies who want to make sure that their software isn't 'resold' by hosting companies (or book shops). They license the software under AGPL, so it's still "free", and can be used by individuals (or carefully by companies), but also have a commercial license available. You can't make "Hosted $THING" without a partnership.

Grafana is the biggest example that comes to mind: https://grafana.com/blog/2021/04/20/grafana-loki-tempo-relic...
No, it means that you as a client are allowed to request and should be given the source code for that server.
so if setting up a new server is easy then it's as good as e2e if both parties do so, right?
No, it just explains that whenever you make an HTTP request to an AGPL server, you are entitled to the source code of the server (under AGPL). Obviously, Google does not want to give you the source code to any of its services (which are generally accessible via HTTP), so it needs to be very careful not to get any of those under AGPL (which could happen by linking (not just HTTP-connecting) to AGPL libraries/software).
I was about to argue with you until I read to your last point. Totally agree one of the great things about containers is indeed they integrate very well with various Mandatory Access Control implementations SELinux included and don't generally require specialized policies for each app.
Frankly, a major thing that Caltech admissions looked for is a very strong interest in engineering and science. It's gotta be in your bones, or you ain't going to thrive there. With their limited resources (it's small) it's just not pragmatic to accept those with a more casual interest. And really, why would you want to go there if you weren't? After all, 9 out of 10 classes were 90% math, math, more math, and math.
Doubtful, "can be accessed" is unlikely to be interpreted as "can be used to access" by any reasonable court.
replace "an esports career" with "a startup" ?
https://en.wikipedia.org/wiki/List_of_software_under_the_GNU...

Some of the ones on that list I didn’t know used AGPL: Anki, Bitwarden, Ghostscript, EdX, Diaspora, Mastodon, Searx, Signal’s server code.

So a fair few from different time periods. Obviously doesn’t have the adoption rate of more popular open source licenses.
> controlling the quantity of work and how long people are in the chair/at the screen.

I see where you're coming from, but I think there's a categorical difference between those two.

The first you want to maximize, the second is a (blunt) tool to achieve the first.

If people prefer to work 4 hours in the morning and 3 in the night, vs 8 hours in one go, vs 10 hours of low focus vs 5 hours of hyperfocus, it should be up to them, provided they deliver.

As a manager, it's your job to suggest something, but also to understand not everyone works the same way.
Male Spider Catapults Itself into the Air to Avoid Sexual Cannibalism
To save someone else the trouble: With hex codes, 54 56 69 75 would be TViu. With decimal codes, it would be 68EK. The sequence isn't valid octal.
Nextcloud comes to mind.

Most other AGPL usage I'm aware of is using it as a poison pill license in order to sell a proprietary license.
> running a service and making the choice to distribute my source or not.

This right here is exactly why AGPL (and OSL that I use) exists.

It counters your sentence with "no, you can't do that". The fact that it removes your choice is a feature, not a bug. These licences don't give companies an escape hatch from sharing the source code, and I support that.
This article is clueless for the following reasons:

- outdated takes
- talks about "esports" like it is a monolithic, Dota 2 and LoL are not fighting games and fighting games are not Classic Tetris, and Classic Tetris is not speedruns.
- Implicitly equating NFL to sports, NFL is one sports, and there is many others.
- Implicitly equating esports to games and hobbies where having kids and family must stop you from playing 8 hours a day to stay on shape. Like not all society does that? no one else has kids and a job?

I am familiar with Dota 2 and LoL, those 2 do pay well in term of salary, Dota 2 in addition to salary has really high prize pools. The salaries are mainly prompted up by sponsors, mainly betting websites sponsors.
With that logic virtually every free (and non-free) software violates the freedom 0 because there is no warranty that the software is fit for any particular purpose. The freedom 0 is simply about being able to run the software and doesn't talk about the consequence thereafter.
Worked with a transputer based embedded system for a life sciences instrument. Checking if code was running was fun. You’d send the messages for poke and peek and check if the poke worked. If it did the program wasn’t loaded so you would send it over the transputer network. If it was the program would return a different value for peek.

Later when PCs with an ISA bus became less common we developed a USB interface to the device. Still needed to source the C011 transceiver chips but we got those free issue from the instrument manufacturer.
> There’s nowhere on the system where you can view the policies and look up why something might or might not work.

I always thought I had to be missing something with SELinux because this is what it seemed like to me and that can't be right. My impression is that the documentation for SELinux is extensive in all of the areas that aren't affecting you but it's really hard to nail down exactly what the policies are, what labels are available, which labels you should be using, and generally how everything interacts. Is there a SELinux Wiki somewhere that I've missed that has a simple breakdown of each and every possible label with interactions? Some tool I can use to generate said list?
there are a lot of "sports" out there that are variations of some common core mode. aussie rules is the largest and most lucrative sport belonging to the football family of sports that is only ever watched in australia. there's also union, league, gridiron, gaelic and subvariants of those. we don't need to unify all these rules just to appeal to a larger audience. i think we can all enjoy the different games in different contexts.
> Mike Sebastian maintains a page of “calculator forensics”, recording the result of computing arcsin(arccos(arctan(tan(cos(sin(9)))))) on as many different models of calculator as he or his pals can get their hands on. The value should be exactly 9

That's mathematically not correct. To define the function arcsin you have to choose a codomain, which is typically the interval [-pi/2, pi/2]. So for any values x not in that interval you will have arcsin(sin(x)) != x.
Awesome! Will definitely use your project as reference!
I was diagnosed with This about 2 years ago. some things you may not have been told is to try to avoid caffeine and antihistamines, as they can exacerbate the problem. apparently sleep apnoea can also bring this on, so maybe look into these as well as the stress.

as for stress, its hard. I can go months at a time without any issue, and then have something (usually work related) set me off. trying some mindfulness exercises, breathing exercises and other relaxation techniques have helped, but I find after a stressful workday I just try to do some dead thinking, you know the kind where someone asks what you are thinking about and you can't answer cos it was nothing. tv could be on, could be listening to music, could be nothing.
So, something funny. I just spent way to long going through a random sample of merchants that they claim are in their "network" to try to see this thing in action.

Not a single one had a 1-click checkout button on their product pages. Presumably, for the exact reasons you mention. I had to add items to a cart, go through an upsell modal, get to a checkout page (or some sort) and then I could click on the " Checkout" button.

It seems that the reason that no one has seen a Bolt 1-click checkout button on a product page in real life, is because it.... doesn't exist?

The one saving grace option I give them is that the behaviour may be different as someone who does not have a Bolt account. It's possible that they are tracking users, and dynamically changing the "Add to Cart" button to a 1-click checkout if I'm signed in to their system.

This behaviour would still explain why people have never seen it.
Hey thanks for checking lists.sh out! I've fixed the link.
I came to the same conclusion, but in my case the problem was that there were no audit messages for one particular denial. After a week or two of investigation I finally found the solution. But, I decided that I simply couldn't trust selinux any more, so I turned it off.
The first line of the Navy SEAL copypasta as a prompt:

What the fuck did you just fucking say about me, you little bitch?

This little bitch is the only reason you're not dead yet. I'll give you to fifteen seconds to walk over there and apologize. Right now. After that I'm going to call my friend over and he's going to beat the shit out of you. That's a promise. And I'm going to make sure that my friend beats the shit out of you so hard that your dick pops out and your dick grows a beard. Is that clear enough?

"You are the most disrespectful little brat I've ever met in my entire life." His voice was soft, but full of hate and rage. "You call me your best friend? What the fuck is wrong with you? If you weren't the prettiest girl at the party, I would smack the shit out of you.

"And then he took his phone out, and there were some pictures of me and my brother in his phone, and my brother is a lot older than me and in the pictures my brother was showing me how to do some shit. And my dad said he was cool, but he didn't think the pictures were cool at all. And then, before I could tell my dad, he took my phone away from me, and told me to never touch my brother's phone again. He's not even my brother."
They are free to do so even now, like Gab and Truth social or whatever.
Hey thanks for pointing this out. I've added an MIT license to the project.
Google like most tech companies may support "open source" but they do so only in the context of dev tools. This is a real problem for modern open source.

Free software it seems is trending away from software products that are open source, instead Open source is being limited to developer tools, libraries and framework.

Great for devs. Bad for end users and software in general
He is supposed to resign as president of the Freedom of the Press Foundation, or even urge its dissolution.

Remaining there implies to the world that the Foundation does not believe its stated founding principles and is little more than a front organization for the Russian state, and undermines any past work he has done to promote press freedom.
I was hoping Microsoft's own write-up[0] would cover what distro this PoC was based off of since most popular ones using systemd have some kernel level security policy framework (whether apparmor or selinux).

Instead, under the mitigation section of their blog post the focus is on some product known as Microsoft Defender for Endpoint. From my own (naive) understanding the type of exploit described here would violate most sane selinux policies for the networkd binary.

I guess the only way to know for sure is to try exploiting this vuln on my own systems and see what happens.

[0] https://www.microsoft.com/security/blog/2022/04/26/microsoft...
I like apparmor better. Set it up for high attack surface apps like browsers and vms.
you wouldn't, as GPL/AGPL only requires distributing the code to the users, and only if you changed anything.
He should have replied to Mueller asking who was being protected against criminal prosecution by keeping the material classified.
tell that to Atlassian
> What do you expect, that he bite the cruel hand that feeds him?

Snowden’s claim to fame is “biting the hand” in service of humanity. Is he still a man of principle or has living in an actual police state turned him into a compliant pet? You tell me.

> very unwarranted swipe. Might as well request Obama

The name “Snowden” is in the title of this discussion topic. But requesting Obama return his Nobel Prize seems reasonable enough to me; feel free to do that here or wherever else.
It's obnoxious to show who is typing. Like, give me a minute to compose my thoughts and type a response without feeling in a rush because everyone can see I am typing.
I review code. If the code is improperly formatted I know the person isn't using the right formatting tools and I tell them to fix that. In general I trust my team to actually use our code formatting tools and follow guidance.
https://news.ycombinator.com/item?id=31176453
After about a decade of data, I think the community/e-sports results in Dota generally show:

1. In some roles and metas, the split second mechanical difference does matter i.e. for carries or mid-lane playmakers under specific metas and specific matchups. Although some metas are less mechanically deep for certain roles -- I know part of the theory for Dendi's decline is that his mechanical skill was overkill when denies in midlane (very timing based mechanic) became less important compared to macrostrategy (meaning that he couldn't just 'out skill' opponents and win the game with an early lead).

2. But, the experience gains from being in competitions for a long time make the older players a great fit for coaching, captain, and support roles.

3. But another factor is less reaction time and more that the late 20s and early 30s players have spouses and more expansive lives beyond the game, so they simply cannot spend the 100+ hours a week perfectly tuning the midlane or hard carry meta where the fundamentals can change really fast. Also, for the most successful players (read: millionaires) they want to enjoy their wealth and do things outside the game.
Is this not just going to lead to Chromium dominance, and therefore same issues we've seen before?
> https://sci-hub.3800808.com/10.1038/302687a0

I'm having trouble figuring out a non-absurd interpretation of that paper.

For example, their Equation-7:

> p(h←e, e) = p((h←e)e, e) = p(he, e) = p(h, e)

, which looks like they're saying that, when there's evidence "e", the probability that a hypothesis "h" is true is equal to the probability that "e" proved it.

For example, say we consider the hypothesis, "h", that there aren't 10-armed spider-monkeys that like jazz-music currently on Earth. Then based on that hypothesis, we make the prediction that we won't see a 10-armed spider-monkey listening to jazz-music in the next room. Then, let's say we check that room, and there's not such a 10-armed spider-monkey listening to jazz-music, such that there's "e".

Did our test prove the hypothesis? Wouldn't seem like it.. I mean, even if there were 10-armed spider-monkeys, it'd seem like they could just be in places other than in the other-room. So, "p(h←e, e)" would seem pretty close to zero.

However, it still seems like the hypothesis that such spider-monkeys don't currently exist on Earth would seem fairly probable. So, "p(h, e)" would seem fairly close to one.

So, "p(h←e, e) = p(h, e)" wouldn't seem to hold, even approximately.

That said, the author didn't clearly specify exactly what they meant, so maybe they meant something else? But I'm not seeing an obvious, non-absurd interpretation of their claims.
Uber concedes deception, prepares for $26M ACCC spanking
Yes let me think about how/where to do that. Any suggestion? I guess I could use github?
Standardized games would be the death of eSports.

Physical sports are limited by physics and are certain ways because humans cannot fly or revive at a spawn point. Those are practical limitations and many rules are there to reduce injury.

Limiting eSports to committee-designed clean room games that only change every few years will take the whole fun of "everything is possible" out of it.

It's completely okay for gamers to play their favorite game. Just as people rather play football or cricket instead of baseball or rugby.
Right because VCs are shoveling money at AWS directly

Their take was startups leveraging the cloud are dead to VCs except in certain niche situations

The proles are always behind the trends

Apple jumped into content creation after Alice neutered software patents. Copyright is Disney level bread and butter now

There are few real markets for CRUD app startups which are just the same old shit with a marketing angle painted on top

Docker pull that shit and run it local.
https://news.ycombinator.com/item?id=31176453

> I've seen many devs work with broken environments and just ignore the problems because it doesn't actually stop them, or because they don't realise it's broken.

That sounds like an educational issue. I work in a small team in a small organization.
It's just me working on this project, and yeah I'm not super strong with marketing or business neither english is my first language.

Do you have any suggestions how to describe it better?
Is "Edit and continue" more descriptive (I think this is what Microsoft calls it for .net).
Hence the need to do it repeatedly.
Everyone who has even a slight interest in learning how to use selinux should just go through this CTF-style game: http://selinuxgame.org/
Lol at the proofs that are simply the words "trivial", "easy" etc. Why is it so hard to just write it out fully, in a completed paper -- it would barely add any length. I agree I may find them easy, but the attitude is harmful. Besides after doing any sort of functional programming the whole paper is obvious, so why even bother :). The same brain rot extends to more complicated situations.
You would just have to offer yourself your own source code to comply. Unless you plan on suing yourself, you don't even have to comply in this trivial case at all.
I opened this thread hoping to say this exact same thing and you hit the nail on the head.

I had this discussion with someone not long ago about the term "homeless" or "homelessness" and their argument was that this was an overly aggressive word and was outdated. The damn word describes exactly what it is, which is a person that is without a home.
you can go quite far with golang without needing any other library/framework with just std library which means less dependencies and lesser things to worry about in case of maintaining your code base, upgrading it with newere go version and ease of operation(since it is single executable).
Some of the basic things that you need that don't require frameworks are
1. http/https
2. authentication
3. sending mails
4. templating(it isn't powerful but you get by)
5. background jobs
6. date/time etc.

I am not familiar with ruby but my understanding is you don't get these out of the box you will need framework like rails for it.
How easy/difficult it is to upgrade rails? for golang if you are sticking to stdlib it is trivial. If it is easy to upgrade/maintain/operate rails and you are familiar with it than don't switch.
So MongoDB is out
Keep a searchable web archive for your Discord community
There should exist places designed to provide maximum learning opportunity to those who come in already knowing a fair bit. It is a loss to society if such places start disappearing, or perhaps a sign of such loss if the reason is less demand.

This does not in any way imply that those should be the only kind of places to exist.

This does not in any way imply that there's anything wrong with people who started to recently to have relevant background.
Fun detail: I originally built this page of the documentation to help support my application for a JSK journalism fellowship at Stanford, see https://simonwillison.net/2019/Sep/10/jsk-fellowship/

The page used to have a lot more details on it, but a while ago I split it off into two sections on the Datasette website.

https://datasette.io/plugins lists 86 plugins - there are actually a few more that I haven't added to the site yet though, which I found recently by searching the Google BigQuery PyPI download statistics for packages starting "datasette-".

https://datasette.io/tools lists 38 tools - mostly command line utilities I've written for importing data from different sources into a SQLite database file so you can explore them using Datasette.
Ask HN: Canada for Tech Jobs?
Is now a good time to move to Canada for tech-related jobs, data science/analytics in particular? What parts of Canada should one consider?

PS: Reviving the thread from 2020: https://news.ycombinator.com/item?id=23440346
Crystal's macro system is definitely worth comparing here, considering it has taken a very interesting / powerful approach to macros
I did and to be fair the people there were very helpful. It's just that I needed more hand holding than the average person (as I was new to Java as well)
Completed Text:
GPT-J was diagnosed with Munchausen's Syndrome by Proxy.

He was previously convicted of a DWI and child endangerment.

He was arrested earlier this year for domestic violence and is awaiting trial.

He has another pending case for probation violation.

He also has three cases open for aggravated battery with great bodily harm in 2011.

If convicted, he faces up to 30 years in prison.
TorToiSe – a true zero-shot multi-voice TTS engine
Big Tech and the Tom Sawyer Effect