Programming Leftovers
-
Where is php.ini? Find the Correct PHP Configuration File
The php.ini file is a configuration file used by PHP to specify settings for your web server, such as file upload size, error reporting, and memory usage. However, the location of the php.ini file can vary depending on your server setup and operating system. In this tutorial, we will explore a few methods to help [...]
-
git status Side Effects
There is a way to prevent this, by running git status --no-optional-locks (https://git-scm.com/docs/git#Documentation/git.txt---no-optional-locks) or by setting GIT_OPTIONAL_LOCKS to 0, as writing the updated index is just an optimization and git knows it can be avoided.
I don’t think there are many chances to actually stumble on this in the real life, but I’m writing this down so that if I ever do I have an easy way to remember what happened and find the solution.
-
Deploy MongoDB in a Container, Access It Outside the Cluster - The New Stack
How to a deploy a containerized version of MongoDB and connect to it from a machine or service outside of the hosting server.
-
Peter Czanik: The syslog-ng Insider 2023-02: 4.0; Azure; 101; FreeBSD;
After almost 14 years, a new major version of syslog-ng is available. Type support for name-value pairs is now available and Python support received major improvements.
-
Certified Qt Safe Renderer 2.0 is released
We are happy to announce that our latest Qt Safe Renderer (QSR) 2.0 is certified and available as of today, addressing the need to build UI applications with Functional Safety in mind.
-
Adorable model trolley livens up a garden
Model railroading is a popular hobby going back more than a century, but which has remained largely unchanged for many decades now. The typical model railroad uses an electric locomotive with a motor powered through the rails by DC current, with the polarity of the power supply determining direction and voltage determining speed.
-
Instantly understand 40+ languages, with Speech Recognition Engine
Voice commands are a contactless, hands-free, natural way to interact with devices, equipment, and machines of all kinds: no wonder they are increasingly popular! With speech recognition technology advancing faster than you can say “users expect it,” developers often need to find ways to integrate it in their new projects. This, however, requires them to take the time to train a smart device to listen for wake-up words, understand commands… and potentially start over for every new voice or language.
To cut through all the hassle and help you integrate speech recognition in the easiest and fastest way, Arduino Pro has released Speech Recognition Engine: a powerful, ready-to-use and extensive software library born out of the collaboration with worldwide leader in the field, Cyberon.
-
AI Search Is a Disaster
The trouble arises when we treat chatbots not just as search bots, but as having something like a brain—when companies and users trust programs like ChatGPT to analyze their finances, plan travel and meals, or provide even basic information. Instead of forcing users to read other internet pages, Microsoft and Google have proposed a future where search engines use AI to synthesize information and package it into basic prose, like silicon oracles. But fully realizing that vision might be a distant goal, and the road to it is winding and clouded: The programs currently driving this change, known as “large language models,” are decent at generating simple sentences but pretty awful at everything else.
-
I Think AI Would Kill my Wife
Turns out the Bing AI is bizarre and that is making quite the waves at the moment. In essence, the Bing version of ChatGPT has the capability of performing internet searches and as a result will feed some extra data into itself. Then it uses this to conjure up answers with hilarious results, particularly if its internal learned state does not line up with the results. Among other things this has lead to the bot gaslighting its users into believing that they are in the wrong calendar year. I think there is something quite a bit deeper being uncovered by these AI stories and it does worry me a bit.
-
mount-img asks read-only or read-write
If you click on a .img drive-image file, the partitions in the image get mounted read-only. If you do it from a terminal, you can pass the "rw" parameter to mount read-write. But clicking on the file in ROX-Filer does not offer that choice.
This came up in the forum, someone wanted to mount the partitions read-write. So, I have modified /usr/sbin/mount-img script to ask. Now, click on the file and this window pops up:
-
Writing Javascript without a build system
-
This Week in PSC (098)
-
Using Type::Params Effectively
-
How To Use Find with atime, ctime, mtime, amin, cmin, mmin
-
10+ Bash: If, Else If, Else Examples
-
Writing efficient for loops in Bash: Tips and Tricks
Bash is a popular shell scripting language that is commonly used in Linux and Unix-based operating systems. One of the most commonly used constructs in Bash is the for loop, which is used to iterate over a set of items and perform a particular action on each item.