skysight-inc/HackerNews huggingface dataset:
I just used the airport last month, its washrooms are one of the dirtiest I’ve been to compared to other “big” international airports, and on another note too, one of the few airports that you don’t have a proper place to sit and rest for free, they purposely designed the arm chair to be in the middle of the chairs so you can’t even lay down if you wanted to for a long layover(1)(2), compared to other airports, like Frankfurt for example, there are recliners (fixed type) and other ones that are comfy enough.(3)

(1) https://files.catbox.moe/rzzfmt.webp

(2) https://www.dezeen.com/2020/10/15/blink-richard-hutten-lensv...

(3) https://www.frankfurt-airport.com/en/flights-and-transfer/le...
Oh my, you must understand the limitations of WAL mode. I just don't think that SQLite is an appropriate alternative to mkdir() locking.

You cannot use WAL mode with networked filesystems as all processes cannot see the shared memory.

Below are well-known limitations of WAL mode.

https://www.vldb.org/pvldb/vol15/p3535-gaffney.pdf

“To accelerate searching the WAL, SQLite creates a WAL index in shared memory. This improves the performance of read transactions, but the use of shared memory requires that all readers must be on the same machine [and OS instance]. Thus, WAL mode does not work on a network filesystem.”

“It is not possible to change the page size after entering WAL mode.”

“In addition, WAL mode comes with the added complexity of checkpoint operations and additional files to store the WAL and the WAL index.”

https://www.sqlite.org/lang_attach.html

“SQLite does not guarantee ACID consistency with ATTACH DATABASE in WAL mode. “Transactions involving multiple attached databases are atomic, assuming that the main database is not ":memory:" and the journal_mode is not WAL. If the main database is ":memory:" or if the journal_mode is WAL, then transactions continue to be atomic within each individual database file. But if the host computer crashes in the middle of a COMMIT where two or more database files are updated, some of those files might get the changes where others might not.”

I just don't think that SQLite is an appropriate alternative to mkdir() locking.

It's just the wrong tool.
Speaking of locks if you are writing something that can run a long time and produces a log file it might be nice if you locked the log file before appending a new log entry.

If you do that, someone who wants to rotate logs can do it by (1) locking the log file, (2) copying it to the rotated file, (3) truncating the log file, and (4) releasing the lock.

Here's a C program, cat-trunc, that does that. Usage is "cat-trunc logfile".

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>

char buf[65536];

int main(int argc, char *argv[])
{
struct flock l;
ssize_t got;
ssize_t copied = 0;
off_t eof;
int finished = 0;
int status = 0;

if (argc != 2)
{
fprintf(stderr, "%s: error: no log file specified!\n", argv[0]);
return 1;
}

int fd = open(argv[1], O_RDWR);
if (fd == -1)
{
perror(argv[0]);
return 2;
}

l.l_whence = SEEK_SET;
l.l_start = 0;
l.l_len = 0;

while (! finished) {
got = read(fd, buf, sizeof buf);
if (got > 0) {
copied += got;
if (write(1, buf, got) != got) {
status = -1;
finished = 1;
perror(argv[0]);
}
} else if (got == 0) {
l.l_type = F_WRLCK;
fcntl(fd, F_SETLKW, &l);
eof = lseek(fd, 0, SEEK_END);
if (eof == copied) {
ftruncate(fd, 0);
finished = 1;
} else {
lseek(fd, copied, SEEK_SET);
}
l.l_type = F_UNLCK;
fcntl(fd, F_SETLKW, &l);
} else {
status = -1;
finished = 1;
perror(argv[0]);
}
}
return status;
}

That's a little more complicated than is necessary, because it tries to minimize the time it holds the lock.

If you've got a long running program whose stdout you want to log here's a C++ program (but written like it is C plus std::string and std::list because I am lazy), lock-save, to help with that. Usage is "lock-save [-t] file". It copies stdin to file, writing a line at a time, locking the file for those writes. You can then use cat-trunc to rotate the file. The -t option makes it also copy stdin to stdout, making it essentially tee with locks.

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
#include <fcntl.h>
#include <unistd.h>
#include <string>
#include <list>

std::list<std::string> lines;

