Skip to the content
Both.org
News, Opinion, Tutorials, and Community for Linux Users and SysAdmins
  • About Us
  • Computers 101
    • Hardware 101
    • Operating Systems 101
  • End of 10 Events
    • Wake Forest, NC, — 2025-09-20
  • Linux
    • Why I use Linux
    • The real reason we use Linux
  • My Linux Books
    • systemd for Linux SysAdmins
    • Using and Administering Linux – Zero to SysAdmin: 2nd Edition
    • The Linux Philosophy for SysAdmins
    • Linux for Small Business Owners
    • Errata
      • Errata for The Linux Philosophy for SysAdmins
      • Errata for Using and Administering Linux — 1st Edition
      • Errata for Using and Administering Linux — 2nd Edition
  • Open Source Resources
    • What is Open Source?
    • What is Linux?
    • What is Open Source Software?
    • The Open Source Way
  • Write for us
    • Submission and Style guide
    • Advertising statement
  • Downloads
1

Both.org Authors Working on New Books

April 7, 2026April 7, 2026
2

Privacy matters

April 7, 2026March 27, 2026
3

Book Update

April 4, 2026
4

Fedora Prix Fixe Menu Gives Flexibility

April 2, 2026March 28, 2026
5

Why Linux Matters More Than Ever in 2026

March 31, 2026March 27, 2026
6

“Using and Administering Linux” Book Progress Update

March 29, 2026March 29, 2026
7

Use FreeDOS to learn about computers

March 26, 2026
8

From ‘Obsolete’ to Opportunity: How Five Old PCs Found New Purpose

March 20, 2026March 19, 2026
9

Fedora 44 Coming Soon

March 18, 2026
  • Home
  • Programming
  • Page 3

Category: Programming

Programming

Using enumerations in C

Using enumerations with enum makes it easy to store values in a program, yet keep the code easy to read.

Jim Hall
January 17, 2025January 10, 2025
Read More
Programming

Using bit fields and bit masks in C

Using bit fields and bit masks is a common method to combine data without using more complex structures.

Jim Hall
January 10, 2025January 10, 2025
Read More
FreeDOS Programming

Enjoy the holidays with this ASCII fireplace

Enjoy the holidays by writing a ‘fire’ program in ASCII text.

Jim Hall
December 24, 2024December 20, 2024
Read More
FreeDOS Programming

What I learned by teaching others

Sharing knowledge with others is often a great way to refresh and update your own expertise.

Jim Hall
December 20, 2024December 17, 2024
Read More
Both.org Programming

5 ways to learn about programming

Read these popular articles from the last year to get started on your programming journey.

Jim Hall
December 16, 2024December 1, 2024
Read More
Linux Programming Python

Remove Background from Photos for Holiday Card Creation with Python

You can use open-source tools to produce holiday cards this year. Suppose you have a great photo of your family or grandchildren, but it was...

Don Watkins
December 7, 2024December 4, 2024
Read More
FreeDOS Fun Programming

Print a spooky greeting in ASCII art

Generate colorful ASCII art from a C program using FreeDOS.

Jim Hall
October 31, 2024October 13, 2024
Read More
FreeDOS Linux Programming

Portable programming practices

Sometimes it’s easier to define your API to hide the platform-specific code

Jim Hall
October 26, 2024October 19, 2024
Read More
FreeDOS Linux Programming

Writing portable C programs

Jim shares this follow-up to an earlier article about programming across platforms.

Jim Hall
October 25, 2024October 19, 2024
Read More
FreeDOS Linux Programming

Programming across platforms

Using these C compiler preprocessor directives to detect the operating system can make it easier to support multiple platforms at once.

Jim Hall
October 15, 2024October 13, 2024
Read More
Code Fun Programming

Write a guessing game in ncurses

Use the flexibility of ncurses to create a guess-the-number game on Linux.

Jim Hall
September 18, 2024September 10, 2024
Read More
Linux Programming

Terminal size and ncurses

When programs like vi first came along, terminals had a predefined size: usually 80 columns and 24 lines (actually 25 lines, but the last line...

Jim Hall
September 16, 2024September 7, 2024
Read More
Fun Linux Programming

Random numbers from the Linux kernel

Let the kernel generate random numbers for you using ‘getrandom.’

Jim Hall
September 14, 2024September 5, 2024
Read More
Linux Programming

A gentle introduction to ncurses

You can create your own programs that use a text user interface to control the screen.

Jim Hall
September 11, 2024September 7, 2024
Read More
Fun Programming

Learn C by writing a number guessing game

The “Guess the number” game is a fun way to learn a new programming language.

Jim Hall
September 7, 2024September 5, 2024
Read More
Fun Programming

Guess the number in FORTRAN 77

Explore classic programming in FORTRAN 77 with this sample program.

Jim Hall
August 20, 2024August 13, 2024
Read More

Posts pagination

Previous 1 2 3 4 5 Next

Random Quote

There is no reason for any individual to have a computer in their home.

— Ken Olson

Why I’ve Never Used Windows

On February 12 I gave a presentation at the Triangle Linux Users Group (TriLUG) about why I use Linux and why I’ve never used Windows.

Here’s the link to the video: https://www.youtube.com/live/uCK_haOXPFM 

David Both ATO Interview

Last October at All Things Open (ATO) I was interviewed by Jason Hibbits of We Love Open Source. It’s posted in the article “Why today’s AI isn’t intelligent (yet)“.

“systemd for SysAdmins” Now Available

May 13,2025

My latest book — a #1 New Release on Amazon — “systemd for Linux  SysAdmins” is now available from my publisher, Apress, and on Amazon.

Technically We Write — Our Partner Site

Our partner site, Technically We Write, has published a number of articles from several contributors to Both.org. Check them out.

Technically We Write is a community of technical writers, technical editors, copyeditors, web content writers, and all other roles in technical communication.

Subscribe to Both.org

To comment on articles, you must have an account.

Send your desired user ID, first and last name, and an email address for login (this must be the same email address used to register) to subscribe@both.org with “Subscribe” as the subject line.

You’ll receive a confirmation of your subscription with your initial password as soon as we are able to process it.

Administration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • About Us
  • Computers 101
    • Hardware 101
    • Operating Systems 101
  • End of 10 Events
    • Wake Forest, NC, — 2025-09-20
  • Linux
    • Why I use Linux
    • The real reason we use Linux
  • My Linux Books
    • systemd for Linux SysAdmins
    • Using and Administering Linux – Zero to SysAdmin: 2nd Edition
    • The Linux Philosophy for SysAdmins
    • Linux for Small Business Owners
    • Errata
      • Errata for The Linux Philosophy for SysAdmins
      • Errata for Using and Administering Linux — 1st Edition
      • Errata for Using and Administering Linux — 2nd Edition
  • Open Source Resources
    • What is Open Source?
    • What is Linux?
    • What is Open Source Software?
    • The Open Source Way
  • Write for us
    • Submission and Style guide
    • Advertising statement
  • Downloads

License and AI Statements

Both.org aims to publish everything under a Creative Commons Attribution ShareAlike license. Some items may be published under a different license. You are responsible to verify permissions before reusing content from this website.

The opinions expressed are those of the individual authors, not Both.org.

You may not use this content to train AI.

 

Advertising Statement

Advertising Statement

To the Top ↑ Up ↑