Nothing Special   »   [go: up one dir, main page]

Infinite Wishes šŸ³ļøā€āš§ļøšŸš€ is a weblog by Emma Humphries

The more you know, the more jokes you get.

19 Oct 2024 Ā» A Firefox XML Bug

In which my plan to add permalinks to my black cat blog goes ary under Firefox.

As mentioned before, the end of Cohost encouraged me to play with some older web technologies and make a XML/XSLT blog about black cats.

One of the things missing from it was working permalinks for an entry. Since, for now, the blog is a single page, the best way to do that is using in-page anchors, with an id attribute. Because the blogā€™s feed is Atom, each entry needs a globally unique id, and the easiest solution was to use the pattern https://{host}/{path}#{num} for each entryā€™s id element. So the unique id works as a permalink.

So a prototypical entry would look like:

<entry>
    <id>https://host/path#nn<id>
    <link href="..." />
    ...
</entry>

and is rendered with XSLT as:

<article>
    ...
    <a id='nn' href='...'>...</a>
    ...
</article>

So if one navigates to https://dr-mae-space-cat.nekoweb.org/feed.xml#1 in a browser, the rendered feed should jump to the blogā€™s first entry.

Screenshot of the blog's first entry, which is a photo of my black cat Dr. Mae

Which it does on Chrome and Mobile Safari, but not on Firefox. On that browser, the rendered page stays fixed at the top, not following the anchor.

All I can figure is that when Firefox applies a XSLT document to a XML document, producing HTML which is rendered in the browser, Firefox doesnā€™t evaluate the URL for an anchor then navigate to that anchor if present. But the other major browsers are doing that.

One workaround would be to apply a script to force the update of the documentā€™s URL, but then Iā€™d be using JavaScript, which violates the spirit of the idea of an XML/XSLT blog (for now, I applied that workaround. Iā€™m not anti-JavaScript, but this just feels wrong!)

I looked for a related bug on BMO, and filed a new one since I didnā€™t see it. I hope thereā€™s someone familiar with that code or I might end up with writing Firefox patches as another hobby.

13 Oct 2024 Ā» Tsuchinshan-ATLAS from Oakland

The comet C/2023 A3 (Tsuchinshan-ATLAS) photographed from Oakland

A comet photographed from looking west towards the Bay Bridge. The comet is mid-frame, with a long tail pointing upwards, seen between two of the towers of the San Francisco side of the bridge. There is a bright blue light atop the Transamerica Pyramid building to the left.
Credit: Emma Humphries

Tsuchinshan-ATLAS is my first naked-eye comet since Hale Bopp back in 1997. Iā€™ve seen others since then, but only through an eyepiece of a camera, binoculars, or telescope.

Friday night the comet was in the glare and haze of the sunset. Saturday, at its closest approach to Earth, the view west was socked in by a system bringing some much needed rain on a line through Vacaville to Sacramento. But tonight, the skies to the west were clear, except for the Pacific Layer, and the comet was on a line between Venus and Arcturus. Once the sun had set beneath the horizon far enough, it was easy to see the cometā€™s tail over The City.1

I had set up my telescope and binoculars near a group of families who were fishing from the point at Middle Harbor Park by the entrance to the ship channel. As soon as the comet was easy to spot, my binoculars got passed around for everyone to get a chance to look at the coma and tail. One of the younger people in the group said they wanted to be an astronomer, so Iā€™m happy they got to see it. I hope they get a pair of binoculars or a telescope for the Holidays.

Telescope image of C/2023 A3 (Tsuchinshan-ATLAS): the tail points up and to the left. The coma and tail glow in a yellow-white hue.

I also got a few zoomed in photos from my Seestar ā€œsmartā€ telescope.

On my way out of the park and towards home, I passed by three other groups of folks who had come out to photograph the comet over SF with their digital cameras. Everyone was excited to enjoy these scant days that the comet will be visible in our evening skies. Astronomy is best when shared with other folks curious about the night sky.

  1. I had not seen the Transamerica Pyramid with such a bright light on top. It turns out the new owner of the building had just kitted it out with new lights. I suppose this is some sort of rivalry with the Salesforce Towerā€™s haole owner.Ā 

11 Oct 2024 Ā» Building and flying the flat pack rocket

Level 1 Rockets' Fishhawk is an easy to build, no epoxy-needed, and great flying kit for anyone starting in High Power rocketry. A few changes would make it a nearly flawless recommendation.

A rocket with a white airframe, black nose cone, and blue fins launches off a rail with desert and mountains in the background. The motor propelling it has a long blue flame
Credit: Ā© 2024, Jim Wilkerson, All Rights Reserved

Last summer I pre-ordered Level 1 Rocketsā€™ Fishhawk kit. Hereā€™s my notes on building it and later flying it at XPRS in Black Rock Desert last month.

Despite me calling it a ā€œflat pack rocket,ā€ it does ship in a large box because of the airframe tube. A version of the kit for clubs, orgs, and fliers who can supply their own airframe tube and nose cone might be a nice option for saving on postage as the rest of the parts fit in a couple of bags. The instructions are online at Level 1ā€™s website.

The unboxed kit on a work table with the airframe tube, the nose cone, a package with the machined motor mount plates, fins, and hardware, and another package with the recovery gear.

Each polycarbonate plastic fin fits into a mounting rail made from 3D printed nylon. I had to touch up the root of each fin with a file to get a smooth fit. Once in, the fins are secured with an allen bolt and a lock nut.

