Jeff Epler's blog

7 April 2019, 20:42 UTC

Linux: don't wake display on mouse motion


I have one machine which repeatedly wakes its display at night. My assumption is that this is due to spurious movement from the mouse.

There is not an explicit way to configure Linux (X11) so that it doesn't exit DPMS sleeps on mouse movement, but I found a tip on the internet to disable the mouse device at the XInput level when activating the screensaver, and reactivating it when the screensaver exits.

I don't run a "screensaver application" so wiring into things like dbus for notification doesn't work. Instead, I wrote an X program which polls the requested DPMS state and enables or disables the mouse device accordingly.

It remains to be seen whether this solves the problem which causes the display to turn on multiple times per night, but it might just fix it.

You'll need to customize the program by changing the "device_name" string in the source to match your own input device. If you have multiple input devices, then more extensive work will be required.

License: GPL v3+

Files currently attached to this page:

nobump.c2.0kB

[permalink]

9 March 2019, 1:33 UTC

The Drake-Howard Equation


The Drake-Howard equation is:
N = R* × f# × ne × fq × dl × fc × L
where N = the number of elder gods in the multiverse which might wish to consume our souls and
  • R* = The number of regular languages
  • f# = The fraction of regular languages that match at least one string
  • ne = The fraction of self-Gödelizing strings per regular language that matches at least one string
  • fq = The fraction of self-Gödelizing strings that are also functional quines
  • dl = The sum to infinity of the average measure of quine islands divided by Levenshtein distance
  • fc = The fraction of of all functional quines which can be realized by Standard Model matter
  • L = The time between Second Order Grand Conjunctions

As R* is infinite (actually, ‎א‎1) and all other values are nonzero, it follows that the number of soul-devouring elder gods is infinite. The Drake-Howard Equation is also sometimes called Rule 110.

[permalink]

23 February 2019, 16:52 UTC

Re: Ideas box submissions


Codewords: Clear
Distribution: Primary and residual human resources

To whom it may concern:

Please stop stuffing the ideas box with proposed solutions to anthropogenic climate change. As you know, the worst case consequences of ACC are predicted to be:

  • Hundreds of thousands of premature deaths per year
  • Millions of QUALYs lost per year
  • Hundreds of millions of environmental migrants
  • Regional and possible large-scale war over access to resources, including potable water
  • Trillions of Euros of property damage and loss
  • Loss of low-lying areas to sea-level change

The ideas box is for discussion of SERIOUS threats to humanity, such as

  • Netflix cancellation of all its superhero shows
  • Possible interference by Blue Hades in the Oscars awards
  • Failed firmware updates on conspicuous-consumption "fitness" devices
  • Those demonic wasp-things that are gestating in the abdomens of several world leaders
  • Irritating advertisements interrupting our free music streaming

Thank you for your attention in this matter.

         — The Management

[permalink]

1 January 2019, 18:56 UTC

Qidi Tech I


I bought this 3D printer in the fall of 2017, though they were already calling it the "2018" model. It's a fully enclosed, dual hotend printer which is a knockoff of the Flashforge, which in turn is a knockoff of the Makerbot.

Initially, I didn't blog about this printer because I was kinda disappointed with it. It takes up a lot more desk space, spools are a pain to mount and unmount, and I initially didn't have much luck with larger prints, ABS adhesion, or dual material printing, which were three major things that I had hoped to do with the printer.

More recently I started pretty obsessively reading about the Genuine Prusa i3 MK3 with MMU2, and trying to justify the purchase. In the process, I had to admit to myself that maybe I needed to give those three major bullet points another try, either to satisfy myself that it couldn't be done, or to finally meet my goals.

Happily, I think I met my goals, and I feel much happier about this printer than I ever did in the first year of owning it. And as a bonus, I am also successfully printing flex filament on it!

First, I had found that the Z height of the two nozzles never quite matched. I was very reluctant to mess with their alignment, because it is supposed to be set at the factory. However, I eventually discovered that it was my own problem all along: I had failed to fully tighten one of the screws which attaches the hotend assembly to the X carriage, which accounted for at least 90% of the Z height mismatch of the two nozzles. I still have minor problems in vase mode if the unused nozzle brushes the print in progress, so things aren't perfect, but they're really quite a lot better.

Second, I went through the bed leveling process by using the "look at filament after it's been laid down" method, instead of the "try putting a sheet of paper under the nozzle" method. I had the nozzles way too close to the bed, and now my first layer problems were resolved. At this point, PLA and PETG both printed marvelously.

