I remember having my mind blown in college when I saw a Mac Pro tower running Ubuntu in a lab.
I remember having my mind blown in college when I saw a Mac Pro tower running Ubuntu in a lab.
Technically LBJ killed the small truck with the chicken tax. If nobody can afford to import reasonably sized European and Asian trucks, we’re left with whatever the big three churn out.
The only thing I can think about is if you billed to a university address. A couple electronics outlets I shopped at would give discounts for students and universities.
Leeches are such cool creatures. I had a run-in with them while canoeing in Manitoba. Just one or two latched on. It’s really incredible how they can move their bodies around in the water yet maintain the exact texture and fluidity of the water itself. You’d never be able to feel one if it brushed up against you.
Also crazy how well whatever numbing chemical they produce works.
If you want to safely observe one up close, you can get them to latch on to your finger nail where they can’t do any damage.
I scrolled down and saw the video.
need a vehicle that sits high
Why does anybody need a vehicle that “sits high”?
Zero grams sugar? That is not Sunny D
Oh right, duh. Thanks.
I believe the optimization came because the denominator was a power of two. In my memory, the function counted up all of the bytes being sent and checked to see that the sum was a power of 16 (I think 16 bytes made a single USB endpoint or something; I still don’t fully understand USB).
For starters, you can split up a larger modulo into smaller ones:
X = (A + B); X % n = (A % n + B % n) % n
So our 16 bit number X can be split into an upper and lower byte:
X = (X & 0xFF) + (X >> 8)
so
X % 16 = ((X & 0xFF) % 16 + (X >>8) % 16) % 16
This is probably what the compiler was doing in the background anyway, but the real magic came from this neat trick:
x % 2^n = x & (2^n - 1).
so
x % 16 = x & 15
So a 16 bit modulo just became three bitwise ANDs.
Edit: and before anybody thinks I’m good a math, I’m pretty sure I found a forum post where someone was solving exactly my problem, and I just copy/pasted it in.
Edit2: I’m pretty sure I left it here, but I think you can further optimize by just ignoring the upper byte entirely. Again, only because 16 is a power of 2 and works nicely with bitwise arithmatic.
Lol, no, but in the summers we were allowed to wear t-shirts on Friday.
Thanks!
And it was. They told me to take the rest of the day off which at the age of 22 was unheard of.
Thank you! But this was 12 years ago lol. Think they’ve moved on.
Whoops. Formatting got lost in the transfer. Fixed now.
Color scheme and layout reminds me of Machinarium.
I’d recommend Ubuntu mostly because it’s going to be the easiest to get working. I recently started playing with Proton on Ubuntu, and it was surprisingly painless. There’s been a lot of improvement over the past few years.
Take a look at https://www.protondb.com/ and search for your games. It’ll let you know how difficult they are to get working and give you tips on helping them run.
Here’s the visual impairments page for stock Ubuntu:
https://help.ubuntu.com/stable/ubuntu-help/a11y.html.en#vision
There’s stock magnifier support. It’s not great to be honest, but it does allow you to enable crosshairs that will make it easy to find your cursor.
A little more searching found Magnus which might be a better option.
It’s also pretty trivial to install gnome tweaks https://itsfoss.com/gnome-tweak-tool/ and install custom theme elements like high contrast icons and cursors that can help.
Haven’t done that yet, but it’s pin 236 on DDR3 240 pin ram which I believe is a power rail, so low risk of issues.
Hybrid Integrated™
Just seemed odd to pay your way into the Apple ecosystem just to wipe it and install Ubuntu