Detail of fins mounted in rails with allen wrench

The tricky part of the build is making sure you correctly mark and drill the holes for the machined aluminum rings which double as the motor mount and where the rails the fins slot into are screwed to the air frame. If you are building several of these as a group, designing and printing a 3D drilling guide is recommended.

Once I drilled the holes, I held the forward centering ring in place with one allen bolt while I secured two of the fins and rails.

Detail of attaching fin rails to airframe

Then I could remove that bolt and secure the last fin, completing the bulk of the work.

The rail buttons are secured to the airframe by well nuts inserted into holes drilled through the airframe and pressed flush. Screwing the rail button into those expands the nut on the inside, holding the rail button secure.

The finished rocket is only slightly taller than the rocket I flew my Level One certification on: a LOC IV named Super Bonbon.

The completed blue, black, and white Fishhawk rocket standing next to a purple, chrome, and pink LOC IV rocket

If the Fishhawk is your first high power rocket project, the checklists and flight procedures included in the instructions are detailed, and worth bringing with you to use at a launch.

I flew my Fishhawk on an Aerotech H283 Blue Thunder. Itā€™s a classic certification motor with a short burn, allowing for a long coast. It reached a respectable 512 meters and recovered successfully on the 30ā€ parachute included with the kit.

The blue, black, and white Fishhawk rocket after landing on the playa. The nose cone and airframe have separated and are connected by a black nylon recovery harness with a blue parachute connected to the harness.

Though it defeats the goal of the kit, Iā€™m tempted to take everything off the airframe, fiberglass it, then rebuild it because the relatively thin kraft paper is the one weak point of the kit. And thatā€™s the thing Iā€™d recommend to Level 1: beefing up that airframe tube, maybe a heavier LOC tube or even a fiberglass one. I think youā€™d be able to fly it with a J motor, as-is, for a Level 2 certification flight, but the stronger airframe would help in the long run.

If you wanted to make it a dual deployment rocket either making or printing an electronics bay and coupler would not be difficult.

This is a great kit and I hope it will help college-level rocketry clubs who are always time crunched trying to get certification flight rockets built and ready to fly.

04 Oct 2024 Ā» šŸˆā€ā¬› and XSLT

Trying to Blog with Atom and XSLT

On the last day one could post on Cohost, I put together a repository with an Atom to HTML stylesheet with folks who were on Cohost in mind.

Since then, Iā€™ve been playing with the idea of why not just post a feed and a stylesheet? So I created a site at https://dr-mae-space-cat.nekoweb.org/ which is just that: an Atom feed and a XSLT stylesheet.

A couple of hacks I had to do:

  1. Redirect index.html to feed.xml since Nekoweb expects index.html as the default document.
  2. Name the XSLT stylesheet format.xml instead of .xsl because the site editor doesnā€™t make files with the .xsl extension editable.

The feed is not strict Atom since Iā€™m doing things such as making the links either external (a.k.a linkblog style) or use the feed itself as the link element value in each entry. But it works!

Most syndication feed post content is either summaries, or the post wrapped up in a CDATA section or XML escaped, so I have to write the content of entries as XHTML. See the stylesheet and the feed for details on that.

One could also use the description child of an entry element for microblogging.

Dr. Mae, mentioned above, is our own Dr. Mae Space Cat, who along with her two sisters, we rescued from a park my rocketry club was launching from in Hollister, CA in the spring of 2023. The three were dubbed the Lady Astronauts since they were found at a launch. Maeā€™s siblings were adopted by friends in the City and sometimes get mentioned in the Our Opinions are Correct podcast.

Nekowebā€™s nice. Definitely in the spirit of Neocities, but with more cats. You can create a site for free, and if you chip into the projectā€™s Patreon, you get multiple sites, custom domains, the ability to run JavaScript site generators such as Eleventy, and even Git integration.

So get out there, make an 88x31 icon, and build a site!

19 Sep 2024 Ā» A Joyful Return of Old Web Techniques

In the wake of Cohost's closure, people are rediscovering pre-social media tools and processes for making sites and connecting to one another. Also, XSLT is back, baby.

Three images: an Atom feed in a editor, an XSLT file for transforming the previous to HTML, and the resulting HTML document created by applying the XSLT transform to the Atom feed.
Credit: By the author

Iā€™m happy to see folks who had accounts on Cohost set up their own web sites (which is a wonderful response to see in response to the beloved siteā€™s demise.) People are creating blogs, web rings, and OPML files with the feeds of ex-Cohost users. Some are making tools such as Chaia Eranā€™s RuSShdown which people can use to create an RSS file that they can post to Neocities or similar for people to subscribe to. All this instead of just returning to other social media sites.

Iā€™m loving that younger folks are looking to the tools we had in the year 2000ā€™s that we used to make web sites. They still work, and arenā€™t an intimidating pile of JavaScript build tools.

Back when XML had become a standard, one of the things that appealed to me about it was the ability to apply XSLT to XML and get out another XML (or HTML) document. In the early 2000s I wrote a lot of XSLT (this is when we still thought of XML as a document language and not a configuration file format.) And RSS/Atom and OPML are XML formats, right?

Both bandwidth and computers are faster. XSLT is a still stable standard. You can still add a link to a XSLT file from a XML file and most browsers will still apply the XSLT to the XML. Iā€™ve done this on this blogā€™s feed. If youā€™re interested in working with XSLT in the browser and on the server, thereā€™s a new blog on Medium covering the topic.

Back to Top