Programming Leftovers

-
Custom machine stand ‘lets you know’ if drill bits aren’t stored properly
YouTuber Cranktown City recently acquired a new milling machine/drill press, and needed somewhere sturdy to place it. Rather than buying something, he went to work making a nice custom stand with a drawer on top and space for a toolbox below that.
To help keep things organized, this top drawer features a 3D-printed drill index with an interesting trick. In addition to providing storage for the drill bits, it “encourages” you to put them back. Each drill cavity has a small switch, all of which are daisy-chained together. The switch signal is fed to an Arduino Nano, which reads high when all drills are present, and low if one or more is missing. If one is missing for too long, it triggers a sound module that insults him into proper organization, and lights up a strip of LEDs as an extra reminder.
-
Why I Chose Passion Over Money and Declined a Huge Job Offer
I recently switched jobs. And during my long journey of finding a new one, I was offered way more money than I had anticipated for a role that I was not as passionate about.
I wish I could say that it was an easy no for me. But it was not. I wanted to say no. But instead, I kept asking myself, “Am I really going to do this?”
I even talked to quite a few close friends about my decision. And everybody, including my parents, told me that I was insane to decline that big offer. But I did it anyway. I ended up choosing passion over money.
-
GO Programming – DNS Server – Blocker/Forwarder
I haven’t posted much GO related code on this blog before as I am more of a fan of C, Python, Java/JS, etc. I initially found its syntax to be a bit harder to read due to the variable typing being placed after the variable name. It can make it harder to track and understand if the variable you’re looking at is a: mutable or immutable, pointer or constant, array or singular, referenced or dereferenced, local or global, etc.
It does combine a lot of power that you would typically find in a more structured language (like Java) along with being flexibile and relaxed (like Python).
-
Big O Notation Examples – Time Complexity and Algorithm Efficiency Explained
Time complexity analysis helps us determine how much more time our algorithm needs to solve a bigger problem.
In this article, I will explain what Big O notation means in time complexity analysis. We'll look at three different algorithms for checking if a number is prime, and we'll use Big O notation to analyze the time complexity of these algorithms.
-
Colin King: A C for-loop Gotcha
The C infinite for-loop gotcha is one of the less frequent issues I find with static analysis, but I feel it is worth documenting because it is obscure but easy to do.
-
A DevOps guide to documentation | Opensource.com
DevOps is challenging technical documentation norms like at no other time in IT history. From automation to increased delivery velocity to dismantling the waterfall software development lifecycle model, these all spell the need for making dramatic changes to business and the philosophy of technical documentation.
Here are some ways DevOps is influencing technical documentation.
-
Tend your Git garden with Git Bonsai
If you are like me, your git repository checkouts have a tendency to accumulate lots of branches over time.
Git Bonsai is a command line tool to help you clean this bush.
-
Creating Advanced HMIs & User Experiences for NXP i.MX RT1170
For some time now, the challenges of developing advanced human machine interfaces (HMIs) for embedded platforms has centered around translating the design vision to code, and then deploying that code to hardware platforms that meet the cost sensitivities of the market. The trend on user preferences around HMI, spanning across all industries, is tied to the benchmark most of us carry right in our pocket daily – the smartphone. When a user is met with a screen, it is an almost automatic expectation that the experience be the same as on their smartphone, regardless of what is under the hood. This can be an extreme challenge for cost sensitive markets where the budget for differentiation is low. Consumer markets are showing increased interest in advanced user interface technologies that can be effective at putting yourself ahead of the competition. Regardless of your market’s cost sensitivity, a premium user experience should not require a higher complexity and cost in your Bill of Materials (BOM). NXP™ Semiconductor’s recent release of the i.MX RT1170 crossover microcontroller (MCU) ushers in the era of GHz performance, and when paired with the complete software technology, enables an exceptional user experience at a cost suited to markets across many industries.
-
Qt Design Studio 2.1 Beta2 released
Qt Design Studio is a UI design and development tool that enables designers and developers to rapidly prototype and create beautiful experiences. Both designers and developers use Qt Design Studio and this makes collaboration between the two a lot simpler and more streamlined.
To get an overview, you should watch this video.
Please have a look at the Beta blog post a for a summary of what is new and improved in Qt Design Studio 2.1. For detailed information about Qt Design Studio, visit the online documentation page.
-
Thomas Fitzsimmons: Quickly Start a Common Lisp Script
So you want to write a utility script, and you want to write it in Common Lisp. I created a template Common Lisp script called start.lisp. It’s meant to be renamed and hacked up but it provides a starting point for a new Common Lisp script, with some utility libraries included.
-
Advanced Mach Try
Following up last week’s post on some mach try fundamentals, I figured it would be worth posting some actual concrete tips and tricks. So without further ado, here are some things you can do with ./mach try you may not have known about in rapid fire format.
-
How to Model an Epidemic with R
Epidemiology has never been more topical. It is the scientific study of how health and disease affects populations, including infectious diseases such as COVID-19.
Key to understanding the spread of such diseases is the practice of epidemic modeling. This involves building quantitative models to describe and forecast the spread of disease.
The classical approach to epidemic modeling is to use a type of mathematical model known as a "compartmental model".
-
Python For Loop - For i in Range Example
As discussed in Python's documentation, for loops work slightly differently than they do in languages such as JavaScript or C.
A for loop sets the iterator variable to each value in a provided list, array, or string and repeats the code in the body of the for loop for each value of the iterator variable.
In the example below, we use a for loop to print every number in our array.
-
Access Python package index JSON APIs with requests
PyPI, the Python package index, provides a JSON API for information about its packages. This is essentially a machine-readable source of the same kind of data you can access while browsing the website. For example, as a human, I can head to the NumPy project page in my browser, click around, and see which versions there are, what files are available, and things like release dates and which Python versions are supported...
-

- Login or register to post comments
Printer-friendly version- 2710 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago