Language Selection

English French German Italian Portuguese Spanish

About Tux Machines

Thursday, 20 Feb 20 - Tux Machines is a community-driven public service/news site which has been around for over a decade and a half and primarily focuses on GNU/LinuxSubscribe now Syndicate content

Search This Site

Programming: PHP, Scheme, Perl, Python and JavaScript

Filed under
Development
  • PHP version 7.2.28, 7.3.15 and 7.4.3

    RPMs of PHP version 7.4.3 are available in remi repository for Fedora 32 and remi-php74 repository for Fedora ≥ 30 and Enterprise Linux ≥ 7 (RHEL, CentOS).

    RPMs of PHP version 7.3.15 are available in remi repository for Fedora 30-31 and remi-php73 repository for Enterprise Linux ≥ 6 (RHEL, CentOS).

    RPMs of PHP version 7.2.28 are available in remi-php72 repository for Enterprise Linux ≥ 6 (RHEL, CentOS).

  • Excellent Free Tutorials to Learn Scheme

    Scheme is a general-purpose, functional, programming language descended from Lisp and Algol. It is a statically scoped and properly tail-recursive dialect of Lisp.

    Scheme is a very simple language with a very simple syntax based on s-expressions. Its simplicity is fundamental in making it a popular introductory language. It follows a minimalist design philosophy specifying a small standard core with powerful tools for language extension. This philosophy helps make Scheme a programming language that can be learned over a weekend. Nevertheless, Scheme is a very versatile language being used to write a diverse range of applications such as financial analysis tools, compilers, virtual reality systems, as well as more mundane software.

    Scheme is used in computing education and research as well as a wide range of industrial applications.

  • Don't like IDEs? Try grepgitvi

    Like most developers, I search and read source code all day long. Personally, I've never gotten used to integrated development environments (IDEs), and for years, I mainly used grep and copy/pasted file names to open Vi(m).

    Eventually, I came up with this script, slowly refining it as needed.

  • Perl Weekly Challenge 48: Survivor and Palindrome Dates

    These are some answers to the Week 48 of the Perl Weekly Challenge organized by Mohammad S. Anwar.

  • Deprecating or Transferring Mojo::ACME

    While Mojo::ACME was a fun experiment, it has several shortcomings at this point and I’ve officially stopped using it. If someone is interested in maintaining it, and if I’m sufficiently convinced of your credibility since this is a security module after all, I can hand it over. Otherwise I will be marking it as deprecated soon.

    Some background

    Mojo::ACME was mostly an experiment for me in learning the ACME (v1) protocol. It was a port of the acme-tiny script to mojo with one significant difference. When used as a plugin in your application it actually could listen for a local connection over websocket from the certificate issuance command to prepare for the authentication challenges. This allowed for zero-downtime intervention-free certificate issuance for your application. It was pretty neat and I’m still proud that it worked. Meanwhile the letsencrypt client, later to be renamed certbot, was in a very painful infancy.

  • KBOS types

    After introducing KBOS I should write about the most fundamental concept in this Perl syntax extension. In fact it's so basic, you could use it even without objects.

    Of course this is not a full fledged type system. Use Raku to get that. Variables with KBOS will stay your perly whatever data container. But like in Moose or Zydeco, you want to verify data - if its consistent with your expectation. And you don't want to write the checking code lines over and over, plus they pollute method logic anyway.

    One of the advantages to have objects in the first place is to be sure, that the attributes obey requirements and you do not have to check them at every function all.

  • Let’s Build A Simple Interpreter. Part 18: Executing Procedure Calls
  • PyCharm 2020.1 EAP 4

    We have a new Early Access Program (EAP) version of PyCharm that can be now downloaded from our website.

    We’ve been hard at work making PyCharm easier to use and adding and improving features to get PyCharm 2020.1 ready for release. We have some good ones for you to try in this build. This EAP also includes loads of fixes from the IntelliJ Platform teams.

  • No Python 2 On Upcoming Ubuntu 20.04 LTS Version!

    Python 2 will no longer be available on upcoming Ubuntu 20.04 LTS version”, said by Matthias Klose. The team canonical had a very long discussion and came to a decision to remove Python 2 from Focal Fossa. The exact words are,
    Sorry for delaying that email. Based on some discussions, we are going forward with the Python2 removal.Matthias Klose

  • Android home screen widgets in HTML and JS

    I like having the news headlines on my phone’s home screen. (Well, on the screen to the right.) It helps me keep up with what’s going on in the world. But it’s hard to find a simple headline home screen widget which isn’t full of ads or extra frippery or images or tracking; I just want headlines, plain text, not unpleasantly formatted, and high-density. I don’t want to see three headlines; I’d rather see ten. I tried a whole bunch of news headline home screen widgets and they’re all terrible; not information-dense enough, or they are but they’re ugly, or they insist on putting pictures in, or they display a ton of other information I don’t want.

SharkLinux – Virtualization and cloud compatible Linux distro

Filed under
GNU
Linux