int main(int argc, char *argv[])
{
char * prog_name = argv[0];
char * file_name = 0;
int t_flag = 0;
struct flock l;
int c;
std::string line;

if (argc > 1 && strcmp(argv[1], "-t") == 0) {
t_flag = 1;
}
if (argc != 2+t_flag) {
fprintf(stderr, "Usage: %s [-t] file\n", prog_name);
return 1;
}
file_name = argv[1+t_flag];

int fd = open(file_name, O_RDWR | O_CREAT | O_APPEND, 0666);
if (fd == -1) {
perror(prog_name);
return 2;
}

l.l_whence = SEEK_SET;
l.l_start = 0;
l.l_len = 0;
while ((c = getchar()) != EOF) {
if (t_flag) {
putchar(c);
}
line += c;
if (c == '\n') {
lines.push_back(line);
l.l_type = F_WRLCK;
if (fcntl(fd, F_SETLK, &l) != -1) {
while (lines.size())
{
line = lines.front();
lines.pop_front();
write(fd, line.c_str(), line.length());
}
l.l_type = F_UNLCK;
fcntl(fd, F_SETLK, &l);
line = "";
}
}
}
return 0;
}
Ukrainian farmer comes up with novel way to demine his fields (5 min video)
I have to admit that when I started writing articles to https://two-wrongs.com, Eli was one of my inspirations, along with e.g. johndcook.com and apenwarr.ca.

I think what sets apart blogs I like is that the authors make it clear they're just regular people with regular jobs exploring the world in a playful way. I think I can still get better at setting that tone myself and not taking myself so seriously!
I fell out of my chair into a fit side-splitting chuckling.

Hey, VB6 is ~~free real-estate~~ Turing complete, although maybe just barely.

If a quine transpiler between JS and PHP and VB6 existed, all things have happened, AI has won, and we can go back to typewriters and candles.
It's never good to hear of political instability in a nuclear-armed state right next to Afghanistan.
There’s also all the media to go along with them.
It's a lot better than Mastodon, where you simply lose everything.

The author totally glosses over that and scoffs at it being a real problem both in the thread linked and here in the comments, yet real people have experienced the extraordinary pain of watching their accounts evaporate overnight because of some capricious server admin. It's a total nonstarter for ever using Mastodon.
> all the discussion I can find online say breaking a contract doesn't fall under the definition of "illegal"

I don't think this is the standard. I think the standard is, can you find definitions of illegal under which breaking a contract or a tort don't fall? And in the dictionaries I've looked in, there are many usage senses of the word illegal that do cover things that are not criminal.

Contract law and the law of torts are laws under which the state will enforce judgements. Even though the judgements are civil matters, they are enforced by the legal system. Till I see a definition of legal/illegal that clearly covers only criminal acts, I'm going with breaking contracts to be within the penumbra of that which is illegal.

just a few more points to round out my thinking

I think what we're seeing is that there is a clear distinction between criminal and civil law. And lawyers, wanting to be clear and unambiguous, shy away from blurring that distinction by applying the term illegal to civil matters; but lawyers being hyper-specific and unambiguous doesn't necessarily govern the definitions of words.

And I once took an introductory/survey course in the law (taught by an attorney/law professor), and the first day of the course we talked about the history of the law, and what were the sources of our laws, for example religious law (thou shalt not kill), feudal law, common law, (for the US) federal law, state law, town ordinances, and then contracts were mentioned as binding just like law.
Did you try fine tuning gpt4 with that book as input?
I think we all have similar stories of tools like VB being pushed far beyond their original purpose by someone with enough motivation, and creating perfectly functional, yet extremely unconventional code. Here's another example I found in my links of old interesting web stuff --- a server for the MMO Habbo Hotel, written by (at the time) a teenager:

https://files.johno.uk/habbo/h4bbo.net/archive/HabboStuff/Mo...
Paul Graham "Within a year the median piece of writing could be by AI"
I bought a TCL 4K TV, didn’t connect it to the Internet, and connected an Apple TV 4K to it. No regrets.
I believe they offer an option to go through them, but it isn't mandatory.
You can insert a sim, connect to wifi etc
There is the option to use both.
Large Photonic Processor Solves Graph Problems
Likewise, bit-limited integers are lossy as they are incomplete representations of ℤ, and are not reciprocal with division. The point being that, just like floating-point representations of ℝ, division will always be lossy in the general case unless you choose a symbolic algebra instead of numeric.
That is wonderful - all those stars! Oh for a warp-capable spaceship and a lifetime to explore.
Anyone else read "AT protocol" and thought of old modems?
As a remote worker, that's 99% of what I do.
Super-weak performance, but a nice step.
Any idea why it's not a perfect circle? Aberration in focus? And would that be pretty much equivalent to the true size of the star's corona? (seems huge..)
If the costs are too high, you need a combination of cost controls and increased supply, not more funds to throw into the furnace. You also cut out as much of the admin as possible, as that is very low value spend vs delivering care.

