• 0 Posts
  • 124 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle
rss
  • We want to inhibit when running stuff like pacman, wget, cp or mv

    There is already a separate systemd-inhibit command that does exactly what you need. Trust your users, they are capable of googling it (most of the time).

    Only pacman and wget will benefit from suspend inhibition, because it will prevent breaking network connections. cp and mv will resume working just fine even when you hibernated your laptop while cp was executing. And in that case it’s less bug-prone to scan your system for active TCP connections to external addresses instead of adding a hack wakelock inside your terminal or inside wget.

    It is also a poor idea to mess up with system-wide settings from some command when the user does not expect it, you’ll likely to get a thousand invalid bug reports that sleep mode is broken when some service randomly decides to use wget to continuously read from local Unix socket.






  • Linux desktop on Android have been attempted many times with variable success, and it goes way beyond command line, see UserLAnd

    It brings all Linux desktop apps to your phone, and all you need is Bluetooth mouse.

    Do you need to edit an audio file? Try looking on Play Store, every audio editor has ads and subscription and offers only cropping and equalizer. But what if you need cross-fade? Open your Linux VM - bam! Audacity! All the audio editing tools you can ever need, and ten times more that you’ll never use!

    Do you need to make a meme? Go download some shitty meme maker from Play Store, that will only let you add text to ten preset images. Or get a photo editor that has twenty sepia effects but won’t let you combine two images. But a simple sudo apt-get install gimp command in your Linux VM, and you get a pixel-perfect image editor with transparency support, layer support, and a thousand brushes, and you can even plug a graphics tablet into your Android tablet and have stylus pressure making brush strokes of different width, or just use an Android tablet with stylus support, the pressure works there too.

    Do you want some more esoteric thing like sqlite3 database viewer? Well, Linux VM is your only choice.

    It becomes even more important if you want to buy a cheap Android tablet and ise it as a kiosk for some business. Run the backend server on your Linux VM, run the frontend in the Android web browser, and you don’t need to buy an expensive POS terminal.




  • Anyway, having direct unprivileged R/W access to platform memory is indeed a security hole, no matter the vendor.

    It is not. ESP32 is an embedded chip with less than one megabyte of RAM. It cannot run apps or load websites with any malicious code, it only runs the firmware that you flash on it, nothing else, and of course your firmware has full access to every chip feature. If your firmware has a security hole, it’s not the chip’s fault.




  • Tech companies spend effort on a FOSS project when either it’s their main product, or when they have no choice, it’s licensed under GPL and there are no BSD or Apache-licensed alternatives. Contributions are usually done by individual employees in their after-hours time, and most managers see it as directly benefitting their competition.




  • It’s ultimately a question of money. Older guys with software engineering degrees and fancy salaries can spend their weekends doing free community service in the form of open-source development. Younger people have to worry about job and rent and bills, they simply don’t have that kind of free time.

    Add to that the growing complexity of the software. Something that could be done by an university student before, like writing an OS from scratch, won’t be nearly as useful as it would in the '90-s, because it was already done before, now you have multiple OSes to choose from. And joining an existing software project is hit-or-miss, some are inclusive and some are an old boy club where you need to know the secret rules.






  • Jumping from loose-typed language to strict-typed language will be hard.

    It’s also a matter of your general programming experience. Once you write, like, ten thousand lines of meaningful code in Python, learning C# should take you a month or two at most, you’ll know most programming concepts and algorithms intrinsically, and the rest is just learning syntax.