placeholder

Hasnain says:

"We've covered what a hash function is, some ways to measure how good it is, what happens when it's not good, and some of the ways they can be broken by bad actors.

The universe of hash functions is a large one, and we've really only scratched the surface in this post. We haven't spoken about cryptographic vs non-cryptographic hashing, we've touched on only 1 of the thousands of use-cases for hash functions, and we haven't talked about how exactly modern hash functions actually work."

Posted on 2024-04-14T03:34:53+0000

placeholder

Lifers, Dayjobbers, and the Independently Wealthy: A Letter to a Former Student

Written by Max Alper Last year, a private student of mine had gotten in touch with me via email at around 3 AM. I had known this student for years prior, as they were in one of the earliest college courses I ever taught when they were an undergraduate at

Click to view the original at klangmag.co

Hasnain says:

"You’re not a failure by being a dayjobber, Billy, you’re an artist, just like the rest of us. So what if you aren’t some rich kid from the Upper East Side who had the privilege of being stuck in a practice room since Kindergarten? Sure that kid can shred, but do you really want to be that person? You’re playing shows, making records, and selling merch online, all without daddy’s money to hold you down. You’re making it happen without the head start that Richy Rich got the second he was born. Be proud of that! Knowing that the game is rigged is liberating! Just because the music industry lacks meritocracy doesn’t mean you can’t blow these assholes out of the water through your craft. Your experiences outside their bubble will only foster more creativity as a result.

So what if it takes a bit longer because you can only dedicate an occasional evening or weekend to work on your new record? So long as you dedicate yourself to that time, as little as it may be, so long as you allow the public to hear what you’ve been up to, whenever or wherever that may be, Billy, then you’ll never be a failure. You’re still alive, aren’t you? Then you can make the time, but no rush."

Posted on 2024-04-14T03:19:32+0000

placeholder

Middle East Crisis: Pentagon Official Arrives in Israel Amid Fears of Iranian Attack

U.S. officials have said they are bracing for a response to an Israeli strike in Syria this month that killed several senior Iranian commanders.

Click to view the original at nytimes.com

Hasnain says:

Hoping this doesn’t escalate into ww3 and fulfill Netanyahu’s goals (headline is out of date, pentagon is confirming the attack happened)

Posted on 2024-04-13T20:23:55+0000

placeholder

There's always an events table

The larger 2 TB table, an append-only table of audit events in the app, was easy to transfer: we waited until after the cutover to migrate the contents, as the Retool product functions just fine even if that table is empty.

Click to view the original at brandur.org

Hasnain says:

“Deleting in batch and without sending anything over the wire might sound obvious, but in my industry experience, it’s not.”

Posted on 2024-04-09T05:40:06+0000

placeholder

Optimizing SQLite for servers

SQLite is often misconceived as a "toy database", only good for mobile applications and embedded systems because it's default configuration is optimized for embedded use cases, so most people trying it will encounter poor performances and the dreaded SQLITE_BUSY error. But what if I told...

Click to view the original at kerkour.com

Hasnain says:

Love SQLite. I’ll have to take some of these things into account when tuning my apps.

Also love that the author documented these - I think I stumbled upon a few of these best practices by accident, it’s hard to find good material out there.

“But what if I told you that by tuning a few knobs, you can configure SQLite to reach ~8,300 writes / s and ~168,000 read / s concurrently, with 0 errors, on a ~40€ / m commodity virtual server with 4 vCPUs (details and code in the appendix).

Let's say that your server application is making in average 8 database read queries per request, you could, in theory, handle ~21,000 requests per seconds, or ~1,814,300,000 requests per day, for ~40€ per month, bandwidth included, not bad! (In practice you may not be able to do that: the server's bandwidth will be the limiting factor)

And this is before talking about tuning the garbage collector, caching and CDNs.”

Posted on 2024-04-09T05:31:46+0000

placeholder

Israeli doctor says detained Palestinians are undergoing ‘routine’ amputations for handcuff injuries, Haaretz reports | CNN

A doctor at a field hospital for detained Gazans at Israel’s Sde Teiman army base has described “deplorable conditions” and “routine” amputations due to handcuff injuries, according to an exclusive report from the newspaper Haaretz.

Click to view the original at cnn.com

Hasnain says:

This quote is the least horrifying part of the article I could find (yes, even with all the implications this quote alone has). My opinion here would probably get me banned from this site for a while if I shared it sadly.

““We were asked not to use our names,” the medical source told CNN, adding that the Gazan prisoners were identified by serial numbers, rather than their names.”

Posted on 2024-04-07T04:23:54+0000

placeholder

U.S. Aid Experts Warn Gaza Likely Already Experiencing Famine

The officials made the comments in a government cable sent within the Biden administration on Tuesday and obtained by HuffPost.

Click to view the original at huffpost.com

Hasnain says:

“The USAID officials paint a bleak picture of the prospects for Palestinians trapped in Gaza amid a siege by Israel and fellow U.S. ally Egypt.

They cite outside analysts projecting that between mid-March and late May, dozens of children younger than 5 years old will die each day “due to starvation, malnutrition and disease,” and write in their concluding comment that “many of the coping strategies employed by people in Gaza will have long-term effects on the nutritional status and future livelihoods of those who survive the crisis.””

Posted on 2024-04-03T05:43:23+0000

placeholder

Five aid workers killed in Israeli attack after delivering food to Gaza

Foreign and Palestinian aid workers with World Central Kitchen were killed in Israeli attack after Gaza food delivery.

Click to view the original at aljazeera.com

Hasnain says:

Today’s news started off depressing, got more frustrating, and then back to depressing. I don’t even know where to begin. Reading about the US government statements in response to the first incident (didn’t even have time for the other 2 big ones!) leaves me even more disillusioned. I wish this would all stop.

“Australian, Polish, UK and Palestinian aid workers were reportedly among the five killed in an Israeli attack following the delivery of food relief in central Gaza’s Deir el-Balah, the Gaza government media office reports. US-based aid group World Central Kitchen said “several” staff were killed in an Israeli air strike and called on Israel to stop “this indiscriminate killing” in Gaza.

Doctors Without Borders (also known by its initials, MSF) has said Gaza’s al-Shifa Hospital is “in ruins”, a day after Israeli troops withdrew from the complex following a two-week raid.”

Posted on 2024-04-02T03:19:33+0000

placeholder

Hasnain says:

Great read.

“Some of you might be surprised that I didn't write my kernels in assembly like BLIS does, especially given my history of projects like blink, SectorLISP and SectorLAMBDA. The truth is I've been coding in assembly this whole time. I configured Emacs so I can push a button, and the disassembly for the C++ code I'm working on will pop up on the screen in a few milliseconds. I know anyone whose codebase has slow build times doesn't possess this advantage, which has made me famous. Once I figure out how to do that for .cu files, I'll be unstoppable.”

Posted on 2024-04-01T05:51:52+0000

placeholder

Ex-Caltrain workers allegedly built personal residences in stations with public funds

A former Caltrain executive and a station manager have been charged in an alleged scheme using public funds to convert parts of two stations into personal residences, prosecutors said.

Click to view the original at cbsnews.com

Hasnain says:

“"Worden hired contractors at Navarro's direction to remodel a section of the station that had been previously used as office space to add, among other upgrades, a kitchen, shower, heating, plumbing and security cameras," the DA's office said in a statement.”

Posted on 2024-03-30T04:56:43+0000