Today, we are going to take a look at a specialized Linux distro, SharkLinux. It is a cloud compatible and virtualization Linux distro that you can use in the cloud.

SharkLinux is an Ubuntu-based distribution featuring the MATE desktop and is best aimed for sysadmin testing, developers, and virtualization hobbyists. It follows a rolling release model for updates.

Read more

Events: WordPress Livestream, SUSECon, JupyterCon, LibrePlanet

Filed under
OSS
  • Pop-Up Livestream on February 22

    This should be a great way to get to hear from some speakers who have yet to share their knowledge on a global stage. WordPress is enriched by a multitude of experiences and perspectives, and I hope you are as excited as I am to hear new voices from a part of the world that is frequently underrepresented in the WordPress open source project.

  • Get Expert Guided Hands-On Experience at the SUSECON 2020 Pre-Conference Workshops
  • Get Certified During SUSECON 2020
  • JupyterCon 2020 is a go!

    Just over a year ago, Project Jupyter announced it was reevaluating its annual community conference. An advisory committee of volunteers recommended a JupyterCon 2020 emphasizing a focus on access and leadership. We are now thrilled to announce a global Jupyter conference...

  • Announcing JupyterCon 2020

    NumFOCUS is excited to be a part of JupyterCon 2020. JupyterCon will be held August 10 – 14 in Berlin, Germany at the Berlin Conference Center.

  • Hot off the presses: a sneak peek at the LibrePlanet 2020 schedule

    LibrePlanet 2020 is organized by the FSF. Hundreds of people from across the globe will converge to explore this year's theme, "Free the Future." We'll be delving into the threats to user freedom that we've all been reading about every day in the media, as well as the unique role the free software movement plays in solving these problems.

    In addition to the first keynote we announced last month, Brewster Kahle, LibrePlanet 2020 will feature a panoply of presentations. Our lineup includes some talks we absolutely can't wait to see, and we think you'll feel the same way! You can now dive in to the speakers already confirmed and start planning your itinerary.

    [...]

    LibrePlanet 2020 offers lots of opportunities for socializing, too! The annual FSF open house will take place on the evening of Friday, March 13th, at the FSF office. And the LibrePlanet Saturday night party will feature a sparkling new location. As we have in the past, we'll organize a dinner specifically for women, genderqueer, nonbinary, and gender non-conforming attendees, please mail campaigns@fsf.org if you're interested in joining. If you are looking to organize your own dinner or meetup, you can do so using the LibrePlanet wiki 2020 conference social and dinner pages as a central place for communication about this.

Graphics: RADV Vulkan Driver, Intel Codecs and Defects, NVIDIA Firmware

Filed under
Graphics/Benchmarks
  • RADV Vulkan Driver Adds Option For Zeroing Out Video Memory

    New to Mesa 20.1-devel is a new option for the Radeon Vulkan "RADV" driver to enable zeroing out video memory allocations.

    This isn't a new concept with other graphics drivers offering similar functionality for zeroing out the vRAM either for security reasons or working around pesky game/app issues. For example, RadeonSI OpenGL zeros out the vRAM for Rocket League to workaround buggy behavior with that game. But zeroing out the video memory normally isn't done by default for all allocations due to performance reasons.

    With the new flag to zero vRAM allocations for the RADV Vulkan driver it was done by Valve's Samuel Pitoiset. In this case he mentions it's in part for "future work."

  • Intel Gen12/Xe Graphics To Support 12-Bit HEVC/VP9 Decode

    We are learning more about the media engine capabilities with the forthcoming Intel "Gen12" (Xe) Tiger Lake graphics.

    The documentation for Intel's open-source media-driver that exposes VA-API capabilities on the Linux desktop was recently updated. That updated Intel VA-API Media Driver points to Intel Gen12 dropping VP8 video capabilities but expanding when it comes to 12-bit codec support.

  • Intel Sends Out Latest Patches For Mitigating Graphics Flaw On Ivybridge/Haswell

    It has been one month and a few days since Intel first made public the need for graphics driver patching of Gen 7/7.5 graphics for older Ivybridge / Haswell hardware to fix a graphics hardware flaw. That vulnerability also affected the common Intel Gen9 graphics but there the mitigation was uneventful and quickly merged without causing any performance hit. But for Ivybridge/Haswell one month later the graphics driver mitigation for CVE-2019-14615 is still being addressed.

    This vulnerability is also known as iGPU Leak by the researchers that discovered it but for the Gen7/Gen7.5 protection the mitigation has been particularly problematic. With the initial Gen7/Gen7.5 patches posted in mid-January there was a huge hit to the graphics performance while Intel worked towards no performance loss.

  • NVIDIA Posts Firmware Needed For Open-Source GeForce 16 Series Acceleration

    As written about last week, in the works for the Linux 5.7 kernel this spring is open-source NVIDIA "Nouveau" acceleration for the GeForce 16 series. That code is currently sitting in the Nouveau development tree until landing in DRM-Next for Linux 5.7, but NVIDIA has now posted the necessary firmware binaries needed for enabling the hardware acceleration on these Turing GPUs.

EasyOS version 2.2.11 released (Easy Buster version 2.2.11)

Filed under
GNU
Linux
Debian

EasyOS versions 1.x are the "Pyro" series, the latest is 1.3. Easy Pyro is built with packages compiled from source using 'oe-qky-src', a fork of OpenEmbedded. Consequently, the builds are small and streamlined and integrated. The Pyro series may have future releases, but it is considered to be in maintenance status.
The "Buster" series start from version 2.0, and are intended to be where most of the action is, ongoing. Version 2.0 was really a beta-quality build, to allow the testers to report back. The first official release was 2.1.
The main feature of Easy Buster is that it is built from Debian 10 Buster DEBs, using WoofQ (a fork of Woof2: Woof-CE is another fork, used to build Puppy Linux).
The advantage of Buster over Pyro is access to the large Debian package repositories. That is a big plus.

Read more

More in: EasyOS version 2.2.11 released

Also: Working-partition ext4 filesystem shuts down unclean

Games: Dad Quest, Unrailed, SteamWorld, Dying Light, Steam and SGT Puzzles Collection

Filed under
Gaming
  • Children are indestructible weapons in 'Dad Quest' - Linux Beta out now

    Possibly one of the quirkiest platformers I've ever come across, Dad Quest is now officially in Beta for Linux on Steam.

    A story-based platformer, with what developer Sundae Month claim is their own 'unique brand of comedy'. It's set in a world where children are indestructible weapons, ready to be hurled towards enemies. As a parent, I will admit it sounds amusing. According to the description you will teach your child new combat skills using 'a variety of deadly toys'.

  • Hilarious co-op train track building game 'Unrailed!' is now officially on Linux

    After a little while being in Beta, Indoor Astronaut have today released the Linux (and macOS) versions of Unrailed! so they're officially supported.

  • The full SteamWorld series is heading to Google Stadia "soon"

    While they're seemingly not giving an exact date just yet, Thunderful Publishing and Image & Form announced today that multiple SteamWorld titles are heading to Google Stadia.

  • Dying Light gets a massive update with a 'Story Mode' plus a free weekend

    Techland are keeping their baby alive a while longer (especially after delaying Dying Light 2), and it appears they didn't forget it turned 5 last month with a huge update and celebration.

    Since Dying Light has been out five years they're kicking off a big celebration. It's having a Free Weekend on Steam for the first time! A really good opportunity to see what the fuss is all about and I sure do fuss about it a lot. It really is a great game! One of my absolute favourites.

  • How to use community control schemes in Steam for Linux

    Sick of plugging your gaming controller into your Linux PC, only to find that the game does not have any gamepad controls set up? As it turns out, Steam has a solution for that. Did you know that you can add custom controller layouts for your Steam games on Linux? It’s true! Thanks to Steam’s stellar controller support on Linux, anyone can bind custom controls to their gaming controller! Follow along to learn how to do it on your system!

  • SGT Puzzles Collection 0.2.5 Released

    SGT Puzzles Collection, or simply sgt-launcher, is a game launcher and wrapper for Simon Tatham’s Portable Puzzle Collection, a popular collection of logic games by the developer of PuTTY.

    Joining the Xubuntu package set way back in Xubuntu 17.10 "Artful Aardvark", SGT Puzzles Collection has quietly provided Xubuntu users with a variety of distracting games for several releases. If you want to learn more about the project, check out my introductory blog post.

Linux Foundation: LF Networking, Xen Project Outreachy Connected to Microsoft, FUD Against FOSS Connected to Snyk and Synopsys (Black Duck, Microsoft 'Outposts')

