skysight-inc/HackerNews huggingface dataset:
> I’m still not super clear on how exactly the interior pages are structured and how the pointers to their child pages work. It’s time to sleep now, but perhaps that will happen another day!

Luckily. The SQLite source code is very well documented, and the 'btreeInt.h' has something about how the btree pointers are laid out

I happen to use the SQLite btree directly without the SQL layer (the VDBE) as a key-value store on top of a userspace filesystem (chrome cachefs) and even with this configuration it works wonderfully.

** The basic idea is that each page of the file contains N database
** entries and N+1 pointers to subpages.
**
** --------------------------------------------------- -------------
** | Ptr(0) | Key(0) | Ptr(1) | Key(1) | ... | Key(N-1) | Ptr(N) |
** ----------------------------------------------------------------
**
** All of the keys on the page that Ptr(0) points to have values less
** than Key(0). All of the keys on page Ptr(1) and its subpages have
** values greater than Key(0) and less than Key(1). All of the keys
** on Ptr(N) and its subpages have values greater than Key(N-1). And
** so forth.
**
** Finding a particular key requires reading O(log(M)) pages from the
** disk where M is the number of entries in the tree.
**
** In this implementation, a single file can hold one or more separate
** BTrees. Each BTree is identified by the index of its root page. The
** key and data for any entry are combined to form the "payload". A
** fixed amount of payload can be carried directly on the database
** page. If the payload is larger than the preset amount then surplus
** bytes are stored on overflow pages. The payload for an entry
** and the preceding pointer are combined to form a "Cell". Each
** page has a small header which contains the Ptr(N) pointer and other
** information such as the size of key and data.

I guess if she go straight to use the btree layer, bypassing the SQL layer, it will be easier to figure it out how the pages and pointers works and relate to each other.

After this, try it out with the SQL and see how it works.

---

Edit: just to add to this, this line here

> Each BTree is identified by the index of its root page

When you call 'sqliteBtreeCreateTable()' it will return to you the root page of the table it creates. In my experience it starts from 2, and my guess is that 1 is probably some master root page (i bet Julia will dig into this later).

This is how i've manage to have "keyspaces" here. i use the first created table as a meta-table, keeping the index of keyspace names with their root page number counterparts, and on opening the db, is just a matter of recovering this info and put it in a hash table (keyspace => page number) for later use.
Since everyone is saying Russia, I just want to include a map of reactor locations. It may be Russia, but there are quite a few reactors in the area.

https://upload.wikimedia.org/wikipedia/commons/e/e9/%D0%90%D...
It's also objectively wrong. It wasn't a '4chan hoax', people had been using the OK symbol as a link to Trump long before they made claims of making it all up. The fact that much of the media took the 'it was all a psyop' seriously is embarrassing.

This was around the same time they also tried to take credit for the Steele dossier, claiming they had made it all up and what not. In either case, when people started ironically using it to troll, others started using it unironically as a dogwhistle.
since when do they use paramilitary forces "in nearly all situations" ? I think you're jumping the gun a bit on that statement.

The problem is that supposedly non-violent situations can turn violent or threatening very quickly. So, all officers need to be trained in use of force.
I enjoyed Discover Weekly at first but over time got sick of only hearing suggestions from inside my own “bubble”. I’ve switched to human curated radio and the variety is so much better. haven’t looked back.
https://www.jwilber.me/permutationtest/
It's called 'hacker' news. Not all the things have to be useful. It's interesting, at least to me. :)
This is what I was just thinking. I personally hope if it does happen the reveal has excellent comedic timing.
For me, it's been battery life. Even running TLP, my Current ultra-light just isn't seeing great battery life. It's fine now working from home, and plugged in all day. But should I ever get back to taking it to meeting after meeting at the office.... I want to say, I see 4 hours unplugged depending on what I'm doing. (not watching video)
tl;dr Windows sucks, and Go sucks on Windows.
Not going to lie, playing Crysis was a lot of fun, and I never knew this was the underneath function running it.
ReDoomEd is a Mac/Linux/BSD port of DoomEd, id Software's Doom level editor for NeXTSTEP:
http://twilightedge.com/mac/redoomed

About 95-99% of the program logic remained the same, however, there's naming differences (functions, classes, selectors), type changes (NeXTSTEP APIs used C strings & floats, Cocoa uses NSStrings & CGFloats), and missing functionality that had to be reimplemented (Display PostScript functions, Storage class).

I originally expected to have to recreate the NeXTSTEP UI resources by hand in Cocoa, as Xcode's Interface Builder can't read NeXTSTEP nib files. However, Xcode's IB does read OpenStep nib files (as of Xcode 2.5 & earlier - not sure if recent versions can still do this), and OpenStep's Interface Builder can read NeXTSTEP nibs, so it just took opening & saving the NeXTSTEP nibs to OpenStep nibs in an OpenStep VM.
Could you say something about how you are now, or might later, coordinate fast follow up observations in other wavelengths or with other instruments?
If your VPN is only being used for DNS queries, then they don't have much useful data there. I've recently seen instructions for setting this up on free cloud instances from AWS/Azure/etc. If the only traffic is DNS wrapped in VPN, it should stay within the free tier (especially if you add local caching, but even that shouldn't be necessary)
> No. I didn't mention murders - is there a reason you're focused on them?

I focused on murders because the grandparent DID mention them, and because murder rate is much less exposed to reporting bias than other crimes.
It's only tangentially related to code quality but I do think open/free source is the only way to write sustainable software if your aim is to change the world rather than ones bank account (so to speak).

There's terrible code all over the place, although it is definitely true that no one's going to clean up - even source available - proprietary code out of kindness of their heart.
Right. Cancel culture had much bigger consequences in the south when a Black guy was accused of looking at a White woman in the past....

Or even today if you don’t “look like you belong”.
At least the pound referred to a specific thing in its currency form (i.e. a pound of sterling silver) and technically it’s foot-pound and pound-foot for energy and torque, simple!
The SQLite code is nicely split into modules, and builds together reatively quickly. So the easier way to explore the codebase is to load into editor the individual modules at src/ rather than the aggregated sqlite3.c file which is too big and unmanageable in the editor.

IIRC, the heart of the db engine appears to be some sort of vm that processes the parsed out SQL. Stepping through in debugger will inevitably capture you in the loop which executes the statements.

Of course, there're plentiful design docs, all on https://sqlite.org.
Yup, but at least they're better than the black market alternative. :)
As a sort of “net suffering absolutist,” I find that to be somewhat ethically compelling (though many won’t).

As someone who wants to see these problems fixed - permanently - I’m just not sure that this approach gets us closer.

If it’s a drop in the bucket that discourages a large number of people from throwing their weight behind the solutions offered, then it’s no longer a drop in the bucket.
I don’t know enough to litigate the particulars though it does seem from the wiki article it catapulted him into a kind of celebrity...
It's a very low quality article.

The section on 'How do you organize your class modules and assets?' doesn't contain any useful information at all.

It even defines AJAX and Big-O notation for us. Who's the target audience here? Someone trying to impersonate a knowledgeable web developer?
To those saying it's nothing: Lookup the historical data and compare. Chernobyl caused 0.1 mSv/h in radiation in Sweden, this incident caused 0.18 mSv/h in Helsinki. Only two short spikes over one week, Chernobyl was over two weeks, but certainly not harmless. These are deadly poisons.
https://www.stralsakerhetsmyndigheten.se/contentassets/66f4f...

It's either one of the old Chernobyl-like pressure water reactors in Tallin or St Petersburg. Really interesting is also why the control commission in Vienna is not allowed to call them out.
Bet Awards 2020 Full Show
Thanks for pointing to this. I missed it yesterday.

A little disappointed in Reuters for the handling of this.

I wish news outlets were treating direct reporting of single-study-preprint (i.e., just credulously reporting the preprint's claims with no attempt to seek expert feedback) as roughly equivalent of publishing a single-anonymous-source article without bothering to fact check.

There might be circumstances where it's merited--but they'll be extraordinary, and you should probably feel compelled to explain why you think it's important enough to break the norm.
NeXTSTEP was hardly related to UNIX, as in culture.

Sure it had POSIX and was partially built on top of BSD, but that was just to get a foothold on the UNIX workstation market.

NeXTSTEP was all about Objective-C frameworks, including at the device driver levels, and the same culture is at play at Apple and NeXTSTEP derived OSes.

Being an UNIX is just a story to sell and get people into the platform, nothing else, specially valuable when one is either a startup getting into the nascent workstation market, or a business close to get insolvent.
> money is the measure of value to society

The internalization of this leads rich people to conclude they are rich because the provided even more value to the world than they kept to themselves, otherwise they wouldn't have paid them so well. The richer they are the more they think they think they are benefactors and any complaints about how they acquired their wealth is just jealousy or, uh, socialism or something.

Sometimes it is the case that the wealthy have contributed something of such value that the world is better off, sometimes not. A drug company taking a 40 year old out of patent drug that has a stable but fixed market can increase shareholder returns by increasing the price 5-fold if they've cornered the market on this niche drug. Did they really do anything good for society? It sure doesn't seem that way, even if they are "creating value" by jacking up the price.

The kneejerk reaction of many is to say I should start a company to compete with that predatory pricing model. But that is naive because (a) there are lots of moats to cross to get there and (b) even if stuck it out, I know that the predatory company can drop the price in an instant and use their scale and place as the market leader to crush my nascent company. So nobody does it.
If LineageOS can "try" Google has the resources to do it in the OS. They have the leverage over phone manufacturers now, and it's one place they should actually be using their leverage. But for whatever reason, they do not care.
90s PSAs about internet usage continues to serve me well. When it comes to social media, it behooves me to act as if there's a sociopath with a grudge against me. I don't use my real name. I don't reuse usernames on different sites. I don't give out personal information of any kind. You're bound to say something that someone decides make you worthy of digital crucifixion and will stop at nothing to ruin your life. I've received a handful of death threats but they don't worry me because I refuse to give the internet a way to target my real life.
Something else very disturbing is that Twitter lets people do it with selective enforcement of their rules. Report someone for doxxing (full address, phone number etc.) and then a week later they get a 12 hour suspension. I have reported dozens of posts and maybe half of them even get punished at all
If the head of the NAACP voted for David Duke - yeah they should be pushed out.
Roadside Picnic is the equivalent of LOTR or Neuromancer when it comes to defining a genre of pop culture.

It was published 7 years before the movie Stalker.

It is a short novel and a great read, it is also a stark contrast to Western SciFi.
> One guy getting fired is a drop in the bucket.

Sure, until it's you.
This is correct. An colleague of mine used to brag about his "black phone" to the point of obnoxiousness. After one of his "look what I have!" spiels, I asked him to initiate an encrypted call with me. He couldn't, of course, because I don't have the same phone. Then I asked him who he knows that does have one, and requires him to use more security with them than for every other call he made every day.

Ah, Nobody. Sylvia wrote a catchy song about her back in the early 80's.
> > I just don't see how anyone could realistically look at all the lines of code that any nontrivial JavaScript app relies on in any depth.

> Right. And that's really bad.

> > I'm sure most people don't review the code for their operating system, drivers, web server, compiler, browser etc.

> Right, but some people do. Hire one of them.

The interesting question isn't if you can do it, it's when should you, to what extent, and how much it will cost.

"Always do it, do it in-depth, the time consumed isn't important and the budget isn't important" is a bad approach for example and isn't helpful to the OP.

Successful software development is all about making appropriate tradeoffs - you're not going to get very far by conducting your own OpenSSL audit when all you want to do is write a todo web app.
Anything when not used as it was designed to be used is dangerous.

JWT is a very useful technology, one that increases UX by decreasing overall latency.

Any technology, can be "abused" or used by people that do not understand how it works, and as a result you will have an insecure system.
Are you talking about the Windows Error Reporting tool? It can occasionally work (I was notified once that a crashing driver had an update to fix the crash I ran into). Most of the time the crash/hang data is used to prioritize fixes in a later release.
All the open source projects I have personally seen were ones meant to live a long time. When there were code issues, there were always awkward discussions on github about “there should be unit tests here” or “this code makes no sense,” and weeks later the developer announcing a cleanup or some sort. Anecdotal but public scrutiny and pressure is a real thing.

Just as an example, this is why Bitwarden started getting some automated testing - lots of propelled bumping github issues about it in order to get it more visibility
There have been plenty of videos circling showing mobs during the recent riots beating people half and fully to death.

Mob justice needs to be condemned wherever it comes from.

That it is more a problem coming from the left at the moment does not mean its ok to let it pass.
Yeah, business Dell have much better support story.
Edited C&H Comic for Apology
Not sure about the comment you replied to (is that called GP¿) but I think you've missed this guidelines:

"Please don't comment about the voting on comments. It never does any good, and it makes boring reading."
> Rule #2: No feeds or social media apps on the phone. Your phone is always within your reach.

Lol I'm soooo not a typical person.

My computer is always within reach. My phone is usually on the charger while I'm at home :D, I didn't use it much at all during the quarantine. Why use a 6" screen when I have 24" 4K multi-monitor goodness?

But I agree, I banned FB, Twitter out of my life and even deleted my reddit account. I just lurk on reddit now in a few dedicated groups, that's all.

I do like HN though, as it's usually about actually interesting stuff and good discussions. Unlike Twitter and FB where it's the opposite. On reddit it really strongly depends on the community you're in :) But I never feel like I waste my time on HN, every time I visit it I feel like I've learned something. And I just love the information density. No scrolling through lots of whitespace and superfluous pictures.
Storage systems will just see a lot of data being changed.

You could have some sort of alert in place, but if the malware doesn't write fast enough to trigger it, you'd still miss the problem.

Generally, the approach places take is having backups (eg to tape, off site, etc), and/or having storage that makes a snapshot every few hours and retains them for days/weeks/months.

Snapshotx are generally very low cost and easy these days, as it's just a pointer manipulation thing on (say) ZFS rather than a complete copy of the entire data set.
If the code was separated out into functions that are only ever called once, I'd find it harder to read.

Analysing code I'm not familiar with often consists of manually tracing through calls, producing documentation that inlines all the single use function calls.

Ideally function names act as shorthand for the body of the function, but if they only have one caller they have nothing to keep them honest. In older codebases, function names are as misleading as comments; semantic drift, special cases etc. mean you need to drill into them anyway.
My favorite radioactive contamination story is the truck in Juarez that was unknowingly contaminated with Cobalt-60 pellets. The truck died (for unrelated reason) and was scrapped and melted down in an iron foundry. The contamination was only discovered by accident when a truckload of rebar made a wrong turn in Los Alamos National Laboratories and set off a radiation alarm. They managed to track down the truck, find the source of the radiation, and get rid of the contaminated metal. Fortunately, nobody died.

https://www.orau.org/ptp/collection/accidents/juarez.htm
I had no idea about that being a thing.

I was thinking of the symbols that predates emoji, like the white heart suit from the early 90s

https://emojipedia.org/white-heart-suit/
yeah well RIP NYC because no one will be there to protect from criminal violence soon, and businesses will leave along with normal people. Seriously, if next year NYC becomes a giant crime area, ask yourself if you supported these "protests" because it's literally killing NYC. I'm just unsure of how much people are secretly wanting this, because not everyone can be that stupid.
50/50 Either Tallin or St Petersburg. One of them is not in Russia, but both are Russian-style (ie Chernobyl) water pressure reactors. One of them leaked in a massive scale, but thanksfully only twice.
Unreal docs are fairly good for making games but if you want to modify the structure of the engine it's quite annoying/nonexistent.

Case in point: Vehicle physics is no where near as good as the docs imply (not a toy but still 20 year old vintage), but there is almost no documentation of how PhysX interacts with the Unreal engine proper i.e. you can get the PxRigidWhatever handle but you can't easily replace PhysX with a proper MB package. Epic seem to be transitioning to Chaos but it's not documented yet.

If I ever get good Vehicle physics working I'll write it up (it's definitely possible but I'm not sure how ACC does it)
Definitely. When I browse the web without blocking for 10 minutes I already go insane because of the inane and intrusive ads for bullshit I don’t want and need. To not speak of the immoral tracking.

I use NextDNS + AdGuard, which filters out a good 99.5% of shit.
The funny thing is that the OK symbol actually became a "white power" (whether ironic or serious) symbol just because of the media.
Assuming that it is aliens, for a moment, we can not know if these aliens are friendly or hostile, right? So, given that there is a 50/50 chance of them being hostile, and given their awesome show of strength, the precautionary principal dictates that we not advertise our presence too loudly.
Virus Simulator
Uninstall? That's a bit heavy.. Lot of work setting all that stuff up again every time.

PS: If you use an Android mobile you can use a Work Profile and switch all your work stuff off with one click. If you use a computer you probably have a separate one for work which can also switch off easily :P
The lock-down order in the UK to help curb the spread of the global pandemic caused by the COVID-19 has given me more time to understudy my husband. I watch him has he goes to the lobby to answer phone calls................................. He locks his phone with a passcode to prevent me from looking it up as he knows I suspect he has an affair. The only time my husband is without his phone is when he charges it. I don't get as much love like I would like. We have been married for 7 years with two kids. I hired a penetration EAGLE SPY HACKER CONTACT= eaglespyhacker at gmail dot com. He remotely hacked into his iPhone and gave me a portal which I logged into revealing his Whatsapp messages, Text messages, facebook messages and phone conversations in real time. It has been 2 days since the hack and it is apparent I married a cheat. He doesn't know I see his messages and I have this deep-seated resentment for him. Sarah A
Will the rooms stick around if people leave the page in the middle of a game? My wife loves the game btw. I enjoy it as well but I appreciate the stack behind it more. Ty for your efforts.
Because the cop showing up doesn't know before hand whether or not the motorist have a gun. There's a lot of other things they don't know. The person could be a drug/human trafficker, or have a warrant out for him. In which case, they are armed.
Are there any estimates on how much plastic is out there?
I don’t think this is true. Security primitives are more widely available in software libraries now than ever before, but you don’t see people believing they can read a “security for hackers” blog post and then roll their own encryption tool or secrets management tool and use it in production. More than ever, the distinction between a security professional and a layperson who read about RSA algorithms is hugely critical.

It’s precisely the same with machine learning and statistical inference.

The lower barrier to entry just means the danger of releasing extremely unsafe projects is much higher, and the careful validation from experts is that much more critical.
For (almost?) all security components the worst and most prevalent mistake is going to be "That was not the correct component to solve your problem".

Here's a nice real world example:

* Expensive combination padlock on a cheap shared property. The building owners decided our bin shed should be locked, they bought a nice padlock, installed the lock and mailed out the code, residents don't need the hassle so somebody doesn't close the padlock, thieves who would never want to steal our garbage do want a free padlock... no more padlock.

You give unnecessary JWTs as an example, but here's another way too many people choose the wrong component:

* Public key cryptography is pointless unless your private keys are private. If your system involves centrally minting key pairs and then sending them out to people you don't actually have a public key cryptography system, you've got a secret key cryptography system in which you are (at best) wasting a lot of resources and getting no benefit. Way too many corporate VPNs are like this. Most S/MIME and almost every private SSL CA I've seen is the same.
Interesting. Now this completely changes my mind on these cars.
I don't use any of the described blockers, but I do block them in other ways, such as disabling JavaScripts, blocking specific requests in certain domains, redirecting certain requests in certain domains, and applying custom CSS to hide things and change other stuff. This tends to have the effect of blocking ads too, even though I do not actually have a ad blocker installed.