Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • GNU Toolchain Begins Adding ARMv8.7-A Support

    The GNU compiler toolchain has begun landing Arm's contributions around ARMv8.7-A architecture support.

    While all of the ARMv8 cores to date remain with older versions of the architecture and even cases like ARMv8.2-A with the Cortex-A78 and X1, Arm continues working on new ARMv8 revisions and getting that software support in place well ahead of hardware availability.

  • Software correctness is a lot like flossing

    Which means that they’re not seeing the bigger picture. An explanation of why programmers “don’t care about correctness” shouldn’t just be post-hoc rationalizations. Here’s my main argument for why most programmers don’t seem to care about software correctness:

    Which is worse: buggy software or a root canal?

    How often do you floss?

    Whenever I pose this in a discussion, I get the same answer: everyone thinks root canals are worse, and at most half of the group flosses daily. That’s ridiculous! Flossing takes like three minutes a day. But people don’t do it because it’s fiddly, annoying, and inconvenient. If people are unwilling to do something simple to keep their teeth from rotting, why should we expect people to use annoying inconvenient tools to improve software?

  • Javascript Alert – Linux Hint

    Javascript is the most known language of the web. Javascript is widely used in front-end development as well as in the back-end. Javascript provides a lot of built-in functions to help in development. In this article, we are going to learn one of the javascript’s built-in alert() method, which is used to show pop-ups over the screen to either display a message or show a warning. The alert box is different from any other message or text on the screen. It is a pop-up that contains a message/text with an “OK” button. The user won’t be able to do any task while an alert box is over the screen, and he/she clicks the “OK” button. So, it is not recommended, if not needed. So, let’s have a look at what is an alert box and what are the different ways to use it.

  • Javascript Print Page – Linux Hint

    Javascript is a scripting or programming language, which is most commonly used nowadays in the web industry. It provides a lot of built-in objects, functions, and methods to perform several tasks. In this article, we are going to have a look at one of them which is used to print the web page. So, let us get started!

    You must have encountered some websites that provide a button to print the whole web page, or you must have felt the need to print a web page but there is no print button there. Javascript’s built-in object window provides us a method named print(). We can use window.print() function to fulfill this requirement.

  • Planned obsolescence | Playing Perl 6␛b6xA Raku

    Twelve years ago Larry planned the obsolescence of one of my modules. His cunning plan was executed by lizmat a fortnight ago. If you are building Rakudo from source you take another shortcut now.

  • Get Started With Django Part 3: Django View Authorization – Real Python

    In part 1 of this series, you learned the fundamentals of Django models and views. In part 2, you learned about user management. In this tutorial, you’ll see how to combine these concepts to do Django view authorization and restrict what users can see and do in your views based on their roles.

    Allowing users to log in to your website solves two problems: authentication and authorization. Authentication is the act of verifying a user’s identity, confirming they are who they say they are. Authorization is deciding whether a user is allowed to perform an action. The two concepts go hand in hand: if a page on your website is restricted to logged-in users, then users have to authenticate before they can be authorized to view the page.

    Django provides tools for both authentication and authorization. Django view authorization is typically done with decorators. This tutorial will show you how to use these view decorators to enforce authorized viewing of pages in your Django site.

  • PyCharm 2020.3 EAP #3

    The third build of PyCharm 2020.3 is now available in the Early Access Program with features and fixes for a smoother, more productive experience.

    We invite you to join our EAP to try out the latest features we have coming up, test that they work properly in your environments, and help us make a better PyCharm for everyone!

  • Change Tick Frequency in Matplotlib

    Matplotlib is one of the most widely used data visualization libraries in Python. Much of Matplotlib's popularity comes from its customization options - you can tweak just about any element from its hierarchy of objects.

    In this tutorial, we'll take a look at how to change the tick frequency in Matplotlib. We'll do this on the figure-level as well as the axis-level.

  • Python Software Foundation News: Key generation and signing ceremony for PyPI

    On Friday October 30th at 11:15 AM EDT the Python Software Foundation will be live streaming a remote key generation and signing ceremony to bootstrap The Update Framework for The Python Package Index. You can click here to see what time this is in your local timezone.

    This ceremony is one of the first practical steps in deploying The Update Framework to PyPI per PEP 458.

    The Python Software Foundation Director of Infrastructure, Ernest W. Durbin III, and Trail of Bits Senior Security Engineer, William Woodruff, will be executing the runbook developed at https://github.com/psf/psf-tuf-runbook.

    For transparency purposes a live stream will be hosted from the Python Software Foundation's YouTube channel. Please subscribe to the channel to be notified when the stream is live if you'd like to follow along.

  • Generating random avatar images in Django/Python - Peterbe.com

    But most people don't have their mugshot on Gravatar.com unfortunately. But you still want to display an avatar that is distinct per user. Your best option is to generate one and just use the user's name or email as a seed (so it's always random but always deterministic for the same user). And you can also supply a fallback image to Gravatar that they use if the email doesn't match any email they have. That's where this blog post comes in.

  • How to work with Files in Python | FOSS Linux

    In this tutorial, we see how to work with files in python, such as creating files, reading data from files, writing data to files, removing, and renaming files.

  • Lang team Backlog Bonanza and Project Proposals

    A month or two back, the lang team embarked on a new initiative that we call the "Backlog Bonanza". The idea is simple: we are holding a series of meetings in which we go through every pending RFC, one by one, and try to reach some sort of determination about what to do with it. Once we've finished that, we can start in on categorizing other forms of backlog, such as tracking issues.

  • Core team membership changes

    The core team has had a few membership updates in the last month, and we wanted to provide an update.

    To start, Florian Gilcher is joining the Core team as a full member. Florian has been attending meetings as an observer since March 2019. He is the lead of the Community Events team, and has done a lot of work in the open source world, with plenty of insight to offer especially as we look to form a Rust Foundation.

    There are also two folks stepping back from the team. Carol Nichols has been a member of the team for three years, and she is stepping back to make more time for other projects in the community, including crates.io and her continued work on the Rust book. Nick Cameron has recently welcomed a second child (congratulations!) and is leaving the core team to be able to focus more on his family and his work at PingCAP. He will continue to be around in the Rust community.

  • This Week in Rust 362

More in Tux Machines

today's howtos

  • Capturing Decrypted TLS Traffic with Arkime - NETRESEC Blog

    The latest version of Arkime (The Sniffer Formerly Known As Moloch) can now be fed with a real-time stream of decrypted HTTPS traffic from PolarProxy. All that is needed to enable this feature is to include "pcapReadMethod=pcap-over-ip-server" in Arkime's config.ini file and start PolarProxy with the "--pcapoveripconnect 127.0.0.1:57012" option. PolarProxy will then connect to Arkime's PCAP-over-IP listener on TCP port 57012 and send it a copy of all TLS packets it decrypts.

  • How to rebalance your btrfs filesystem on your Linux data center servers - TechRepublic

    The btrfs file system is quickly becoming more widespread. It's used on a number of Linux distributions and offers plenty of features that make sense in a data center environment--features like snapshots, load balancing, online defragmentation, pooling, and error detection. To get the most out of the btrfs file system, you're going to need to know how to use some of the more advanced features. One such feature is called balancing (or rebalancing).

  • How to install NetBeans 12 on Linux Mint 20 - YouTube

    In this video, we are looking at how to install NetBeans 12 on Linux Mint 20.

  • How To Install AnyDesk on Ubuntu 20.04 LTS - idroot

    In this tutorial, we will show you how to install AnyDesk on Ubuntu 20.04 LTS. For those of you who didn’t know, AnyDesk is the world’s most comfortable remote desktop application. Access all your programs, documents, and files from anywhere, without having to entrust your data to a cloud service. You can say it’s an alternative to the TeamViewer, which is available free. Anydesk provides a faster remote connection than any other existing remote desktop application. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step by step installation of AnyDesk Remote Desktop on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian based distribution like Linux Mint.

  • How to install Sonic Robo Blast 2 Kart (SRB2Kart) on a Chromebook

    Today we are looking at how to install Sonic Robo Blast 2 Kart (SRB2Kart) on a Chromebook. Please follow the video/audio guide as a tutorial where we explain the process step by step and use the commands below.

Games: Stadia, Godot Engine and More

  • Six new games live for Stadia Pro, Super Bomberman R Online now free to play + more | GamingOnLinux

    If it's not clear yet - Stadia Pro is an entirely optional subscription. You get to claim and keep free games, as long as your subscription remains active. If you stop it, you lose those games until you subscribe again and then you get them back - it works like PSPlus on the PlayStation. Otherwise, you buy games from Stadia like any other store. You can also now play Super Bomberman R Online, the 64 player Battle Royale game completely free to play on Stadia. That's now the second free to play game following Destiny 2 going free on Stadia back in November. Giving you another easy game to try the service with which is what it has been lacking.

  • Godot Engine - Tiles editor progress report #1

    As you may already know, I now have been hired for a month to work on the TileMap and TileSet editors. My goal here is to improve the UX of working with tiles, making it both easier to use and more powerful. So here is a first progress report on how things are going. All the work presented here is based on the proposal I made on the godot-proposals repository. The implementation might end up a little bit different, but the proposal will give you a preview of what I am aiming for.

  • The Humble Explore & Expand Bundle is live with plenty of space strategy | GamingOnLinux

    Ah, my favourite mix of genres. Space, sci-fi and strategy. I am a self-confessed huge space nerd, so a bundle of games like this is right up my street. The Linux-supported titles are great in this bundle but there's not many of them in total, it's a small bundle. Here's what to expect from it.

  • The Yogscast Jingle Jam 2020 Bundle is up to support charity with lots of games | GamingOnLinux

    Want to get a bunch of awesome games and support numerous charities? The Yogscast Jingle Jam 2020 Bundle is live. Unlike other years, they're not doing it through Humble Bundle but instead with Tiltify which is a dedicated charity-based fundraising platform. The whole event runs from now until December 14, 2020 which various livestreams being done which you can see the schedule for here.

Making the Switch to elementary OS

It all started with an upgrade. In October, 2020 version 20.10 of Ubuntu came out. As I usually do, I duly clicked the button to start the process. That upgrade seemed to go smoothly — everything installed quickly with no conflicts or error messages. I walked away to make a cup of white tea, and when I came back the installation had finished and my laptop rebooted. It was then that I noticed a problem. A fairly big one. Instead of a login screen, I saw a field of aubergine (the colour, not the vegetable). I thought that my laptop was sleeping, so I pressed some keys to try to wake it up. It didn't work. I rebooted, but I was faced with the same problem. Read more

IBM/Red Hat Leftovers

  • Students, learn new tech skills and provide meals to children in need

    To celebrate the season of giving, we’re launching a tech for good campaign as part of the Master the Mainframe enterprise coding contest. For students who spend an hour checking out IBM’s enterprise computing coding challenge, IBM will donate four meals to World Food Programme’s #ShareTheMeal initiative.

  • IBM Cloud Offers Quantum-Safe Cryptography Services

    IBM announced new cloud services and technologies to protect existing data in the cloud and prepare for potential threats associated with advances in quantum computing.

  • IBM Cloud Delivers Quantum-Safe Cryptography and Hyper Protect Crypto Services to Help Protect Data in the Hybrid Era

    IBM (NYSE: IBM) today announced a series of cloud services and technologies designed to help clients maintain the highest available level of cryptographic key encryption protection to help protect existing data in the cloud1 and prepare for future threats that could evolve with advances in quantum computing. Pioneered by IBM Research scientists, the company is now offering quantum-safe cryptography support for key management and application transactions in IBM Cloud®, making it the industry's most holistic quantum-safe cryptography approach to securing data available today.

  • 2021 Global Tech Outlook, A Red Hat Report: Digital transformation, security and hybrid cloud use stand out

    When we surveyed IT leaders this year to learn about their technology goals for 2021, we were curious about the impact of COVID-19 on planning and how we can best meet our customers where they are for the coming year. What we learned? Digital transformation and security remain important, and more than a quarter of those surveyed have a hybrid cloud strategy heading into 2021. From July through September we surveyed more than 1,400 IT professionals — most from companies with more than $100 million in annual revenue. This included a mix of Red Hat customers and a broader industry panel.

  • Red Hat Software Collections 3.6 Now Generally Available - Red Hat Developer

    Red Hat Software Collections 3.6 and Red Hat Developer Toolset 10 for Red Hat Enterprise Linux (RHEL) are now Generally Available. An alternative to the default RHEL toolset, Software Collections provides a differentiated and eclectic mix of tools that developers can use on a desktop or in production. Red Hat Software Collections are use case-specific tools and include the most current, stable version of dynamic languages, open source databases, web servers, and other critical development components. The Red Hat Software Collections 3.6 release features four new collections and four that have been updated.

  • Red Hat Software Collections 3.6 and Red Hat Developer Toolset 10 now Generally Available

    The latest version of Red Hat Software Collections is now generally available, bringing the latest, stable and supported open source developer tools to Red hat Enterprise Linux 7.

  • November Success Stories: Early adopters of RHEL for SAP Solutions on IBM POWER9 and moreT

    While holiday festivities will look different this year, December—for many of us—will likely still include a flurry of closing out projects and tying up loose ends to set up for the upcoming year. As you sit down at your kitchen island with a cup of hot chocolate (or tea, coffee, lemon water, etc.) and open your mobile banking app to begin planning your 2021 budget, will you pause to wonder how Red Hat technologies have been in action behind the scenes to help shape not only the device you’re accessing but also the environment you’re sitting in? Maybe not, but we’re here to help get those thoughts flowing. As this month is a time to look ahead both at home and at work, we’re sharing some new customer success stories that may help you strategize goals for IT optimization in your enterprise or think about how digital transformation can also lend to agile practices for your staff. Let these success stories begin to frame how Red Hat technologies can help your enterprise meet customer needs in the new year.

  • Start addressing integration requirements rapidly with the IBM Cloud Pak for Integration Quick Start for AWS – IBM Developer

    For any integration platform to be effective in a hybrid multicloud environment, it must support different cloud providers. You require flexibility to select cloud providers that most effectively address your needs across cost, performance, and security requirements, without fear of vendor lock-in. With this in mind, Cloud Pak for Integration is built on Red Hat OpenShift and supports all the major cloud providers including IBM Cloud, Azure, AWS, and Google Cloud. Need hands-on experience? Want to jump-start a proof of concept? Not sure what integration capabilities you’ll need? IBM, working closely with our partners at AWS, makes it easy with the Quick Start for IBM Cloud Pak for Integration on AWS. Employing best practices from both IBM and AWS, you can deploy a full range of integration capabilities in a production-grade multi-availability zone topology with a single click. So, jump in and start experimenting with different integration patterns that can help facilitate your transition to hybrid cloud.