I took a detour from using Cura to Slicer PE (part of the obsessive googling about Prusa I3) and learned a few tricks, such as making the first layer line width substantially wider for better adhesion; and had some modest success with dual extrusion printing. When I returned to Cura, I found I could apply these ideas. With respect to dual extrusion printing, I found that turning OFF a bunch of Cura features gave me better results: There's no need for a priming tower when you have two hotends (vs the prusa style with multiple extruders and a single hotend), and eliminating or reducing the temperature changes for the "not currently used" nozzle actually reduced stray wisps of filament. HOWEVER, when you do this it's important that the layer time not be too long, and that both filaments are used throughout the print, so that heat creep doesn't have a chance to clog a nozzle. I did in fact get a clog this way, but fixed it easily by replacing the PTFE lining. (and, contrary to my fears, this seems to have left the Z alignment of the two nozzles just as good as before. So now I have some Micro Swiss replacement nozzles on order, because I think these are pretty worn by now)

I have also had good luck simply using different material types as support materials (e.g., PLA for PETG and ABS, and PETG for PLA), for manual (solvent-free) removal.

Finally, I printed a couple of parts for the extruders that claimed to improve printing of flexible filament. While I hadn't tried any before, I've had some luck printing with a roll of what I think is TPU (and also one non-serious jam). This includes printing a combined PLA-TPU object.

I've just started dabbling with ABS Juice as a bed adhesive, but after a couple of prints I realize I need to switch to Kapton or glass to use it, if I don't want painter's tape permanently embedded in my prints. It has given a couple of ABS prints with perfect first layer adhesion that I would not have had without it, though.

Is this a great printer? Arguably, no, you shouldn't have to do a year of fiddling with a printer before you can get great prints and use all its capabilities. Am I feeling better about this printer than ever before? Yes, I feel like I've leveled up in terms of successful printing with it.

[permalink]

1 January 2019, 15:51 UTC

Five Years of Prius (2013) Fuel Efficiency


Year Miles MPG Gal
2014 7546.8 44.4 170
2015 7333.6 43.9 167
2016 9368.8 44.8 209
2017 9936.2 45.1 220
2018 8853.6 42.0 210

Our total distance travelled was lower this year, mostly because our longest driving trip was taken in a rental car. The fuel economy was quite a bit lower, probably because the longer trip we did take was in the mountains of colorado, and a long climbing drive can be pretty awful for efficiency. The car also had its tires replaced this year, and the new tires may not reach the same level of low rolling resistance. Finally, it might be the case that an aging traction battery is affecting performance. Frankly, I'm disappointed with the numbers for the year.

[permalink]

18 November 2018, 20:59 UTC

Codeword TESTAMENT COBALT


Files sealed under codeword TESTAMENT COBALT reveal an unusual cooperative mission between the Laundry and civilian law enforcement, beginning as early as 2009.

To quote the former Senior Auditor, it's "fractal contingency plans all the way down". TESTAMENT COBALT was another such contingency plan, one of many directed at establishing permanent human presence on parallel planets Earth. As a secondary goal, it would create a cadre of grateful youth and young adults who were bound to the Laundry by minor Geases without being on-the-books Laundry staff.

In the late 1990s, when relations between the OPA and the Laundry were on relatively good footing, the Laundry received a list of what we now know were second-tier sites from ABJAD SURVEY: Generally, parallel earths which were capable of supporting unprotected plant and animal life, but due to variations in fundamental constants could not support silicon-based computer techonlogy. Even then, the OPA was so dependent on digital technology that they deemed such worlds useless for their own needs.

The next lucky break (pun intended) occurred during the human exploration phase of the EDEN (Escaping DEmons Nextdoor) project when an unlucky team member suffered a compound fracture due to a fall. The team medic quickly discovered that the particular fundamental constants in this universe left all opioid painkillers totally ineffective. Subsequent to the team's emergency return, debriefing revealed that a third team member who had successfully concealed her prescription painkiller addiction up to that point had felt her addictive cravings disappear upon arrival on the the parallel now designated TESTAMENT COBALT 2007a. After a specific testing protocol was instituted, further TESTAMENT COBALT parallels were identified (TC2007b-f, TC2008g-w and TC2009x-ai)

From these pieces, an enterprising member of the Laundry formed their plan for an unusual diversion/drug addiction reabilitation program. In conjunction with a few friendly law enforcement officers in Avon and Somerset, the program got off the ground in small numbers at first, but at its peak there were apparently hundreds of participants per site on at least 8 TESTAMENT COBALT sites.

