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
- 4 Posts
- 512 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·10 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·10 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”
Yup, it was a male cat
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.
pelya@lemmy.worldto
Anime@ani.social•[Episode] The Exiled Heavy Knight Knows How to Game the System • Tsuihou Sareta Tensei Juukishi wa Game Chishiki de Musou Suru - Episode 8 discussionEnglish
5·15 days agoI’m here just to watch silly 3D-stretched facial expressions.
I gotta say, this anime has better art quality than random TF2 GMod videos on Youtube, on the other hand TF2 videos have significantly higher concentration of plot per minute, and less filler.
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·16 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·16 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.
pelya@lemmy.worldtoHacker News@lemmy.bestiver.se•Why a Raspberry Pi shouldn't be powered through its GPIO pinsEnglish
4·25 days agoYou totally should power your Raspberry Pi through GPIO pins, once you grow up from blinking LEDs on your table to assembling some automation equipment that you expect to work at other people’s premises.
MicroUSB connection is the one biggest point of failure in any kind of Raspberry Pi automation project. Type-C socket is better, but it still depends on your cable to have appropriate quality, and if your project involves vibration, the cable may and will slip out.
If you don’t want your Pi to randomly stop working in two years, choose a good-quality power supply and solder it to 40-pin DuPont socket header. Do not use individual socket wires, they need very little effort to get loose. If you’re paranoid, you can solder it directly to Raspberry Pi pins, but obviously you won’t be using that particular Pi for any other project, also you should use heat shrink tubes.
but the only thing that’s broken is the fuse which can easily be replaced.
Lolno. You’re not replacing any SMD fuses without a heat gun and a workbench with a magnifying glass. Raspberry Pi 4 and 5 do not have fuses at all, overvoltage directly fries your PMIC and the replacement is impossible to find.
Source: I own a fried RPi 4, and several RPi Zero, one of which failed to boot because MicroUSB cable wiggled in a socket.
xzcomes standard with every Linux distribution, and it implements the same 7zip compression algorithm but with more options.









It’s a deliberate cinematography technique - you make your characters dumber, so when they discover an obvious solution to the plot, it’s described like a genius move.
Amd yeah, I would expect the moment of flexing on the old Ruche’s party to produce some gmod-grade facial expressions, but eh, they were quite restrained.