generate

How to generate 8 byte hex value?

Hi I want to generate this sequential data in C data_packet[1] = 0706050403020100 (seed_value) next data_packet[2] = 0f0e0d0c0b0a0908 Next will be the next 8 hexadecimal characters and so on for say 100 bytes.How can i do it.Can we do it using character array ?? ...

Dynamic UI Generation in C#

I am designing an application for a library. Not a large scale library, but a very small scale library where my primary task is to just keep information about the books. But this library application should be able to adapt to any professional's private library. For an example, for a lawyer, apart from the basic information about the book...

How can I randomize this text generator even further ?

Hello everyone, I'm working on a random text generator -without using Markov chains- and currently it works without too many problems -actually generates a good amount of random sentences by my criteria but I want to make it even more accurate to prevent as many sentence repeats as possible-. Firstly, here is my code flow: 1-Enter a sen...

Using java how to add in-code generated jpg images to a word document without saving the file first

Using java how can I add in-code generated jpg images to a word document without saving the file first. The word document needs to be created from scratch in Java (poi does not seem to do the images) ...

Create entire DataSet from existing stored procedure

Hi, I have stored procedures (they accept parameters) that return multiple result sets and I'd like to have this saved in a typed dataSet. The question is: can I have Visual studio 2010 generate the typed dataset based on stored procedure? I know I can have this for a single table, but I need the whole dataSet (multiple tables, one for...

Serial generation with PHP

Throughout my days as a PHP Programmer and a beginner at C# programming I've always wondered of the best way to generate unique serials such as how Microsoft Office and Microsoft operating systems do. Does anyone have a good guide to how to handle this, Like what are the important factors in generating the unique serial, prevent duplic...

Generate a JSON string using Objective-C

I know there are a few frameworks to parse JSON, but how can I generate a JSON string in Objective-C? Will it be something I would have to write myself, or is there something simple already out there? ...

How to generate a ppt file from my C++ program (Linux)

Possible Duplicate: How can I programmatically create PowerPoint presentations. On Linux. For Free. hello, do anyone know how to generate a PPT file (powerpoint) from a simple C++ program?? i have the Idea, but i really dont know the "How To". I installed openoffice SDK, and i know that openoffice exports to *.ppt format. T...

How to automate generating XML instances from XSD files, using Eclipse MDT XSD project?

I am working in a project where we create XSD schemas, and would like to generate sample xml instances for testing purposes. In eclipse, there is an XSD editor that has the option Generate > XML which does it by a click of a button. But I would like to convert this mouse click to a Builder, Maven or Ant task. Any ideas of how to do it? ...

Generate UUID with GWT

Is there any way to generate UUID with GWT? ...

Rails3: How to recreate test fixtures based on development database schema (newbie)

The situation: I used generate scaffold to set up my objects in a new Rails project. Besides doing some migrations, I also directly edited the MySQL tables by adding and renaming columns etc. Now I can't get tests to run because the automatically-generated fixtures do not correspond to the database schema. Perhaps they're based on the or...

Generating alphanumeric IDs (unique strings)

Hello! How can alphanumeric IDs be generated in PHP or AS3 etc instead of the classic auto incremented numeric ID. YouTube uses this for its video IDs for example. Facebook generates long alphanumeric strings for uploaded image names and so on. EDIT: It's not how I generate the strings per se, but how do I generate unique ones like th...

how to generate links in php?

This is a very basic question but I couldn't seem to find anything on Google, hm. Anyway, I'm not referring to creating links, i'm talking of generating links like site.com/1 or http://stackoverflow.com/questions/3870639/how-to-generate-links-in-php, the numbers after the url are stored in the database with a corresponding post for exam...

Looking for a sample/example for Adobe Air (flex) app to generate a word document.

Like the title said, I'm looking to generate a word doc (or something word can read formatted) from an Adobe Air application. My second alternative would be to generate an HTML doc and format it like the word document but it would be more convenient to use a word processor. I eventually will tie this to a database (probably php). Any ...

Get values of js generated controls, from server side.

Let me explain the case; On the asp.net page, i have a repeater which generates <tr>s and <td>s. On clientside, i have a js function which adds or deletes rows into that repeater-generated-table. The problem is, in this function, i dont only generate a simple row, a textbox (which i have to get its value on server side) is generated t...

Creating a config list of classpath jars in ant

I have a list of jars in an ant task like this.. <path id="lib.path.id"> <fileset dir="${lib.dir}"> <include name="jar/*.jar"/> </fileset> </path> I want to unroll this into a config file like this.. wrapper.java.classpath.1=../lib/activation.jar wrapper.java.classpath.2=../lib/bcel.jar wrapper.java.classpath.3=../l...

Create class files with T4 template

Hi, I have 82 procedures that create data tables, and i want to iterate through this tables and dynamically create the following classes for each data table: * The data table contain two columns: Id, Desc. e.g. CountryId, CountryDesc. * Each of the bold items in the example class below is dynamically create based on the data table i am u...

Generate Json schema from XML schema (XSD)

Does anybody know how to generate a Json schema from a existing XML schema (XSD file)? Are there any tools available for this? ...

Generate sql server scripts using .net framework

Hi all, it is possible to generate script from sql server using .net framework. Example if I have database "Northwind". Then I wish to create/generate script insert" in form file extension .sql (ex: northwind_insert.sql). Is something like when you using sql-server "right-click on table" > "script table as" > "Insert to" > "file". I w...

How to generate all possibilities of a string with X tokens and Y values for each token

So, I have a template string with X amount of tokens in it. Hypothetically it could look like this: template = "render=@layer0@-@layer1@-@layer2@-@layer3@-@layer4@" The tokens, obviously, take the form of @tokenname@. In this hypothetical case it has five tokens. Each token has a different set of possible values. For example: token0V...