Programming Leftovers
-
How to Use Chrono in C++?
The chrono is a built-in C++ library that allows users to easily manage date and time. For more details about its use in C++, follow this guide.
-
How to Use PHP serialize() Function
serialize() function can serialize an array, object, or complex data structure into a string that can be stored in a database and passed to another PHP script.
-
How to Use array_reverse() Function in PHP
The array_reverse() can reverse the order of the elements in an array. It takes an array as its input and returns an array with elements ordered and reversed.
-
19 Free Open Source Flutter Projects and Samples
Flutter is a free and open-source UI development kit that enables developers to create iOS/Android mobile and desktop apps for macOS, Linux, and Windows using a single codebase.
-
How to Use SQLite Viewer Web App
SQLite Viewer Web App provides excellent features for viewing the SQLite databases online on the browser. Read this guide to learn the steps for using this tool.
-
Introduction to Golang Programming Language
Golang is an open-source programming language developed by Google. Follow this article to learn in detail about this programming language.
-
How to Create an Empty Data Frame R
Tutorial on the various approaches to create an empty DataFrame using the data.frame() function with specified columns in R along with practical examples.
-
Vectorized trimming of line comments
A French graduate student reached out by email yesterday with the following problem. Consider a format such as TOML which has line comments: when a ‘#’ character is encountered, the rest of the line is omitted. Let us look at an example: [...]
-
Characterizing Tech Debt
These notes focus on accurately describing what tech debt is, moreso than tactics for handling it.
-
Compiler output files
For a GCC or Clang command, there is typically one primary output file, specified by -o or the default (a.out or a.exe). There can also be temporary files and auxiliary files.
-
simulated annealing and logistic regression to the max
A Riddler puzzle on the three binary and sequential questions one should ask three players hiding their respective U(0,1) realisation, U, V, and W, to best guess which player holds the largest number, max{U,V,W}. [...]
-
urllib3 v2.0.0 is now generally available
It's my honor to present the next major release of urllib3. This major release has been in progress since 2020 and will be the foundation of future improvements to the package. Everyone on our team of contributors is excited to finally share what we've accomplished with you all.
-
How to Copy a Table from One Database to Another in PostgreSQL
Tutorial on the step-by-step process on how to copy tables from one database to another in PostgreSQL using the pg_dump command along with practical examples.
-
Tomeu Vizoso: A long overdue update
Cannot believe it has been years since my last update here!
There are two things that I would like to tell people about: [...]
-
18 Best NodeJS Frameworks for App Development in 2023
Node.js is used to build fast, highly scalable network applications based on an event-driven non-blocking input/output model, and single-threaded asynchronous programming.
-
Bálint Réczey: Improve build time of Rust, Java and Intel Fortran projects with Firebuild’s new release!
Firebuild’s latest release incorporated more than 100 changes just from the last two months. They unlocked acceleration of Rust builds with Cargo, fixed Firebuild to work with the latest Java update that slightly changed its behavior, started accelerating Intel’s Fortran compiler in addition to accelerating
gfortran
that was already supported and included many smaller changes improving the acceleration of other compilers and tools. If your favorite toolchain is not mentioned, there is still a good chance that it is already supported. Give Firebuild a try and tell us about your experience! -
The Rust Programming Language Blog: Announcing Rustup 1.26.0
The rustup working group is happy to announce the release of rustup version 1.26.0. Rustup is the recommended tool to install Rust, a programming language that is empowering everyone to build reliable and efficient software.
-
How to Extract Substrings Using ${} in Bash Scripts
Bash (Bourne Again SHell) is a popular shell scripting language, especially in the Linux and Unix world. One of the most common tasks in shell scripting is manipulating strings, including extracting substrings from a given string.
-
A Comprehensive Guide to Exiting on Errors in Bash Scripts
Bash scripts are an essential tool for system administrators, programmers, and even regular users who want to automate repetitive tasks.
-
Mastering Bash Exit Codes: A Comprehensive Guide to Error Handling and Script Success
When working with Bash scripts, it's essential to understand exit codes and how they can improve the way you handle errors and script success. Exit codes are integer values returned by a program or script to indicate the outcome of its execution.
-
CircuitPython 8.1.0 Beta 2 Released! @circuitpython
Firmware downloads are available from the downloads page on circuitpython.org. The site makes it easy to select the correct file and language for your board.
-
Managing Dependencies Using Poetry in Python
Python is a versatile language used for various applications. However, managing dependencies, the packages a project relies on can be a complex and time-consuming task. With the growth of the Python ecosystem, developers need to manage a large number of packages and dependencies and ensure that they are compatible with each other.
Poetry provides a solution to these challenges. Poetry is a package manager for Python that allows developers to manage dependencies, create virtual environments, and package their projects for distribution, all using a single command-line tool.
-
Seaborn Axis Labels
The “axes.set()” function, Matplotlib library functions, or the “set_xlabel()” and “set_ylabel()” functions can be used to set the axes of the plot.
-
Python OS Mkdir
The “os.mkdir()” method of the “os” module is used to create a single directory, multiple directories, and nested directories in Python.
-
Python Not All Arguments Converted During String Formatting
This error can be fixed by correcting the syntax of the % operator, using the format() function instead of the % operator, and converting the str into an int.
-
Pandas Read_csv Multiprocessing
To improve the data loading speed, including its benefits and limitations the “pd.read_csv()” function is used with the multiprocessing module.
-
Python chmod
The “os.chmod()” function of the os module is used to change the ownership of the Python file by accepting the path and mode as an argument.
-
Matplotlib 2d histogram
In Python, the “plt.hist2d()” function of the “pyplot” module in the “matplotlib” library is used to plot a 2D histogram in Python.
-
Convert a String to JSON Python
The JSON module functions, the “ast” module function, or the “eval()” function is used to convert a string to JSON in Python.
-
Seaborn Tsplot
In Python, the “seaborn.lineplot()” method is used to plot multiple lines in a single plot, customize the lines and markers, add title and axis labels, etc.