-- Leo's gemini proxy

-- Connecting to gemini.tuxmachines.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

Tux Machines


Programming Leftovers


Posted by Roy Schestowitz on Mar 06, 2023


Hardware: Raspberry Pi, Arduino, and x86 SBC

LibreELEC 11 Launches with Kodi 20, Support for NVIDIA GPUs



Reverse-engineering the electronics in the Globus analog navigational computer


↺ Reverse-engineering the electronics in the Globus analog navigational computer


> In the Soyuz space missions, cosmonauts tracked their position above the Earth with a remarkable electromechanical device with a rotating globe. This navigation instrument was an analog computer that used an elaborate system of gears, cams, and differentials to compute the spacecraft's position. Officially, the unit was called a "space navigation indicator" with the Russian acronym ИНК (INK),1 but I'll use the nickname "Globus".



Getcwd() Function in C Language


↺ Getcwd() Function in C Language


> Practical tutorial on how to use the getcwd() function to determine the current working directory of the calling program in C langugage and their errors.



Gethostbyname() Function in C Language


↺ Gethostbyname() Function in C Language


> Comprehensive guide on how to use the gethostbyname() function in C language to get an information about a hostname and how a “hostent” structure is composed.



Open() Function in C Language


↺ Open() Function in C Language


> Tutorial on how to use the open() function to open the files, its theoretical description and input arguments, and the data type that is used in each case.



Advanced MongoDB Features with PyMongo


↺ Advanced MongoDB Features with PyMongo


> In this tutorial, you will learn about schema validation, data modeling, and advanced MongoDB queries.



Python Create File If Not Exists


↺ Python Create File If Not Exists


> To create a file after checking its non-existence in Python, use the open() method with the “w+” flag or use the pathlib module.



How the first chatbot predicted the dangers of AI more than 50 years ago


↺ How the first chatbot predicted the dangers of AI more than 50 years ago


> In 1966, MIT computer scientist Joseph Weizenbaum released ELIZA (named after the fictional Eliza Doolittle from George Bernard Shaw’s 1913 play Pygmalion), the first program that allowed some kind of plausible conversation between humans and machines. The process was simple: Modeled after the Rogerian style of psychotherapy, ELIZA would rephrase whatever speech input it was given in the form of a question. If you told it a conversation with your friend left you angry, it might ask, “Why do you feel angry?”


> Ironically, though Weizenbaum had designed ELIZA to demonstrate how superficial the state of human-to-machine conversation was, it had the opposite effect. People were entranced, engaging in long, deep, and private conversations with a program that was only capable of reflecting users’ words back to them. Weizenbaum was so disturbed by the public response that he spent the rest of his life warning against the perils of letting computers — and, by extension, the field of AI he helped launch — play too large a role in society.



Artificial neurons considered harmful


↺ Artificial neurons considered harmful


> So-called “neural networks” are extremely expensive, poorly understood, unfixably unreliable, deceptive, data hungry, and inherently limited in capabilities.


> In short: they are bad.



Adventures in home automation - Home Assistant on a Raspberry Pi 2


↺ Adventures in home automation - Home Assistant on a Raspberry Pi 2


> They say that The Best Camera Is The One That's With You - the same is true of Raspberries Pi. As much as I'd love a 4B, they seem permanently sold out.


> So I dug through my scrapheap of old tech and resurrected an ancient Pi2. It's old, outdated, slow, with limited RAM, and has a bunch of much-abused GPIO pins. But it works and - crucially - is still supported by Home Assistant OS.


> Well... ish!



An unexciting idea: Code changes have context


↺ An unexciting idea: Code changes have context


> I recently read Mark Dominus's I wish people would stop insisting that Git branches are nothing but refs (via). One of my thoughts afterward is that this feels like an instance of a broader thing, which is that (code) changes have context; here, one part of that context is where they happen (ie, what branch they happen on). Of course we already know that in a sense, because Git (and pretty much every other version control system) considers it important to record both who made the change and when it was made.



The code functionality tipping point


↺ The code functionality tipping point


> Software development is weirdly nonlinear. When you start working on a new project at first it does not really do much. Adding more and more code does not seem to help. The "end user visible" functionality is pretty poor and it does not seem to get visibly better. You can do something, but nothing that would be actually useful.


> This goes on for some amount of time that can't be predicted.


> And then, unexpectedly, the pieces come together and useful functionality jumps from "almost nothing" to "quite a lot, actually".



Be Careful Using tmux and Environment Variables


↺ Be Careful Using tmux and Environment Variables


> What this says is that the global environment is copied over when the server is started. Each session also has an environment that is merged with the original global environment but it only has a set list of environment variables that are updated. You can see this with the following command in a tmux session: [...]



How to calculate division and remainder in Bash


↺ How to calculate division and remainder in Bash


> Bash is a powerful command-line interface and scripting language that offers a wide range of mathematical operations, including division and remainder. Division and remainder are fundamental operations used in various programming and mathematical applications. This article will discuss how to perform division and remainder operations in Bash and their usage.



Disabling the DebugLoggerUI service app in Android


↺ Disabling the DebugLoggerUI service app in Android


> The following notification appeared every time I switched on my Blackview Tab 10 tablet (Android 11): DebugLoggerUI DebugLoggerUI service is running I cannot remember if this notification started appearing after I upgraded the tablet's firmware last year to remove a bug in the original firmware...




gemini.tuxmachines.org

-- Response ended

-- Page fetched on Fri Jun 14 00:58:30 2024