Programming Leftovers
-
Mediocregopher ☛ How Much Faster is Passing-by-Pointer in Go?
In every Go project of significant size there comes a point where someone, in the name of performance, goes around the codebase changing functions to accept and return structs as pointers rather than values.
-
Rlang ☛ Create and Interpret a Interactive Volcano Plot in R | What & How
Creating a volcano plot in R is essential for any researcher working with bioinformatics and RNA-Seq data. It allows you to easily identify which genes are upregulated or downregulated with significant changes between conditions. Imagine visualizing hundreds of genes on a simple, elegant plot and instantly spot those that stand out due to their statistical significance. That's the power of a volcano plot.
-
Rlang ☛ How to Keep Certain Columns in Base R with subset(): A Complete Guide
Data manipulation is a cornerstone of R programming, and selecting specific columns from data frames is one of the most common tasks analysts face. While modern tidyverse packages offer elegant solutions, Base R’s subset() function remains a powerful and efficient tool that every R programmer should master.
This comprehensive guide will walk you through everything you need to know about using subset() to manage columns in your data frames, from basic operations to advanced techniques.
-
Rlang ☛ Understanding Logical Operators in C Programming
Logical operators are fundamental building blocks in C programming that allow us to make decisions and control program flow based on multiple conditions. These operators work with Boolean values (true/false) and are essential for creating complex decision-making structures in your programs.
-
Functional Software Stockholm AB ☛ Why Do We Like Functional Programming?
If something is easier, people tend to do it more often. Functional programming makes it easy to encode domain rules in the type system, so programmers are nudged to do it more. In the end, this creates software that is more correct, easier to maintain and more fun to write.
-
[Old] Alan G Labouseur ☛ A History of Erlang [PDF]
Erlang was designed for writing concurrent programs that “run forever.” Erlang uses concurrent processes to structure the program. These processes have no shared memory and communicate by asynchronous message passing. Erlang processes are lightweight and belong to the language, not the operating system. Erlang has mechanisms to allow programs to change code “on the fly” so that programs can evolve and change as they run. These mechanisms simplify the construction of software for implementing non-stop systems.
This paper describes the history of Erlang. Material for the paper comes from a number of different sources. These include personal recollections, discussions with colleagues, old newspaper articles and scanned copies of Erlang manuals, photos and computer listings and articles posted to Usenet mailing lists
-
Peter Czanik: The syslog-ng Insider 2024-11: testing; Quickwit; MacPorts
Dear syslog-ng users,
This is the 125th issue of syslog-ng Insider, a monthly newsletter that brings you syslog-ng-related news.
-
Peter 'CzP' Czanik ☛ The syslog-ng Insider 2024-11: testing; Quickwit; MacPorts
-
Josef Strzibny: Show all running apps on the server with Kamal
Kamal 2 can deploy multiple apps on a single server so it’s easy to lose track of what’s deployed. This alias will fix it.
-
Josef Strzibny: Subclassing STI models in Rails
Here' a short tip on opting out a specific model from Single Table Inheritance (STI).
Imagine a
Vehicle
model which is implemented using STI and extented with atype
parameter toSedan
andWagon
models: [...] -
Python
-
TecMint ☛ 20 Simple Python Scripts That Will Automate Your Daily Tasks
Python, with its simple syntax and powerful libraries, is one of the best programming languages for creating automation scripts. Whether you’re a programmer or someone looking to make daily tasks easier, Python has tools that can help you.
-
ID Root ☛ How To Text Wrapping using Python Libraries
Text wrapping is a crucial aspect of programming that enhances the readability of text output in applications. Whether you’re developing a command-line interface (CLI) tool, generating reports, or formatting logs, effective text wrapping ensures that your text is presented clearly and concisely.
-
ID Root ☛ How To Convert RGB to Hex using Python
In the world of digital design and web development, color representation is paramount. Two of the most common color models are RGB (Red, Green, Blue) and Hexadecimal (Hex). Understanding how to convert between these two formats is essential for developers and designers alike.
-
Trail of Bits ☛ Attestations: A new generation of signatures on PyPI
For the past year, we’ve worked with the Python Package Index (PyPI) on a new security feature for the Python ecosystem: index-hosted digital attestations, as specified in PEP 740.
These attestations improve on traditional PGP signatures (which have been disabled on PyPI) by providing key usability, index verifiability, cryptographic strength, and provenance properties that bring us one step closer to holistic, cryptographically verifiable provenance for our software supply chains.
-
LWN ☛ PyPI now supports digital attestations
The Python Package Index (PyPI) has announced that it has finalized support for PEP 740 ("Index support for digital attestations"). Trail of Bits, which performed much of the development work for the implementation, has an in-depth blog post about the work and its adoption, as well as what is left undone: [...]
-
Seth Michael Larson ☛ Early promising results with SBOMs and Python packages
I've kicked off a project to reduce the "phantom dependency" problem for Python. The phantom dependency problem is where distinct software (sometimes written in Python, but often C, C++, Rust, etc) is included in a Python package but then isn't recorded anywhere in the package metadata.
These distinct pieces of software aren't not recorded because of lack of time or awareness, there is no standardized method to record this information in Python package metadata.
-
-
Java
-
Geeks For Geeks ☛ What is DVM(Dalvik Virtual Machine)?
Dalvik Virtual Machine Register Based VM The language is designed by Dan Bornstein, some cool features and nature of Apple Swift iOS Programming Language he gave it a try with the initial compiler implementations examples contributed from other Google engineers at its Android mobile phone platform. The Dalvik virtual machine was named in that way after Bornstein, a resident of the nearby village “Dalvík”, born on ”Eyjafjörður”.
-
-
Rust
-
Rust Weekly Updates ☛ This Week In Rust: This Week in Rust 573
Hello and welcome to another issue of This Week in Rust!
-