/ˈbɑːltəkʊteɪ/. Knows some chemistry and piping stuff. TeXmacs user.

Website: reboil.com

Mastodon: baltakatei@twit.social

  • 0 Posts
  • 22 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle



  • In fact, electric vehicles have been common once before. In the early years of the twentieth century, there were three fundamentally different automobile technologies battling for supremacy, and electric cars held their own against competition from steam-and gasoline-powered alternatives, as they are mechanically much simpler and more reliable, as well as quiet and smokeless. In Chicago they even dominated the automobile market. At the peak of production of electric vehicles in 1912, 30,000 glided silently along the streets of the USA, and another 4,000 throughout Europe; in 1918 a fifth of Berlin’s motor taxis were electric.

    The drawback of electric cars with their own onboard batteries (rather than trains or trolleys taking a continuous feed from a power line over the track) is that even a large, heavy set cannot store a great deal of energy, and once depleted the battery takes a long time to recharge. The maximum range of these early electric vehicles was around a hundred miles, (Ironically, about 100 miles is still the maximum range for modern electric cars: technological improvements in battery storage and electric motors have been perfectly offset by an increase in car size and weight, and drivers of electric vehicles suffer from “charge anxiety.”) but this is farther than a horse and in an urban setting is more than adequate. The solution is, rather than waiting for the battery to be recharged, you can simply pull into a station for a quick battery pack exchange: Manhattan successfully operated a fleet of electric cabs in 1900, with a central station that rapidly swapped depleted batteries for a fresh tray.

    From The Knowledge (2014) by Lewis Dartnell, chapter 9 “Transport”. Cited works for the history of electric cars are:









  • Ultimately, the quality of your work is a function of you and your resources. Corruption and miscommunication plague all management systems. Corrupt management siphons resources away from otherwise good work. Government bureaucracy is another layer of management like any other. Customers are not just consumers but working people like you.

    Hang in there.






  • Maybe try out FreedomBox? freedombox is a Debian package which automatically sets up apache2, firewalld, fail2ban and Letʼs Encrypt. It also automatically adds pre-canned configuration files for applications you install with it (e.g. Mediawiki, WordPress, Matrix, Postfix/Dovecot). The theoretical goal of FreedomBox is to allow anyone to set up a webserver and administer it via a webUI. So, although I would say itʼs not quite there yet for command-line-illiterate users, I have found the software useful as a turnkey server to see what makes certain web applications tick, albeït in mostly vanilla form.

    For example, after installing a new app like WordPress, you could examine what exactly the FreedomBox scripts changed in the /etc/apache2/ or /etc/fail2ban/ configuration files.



  • fgallery

    TL;DR: fgallery is a dumb static web gallery generator: EXAMPLE, SETUP.

    There’s fgallery which is a small Debian package that takes an input directory (e.g. photo-dir) and creates a static website in a new directory (e.g. my-gallery).

    $ fgallery photo-dir my-gallery
    

    Description

    From the Debian package details page.

    static HTML+JavaScript photo album generator

    “fgallery” is a static photo gallery generator with no frills that has a stylish, minimalist look. “fgallery” shows your photos, and nothing else.

    There is no server-side processing, only static generation. The resulting gallery can be uploaded anywhere without additional requirements and works with any modern browser.

    Among all the Debian packages similar to this one, this seems the most recently maintained (version 1.9.1 came out 2022-12-31). It is licensed GPLv2+ so the source code is available.

    Upload to a web server

    After running fgallery as described above, upload my-gallery to your static web page directory (e.g. /var/www/html/ with a typical apache2 setup) and open the index.html through a web browser.

    Here’s an example gallery I made just now (setup procedure).

    Image

    ( Photo by Baltakatei / 🅭🅯🄎 4.0 )

    Viewing locally with a browser

    To view the gallery locally without uploading to a web server (e.g. a Digital Ocean droplet) or static content hosting service (e.g. AWS S3), you can do so with your own web browser. However, because the fgallery webpage uses Javascript and since modern browsers refuse to render Javascript in HTML pages at local file system addresses (e.g. file:///) due to same-origin policy, the easiest solution is to make a simple webserver via python3:

    $ python3 -m http.server -d ./my-gallery
    

    Then, you can visit the my-gallery/index.html file via a local http:// address at http://localhost:8000/.

    Summary

    fgallery lacks many complex features (no image database, no metadata editing, no dynamic server processes for editing images, etc.). However, I’d argue its lack of features is the main feature. It just takes a directory of photos and spits out a directory you can plug into your hosting service. Updating the the gallery is just a matter of running the same $ fgallery photo-dir my-gallery command again and re-uploading.

    Edit(2023-07-07T12:05+00): Clarify python3 commend.

    TL;DR: fgallery is a dumb static web gallery generator: EXAMPLE, SETUP.