Filed under
Linux
OSS
  • LF Networking Expands Ecosystem — Adds Members, Leads Initiatives to Automate 5G deployments and accelerate Automation

    LF Networking (LFN), which facilitates collaboration and operational excellence across open networking projects, today announced the addition of nine new members.The project welcomes new Silver members A10 Networks, AMD, Codilime, Mirantis, Robin.io, Solutions by STC, ULAK, and Xilinx, and Associate members University of California San Diego, and University of Surrey.

    “It’s great to kick off 2020 by welcoming a new swath of global members to the LFN community,” said Arpit Joshipura, general manager, Networking, Edge & IoT, the Linux Foundation. “We’re expanding our member ecosystem in tandem with growth across initiatives that harmonize open source an open standards, enable automated testing and deployment, and further Cloud Native Network Functions as open source becomes more mainstream.”

    The newest LFN members will work alongside the 100+ existing member organizations to drive development, testing and implementation of LFN’s networking projects, including FD.io, ONAP, OpenDaylight, OpenSwitch, OPNFV, PNDA, SNAS, and Tungsten Fabric.

  • Xen Project is Participating in May 2020 to August 2020 Outreachy Internships Round [Ed: Microsoft continues to 'buy the agenda' of the 'Linux' Foundation]

    The Xen Project is excited to be participating in the Outreachy internship program which supports diversity in free and open source software. The Xen Project’s participation in this round is being sponsored by Microsoft (1 internship). Interns have to make an initial application which primarily verifies eligibility to the Outreachy program by February 25 at 4pm UTC: for more information see here. Applicants with an approved initial application can start to enquire about projects from March 5th and can then formally apply.

    During the application period, applicants are expected to contribute to the Xen Project while in parallel working on the detailed application. The final application deadline is April 7, 2020 at 4pm UTC. Applicants interested in becoming a Xen Project Intern can see our projects here and here (link not live until March 5th).

  • New Linux Foundation | Harvard Study Reveals Hard Truths, Actionable Steps for Open Source Security [Ed: Linux Foundation now works with Microsoft proxies/allies Snyk and Black Duck to smear FOSS]

    Open source has made its way into almost every server farm, consumer device and service we use, and it’s done so without most people even realizing it. Almost no one knows what is in their phones, apps or business data centers. This is wreaking havoc on the global supply chain, so much so that the U.S. House of Representatives Energy and Commerce Committee sent a letter to the Linux Foundation inquiring about it. The Linux Foundation did its best to summarize a very complex situation in its response.

    So with the help of Harvard researchers and companies like Snyk and Synopsys, we set out to produce our second Census of open source software but this time, with a focus on what open source software projects show up in production applications. At the heart of this is a desire to understand how we take a preventative care approach to security, rather than a reactionary one.

Supporting an open source operating system: a Q&A with the FreeBSD Foundation

Filed under
Interviews
OSS

When discussing alternative operating systems to Microsoft’s Windows or Apple’s macOS, Linux often comes to mind. However, while Linux is a recreation of UNIX, FreeBSD is more of a continuation. The free and open source operating system was initially developed by students at the University of California at Berkeley which is why the BSD in its name stands for Berkeley Software Distribution.

FreeBSD runs on its own kernel and all of the operating system’s key components have been developed to be part of a single whole. This is where it differs the most from Linux because Linux is just the kernel and the other components are supplied by third parties.

To learn more about FreeBSD and its ongoing development, TechRadar Pro spoke to the executive director of the FreeBSD Foundation, Deb Goodkin.

Read more

Linux-driven ADAS computer features 6x FAKRA cameras

Filed under
Linux

VIA’s rugged “VIA Mobile360 M810” in-vehicle computer runs Linux on a Snapdragon 820E and offers 6x FAKRA camera ports plus software for ADAS, driver monitoring, surround view, and DVR.

Taiwan-based VIA Technologies, which appears to be increasingly focused on automotive and other vision processing applications, has launched an ADAS (Advanced Driver Assistance System) computer primarily aimed at bus fleets, but also available for trucks and delivery vans. The VIA Mobile360 M810 follows earlier Mobile360 systems such as the VIA Mobile360 D700 Drive Recorder, which runs Linux on a dual -A53 Novatek NT96685T SoC, and the VIA Mobile360 Surround View Sample Kit, which runs Android 5.0 on an unnamed octa-core SoC.

Read more

KDE’s Plasma Mobile Is Shaping Up Nicely on the PinePhone

Filed under
KDE

Last month, we took a closer look at how UBports’ Ubuntu Touch mobile OS progressed on the PinePhone, thanks to a video shared by developer Marius Gripsgård. Now, we have a sneak peek at another great system for the PinePhone, KDE’s Plasma Mobile.

Unlike Ubuntu Touch, which is a full-fledged mobile operating system, Plasma Mobile is actually a user interface (UI) for mobile devices running on top of a GNU/Linux distribution, such as KDE neon or the Alpine Linux-based postmarketOS.

Read more

What is Mobile PureOS?

Filed under
OS

Since I’ve seen plenty of misconceptions flying around, let’s go through a quick sum up of what is included in PureOS, the default GNU/Linux distribution installed on the Librem 5.

tl;dr: it’s pretty much Debian Stable with GNOME with Purism’s phosh, phoc, libhandy, Calls, and Chats, with some amount of adaptive apps, backports, and cosmetic patches

Read more

Ubuntu 18.04 LTS and 16.04 LTS Receive New Kernel Live Patch

Filed under
Ubuntu

The new kernel live patch comes two and a half weeks after the last kernel live patch and just a day after the major kernel security updates released for all supported Ubuntu released on February 18th. It addresses a total of five security flaws affecting Ubuntu 18.04 LTS (Bionic Beaver) and Ubuntu 16.04 LTS (Xenial Xerus) systems.

Among the fixes, there’s the well-known vulnerability affecting systems with Intel Graphics Processing Units (CVE-2019-14615), which could allow a local attacker to expose sensitive information, as well as a race condition (CVE-2020-7053) in the i915 driver that could let a local attacker to crash the system or execute arbitrary code.

Read more

FreeBSD vs. Linux Scaling Up To 128 Threads With The AMD Ryzen Threadripper 3990X

