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.
pelya
- 3 Posts
- 481 Comments
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·17 days 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·17 days 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”
That would be true like 200 years ago, every guy would know some woodworking because you are a farmer and you are poor.
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·23 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·23 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.
What’s big, cylindrical, and has two legs on one side? 90% of the time it’s a capacitor.
killall kdeconnectd ; kdeconnect-cli -lFixes connection problems instantly. Yeah, I’ve put that into my crontab.
pelya@lemmy.worldto
Linux@programming.dev•GNOME Receiving Additional Design Help Thanks To Sovereign Tech Agency Fellowship
43·1 month agoOooh. Gnome gets a dedicated software developer. Just imagine what he could add in two years.
DESKTOP
WITH
ICONS
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.
You can append
2>&1 | logger -t my-cronjobto any command, and it will write logs to system journal which you can view with
journalctl







It won’t, because there’s no graphics display, so SDL won’t initialize.
You need to install and launch Termux:X11 to provide a video surface, and it won’t support GL acceleration.