generator

Best Multi-Language Documentation Generator

What is the best documentation generator? I want to something that will easily add templates for documenting functions, classes, etc. I know there are several tools out there -- from Visual Studio plugins to external applications that take code files as input. which is the best? (If language-specific, specify) are there any document...

Generator Expressions vs. List Comprehension

When should you use generator expressions vs. list comprehensions in Python and vice-versa? # Generator expression (x*2 for x in range(256)) # List comprehension [x*2 for x in range(256)] ...

Can you recommend books about generative programming?

I can recommend following books: Code Generation in Action by Jack Herrington (lots of Ruby) Generative Programming by Krzysztof Czarnecki and Ulrich W. Eisenecker (many ideas explained) Framing Software Reuse by Paul G. Bassett (old but has nice ideas) Program Generators with XML and Java by J. Craig Cleaveland (heavy on XML front) ...

Recommended Python RSS/Atom feed generator?

Can you recommend a feed generator library for Python? I could build the XML myself, but I'm looking for a recommended library that is built from the ground up around the RSS (or Atom) spec. ...

Looking for visual CSS generator

Looking for some sort of tool that would allow me to layout my page visually using some sort of GUI, then generate the necessary CSS that would allow a web page to look like that. I am new to this sort of thing, so please tell me if this is even possible! ...

Looking for tool to generate random CSV data

Hello All, I've been Googling fpr a product, but have yet to find something that I like for generating random/semi-random Data. Ideally, I'd be able to use some of my own input lists, combined with email generation, phone number, etc... to be able to generate test CSV files with multiple records. Also, open source is best. What tools ...

Backend Administration in rails

I'd like to build a real quick and dirty administrative backend for a rails app I have been attached to at the last minute. I've looked at activescaffold and streamlined and think they are both very attractive and they should be simple to get running but I don't quite understand how to set up either one as a backend admin page. They se...

Topological sort, recursive, using generators.

Data: a dependency list, already verified to be acyclic. So here, 'a' depends on 'b','c','d' (c depends on d), etc... A = { 'a' : dict(b=1, c=1), 'c' : dict(d=1), 'd' : dict(e=1,f=1,g=1), 'h' : dict(j=1) } I'd like to have a top-down, recursive solution to let's say, find the chain starting at 'a': a, c, d, e, g...

Do you know a good Java RSS/Feed Generator?

I'm searching a small Java based RSS/Feed Generator, something like the FeedCreator.class.php library, any suggestions?, thanks! ...

Data generators for SQL server?

I would like to receive suggestions on the data generators that are available, for SQL server. If posting a response, please provide any features that you think are important. I have never used a application like this, so I am looking to be educated on the topic. Thank you. (My goal is to fill a database with 10,000+ records in each t...

C#/.NET Lexer Generators

I'm looking for a decent lexical scanner generator for C#/.NET -- something that supports Unicode character categories, and generates somewhat readable & efficient code. Anyone know of one? EDIT: I need support for Unicode categories, not just Unicode characters. There are currently 1421 characters in just the Lu (Letter, Uppercase)...

Generating unique codes in PHP/MySQL?

I'm working with a client that needs to generate millions of the alphanumeric codes used in magazine scratch-off cards, bottlecap prizes, and so on. They have to be short enough to print on a cap, they want to make sure that ambiguous characters like 1 and I, 0 and O, etc. are not included, and they have to be explicitly stored for futur...

Cairngorm Code Generator

I was wondering if there's a code generator for Cairngorm that can be installed as a plugin in Eclipse? No code generator like in WebORB, FluorineFX that inspects the DataBase and generates a whole lot of code. I just want a plugin for eclipse where I can give in some options and properties. Then the plugin generates the appropriate even...

Good rails generator tutorial?

As title, good I mean with detail coverage of m.template, m.class_collisions etc. A paid book or free online resources would be acceptable too. ...

Rails generator m.directory returns can't convert nil into String

I have written this generator code but it returns 'can't convert nil into String' when I call m.directory inside the manifest. Anyone know what had happened? class AuthGenerator < Rails::Generator::NamedBase attr_reader :user_class_name def initialize(runtime_args, runtime_options={}) @user_class_name="User" @controller_clas...

When is not a good time to use python generators?

This is rather the inverse of What can you use Python generator functions for?: python generators, generator expressions, and the itertools module are some of my favorite features of python these days. They're especially useful when setting up chains of operations to perform on a big pile of data--I often use them when processing DSV fil...

Python: using a recursive algorithm as a generator

Recently I wrote a function to generate certain sequences with nontrivial constraints. The problem came with a natural recursive solution. Now it happens that, even for relatively small input, the sequences are several thousands, thus I would prefer to use my algorithm as a generator instead of using it to fill a list with all the sequen...

Name Generator for .NET

Has anyone written, or know of a library, that generates fairly accurate looking Western European style names? i.e. John, Susan, Smith, Julien, April, etc., etc... ...

How do I build a numpy array from a generator?

How can I build a numpy array out of a generator object? Let me illustrate the problem: >>> import numpy >>> def gimme(): ... for x in xrange(10): ... yield x ... >>> gimme() <generator object at 0x28a1758> >>> list(gimme()) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> numpy.array(xrange(10)) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> numpy...

Yacc Problem: Make Data available in next Non Terminal

Hi! I want to make some variables I generate in b available in c: a : b c { ...some code...} A simple example: b : X { int result = 0; } | Y { int result = 1; } so I can, later on in c say: c : D { printf(result + 1); } | E { printf(result + 2); } Is there any chance to do that? Any help would really be apprecia...