skysight-inc/HackerNews huggingface dataset:
/* yy082 part 1 of 2 */

int fileno (FILE *);
int channelid,videoid,canonicalbaseurl,token,http,playlistid;
int c;
%option nounput noinput noyywrap
%s xa xb xc
%%
/* --------------- watchurls -------------------- */
"https://www.youtube.com/watch?v="[-0-9_A-Za-z]{11} {
if(http)puts(yytext);
if(videoid)
{
for(c=32;c<43;++c)
if(yytext[c]!=0)fputc(yytext[c],stdout);
if(videoid)putchar(10);
}
}
"https://www.youtube.com/embed/"[-0-9_A-Za-z]{11} {
if(http)puts(yytext);
if(videoid)
{
for(c=30;c<41;++c)
if(yytext[c]!=0)fputc(yytext[c],stdout);
if(videoid)putchar(10);
}
}
"https://www.youtube.com/shorts/"[-0-9_A-Za-z]{11} {
if(http)puts(yytext);
if(videoid)
{
for(c=31;c<42;++c)
if(yytext[c]!=0)fputc(yytext[c],stdout);
if(videoid)putchar(10);
}
}
"https://youtu.be/"[-0-9_A-Za-z]{11} {
if(http)puts(yytext);
if(videoid)
{
for(c=17;c<28;++c)
if(yytext[c]!=0)fputc(yytext[c],stdout);
if(videoid)putchar(10);
}
}
/* --------------------- playlistids ------------------------- */
\"shareUrl\":[ ]\"[^\"\12]+\", {
if(playlistid)
{
for(c=51;yytext[c]!=32&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=92&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putc(10,stdout);
}
}
"https://www.youtube.com/playlist?list="[-0-9_A-Za-z]{18,34} {
if(http)puts(yytext);
if(playlistid)
{
for(c=38;c<74;++c)
if(yytext[c]!=0)fputc(yytext[c],stdout);
if(playlistid)putchar(10);
}
}
\"playlistId\":[ ]\"[^\"\12]+ {
if(playlistid)
for(c=15;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<50;++c)
if(yytext[c]!=0)
{
if(playlistid)fputc(yytext[c],stdout);
}
if(playlistid)putchar(10);
}
/* --------------- videoids -------------------- */
"target=_blank>"[-_A-Za-z0-9]{11} {
if(videoid)
for(c=14;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<25;++c)
if(yytext[c]!=0)
{
if(videoid)fputc(yytext[c],stdout);
}
if(videoid)putchar(10);
}
[,'][-_A-Za-z0-9]{11}[,'] {
if(videoid)
for(c=1;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<12;++c)
if(yytext[c]!=0)
{
if(videoid)fputc(yytext[c],stdout);
}
if(videoid)putchar(10);
}
\"videoId\":\"[^\"\12]+ {
if(videoid)
for(c=11;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<23;++c)
if(yytext[c]!=0)
Certainly something interesting is bound to come out of quantifying things? "Hm, this three act structure thing seems to work, I wonder why." "Children doesn't seem to understand texts which include these words, I wonder why."

Patterns rarely show themselves before we investigate.
> do you contend that the monarchs suddenly got uglier

Yes, because for centuries they were having children with their relatives.

If you studied basic biology you would know that by doing that the gene pool become too small and many physical problems arise (and appearance is only one of them).

Incest, according to many sources, was the cause of collapse of the Egyptian empire. The latest pharaoh had all sort of problems (and mental problem was one of then too)
What about pihole? What about watching less TV/youtube?
Huge red flag. What extraordinary thing did Canonical accomplish by the way? Making a Debian distro for first year uni students?
>an unwanted third party

This is precisely what Cloudflare is doing to end users - causing problems like OP (and myriad others) experience by slowing down and/or blocking major chunks of the internet
based f# enjoyer
OTOH, https://acdc-beverage.com/guinness-a-brand-that-doesnt-pay-r... :

> Guinness actually doesn’t pay any rent for its iconic St. James’s Gate Brewery in Dublin. That’s because the site has been owned by the Guinness family since 1876, and the current lease runs until 2031.

From 1759 to 1876 is 117 years.

FWIW, as far as I can tell, a 9,000 year lease would have conflicted with the rule against perpetuities. Certainly Cadell v Palmer (1833) set the limit as "lives in being plus twenty-one years[1]" and I gather from https://www.lawreform.ie/_fileupload/Reports/rRuleAgainstPer... that something similar have applied in Ireland at the time of Guinness, certainly by 1833.

