el

mleku

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

Notes
Replies
Articles
Curations
Videos

mleku

1h ago

#realy #devstr #progressreport

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

1
0
0
0

mleku

5h ago

#realy #devstr #progressreport

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

3
0
0
2

mleku

Tim Bouma

5h ago

wE wAnT tO bUiLD aN aPp to sURvEiL yOU

el

See translation

3

2
2
0
0

mleku

9h ago

i woke up too late again today and i'm just not up for a walk up the hill... gotta work on stuff...

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

2
0
0
0

mleku

20h ago

i have spent my afternoon tonight working on making a variable length integer encoding

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

3
1
0
0

mleku

1d ago

#realy #devstr #progressreport

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

0
0
0
0

mleku

1d ago

it has come to my attention that it is saturday

fried ocean fish for breakfast, give #mochi the #catstr some tuna breakfast and his medicines

now to do more things to #realy

#GM

See translation

5

6
0
0
91

mleku

1d ago

@Cody Tseng

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

2
0
0
0

mleku

1d ago

gah i hate the panel protect function on my OLED monitor. that is all.

See translation

0

0
0
0
0

mleku

1d ago

in addition to this, according to `top` realy's memory utilisation is now about 200mb

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

i found a solution

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

0
0
0
0

mleku

1d ago

so i discovered that my previous installation on my VPS had swap on it and it was required for being able to use the import function... with GOGC=10 and MEMLIMIT=1000000 it was able to swallow the whole lot just fine, obvisouly i might need to refine how the import function works so it doesn't blow out the heap

See translation

3

0
0
0
0

mleku

1d ago

this evening with #realy i am on a code removal binge

See translation

1

1
0
0
0

mleku

2d ago

so, i am now setting #realy to send an auth challenge right out of the gate before it even starts listening for messages, and it seems to make things work a lot faster

See translation

1

1
0
0
0

mleku

2d ago

i've not been having a very good last couple of weeks, i hope things get better soon, i was almost good day before yesterday with the cat back home and doing ok

See translation

3

2
0
0
0

mleku

2d ago

test (my thing this time)

See translation

0

0
0
0
0

mleku

2d ago

test (not my thing, other things)

See translation

0

0
0
0
0

mleku

Ch!llN0w1

2d ago



el

See translation

3

16
4
0
108

mleku

2d ago

i have started to notice a pattern lately... i pretty much don't drink very much anymore, but i feel like when i do, everything goes wrong in the afternoon

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

6
0
0
2

mleku

2d ago

today i learned that heroku app hosting does not have persistent storage so the fiatmine company needs to get me a different host to run the project i'm building

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

0
0
0
0

mleku

cloud fodder and 121 others

2d ago

are you a dev tired of being throttled? are you subject to harrassment and/or bad vibes on regular relays? are you a future tripping doggo that wantz to see what running a relay is like?

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 🌍

el

See translation

7

8
1
0
76

mleku

2w ago

#mochi the #catstr is in the vet for his reevaluation after the treatment and he's refusing to be cooperative so they have to job him with some kind of kitty valium so they can actually get near him, and needed two nurses to get control of him just to give the shot.

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

5
0
0
0

mleku

2w ago

this is a bot and this is how it buys into WoT graphs

npub1kr7aw

3w ago

For the haters: FOLLOW4ZAP is BACK! 🎁
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

el

See translation

See translation

85

9
0
0
0

mleku

3w ago

i'm kinda pleased that it turns out that my initial vision for my relocation to #madeira was not far from correct, in that, this is where i want to be

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

5
0
0
0

mleku

3w ago

#GM time to post notes and write codes

See translation

10

7
0
0
11

mleku

4w ago

#gm i was woken up this morning by the sound of a fruit bat talking outside my window

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

5
0
0
18

mleku

1mo ago

so, i keep on encountering these atheists, and on the internet it seems like they are some huge majority

el


nope. 5%

63% of americans claim to be christians of one flavor or another

buncha pussies tho, obviously

See translation

7

2
0
0
0

mleku

1mo ago

#gm today after the caffeine has been extirpated from my residence, i am on my proper first full day of no caffeine

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

7
0
0
0

mleku

1mo ago

yay, i'm gonna call it my #GA message - finished my hours in the pit of the fiat mine today, almost completed a new index for the database and generating it out of the records in the database

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

7
1
0
1.0k

mleku

1mo ago

happy independence day to the Bulgarians... this was the day i arrived in Sofia the first time back in 2013, with all the little spring festival bracelet vendors still running for that holiday as well (red and white holiday about the stirkel and spring) i forget.. haha

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

5
0
0
0

mleku

2mo ago

there is some kooky energy in the air at the moment

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

4
0
0
0

mleku

2mo ago

the people who think i'm causing a fuss for nothing don't see the shit in my relay logs

i just run my test relay for a minute or two and this is what i see

el


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

3
0
0
0

mleku

2mo ago

oof, i just discovered that my #castr The Mochi has a phobia about folded up umbrellas

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

4
0
0
1

mleku

2mo ago

the concept of decaying messages has a certain relevance

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

6
0
1
84

mleku

2mo ago

#nostrappreciation

just amused as heck at y'all's hilarity this evening

See translation

0

0
0
0
0

mleku

2mo ago

#xapo bank just sent me an announcement that they are now supporting transfers of mexican dollars directly through the mexican national interbank network

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

2
0
0
0

mleku

2mo ago

the reason why sheep and shepherds are the theme of much discussion in the Bible is very simple

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

5
1
1
58

mleku

3mo ago

oof, my brain is melted today

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

2
0
0
0

mleku

3mo ago

#GM this morning i decided that i'm doing a simple banana/choc/coco smoothie with hydrolysed beef and just a single scoop, something a bit lighter for my belly, and full of amino acids so i can actually feed my muscles to do my training session today...

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

4
0
0
0

mleku

3mo ago

and in case you all think that i only like electro or metal



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

1
0
0
0

mleku

3mo ago

#asknostr pls help me learn about more american dark poetic music artists

i have tool, system of a down, ... argh my memory fails me

See translation

1

1
0
0
0

mleku

3mo ago

i'm going to just pull the plug and disconnect my other two monitors and just try to adjust to using a single 4k OLED monitor

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

are you familiar with this problem of multiple displays and mouse going out of them and causing select to switch to another app?

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

2
0
0
0

mleku

3mo ago

there is an easy solution to most of the bullshit of the x/wayland mess of these times

unplug the other monitors

my video card has 4 sockets

this is not progress, guys

mleku

3mo ago

Replying to @mleku

the biggest mess of this wayland shit has been about multi display

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

1
0
0
0