Open-source News

Chrome 113 To Ship WebGPU By Default

Phoronix - Thu, 04/06/2023 - 18:38
While Chrome 112 just shipped this week and Chrome 113 only in beta, there is already a big reason to look forward to that next Chrome web browser release: Google is finally ready to ship WebGPU support! WebGPU provides the next-generation high performance 3D graphics API for the web...

Huawei's Bolt 1.5 Adds AVX-VNNI, Intel Desktop GPU Support

Phoronix - Thu, 04/06/2023 - 18:17
Huawei's Bolt project is a deep learning library focused on high performance and heterogeneous flexibility and supporting a variety of neural networks. Bolt claims to outperform other deep learning acceleration libraries while supporting models from TensorFlow, ONNX, Caffe, and more...

VVenC 1.8 Released For Speeding Up Open-Source H.266/VVC Encoding

Phoronix - Thu, 04/06/2023 - 18:02
VVenC is an open-source project from the Fraunhofer Institute for providing H.266/VVC video encode/decode capabilities. Out today is VVenC 1.8 with the latest enhancements for speeding up CPU-based H.266 video coding...

Installation of Ubuntu 22.04 Server with LAMP Stack

Tecmint - Thu, 04/06/2023 - 15:57
The post Installation of Ubuntu 22.04 Server with LAMP Stack first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

Canonical, the company behind Ubuntu, released Ubuntu 22.04 LTS (Jammy Jellyfish) on April 21, 2022, for Ubuntu Desktop, Ubuntu Server, Ubuntu Cloud, and Ubuntu Core with a five years long term support guaranteed on

The post Installation of Ubuntu 22.04 Server with LAMP Stack first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Make a web-safe color guide with Bash

opensource.com - Thu, 04/06/2023 - 15:00
Make a web-safe color guide with Bash Jim Hall Thu, 04/06/2023 - 03:00

When computer displays had a limited color palette, web designers often used a set of web-safe colors to create websites. While modern websites displaying on newer devices can display many more colors than the original web-safe color palette, I sometimes like to refer to the web-safe colors when I create web pages. This way I know my pages look good anywhere.

You can find web-safe color palettes on the web, but I wanted to have my own copy for easy reference. And you can make one too, using the for loop in Bash.

Bash for loop

The syntax of a for loop in Bash looks like this:

for variable in set ; do statements ; done

As an example, say you want to print all numbers from 1 to 3. You can write a quick for loop on the Bash command line to do that for you:

$ for n in 1 2 3 ; do echo $n ; done 1 2 3

The semicolons are a standard Bash statement separator. They let you write multiple commands on a single line. If you were to include this for loop in a Bash script file, you might instead replace the semicolons with line breaks and write out the for loop like this:

for n in 1 2 3 do echo $n done

I like to include the do on the same line as the for so it's easier for me to read:

for n in 1 2 3 ; do echo $n doneMore than one for loop at a time

You can put one loop inside another. That can help you to iterate over several variables, to do more than one thing at a time. Let's say you wanted to print out all combinations of the letters A, B, and C with the numbers 1, 2, and 3. You can do that with two for loops in Bash, like this:

#!/bin/bash for number in 1 2 3 ; do for letter in A B C ; do echo $letter$number done done

If you put these lines in a Bash script file called for.bash and run it, you see nine lines showing the combinations of all the letters paired with each of the numbers:

$ bash for.bash A1 B1 C1 A2 B2 C2 A3 B3 C3Looping through the web-safe colors

The web-safe colors are all colors from hexadecimal color #000 (black, where the red, green, and blue values are all zero) to #fff (white, where the red, green, and blue colors are all at their full intensities), stepping through each hexadecimal value as 0, 3, 6, 9, c, and f.

You can generate a list of all combinations of the web-safe colors using three for loops in Bash, where the loops iterate over the red, green, and blue values.

#!/bin/bash for r in 0 3 6 9 c f ; do for g in 0 3 6 9 c f ; do for b in 0 3 6 9 c f ; do echo "#$r$g$b" done done done

If you save this in a new Bash script called websafe.bash and run it, you see an iteration of all the web safe colors as hexadecimal values:

$ bash websafe.bash | head #000 #003 #006 #009 #00c #00f #030 #033 #036 #039

To make an HTML page that you can use as a reference for web-safe colors, you need to make each entry a separate HTML element. Put each color in a element, and set the background to the web-safe color. To make the hexadecimal value easier to read, put it inside a separate element. Update the Bash script to look like this:

#!/bin/bash for r in 0 3 6 9 c f ; do for g in 0 3 6 9 c f ; do for b in 0 3 6 9 c f ; do echo "#$r$g$b" done done done

When you run the new Bash script and save the results to an HTML file, you can view the output in a web browser to all the web-safe colors:

$ bash websafe.bash > websafe.html Image by:

(Jim Hall, CC BY-SA 4.0)

Programming with Bash Bash scripting cheat sheet for developers Download: Bash tips and tricks An introduction to programming with Bash A sysadmin's guide to Bash scripting Latest Bash articles

The web page isn't very nice to look at. The black text on a dark background is impossible to read. I like to apply some HTML styling to ensure the hexadecimal values are displayed with white text on a black background inside the color rectangle. To make the page look really nice, I also use HTML grid styles to arrange the boxes with six per row and some space between each box.

To add this extra styling, you need to include the other HTML elements before and after the for loops. The HTML code at the top defines the styles and the HTML code at the bottom closes all the open HTML tags:

