[ home / rules / faq / search ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM / ufo ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]

/tech/ - Technology

"Technology reveals the active relation of man to nature" - Karl Marx
Name
Options
Subject
Comment
Flag
File
Embed
Password(For file deletion.)
What is 6 - 2?

Check out our new store at shop.leftypol.org!

| Catalog | Home
|

File: 1761154341724.png (459.65 KB, 1008x720, 1384993837.png)

 

I'm writing a tech demo of an idea I had about alternative GUI programming techniques. so far I had been using xcb and everything is going fine and the idea is working but I was thinking about adding wayland support before releasing the code. I know wayland has a compatibility layer with x11 but considering I'm not doing anything crazy, mostly just drawing rectangles and text, and handling events, I thought "how hard could it be to add native support with a few ifdefs here and there". however, it doesn't seem like there is much documentation on how to write applications for wayland, and most places just tell you to use gtk or kde or some other high-level framework

tl;dr my question is, is there something like this official xcb tutorial but for whatever the wayland equivalent of xcb is?
https://www.x.org/releases/X11R7.7-RC1/doc/libxcb/tutorial/index.html


>>31601
huh, apparently it doesn't have drawing commands like x11, you just render client-side. I guess I will just use cairo then
but man it feels like a regression, as antiquated as it was, I liked that, in theory, you could use pure x11 programs through a network and the remote application would just send you the drawing commands to be rasterized locally

>>31602
It is pretty good, even locally if you're running a browser in a chroot or container like myself.

It's because wayland is garbage, put it in the bin.



 

I'm a volunteer for Marxists.org. Finding forgotten gold articles from 100 years ago and sharing them with the modern world is my jam. The problem is that they're often microfilm scans that are a pain in the ass to read, so I have to transcribe them - which rarely goes smoothly with my OCR software. A lot of the time I have to resort to typing everything out by sight, which as you can imagine takes forever.

That OCR software is ABBYY FineReader 15, said to be the best when I pirated it right before the big machine learning breakthroughs. Is "AI" able to work magic for optical character recognition now?

Attached is a book-length article I'd like to transcribe. It's mostly too fuzzy for FineReader 15 to handle. I was originally going to call on /leftypol/ to help me transcribe it by hand, but I thought I'd ask /tech/ first to see if a machine can do it after all.

TL;DR: help me transcribe this plz.
12 posts and 1 image reply omitted.

>>31586
Better yet do encode image by image, but not in a stupid way:

def render_pages(
    src_pdf: pathlib.Path,
    resolution: int,
) -> List[bytes]:
    pages = []
    with Image() as images:
        images.resolution=resolution
        images.read(filename=src_pdf)
        images.depth=8
        images.colorspace="gray"
        for image in images.sequence:
            compressed = Image(image=image)
            compressed.format = 'jpeg'
            buffer = io.BytesIO()
            compressed.save(file=buffer)
            pages.append(buffer.getvalue())
    return pages

>>31586
I'll admit that I have no idea how to use that code or what it means, but thanks for creating the script to transcribe this! There are a fair amount of errors, but not as many as ABBYY would generate - it seems like the LLM is a lot better at cutting out all the extraneous exponents and apostrophes that ABBYY would pick up from the film grain.

The downside from the LLM is that you sometimes get some true bizarre hallucinations. Like this one in the opening sentence of part IV. Here it is typed out by sight:

In the first article we introduced the reader to Comrade William English Walling, the "new" Duehring, who proposes a "new" Socialism based on "new" methods and principles.

And this is what the LLM spat out:

In the first article we introduced the reader to Conrad Williams*. [*Footnote: Not William, as given in the heading. Editors.] Dorothy, who proposes a "new" Socialism based on "new" methods and principles.

To clarify, there are no footnotes. The AI just totally made that up somehow.

>>31590
>no idea how to use that code or what it means
Well, that's a little too bad. I'm not exactly sure how to run it on Windows either. But it sounds like your existing solution is maybe good enough?

>true bizarre hallucinations

Yah, one of my other runs (maybe the one with the weaker model?) got it repeating "to my knowledge" a hundred times and monotonically decreasing the column width until it was just a word or part of one for one article.

