[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM ] [ 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.)

Not reporting is bourgeois


 

Thread for questions that don't deserve their own thread.
I wanna buy some headphones to go outside i don't want to spend more than 100€ on them. I want them to be mostly durable and secondly to have good sound quality, also i don't want to look like a jackass while wearing them, any suggestions?
456 posts and 61 image replies omitted.

>>27082
Sort of understood. You at least think the inheritance is essential.

>>27083
Understood.

>>27084
I didn't say inheritance. reading comprehension
you can have compile-time inheritance and that is usually not referred to as oop. you can have some types of run-time inheritance that aren't considered oop either. try to use more specific technical terms than "inheritance"


Keep trying to recycle coroutines, and wrap them up in lambdas, apparently Python finds this unhygienic.

>>27084
Stumbled upon this blog post: https://blog.tal.bi/posts/namespaces-in-c/ which reminded me of my OOP question here. Seems you could use basic structs to make namespaces and even use these namespaces to implement a common interface using _Generic to define the polymorphic type. Related to >>27083, but not quite like >>27082 because there isn't a mechanism to convert objects to the parent type (which only exists as the polymorphism).

>>27173
Why would you do that?

>>27494
you can implement full oop behavior in c, and I don't even mean implementing a compiler for oop languages, I mean oop in c, glib is an example. however, as explained in those definitions, c is not oop because you have to manually write and manage the vtables

>there isn't a mechanism to convert objects to the parent type

there is. as long as you keep the child class as a superset of the parent with exactly the same layout, you can cast the pointer to a child to a pointer of the parent type. this is, assuming the compiler keeps the same layout, if struct P {int x;} and struct C {int x; int y;}, you can take C* c; and cast it like (P*)c
and that's just one method

>>27501
Alright understood this, and >>27082 now. Thanks.

>>27495
Because didn't realize that a coroutine that wasn't awaited was guaranteed to not run.

File: 1734290677339.jpg (82.91 KB, 720x540, d28.jpg)

>>27077
>>27081
This slide from Peter Norvig's design pattern presentation might also be of interest.

>>27077
No, it's dynamic dispatch.

>>27791
Have been thinking about a Norvig presentation recently, and this slide was helpful.

>>27792
This is static: >>27494 does that make them not objects? You don't actually need _Generic if you cast to a parent, and with pointer arithmetic accessors you could even have multiple inheritance (so long as fields and methods don't overlap). Odd that you can use objects and inheritence (even classes) but not be programming in OOP.

>>27794
If this came off smug that wasn't my intent. Don't know what am talking about here.

File: 1734347676221.png (2.03 MB, 3616x4355, java programming.png)

>>27794
std is not actually static, you can change it at runtime. Put it in compiler explorer, you can see that even at -O3 it will have indirect calls. You have to mark it const if you want to eliminate the indirect calls to make it static. _Generic is static, it is done at compile time.

This is going to be a bit of a mess because I don't have the time to express myself succinctly, but in my opinion one has to consider the essence of programs to determine the essence of programming paradigms, and programs essentially compute, therefore we have to consider how computation is done. In imperative languages, like C, computation is done by executing a sequence of commands (called statements in C). In functional languages, like Scheme, computation is done by applying functions (hence "applicative"). Of course actual languages are rarely that pure, you can apply functions in C and you can have sequences of commands in Scheme, therefore one should not be surprised to find out that OOP languages can be used in a non-OOP style. It actually seems to be pretty common in Java, which relies heavily on imperative constructs… But if you look at what the actually OOP essence is, or look at a more "strict" language like Smalltalk, what does the computing in OOP is dynamic dispatch, or said otherwise, determining which method to call on an invocation. Sometimes they call this message passing, because the idea is that when you invoke a method, the currently executing thing sends a "message" of the method name and parameters to the object, and the object decides what to actually do. But the real reason for OOP to exists is this.

By the way when other anons are talking about vtables being the essence they are confusing the implementation (vtables or whatnot) with the concept (dynamic dispatch).

>>27799
Guess lost interest, maybe the implementation details are what matter as everyone else was sort of mentioning.

I'm looking for a laptop or something with 3 key aspects
- quiet
- okayish screen at least
- linux

I just want to use it for web browsing and SSH-ing or connecting to remote VMS and shit. Help

>>28021
get a refurbished early 2010s thonkpad

>>28022
Those things are loud af and the screenhurts my eyes. I already have one

File: 1735323879931.png (110.84 KB, 1216x361, ClipboardImage.png)

The average normoid doesn't understand engineering tradeoffs. With wiring, fault detection and replacement are easy, latency approaches zero, reducing interference is trivial and you can get near infinite bandwidth in addition to constant power. Wireless technologies are almost universally worse on all of these points with the only benefit being sometimes not tripping over a wire (i do actually trip over my headphone wire once a month). IMO cordless phones are the only genuinely worthwhile piece of wireless equipment, as using them at a distance to the landline connection is a real usecase.

>>28027
It just looks cool to them and they don't care about actual functionality. Its why the apple wireless mouse can't be used while its plugged in

>>28027
My headphones take 3 AAA's and last a few weeks on one charge for how often I use them.

