Programming Leftovers
-
Nlnet Grant Application for Domain – First Update: Questions and Answers
This is the first update to our NLnet Grant Application for Domain.
-
Fibonacci Numbers in Python Language
Fibonacci numbers are a particular sequence where the first value is pre-declared as 0 and the second value is pre-declared as 1. The rest of the numbers are produced from these two by adding the previous two numbers. All Fibonacci numbers are positive integers, beginning from 0.
-
ICYMI Python on Microcontrollers Newsletter: Retrofitting old computers, Pinguin and much more! #CircuitPython #ICYMI @micropython @Raspberry_Pi
In about a month, there will be a new yearly release of Python: version 3.11. The main feature for this version is a significant increase in speed. People are testing the new version and their results are stunning. Extrapolating keeping at this pace, Python 3.14 will be faster than C++. To be exact, the loop time will be -0.232 seconds, so it will be done just before you want to do the calculation – Towards Data Science.
-
Rounding in Python
In software engineering, there are two principles that often come into conflict. The first one is the principal of least surprise. The second one is doing the right thing. These come into conflict when the usual thing that people do is in fact the wrong thing. A particular example of this is the behavior of rounding.
In school we were taught that rounding is always done in one particular way. When you round a number it goes toward the nearest hole number, but if it ends in 5, than it goes toward the higher one. For example, 1.3 rounds to 1, and 1.7 rounds to 2. And we were taught that 1.5 rounds to 2, and 2.5 goes to 3.
Because this is the way that we were taught rounding works, it can be quite surprising when rounding works differently. In fact, there are a number of different ways to round numbers. The Wikipedia article on rounding gives no fewer than 14 different methods of rounding. Fortunately, with computers, we expect fewer: The IEEE 754 standard for floating point numbers defines five rounding rules.
-
The Trouble with Checked Exceptions: Part 2
Java’s Checked Exceptions are problematic, and it’s not due to their ergonomics, but rather because they are in conflict with abstraction and OOP. Also, few people care about typed exceptions (unless they are happy path results, not errors).
-
This Week In Rust: This Week in Rust 462
-
How to Make a Multiline Equation in LaTeX
Sometimes, we need to break some long equations in a document into multiple lines to make it easy to understand. In lengthy derivations, breaking the equations is essential to explain everything step by step.
That’s why LaTeX also provides some ways to break the equations. Still, many new users don’t know how to create multiline equations. In this tutorial, we will give you a complete information on how to write the multiline equations in LaTeX.
-
How to Underline a Text in LaTeX
Underlining a text is not limited to only showing a website hyperlink. We underline a text to make the reader notice some specific words in a document. Underlined text attracts the reader’s attention to it. If you write any technical paper, underlining a text can highlight it for the readers.
That’s why LaTeX provides a simple way to highlight the text. However, many users don’t know the ways to underline a text. If you want to learn the approach to underlining a text, read this tutorial thoroughly.
-
How to Use a Box Text in LaTeX
A text box can be useful when you want to move a text around in the document. It can emphasise the specific text on a research paper. We can use the \makebox to create a boxed text on a page in LaTeX.
However, many LaTeX users are still unaware of the ways to add a boxed text in the technical document. If you don’t know how to do it, read this tutorial thoroughly. We will explain the various ways to add and use a boxed text in LaTeX.
-
How to Write and Use a Floor Symbol in LaTeX
Mathematically, the floor function is denoted by the floor ⌊x⌋ symbol and the floor (x). The shape of the floor symbol looks like a square bracket ⌊x⌋ with no tops. From programming to mathematics, the floor symbol plays a vital role in showing a specific function.
Many users add the floor function while creating the technical document in any document processor. However, a floor function requires the correct use of the source code to create it. If you want to learn how to write and use a floor symbol in LaTeX, this tutorial is for you. Let’s get started!
-
Break Statement in C
“To remove the program control from the loop, we utilize the C language term “break.”The loop’s iterations cease as immediately after the break statement is detected inside the loop, and control is instantly handed onto the first statement following the break.
In this tutorial, we will practically implement the break statement to execute various example codes in C.”
-
How to Declare Variables in C
“A variable is simply a name that is assigned to a storage space so it will be easy for users to access or read in the program. The size, layout of a variable’s memory, and the range of values or set of different operations that can be implemented on the variable are all recognized by the type of variable, and each variable is unique in C programming language. It is understandable that the variable declared in a program can be edited anywhere in the code. You can assign the variable names as any number, letter, or character. Because C is a case-sensitive language, so the uppercase and lowercase characters are separate.
C programming language allows us to define various data types such as Integer, float, char, string, etc., which we will learn with various examples.”
-
Talking Trojan: Analyzing an Industry-Wide Disclosure
Talking Trojan: Analyzing an Industry-Wide Disclosure tells the story of what happened after we discovered the Trojan Source vulnerability, which broke almost all computer languages, and the Bad Characters vulnerability, which broke almost all large NLP tools. This provided a unique opportunity to measure software maintenance in action. Who patched quickly, reluctantly, or not at all? Who paid bug bounties, and who dodged liability? What parts of the disclosure ecosystem work well, which are limping along, and which are broken?