Filed under
Graphics/Benchmarks

Last week I looked at the Windows vs. Linux scaling performance on the Threadripper 3990X at varying core/thread counts followed by looking at the Windows 10 performance against eight Linux distributions for this $3990 USD processor running within the System76 Thelio Major workstation. Now the tables have turned for our first look at this 64-core / 128-thread processor running on the BSDs, FreeBSD 12.1 in particular. With this article is looking at the FreeBSD 12.1 performance and seeing how the performance scales compared to Ubuntu 20.04 Linux and the Red Hat Enterprise Linux 8 based CentOS Stream.

Read more

Try the GNOME Nightly VM images with GNOME Boxes

Filed under
GNOME

It was a long time overdue but we now have bootable VM images for GNOME again. These VMs are good for testing and documenting new features before they reach distros.

To provide the best experience in terms of performance and host-guest integration, we landed in BoxesDevel (Nightly GNOME Boxes) an option to create GNOME VMs with the correct device drivers and configurations assigned to it. You know…the Boxes way™.

Read more

Red Hat: libinput, backports, edge computing, survey and more

Filed under
Red Hat
  • Peter Hutterer: A tale of missing touches

    libinput 1.15.1 had a new feature: it matched the expected touch count with the one actually seen as opposed to the one advertised by the kernel. That is good news for ALPS devices whose kernel driver lies about their capabilities because these days who doesn't. However, in some cases that feature had the side-effect of reducing the touch count to zero - meaning libinput would ignore any touch. This caused a slight UX degradation.

    After a bit of debugging and/or cursing, the issue was identified as a libevdev issue, specifically - the way libevdev replays events after a SYN_DROPPED event. And after several days of fixing things, adding stuff to the CI and adding meson support for libevdev so the CI can actually run a few useful things, it's time for a blog post to brain-dump and possibly entertain the occasional reader such as you are. Congratulations, I guess.

    The Linux kernel's evdev protocol is a serial protocol where all events have a type, a code and a value. Events are grouped by EV_SYN.SYN_REPORT events, so the event type is EV_SYN (0), the event code is SYN_REPORT (also 0). The value is usually (but not always), you guessed it, zero. A SYN_REPORT signals that the current event sequence (also called a "frame") is to be interpreted as one hardware event [0].

  • What is backporting, and how does it apply to RHEL and other Red Hat products?

    Version numbers are important, but aren't always what they seem at first glance. Red Hat, for example, often backports updates to the software we ship in Red Hat Enterprise Linux (RHEL) to maintain the version that we shipped.

    This is a post to follow to Jean-Sébastien Tougne’s post on finding the latest available kernel. Jean-Sébastien’s article was responding to a question on the Red Hat Learning Community, where the poster was seeking the latest version of the kernel for Red Hat Enterprise Linux. That prompted me to write an article that went deeper into the nuance and strategy the Red Hat Enterprise Linux team employs for this to be magically delicious for administrators.

  • The edge is open: Why scale-out computing doesn’t exist without open hybrid cloud

    The past year has seen the rise of applications that push enterprise IT to the (literal) edge, from using autonomous vehicles guided by artificial intelligence (AI) to vast sensor networks that rely on 5G for instant connectivity and emergency reaction times. Whether it's the Internet-of-Things (IoT), fog computing or edge computing, the intent is to bring computing resources like processing power and storage closer to the end user or data source to improve the ability to scale, responsiveness and the overall service experience.

    We can look at the edge as the newest IT footprint, becoming an extension of the data center just like bare-metal, virtual environments, private cloud and public cloud. In a sense, edge computing is a summation of the other four footprints, blending pieces from each to create infrastructure aimed at tackling specific customer demands that traditional IT models cannot address.

  • Enterprise open source software is growing within innovative companies

    Red Hat has been at the forefront of the global open source discussion, fighting for software freedom in the U.S Supreme Court, and offering free tech products for cloud infrastructure, automation, AI, and much more. After conducting research and interviewing IT leaders from around the world, Red Hat released a report examining the state of enterprise open source in 2020.

    950 IT leaders, unaware that Red Hat was the research sponsor, were surveyed about their practices and opinions on enterprise open source software.

  • Multicluster Management and GitOps Workshop

    There’s so much more to come. In the next few weeks, we’ll dive deeper into customer ideas and finish the design thinking process by producing designs, prototyping them, and finally testing their validity.

    We also want you to join us. To help influence the future of OpenShift, sign up to be notified about research participation opportunities or provide feedback on your experience by filling out this brief survey. If you’d like to attend the next workshop, keep an eye on the OpenShift Commons calendar for upcoming events. Feel free to reach out by email if you have any questions.

Linux Community: Stop Doing This To Windows 10 And MacOS Users

Unpopular opinion time: dual-booting Windows and Linux on your PC is actually great. I do it and I encourage it. Now, if you’ve read my articles here for the last 18 months or so, this statement may seem shocking. To some Linux users, it may come off as downright sacrilegious. I get it. “Prominent Forbes tech writer ditches Windows (1, 2), starts covering Linux full-time while touting all the benefits Linux has over Windows 10, produces a Linux podcast and YouTube channel, then says using Windows is fine?”

