Why is x & -x equal to the largest power of 2 that divides x?
Or how to find the largest power of 2 that divides x?
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 3,433 posts.
Or how to find the largest power of 2 that divides x?
Discover systematic strategies to enhance your Retrieval-Augmented Generation (RAG) systems for better performance and user experience.
A deep dive into investigating and reducing the flutter distortion on the soundtrack of Steamboat Willie (1928).
A writeup of my $4133.70 Google Drive vulnerability chain.
Xe Iaso's personal website.
Your Startup Could Destroy Society
Anyway, here's what happened: Not to say that big brother is everywhere, but short of having microsoft people monitoring our lists and newsgroups (with wouldn't overly surprise me, after all they also tried a PR compain with magazines, posing as simple users who liked microsoft products), the announcement was…
Former NBA player and TV sportscaster Bill Walton died on Monday at the age of 71. He was a quirky dude and as someone who’s been known to veer off onto seeming
I am responsible for the reliability of the firmware updates on our devices and this work never gets boring. The thing about firmware updates is that by definition, every bug is caused by the updater because before installing the affected version, the bug was not present. You could say that updates are the cause and…
A lot of new CSS features have shipped in the last years, but actual usage is still low. One of the biggest barriers: we need to re-wire our own brains.
Tech babble and other stuff
In my previous post Encapsulation of PDUs On Trunk Ports , I showed what happens to PDUs when you change the configuration of a trunk. You may have noticed that there are typically three different types of Ethernet encapsulations that we see:
I find that when I play RPG games, I often hoard single-use items like potions and scrolls, saving them for some future critical moment. I finish games like Skyrim with a backpack full of unspent resources, reserved for a crisis that never actually arrives. What’s the point, then, of all these items? Just like I save…
In July 2023 I was reminiscing about a thing of the past, large-scale public LAN parties. I remember them being a semiregular occurrence around Tasmania, only attending a couple in my young age before they disappeared. I wondered if I could find some photos of these events to help the memories come back clearer. After…
pdf.tocgen is a set of command-line tools for automatically extracting and generating the table of contents (ToC) of a PDF file. It uses the embedded font attributes and position of headings to deduce the basic outline of a PDF file.
Sniffing USB HID traffic from the Stream Deck Plus to map its dial encoder and touchscreen events, building on the original Stream Deck reverse engineering.
Given the complexity of today's computing hardware, it’s easy to get confused about what is meant by the word “core”.
Yesterday’s eclipse as seen by the GOES-East weather satellite. I just grabbed the full-disk geocolor JPGs with wget and stitched them together with ffmpeg. BTW, If you’re wondering why the clouds remain in view as night falls to the East, it’s because the geocolor image is a composite of “true color” daytime and a…
Unit tests are always in sync with the code, making them a powerful tool for up-to-date documentation.
Ever since I saw elementary os sporting the very legible Inter font for its UI and site, I wanted to make it part of my desktop too. The only problem was any font I'd choose got a little blurry. Not any more!
The direct result of bulletproof infrastructure / cloud providers which are "too big to fail" is the balkanized internet . I don't think this has fully come to pass, but it might be starting to happen or might come to pass soon.
UPDATE: This blog post has been updated based on feedback from Reddit and Hacker News. HN discussion: https://news.ycombinator.com/item?id...
Collectively, we have been thinking about sorting for longer than we have had computers. There is still an active literature 1 , 2 , 3 . We are taught that how the counts of comparisons and swaps vary with problem size is what matters: as problems get bigger, order dominates, and anything else is buried in the noise…
Sometime recently in the past I complained about Maildir. You can go read the post, but the executive summary is that I think Maildir uses an actively user-hostile directory structure and extremely convoluted filenames that do not convey any meaning at all. For good measure, I will also reiterate that Maildir does…
Why call-by-push-value is the best evaluation strategy, and why it's going to take over
Thoughts on open source governance and how to create trust within technology, communities, and media.
Getting a fiber Internet connection to your home is a big deal! It’s probably the last physical connection you’ll ever need, due to the virtually unlimited bandwidth, stability, performance, and attainable speeds.
The Domino’s “Pizza Tracker” is an intriguing piece of UI. As an end user, it provides the precision of detail you want in tracking your order: Your order has…