generate

VBScript to Write a Macro within an Excel file

Is it possible for the VBScript to write a Macro within the excel file when it is generated that would be able to run whenever the file is opened? Ive got a VBScript to auto generate an excel file and some data within it, this runs once and generates the file with all the data/sorts etc. What I need is to have some interactivity that w...

Adding a hook to script/generate migration

I do my Rails dev from xterm and in vim. I'm getting sick of running script/generate migration do_whatever, then trawling through db/migrate trying to tab-complete to 20091015235018_do_whatever when there's 5 other migrations with similar timestamps. What's the best way to add a hook to open the generated migration in vim? I'd rather ...

Method for generating numerical values from a URL

In the 90s there was a toy called Barcode Battler. It scanned barcodes, and from the values generated an RPG like monster with various stats such as hit points, attack power, magic power, etc. Could there be a way to do a similar thing with a URL? From just an ordinary URL, generate stats like that. I was thinking of maybe taking the ASC...

Generating sql insert into for Oracle

The only thing I don't have an automated tool for when working with Oracle is a program that can create INSERT INTO scripts. I don't desperately need it so I'm not going to spend money on it. I'm just wondering if there is anything out there that can be used to generate INSERT INTO scripts given an existing database without spending lo...

Libraries or tools for generating random but realistic text

I'm looking for tools for generating random but realistic text. I've implemented a Markov Chain text generator myself and while the results were promising, my attempts at improving them haven't yielded any great successes. I'd be happy with tools that consume a corpus or that operate based on a context-sensitive or context-free grammar...

Generating large amounts of PDF Docs from templetes

Where I work we get PDF templetes from our clients and we convert them into html templates that we can change out tokens in the page with other info and mail them out to their clients. The reason we convert them into html is because the text can wrap if any of the info is too long. The process can be slow since we can only do 1 at a ti...

Generating HTML file which fetch data from SQL in the C# and ASP.NET

I'm new to ASP.NET and now I am creating an HTML file in ASP.NET C# which is stored in an folder. Now when the aspx file is run it will fetch some data and display it in the output. And there is an button. When I click it the HTML file is created. Now my problem is I want to fetch the same data in the HTML file also to display it and to...

[VHDL] How to generate serial signal from string?

How do I send data represented by a binary string (e.g. "01011101000100111", length is variable) to an std_logic signal given either fixed delay or clock signal? I want this for a testbench so I'd want to be able to arbitrarily change the binary string with as little hassle as possible, so I'm thinking of using generate. ...

Google App Engine - Caching generated HTML

I have written a Google App Engine application that programatically generates a bunch of HTML code that is really the same output for each user who logs into my system, and I know that this is going to be in-efficient when the code goes into production. So, I am trying to figure out the best way to cache the generated pages. The most p...

Generate all project dependencies in a single file using gcc -MM flag

Hi all, I want to generate a single dependency file which consists of all the dependencies of source files using gcc -M flags through Makefile. I googled for this solution but, all the solutions mentioned are for generating multiple deps files for multiple objects. DEPS = make.dep $(OBJS): $(SOURCES) @$(CC) -MM $(SOURCEs) > $(DEP...

Generating a computer-specific UUID in Xcode

How do I generate a UUID that will uniquely identify a computer using Xcode / Objective-C? Windows has UuidCreateSequential(), what can I use on a Mac? ...

Spreadsheet_Excel_Writer making Rows width longer

How can i make rows a bid longer? if i output the excel all prints fine, only if the title is a bit long, then the Title is not readable. How can i fix that? ...

How to get a file generated by SWF from URL?

so I have a SWF file. It can generate Jpeg images. I want to get that images by url (for ex www.my.com/file.swf#image.jpeg) I want to get just clean image (no flash no sign of flash). So as if i was just calling my apache server to give me that image. So how to do such sing with AS? I need Libs Tutorials or anething. ...

Generate and repeat number in C#

I want to generate an array that has 144 number from 1->36 in random order (so each number is repeated 4 times). Can we use Enumerable.Repeat and Enumerable.Range to do that. If yes than please explain to me how?. Thanks you very much. ...

Generate random number in JavaScript

I need an 2d array [9,16] with 144 numbers from 1->36 in random order (so each number is repeated 4 times). I'm new at JS so can you give a hand, please. Thanks you. ...

SQL metal to dbml, how to generate correct foreign key column names

I have this 2 tables table name: Person with Columns:PersonID, Name table name: VisitInfo with Columns: VisitPersonID , CoordinatorPersonID both columns have a foreign key to person table When i generate the code i get a VisitInfo class with the properties: Person CoordinatorPerson But what i want is a VisitInfoClass with the ...

Is there any Algorithm for converting Image of sound to sound?

So I have an image like this Is there any algorithm to extract (get as PCM) sound from which was created that image? ...

Generate script for all objects for SQL Server Database

I have used SMO objects to generate SQL Script for database objecrs for SQL Server. This works well when the database is in the local network. But it takes a lot of time if database is in a remote server. What would be the best and fastest way of generating scripts for SQL Server objects when database is in remote server. Thanks in adva...

How to open a file from browser by using asp.net c# code.

From Service method return me: String FileName, Byte[] FileData, string FileType( includes: doc, pdf, tif, tiff, gif, jpg, jpeg, png, bmp, wpd) How can I generate a file based on filetype and show it to user in browser? Download to user is ok for me ...

Dynamically creating a member ID card as pdf using PHP?

I need to code a PHP script that would let me generate a pdf file which displays a member ID card (something like a credit card used to identify oneself) at a certain resolution. Let me explain: I do have the basic blueprint of the card in png file format. The script needs to drop in a member's name and birthday along with a serial. So ...