For participants, the benefits were clear: no criminal record, and a complete recovery from chemical addiction after just a few weeks in a rural area without social media or internet. In return, participants agreed to not disclose the details of the TESTAMENT COBALT sites and enrolled in what was termed a voluntary national service program—until age 35, they could be called up in time of emergency to serve the country. Both clauses were enforced by minor geas upon acceptance of the contract.

This clause was activated by Senior Auditor Dr. Armstrong in 2014 during the events of The Delirium Brief. Within moments, some 28,000 program participants disappeared from this Earth, returned to their TESTAMENT COBALT parallel worlds. Then, using the thaumic energy of approximately 33% of those worlds' native plant, animal, and sea life, a hyperspatial isolation ("hyperstop") grid with a duration of up to a gigasecond was kicked off, sealing them away from the rest of the multiverse. It's up to them to survive and thrive while restricted to an agrarian level of technology.

We can only hope that when the first of these grids collapses in 2050, TESTAMENT COBALT subjects and their descendants will rejoin a local multiverse that is once again habitable by the sort of life that once lived here on Earth.

"We fight on so that something that remembers being human might survive" — S.A. Armstrong

[permalink]

22 October 2018, 20:57 UTC

Codeword BISON ZENITH


This is a work of fiction, channeling Charlie Stross and his Laundry Files series. I made it after we started hearing rumors that Intel has cancelled their next generation process too... BISON ZENITH confirmed

Connect the dots:

Internal Intel memos from as early as 2008 confirm a skunkworks plan to develop metamaterials—a "superlens"—rather than pursue techniques like EUV for post-14nm process nodes. The "superlens" was supposed to be able to focus normal UV light onto sub-wavelength regions, impossible for traditional optics and even according to the predictions of quantum physics.

FOIA requests show hundreds of chartered flights yearly from the NSA's Utah Data Center to the Chandler Municipal Airport, just 3 miles from Intel's Fab 42 just outside Phoenix Arizona, starting in 2012 and continuing until April 2018.

The uncanny resemblance of Chandler's Cottonwood and Sun Lakes golf course developments to class D and F warding glyphs; and the unusually strict anti-occult and anti-religious symbol rules in the HOA covenants. (This would have been for the safety of the subdivision's occupants; at such short range even as innocuous a religious symbol as a "marshmallow peep" would burst into flame within the area of the glyph itself)

Results from ABJAD SURVEY show that in near-habitable parallels, the most frequent parameter variation that prohibits the survival of an earth biosphere is in the parameter 'c', the speed of light. Variations as small as 3% prevent pollinators from locating flowers, but even variations of 27% are short-term survivable by adult humans, given proper personal protection.

The unexplained hour of localized daytime darkness in Chandler AZ on 4/18/18; initially reported as a "terror attack", there were no direct casualties (just road accidents). The official NTSB report states that the crashed Cessna 680 on arrival from Salt Lake City had no one on board.


Our conjecture:

When the Black Chamber shows up with credentials thst say "NSA" and promises you access to an out of this world process for creating integrated circuits, you need to take that phrase literally. But of course in the first two decades of the century, there was no awareness of this in the general public. And if you were on the inside, you would authorize such activities as a matter of course.

The "superlens" technology is better understood as a pair of back to back gates, leading to a region of the multiverse with the a 'c' value about 70% below nominal. This would allow a UV process that supported the 17nm node in our physics to scale down to the 5nm mode, allowing Intel to maintain its worldwide process advantage for a decade or more.

Black Chamber produced the superlenses at the Utah Data Center and hand delivered them to Intel staff who were unaware of just what they were handling. The gates were presumably designed with a half life of around a week, based on the frequency of flights. This plan went fine, until something happened on the 4/18 flight. Did containment of the gates fail during the flight, or was it a part of a defection plan or a convert operation by one of our adversaries?

In any case, Intel never did ship a post-14nm part from the Chandler fabrication facility.

Editor's note: Strictly speaking, 'c' is not a parameter, since it is not one of the fundamental dimensionless constants. Technically, I should say 'ɑ'. But since the effect we're interested in pertains to the speed of light, it is clearer to express things in these terms. Remember, in atomic units 'ɑ = 1/c'.

[permalink]

22 October 2018, 20:16 UTC

Codeword BISON MERIDIAN

15 July 2018, 15:59 UTC

Fun with frequency

26 March 2018, 23:51 UTC

Fuzz-testing CircuitPython

17 February 2018, 17:31 UTC

Watch Repairs

All older entries
Website Copyright © 2004-2018 Jeff Epler