opensource.com

Subscribe to opensource.com feed
Updated: 44 min 15 sec ago

5 common bugs in C programming and how to fix them

Thu, 10/14/2021 - 15:00

Even the best programmers can create programming bugs. Depending on what your program does, these bugs could introduce security vulnerabilities, cause the program to crash, or create unexpected behavior.

The C programming language sometimes gets a bad reputation because it is not memory safe like more recent programming languages, including Rust. But with a little extra code, you can avoid the most common and most serious C programming bugs. Here are five bugs that can break your application and how you can avoid them:


read more

5 markdown editors I recommend trying

Wed, 10/13/2021 - 15:01

You can use markdown for anything—formatting websites, authoring books, and writing technical documentation are just some of its uses. I love how easy it is to create rich documents. Everyone has their favorite markdown editor. I have used several on my markdown journey. Here are five markdown editors I have considered. 


read more

Going to market with an open source product

Wed, 10/13/2021 - 15:00

This article is the sixth in a series on product management in an open source supply chain. In the previous articles, I covered the following topics:


read more

It's Ada Lovelace Day! Learn the Ada programming language in 2021

Tue, 10/12/2021 - 20:15

In the 1970s, many programming languages were hyperspecific to the hardware they controlled. As a result, developers had to learn to code differently depending on the hardware they were programming. Debugging and maintenance were highly specialized, and code wasn't reusable across machines.

The UK government recognized these problems and moved toward establishing a standardized multipurpose programming language. On December 10, 1980—Ada Lovelace's birthday—they made the Ada programming language an official military standard in the UK.


read more

Automate image processing with this Bash script

Tue, 10/12/2021 - 15:01

Writers not only work with words, they often have to work with images. Technical writing involves presenting a lot of screenshots to convey the technology and processes. Different publishing platforms may have various requirements for images, such as image format or file size.


read more

Create a timer on Linux

Tue, 10/12/2021 - 15:00

The timing of certain events is a common task for a developer. Common scenarios for timers are watchdogs, cyclic execution of tasks, or scheduling events for a specific time. In this article, I show how to create a POSIX-compliant interval timer using timer_create(...).

You can download the source code for the following examples from GitHub.


read more

How to change a hostname in Linux

Mon, 10/11/2021 - 15:01

To change your hostname on a Linux computer, use the hostnamectl command.

For example, to change your computer's hostname to myhostname:

$ sudo hostnamectl --static \
--transient \
--pretty \
myhostname


read more

What is a hostname?

Mon, 10/11/2021 - 15:00

Computers have network addresses, but they're usually difficult for humans to remember. Hostnames are labels intended to help humans refer to a specific computer. Instead of navigating to 192..168.1.4, for instance, you might navigate to  linuxlaptop or linuxlaptop.local.


read more

How disagreement creates unity in open source

Sat, 10/09/2021 - 15:00

It's early 2020, I'm less than a year into my new people management role, and I'm already feeling like a trouble maker. I just finished reviewing a team proposal, and I have concerns about it. My heart races, and my muscles tighten. I don't want to be difficult by challenging ideas as the new person on the team.


read more

3 more phases of DevSecOps transformation

Fri, 10/08/2021 - 15:01

Making a major operations transition must be a long-term and well-planned process. Because DevSecOps is an important step in the DevOps journey for your organization, you are more likely to find success if you introduce and implement your transformation in phases.


read more

3 new features of the latest OpenPGP.js version

Fri, 10/08/2021 - 15:00

OpenPGP.js is a cryptography library that implements the OpenPGP standard, most commonly used for email encryption. ProtonMail, Mailvelope, and FlowCrypt all use OpenPGP.js, to name a few. That means the OpenPGP.js library encrypts millions of users' messages.


read more

Rotate and archive logs with the Linux logrotate command

Thu, 10/07/2021 - 15:01

Logs are great for finding out what an application is doing or troubleshooting a possible problem. Almost every application we deal with generates logs, and we want the applications we develop ourselves to generate them too. The more verbose the logs, the more information we have. But left to themselves, logs can grow to an unmanageable size, and they can, in turn, become a problem of their own. So it's a good idea to keep them trimmed down, keep the ones we're going to need, and archive the rest.


read more

3 phases to start a DevSecOps transformation

Thu, 10/07/2021 - 15:00

DevSecOps is another step in the DevOps journey for your organization. Breaking down your transformation into phases facilitates working directly with developers and other team members. A phased approach also allows you to get feedback from those affected by the change and iterate as necessary.

Here are the first three phases of a DevSecOps transformation:

Phase 1: analysis, education, and training

In phase 1, you do the preliminary work necessary to make DevSecOps the next step in your DevOps journey.


read more

Check Java processes on Linux with the jps command

Wed, 10/06/2021 - 15:01

On Linux, there are commands to view processes running on your system. A process is any ongoing event being managed by the kernel. A process is spawned when you launch an application, but there are also many other processes running in the background of your computer, including programs to keep your system time accurate, to monitor for new filesystems, to index files, and more. The utilities, such as those included in the procps-ng package, that monitor these processes tend to be intentionally generic.


read more

Following a DevSecOps maturity model

Wed, 10/06/2021 - 15:00

DevSecOps is in many ways another level of DevOps maturity for an enterprise. Executive management and other stakeholders understand the concept of a maturity model, making it a helpful way to explain the value of this shift. Following a maturity model also helps you tell a story that includes the people, process, and technology changes that come with a DevOps-to-DevSecOps transformation.

Here are four typical levels of DevSecOps maturity:


read more

Get podman up and running on Windows using Linux

Tue, 10/05/2021 - 15:02

WSL 2, the second iteration of the Windows Subsystem for Linux, allows you to run a Linux environment natively on Windows, without the overhead of a virtual machine (VM). It integrates nicely with Windows, too, and provides you access to most of the command-line tools, utilities, and applications you're used to on Linux.


read more

4 steps to make DevSecOps adoption a team effort

Tue, 10/05/2021 - 15:01

Perhaps your organization is already experimenting with DevOps tools or considering how to move towards DevOps. Maybe you're still relying on ad hoc processes. Then suddenly your C-suite or auditors raise the need to standardize on a secure and agile development process. Enter DevSecOps.

To mitigate the challenges that come with DevSecOps adoption, you'll need to make it a team effort. Here's what you need to do.


read more

4 new videos about working and leading openly

Tue, 10/05/2021 - 15:00

Last month, Open Organization community members took to the airwaves (or maybe the fiber optics?) to discuss some of the ways open principles are changing how we work, manage, and lead. Here's what we shared on OpenOrgTV.


read more

How I use Vagrant with libvirt

Mon, 10/04/2021 - 15:01

I'll admit it: I'm a fan of Linux. While I've used Slackware on workstations and Red Hat Enterprise Linux (RHEL) on servers for years, I love seeing how other distributions do things. What's more, I really like to test applications and scripts I write on other distributions to ensure portability. In fact, that's one of the great advantages of Linux, as I see it: You can download a distro and test your software on it for free.


read more

Launching a DevOps to DevSecOps transformation

Mon, 10/04/2021 - 15:00

Widespread adoption of DevSecOps is inevitable. Security and delivery velocity are unrealistic expectations as part of a waterfall software development life cycle (SDLC). Businesses and government agencies are under constant pressure to deliver new features and functionality to their customers, constituents, and employees.


read more

Pages