#!/bin/bash cat< Web-safe colors div { padding-bottom: 1em; } code { background-color: black; color: white; } @media only screen and (min-width:600px) { body { display: grid; grid-template-columns: repeat(6,1fr); column-gap: 1em; row-gap: 1em; } div { padding-bottom: 3em; } } EOF for r in 0 3 6 9 c f ; do for g in 0 3 6 9 c f ; do for b in 0 3 6 9 c f ; do echo "#$r$g$b" done done done cat< EOF

This finished Bash script generates a web-safe color guide in HTML. Whenever you need to refer to the web-safe colors, run the script and save the results to an HTML page. Now you can see a representation of the web-safe colors in your browser as an easy-reference guide for your next web project:

$ bash websafe.bash > websafe.html Image by:

(Jim Hall, CC BY-SA 4.0)

Use the for loop in Bash to create a handy color palette for the web.

Image by:

John Morgan on Flickr, CC BY 2.0

Web development Art and design Linux Bash What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

How to lead through change with open leadership

opensource.com - Thu, 04/06/2023 - 15:00
How to lead through change with open leadership Ashish Lotangane Thu, 04/06/2023 - 03:00

Change is hard. It often brings discomfort, anxiety, and confusion. Even as an Agile enthusiast, I sometimes feel I'm not welcoming change the way I should.

Change is often hard because the predecessor of change is chaos. Being in chaos is a natural part of the change process and an integral part of evolution. If chaos is handled poorly, it may result in inefficiencies, stress, demotivation, loss of direction, and poor performance. However, it also presents an opportunity to rethink, reorganize, refresh, reboot, experiment, and invent.

Open leadership is critical here. The Open Organization defines open leadership as a mindset and set of behaviors that anyone can learn and practice. Open leaders think and act in service to another person, group, team, or enterprise attempting to accomplish something together.

Open leaders acknowledge change, lead it with a generative-lean-agile mindset, and welcome it with intuition, focus, and enthusiasm.

Optimize to strengthen

Open leadership helps assess and understand the need for and the impact of change. It provides trust, transparency, and alignment with a vision. Open leaders simplify things by optimizing and prioritizing workflows.

In the path to open leadership, keep in mind that it takes time to develop a vision, alignment, and roadmap. Open leaders are optimistic and positive people. They understand their strengths and weaknesses. They make pragmatic decisions, listen to opposing points of view, and facilitate actions based on a set of values, processes, and culture. With team structure and governance, open leaders optimize processes to strengthen the vision.

Engage to leverage

Open leaders utilize feedback with constant adjustments in highly collaborative environments. Open leaders with clarity of conscience and willingness to speak up can make a difference. They believe in experimentation and early adaptation. They know very well that ideas spark innovation and further ignite potential. They understand that innovation is a product of creativity and an engine of change that results from feedback and failures. Transformation, revolution, realignment, and evolution are simply outcomes of this culture.

During change, open leaders invest in employee training and learning, communicate effectively, and provide everyone with opportunities and resources to unlock their potential and thrive. They build trust and demonstrate a high degree of personal integrity. They mold a group of individuals into a loyal and dedicated team.

Our favorite resources about open source Git cheat sheet Advanced Linux commands cheat sheet Open source alternatives Free online course: RHEL technical overview Check out more cheat sheets Empower to excel

Contributing to the greater good is a deep and fundamental human need. Open leaders provide a vision for this where others do not. They bring the power of open culture and values by investing in skill building, taking responsibility, and expressing appreciation for the efforts of others.

The empathy of open leaders plays a critical role in encouraging others to embrace change. They remove obstacles and build community to provide a common understanding and safe environment for all. By decentralizing decision-making, open leaders give more authority to their employees. That empowerment provides the autonomy to excel further.

Give to receive

Whenever I say that one should celebrate not only success but also failures, I see eyebrows raised. I strongly believe leaders should celebrate failures—as long as they are taking note of learnings, validating those learnings, and implementing a plan of action to address those learnings. Failures, if celebrated rightly, lead to more wins.

Open leaders embrace the culture and characteristics of people, groups, and organizations. They allow people and teams to be themselves, and they understand that the action of giving and receiving gratefully has a powerful impact on partnership. It leads to sharing knowledge and caring about outcomes.

Finally, open leadership is infectious: Open leaders do not create followers, they create more leaders.

[ Learn how open leaders drive organizational agility. Download the eBook. ]

Anyone can learn and use the qualities of open leadership to help their teams through times of transition.

Image by:

Opensource.com

Careers What to read next This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. Register or Login to post a comment.

How to Migrate CentOS 7 to AlmaLinux 8 Using ELevate Repo

Tecmint - Thu, 04/06/2023 - 14:26
The post How to Migrate CentOS 7 to AlmaLinux 8 Using ELevate Repo first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

CentOS 7 reaches the end of life on June 30th, 2024 marking the end of the CentOS Project after CentOS 8 was prematurely discontinued back on December 31st in favor of CentOS Stream. Thankfully,

The post How to Migrate CentOS 7 to AlmaLinux 8 Using ELevate Repo first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Intel Vulkan Driver Squeezes In A Few More Performance Optimizations For Mesa 23.1

Phoronix - Thu, 04/06/2023 - 01:30
Ahead of the Mesa 23.1 branching and feature freeze coming up in the next week or two, Intel's open-source graphics driver developers have been landing some last minute performance optimizations to benefit their "ANV" Vulkan driver...

HP WMI Driver To Expose More Sensors Under Linux For Business-Class Systems

Phoronix - Thu, 04/06/2023 - 00:30
A patch was posted this week introducing a new "hp-wmi-sensors" Linux kernel driver for HP business-class computers for exposing WMI sensor functionality...

Pages