Email or username:

Password:

Forgot your password?
2,445 posts total
az

@neauoire when I think about it, it makes sense, but I wonder if over time it will settle as devider.

Devil Lu Linvega

Stocking up for food and water for two months is not too hard, but two months without any way of disposing of waste is the tricky one.

Almost everyone we meet stay for at any one place for at most week or two, then they have to make their way back to the city to dispose of trash, refuel, charge their batteries and restock.

hamish campbell

@neauoire yep, we start to run out of fresh food after a week, low on water after 2-3 weeks. Then dry food would see us through a month with some foraging.

Power is pretty infernate and fuel over a year traveling 1,000+ km's #boatingeurope #lifeboat

Devil Lu Linvega

For the past year or so, whenever I write a bit of code that is slightly faster than the last time I did that same thing, I write it down in this little program's memory.

Now, I always run this program over everything I do, and it tells me how I've previously made that same thing faster before.

It's kindda neat, it catches all sorts of things.

git.sr.ht/~rabbits/uxnlin/tree

Devil Lu Linvega

For two (positive) integers N and M, the properties of their greatest common divisor gcd() and the least common multiple lcm() come in pairs; the phenomenon is partly explained by the formula gcd(M, N) × lcm(M, N) = M × N. 🤯

Show previous comments
Kartik Agaram

@neauoire I can't believe I didn't learn this in school..

Leon

@neauoire Are you familiar with how positive integers can be written in the form M = p1^e1 * p2^e2 * ... and N = p1^f1 * p2^f2 * ... where p1, p2, ... are the primes?

A related equation is min(M, N) + max(M, N) = M + N.

If we look at a single prime pi, its exponent is
min(ei, fi) in gcd(M, N),
max(ei, fi) in lcm(M, N)
ei +fi in M*N.

For example with M = 4 = 2^2 * 3^0 and N = 6 = 2^1 * 3^1:

gcd(M, N) = 2 = 2^1 * 3^0
lcm(M, N) = 12 = 2^2 * 3^1
M * N = 24 = 2^(2 + 1) * 3^(0 + 1)

@neauoire Are you familiar with how positive integers can be written in the form M = p1^e1 * p2^e2 * ... and N = p1^f1 * p2^f2 * ... where p1, p2, ... are the primes?

A related equation is min(M, N) + max(M, N) = M + N.

If we look at a single prime pi, its exponent is
min(ei, fi) in gcd(M, N),
max(ei, fi) in lcm(M, N)
ei +fi in M*N.

Devil Lu Linvega

Started noodling around with printing decimal points.

Devil Lu Linvega

neighbor paddles over "so how long you think y'all be staying in here"
rekka and I in unison "like, forever."

tech? no! man, see...

@neauoire huh, people say yall in Canada?

(that's cool; I think it's a good word. just unexpected)

Devil Lu Linvega

There's this funny thing with fractions where, if you divide 2 by 3, getting 2/3, you can flip the numbers to get the reciprocal 3/2.

Now, while a division takes two whole numbers and gives you a fraction, there's no way to get back to two whole numbers again. It's destructive in a way, so I've added this little operator that is basically the opposite of a division, but that is also not a multiplication, taking the fraction 2/3, and giving you 2 and 3.

Show previous comments
Csepp 🌢

@neauoire What number representation is used here? It looks like the display format is integer part plus fraction. Are the individual component regular machine words or bignums?

nakst

@neauoire A few years ago I came up with a neat algorithm for this for a floating-point number, including support for expressions with square roots and multiples of pi. It works by trying to deduce a repeated fraction for the number (similar to how the golden ratio is constructed). The code is here: gist.github.com/nakst/f8a70fd6 I looked around the internet for a while to see if anyone had described this algorithm, but I couldn't find anything :(

R. L. Dane :debian: :openbsd:

@neauoire
I love how your UI design is coming along. It's starting to look really user-friendly. Kind of like an alternate reality where the first Mac had less RAM and two more colors. 😄
(And a much lighter OS)

Devil Lu Linvega

A fraction represents a part of a whole.

The Numerator is the top of part of a fraction.

