Programming Leftovers

-
Introduction to Linux Bash programming: 5 `for` loop tips
Every sysadmin probably has some skill they've learned over the years that they can point at and say, "That changed my world." That skill, or that bit of information, or that technique just changed how I do things. For many of us, that thing is looping in Bash. There are other approaches to automation that are certainly more robust or scalable. Most of them do not compare to the simplicity and ready usability of the for loop, though.
If you want to automate the configuration of thousands of systems, you should probably use Ansible. However, if you're trying to rename a thousand files, or execute the same command several times, then the for loop is definitely the right tool for the job.
-
Special Bash Variables with examples
Bash is a great coding language, which allows you to do complex things like Big Data Manipulation, or simply create sever or desktop management scripts.
The entry level skill required to use the Bash language is quite low, and one-liner scripts (an often used jargon, which indicates multiple commands executed at the command line, forming a mini-script), as well as regular scripts, can grow in complexity (and how well written they are) as the Bash developer learns more.
-
Three.js Tutorial - How to Build a Simple Car with Texture in 3D
Putting together a 3D scene in the browser with Three.js is like playing with Legos. We put together some boxes, add lights, define a camera, and Three.js renders the 3D image.
In this tutorial, we're going to put together a minimalistic car from boxes and learn how to map texture onto it.
First, we'll set things up – we'll define the lights, the camera, and the renderer. Then we'll learn how to define geometries and materials to create 3D objects. And finally we are going to code textures with JavaScript and HTML Canvas.
-
JavaScript Number to String – How to Use toString to Convert an Int into a String
The toString() method is a built-in method of the JavaScript Number object that allows you to convert any number type value into its string type representation.
-
Qt Creator 4.14.2 released
We are happy to announce the release of Qt Creator 4.14.2 !
Aside from some minor bug fixes (see the change log), this release fixes performance issues with LLDB, and that some controls vanished from Welcome mode with macOS Dark Mode.
-
C++ Keywords You Should Know
C++ has various keywords, and you should know what they are and how to use them. So in this article, I will be talking about some of the most important keywords you'll find in the language.
-
How to Style and Theme an App With Jetpack Compose
In this article, we will learn how to style and theme an application in Jetpack Compose.
Compose is a new UI framework for Android (though Desktop and Web support is being developed), which replaces the old XML-based View system.
While still in beta release as of writing this article, I do not expect this particular part of the library to change drastically for the stable release.
-
A few notes on message passing
Message passing has always been central to Erlang, and while reasonably well-documented we’ve avoided going into too much detail to give us more freedom when implementing it. There’s nothing preventing us from describing it in a blog post though, so let’s have a closer look!
Erlang processes communicate with each other by sending each other signals (not to be confused with Unix signals). There are many different kinds and messages are just the most common. Practically everything involving more than one process uses signals internally: for example, the link/1 function is implemented by having the involved processes talk back and forth until they’ve agreed on a link.
-
Once the Big Tech Battler, Open Source Is Now Big Tech’s Battleground
Let’s first tackle the now, and then address the future (seems sensible, right?).
Last month, Google and Microsoft led a cadre of tech companies in creating the Rust Foundation. Obviously, this is neither the first nor largest contribution to an open-source project by private tech vendors. The Linux kernel has been flush with cash from the most dominant tech companies out there for many years.
Still, the creation of this new body marks another noteworthy instance in which proprietary software companies took the initiative to found and steward a nonprofit project. It’s not groundbreaking, but it doesn’t happen every day.
The key difference between the birth of the predecessor organizations that would merge into The Linux Foundation and that of the nascent Rust Foundation is context. In essence, Big Tech is comfortable with open source now.
Today, dozens of open-source projects, such as FreeBSD and Chromium, enjoy the Linux treatment, running on donations from tech companies valued in the billions; and when companies want a closer relationship than patronage, they’re fine with buying up open-source companies, as IBM did Red Hat a few years ago.
-
Rust getting closer to the Linux kernel [Ed: This is a bad thing]
The dream that Rust fans have that the OS will be one day part of the Linux kernel seem to be getting closer
In his This Week in Programming column, Mike Melanson noted that there is now an "intentionally bare-bones" inclusion in Linux-next, the development branch of the Linux kernel.
-

- Login or register to post comments
Printer-friendly version- 3406 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