Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

  • Load a list of lines into an array (easily) | Smonff [blogs.perl.org]

    This blog post describes a common task my colleagues ask often about repeating a dynamic string in a defined token and adding some or, and, = in between, plus finishing smartly.

  • Stupid RCU Tricks: Torturing RCU Fundamentally, Part II - Paul E. McKenney's Journal — LiveJournal

    Further reading of the Linux-kernel Documentation/RCU/Design/Requirements/Requirements.rst file encounters RCU's publish/subscribe guarantee. This guarantee ensures that RCU readers that traverse a newly inserted element of an RCU-protected data structure never see pre-initialization garbage in that element. In CONFIG_PREEMPT_NONE=y kernels, this guarantee combined with the grace-period guarantee permits RCU readers to traverse RCU-protected data structures using exactly the same sequence of instructions that would be used if these data structures were immutable. As always, free is a very good price!

    However, some care is required to make use of this publish-subscribe guarantee. When inserting a new element, updaters must take care to first initialize everything that RCU readers might access and only then use an RCU primitive to carry out the insertion. Such primitives include rcu_assign_pointer() and list_add_rcu(), but please see The RCU API, 2019 edition or the Linux-kernel source code for the full list.

  • Andrea Grandi – Set specific environment variables activating a Python virtual environment

    When using Python virtual environments it can be useful to have certain environment variables automatically set when we activate it. For example we can have a projects that needs to connect to a database or we may need specific settings to run a service. Automating this process makes sure we don't forget about setting everything we need.

  • Solving Django error 'NoReverseMatch at' URL with arguments '()' and keyword arguments '{}' not found. - https://pythoncircle.com

    Solving Django error 'NoReverseMatch at' URL with arguments '()' and keyword arguments '{}' not found, URL not found in Django, No reverse match in Django template error

  • Episode #31: Python Return Statement Best Practices and Working With the map() Function – The Real Python Podcast

    The Python return statement is such a fundamental part of writing functions. Is it possible you missed some best practices when writing your own return statements? This week on the show, David Amos returns with another batch of PyCoder’s Weekly articles and projects. We also talk functional programming again with an article on the Python map function and processing iterables without a loop.

    We cover several other articles and projects from the Python community including, interactive data visualization with Pygal, everything you need to know about namedtuples, PEP 638 syntactic macros, python for kids, the new Nvidia Jetson board, and a reinforcement learning project named football.

More in Tux Machines

Linux Candy: Hollywood – fill your console with Hollywood melodrama technobabble

Linux Candy is a series of articles covering interesting eye candy software. We only feature open source software in this series. Some of the programs in this series are purely cosmetic, frivolous pieces of fun. Candy at their finest. But we also include some programs that aren’t purely decorative. There’s a diverse range of programs included in this series. Programs such as eDEX-UI and Variety are actually highly practical programs. ASCIIQuarium has soothing and relaxing qualities for your desktop. Other programs included in this series (such as lolcat, cacafire) are included purely for their decorative qualities. And then there’s some really fun software that just raises a smile or two. Hollywood is a 102 line script that occupies your console with tech geekery. Read more

IBM/Red Hat/Fedora Leftovers

  • Open Source Defies Conflicts of Interest: Red Hat Tells All

    Only two parts of the guidelines state any sort of limit on company associates, she clarified. The first is that projects use an Open Source Initiative-approved license. The second is that if an associate is asked to sign a third-party contributor agreement, they should check with Red Hat’s legal team.

  • Red Hat’s Paul Cormier On How Partners Win The Hybrid Cloud
  • ANZ moves internet banking to Red Hat OpenShift

    The Australia and New Zealand Banking Corporation (ANZ) in October last year turned to Red Hat for help to bring its internet banking proof of concept to life. The bank wanted to modernise its internet banking platform that had passed its end of life and required extended support for some years. Deciding on a Red Hat OpenShift platform, tech area lead for ANZ's digital arm Raghavendra Bhat said the bank wanted to not constrain itself to a cloud-only solution. ANZ has now migrated 30% of its traffic to the platform and within the first hour of go-live, it processed around AU$2.9 billion worth of payments. Speaking with media on Wednesday, Bhat said the bank's expectation is to complete about 80% of the traffic transition onto the new platform by November, with complete transition by March. He said there has been no "cookie-cutter approach" for how it has lifted and shifted the old system onto the new one.

  • Juggling Ansible, OpenShift and K8s? This is for you: Red Hat couples automation to cluster management

    Red Hat is integrating its Ansible automation platform and Advanced Cluster Management for Kubernetes. “We've known people use Ansible and OpenShift and Kubernetes together for years,” Red Hat senior manager Richard Henshall told The Register. “But here we get a bona fide integration between the two.” Typical uses would be to automate deploying system updates, configuring load balancers, or scaling server resources. The integration is in technical preview. “We’ve got the initial plumbing working, so it’s exposed through Advanced Cluster Management (ACM),” said Henshall, referring to the company’s tool for controlling OpenShift clusters and applications.

  • About me and my life ...: Fedora 32 : Can be better? part 016.

    Today I tested the Unity 3D version 2020 on Linux Fedora 32.Maybe it would be better to integrate Unity 3D or Unity Hub in Fedora repo just like other useful software like Blender 3D, GIMP.It will improve the user experience and attract new users and developers for this distro.I download the AppImage from Unity website and I run with these commands...

  • Why it's important to keep the cloud open | Opensource.com

    There's a famous sticker featured on many laptop lids; it goes something like this: "the 'cloud' is just somebody else's computer." There's a lot of truth to that sentiment, but it's not exactly technically accurate. In fact, cloud computing isn't just somebody else's computer; it's somebody else's hundreds and thousands of computers. Years ago, "the cloud" did indeed just refer to the simplified graphic in a flowchart, so the illustrator didn't have to try to accurately depict the multiple networks that comprise the World Wide Web. Now, however, the cloud isn't just describing traffic or small-time remote file storage offers. The cloud of today is a platform of interconnected computational nodes working together to keep containerized Linux images, each running a distinct service (or "microservice" in developer lingo), functioning as applications distributed over the whole world.

  • Red Hat talks and workshops at NodeConf Remote 2020 - Red Hat Developer

    Red Hat is heading to NodeConf Remote 2020 with IBM to demonstrate a few of our favorite production-quality tools and solutions, all designed to help developers maintain their productivity while successfully navigating the vast and rapidly-changing cloud-native landscape. Attend our conference talks and workshops, or talk with an expert during the virtual booth crawl and get a look at our latest workflows for building cloud-native JavaScript solutions on Kubernetes and Red Hat OpenShift. Our open source experts can show you how to integrate JavaScript and Node.js with other technologies like authentication, distributed data caching and streaming, or business automation.

Ubuntu: OpenStack in Ubuntu, AfricaCom and Full Disk Encryption

  • OpenStack Victoria for Ubuntu 20.10 and Ubuntu 20.04 LTS

    The Ubuntu OpenStack team at Canonical is pleased to announce the general availability of OpenStack Victoria on Ubuntu 20.10 (Groovy Gorilla) and Ubuntu 20.04 LTS (Focal Fossa) via the Ubuntu Cloud Archive.

  • Canonical & Ubuntu Join AfricaCom Virtual 2020

    This year, AfricaCom becomes a virtual event as part of the new Virtual Africa Tech Festival – the largest and most influential tech and telecoms event on the continent. Canonical and Ubuntu will be joining as a Lead Stream Sponsor, introducing the Digital Infrastructure Investment stream of sessions and exhibits with a speaker session by Mark Shuttleworth – Canonical’s founder and CEO.

  • Full Disk Encryption, without LVM, by default - Call for comments

    Historically Desktop / Server, only configured LUKS full disk encryption with an LVM layer. Thus ones root ext4 filesystem was an LVM volume, on an VG group, on LUKS, on a GPT partition. The upcoming Ubuntu Core 20 has full disk encryption with TPM support. In that configuration ext4 filesystem is created directly on the LUKS volume which is directly on a GPT partitition. For the upcoming HH 21.04 release, I want to change Desktop/Server, to also install in a similar fashion. Specifically such that by default, we simply use ext4+LUKS without LVM. It seems to me that despite having LVM layer, it’s not actually used or appreciated much. Would you be ok with having full-disk encryption without LVM by default?

  • Ubuntu 21.04 Installer Might Allow EXT4 Encryption Without LVM - Phoronix

    An early proposal by Ubuntu/Canonical developer Dimitri John Ledkov is proposing full disk encryption by default without LVM. With Ubuntu Core 20 there is going to be support for TPM-backed full disk encryption created directly on the LUKS volume and in turn directly on a GPT partition without LVM. For Ubuntu 21.04, the developers are looking at changing the Ubuntu desktop/server installers to potentially allow similar EXT4 encryption directly atop LUKS without LVM.

15 Open-Source Push Notification Projects, Alternative to Apple and Google (Firebase) services

A push notification is the message that pops up on your mobile iOS or Android, and sometimes on your desktop or a web browser. It's often used by application publishers and authors to notify the end-user's device about certain event. It looks like SMS text message and local mobile alerts, but they are application oriented only appears to user who use the application. Users can stop any push notification anytime from their mobile settings in the notifications section. However, they are essential for many applications so the user should be selective when selecting the app. Push technology (server push) are technical term for internet-based communication that occurs when a server notifies the client about certain transaction (notification). Read more