The Denominator is the bottom of part of a fraction.

An proper fraction must be less than 1, like 3/4 and 7/12.

An improper fraction is more than 1, like 9/2 and 13/4.

A mixed fraction is a whole number and a portion less than 1 together, like 2 3/4.

Devil Lu Linvega

I'm not sure if you're familiar with this visual way of multiplying numbers together, it has nothing to do with fractions, but I just thought about it. I think it's called vedic multiplication sometimes, or just the sticks method.

I'm using a thicker line here to represent 4 to save me some time, so intersections with the thicker line are worth 4, two thick intersecting lines would be worth 16.

Devil Lu Linvega

Added snarf buffer support so I can paste directly into the calculator, it makes for a pretty neat little hex/dec converter.

# set-hex mode
30
$ set-dec mode
. print stack

wiki.xxiivv.com/site/cccc.html

Devil Lu Linvega

We were having coffee outside this morning, Rekka looked at the lifelines sleeves and asked "do you think it's rusty inside".

Turns out the metal cables we rely on to keep us from falling overboard are completely corroded, and some spokes are even cut through.

#theBoatyard

Show previous comments
Kira, cozy autumn fox 🦊

@neauoire woah @rek what made you think of this?? :o I would have, I think, imagined that "nah it looks pretty sealed from the outside air".

Bill Mania

@neauoire Yup, I've seen that on past boats of mine. Will you replace them with more coated wire or leave them bare?

Devil Lu Linvega

Here's something I have never seen before.

The binary for the graphical calculator works BOTH as a graphical user interface, and is equally usable in the console without the GUI.

The same rom file can be used with both the cli and gui emulators.

git.sr.ht/~rabbits/cccc/

Job

@neauoire am I seeing correctly that typing in the cli updates the graphical ui too?

Devil Lu Linvega

After 4 weeks away, we're only half-way through our water tanks.

Bakfietsouder

@neauoire wow! Did you collect a lot of rainwater?

nomand

@neauoire how much water does Pino carry plus how much in jerry cans?
I'm currently 1/3rd of water capacity on Irie, need to get new bladders.

Devil Lu Linvega

To add onto the food preservation thread, which is unfortunately private.

If you're hoping to keep oats for a while, don't stock up on the rolled oats, instead get whole oats, and process(grind/roll) them as needed, they take half as much space that way, and will last a lot longer.

#theGalley

spooky blip 👻

@neauoire I remember when you got (or were gifted?) that grinder; do you happen to have a model number or other documentation available for it if I were to look for a similar on the second hand market? This is one of those things I probably *could* find a higher-tech solution for, but don't *need* to

(Though I guess a burr-style coffee grinder, like the one I have, actually probably works for grains in a pinch. It's just a motor and blades, eh?)

Devil Lu Linvega

Finished revamping the graphical desktop calculator.rom(5537 bytes)

source/download: git.sr.ht/~rabbits/cccc

Devil Lu Linvega

Added a little easter egg to the calculator, pressing `@` transforms the calculator button theme to that of the Macintosh System 7 calculator.
:mac:

Devil Lu Linvega

It's really nice to see everyone organizing and making plans to face what's coming. 🌻

rag. Gustavino Bevilacqua

@neauoire

I'm planning to connect the gutters of my workshop to a couple of pallet tanks, to have decent water to grow some potatoes inside buckets in the backyard.

There is a well, but it's pretty brackish, so I prefer not to use it.

Devan

@neauoire was just walking through london thinking the opposite. i don't know what will become of cities. can only imagine them stratifying to greater extremes.

off to the valleys and the forests and the seas for me and mine...

Devil Lu Linvega

An anchorage full of tiny sailboats, not a single engine running, a nice sunset.

Devil Lu Linvega

The application I use most of all besides Left has got to be the crappy little graphical calculator that I made way back, it's time that I made a better one.

Devil Lu Linvega

I love that depending which project I'm working on, the entire computer's look adapts to that project's theme.

It's a bit jarring sometimes, but otherwise it's been nice, I always know where I'm at when I open a source file.

Devil Lu Linvega

Loving this keyboard layout for a calculator ☎️

Go Up