opensource.com

Subscribe to opensource.com feed
Updated: 2 hours 31 min ago

How to package your Python code

Tue, 11/09/2021 - 16:01

You've spent weeks perfecting your code. You've tested it and sent it to some close developer friends for quality assurance. You've posted all the source code on your personal Git server, and you've received helpful bug reports from a few brave early adopters. And now you're ready to make your Python code available to the world.

And that's when it hits you. You have no idea how to deliver the product.


read more

How the Kubernetes ReplicationController works

Tue, 11/09/2021 - 16:00

Have you ever wondered what is responsible for supervising and managing just the exact number of pods running inside the Kubernetes cluster? Kubernetes can do this in multiple ways, but one common approach is using ReplicationController (rc). A ReplicationController is responsible for managing the pod lifecycle and ensuring that the specified number of pods required are running at any given time. On the other hand, it is not responsible for the advanced cluster capabilities like performing auto-scaling, readiness and liveliness probes, and other advanced replication capabilities.


read more

Write your first CI/CD pipeline in Kubernetes with Tekton

Mon, 11/08/2021 - 16:01

Tekton is a Kubernetes-native open source framework for creating continuous integration and continuous delivery (CI/CD) systems. It also helps to do end-to-end (build, test, deploy) application development across multiple cloud providers or on-premises systems by abstracting away the underlying implementation details.


read more

How I build command-line apps in JavaScript

Mon, 11/08/2021 - 16:00

JavaScript is a language developed for the web, but its usefulness has gone far beyond just the Internet. Thanks to projects like Node.js and Electron, JavaScript is as much a general-purpose scripting language as a browser component. There are JavaScript libraries specially designed to build command-line interfaces. Yes, you can run JavaScript in your terminal.


read more

10 eureka moments of coding in the community

Sun, 11/07/2021 - 16:00

If you've written code, you know it takes practice to get good at it. Whether it takes months or years, there's inevitably a moment of epiphany.

We wanted to hear about that time, so we asked our community to share about that time they sat down and wrote code that truly made them proud.


read more

Open source solar power for anyone

Sat, 11/06/2021 - 15:00

Solar photovoltaic technology, which converts sunlight directly into electricity, has fallen in cost so far that it is now the most inexpensive method of getting electricity, period. If you have any money in the bank and own your home or business, consider investing in solar power for yourself now, as you can do some good for the planet and your wallet simultaneously.

But can you still take advantage of solar if you live in an apartment or aren’t flush with cash?


read more

Why I use Linux to manage my yoga studio

Fri, 11/05/2021 - 15:00

When I started my first yoga studio in 2000, computer technology was way out of my wheelhouse. In fact, for the first two years, I didn't even have a website. I did everything from scratch, including collecting emails, sending newsletters, marketing events, and corresponding with my student base. I was extremely content operating my business that way; my focus was on teaching yoga and creating community.


read more

How to update a Linux symlink

Thu, 11/04/2021 - 15:00

UNIX and Linux users find many uses for links, particularly symbolic links. One way that I like to use symbolic links is to manage configuration backups of various IT equipment.

I have a directory structure to hold everything related to documentation, updates, and other files for the computers and devices on my network. Devices can include routers, access points, NAS servers, and laptops, often of different brands and versions. The configuration backups themselves might be deep within the directory tree, e.g. /home/alan/Documents/network/device/NetgearRL5000/config.


read more

Turn any website into a Linux desktop app with open source tools

Wed, 11/03/2021 - 15:01

Mastodon is a great open source, decentralised social network. I use Mastodon every day, and it's probably most common to use Mastodon through its web interface (although being open source, there are many different ways to interact with it, including terminal-based applications and mobile apps), but I prefer dedicated application windows.


read more

4 tips to becoming a technical writer with open source contributions

Wed, 11/03/2021 - 15:00

