Programming Leftovers
-
Game of Trees milestone
#gameoftrees has reached another milestone […] We now offer public anonymous access to our Git repository via SSH, using our own server implementation (available in the ports tree of #OpenBSD -current).
-
[Old] 2022: The Year of Prolog
In the summer of 1972, Alain Colmerauer and his team in Marseille developed and implemented the first version of the logic programming language Prolog. Together with both earlier and later collaborations with Robert Kowalski and his colleagues in Edinburgh, this work laid the practical and theoretical foundations for the Prolog and logic programming of today. Prolog and its related technologies soon became key tools of symbolic programming and Artificial Intelligence.
-
Who needs main() anyway?
Instead, tonight, I present a far simpler version. Usual disclaimers apply: may summon Ancient Ones who will haunt your soul. Probably won't work on all systems or compilers. It didn't work for me until I gave it -O2, and even then, it still gives a magnificent segfault.
-
Promises, Thenables, - Lazy-evaluation: What, Why, How
It’s the start of a new year, and while lots of folks are promising to be more active, I’m going to show you how to make Promises to be more lazy…JavaScript Promises, that is.
-
Some R Conferences for 2023
-
Join us for our Arm Tech Talk!
Arm is hosting a Tech Talk on January 24th with SparkFun and Silicon Labs. This Tech Talk will give you an overview of Matter's history, use cases, benefits and overall ecosystem.
-
How Do Online Criminals Acquire Sensitive Data
How Do Online Criminals Acquire Sensitive Data, Companies today gather and store vast amounts of user data.
A large portion of it is about private data that was previously solely retained by financial and medical institutions.
-
Designing Accessible Research with R/Shiny UI - Part 2 - R programming
As part of our Data for Good (D4G) initiative, we collaborated with the Institute of Dendrology of the Polish Academy of Sciences to build a Shiny application with an enhanced UI. This application – Future Forests – shows how different climate scenarios will affect European forests. It provides a sobering look into the future, where our forests and other ecosystems will face drastic changes.
-
Functional Classes in Clojure
To all the adherents of the Statically Typed Functional Programming religion: I know that you believe that Static Typing is an essential aspect of Functional Programming and that no mere dynamically typed language could ever begin to approach the heights and glory of The One True and Holy TYPED Functional Apotheotic Paradigm. But we lowly programmers quivering down here at the base of Orthanc can only hope to meekly subsist on the dregs that fall from on high.
[...]
My previous blog seemed only to continue the confusion regarding classes in Functional Programming. Indeed, many people got quite irate. So perhaps a bit of code will help.
Trigger Warning:
Object Oriented Terminology.
Dynamically Typed Language.
Mixed Metaphors.
Distracting Animations. -
Linear Interpolation in R-approx - Data Science Tutorials
Linear Interpolation in R, You will discover how to use the approx and approxfun interpolation functions in this R tutorial.
Two examples of how to use the approx and approxfun functions for interpolation are provided on this page.
-
How to Rename Files in R - finnstats
The examples that follow demonstrate each technique in action.
-
Top Reasons To Learn R in 2023 - Data Science Tutorials
Top Reasons To Learn R in 2023, R and Python are two of the best programming languages for beginners.
Both programming languages are quite user-friendly for beginners, but today we’ll concentrate on R.
R has amassed a sizable fan base over time, not just in the IT and data science communities, but also in the commercial world.
-
A GAM for time trends in a stepped-wedge trial with a binary outcome - ouR data generation
In a previous post, I described some ways one might go about analyzing data from a stepped-wedge, cluster-randomized trial using a generalized additive model (a GAM), focusing on continuous outcomes. I have spent the past few weeks developing a similar model for a binary outcome, and have started to explore model comparison and methods to evaluate goodness-of-fit. The following describes some of my thought process.
-
Test if two objects are nearly equal in R - finnstats
Test if two objects are nearly equal in R, Learn how to use them all.equal function to determine whether two items are nearly equal in this R programming tutorial.
-
Web scraping in R - Stats and R
Almost anyone is familiar with web pages (otherwise you would not be here), but what if we tell you that how you see a site is different from how Google or your browser does?
In fact, when you type any site address in your browser, your browser will download and render the page for you, but for rendering the page it needs some instructions.
-
gui_engine project put on-hold
Have been posting about the gui_engine GUI toolkit, for building statically-linked standalone executables that will run in the initramfs (initrd) and render to the Linux framebuffer.
-
The sockaddr_in Structure
Socket programming in the C language uses a variety of functions, many of them are used to resolve, convert, and determine the address of the server we want to connect to. Undoubtedly, the IP address is the most important information we need when we open a socket. And dealing with these addresses requires that we know the structures in which they are stored, the type of data of each of their members, etc.
-
Using Perl to prepare sequencing files to submit to NCBI's GEO | chrisarg [blogs.perl.org]
In the middle of a manuscript submission that requires sequencing data to be uploaded to NCBI's Gene Expression Omnibus. This is a fairly standardized and (painful!) process that requires one to assemble their sequencing data (a collection of hundreds or thousands of files in the FASTQ format), put them in a single (very large) folder, compress them, generate md5 hashes and then upload them to GEO's FTP site. There are a couple of tutorials available e.g. here and there that mostly cover the use case of one having assembled the files into a single fastq.
-
Some reasons to avoid Cython
If you need to speed up Python, Cython is a very useful tool. It lets you seamlessly merge Python syntax with calls into C or C++ code, making it easy to write high-performance extensions with rich Python interfaces.
That being said, Cython is not the best tool in all circumstances. So in this article I’ll go over some of the limitations and problems with Cython, and suggest some alternatives.
-
Introduction to the Context Managers and the with Keyword in Python?
The with keyword in python is used for exception handling when working with certain resources like files or database connections. These resources may need to have additional actions performed if an exception is raised.
For example, if there is an error reading from a file, we’d like to be certain the file gets closed before the program exits and raises the error. The with statement is not limited to files or database connections, it can also be used with locks, sockets, sub-processes, telnet, and other types of connections.
In this article, we’ll take a deeper look at the with keyword. We’ll look at how it works, when you should use it, and how you can create your own classes and functions that support with.
-
Python Is A STRANGE Language Boolean Tips - Invidious
Python is a strange language True and False are treated like numbers