# generators

A programming construct that produces intermediate values while preserving local state so execution can resume later.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Taking remote control over industrial generators

DevFeed: [Taking remote control over industrial generators](<https://devfeed.tech/articles/taking-remote-control-over-industrial-generators-32614.md>)

Original publisher: [Read original article](<https://eaton-works.com/2025/10/06/industrial-generator-hack/>)

Author: Eaton

Published: 2025-10-06T15:13:20Z

Content type: article

Language: en

Sources: [Eaton Works Feed](<https://devfeed.tech/sources/eaton-works-feed.md>)

Topics: [generators](<https://devfeed.tech/topics/generators.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [API](<https://devfeed.tech/topics/api.md>), [vulnerability](<https://devfeed.tech/topics/vulnerability.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [api-security](<https://devfeed.tech/tags/api-security.md>), [apis](<https://devfeed.tech/tags/apis.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [industrial](<https://devfeed.tech/tags/industrial.md>), [security](<https://devfeed.tech/tags/security.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

An industrial generator management platform had insecure APIs that accepted valid user tokens without checking whether the user had administrator privileges. This broken function-level authorization could expose generator data and commands to start or stop generators. The commands were not tested because doing so could have created a safety hazard.

### Source excerpt

Industrial generator smart platform had insecure APIs that could enable remote control by anyone.

## Integrating Spin with Static Site Generators

DevFeed: [Integrating Spin with Static Site Generators](<https://devfeed.tech/articles/integrating-spin-with-static-site-generators-15147.md>)

Original publisher: [Read original article](<https://www.fermyon.com/blog/2023-06-07-integrating-with-ssgs>)

Author: David Flanagan

Published: 2023-06-07T10:00:00Z

Content type: article

Language: en

Sources: [Fermyon - Experience the next wave of cloud computing.](<https://devfeed.tech/sources/fermyon-experience-the-next-wave-of-cloud-computing.md>)

Topics: [Front end](<https://devfeed.tech/topics/frontend.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [generators](<https://devfeed.tech/topics/generators.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [generators](<https://devfeed.tech/tags/generators.md>), [static](<https://devfeed.tech/tags/static.md>), [static-site](<https://devfeed.tech/tags/static-site.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

### AI overview

The article discusses integrating Spin with static site generators to provide a frontend for a WebAssembly backend.

### Source excerpt

Providing a Frontend for Your WebAssembly Backend

## Understanding the Power of rails g scaffold

DevFeed: [Understanding the Power of rails g scaffold](<https://devfeed.tech/articles/understanding-the-power-of-rails-g-scaffold-28254.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/rails/2020/01/22/understanding-the-power-of-rails-g-scaffold.html>)

Author: Fuzzygroup

Published: 2020-01-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Rails](<https://devfeed.tech/topics/rails.md>), [generators](<https://devfeed.tech/topics/generators.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [coding](<https://devfeed.tech/topics/coding.md>)

Tags: [authorization](<https://devfeed.tech/tags/authorization.md>), [controllers](<https://devfeed.tech/tags/controllers.md>), [generators](<https://devfeed.tech/tags/generators.md>), [models](<https://devfeed.tech/tags/models.md>), [rails](<https://devfeed.tech/tags/rails.md>), [route](<https://devfeed.tech/tags/route.md>), [security](<https://devfeed.tech/tags/security.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

This Rails tutorial explains how the `rails g scaffold` command generates a model, migration, controller, routes, views, helpers, stylesheets, and tests. It also discusses its benefits for rapid prototyping and quality, along with limitations such as no built-in factories or authorization.

### Source excerpt

Wow. I am a damn idiot who has literally made his life harder than it ever needed to be -- for years. Sigh. I am referring to the Rails generator and the scaffold command. When you have complex software tools, sometimes you don't discover features - great damn features - for a long time. In this case I'm referring to: rails g scaffold pluralized_object_name In my case, I'm building a project where the ultimate goal is to create a label on something. Never mind what a label is or what the something is. A friend I've been helping with Rails recently asked me what rails g scaffold does and I muttered something about "makes the model and controller in one go" but I never thought to try it myself until just now. HOLY CRAP! Wow. rails g scaffold labels And here's what this generated for me: rails g scaffold Labels Running via Spring preloader in process 78104 [WARNING] The model name 'Labels' was recognized as a plural, using the singular 'Label' instead. Override with --force-plural or setup custom inflection rules for this noun before running the generator. invoke active_record create db/migrate/20200122100533_create_labels.rb create app/models/label.rb invoke test_unit create test/models/label_test.rb create test/fixtures/labels.yml invoke resource_route route resources :labels invoke scaffold_controller create app/controllers/labels_controller.rb invoke erb create app/views/labels create app/views/labels/index.html.erb create app/views/labels/edit.html.erb create app/views/labels/show.html.erb create app/views/labels/new.html.erb create app/views/labels/_form.html.erb append app/views/shared/_left_nav.html.erb invoke test_unit create test/controllers/labels_controller_test.rb create test/system/labels_test.rb invoke helper create app/helpers/labels_helper.rb invoke test_unit invoke assets invoke scss create app/assets/stylesheets/labels.scss And this isn't just creating a raw file structure, the core controller itself and the tests are actually built for you. Here's th

## Style Guides and Pattern Libraries: An Alphabetized Resource List

DevFeed: [Style Guides and Pattern Libraries: An Alphabetized Resource List](<https://devfeed.tech/articles/a-pretty-long-list-of-style-guides-and-pattern-libraries-28824.md>)

Original publisher: [Read original article](<https://una.im/pattern-libraries/>)

Published: 2014-11-13T00:00:00Z

Content type: article

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [consistency](<https://devfeed.tech/topics/consistency.md>), [coding](<https://devfeed.tech/topics/coding.md>), [color](<https://devfeed.tech/topics/color.md>), [Forms](<https://devfeed.tech/topics/forms.md>), [generators](<https://devfeed.tech/topics/generators.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [collection](<https://devfeed.tech/tags/collection.md>), [color](<https://devfeed.tech/tags/color.md>), [components](<https://devfeed.tech/tags/components.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [forms](<https://devfeed.tech/tags/forms.md>), [guides](<https://devfeed.tech/tags/guides.md>), [list](<https://devfeed.tech/tags/list.md>), [resources](<https://devfeed.tech/tags/resources.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

An alphabetized collection of style guides and pattern libraries, with an explanation of how the two differ. Style guides document brand properties and values such as typography, copy, and color, while pattern libraries focus on functional project components such as buttons, forms, input types, and messaging.

### Source excerpt

An alphabetized list of styleguides and pattern libraries and a look into the differences between those two terms.

## Streaming Median

DevFeed: [Streaming Median](<https://devfeed.tech/articles/streaming-median-40277.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2012/06/14/streaming-median/>)

Published: 2012-06-14T22:03:55Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Streaming](<https://devfeed.tech/topics/streaming.md>), [Python](<https://devfeed.tech/topics/python.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [generators](<https://devfeed.tech/topics/generators.md>), [iteration](<https://devfeed.tech/topics/iteration.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [approximation](<https://devfeed.tech/tags/approximation.md>), [big-data](<https://devfeed.tech/tags/big-data.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [element](<https://devfeed.tech/tags/element.md>), [generators](<https://devfeed.tech/tags/generators.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [infinite](<https://devfeed.tech/tags/infinite.md>), [input](<https://devfeed.tech/tags/input.md>), [iteration](<https://devfeed.tech/tags/iteration.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [median](<https://devfeed.tech/tags/median.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [streaming-data](<https://devfeed.tech/tags/streaming-data.md>), [yield](<https://devfeed.tech/tags/yield.md>)

### AI overview

This tutorial presents a Python generator that approximates the median of a potentially infinite integer sequence using constant space. The algorithm adjusts its current estimate by one for each input value that is above or below the estimate, and the article discusses how changing stream distributions affect the result.

### Source excerpt

Problem: Compute a reasonable approximation to a "streaming median" of a potentially infinite sequence of integers. Solution: (in Python) def streamingMedian(seq): seq = iter(seq) m = 0 for nextElt in seq: if m > nextElt: m -= 1 elif m < nextElt: m += 1 yield m Discussion: Before we discuss the details of the Python implementation above, we should note a few things. First, because the input sequence is potentially infinite, we can't store any amount of information that is increasing in the length of the sequence.

## A new App Engine datastore API

DevFeed: [A new App Engine datastore API](<https://devfeed.tech/articles/a-new-app-engine-datastore-api-38889.md>)

Original publisher: [Read original article](<http://neopythonic.blogspot.com/2011/01/new-app-engine-datastore-api.html>)

Author: Guido van Rossum (noreply@blogger.com)

Published: 2011-01-07T20:20:00Z

Content type: release

Language: en

Sources: [Guido van Rossum](<https://devfeed.tech/sources/guido-van-rossum.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [API](<https://devfeed.tech/topics/api.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [generators](<https://devfeed.tech/topics/generators.md>), [Coroutines](<https://devfeed.tech/topics/coroutines.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [appengine](<https://devfeed.tech/tags/appengine.md>), [classes](<https://devfeed.tech/tags/classes.md>), [coroutines](<https://devfeed.tech/tags/coroutines.md>), [design](<https://devfeed.tech/tags/design.md>), [generators](<https://devfeed.tech/tags/generators.md>), [kind](<https://devfeed.tech/tags/kind.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

Guido van Rossum introduces Datastore Plus, a preliminary redesign of the Python datastore API for App Engine users. The proposal includes cleaner Key, Model, Property, and Query implementations and a high-level asynchronous API using Python generators as coroutines. The implementation is available as an open-source project for review, with feedback requested on its documentation, implementation, and API design.

### Source excerpt

This post is primarily intended for App Engine users (and of those, only Python users :-). Over the past months I've been working on a new design for the Python datastore API, under the code name Datastore Plus. The new design is very ambitious, and changes a lot of things: New, cleaner implementations of Key, Model, Property and Query classes High-level asynchronous API using Python generators as coroutines (PEP 342) The design is meant to eventually replace the existing db package in the App Engine runtime library, but for now, it is just an open source project which you have to download and copy into your application. I am not at all finished with this design, but I believe in listening to users, so I am making a preliminary version of the new API available for review. Please send me your thoughts, either in this blog, or via private mail to guido (at) google.com. Note that the implementation works, but I cannot guarantee that it won't change. Documentation is here: http://goo.gl/D6Onw The project to check out is here: http://goo.gl/GapXI You must use Mercurial to check out the project, but it's fine to check it out anonymously -- I don't require anybody to log in to look or comment. (If using Mercurial is too much of a burden, there's also a zipfile on the site, but I don't plan to update it frequently.) I'm interested in receiving any kind of feedback at all. It would help me if you could clarify whether your feedback is about an issue with the documentation, an issue with the implementation, or an issue with the API design -- though I realize you can't always tell the difference. :-) (You can also comment on the thread in the google-appengine-python group here: https://groups.google.com/group/google-appengine-python/browse_thread/thread/454cb81d49e759f2.)