Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Dirk Eddelbuettel: littler 0.3.12: Exciting updates

    The thirteenth release of littler as a CRAN package became available today (after a three day ‘rest’ at CRAN for no real reason), following in the fourteen-ish year history as a package started by Jeff in 2006, and joined by me a few weeks later.

    littler is the first command-line interface for R as it predates Rscript. It allows for piping as well for shebang scripting via #!, uses command-line arguments more consistently and still starts faster. It also always loaded the methods package which Rscript only started to do in recent years.

    littler lives on Linux and Unix, has its difficulties on macOS due to yet-another-braindeadedness there (who ever thought case-insensitive filesystems as a default where a good idea?) and simply does not exist on Windows (yet – the build system could be extended – see RInside for an existence proof, and volunteers are welcome!). See the FAQ vignette on how to add it to your PATH.

  • Laura Abbott: How to be a spooky ARMv8m hardware debugger

    Debuggers are one of many tools available to assist developers in figuring out problems.Many of the ARM Cortex-M boards support a standard called CMSIS-DAP for hardware debugging. This is designed to let board makers provide a dedicated chip to facilitate communication between a debugger chip and a host. The debugger chip then commmincates to the actual CPU being debugged via other signals. Like all standards, implementation can be incomplete and buggy but if a board says it has CMSIS-DAP support, there’s a good chance it will “just work” for debugging. You could leave all the details to debuggers but it also turns out you can do many of these steps with CMSIS-DAP yourself. Being a debugger is also a great Halloween costume because you can do mysterious things to your device and also stay home. There is no candy involved unfortunately but knowledge is pretty sweet.

    ARM has fairly detailed documentation on their website about how this works behind the scenes. At a very high level, you can write to the Debug Port and some number of Access Ports to affect the state of the chip. The actual detail of what’s implemented is given by ROM tables. A fairly common setup is a debug port and then a Memory Access Port (MEM-AP) per CPU.

  • MarsMap: What Features of Mars are Visible?

    I've been using an ancient Unix program called XEphem for many years. It's very accurate and reliable, but the program is no longer supported, and so it needs to be compiled. Not really an option for most people.

    Sadly, the more accessible open source program, Stellarium, does not show Mars features. I'm told that the paid (and well respected) paid program Starry Night does, for Mac and Windows. On my Android tablet and phone, I use a paid program called Sky Safari (it's also available for iOS and Mac). I bought the middle, "Plus", level since I use it for basic observing, not finding ultra-faint galaxies, and it shows Mars features pretty well. I suspect the cheaper basic version also shows Mars features, but you might want to check to make sure before purchasing.

    So, several paid programs plus a program you have to compile from source. What free options are there?

    Sky & Telescope magazine has a Javascript app called Mars Profiler -- but it seems to be wrong! At least right now, XEphem and Sky Safari (and my MarsMap, which I'll talk about in a sec), are both showing Solis Lacus front and center; Mars Profiler shows it way off to one side. So if you use it, be wary.

  • The GNU GDB Debugger and NetBSD (Part 5)

    Last month, the NetBSD/amd64 support was merged into gdbserver. This month, the gdbserver target support was extended to NetBSD/i386 and NetBSD/aarch64. The gdbserver and gdb code was cleaned up, refactored and made capable of introducing even more NetBSD targets.

    Meanwhile, the NetBSD/i386 build of GDB was fixed. The missing include of x86-bsd-nat.h as a common header was added to i386-bsd-nat.h. The i386 GDB code for BSD contained a runtime assert that verified whether the locally hardcoded struct sigcontext is compatible with the system headers. In reality, the system headers are no longer using this structure since 2003, after the switch to ucontext_t, and the validating code was no longer effective. After the switch to newer GCC, this was reported as a unused local variable by the compiler. I have decided to remove the check on NetBSD entirely. This was followed up by a small build fix.

    The NetBSD team has noticed that the GDB's agent.cc code contains a portability bug and prepared a local fix. The traditional behavior of the BSD kernel is that passing random values of sun_len (part of sockaddr_un) can cause failures. In order to prevent the problems, the sockaddr_un structure is now zeroed before use. I've reimplemented the fix and successfully upstreamed it.

    In order to easily resolve the issue with environment hardening enforced by PaX MPROTECT, I've introduced a runtime warning whenever byte transfers betweeen the debugee and debugger occur with the EACCES errno code.

  • Excellent Free Tutorials to Learn HTML

    HyperText Markup Language (HTML) is used to create web pages and other information that is intended for display in a web browser. Each markup code is known as an element or a tag. The web developer uses these elements to describe and define the content of a webpage. The elements tell the web browser how to display the information (both text and images) to the user.

    HTML has seen a number of revisions. HTML5 is the fifth revision of the HTML standard. HTML5 makes for a rich user experience with the canvas and SVG elements, native elements video and audio which allow video and audio to be placed directly in the HTML code. Other important new features include web storage, which offers a more secure and faster alternative than cookies, and geolocation, the heart of every location-based application.

    HTML is the markup language, Cascading Style Sheets (CSS) determines how it is rendered, and JavaScript is the programming language. HTML5, CSS3, and JavaScript are open, efficient and reliable web standards and allow web designers to create advanced web sites with creative graphics, animations, transitions and typography.

  • Red Hat Developers: Kubernetes integration and more in odo 2.0

    Odo is a developer-focused command-line interface (CLI) for OpenShift and Kubernetes. This article introduces highlights of the odo 2.0 release, which now integrates with Kubernetes. Additional highlights include the new default deployment method in odo 2.0, which uses devfiles for rapid, iterative development. We’ve also moved Operator deployment out of experimental mode, so you can easily deploy Operator-backed services from the odo command line.

  • Why I Scatter Use Statements Throughout My Rust

    A standard pattern across pretty much every language I’ve worked with at least, is to stick statements that import modules and libraries at the top of the page. Some languages make you do this. In Rust I don’t do this for everything, here’s why.

    I started to think more and more about what code is like to read rather than write. I for one was reading code far more often than I was writing, and the code I was writing would, over its lifetime, be read far more often than written or edited.

  • This Week in Rust 359

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. 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 the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.