>>31591
>But it sounds like your existing solution is maybe good enough?
I have dozens of hours of experience using it, which helps a lot. ABBYY also has a lot of PDF image editing tools built-in to deskew the text etc., so it looks like I'd be processing through ABBYY anyway before running the images through Tessaract or an LLM. Severely grainy or unevenly exposed images still give it a lot of trouble through with random apostrophes etc. that are a chore to manually remove.

I thank you again for transcribing the Slavit text for me though. It looks good enough that manually correcting it wouldn't be too bad. We'll see about that though, maybe the hallucinations will be so severe I'd have to verify every sentence.

The ultimate solution to this problem will be to get New York University to take the original crinkly newspapers out of storage and scan the broadsheets properly. Which the publication definitely deserves, but it's a huge ask and I'd like to be able finish my William English Walling complete works project (plus polemics aimed at him) before I dive into that.

>>31592
Good luck with your endeavors then.

>William English Walling

This seems like a very interesting character and project.



File: 1751762900436.png (3.11 KB, 225x225, images.png)

 

>WireGuard
Written in C, so no.
>OpenVPN
Insecure (and written in C).
>Tailscore
Proprietary trash. Again, written in a lower level language.

When the fuck will somebody use Python to script a VPN protocol out of for a full tunnel client w/ access to iptables w/ default setting at "strict"? Plus run it on custom STUN servers, uses 10.8.0.53 instead of 8.8.8.8 (Google)/1.1.1.1 Cloudflare)/9.9.9.9 (Quad9) and blocks any connections to them for a fine-grained DNS control, and fully self-hosted w/ local only control. Everything else is too insecure. Oh, and also
>Tailscale leverages Google's OAuth2 for user authentication, allowing users to log in to Tailscale using their Google accounts
Lmao. The absolute state.
16 posts omitted.

This is in OCaml plus a unikernel so free of bloat: https://blog.robur.coop/articles/miragevpn-server.html


what's wrong with mullvad


If you want to go with the proxy client + VPS route, Singbox, Clash or V2ray are written in Go


https://github.com/SagerNet/sing-box
https://github.com/MetaCubeX/mihomo
https://github.com/v2ray/v2ray-core



 

Who else rayhunting? Tired of police militarization and surveillance? Watch them back!

https://www.eff.org/deeplinks/2025/03/meet-rayhunter-new-open-source-tool-eff-detect-cellular-spying?language=en



 

In the recent years, more and more platforms at starting to introduce age verification trough external services like Persona. The most recent one, being roblox, which introduced ID age verification not so long ago. We also have cases like Facebook and Linkdin. But it is just the start. Probably, soon more and more platforms will introduce restrictions and age verification trough ID.

Now the question is, how would one bypass these tools? Fake IDs, if so, how good they should be? Or is the technology even working? All the questions surrounding this are encouraged.
3 posts omitted.

I know from a friend's friend that you can use an image generator language model and photoshop to make fake photos of IDs to get around this, you just have to let your email account associated with the service's account "cook" first (e.g. let big data fingerprint it by watching youtube and creating general activity on it) so their algorithm does not recognize it as fraud

File: 1759111703465.png (335.11 KB, 1287x881, 1632443542682.png)

bump

Since this thread was last bumped things have gotten worse.
The thing that is on my mind is how would one run a site without having to follow such laws.
Like I want to run my own porn site which is the most risky category.

>>28047
this is very common if you are overemployed and want to have two different CVs. it's not "anonymously" just not tied to a real ID.

>>31416
>Like I want to run my own porn site which is the most risky category.
How about a webring instead? If a bunch of people making smut just link to eachother, there's no platform to be forced to do this to begin with.

>>31418
yeah thats one step away from just throwing up a torrent



File: 1726459786963.png (365.18 KB, 709x538, nuimageboard.png)

 

The neverending quest to rewrite vichan -

Archived threads:
https://archive.is/xiA7y
258 posts and 59 image replies omitted.

>>31541
>Cache immutable the outbox.
I wrote signature verification for the inbox and three implementation for the Person outbox.
Think I'd like it to be illegal to use an irregular cursor/page so that the cache rarely misses.
But would also like to avoid using the "skip" parameter with O(n) search of the documents.
No matter how it's implemented it seems to require a document mapping cursors to pages.

