Why do you need sudo to run your project? Are you developing kernel drivers?
pelya
- 0 Posts
- 180 Comments
It’s trivial to make the battery thicker to match the camera bump. Thin phones have thin camera bumps that still stick out, it’s totally a design choice.
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); } } }
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.
pelya@lemmy.worldto
Lemmy Shitpost@lemmy.world•It's quite the burden knowing I'm always the smartest person in any given room.
3·3 months agostanding uncomfortably close It’s called 𝔓𝔩𝔞𝔰𝔪𝔞 now
pelya@lemmy.worldto
Lemmy Shitpost@lemmy.world•It's quite the burden knowing I'm always the smartest person in any given room.
2·3 months agoOnly on the kernel ackshually. Most packages are GPL3 or BSD or Apache.
If you don’t plan to edit source files, Linux distribution licenses boil down to “do whatever just don’t sue us”
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·3 months agoBrowse Linux credits for some funky names. My favorite is Jos Vos.
killall kdeconnectd ; kdeconnect-cli -lFixes connection problems instantly. Yeah, I’ve put that into my crontab.
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.
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.
When you open a serverless website in your browser, it becomes a regular app.
pelya@lemmy.worldto
Programmer Humor@programming.dev•It's just C with two plus signs, how hard could it be?
4·4 months agoMore like garbage dispenser.
Pro C++ coders don’t use
delete, they callabort()
Justice for the 5.25" floppy disk! It had an actual hole inside, which would fit your finger! You could see it’s a disk and not a weird shaped square box, and you could hear it’s rotating.




I don’t play Freedoom regularly, I just like the sprite. I ported it to KaiOS though.