Language Selection

English French German Italian Portuguese Spanish

today's howtos

More in Tux Machines

Programming: AWK, Raspberry Pi, Python and CloudBees

  • Another surprising AWK trick

    So why is AWK ignoring everything but the numbers in returning "626"? Because "Strings are converted to numbers and numbers are converted to strings, if the context of the awk program demands it". In this case AWK is told to subtract field 3 from field 2. Subtraction being a numbers operation, AWK treats the strings in the fields as numbers, and since " lid" and ")" aren't numbers, they're ignored.

  • Interactive (Touch) Musical Christmas Tree

    In this video I should how to build a capacitive touch Christmas tree that allows you to play music just by touching the ornaments. All it takes is a little bit of Python code, a Raspberry Pi, and a Bare Conductive Pi Cap.

  • How Machine Learning Will Generate up to $2 Trillion in Value for the Manufacturing Industry

    Open-Source Technologies Provide Innovative Solutions With the right skill set, data scientists in the manufacturing industry can provide a strategic advantage by implementing the use cases discussed here using Python and cutting edge open-source libraries like TensorFlow, scikit-learn, and scikit-image. For this reason, many manufacturing organizations would realize greater value from an enterprise machine learning platform that incorporates open-source libraries and tools rather than a point solution designed for a single use case.

  • Significant changes for some error messages in Python 3.8

    As I work on including more exceptions in Friendly-traceback, I am mostly pleasantly surprised by generally more precise error messages. For example, in Python 3.7, the following __debug__ = 1 would yield "SyntaxError: assignment to keyword" which likely would baffle almost everyone looking up the list of Python keywords. In Python 3.8, that message has been replaced by the more precise: "SyntaxError: cannot assign to __debug__". Much better, in my opinion, even though one may be surprised to learn about this constant.

  • SunPy Receives NASA Grant, Helps Generate Parker Solar Probe Results

    The one-year proposal, entitled “Supporting and extending SunPy for the heliophysics community,” will create a spectral datatype and provide more coordinate systems in SunPy. In addition, code snippets demonstrating the use of SunPy and other heliophysics-focused Python packages will also be created. Finally, an extensive analysis of the codebase will be performed in order to improve SunPy’s long-term maintainability. The PI is Jack Ireland (NASA GSFC), and the co-I is Andy Terrel (NumFOCUS). In addition, two SunPy affiliated packages were selected for funding from the same NASA program. [...] A co-author on one of the results papers, David Stansby, previously published a short paper called “Predicting Large-scale Coronal Structure for Parker Solar Probe Using Open Source Software.” That short paper provided a completely open toolkit (pfsspy), built on the NumFOCUS stack, to make predictions of the Sun’s magnetic field structure. One of the key results presented in the new Nature paper grew directly out of this work, which relies heavily on SunPy, NumPy, SciPy, and Matplotlib.

  • The Apache Software Foundation Welcomes CloudBees as its Newest Targeted Sponsor at the Platinum Level

    The Apache® Software Foundation (ASF), the all-volunteer developers, stewards, and incubators of more than 350 Open Source projects and initiatives, announced today that CloudBees has become an ASF Targeted Sponsor at the Platinum level.

Gammy – Adaptive screen brightness utility for Linux

All technology enthusiasts heartily greeted smartphones when they came around. Not only because it was all futuristic and attractive, but also because now you could do things that you could only do on your desktop or laptop. E-mailing, text messaging, sharing files, all became much easier. Even though it seems like smartphones are given features based on those possessed by notebooks, they have a world of their own. Now, even the computer world is learning things from smartphones. One such feature of smartphones that we all find helpful is automatic brightness adjustment. Having that on our Linux systems will be great, especially for those who move around with their laptops a lot. We present a program just for that task, Gammy. Read more

Android Leftovers

Linux For All Shines on LXDE Desktop

Linux For All very well could be a unifying Linux distribution that provides a common computing platform. LFA is a distro developed by Sweden-based software engineer Arne Exton of Exton Linux, the same developer who distributes ExTix Linux. The Swedish Linux Society hosts 16 Exton distributions. The Exton Linux inventory of distributions is a fertile repository of custom distros you will not find elsewhere. Among Exton Linux releases are an assortment of customized Linux distros based on a wide family of options such as Arch, Debian, Ubuntu, Puppy and Slackware. Multiple versions of these distros offer an even wider range of desktops. The ExTix distro, which I recently reviewed, is perhaps one of the best known of Exton's Linux platforms. That is in part due to its multiple desktop offerings. Linux For All comes in just one flavor, the LXDE environment. However, LXDE is an inviting option that eliminates confusion and complexity in favor of a powerful desktop that is lightweight enough to run on low-powered aging hardware. Read more