Today I compiled my titlecase Rust crate to Web Assembly and wrapped a
web-page around it so that it can be used online. It’s published on my
“projects domain”, 7bit.org. After I published it I realised I hadn’t
written about the other projects that are on 7bit.org
. They are
Dew Point Forecast, MacBinary, RSS Please, and Titlecase.
A few years ago I decided that it was a bad idea to speculatively register domains for projects because:
- I don’t finish all (*cough* most) projects
- They get expensive
In an attempt to curb spending on domain names I searched for a short,
nondescript domain to use as a dumping ground for projects that were complete,
but not significant enough to warrant their own domain. Thus 7bit.org
was
born.
So far I’ve published four projects to it, all of which are open-source.
Titlecase
Titlecase is one of the earliest Rust crates I wrote. The first commit was in 2017. It converts text into title case. Specifically it uses a style described by John Gruber for post titles on his website Daring Fireball.
Instead of simply capitalizing each word titlecase
does the following
(amongst other things):
- Lower case small words like an, of, or in.
- Don’t capitalize words like iPhone.
- Don’t interfere with file paths, URLs, domains, and email addresses.
- Always capitalize the first and last words, even if they are small words or surrounded by quotes.
- Don’t interfere with terms like “Q&A”, or “AT&T”.
- Capitalize small words after a colon.
I have compiled it to WebAssembly so that it can be used online.
RSS Please
RSS Please is a tool to generate RSS feeds from web pages. It uses CSS selectors to extract parts of the page to generate the feed from. It’s implemented as a command line tool in Rust.
Dew Point Forecast
Dew Point Forecast provides weather forecasts that include the dew point. The dew point relates to how humid it feels. It’s a better measure than relative humidity as the value does not vary with the air temperature the way the relative humidity percentage does.
I built this one after moving to Queensland in 2021 and it was the first
project published to 7bit.org
. It’s implemented in Rust using the Rocket
web framework.
MacBinary
MacBinary allows inspection and downloading of individual components in MacBinary encoded files that were used by the classic Mac OS. It’s available as a Rust crate for use in third-party projects. I have compiled it to WebAssembly for use on the web page. I wrote more about this project in this post.