generator

usage of generators as a progression notifier

Hi! I am currently using generators as a quick way to get the progress of long processes and I'm wondering how is it done usually as I find it not very elegant... Let me explain first, I have a engine.py module that do some video processing (segmentation, bg/fg subtraction, etc) which takes a lot of time (from seconds to several minute...

Nunit Test Generator

Can somebody recommend a good (free) generator for NUnit Tests? ...

Free to use Java phonetic password generator?

I'm looking for free to use phonetic/pronounceable password generator written in Java (or any JVM language, which can be called from Java). Ideally the generator would accept criteria for the passwords it creates, eg: minimum length minimum number of non-alpha characters This would be used in a commercial, distributed applicatio...

Reseting generator object in Python

I have generator object returned by multiple yield. Preparation to call this generator is rather time-consuming operation. That is why I want to reuse generator several times. y = FunctionWithYield() for x in y: print(x) #here must be something to reset 'y' for x in y: print(x) Of course, I'm taking in mind copying content into simpl...

What scaffold generator was used in the Live Validations demo screencast?

In http://vimeo.com/3385181 Live Validations are demoed with what appears to be a standard scaffold-generated rails app. However, the styling is different (nicer) than that created by the standard rails scaffold generators. What generator was used to make the video? ...

Filter content in Symfony 1.2.x admin generator?

I have a Symfony 1.2.7 application where 3 different sites coexist in the same database. All content has a foreign key, 'site_id', that says which site it belongs to. In my generated admin interface I want to be able to show content from the currently selected site (actually set using a filter class, based on the domain used to access t...

error ORA-06550 ORA-00933.

I have a sales table: Name Null? Type SALE_ID NOT NULL NUMBER(4) SALE_DATE DATE NO_OF_PRODS NUMBER(4) PROD_ID NOT NULL NUMBER(4) CUST_ID NOT NULL NUMBER(4) DESP_ID NOT NULL NUMBER(4) SALE_RECEIPT NOT NULL NUMBER(5) I am trying to inser...

How can i invoke the EMF Generator headless using a workspace outside the eclipse installation?

Hello! I am trying to generate the edit and the editor code of a EMF Genmodel using a batch file and the headless command. Here is my batch code: cd\ cd C:\eclipse eclipsec -noSplash -data "C:\Dokumente und Einstellungen\milan\Desktop\SHK\workspaceGalileoTRUNK" -application org.eclipse.emf.codegen.ecore.Generator -edit -editor foo.ba...

Signature generator with upload does not work

Hey, i just wanted to know if you guys know why this does not work. http://www.anitard.org/siggen/siggen_stripes/ When you've uploaded an image the script gets the file path from the form and then when you press create a signature is supposed to appear with the image you uploaded, but it doesn't! If anyone know what the problem is, pl...

Error messages show up in the pop-up window, how to fix?

Hello! I have this signature generator script. And when the images you upload does not meet the requirements the user recieves an error message. The problem here is that the error message shows up in the uploading pop-up, is there any way to show the error messages in the original page instead? Here is my signature generator script. ht...

Sample data generation from existing data - Algorithm?

Hello, I'm facing a what-am-I-looking-for problem again. I've got tracking data, meaning I tracked myself riding a bike a couple of times on the same track in order to have some test data. So I've got time-distance pairs. I want even more different ones, but want to generate them. I want the virtual test drivers to be both faster and sl...

Audio generation software or .NET library

Hey there! I need to be able to play certain tones in a c# application. I don't care if it generates them on the fly or if it plays them from a file, but I just need SOME way to generate tones that have not only variable volume and frequency, but variable timbre. It would be especially helpful if whatever I used to generate these tones ...

Online lorem ipsum generators

Anyone knows a good lorem ipsum generator? I'd like to know if there are some generators that can generate language specific texts as well so that international characters can be tested. ...

Simulating engine noise in Flash 10

I'm working on a "retro" motorbike game in flash, similar to the Road rash series on the mega drive and after having a long play with the sound sampling capabilities of flash I can't manage to find the "right" way to generate the noise. I've been trying to basically change the frequency on a sine wave in line with the revs, so as the re...

Edge Rails doesn't list plugin/gem generators

I recently created a project skeleton with Edge Rails and installed rspec, rspec-rails and cucumber as plugins (git submodules). If I run: $ script/generate all I get is a list of built-in generators. The ones from the plugins don't show up. I installed the same plugins as gems and got the same result. Does anyone know why this is hap...

Generate DTMF Tones

I am wondering if anyone has come across a way to generate tones in the iPhone SDK. I am trying to generate DTMF tones, and can't seem to find anything substantial out there. I want to be able to specify how long to play the tone for as well (i.e. to simulate holding the button down as opposed to just pressing it briefly.. I found an op...

ActionPack Generator for 3.0

IS there a actionpack/subsonic generator for 3.0 like there was for 2.0? ...

What Are Binding Generators For?

A friend raised this on Twitter: @name_removed doesn't understand why binding generators seem to think writing pages of XML is vastly superior to writing pages of C++... Having never encountered binding generators before, I decided to look them up. Seems pretty self-explanatory, convert C++ classes to XML format. But now I need someone ...

PHP API Key Generator

Does anyone know of any API key generator script/class for PHP? The class should have method generate, that would generate a key and isValid() method, to check if the key is valid. Thanks! ...

Realistic 2D terrain map generation.

Hello guys. I am looking for some algorithms which allow me to generate a realistic 2D terrain map. By realistic I mean that person will consider such map as a "normal" terrain map, not created artificially. I don't want to create photorealistic map. Just something similar to maps that can be viewed in a geographical atlas. So far I a...