Whether you’re a tech hobbyist interested in dabbling in technical writing or an established technologist looking to pivot your career to become a professional technical writer, you can build your technical writing portfolio with open source contributions. Writing for open source projects is fun, flexible, and low risk. Contribute to a project of interest to you on your own schedule, and you might be surprised at how welcoming the community can be or how fast you can make an impact.


read more

4 ways to edit photos on the Linux command line

Tue, 11/02/2021 - 15:01

Linux is useful to photographers and graphic artists. It provides many tools for editing different types of image files and formats, including photographs. This roundup shows that you do not even need a graphical interface to work with your photos. Here are four ways that you can edit images at the command line.


read more

What you need to know about containers for Python

Tue, 11/02/2021 - 15:00

Python is a popular language for many applications. Those that run as backend services, now in the 2020s, are often run inside containers. For that to work, though, you have to build a container.

Often, with microservice architectures, it makes sense to build a "root" base image, which all of your services get built on. Most of this article focuses on that base image since this is where it is easiest to make mistakes. However, I also cover the applications themselves because a good base without good applications isn't of much use.


read more

Use the Linux cowsay command for a colorful holiday greeting

Mon, 11/01/2021 - 15:01

You may have heard of a small program that takes input, such as a message that you type, and outputs a picture of a cow quoting your message. It is called cowsay. It has been written about before here on Opensource.com.

So, to have a little fun with it, I thought I'd use it to celebrate Día de los Muertos (Day of the Dead).


read more

How I dynamically generate Jekyll config files

Mon, 11/01/2021 - 15:00

Jekyll, the static site generator, uses the _config.yml for configuration. The configurations are all Jekyll-specific. But you can also define variables with our own content in these files and use them throughout your website. In this article, I'll highlight some advantages of dynamically creating Jekyll config files.


read more

How to kill a zombie process on Linux

Sun, 10/31/2021 - 15:00

Happy Halloween Open SOURCE-rers!

Here's a tale as old as epoch time. Since there has been C and Unix, and (later on) Linux, we've had zombies. Specifically, there are processes that get marked as a zombie process. Misunderstood by some, ignored by others, and immune to the efforts of so many of us trying to kill these processes without much success. Why is that?


read more

7 ways anyone can contribute to Open Practice Library

Sat, 10/30/2021 - 15:00

The Open Practice Library is a community-driven collection of practices for teams to use in support of working together. A "practice" is a behavior or "trick" that teams use to improve how they achieve their goals. Sometimes those goals are technical, like programming and IT, but all teams can use help defining their practices. Whether you're a teacher, event planner, salesperson, or artist, the process is important.


read more

Print a Halloween greeting with ASCII art on Linux

Fri, 10/29/2021 - 15:01

Full-color ASCII art used to be quite popular on DOS, which could leverage the extended ASCII character set and its collection of drawing elements. You can add a little visual interest to your next FreeDOS program by adding ASCII art as a cool “welcome” screen or as a colorful “exit” screen with more information about the program.


read more

A simple CSS trick for dark mode

Fri, 10/29/2021 - 15:00

You're likely already familiar with media queries. They're in widespread use for making websites responsive. The width and height properties contain the viewport's dimensions. You then use CSS to render different layouts at different dimensions.


read more

5 lessons I learned about chaos engineering for Kubernetes

Thu, 10/28/2021 - 15:01

Kubernetes is a complex framework for a complex job. Managing several containers can be complicated, and managing hundreds and thousands of them is essentially just not humanly possible. Kubernetes makes highly available and highly scaled cloud applications a reality, and it usually does its job remarkably well. However, people don't tend to notice the days and months of success. Months and years of smooth operation aren't the things that result in phone calls at 2 AM. In IT, it's the failures that count. And unfortunately, failures don't run on a schedule.


read more

Open source recognized as a key economic pillar in EU study

Thu, 10/28/2021 - 15:00

A September 2021 study on the economic impact of open source software and hardware concluded that open source technologies injected EUR 65-95 billion into the European economy. This study is timely given the current rollout of the European Union's EUR 750 billion recovery investment, which has allotted 20% for digital transformation.


read more

Pages