pelya
- 3 Posts
- 416 Comments
For ages it was safe to download and open random files on Linux, because they simply would not run. Now Linux is a very desirable target for criminals, so they learned to write multiplatform viruses.
The best option would be an automatic sandbox for running random crap downloaded who knows where, and Android does that automatically, but on desktop Linux you need to either create a new user (and remove world-readable permissions from your main account files), or create a custom Docker container, or create a chroot, or launch a VM, all of which require half a day of learning new tools, and then debugging why graphics would not work.
The executable will search for .so files not inside predefined paths like /usr/lib but inside it’s current directory. You may theoretically put
.as an argument toconfigure, but it converts that into an absolute path, snd libtool and linker fail when encountering relative paths inside shared library dependencies.
I am using this myself in Android app, where you can write files only inside
/data/data/your.app.id/So naturally, if you want to publish a different app,
your.app.idwill be different, so you need to recompile all your Linux tools that you bundle inside your app.If you are not running your Linux tools on Android, you’d probably be better off using Docker or a chroot.
--prefix=$(pwd)is resolved at compile time. If you move your compiled .so files to a different directory, they stop working.
Do you know how to build portable executables?
configure --prefix=/proc/self/pwdIt even works in .so files and libtool.
pelya@lemmy.worldto
Programmer Humor@programming.dev•Who has the best name in the programming space?
13·19 days agoBrowse Linux credits for some funky names. My favorite is Jos Vos.
pelya@lemmy.worldto
Technology@lemmy.world•If the markets reject OpenAI and Anthropic, the US should nationalize themEnglish
4·19 days agoEach investor will get one CD of ChatGPT training data per share as a bankruptcy settlement. Every CD need to be inserted into a single user-provided server to train the model anew, because it’s saved as a multipart archive.
Use Krita instead. It has a big tiddy anime waifu right on the splash screen.
killall kdeconnectd ; kdeconnect-cli -lFixes connection problems instantly. Yeah, I’ve put that into my crontab.
xzcomes standard with every Linux distribution, and it implements the same 7zip compression algorithm but with more options.
Written in hand-optimized assembly with individual implementation for every CPU on the planet, with integer division function in 10000 lines of code impelented with XOR and bit-shifting which is somehow 0.3% faster than CPU built-in division operation.
I’ve recently used Codeberg. It’s online about two hours per day.
pelya@lemmy.worldto
linuxmemes@lemmy.world•Seriously, every time I gotta be out the door. Just let me shut you down.
15·1 month agoJust
poweroffis fine. Why lose extra 2.5 seconds typing two words when one word will suffice?
pelya@lemmy.worldto
Technology@lemmy.world•FreeBSD Just Removed The Last Of Its GPL-Licensed CodeEnglish
39·1 month agoIn a sane and healthy software company, they would contribute their changes back to BSD just because it makes easier to apply latest BSD changes amd security fixes.
Most companies wont. They fork, modify the BSD code for their specific hardware, sell it, and never ever update thier software.
pelya@lemmy.worldto
Android@lemmy.world•Storage upgrades cost too much, and we need microSD cards backEnglish
82·1 month ago256 GB SD card already costs like a new phone.
TreeView is designed as an afterthought. Some manager at MICROS~1 was like ‘ah yes we need an expanding nested list widget by tomorrow’ and they mutilated text edit box to draw text lines that expand when you click them. It does not have keyboad focus. It can only be operated with a mouse. It does not have shadow or raised widget borders. It has black text on white background, while every other widget has Windows Gray background.
The proper UI would be a separate button for each label, like multiple hierarchical combo boxes.
pelya@lemmy.worldto
Programmer Humor@programming.dev•It's just C with two plus signs, how hard could it be?
3·2 months agoMore like garbage dispenser.
Pro C++ coders don’t use
delete, they callabort()
pelya@lemmy.worldto
Technology@lemmy.world•Microsoft Needs Windows Lite, No telemetry, no spying, no ads, no AI, no .NET, to retain gamers and developersEnglish
61·2 months agoIt does run many Windows applications using Wine, although not all of them.







I would expect something worse than bubble sort. No idea whether it will even work:
void reverse(auto A, int start, int end) { for (int i = 0; i < (end - start) / 2; i = i + 1) { auto tmp = A[start + i]; A[start + i] = A[end - i]; A[end - i] = tmp; } } for (int j = 0; j < N; j = j + 1) { for (int i = 0; i < N; i = i + 1) { if (A[i] < A[i + 1]) { reverse(A, i, N); } } }