I like taxes, with them I buy civilization. I want my taxes to go up, and my medical premiums to go away. Covering everyone is simply more economically efficient in aggregate vs the current Rube Goldberg system design, where the US spends more on healthcare than every other OECD country for worse outcomes.
Creating a restriction where every new social media protocol has to be built on top of ActivityPub sounds awful. There is room for innovation outside of this narrow scope of ideas.
Not really a secret. This went viral on twitter 1-2 weeks ago leading to several news reports.
Tea party tried to do that a decade ago. What’s different this time?
How is your experience with OVH?
It’s an argument to sysctl, for example, which could confuse someone on earth trying to configure something far away.

> sudo sysctl net.ipv4.conf.all.log_martians=1
Things look backwards judging by demographics. The US is relatively younger than its peers and is most likely to stay that way because of immigration. On top of that there is an industrial boom happening as manufacturing gets reshored.[1] Looks like the opposite of being on the brink of collapse, really.

[1] https://www.wsj.com/articles/americas-factory-boom-drives-sa...
Y’all are doing amazing work and bsky is a joy to use and I’m really excited for the technical journey.

I’m guessing with more success will come more haters unfortunately. :-/
Correct. This is the only reason.
I'm slightly disappointed this isn't about Hayes AT commands. ATDT is pretty straightforward but some of the ATS stuff can get kinda hairy.

https://en.wikipedia.org/wiki/Hayes_AT_command_set
So we lower the bar to all adversaries with no benefit?

If you can read exploit code to determine if patching is worth it for your use case, you can probably also read diffs for the same outcome.

I’m not saying don’t release them, but releasing them with short notice seems irresponsible, without much benefit to defenders.
A lot of my rock climbing buddies have broken their ankles, legs. So they can climb pretty ok still, but walking is another story...
Breaking civil law is a tort, it is not illegal.

Contracts are civil law. It is not illegal to breach a contract. It is a tort.
Red states fuck up the eduction system. What you going to do if your kid tries to make America Great Again, daughter needs an abortion.
America relies heavily undocumented immigrants, from dairy to produce farm ag to meat processing to restaurants to landscaping.

An open secret is that ICE doesn't touch meat ag's workers except for token enforcement. It's a dangerous occupation that includes underage child labor, deaths, and amputations without a social security net.
Chips or boards? What are you after? There's pretty much something for everyone at this point.

CH32V003. 50 chips for $5.

https://www.aliexpress.us/item/1005005036714708.html

Ox64. Two 32 bit microcontroller cores, plus a 64 bit 480 MHz Linux core with vector unit, 64 MB RAM, $8

https://pine64.com/product/128mb-ox64-sbc-available-on-decem...

Lichee Pi 4A 4x 2.0 GHz C910 (OoO, similar to Arm A72), with RVV 0.7.1 vectors, $119

https://www.aliexpress.us/item/1005005532736080.html

Milk-V "Pioneer". 64x 2.0 GHz C910 with RVV 0.7.1, 64 MB L3 cache, 4 DDR channels, 32x PCIe gen 4. $1600 with 32 GB RAM, $1900 with 128 GB RAM.

https://www.sophon.ai/product/introduce/pioneerBoard.html

I have the first two, the third has shipped and I'll have it in a week or so, the fourth I have ssh access to a machine and it rocks.
This looks neat.. I can definitely relate to gathering feedback on documentation is either a mess or non-existent. Good stuff!
Do termites count as well then? Bees? I'm not being facetious, but these insects seem similar.
Ok, so add some more megabytes to that. Most people don't have that much microblogging data.
Completely dead motherboard in both of them.

Picked it up off the my desk to going use it, and it was powered off, never turned back on again.