>>28027
I couldn't make any pair of wired headphones last for more than a month, so I migrated to bluetooth. For me it makes sense because the lifespan of the equipment goes from an average of 2 weeks to 1~ year.

>>28053
>I couldn't make any pair of wired headphones last for more than a month
Keep them dry and don't bend them in your pockets.

at work (where I am forced to use Windows) i took a 20 second screen recording with the snipping tool. it was a whopping 19,565 KB in size. I ran it through ffmpeg and output it in the exact same format and resolution. it was now only 687KB in size despite being of identical quality to the naked eye. Why is the windows snipping tool recorder so fucking unoptimized? Why are file sizes much smaller once I run them through ffmpeg? I suppose I could write a script to automatically run every new screen recording I make through ffmpeg but still, it shouldn't be necessary.

>>28463
this is /tech/

>>28887
You could use OBS, instead of writing a script and relying on shitty windows stuff. You could potentially bind it to some keyboard macro and set up the prefs you want.

>>28905
tbf i like the snipping tool because it's very fast and ez to just drag a rectangle and hit record. very small learning curve. my only issue with it is the file size being huge

What's an android app that works for viewing leftypol?

>>29154
Fennec F-Droid

>>29155
Have a browser which works well enough was curious if there was a dedicated app available.

>>29156
Found >>28093 and https://github.com/moffatman/chan but it looks like there's not even a bug report for adding leftypol support. Presumably it wouldn't be hard and would be worth doing considering the user base is reasonably large. Can't be bothered to make a github account however.

Is https://anubis.techaro.lol/ a cloud flare replacement?
Could it work for an image board is the threat of DDOS too high.

>>29186
From what I understand, anubis is just meant to make crawlers perform heavy computation before serving content, in a way that makes scraping training data expensive. I don't think it stops SYN floods or whatever. So no.

>>29172
KurobaEx has leftypol on it but it's been abandoned

>>29190
>KurobaEx has leftypol on it but it's been abandoned
Seems to work great cheers.

File: 1745222138572.png (655.43 KB, 1024x911, user.png)

Is there any uBlock list for automatically hiding the AI generated answers on DuckDuckGo/Google/etc.?

>>29227
Just use the element selector from uBlock.


I have a kobo Clara hd. I put Koreader on it. Anything else neat I can do with it? I don’t connect it to wifi. I want to use it more but I’m a YouTube addict. I have 500 real books I need to read before I get to the hundreds I’ve downloaded. I spend more time with the actual project of setting up shit like koreader than actually reading. Shit. Nevermind.

Alright, I've got a question:

Google really seems to hate Tor users and they block them agressively. At the same time, Google seems to tolerate VPN users.

Google's business is data collection, so it is no surprise, that they hate Tor users. But shouldn't they also block VPN users as well?

>>29257
Nah, vpns are easy to get warrants for.

Say someone loaded a .PDF with some malicious shit.
Is there a program (FOSS) that can scan and warn you about it before opening?

>>29375
QuickSand ?

>>29376
Yeah something like that, but project seems abandoned (?), no updates since 2021:
https://github.com/tylabs/quicksand
https://scan.tylabs.com/
Wonder if it's still reliable or of the 'zeitgeist' has moved somewhere else. Here's a reddit thread from around the same time-period ("three years ago"): https://old.reddit.com/r/cybersecurity/comments/u5k4o4/is_there_a_free_pdf_malware_scanner_that_doesnt/

>>1280
What is the best way to disallow or mitigate commercial use of my software? Should I use AGPL or The Anti-Capitalist Software License or something else?
>https://www.gnu.org/licenses/agpl-3.0.html
>https://anticapitalist.software

>>29869
You could also add https://commonsclause.com/ to any license of your choice including AGPL.
At one point considered this to be a good license for SaaS free software with chinese characteristics.
GPLv3 and Apache have patent clauses if that's of interest to you.

are there any vivaldi plugins that I are available to make browsing leftypol a bit better?

Given how, even on a good day, LLMs do citation in a way that is all too close to a human without book at hand, is there any chatbot out yet with solid citations? What I'm thinking about would be basically this:

1. The program responds to anything with a cite from a big text corpus (for example, a Lenin-citer bot),
2. always uses quotation marks,
3. also has markers to show when there is a quote within the quote,
4. marks omissions with (…) that you can click on to reveal the omitted text, and
5. always gives the source title, publication date, and source link.

It might make use of a very fuzzy decision procedure, but only for deciding on where to make cutouts from an existing text, not to generate text.

>>30017
Was using DeepSeek for this some if you end your question with "using only quotes by author from a reputable source" such as "Lenin" from "marxists.org" it did a descent job from an uninformed perspective. It sometimes elides and then you can request "give me the full paragraph of the quote". My guess is that you'd be better off just doing a wget –spider for pages and then find and grep.

>>30017
I think the problem would be somewhat solved if you could limit searches to a particular domain, so even if the LLM gets quotes wrong, you can see where it got its shit from


Unique IPs: 26

[Return][Go to top] [Catalog] | [Home][Post a Reply]
Delete Post [ ]
[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]