Programming Leftovers
-
Xe's Blog ☛ Come join me on the DevRel team at Fly.io!
Hey all. Last year in November, I joined Fly.io to help create the Developer Relations (DevRel) team. I wasn't very loud about it at the time, but I'm excited to announce that I'm looking for people to join me on the team! If you're interested in helping developers build and deploy their apps, this might be the role for you.
-
Rlang ☛ Unraveling the term “Validation”: Join the Discussion at the R Validation Hub Community Meeting on February 20, 2024
Dive into the world of validation at the first R Validation Hub community meeting of the year! What defines a validated R package? Is it ensuring reproducibility across systems?
-
Rlang ☛ From Chaos to Clarity: Mastering Weekly Data Wrangling in R with strftime()
Grouping data by week is a common task in data analysis. It allows you to summarize and analyze your data on a weekly basis.
-
Rlang ☛ Be kind don’t rbind
The other day I was helping to refactor an R package and came across one of the biggest performance blockers there is: dynamically growing matrices. Of course I repeated the mantra “Always preallocate your variables” but in this case, it is not clear how big (in terms of rows) the final matrix will be. So there is no way around growing the matrix dynamically.
-
Old VCR ☛ CAP-X and COMP-X: how the Tandy Pocket Computers got a sucky Japanese assembler
I grew up primarily with the Commodore 64, where if you wanted to do anything really cool and useful, you had to do it in 6502 assembly language. Today I still write 6502 assembly, plus some Power ISA and even a little TMS9900. I like assembly languages and how in control of the CPU you feel writing in one. But you know what would make me not like an assembly language? One that was contrived and not actually the CPU it was running on. And you know what would make me like it even less? If it were kneecapped, convoluted and limited without even proper I/O facilities.
But this particular odd little assembler dialect had the bureaucratic weight of the Japanese government behind it, because in 1969 what was then the Ministry of International Trade and Industry (MITI, 通商産業省) developed a completely artificial processor architecture to help ensure everyone taking the Information Technology Engineer Examination (情報処理技術者試験) would do so on an even keel. No one would have been an expert in this architecture or how to program it because we just made it up, reasoned the Ministry, so therefore no one will have an unfair advantage on the test.
-
JWB ☛ .gitconfig and includeIf Statements
Over the day I was using different machines to work on some git files. One machine was running Ubuntu, the other one Windows. Since I started using GPG keys to sign my commits a few weeks ago, I wondered how I could streamline my config files. A dotfile repository seemed to be the answer.
-
Teleport ☛ Teleport Starts Issuing CVEs
Teleport is an open source company. We develop in the open, including full disclosure of security issues in our changelogs and pull requests. We share our penetration tests and key compliance reports. Despite this, our communication to open source users and integration with automated security tooling needed improvement. We needed a standardized way to refer to our vulnerabilities so that when two people (or systems) talk about a vulnerability, they know they’re talking about the same thing. Fortunately for us, the CVE Program has the answer: Common Vulnerabilities and Exposures (CVEs).
-
Rlang ☛ How to Get First or Last Day of Month in R with lubridate and base R
When working with dates in R, you’ll often need to find the first or last day of the current month or any given month. There are a couple easy ways to do this using the lubridate package and base R functions. In this post, I’ll show you how.
-
Scott Willsey ☛ Using Git Hooks for Displaying Last Modified Dates
Git hooks let you run a script when some git action occurs. One git related action that occurs all the time is the git commit. Git commit turns out to be a very good time to look at when files were last modified, since git’s entire job is paying attention to when and how files are modified. The git hook to use if you want it to happen when you perform a git commit is called pre-commit.
-
Logikal Solutions ☛ C++ — Never Do's
No, Never Do isn’t a new loop type though it can be what happens when you ASS-U-ME a default value for a loop variable. These are some things you should never do in your code. I’ve spent nearly 40 years in IT now. For the past decade I’ve been working in the medical device realm. Prior to that I wrote great big boring systems for great big companies. This be what you don’t do in C++ today.
-
Mozilla
-
Peteris Krumins ☛ What is a Sandboxed Firefox?
A sandboxed Firefox operates by creating a new virtual machine and a fresh Firefox profile prior to each browsing session, ensuring that each user gets a clean and isolated browsing environment. This setup guarantees that any session-specific data or potential threats are confined within the VM, which, along with the Firefox profile data, is completely deleted after the browser session ends. This process ensures a secure, ephemeral browsing experience by minimizing persistent threats and enhancing privacy.
-