>>31548
Settled on just using a cursor and "trusting" that servers won't use irregular cursors.
Or else that it may be possible to remove services which query the origin excessively.

Further this is a singly linked implementation because Delete and Update are included.
Delete and Update requires that the pages be traversed in full to render next elements.

The first page is always the total_items modulo the config.OUTBOX_PAGE_SIZE.
This allows every subsequent page to be cached immutable so long as the linked cursors are used.

We also drop the "partOf" parameter to avoid making the full (mutable) collection.

It's all above board with the spec too.
Only downside is the mentioned "trust" required of servers.

Wrote the Person following and followers endpoints.
Ended up not materializing the document to keep track of this.
So similar to the outbox this is just a query on the ActivityModel class.
The only real advantage to this is in bookkeeping.
It's slow because it's not really possible to cache these pages.
It should be less than 50ms (maybe less than 10ms on heavy hardware), for a page, which is probably too slow.
There is also a precondition that there be one follow not undone for any thousand.
This is to make it computationally feasible.

>>31567
It's a bit of a fail to write a federated server with mongodb in anything but typescript.
Guess there's going to be a 2.3 using fedify, mongodb, and typescript.
Think need to separate out the Activity logs from the materialized views.
This is to make the follwers, following, and like sufficiently performant.
My impression is that the client to server protocol would make things like bump ordering difficult.
So there probably needs to be a third layer to the API for a cache efficient client.

>>31583
For future reference, the private key idea is to use fordwardActivity() [^1].
And simply sign on the client side for all the relevant servers sent via a separate endpoint.
It's apparently trivial to wrap the existing fedify classes as monogodb documents with indices.
For the POST fanout use fedify/x/cfworkers [^2] including POSTing to the origin…

:[^1] https://fedify.dev/manual/inbox#forwarding-activities-to-another-server
:[^2] https://github.com/fedify-dev/fedify/pull/242



File: 1758713597538.png (38.22 KB, 736x736, ClipboardImage.png)

 

Have you ever come across legacy code and clients so shit it made you quit your job? I'm the OP from >>29629. I'm serving my notice period as of now. Never will I ever work a techjeet job again in my life. I'm fed up of looking at the absolute worst if-else/try-except hell, perpetually broken, shitly architected mess of entangled services that was assigned to me against my will. Even the individual config files are thousands of lines of undocumented json. It's such hot garbage you can't even run it locally, you need to push your changes to UAT just to see if they work. On top of that, the clients are typical middle-management assholes who always tried to blame me for their own mistakes. So, I quit on my own terms before those cunts got me fired. Atleast I have learned what not to do and saved enough to start my own thing. Will probably become a petite-bourg indiehacker or freelancer of some kind.

Also, and I say this as a jeet myself, never work for jeet clients or managers. They'd rather work you to death than make any improvements in their processes and standards, even if said improvements serve their own interests.
4 posts omitted.

hahahaha, I've had the same setting, sometimes shit code makes you want to blow your brains, it was a 20 year old .net codebase, PORTED from another company that was about selling horses or some shit, and it was adapted to handle biometric product catalogues, a CRM, i remember finding comments from 2004.

>quitting a cushy job over autismal shit
<Will probably become a petite-bourg
yeah "become" lmfao

>>31485

Staying on a job that is unfulfilling and makes you miserable just because it's "cushy" is The American Okie-Doke.

OP don't feel bad for having agency in your life.

>>31485
>>boo hoo poor me
>Won't somebody think of the african children???
Cmon man, get a grip

>>31485
Labour aristocrats are far less reactionary than petite-bourgs. Not that it matters because India is doomed anyway.



File: 1697820403212.jpg (Spoiler Image,350.18 KB, 1791x2048, 1688578954193.jpg)

 

Xfce was supposed to be THE lightweight fully-featured desktop manager but it seems fucking KDE has around the same memory footprint and performance?!
https://www.forbes.com/sites/jasonevangelho/2019/10/23/bold-prediction-kde-will-steal-the-lightweight-linux-desktop-crown-in-2020/
19 posts and 6 image replies omitted.

>>26316
low spec computers. which is the majority of computers in the third world

>>22030
>mouse girl
This has awakened something in me, what have you done?