Read more

Python Programming

Filed under
Development
  • Introducing our Jinja2 cheat sheet

    Jinja2 is a templating language for Python. While it got its start on the web for use with the Flask framework, it is popular in many other places. Both Flask and Pelican use it to template HTML pages, allowing seperation between style and content. Configuration management frameworks, like Ansible and SaltStack, use it to parametrize their configurations (Ansible playbooks or Salt state files, respectively). This allows the configuration files to take into consideration local machine parameters, for example. The Cookiecutter framework uses it to define its input templates, so that files that need the name of the project or the name of the maintainer can be parametrized.

    Jinja2 is used in many Python projects because it is both web-framework-agnostic and language-agnostic. This means that, for many Python projects in need of a template language, Jinja2's easy API and accessible template-designer documentation is an easy choice. Additionally, its popularity is its own advantage: for a project that needs a tempate language, using Jinja2 means being able to point to the wealth of documentation on writing templates. This makes Jinja2 a great choice for home-grown, internal project.

  • Forks and Threats

    What is a threat? From a game-theoretical perspective, a threat is an attempt to get a better result by saying: "if you do not give me this result, I will do something that is bad for both of us". Note that it has to be bad for both sides: if it is good for the threatening side, they would do it anyway. While if it is good for the threatened side, it is not a threat.

    Threats rely on credibility and reputation: the threatening side has to be believed for the threat to be useful. One way to gain that reputation is to follow up on threats, and have that be a matter of public record. This means that the threatening side needs to take into account that they might have to act on the threat, thereby doing something against their own interests. This leads to the concept of a "credible" or "proportionate" threat.

    For most of our analysis, we will use the example of a teacher union striking. Similar analysis can be applied to nuclear war, or other cases. People mostly have positive feelings for teachers, and when teacher unions negotiate, they want to take advantage of those feelings. However, the one thing that leads people to be annoyed with teachers is a strike: this causes large amounts of unplanned scheduling crisis in people's lives.

    In our example, a teacher union striking over, say, a minor salary raise disagreement is not credible: the potential harm is small, while the strike will significantly harm the teachers' image.

  • Python 101 2nd Edition Fully Funded + Stretch Goals

    The second edition of my book, Python 101, has been successfully funded on Kickstarter. As is tradition, I have added a couple of stretch goals for adding more content to this already hefty book.

  • List Comprehensions in Python

    List comprehensions are often used in Python to write single line statements that create a new list or dictionary by looping over an iterable object. This article will explain how to use list comprehensions in Python, starting with a basic explanation of how for loops work in Python.

    For Loop in Python

    A for loop statement in Python sequentially iterates over members of any object, list, string etc. Compared with other programming languages, its syntax is much cleaner and doesn’t require manually defining iteration steps and starting iteration. Though there are ways to make its behavior the same as other programming languages (won’t be covered in this article). You can also exercise some control over for loops by using statements like continue, break, pass etc.

  • Getting Started Testing with pytest

    This talk has been through a few iterations. In 2011, I gave a presentation at Boston Python about Getting Started Testing, based on the standard library unittest module. In 2014, I updated it and presented it at PyCon. Now I’ve updated it again, and will be presenting it at Boston Python.

    The latest edition, Getting Started Testing: pytest edition, uses pytest throughout. It’s a little long for one evening of talking, but I really wanted to cover the material in it. I wanted to touch on not just the mechanics of testing, but the philosophy and central challenges as well.

  • Learn To Code By Playing These Games

    Apart from an ambition to become a programmer and have an interesting well-paid job, there are plenty of reasons to learn coding even for those who see themselves in other professions.

    Programming can be helpful in many areas. It develops a structured and creative approach to problem-solving. If you know how to code, you also know how to break a problem down to smaller tasks with specific actions and measurable results.

    Your way of thinking becomes more logical and organized. Coding broadens your mind, so you start to see problems in the light of solutions. And of course, it teaches to be patient. Logic, problem-solving, persistence: sounds like a great set of skills for almost any professional.

  • The Best Android Apps for Learning How to Code

    As a senior software developer, I’m often asked for advice on learning programming. Since I believe that the tech market always benefits from having more high-quality developers, I’m happy to share tips and hacks that helped me become a better software engineer.

    However, as soon as I say: “Read this and that book, check out this reference guide. Taking these courses is a must, and don’t forget to be scanning through community forums all the time,” I see people’s enthusiasm fade away until they hit me with “I don’t have time to do all that.” Then they leave.

    Here’s the thing I’d love to state for the record — learning programming is not about making time. It’s about consistency. Since the market constantly changes and evolves, a developer who devotes 30 minutes a day to education is more flexible and has a better chance of adapting to new trends than a CS graduate who hasn’t learn a new program since getting out of college.

Fedora VS Ubuntu