Wife woke up to hers dead.
Really? I don't find them to be of a good value at all. Not just bandwidth but also the baseline network speed limitations based on EC2 size.
> Recent AP, Telangana state bifurcation was done after much violence, did they drift apart?

Don't think it is right to equate the violence during the partition of India to the Telangana movement.

The 1947 partition had violence where communities fought and attacked each other.

The Telangana movement except for few minor instances in the very early stages post independence, was not directly against people from Andhra region. A major part of the casualties were during protests as a direct result of government action and self harm.

There may have been general dislike for people from other region but I don't think it ever turned into enemity and hatred towards each other.
Whether or not you believe Apple is a monopoly, whether or not Apple is benefiting from their current status as one of two dominant smartphone ecosystems, it is obviously false to describe Apple's restrictions around app sales and payment methods as being "monopolistic policies". The policies Apple has been criticised for were not gained as a result of monopoly power.

This is obviously true because the policies in question were substantially in place by 2009, long before anyone could have said "monopoly" in Apple's direction without being drowned in laughter.
I don't any anti-aging systems as such has proven valuable even in consistent anecdotes, much less published research.

Anyone aiming to age gracefully in present circumstances should look to things that are known to maintain health now imo.
Want to feel old?

Kurt Loder is 78.
You misunderstood my post, that was also a proposal. Like “maybe you should name and shame then?”.
There’s more to a mac than the sticker. It’s specific hardware that is tested and supported by the software. That’s worth a premium. Verifying your rack is a cost Apple doesn’t want to take on. iCloud doesn’t run on MacOS. It runs on Linux. Just buy the right hardware for the job.
They could have gone paywall but Ad revenue is too good. FTC should check them for promising to be a free of cost video host but having such strings attached to viewing content as well
By most metrics, democracy is currently in contraction.
>I have probably five decades left to live, and much to do that isn't running.

Rage, rage against the dying of the light.

My parents died in their 50's and I'm sure as hell ain't going to die younger than them.
I keep trying to use Thunderbird as my Fastmail client, but whenever I need to do a search I end up switching to the http client in frustration.

Maybe I just don’t understand how search works in Thunderbird though!
The big lines of code in TLS is x.509 certificate parsing, and supporting multiple protocols. If you just want 1.3 and you've got existing cipher and certificate validation libraries to call, it's not too bad. There's some published test vectors to help you get the cipher setup right as well; it gets fiddly, but it's not going to be a lot of code unless you have an Object Extravaganza, and even then, still not too bad.
The battery (Voltaic Pile, 1800) and the telegraph (1830s-1840s) were both invented before the electron was discovered (1897).
You might be thinking of NK T-cells?
> GPT-4 is better at reasoning than 90% of humans. At least.

This makes as much sense as me asserting a binary search can tell one why they are looking for what they want.

That is to say, it cannot.
Oh boy, I remember when this came around. That was incredible to see come together.
Pretty sure a nontrivial percentage of peoples smartphones have that many thumbnails for the photo gallery app alone.

Anybody who has had a smartphone for a decade likely has at minimum 10k photos in their cloud locker with local thumbnail.
Weak compared to what?

It is similar µarch to Arm A53/A55 in e.g. Raspberry Pi 3, and performs at a similar or better level.

See my other comment for higher performance options you can order right now, including 4 core and 64 core processors with Arm A72-equivalents.

SiFive is shipping a board with Arm A76-equivalent cores later in the summer.

Ventana and MIPS have announced cores in Apple M1 class, and several other companies are known to be working on similar.
Google Chrome brings better AI to the browser with WebGPU
affect the iPhone market means affect Apple's ability to sell them in a meaningfully negative way. Companies buying extra hardware isn't that.
They'll only hit you once, and not again when you've stopped moving. So as long as you don't land on top of a tiger snake, you'll be good. :)

Source: Have hit plenty of trees MTB riding, and seen snakes, but fortunately not both at the same time.
You can create multiple folders (~/Sync/everywhere, ~/Sync/phone) and share them to different devices?
MSI Hardware MEInfo and Insecure KMs
Incredible, thanks.
this is wrong. ieee defines them
Activision hires legal heavyweight to fight UK’s block of Microsoft deal
Sounds like most of the value in that site is locked behind a two thousand dollar a year paywall… wow.

