Programming Leftovers

-
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
-

- Login or register to post comments
Printer-friendly version- 3851 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
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.
|
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.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago