dmv.community is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small regional Mastodon instance for those in the DC, Maryland, and Virginia areas. Local news, commentary, and conversation.

Administered by:

Server stats:

154
active users

#generators

1 post1 participant0 posts today

New Kitten update

🥳 Kitten HTML templates and kitten.Component render functions can now be async.

kitten.small-web.org

This is quite a big one and it took me finally biting the bullet and getting my head around generators in JavaScript to implement properly.

So now you can mix synchronous and asynchronous components as you like and if there are any asynchronous components in your templates they will automatically be awaited (even if you forget to use await) ;)

I’ll write a proper post/tutorial/documentation for it soon but for the time being enjoy the screenshots where a layout template gets the latest three posts from my mock fediverse public timeline service and displays them on the page.

The kitten.Component version also has a refresh button that streams a different three to the page.

For those of you unfamiliar with Kitten, this is all the code in either example. No scaffolding, nothing. Pop either into a file called index.page.js and run kitten in that folder and visit https://localhost to see the example run.

Enjoy!

:kitten:💕

"Generators" are a powerful tool in PHP when working with large or streamed datasets. They help improve memory efficiency, performance, and scalability, making them a great alternative to traditional array-based processing.

Do you already use generators in your projects?

dev.to/robertobutti/efficientl

DEV CommunityEfficiently handle large datasets, huge files and data streams with PHP generatorsHandling large files (for example, CSV/text files) or HTTP data streams in PHP can be challenging,...

FLOWBLADE Generators are Media Items that render into animated media clips when placed on timeline.

Currently there are three different types of Generators.

1. Backgrounds Generators are animated backgrounds.
2. Texts Generators are animated texts.
3. Cover Transitions Generators are incoming shapes that cover the frame fully and then disappear creating a transition.

Flowblade Generators are implemented as Python scripts using Fluxity API.

I've been using Nikola - getnikola.com/ for my two blogs for the last few years, and I'm finding the mechanics cumbersome.

I thought it was just a matter of acclamating, but it's not. It's been quite a while and quite a number of posts, and it's not getting any easier.

My needs are so minimal, I'm thinking I should maybe look into moving to another static site generator.

Hugo is what all the cool kids are using, but when I look at it I get intimidated by the whole go module based theme thing and ... Uck. I just need something utterly DUMB ASS simple.

Does anyone use something like this that they like? Am I over-inflating Hugo's complexity?

The truth is I was a pretty happy Wordpress user back in the day, but I was an idjit and ran my site poorly so it got knocked over by a script kiddie.

Nikola · Static Site GeneratorNikola — Static Site Generator. In goes content, out comes a website, ready to deploy.

Random thought for anyone who has been running a generator in Southern California over the past few days (especially you newbies):

1. CHANGE THE OIL (undoubtedly needs to be changed)

2. MAYBE CHANGE THE AIR FILTER

3. STABIL in the gas tank... just in case you don't use it again for awhile.

4. MAKE sure you run the carb dry before storing (shut of fuel supply and let it run until it shuts off by itself), so gasoline doesn't sit in your carb and gum up.

(Much better solution is natural gas/propane conversion).

Continued thread

Carbon Monoxide Hazards

When used in a confined space, generators can produce
high levels of CO within minutes. When you use a portable
generator, remember that you cannot see or smell CO. Even if
you do not smell exhaust fumes, you may still be exposed
to CO.

Danger labels are required
on all portable generators
manufactured or imported on
or after May 14, 2007.

If you start to feel sick, dizzy, or
weak while using a generator, get to fresh air RIGHT AWAY. DO NOT DELAY. The CO from generators can rapidly kill you.

2/x

Continued thread

Portable Generator Hazards

Portable generators are useful when temporary or remote
electric power is needed, but they also can be hazardous. The
primary hazards to avoid when using a generator are carbon
monoxide (CO) poisoning from the toxic engine exhaust,
electric shock or electrocution, fire and burns.

Every year, people die in incidents related to portable generator use. Most of the incidents associated with portable generators reported to CPSC involve CO poisoning from generators used indoors or in partially-enclosed spaces.

1/x

Generator safety PSA: ***DO NOT FILL UP A RUNNING GASOLINE GENERATOR***

Gasoline fumes are released when you refuel the tank, and there is a high risk of igniting those vapors from the hot exhaust of the generator. You should not only turn OFF the generator, but also WAIT FOR IT TO COOL DOWN.

(you can get devices to toggle tanks/etc. safely, but most people do not have this).

The worst time to cause yourself burn injuries (and worse yet, maybe set your neighborhood on fire) is during the middle of a disaster.

One thing that extremely frustrates me about #AI #image #generators in 2024 is that they still just absolutely cannot get something incredibly simple like #spelling right. No matter how you prompt it ("there are no spelling mistakes"), it just cannot get the only part right that it could've just copied and pasted from your text. Here's the closest I got to what I asked for, "Jason Pettus, Editor" in the middle, surrounded by the words "Chicago," "Global," "Ethical" and "Ruthless."

Continued thread

Nearly two dozen #Republican-led states [because, of course] & a handful of #power #generators asked to pause the #mercury rules, which were finalized in May, while #litigation over them continues in lower courts. The *challengers* argue that the #regulations impose heavy costs while providing negligible direct #health benefits to the public….

[As of now] #PowerPlants must comply w/the Biden regulations by July 2027.

#law#SCOTUS#Climate

so we were in the path of #hurricanehelene and are lucky we got by with minor damage (roof shingles, gazebo, etc.). #power is out and I'm guessing it could be quite a while before it's back.

I know they'll be largely sold out atm, but curious what folks recommend for whole house #generators ?

Particularly options that might be on the innovative side of things. I'm not a bleeding edge guy, but I do like to take advantage of stable, relatively recent innovations. :)

CPSC: CPSC Urges Those in the Path of Hurricane Francine to Take Steps to Prevent CO Poisoning and Other Post-Storm Hazards

The U.S. Consumer Product Safety Commission (CPSC) is urging those in the path of Hurricane Francine to take steps to protect themselves and their families against carbon monoxide (CO) poisoning, fires and other post-storm hazards.

Loss of Power—Using a Generator Safely

Consumers need to be especially careful when storms knock out electrical power. (more...)

cpsc.gov/Newsroom/News-Release

U.S. Consumer Product Safety CommissionNewsroom News Releases