mleku
_@elfspice.com
antiparasitic technologist, communition engineer and sayer of pithy notes Embrace, Extend, Inflame matrix ID: @mleku17:matrix.org telegram: @mleku1 keep your head on a swivel
116 Following
1.5k Followers
mleku
•
1h ago
i am adding some new features to the HTTP api now on request, using the new binary event codec for the `/events` endpoint you will be able to set an Accept header to `application/x-realy-event` and it will send a stream of binary encoded events, and with the functions i wrote for unmarshaling them, you can just throw the http body reader on it and keep calling it until it gets an `io.EOF` error meaning the transmission is complete
it will also send an `X-Limit` header with the responses to this endpoint that says what limit is in force, for unauthed users it's 1000 and for authed users 10000
See translation
0
mleku
•
5h ago
yesterday i spent a lot of time writing a novel (i think - it's the reverse of regular variable length integer encodings in that it uses the 8th bit as a terminal marker instead of one on each byte to indicate "there's more") variable integer encoder to write a binary encoding for use in the database that is written using the #golang io.Writer/io.Reader interface (so it can be used to stream the binary data over wire or to disk)
i figure the way the varint encoder works it's just a little faster because it only adds the 8th bit to the last byte so that's potentially as much as 1/7th of this operation, not huge but ok, anyway it was required for the streaming read/decode anyway, to make a new one.
it's not on by default, you have to set BINARY
... See more
See translation
2
Tim Bouma
•
5h ago

See translation
3
mleku
•
9h ago
i'm tired of catching the cat and forcing stuff into his mouth also, he's doing fine, i will give him the antibiotic with his food, which seems to be acceptable to him, and i'm skipping the gum gel, it's been 5 days and i know in 5 days cuts in my mouth and blisters are basically done, and he had stuff to help that clear fast for this intervening time.
i'm not going anywhere today, staying at home all day, no shopping, no wine no walking around.
i gotta keep my energies up and for this i need some better downtime. i have to go easy on myself sometimes.
See translation
3
mleku
•
20h ago
the standard zig-zag varint scheme uses the 8th bit to indicate a further byte is part of the number, and it goes backwards, which confuses me
it took me ages to figure it out, but i have a similar encoding that instead of the extra bit being the sign of continue, instead it means the end, and the number sequence is reversed
so each byte in the buffer represents the smallest to largest places of what is effectively a base 128 encoding
when it finds a number that is bigger than that, with the 8th bit set, it removes the 8th bit and then stops and the sum of each base 128 digit multiplied by the power of the place, produces the result
i'm not sure
... See more
See translation
1
mleku
•
1d ago
i have got a new trick now for when i make an app that rarely does very memory/disk intensive operations like importing events, or my fiat mine job, doing an (N-1)N number of operations involving comparing all of a collection of JSON to each other (this blew up the memory on a heroku instance to just over 1gb and their server kills the process and calls it crashed
there is a manual trigger function in the "debug" library called debug.FreeOSMemory() which does this
so i just run that frequently through import and export, and voila, i can disable the swap on my VPS and realy doesn't blow up the memory.
in slightly unrelated matters, i learned about zigzag matrix traversal, and just now found this:
https://algocademy.com/blog/matrix-traversal-mastering-spiral-diagonal-and-zigzag-patterns/
spiral, diagonal and zigzag are three common methods that
... See more
See translation
0
mleku
•
1d ago
there is an issue with the relay feed, i noticed there is now an option for just one relay in a second list, so i set my relays one by one on it
when i make a post on it, the "new post" popup at the bottom doesn't appear on the main left side, but if i have my profile open on the right, it appears instantly on my profile side
just reporting what i'm seeing, i hope you can use that
See translation
1
mleku
•
1d ago
See translation
0
mleku
•
1d ago
also part of this may be something related to turning off compression, using raw JSON in the database, which probably makes a lot of memory allocations. i also nil the buffer and the event once it's written to the database, to indicate to the GC that the values are now out of scope and can be removed
@semisol you were talking about jamming loads of relays into a server, this is what seems to work for #realy
mleku
•
1d ago
Replying to @semisol
bash
export APP_NAME=realy
export LISTEN=0.0.0.0
export PORT=3334
export PPROF=false
export SUPERUSER=npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku
export GOGC=10
export MEMORYLIMIT=1000000
export GOMAXPROCS=1
/home/mleku/.local/bin/realy
now, it can swallow 180mb of events from a backup without blowing out the memory (2gb)
the other thing i did was disable running the database compact/gc cleanup and force it to pause a second every 1000 events, to give the GC more time to throw out the trash
and voila, runs nicely in 2gb of memory with plenty of space for the heap blowing up from normal business and no swap required
swap also fixed the problem, but it didn't really make it much faster, so, GC > swap
See translation
See translation
5
mleku
•
1d ago
See translation
3
mleku
•
2d ago
See translation
1
mleku
•
2d ago
See translation
3
mleku
•
2d ago
See translation
0
mleku
•
2d ago
See translation
0
Ch!llN0w1
•
2d ago

See translation
3
mleku
•
2d ago
it's like, body is going "no not this again" and extra spazzes out my brain
i was just barely paying attention to anything yesterday after a couple pints of cider, ok, i get it, finish lol
See translation
5
mleku
•
2d ago
man, no persistent storage why the fek not lol
oh well
the thing is that the database needs to be local and fast for the work it does so there's no way around this, currently there is about 1400 users on the database and not only does it take 6 minutes to resync when i restart it, i had to tweak the GC to work a lot more in order for it to not blow out 1gb of memory during that initial sync
See translation
0
cloud fodder and 121 others
•
2d ago
might be that time, that you deserve your own relay. relay.tools makes it easy with a webUI and fast provisioning.
now only 7k sats a month 🌍

See translation
7
mleku
•
2w ago
On the bright side, it is good that he is alert and wide eyed, but he's not fully through the process of recovery.
Hopefully the last steps are a bit easier... Have to wait a bit over an hour including him coming out of the sedation.
Everyone at the vet was amused, oh well, that's how it is when you rescue a stray I guess. He will be better after all the medicine regime is over and I'm sure he will forgive the disruption of his discomfort with time.
See translation
6
mleku
•
2w ago
npub1kr7aw
•
3w ago
Let’s go, my friends today’s mission: hit 400 followers by tonight!
This profile deserves it, no cap.
ZAP PARTY LIVE:
⚡ 50 sats if you follow
♻️ 25 sats if you repost
Support real content on Nostr. No filters, no masters just truth.
And yeah… f*ck the European Union while we’re at it. ❌🇪🇺
Give Caesar what belongs to Caesar. 🏛️
We’re here to stay. We zap, we grow, we ride together.
Love you all! ❤️
#Follow4Zap #Bitcoin #Nostr #ZapLife #FreedomTech #RoadTo400

See translation
See translation
85
mleku
•
3w ago
and that the place i want to live, set up shop, is literally nearby the first place i slept on this island
for now, i am embedding into this little non-tourist town of boaventura, i am acting on my desire to be part of a local christian community, will be doing confession (which actually should be called counselling) tomorrow, and the people are seeing that i care about the small things and care about my neighbours
i may well even set up my hermitage not far from here, as far up into the gully near me as i can get, but i think, overall, from what i know about where is approved to buy
... See more
See translation
3
mleku
•
4w ago
the cumquats are all in fruit at the moment and they are delicious and i definitely saw one flying even just in a moment peering outside, and could hear them off in the distance squeaking like a dog-toy
See translation
4
mleku
•
1mo ago

nope. 5%
63% of americans claim to be christians of one flavor or another
buncha pussies tho, obviously
See translation
7
mleku
•
1mo ago
i may get a headache at some point i guess
after cutting back and then having a few too many i'm definitely totally put off by it, by how it makes me feel and behave
also in other news, i have learned that Swagger 2 is much more sane than OpenAPI 3, which is completely retarded - always suspect odd version numbers, as they say, except kernel 5, that was more stable than 6
See translation
8
mleku
•
1mo ago
this afternoon, i will be completing the simplified filter endpoint for #realy maybe i'll manage to even feed the output of a filter into the events endpoint and see the full HTTP flow for a simple filter query and retrieving the events
after talking with @Pip the social graph guy a little i decided that i need to add an element to the event ID index i am creating that stores the timestamp with it so it can be used to sort the result keys and then send the list of event IDs back in either ascending or descending created_at time (and a limit parameter also, that can be used with the
... See more
See translation
6
mleku
•
1mo ago
so yeah, 12 years since my adventure in europe fully kicked off for me as well (i don't count 6 months in northwest england as europe)
See translation
3
mleku
•
2mo ago
my cat has been spooked all day today, and the last straw of it was he swatted at my hand and scratched me quite unpleasantly like 5 seconds after smooching just before that
i've kicked him out of the house for now
he's obviously healthy enough to swat at me for no reason he can manage a cold night outside, i hope it doesn't rain on him but maybe after 3 weeks in here he's forgotten how good it is actually
and this shit with calle, ok, i am just gonna say i've been pretty much hostile to his whole schtick for a long time but today he went over the line and other people saw him behaving like a psychotic bitch so i'm just gonna say
something in
... See more
See translation
4
mleku
•
2mo ago
i just run my test relay for a minute or two and this is what i see

what is that?
some spider trying to scrape all the events off my test relay, even though it's a test relay
it's not all unicorn farts and rainbows out there, there is some srs shit going on
not to mention assclowns promoting 1983 chaum technology that is solved by bitcoin, like that calle assclown
totally wasting the time of users, abusing their trust and naivete
and enabling scumbags to run scams on users by running mints and luring people to dump shitloads of zaps into them and then OH SORRY WE WENT OFFLINE
no recourse
... See more
See translation
8
mleku
•
2mo ago
i hate to think about how he acquired that... he has got signs of a break in the end of his tail bones also... evil people small, lazy, vindictive, violent people, i hate them all, on behalf of all who have suffered
and i'm familiar enough with what that means to not fall for some cult of victimhood... this is a war, i'm not begging someone to beat up the mean person, i'm working to make the mean person obsolete and persona non grata
See translation
1
mleku
•
2mo ago
go look at your email
the majority of messages i get on email are of a temporary nature and have little importance to be stored
expiration times on messages is a thing...
i'm going to bake that into realy protocol now, in fact, optional, but generally considered to be obligatory
See translation
2
mleku
•
2mo ago
See translation
0
mleku
•
2mo ago
but there's no way it's for mexican clients, mostly, it must be for americans doing business with mexicans.
#asknostr anyone got any idea why it would make sense to support this degenerate currency in relation to a bitcoin-focused neobank? something going on south of the border that makes this seem like a good business move?
See translation
16
mleku
•
2mo ago
social creatures use language to adapt to living in harmony with each other, there is no social without communication, even swarming and schooling and flocking animals are all social and have coordination behaviour protocols
what this means is that in order to have a healthy human society, there has to be people who know how to program the minds of others, and use it to most importantly defend against those who do it to exploit and degrade others
like a shepherd, who protects the flock from the foxes and wolves and finds them the good pastures to feed on, and lets most of them live a long life and also usually neuters the males to prevent too much animal combat from taking place, which is also
... See more
See translation
13
mleku
•
3mo ago
not sure why, maybe i need to eat
but i don't feel hungry
sometimes i get problems and i just can't rest or even think straight while they are unresolved which ironically makes the problems intractable
i probably just need to sleep
i know i need to eat but i've lost my appetite
See translation
3
mleku
•
3mo ago
it's hard to say though, maybe my legs are a little shy of ready for it though, but one of my metrics is how well i go down the stairs after i wake up... if i'm making progress with how i do things, i can instantly do single steps left right instead of two steps per step, idk what the deal is with that exactly, but as i get my regime right i am increasingly more strong and agile from teh moment i arise, and i am using it as a metric of success
but today, yeah, i was able to
... See more
See translation
3
mleku
•
3mo ago
here's some hardcore hiphop shit
i had friends back in the day, circa 1992, who were friends with this outfit
those times were totally instrumental in my history
i'm sure you recognise the cutup sample music vibes that prodigy also did a lot of work with
i have friends in bulgaria who were heavily influenced by this band also... the culture spreads like a virus
See translation
5
mleku
•
3mo ago
i have tool, system of a down, ... argh my memory fails me
See translation
1
mleku
•
3mo ago
it is tragic that i am forced to do this but the mess of linux GUIs thanks to the interloper called "wayland" is really getting out of control and single monitor setups make this easy
mleku
•
3mo ago
Replying to @Cameri
there is an easy solution right now for me, i turn off my other monitors to game
i should not have to do this, and i have tried two games now switching from full screen to windowed and using wayland instead of x and nada, all the same shit, only solution seems to be fucknig turning off monitors
this is super gay, idk who is to blame for this but may they rot in hell and their mother die of rabies infections picked up from biting rats
See translation
See translation
0
mleku
•
3mo ago
unplug the other monitors
my video card has 4 sockets
this is not progress, guys
mleku
•
3mo ago
Replying to @mleku
and i'm still waiting for being able to make my UI render on all my screens according to the dimensions in their URGUGUGU fucking informatino, whatever it is called, DDC, idk, fucking bullshit
the whole scene is such a circus i can't even
really, why is it so hard to just make an API that models a surface and scales objects according to a metric that specifies the screen pixel per physical distance ratio
it's not that hard, but some crafty bitches have thrown this cat into the dovecote and we are all suffering because the doves are so fucking dumb, which is bizarre because they were supposed to be experts in computer display technology
See translation
See translation
0