As an interesting observation, Arthur Guinness II lived 1768-1855 and 21 years later is 1876. I'm now curious about the actual text of the lease, but I can't easily find a copy online.

[1] For the life of a person currently alive or in gestation, and for 21 years after their death. See also https://en.wikipedia.org/wiki/Royal_lives_clause with a recent notable use in the US at https://en.wikipedia.org/wiki/Central_Florida_Tourism_Oversi... .
If you are talking about CRUD, sure. But there is software in self-driving cars, 3D printers, drones, etc. that uses vector calculus and differential equations heavily.

Same with applied statistics. For example, if your software has anything to do with quantitative models used in trading, it would be pretty hard to work on it without calculus.

Even reading a paper on effectiveness of COVID-19 vaccines requires one to know what p value is and isn't, which in turn requires PDF and CDF (calculus again).
When people yearn for the yesteryear of mass market propaganda it just means they yearn for when they didn’t know it was propaganda, and didn’t realize that a world where their side does everything right is a world that only exists in the propagandist’s mind.
// yy082 part 2 of 2

{
if(videoid)fputc(yytext[c],stdout);
}
if(videoid)putchar(10);
}
\"videoId\":[ ]\"[^\"\12]+ {
if(videoid)
for(c=12;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<24;++c)
if(yytext[c]!=0)
{
if(videoid)fputc(yytext[c],stdout);
}
if(videoid)putchar(10);
}
"i.ytimg.com/vi/"[^\/]{11}\/[mh]qdefault.jpg {
if(videoid)
for(c=15;yytext[c]!=13&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125&&c<26;++c)
if(yytext[c]!=0)
{
if(videoid)fputc(yytext[c],stdout);
}
if(videoid)putchar(10);
}
/* --------------------- canonicalbaseurls ------------------------- */
\"canonicalBaseUrl\":\"\/@[^\"\12]+\" {
if(canonicalbaseurl)
{
for(c=20;yytext[c]!=32&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=92&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putc(10,stdout);
}
}
\"canonicalBaseUrl\":[ ]\"\/@[^\"\12]+\" {
if(canonicalbaseurl)
{
for(c=21;yytext[c]!=32&&yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=92&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putc(10,stdout);
}
}
/* ------------------------ channelids ------------------------------- */
\"channelId\":\"UC[^\"\12]+ {
if(channelid)
{
for(c=13;c!=yyleng+1;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
\"channelId\":[ ]\"UC[^\"\12]+ {
if(channelid)
{
for(c=14;c!=yyleng+1;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
\"browseId\":[ ]\"UC[^\"\12]+ {
if(channelid)
{
for(c=13;c!=yyleng+1;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
\"browseId\":\"UC[^\"\12]+ {
if(channelid)
{
for(c=12;c!=yyleng+1;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
,UC[^\"\12,]{22} {
if(channelid)
{
for(c=1;c!=yyleng+1;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
/* --------------------- tokens ---------------------- */
\"token\":[ ]\"[^\"\12]+ {
if(token)
{
for(c=10;yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
\"continuationAction\":\"[^\"\12]+ {
if(token)
{
for(c=22;yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
\"continuationCommand\":\{\"token\":\"[^\"\12]+ {
if(token)
{
for(c=32;yytext[c]!=34&&yytext[c]!=44&&yytext[c]!=93&&yytext[c]!=125;++c)
if(yytext[c]!=0)
fputc(yytext[c],stdout);
putchar(10);
}
}
.|\n
%%
int main(int argc,char* argv[]){
if((!argc)||(!argv[1]))goto help;
if((argv[1][0]!=98)&&
(argv[1][0]!=99)&&
(argv[1][0]!=104)&&
(argv[1][0]!=112)&&
(argv[1][0]!=116)&&
(argv[1][0]!=118))goto help;
if(argv[1][0]==98)canonicalbaseurl++;
if(argv[1][0]==99)channelid++;
if(argv[1][0]==104)http++;;
if(argv[1][0]==112)playlistid++;;
if(argv[1][0]==116)token++;;
if(argv[1][0]==118)videoid++;;
yylex();
exit(0);
help:
fputs("usage: yy082 {b,c,h,p,t,v}\12",stderr);
fputs("b canonicalBaseUrls\n",stderr);
fputs("c channelIds\n",stderr);
fputs("h watchUrls\n",stderr);
fputs("p playlistIds\n",stderr);
fputs("t continuation tokens\n",stderr);
fputs("v videoIds\n",stderr);
exit(1);
}
ARM was launched from the origins of Acorn in November 1990 as a joint venture between Apple, Acorn, and VLSI Technology.

So Apple is the right type of investor here. Things have vastly changed since back then of course and Samsung (with their exynos line) is a major ARM customer as well. I expect Qualcomm and Nvidia to be major investors too.

intel doesn't know what it's doing. (see strongARM)
Can you steal AWS accounts with no effort?

And keep stealing them after you get blocked on the first ones?
> how far Panama should go to keep being a canal country

Country resources that provide wealth need to invest into other areas that will supplement income. Is the canal taxing and putting that into other projects that are on a trend to displace the income from the canal?

As a Canadian I don't know Panama for anything but the canal. Are there things that place it in the top 5 of the world that would justify not being a canal country?
The author worked very hard, but no word on what exactly went wrong at the tipping point. There seems to be a lot of missing context here.
What do you mean?
It's below the title and says "today by Ernesto Van der Sar".
For older news it will show date, month and year.
I'm sure some of them are, but there's a strong financial incentive to develop health problems in towns where there are no jobs.
> BUT! My 6581R3 also does not sound like my other 6581R3, there's not really any "one true" sound for the SID, for better or worse.

Might just be old age? At some point, IC's may be degraded to a point where few (if any) work exactly like original part when it was new. And thus also differ between specimens.

At some point, original parts may become unreliable / quirky / glitchy enough that picking some kind of re-implementation (rather than original) as the "gold standard" is the only way forward.

Not a big issue for 'pure' digital parts like CPUs, glue logic etc. But (partly) analog IC's like sound or video chips... different story.
After years writing bash scripts I stumbled with this line...

set -e

Which forces the script to exit on first error.

This line be in the bible as Genesis 1:1
Part of the problem is that for any job you'll be inundated with completely inappropriate candidates (like, people who literally cannot use a computer for positions as Linux programmers), and you have to somehow exclude those in as automated way as possible.

This is not to defend the Canonical hiring process which sounds weird and inappropriate, and potentially illegal.
All the non-African humans have a little Neanderthal DNA, and indeed some groups from East-Asia and Oceania also have a little Denisovan DNA.
> but because they’re contrary to the (false) narrative of “Mission Accomplished.”

I don't think you understand the cost of installing and maintaining that level of air filtration in every single public and office buildings on a world scale
Nice to know I am not alone. No TV at home since 11 years. About 6 months ago stopped going on Twitter and google news or any internet news. In terms of my daily “diet” it is exclusively HN and Reddit/ML for up to an hour in the morning, plus a few select tech newsletters I subscribe to.

Core problem with Twitter or LinkedIn — almost everything is calculated to self-promote the authors. Granted there are many “interesting” things that pop on Twitter. However that is also a problem — things are often too interesting, and if you’re a builder you’ll never build anything if you follow every rabbit hole.
Here is the output of llama2-7B-uncensored (a fun model to play with, btw.):

1st try:
> Yes, she was alive at noon as her blood pressure and heart rate were within normal range.

2nd try:
> No, Mable was not alive at noon as she died 4 hours before that. Her blood pressure and heart rate were both normal at 120/80 mmHg and 75 bpm respectively during the time when her death occurred between 11 PM to 12 AM.

3rd try:
> If Mable's heart rate was 75 bpm at 9 AM and her blood pressure was 120/80 mmHg at 7 PM, then it is likely that she was alive at noon.
If anything, it’s the smart people that need to be protected from technology, because Silicon Valley is obsessed with pulling them down into a Harrison Bergeron nightmare where they’re absorbed into the same modeled probability distribution as the rest of the population to better sell them ads (outliers are bad for profits.)
In my opinion the writing for a way out of this mess has been on the wall for a long time now, post-Covid. This is with the only viable, but still heavily under-utilized product they have left: hot-desking and community workspaces.

Having rented multiple dedicated offices from WeWork I can attest that the corridors are become more and more like a post-apocalyptic landscape as the tenants — no longer taking advantage of introductory rents — move out one after the other. Go to the hot-desking spaces floors and you’ll find it bustling and sometimes not even possible to get a seat somewhere.

Why they haven’t aggressively cut underperforming locations and consolidated more hot-desking space into the better buildings is beyond me. Especially in the current work environment where arrangements with companies are flexible and the line between home and work becomes ever blurred. It seems like the perfect base to start on to build a new offering for companies that can provide employees with hot-desks on a flexible basis.
> Returning a 200 in an error situation makes it very difficult to diagnose errors. For example, the F12 debugging pane in my browser color-codes errors responses. Fiddler does the same thing too.

I strongly disagree; let me try to convince you why those tools are correct and why it's still wrong to return non-2xx error codes from the application.

The F12 debugging pane and related tools which color code non-2xx response codes are correct for returned documents, not for API requests. For returned documents, HTTP is the application protocol, for API requests HTTP is the transport medium! These tools are not able to make the distinction (yet) between "calling an API" and "retrieving a document".

In HTTP it's literally called the status code, not the error code.[1]

Look at it this way, when you're in ssh to a remote host, any errors in the transport medium is reported within the TCP stream, not inside the TCP headers or inside the IP headers. Errors from ssh itself don't set error bits in the TCP stream or IP packets. You'd be horrified if, within ssh, a shell error (say, 'cd /non-existent-dir') sent error codes in the error fields of TCP headers or IP headers.

So, yeah, errors in the application layer should not set error fields in the transport medium. When serving static files or documents, HTTP is the application layer, so it should report things like '404 not found'. When GETting an API endpoint
results in the application not find (for example) 'web.config', it should not* return a 404. After all, the handler was* found, the URL is correct, so don't overload the 404 for something else.

[1] Even curl handles it properly for the level it is working at. Since it is one layer higher than even the HTTP API (because it returns a result to the shell that called it), no errors are returned for any non-2xx responses, because, from the shell PoV, that's not an error.
Planes have pretty good air filtration systems yet people got sick in them, it's not like the air you breath out goes straight through a filter stack.
Can you break this down? I don't follow.
Show HN: Neverinstall AI and CloudLink
This is the Co-Founder of Neverinstall.

Me and my twin brother and have spent the last 2 years building Neverinstall, a powerful computer accessible right from your browser.

We're thrilled to introduce:

Neverinstall AI - The world's first AI cloud computer. Whether you're programming, designing, or just browsing, it can handle it all. Give it a try and share your thoughts!

CloudLink - During our journey, feedback revealed that users wanted the ability to link their own cloud accounts to Neverinstall. With CloudLink, access a cloud PC equipped with enhanced GPU, more CPU/RAM, and reduced latency.

We're eager to hear your feedback!
Agreed, and I wonder if we'll see the adoption of "security hardened" CPUs which sacrifice performance features for non-exploitability. You can have one or the other, but not both.
Compare the AVIF with the original and you see how bad it is. You need to make the comparison at a bitrate where at least one of the format gives acceptable results.
Mistral will go nowhere. They will be bankrupt in a few years, and investors will lose most of their investments. No, it's not due to lack of CompSci and AI talent. It's rules, regulations and inability to find anyone willing to use whatever product they come up with.

They still don't even have a proper website.
That seemingly isn't as clear to the many companies and households who move to carbon-free technologies with the goal of decreasing energy costs, thus increasing profit/utility/quality of life by simply investing in energy efficiency.
Doesn't seem like the fear of AI more just authors being petulant, didn't we have the same thing with some hack Star Wars book author attacking the internet archive for daring to host a copy of his book before the AI fad.
> I would love to just plunk down 20 euros and be good for the foreseeable future

Simple, buy the number of gift vouchers on Amazon that meets your budget.

There is no limit on the number of gift vouchers you can apply to a single account.
Here is an example I made:

https://workstaurants.com/
There's a strong financial incentive to do all kinds of crimes. That doesn't make it reasonable to go around accusing large swathes of people based solely on their demographics.
Smaller dent then selling trampolin patches that take a already sold good and multiply the performance with a factor of 0.75.
Tauri might be cool in theory, but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine.

Arguing "Rust has no dev speed penalty" in that context is just... no. You are damaging your own cause there, because all advocacy becomes laughable.
I did in fact read the article. The author isn’t concerned about the book project. The author wants to use it as a springboard for complaining about AI fear, and his argument fundamentally hinges on the claim that AI training is fair use. He’s claiming the book project is comparable to AI training.

I think the book project has a better claim to fair use than AI training does, although excerpting entire pages is maybe too far (but the word highlighting does feel like commentary).
Tell that to the non-combat victims: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7903104/#:~:tex....
Inexpensive compared with their Windows Apple counterparts.
Definitely this.

If only to note, say, the section(s) of the Bash manpage or GNU Info Manual in which topics are discussed.

Taking the first-listed example, the '%%', '##', etc., substitutions are covered in Parameter Expansion.

I tend to go first to manpages, though I'm well aware that GNU deprecates these (exceedingly unwisely IMO) in favour of the Info Doc format (and its dedicated single-purpose reader). I'll note that the manpage alone renders to 120 pages (man bash | pr | less) onscreen, which is fairly formidable.

The PDF-formatted GNU bash manual (a fine format for a reference of this sort) runs 196 pages: <https://www.gnu.org/software/bash/manual/bash.pdf>
While I don't agree with the comment you replied to, at least they did that on their account with a history, they stand behind what they said.

Your comment does not carry a lot of weight if you have to rely on a throwaway to post it.
Show HN: MagicQuit – closes apps when you don't use them anymore (free)
I often end up having 15+ applications open in my Dock. And, unfortunately, I tend to never close them. While Arc Browser does a great job for browser tabs, I didn’t find any fully satisfying solution for MacOS. One used way too much power and the other one would have taken quite some time to set it up. So instead I decided to develop an app which took x times more of my free time.
MagicQuit is entirely free, open source, 100% offline and closes apps that you haven’t been using in the last 12 hours (customizable). Feature-wise I wanted to keep it as clean and simple as possible. It also uses nearly ~0% of cpu usage.

Give it a try if you’re a Mac user and also having the same issue with many open applications: https://magicquit.com
Deep dive into Redis: how it processes a command
Sure, but the Google Books case is a massive and well-funded court case that was a pretty resounding victory for Google and textual analysis of copyrighted works in general, so anybody arguing that this is obviously copyright violation needs to explain why the Google Books case isn’t relevant.
Sounds like a convenient conclusion for AWS at least!
My company recently moved from a wework equivalent to a much cheaper serviced office. A few less of the flashy features and perhaps a slightly less prestigious address (5 minutes down the road) for a third of the price.
Is not an hiring process, is squid game
> that's assuming that your ISP isn't doing some shady analytics

Can you elaborate on this? So ISPs often engage in tactics that thwart VPN usage? Which ISPs? What tactics?
The Unreasonable Effectiveness of Simple Binary Encoding (SBE)
A modern TUI should be able to handle that nicely but not sure if Lynx is still being actively developed.
I hope the people that sold advertisers the need to track people should have a cushy place in hell. Usable cookie banners aren't really enough to be really user friendly.
For me this is is it, if you're stringing together a load of other command line tools then a large well structured shell script is perfectly fine.

A typical task in my day job is extracting metadata from and transcoding large AV archives, I always use a bash for this because I'm mainly stringing together tools like ffmpeg or sox, making directories, tempfiles, creating chesksum manifests, etc.

Also I typically do this on large CPU machines with many cores, I can parallelize operations in one line using xargs and a bash function. Doing stuff like this in python is actually a real pain in comparison.
A Disney Sale to Apple? Don’t Count It Out This Time
I doubt that's the better way. How is self-hosting helping with the paranoia vs. using Mullvad?

I don't really see how it's more secure to run some software that you haven't audited on a VPS somewhere at a provider you haven't audited. I'd trust a company with resources to run their own hardware, investing into a more secure setup [1] and contributing to more open infrastructure [2] much more than I trust myself to run something securely which isn't my sole occupation.

[1] https://mullvad.net/en/blog/2022/1/12/diskless-infrastructur...

[2] https://mullvad.net/en/blog/2019/8/7/open-source-firmware-fu...
Have you considered ... in ways that you are not considering...?

I am pretty confident they haven't. Sounds like you've set yourself up for a reverse "true scotsman" here ;)
Does Moq extract and send my email to the cloud via SponsorLink?
> I switched to Mullvad after teh last article i read here on HN about how they didn't log and couldn't offer logs to the authorities

It should also be pointed out that OVPN[1] is an option as well. They were taken to court and won[2], so they demonstrated above all reasonable doubt that OVPN no-logging means no-logging.

See the link for the detail, but I quote:
"the Rights Alliance and their security experts have not been able prove any weaknesses in OVPN's systems that could mean that logs are stored. "

[1]https://www.ovpn.com/en
[2]https://www.ovpn.com/en/blog/ovpn-wins-court-order