Filed under
Red Hat
Ubuntu

Linux is superior to Windows in a lot of ways. It gives you the freedom to shape your system according to your desire. You can customise almost everything to your taste. Don’t like the way your login screen looks, well change it according to your liking. You can change your Linux UI (User Interface) so that it looks like Windows if you are more comfortable that way. Linux is way less resource-hungry than Windows, meaning it runs a lot smoother. You can even customise how much cache and ram should Linux use. But despite all these good things switching from Windows to Linux can be a lot of hassle as there are a lot of distros or types of Linux to choose from and most people get confused. Different Linux distros are for different people. Here I’ll be comparing the two biggest distro releases, i.e., Ubuntu and Fedora

Read more

40 Useful Linux Server Commands for Beginners in 2020

Filed under
Linux

Most of the virtual world is powered by Linux today. Admins and network owners like to take control of their web presence by utilizing Linux to its fullest extent. If you are a starting Linux user looking to hone your system administration skills to the next level, learn these 40 Linux server commands mentioned below. Our team of veteran sysadmins has curated this guide for facilitating your learning experience. Most of these commands are pretty basic, but if used carefully, they will help you manage and monitor your Linux servers much more effectively.

Read more

Syndicate content

More in Tux Machines

Graphics: RADV Vulkan Driver, Intel Codecs and Defects, NVIDIA Firmware

  • RADV Vulkan Driver Adds Option For Zeroing Out Video Memory

    New to Mesa 20.1-devel is a new option for the Radeon Vulkan "RADV" driver to enable zeroing out video memory allocations. This isn't a new concept with other graphics drivers offering similar functionality for zeroing out the vRAM either for security reasons or working around pesky game/app issues. For example, RadeonSI OpenGL zeros out the vRAM for Rocket League to workaround buggy behavior with that game. But zeroing out the video memory normally isn't done by default for all allocations due to performance reasons. With the new flag to zero vRAM allocations for the RADV Vulkan driver it was done by Valve's Samuel Pitoiset. In this case he mentions it's in part for "future work."

  • Intel Gen12/Xe Graphics To Support 12-Bit HEVC/VP9 Decode

    We are learning more about the media engine capabilities with the forthcoming Intel "Gen12" (Xe) Tiger Lake graphics. The documentation for Intel's open-source media-driver that exposes VA-API capabilities on the Linux desktop was recently updated. That updated Intel VA-API Media Driver points to Intel Gen12 dropping VP8 video capabilities but expanding when it comes to 12-bit codec support.

  • Intel Sends Out Latest Patches For Mitigating Graphics Flaw On Ivybridge/Haswell

    It has been one month and a few days since Intel first made public the need for graphics driver patching of Gen 7/7.5 graphics for older Ivybridge / Haswell hardware to fix a graphics hardware flaw. That vulnerability also affected the common Intel Gen9 graphics but there the mitigation was uneventful and quickly merged without causing any performance hit. But for Ivybridge/Haswell one month later the graphics driver mitigation for CVE-2019-14615 is still being addressed. This vulnerability is also known as iGPU Leak by the researchers that discovered it but for the Gen7/Gen7.5 protection the mitigation has been particularly problematic. With the initial Gen7/Gen7.5 patches posted in mid-January there was a huge hit to the graphics performance while Intel worked towards no performance loss.

  • NVIDIA Posts Firmware Needed For Open-Source GeForce 16 Series Acceleration

    As written about last week, in the works for the Linux 5.7 kernel this spring is open-source NVIDIA "Nouveau" acceleration for the GeForce 16 series. That code is currently sitting in the Nouveau development tree until landing in DRM-Next for Linux 5.7, but NVIDIA has now posted the necessary firmware binaries needed for enabling the hardware acceleration on these Turing GPUs.

EasyOS version 2.2.11 released (Easy Buster version 2.2.11)

EasyOS versions 1.x are the "Pyro" series, the latest is 1.3. Easy Pyro is built with packages compiled from source using 'oe-qky-src', a fork of OpenEmbedded. Consequently, the builds are small and streamlined and integrated. The Pyro series may have future releases, but it is considered to be in maintenance status. The "Buster" series start from version 2.0, and are intended to be where most of the action is, ongoing. Version 2.0 was really a beta-quality build, to allow the testers to report back. The first official release was 2.1. The main feature of Easy Buster is that it is built from Debian 10 Buster DEBs, using WoofQ (a fork of Woof2: Woof-CE is another fork, used to build Puppy Linux). The advantage of Buster over Pyro is access to the large Debian package repositories. That is a big plus. Read more More in: EasyOS version 2.2.11 released Also: Working-partition ext4 filesystem shuts down unclean