The few articles you can see are interesting though.
not in ieee-754, only in reality
Blue Fugates
The naivete? Unless you are randomly sampling their Discord membership, that is.
Meat and dairy ag are terrible for the following reasons:

- climate change - 15% of GHGs not counting total inputs of fuel and feed

- antibiotic resistance - antibiotics are used excessively to raise production, similar enough to the ones used in humans to evolve drug-resistant pathogens

- pandemics - many animals peeing and pooping together, in close proximity, create an "institutional" Petri dish effect plus regular cross-contamination with humans and random wildlife

- pollution - of water, air, and soil
RTP TIRTA4D
KLIK RTP Tirta4d
Please dont resort to South Asia here, Pakistan is a very unique country that has the history of killing almost all the PMs it has ever had.
It's probably more about lock-in. They likely don't want a migration path out of their walled garden.
LLM's are not a "smart human being." They are predictive statistical models capable of producing results based on training data.

LLM's do not think.

LLM's are algorithms.
Funny, I always considered about 2008-2012 to be about the sweet spot for vehicles. Enough electronics but not too much.
ATH0
this isn't true. floats don't have semantics of internals. they have semantics of exact points that do math with rounding (otherwise the result of subtracting 2 floats would sometimes be more than 1 float)
This is glorious.

I remember, fondly, my VB6 days in back office of a power company during my internship. I don’t think I’ve ever developed and delivered software faster than back then. It’s too bad the whole “RAD” thing isn’t a thing anymore.
>Except Chrysler, it's best to avoid all era of Chrysler and I say this as former K-Car and Ram owner.

Jeeps are hilariously bad. Like "far and away statistically the worst" reliability wise.
the thread explains in the very first message that the existing semantics caused a subtle compiler bug in a way that makes it clear that you are not just wrong about the semantics of ieee-754 floating point but also about the pragmatics of how this affects real programs
It's trivial to force all the registered satellite broadcasters servicing a country off-air, if your already willing to arrest the former prime minister in public view, so anyone left with a hot dish would be easily identifiable.
OpenAI doesn't support fine tuning of GPT4 and with context stuffing,the more of the book I include in the input the less of the bills I can include - which, again, are millions of tokens - and the less space there is for memory.
That's news to me. I roll with at least 2 adblockers everywhere I go. I can't stand what the modern web looks like with all that bullshit.
Good good. Apple has been abusing their dominant position for far too long. If it's my hardware, I'll do whatever tf I want. Apple can't do shit.
The issue is that for most issues where people claim Vitamin D helps, X is very large (several years). If your goal is cancer prevention, this approach is virtually useless unless done in large groups.

Other than bone issues, I don't think Vitamin D works for anyone in the short term. For a few people, they see improvements in mood within a few weeks or months. Most of these few people regress afterwords even with Vitamin D intake (i.e. the improvement was just the usual noise variation).

I have my own set of chronic issues, and there is no shortage of ideas on how to help: Diet, exercise, vitamins, etc. The way I've maintained my sanity is to ask the following question:

"OK, if I go with this treatment regimen, how will I know it is not working?"

Most advocates simply don't have an answer. If it's vitamins, they'll simply shift to a different dosage, a different vitamin, or pull out the new paper of the week saying how vitamin X is only useful in combination with mineral Y (you can see plenty of that in this submission). By the time you give that a try, another idea will come up.

There will be no way they will believe the solution is not vitamins.

If it's exercise, it will always be "You're probably doing it wrong" coupled with "You need to ensure you have the proper diet". When you get to specifics, they'll pull out 20 variables that could impact your exercise regimen. You can't reasonably try 2^20 combinations, let alone 20.

There will be no way they will believe the solution is not exercise.

Same goes with diet. Must be the sugar. Or too many carbs. Not enough protein. Too much protein. Or the lack of Omega-3.

There will be no way they will believe the solution is not diet.

I'm all for trying, and I do try different things. The reason I go to the doctor is to get an expert and informed opinion. If his opinion is "the data on Vitamin D is poor", I want him to state that.
Celebrating individuality and getting offended at this blog post are mutually exclusive. There is no individuality without being offensive, because everything is offensive to somebody.
Life is to short to put up with that. If others want to do that and make it something important in their life good for them.