>>22872
Just when the world needed tysontan most, he vanished.

File: 1758898924161-0.png (55.12 KB, 1920x1080, 473bf53504438936.png)

File: 1758898924161-1.png (45.71 KB, 1920x1080, 5b7e983b5361f72d.png)

https://oomfie.city/@anubiarts/115265721807724116
>happy KDE Linux/KDE Plasma 6.5 beta to those who celebrate

File: 1760107374386.png (162.06 KB, 1280x800, random.png)

I like IceWM and Window Maker. Both are easy to use. IceWM comes with Windows 95 clone GUI and Window Maker is different (similar to NeXT) but still just as easy to use.



File: 1759349427099.png (60.65 KB, 527x383, Email.png)

 

since the server crash ate my last thread about how to create anonymous email users over Tor in the age of cuckflare, I decided to recreate my findings from it. the goal is simple: create an email with a host that is considered trustworthy in most places online, using Tor Browser
I assume you're on a Debian-like system, including Ubuntu or Linux Mint. use a password manager like keepassx to generate unique passwords for all services. DO NOT USE ANY PASSWORDS THAT YOU USE FOR ANY OTHER ACCOUNTS. avoid using any special characters in your passwords, because configuring mutt with them seems to work poorly

for this exercise you will need Javascript enabled in Tor Browser. the middle "Safer" setting should work. perhaps in the future I will figure out a way with scripts disabled. the target of this guide is protonmail. in my experience it is considered trustworthy enough for signing up for various services
we will use a series of what I will call "springboards", where we move from a less trusted service to a more trusted one, until we get to protonmail which has rather strict standards for what it considers trustworthy for email verification

the guide below will go cock.li -> kolabnow.com -> proton.me

>level 0: cock.li

run by chvddie-adjacent people. uses colorful domain names like cock.li, loves.dicksinhisan.us and horsefucker.org, so it is generally considered untrustworthy by almost everyone. but it has the benefit of easy signup. it will therefore serve as our level 0 service. it has some hidden services:
rurcblzhmdk22kttfkel2zduhyu3r6to7knyc7wiorzrx5gw4c3lftad.onion for web
xdkriz6cn2avvcr2vks5lvvtmfojz2ohjzj4fhyuka55mvljeso2ztqd.onion for email (IMAP, POP) and chat (XMPP)
the clearnet web service tends to work better for signup for some reason, so use https://cock.li/ to sign up. using the cock.li domain for your email seems to work best - I tried using airmail.cc but had problems logging in
cock.li currently does not have a webmail. look further down for a short guide how to set up an IMAP client (mutt) that runs via Tor
you can solve the Proof-of-Work thing if you want, but it's not necessary for this guide since we only need to be able to receive email on this account. solving the PoW took 20 minutes on my crappy machine. you need to set the "Post too long. Click here to view the full text.

I also noticed reddit allows signup with cock.li emails. works best via reddit's .onion

>>31436
>mutt
at this point just connect to the imap server with the openssl terminal client. it literally adds nothing over a bash script that just grabs everything from imap and will be a point of failure because it is comically hard to setup compared what little it does

and you wasted time talking about random email providers that literally does not matter. if you want privacy use a pgp key pair. wtf is this /g/ tier nonsense

>>31438
this isn't about encrypting email. it's about getting an email without leaving any clearnet trace

>>31437
update: reddit will shadowban you for the most minor shit if you do this. better to use a more reputable provider



 

When the fuck will there be a fully open source desktop RISC-V SBC w/ mainline Linux support? The closest one is a SiFive HiFive Unmatched/Unleashed. I'm not spending $15,000 on a Talos II and nobody wants to go retro either, so this is the safest bet at having fully open source hardware on a desktop PC.

What's stopping you from using FreeBSD?

>>31411
FreeBSD is proprietary. The only two good Linux distros is Gentoo and Guix. I don't use BSD.



Delete Post [ ]
[ home / rules / faq / search ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM / ufo ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]
[ 1 /2 /3 /4 /5 /6 /7 /8 /9 /10 /11 /12 /13 /14 /15 /16 /17 /18 /19 /20 /21 /22 /23 /24 /25 /26 /27 /28 /29 /30 /31 /32 /33 /34 /35 /36 ]
| Catalog | Home