Links for October 2022
SFGATE: Skyscraper with floating cube might come to San Francisco
This is an incredibly bad idea for a city with a record for skyscrapers that don't stand up straight...
My guide to all fourteen ballot measures for San Francisco in November 2022. Hot on the heels of 8 in June. My overriding principle here is to prevent the need for future ballot measures although I can't help myself from indulging in the occasional good idea.
Yes. This is cheap and makes retirement benefits for city workers more fair and predictable.
No. We just voted to create a department of sanitation and streets in 2020.
Yes. More oversight for spending on homeless services.
Yes. Makes it easier to build new housing in San Francisco. Seems to cut a lot of unnecessary red tape to get projects moving faster.
No. This competes with D to try and avoid losing too much control.
No. I'm not anti-library, but I am opposed to ballot measures that carve out specific funding and then will need another ballot measure if anything needs to change.
No. Another set aside that can't be undone without a future ballot measure.
Yes. Increased voter turnout should lead to more representative local officials. I thought I voted for this already in 2012? Unfortunately this measure also has an adjustment to keep the number of signatures required for a new ballot measure constant. I'd love to see it get harder.
No. Let's keep some car free space.
Yes. As above.
Yes. Extends an existing sales tax for transportation.
No. Could discourage new housing from being built and as written does not apply equally to all housing.
Yes. I need to make decisions about a single parking garage? This would allow the city more control, and as I want to keep JFK car free it makes sense to optimize this parking resource for people who will have more difficulty getting to the museums as a result.
Yes. This is an important resource and we need to get it back on track.
(Published to the Fediverse as: San Francisco November 2022 Ballot Measures #politics #sanfrancisco #propositions #election The official ITHCWY voter guide to San Francisco's 2022 ballot measures. )
SFGATE: Skyscraper with floating cube might come to San Francisco
This is an incredibly bad idea for a city with a record for skyscrapers that don't stand up straight...
Catfood Earth 4.30 is available to download.
This update fixes a couple of problems with the screensaver. It now has improved support for multiple monitors (the image will repeat rather than stretch). There was a problem with the screensaver not starting in some cases. This should now be fixed. After upgrading to 4.30 please find and run the 'Catfood Earth Screensaver Settings' shortcut to configure the screensaver.
4.30 also includes version 2022d of the time zone database.
Autumn (or Fall) starts now (23 September 2022, 01:04 UTC) in the Northern Hemisphere, Spring if you happen to be south of the Equator. Rendered in Catfood Earth.
(Published to the Fediverse as: Autumnal Equinox 2022 #code #catfood #earth #equinox #autumnal Render of 23 September 2022, 01:04 UTC, the exact moment of the Autumnal Equinox 2022 in Catfood Earth. )
A horror movie made by forcing img2img to watch a Japanese security camera over 24 hours.
The office was empty, so the main influences are sunrise and sunset and then just subtle shifts in lighting. In terms of settings, strength was 0.75 with scale of 6.6 so the animation doesn't look anything like the actual office in question. The prompt was "photo of something unspeakable lurks in the shadows of the office, high quality, cinematic lighting, subtle horror, horrifying, japanese, found footage, sharp focus, 8k, no text". I upscaled with Gigapixel AI and then added some music.
(Published to the Fediverse as: Stable Diffusion Watches a Security Camera - a short horror movie #etc #video #stablediffusion #ml #4k #animation A horror movie created by forcing Stable Diffusion to watch a random Japanese security camera for 24 hours. )
I have an idea for PG&E. We're facing the possibility of rotating power cuts this evening in California due to record heat. The California ISO has a thing called a flex alert where they ask you nicely to reduce power consumption, and I got a text and email earlier today. If the ISO calls for outages PG&E starts flipping off the switch for some blocks, and you can even look up your address to see if you're at risk.
This could be so much better.
Just keep tabs on average power consumption for each block during hot weather. And then instead of a flex alert we need a leaderboard - the blocks which save the most power are safe, and the blocks that do the worst are the first to get shut off.
(Published to the Fediverse as: Better Rotating Outages #etc #pge #power Make a leaderboard game out of flex alerts and punish blocks that do the worst instead of random power cuts. )
Another experiment with Stable Diffusion (see my San Francisco skyline video from earlier today). This one uses img2img instead of txt2img. I started with a video of my dog following the Roomba around the house. I dumped all the frames out and then used Stable Diffusion with the strength parameter ramping up from 0.0 (source image preserved) to 1.0 (source image ignored) and a scale of 11.5. The prompt was "illustration of a black labrador being chased by a giant scary roomba trending on deviant art". The frame at the top maybe best captures this concept. I used Gigapixel AI to scale the output back up to 4K resolution and then added the original soundtrack.
(Published to the Fediverse as: A black lab chases a Roomba and then things start to get weird... #etc #video #animation #stablediffusion #4k #ml Stable Diffusion img2img generated from a video of a dog chasing a Roomba. )
Here is a video created by animating the scale parameter in Stable Diffusion:
This uses the prompt "a photo of San Francisco shrouded by fog 8k landscape trending on artstation", seed 56345, dimensions 896x448 and frames that range from scale 0.0 to 21.9. The higher the scale the more literally your prompt should be interpreted.
Interesting at scale 0 Stable Diffusion seems to think San Francisco is a diverse crowd of people protesting something (and it's not wrong):
From there is settles on a foreground quickly, experiments with various numbers of Transamerica Pyramids and then starts throwing in various permutations of the Golden Gate Bridge. It eventually decides that the Transamerica Pyramid belongs in Marin and that the bridge is so iconic that the city is probably filled with red aircraft warnings lights.
I think the versions a third of the way in are the best.
(Published to the Fediverse as: Stable Diffusion Animation of Scale Parameter #etc #video #ml #stablediffusion Animation of San Francisco in fog created by Stable Diffusion and increasing the scale parameter. )
Photo Sorter has been updated to handle some duplicates I've been developing in Google Photos. These are pretty specific rules but might be helpful if you are trying to maintain a local archive from Google Photos via Google Takeout. You can get the latest binary and source from github (or fork away if it's not quite what you need).
The first change is that Photo Sorter now checks for duplicates in the source folder as well as the destination. If two source files have the same date taken and the same filename then the larger file is chosen as the winner and the smaller file is deleted. The filename check ignores anything in parentheses, so 123.jpg is considered to be the same filename as 123(1).jpg. This helps alleviate a fun bug where Google Photos will export via the API a different file that was originally uploaded. I've stopped using the Google Photos API for this reason, and because it will under no circumstances allow you to download a video that is the same quality as the original upload. Crazy edge case Google. Happily Google Takeout still works so I'm stuck doing it slowly and wastefully.
The second change is that if a source duplicate is found using the rules above then it will also be deleted from the destination folder (in order to be replaced by the presumed better version of itself).
Photo Sorter copies some folder full of photos and movies to a different folder with a clean structure and some de-duplication. It's been keeping me sane since 2018.
Download a Sharepoint File with GraphServiceClient (Microsoft Graph API)
Accessing Printer Press ESC to cancel
Export Google Fit Daily Steps, Weight and Distance to a Google Sheet
Monitor page index status with Google Sheets, Apps Script and the Google Search Console API
Sending email via GMail in C#/.NET using SmtpClient
Scanning from the ADF using WIA in C#
International Date Line Longitude, Latitude Coordinates
Enable GZIP compression for Amazon S3 hosted website in CloudFront