Games: Dad Quest, Unrailed, SteamWorld, Dying Light, Steam and SGT Puzzles Collection

  • Children are indestructible weapons in 'Dad Quest' - Linux Beta out now

    Possibly one of the quirkiest platformers I've ever come across, Dad Quest is now officially in Beta for Linux on Steam. A story-based platformer, with what developer Sundae Month claim is their own 'unique brand of comedy'. It's set in a world where children are indestructible weapons, ready to be hurled towards enemies. As a parent, I will admit it sounds amusing. According to the description you will teach your child new combat skills using 'a variety of deadly toys'.

  • Hilarious co-op train track building game 'Unrailed!' is now officially on Linux

    After a little while being in Beta, Indoor Astronaut have today released the Linux (and macOS) versions of Unrailed! so they're officially supported.

  • The full SteamWorld series is heading to Google Stadia "soon"

    While they're seemingly not giving an exact date just yet, Thunderful Publishing and Image & Form announced today that multiple SteamWorld titles are heading to Google Stadia.

  • Dying Light gets a massive update with a 'Story Mode' plus a free weekend

    Techland are keeping their baby alive a while longer (especially after delaying Dying Light 2), and it appears they didn't forget it turned 5 last month with a huge update and celebration. Since Dying Light has been out five years they're kicking off a big celebration. It's having a Free Weekend on Steam for the first time! A really good opportunity to see what the fuss is all about and I sure do fuss about it a lot. It really is a great game! One of my absolute favourites.

  • How to use community control schemes in Steam for Linux

    Sick of plugging your gaming controller into your Linux PC, only to find that the game does not have any gamepad controls set up? As it turns out, Steam has a solution for that. Did you know that you can add custom controller layouts for your Steam games on Linux? It’s true! Thanks to Steam’s stellar controller support on Linux, anyone can bind custom controls to their gaming controller! Follow along to learn how to do it on your system!

  • SGT Puzzles Collection 0.2.5 Released

    SGT Puzzles Collection, or simply sgt-launcher, is a game launcher and wrapper for Simon Tatham’s Portable Puzzle Collection, a popular collection of logic games by the developer of PuTTY. Joining the Xubuntu package set way back in Xubuntu 17.10 "Artful Aardvark", SGT Puzzles Collection has quietly provided Xubuntu users with a variety of distracting games for several releases. If you want to learn more about the project, check out my introductory blog post.

Linux Foundation: LF Networking, Xen Project Outreachy Connected to Microsoft, FUD Against FOSS Connected to Snyk and Synopsys (Black Duck, Microsoft 'Outposts')

  • LF Networking Expands Ecosystem — Adds Members, Leads Initiatives to Automate 5G deployments and accelerate Automation

    LF Networking (LFN), which facilitates collaboration and operational excellence across open networking projects, today announced the addition of nine new members.The project welcomes new Silver members A10 Networks, AMD, Codilime, Mirantis, Robin.io, Solutions by STC, ULAK, and Xilinx, and Associate members University of California San Diego, and University of Surrey. “It’s great to kick off 2020 by welcoming a new swath of global members to the LFN community,” said Arpit Joshipura, general manager, Networking, Edge & IoT, the Linux Foundation. “We’re expanding our member ecosystem in tandem with growth across initiatives that harmonize open source an open standards, enable automated testing and deployment, and further Cloud Native Network Functions as open source becomes more mainstream.” The newest LFN members will work alongside the 100+ existing member organizations to drive development, testing and implementation of LFN’s networking projects, including FD.io, ONAP, OpenDaylight, OpenSwitch, OPNFV, PNDA, SNAS, and Tungsten Fabric.

  • Xen Project is Participating in May 2020 to August 2020 Outreachy Internships Round [Ed: Microsoft continues to 'buy the agenda' of the 'Linux' Foundation]

    The Xen Project is excited to be participating in the Outreachy internship program which supports diversity in free and open source software. The Xen Project’s participation in this round is being sponsored by Microsoft (1 internship). Interns have to make an initial application which primarily verifies eligibility to the Outreachy program by February 25 at 4pm UTC: for more information see here. Applicants with an approved initial application can start to enquire about projects from March 5th and can then formally apply. During the application period, applicants are expected to contribute to the Xen Project while in parallel working on the detailed application. The final application deadline is April 7, 2020 at 4pm UTC. Applicants interested in becoming a Xen Project Intern can see our projects here and here (link not live until March 5th).

  • New Linux Foundation | Harvard Study Reveals Hard Truths, Actionable Steps for Open Source Security [Ed: Linux Foundation now works with Microsoft proxies/allies Snyk and Black Duck to smear FOSS]

    Open source has made its way into almost every server farm, consumer device and service we use, and it’s done so without most people even realizing it. Almost no one knows what is in their phones, apps or business data centers. This is wreaking havoc on the global supply chain, so much so that the U.S. House of Representatives Energy and Commerce Committee sent a letter to the Linux Foundation inquiring about it. The Linux Foundation did its best to summarize a very complex situation in its response. So with the help of Harvard researchers and companies like Snyk and Synopsys, we set out to produce our second Census of open source software but this time, with a focus on what open source software projects show up in production applications. At the heart of this is a desire to understand how we take a preventative care approach to security, rather than a reactionary one.