Programming Leftovers
-
2023-03-23Internal includes instead of global ones - EasyHack
In every C/C++ source code file, we use header files to put declarations of functions, data types, class, macro and other relevant things inside it. These files have the extension of .h (for C) and .hxx (for C++).
We have different header types: internal and global includes. Some of the header files are used in many places. For example, in LibreOffice we have several modules, and some modules are used in many places. Here, we focus on the VCL module. For the global includes, they are placed inside include/ folder, and for internal headers of VCL module, the include files are put inside include/vcl/.
-
2023-03-18Python and SLSA
-
Create a ChatBot in Mattermost with Python
ChatOps is a collaboration model that connects people, processes, tools, and automation into a transparent workflow. Mattermost is an open source, self-hosted messaging platform that enables organizations to communicate securely, effectively, and efficiently. It's a great open source alternative to Slack, Discord, and other proprietary messaging platforms. This article outlines the steps to create a ChatOps bot on Mattermost, including the necessary code examples and explanations.
Prerequisites
Before starting, ensure that you have access to a Mattermost server, have Python installed, and have installed the Mattermost Python driver using pip.
-
2023-03-23The Rust Programming Language Blog: Announcing Rust 1.68.1
-
Open-Source Model 'Dolly' Claims to be a Cheaper Alternative to ChatGPT [Ed: Chatbots are not news. Pointless, worthless hype intended to help Microsoft distract from mass layoffs. Why does the corporate media celebrate Microsoft wasting a lot of electricity for something people don't want or use? How much has Microsoft paid so far for all those mindless puff pieces?]
An affordable alternative to ChatGPT? And, open-source? Looks like we're joining the open-source race against ChatGPT.