For some reason, I was using calc all this time. I mean, itâs good, but I need to do base conversions (dec, hex, bin) very often and you have to type base(2) or base(16) in calc to do that. Thatâs exhausting after a while.
So I now replaced calc with a little Python script which always prints the results in dec/hex/bin, grouped in bytes (if the result is an integer). Thatâs what I need. Itâs basically just a loop around Pythonâs exec().
$ mcalc
> 123
123 0x[7b] 0b[01111011]
> 1234
1234 0x[04 d2] 0b[00000100 11010010]
> 0x7C00 + 0x3F + 512
32319 0x[7e 3f] 0b[01111110 00111111]
> a = 10; b = 0x2b; c = 0b1100101
10 0x[0a] 0b[00001010]
> a + b + 3 * c
356 0x[01 64] 0b[00000001 01100100]
> 2**32 - 1
4294967295 0x[ff ff ff ff] 0b[11111111 11111111 11111111 11111111]
> 4 * atan(1)
3.141592653589793
> cos(pi)
-1.0
@movq@www.uninformativ.de I never used DOS or OS/2, but I fully agree with you. A Unix shell with its tool landscape is hard to beat (photo/video viewing/editing aside).
Scientists to explore life creation from basic chemicals + 2 more stories
European scientists launch MiniLife project to create lab-made life, companies in Australia start mandatory climate disclosures, and discontent shapes global elections as incumbents lose votes. â Read more
It needs to be said: Retrocomputing and old systems like DOS or OS/2 are fun and all, but a UNIX shell and its userland tools are the most powerful things Iâve ever seen. You can pry that from my cold dead hands. đ
help iâve had this account for barely 2 days and iâm nearly at 100 posts
@lyse@lyse.isobeef.org Ein PrachtstĂŒck hast du dir da gebaut! Bei mir werden aus den Stöckern Rankhilfen, Nivellierunterlagen, Insektenhotels, Untersetzer und und und. Im Baumarkt zahlt man dafĂŒr bis zu 2âŹ, pah! :)
cli test 2
Okay, this is pretty cool. My 8086 toy OS running on my old Pentium from an actual floppy disk. đ I just love that sound and the feeling of using floppies. This brings back so many memories from my early DOS days.
The cp-unopt program copies a file and intentionally uses small unaligned reads/writes (hopefully triggers more bugs).
The I/O cache works âokay-ishâ, I guess. When sha1 runs, it has to do a few reads for the first file and basically none for the second one. Both could have been served entirely from the cache, theoretically. (But even just having an I/O cache in the first place speeds up things dramatically.)
Notice how thereâs an EA file. Thatâs a left-over from OS/2, because I copied some files to the floppy using OS/2. In other words, my FAT12 implementation survives OS/2 writing to it. đ„ł (But I guess it should show up as EA DATA.SF. My current code starts at the left and stops at the first space.)
https://movq.de/v/d4d50d3c74/los86-on-p133-from-floppy-small2.mp4
I found 2 active Registries: tilde.instite and twtxt.envs.net . I think that is missing a repository or system for them to find each other. It is easy to share registry users. Your work is awesome! Maybe you are supporting twtxt with the pod and software around them. I am very busy with the Emacs client, but I like to work creating my own version of Registry using Django.
@emmanuel@wald.ovh Btw I already figured out why accessing your web server is slow:
$ host wald.ovh
wald.ovh has address 86.243.228.45
wald.ovh has address 90.19.202.229
wald.ovh has 2 IPv4 addresses, one of which is dead and doesnât respond.. Thatâs why accessing your website is so slow as depending on client and browser behaviors one of two things may happen 1) a random IP is chosen and œ the time the wrong one is picked or 2) both are tried in some random order and œ the time its slow because the broken one is picked.
If you donât know what 86.243.228.45 is, or itâs a dead backup server or something, Iâd suggest you remove this from the domain record.
New AI tool will identify diabetes risk 13 years early + 2 more stories
NHS launches trial for AI diabetes prediction; Eni unveils âŹ100 million supercomputer for energy; UN Security Council approves peacekeeping in Somalia. â Read more
I saw a paraglider after sunset. Must have been super cold up there in the sky, we just had 1-2°C on the ground. And I passed a heron at just 5-6 meters distance. I think thatâs a new record low. The sunset itself wasnât all that shabby either. Hence, a very good stroll.
Oh no!
Wife and I agreed on hibernate until January, just visiting relatives but avoiding any kind of shopping. I tried buying something like 2 or 3 days ago and itâs insane :o
Good luck! :)
my 2 cents hereâŠ
I agree on displaying a short @nick.
We could hover on the nick to see the full detail which could be @nick@domain.tls or the full URL
Also it could be a display option in Preferences in case your account starts showing many collisions.
The disambiguation for collisions is the .txt URL and the nick inside it, right ?
One thing Iâve learned over the many years now (approaching a decade and a half now) about self-hosting is two things; 1) There are many âassholesâ on the open Internet that will either attack your stuff or are incompetent and write stupid shitâą that goes crazy on your stuff 2) You have to be careful about resources, especially memory and disk i/o. Especially disk i/o. this can kill your overall performance when you either have written software yourself or use someone elseâs that can do unconfined/uncontrolled disk i/o causing everything to grind to a halt and even fail. #self-hosted
@movq@www.uninformativ.de my util-linux 2.40.2 version of cal seems to do week 53.
Does anyone else declare a computer dead after extensive testing, let it sit on a shelf for 2 weeks or a year, try it again, and have it work fine? It seems like thatâs happened to me a lot more than it should.
China launches first batch of internet satellites + 2 more stories
China launches first 10 Guowang satellites for internet access; NASAâs Webb telescope challenges planet formation theories; NATO takes over coordination of Ukraine military aid. â Read more
A R C O N 1 T E A R C O N I T E A R C
R C O N 2 T E A R C O N I T E A R C 0
C O N 8 T E A R C O N I T E A R C 0 N
@bender@twtxt.net Hmmm⊠it makes sense. Now I curious, how old is his hardware though? is it SolveSpace kind of old? or reaaaally Blender 2.4 series kid of old!? đ€
@movq@www.uninformativ.de I know, nobody asked đ€Ą but, here are a couple of suggestions:
- If youâre willing to pay for a licence Iâd highly recommend plasticity itâs under
GNU LESSER GENERAL PUBLIC LICENSE, Version 3.
- Otherwise if you already have experience with CAD/Parametric modeling you could give freeCAD a spin, itâs under
GNU Library General Public License, version 2.0, it took them years but have just recently shipped their v1.0 đ
- or just roll with Autodeskâs Fusion for personal use, if you donât mind their âOh! You need to be online to use itâ thing.
(Letâs face it, Blender is hard to use.)
I bet youâre talking about blender 2.79 and older! đ you are, right? JK
China deploys historic naval fleet near Taiwan + 2 more stories
Global advertising revenue is projected to exceed $1 trillion; garment workers face increased heat risks; Taiwan raises alert over Chinaâs largest naval fleet deployment. â Read more
Easy: 7.08 miles, 00:10:03 average pace, 01:11:04 duration
nice cool run. well rested, and kept it mainly in zone 2 as intended. was not sure how my back was going to be after i tweaked it moving weights around yesterday, but it was fine. cushy mach 6s on and some ibuprofen just in case.
#running
POSSE-ing these articles from by nekoweb in case bluesky and/or fedi explode œ
Change
Cleaned up my npm package for twthash; made it CommonJS compatible, added more documentation and even a test. Current version is 1.2.2
Upgrading my FreeBSD box to 14.2-RELEASE ⊠I may have read something about some-Go-thing breaking but đ€
La sĂ©rie culte de Russel T Davies Years and Years disponible jusquâau 6 dĂ©cembre 2024 https://www.france.tv/france-2/years-and-years/
Yes it work: 2024-12-01T19:38:35Z twtxt/1.2.3 (+https://eapl.mx/twtxt.txt; @eapl) :D
The .log is just a simple append each request. The idea with the .cvs is to have it tally up how many request there have been from each client as a way to avoid having the log file grow too big. And that you can open the .cvs as a spreadsheet and have an easy overview and filtering options.
Access to those files are closed to the public.
Project update + 2 significant news stories
Trump threatens 100% tariffs on Brics nations over dollar currency rivalry; Severe flooding displaces over 122,000 in Malaysia â Read more
Termux same thing @doesnm uses and it worked đ Media
@doesnm@doesnm.p.psf.lt No itâs all good⊠Iâve just rebuilt it from master and it doesnât look like anything is broken:
~/GitRepos> git clone https://github.com/plomlompom/htwtxt.git
Cloning into 'htwtxt'...
remote: Enumerating objects: 411, done.
remote: Total 411 (delta 0), reused 0 (delta 0), pack-reused 411 (from 1)
Receiving objects: 100% (411/411), 87.89 KiB | 430.00 KiB/s, done.
Resolving deltas: 100% (238/238), done.
~/GitRepos> cd htwtxt
master ~/GitRepos/htwtxt> go mod init htwtxt
go: creating new go.mod: module htwtxt
go: to add module requirements and sums:
go mod tidy
master ~/GitRepos/htwtxt> go mod tidy
go: finding module for package github.com/gorilla/mux
go: finding module for package golang.org/x/crypto/bcrypt
go: finding module for package gopkg.in/gomail.v2
go: finding module for package golang.org/x/crypto/ssh/terminal
go: found github.com/gorilla/mux in github.com/gorilla/mux v1.8.1
go: found golang.org/x/crypto/bcrypt in golang.org/x/crypto v0.29.0
go: found golang.org/x/crypto/ssh/terminal in golang.org/x/crypto v0.29.0
go: found gopkg.in/gomail.v2 in gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
go: finding module for package gopkg.in/alexcesaro/quotedprintable.v3
go: found gopkg.in/alexcesaro/quotedprintable.v3 in gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc
master ~/GitRepos/htwtxt> go build
master ~/GitRepos/htwtxt> ll
.rw-r--r-- aelaraji aelaraji 330 B Fri Nov 22 20:25:52 2024 î§ go.mod
.rw-r--r-- aelaraji aelaraji 1.1 KB Fri Nov 22 20:25:52 2024 î§ go.sum
.rw-r--r-- aelaraji aelaraji 8.9 KB Fri Nov 22 20:25:06 2024 î§ handlers.go
.rwxr-xr-x aelaraji aelaraji 12 MB Fri Nov 22 20:26:18 2024 ï htwtxt <-------- There's the binary ;)
.rw-r--r-- aelaraji aelaraji 4.2 KB Fri Nov 22 20:25:06 2024 î§ io.go
.rw-r--r-- aelaraji aelaraji 34 KB Fri Nov 22 20:25:06 2024 î LICENSE
.rw-r--r-- aelaraji aelaraji 8.5 KB Fri Nov 22 20:25:06 2024 î§ main.go
.rw-r--r-- aelaraji aelaraji 5.5 KB Fri Nov 22 20:25:06 2024 î README.md
drwxr-xr-x aelaraji aelaraji 4.0 KB Fri Nov 22 20:25:06 2024 ï templates
@eapl.me@eapl.me Yeah, thatâs exactly why Iâm asking. Iâve been having a couple of errors here and there even though Iâm using PHP 8.2 ⊠Mostly somethings about undefined array keys and creation of dynamic properties being deprecated (CC: @sorenpeter@darch.dk )
Hey @aelaraji@aelaraji.com Iâm running PHP 8.2 on my server
China boosts support for Global South + 2 more stories
Chinese President Xi Jinping announces eight development measures for the Global South; President Biden visits the Amazon rainforest to boost climate efforts; Biden pledges record $4 billion to World Bank fund for poorest nations. â Read more
Apple to launch new AI home screen + 2 more stories
Google expands AI flood forecasting to 700 million people; Apple plans to launch a new AI smart home hub; EU allocates âŹ300 million for joint defense projects. â Read more
I think itâs centralized shit with lying about decentralization. All network is worked by two centralized things: plc.directory (did storage?) and network relay (bsky.network). You can host your relay but this require TOO MUCH resources (2TB storage and 32GB RAM read more ). Also i try running PDS and: 1. I canât register account via app,only via cli 2. It leaked on 2GB virtual machine then killed by oom after trying to register account via cli
Major polluters absent from climate summit + 3 more stories
Scientists warn of the potential collapse of the Atlantic current; major polluters skip UN climate talks amidst climate finance discussions; ADB boosts climate finance to $7.2 billion with US and Japan support; Israel fails to meet US deadline for increased humanitarian aid to Gaza. â Read more
@eapl.me@eapl.me here are my replies (somewhat similar to Lyseâs and Jamesâ)
Metadata in twts: Key=value is too complicated for non-hackers and hard to write by hand. So if there is a need then we should just use #NSFS or the alt-text file in markdown image syntax
if something is NSFWIDs besides datetime. When you edit a twt then you should preserve the datetime if location-based addressing should have any advantages over content-based addressing. If you change the timestamp the its a new post. Just like any other blog cms.
Caching, Yes all good ideas, but that is more a task for the clients not the serving of the twtxt.txt files.
Discovery: User-agent for discovery can become better. Iâm working on a wrapper script in PHP, so you donât need to go to Apaches log-files to see who fetches your feed. But for other Gemini and gopher you need to relay on something else. That could be using my webmentions for twtxt suggestion, or simply defining an email metadata field for letting a person know you follow their feed. Interesting read about why WebMetions might be a bad idea. Twtxt being much simple that a full featured IndieWeb sites, then a lot of the concerns does not apply here. But thatâs the issue with any open inbox. This is hard to solve without some form of (centralized or community) spam moderation.
Support more protocols besides http/s. Yes why not, if we can make clients that merge or diffident between the same feed server by multiples URLs
Languages: If the need is big then make a separate feed. I donât mind seeing stuff in other langues as it is low. You got translating tool if you need to know whats going on. And again when there is a need for easier switching between posting to several feeds, then itâs about building clients with a UI that makes it easy. No something that should takes up space in the format/protocol.
Emojis: Iâm not sure what this is about. Do you want to use emojis as avatar in CLI clients or it just about rendering emojis?
Number Shortage
â Read more
Iâm seeing strange lights in the sky. None of my cameras are sensitive enough to make a video.
Itâs probably one of two things:
- A ship on the nearby river with a lightshow going. Itâs rare but it happens.
- A steap hill nearby, cars driving âupwardsâ, and since super bright LED lights are normal nowadays, they reflect from the clouds.
Either way, looks fancy.
Would it make sense for twtxt v.2 to do something similar to bluesky, where you use a domain as you handle by creating a specific DNS record as explained by: https://matthiasott.com/notes/how-to-set-your-domain-as-your-bluesky-handle
@doesnm@doesnm.p.psf.lt May I ask which hardware you have? SSD or HDD? How much RAM?
I might be spoiled and very privileged here. Even though my PC is almost 12 years old now, it does have an SSD and tons of RAM (i.e., lots of I/O cache), so starting mutt and opening the mailbox takes about 1-2 seconds here. I hardly even notice it. But I understand that not everybody has fast machines like that. đ«€
Ma #freebox est bloquĂ©e Ă lâĂ©tape 2 ce matin. Pas dâaccĂšs Ă internet pour mon serveur donc. si3t.ch est down, ainsi que puffy.cafe, jusquâĂ nouvel ordre
@prologic@twtxt.net I wrote ÂŒ (one slash four) by which I meant âthe first out of fourâ. twtxt.net is showing it as ÂŒ, a single character that IMO doesnât have that same meaning (it means 0.25). Similarly, Ÿ got replaced with Ÿ in another twt. Itâs not a big deal. It just looks a little wrong, especially beside the 2/4 and 4/4 in my other two twts.
Iâm enjoying Wesley Chuâs Tao and Io series. Spies, action, ancient aliens. Some funny parts, some interesting world-building parts, some action-filled parts. I picked up The Fall of Io at random from a library a few weeks ago, and it turned out to be the last in a series of six (technically two series), so after finishing that I read the first and am partway through the second. Usually I try to read series in order, but this way is interesting. One thing I liked about The Fall of Io was that it it followed many points of view with somewhat conflicting interests, some more evil than others, and I felt sympathy for most of them. (I was kind of hoping it would be about Jupiterâs moon Io, but it wasnât, but Iâm satisfied with what I ended up with.) (2/4)
Simplified twtxt - I want to suggest some dogmas or commandments for twtxt, from where we can work our way back to how to implement different feature like replies/treads:
Itâs a text file, so you must be able to write it by hand (ie. no app logic) and read by eye. If you edit a post you change the content not the timestamp. Otherwise it will be considered a new post.
The order of lines in a twtxt.txt must not hold any significant. The file is a container and each line an atomic piece of information. You should be able to run
sorton a twtxt.txt and it should still work.Transport protocol should not matter, as long as the file served is the same. Http and https are preferred, so it is suggested that feed served via Gopher or Gemini also provide http(s).
Do we need more commandments?
Thereâs this rumor that you can create a WhatsApp account with a burner phone, then link the phone to a browser on your desktop PC (web.whatsapp.com) and never have to use the phone again. This just doesnât work. Every ~2 weeks, the session in the browser will time out and you have to re-link again. đ
nixbsd is taking a long time to build, but thatâs expected. i guess a fast machine can do it in just 8h. might be about time to get my binary cache setup. my machine can only handle max-jobs=2 :(
I share I did write up an algorithm for it at some point I think it is lost in a git comment someplace. Iâll put together a pseudo/go code this week.
Super simple:
Making a reply:
- If yarn has one use that. (Maybe do collision check?)
- Make hash of twt raw no truncation.
- Check local cache for shortest without collision
- in SQL:
select len(subject) where head_full_hash like subject || '%'
- in SQL:
Threading:
- Get full hash of head twt
- Search for twts
- in SQL:
head_full_hash like subject || '%' and created_on > head_timestamp
- in SQL:
The assumption being replies will be for the most recent head. If replying to an older one it will use a longer hash.
More thoughts about changes to twtxt (as if we havenât had enough thoughts):
- There are lots of great ideas here! Is there a benefit to putting them all into one document? Seems to me this could more easily be a bunch of separate efforts that can progress at their own pace:
1a. Better and longer hashes.
1b. New possibly-controversial ideas like edit: and delete: and location-based references as an alternative to hashes.
1c. Best practices, e.g. Content-Type: text/plain; charset=utf-8
1d. Stuff already described at dev.twtxt.net that doesnât need any changes.
We wonât know what will and wonât work until we try them. So Iâm inclined to think of this as a bunch of draft ideas. Maybe later when weâve seen it play out it could make sense to define a group of recommended twtxt extensions and give them a name.
Another reason for 1 (above) is: I like the current situation where all you need to get started is these two short and simple documents:
https://twtxt.readthedocs.io/en/latest/user/twtxtfile.html
https://twtxt.readthedocs.io/en/latest/user/discoverability.html
and everything else is an extension for anyone interested. (Deprecating non-UTC times seems reasonable to me, though.) Having a big long âtwtxt v2â document seems less inviting to people looking for something simple. (@prologic@twtxt.net you mentioned an anonymous comment âyouâve ruined twtxtâ and while I donât completely agree with that commenterâs sentiment, I would feel like twtxt had lost something if it moved away from having a super-simple core.)All that being said, these are just my opinions, and Iâm not doing the work of writing software or drafting proposals. Maybe I will at some point, but until then, if youâre actually implementing things, youâre in charge of what you decide to make, and Iâm grateful for the work.
Probando mi internet.. 3,2,1⊠#Barcelona