generation

how can I generate integers that satisfy some restrictions?

Can anyone give me a hand with techniques to generate integers that satisfy certain restrictions. For example, say I need to generate integers x and y such that 100 > x and y < x + 5 And I don't mean this particular example but some generic techniques to generate integers that satisfy certain conditions. Thanks a lot! Manue...

how can I generate strings that satisfy some restrictions?

Can anyone give me a hand with techniques to generate strings that satisfy certain restrictions. For example, say I need to generate strings s and t such that length(s) < length(t) length(t) > 12 t contains at least 3 capital letters and s contains a 2 And I don't mean this particular example but some generic tec...

Cognos 8 API Integration with asp.net

Guys, I wanted to integrate cognos 8 and fetch the reports in excel/xml/csv format from cognos server. I don't have much knowledge about cognos, so can you provide me some pointers to start this process. Right now, i'm accessing the Cognos 8 server using IBM's sandbox server, is it possible to use this server as a testing interface? can...

Google Web Toolkit (gwt) - how does the post token is generated?

Hi, I am having a request like: 5|0|7|http://localhost:8080/testproject/|29F4EA1240F157649C12466F01F46F60|com.test.client.GreetingService|greetServer|java.lang.String|myInput1|myInput2|1|2|3|4|2|5|5|6|7| I would like to know how the gwt generates the md5 value of "29F4EA1240F157649C12466F01F46F60"? is it based on the client ip and da...

php mysql update statment generation from form values

I am creating a very small database abstract layer, i want to send an array of variables that i obtained from a form, and generate an update sql statement, and eventually execute it. What do I put on the second to last line below? for example. $table name = "user"; $username = $_post['username']; $password = $_post['password']; $email ...

how do sites like toufee or mouvee work ?

Hi, Was just wondering how do these sites (and many other softwares that generate flash movies from audio clips,images , docs) work ? how do they compile the media files(audio/image/vid) into a flv movie on the server ? Can the same be done using some open source tech. Any info or hint or some direction where i'd get more info regardin...

Looking for a good world map generation algorithm

I'm working on a Civilization-like game and I'm looking for a good algorithm for generating Earth-like world maps. I've experimented with a few alternatives, but haven't hit on a real winner yet. One option is to generate a heightmap using Perlin noise and add water at a level so that about 30% of the world is land. While Perlin noise (...

Encrypt a file base upon a pregenerated "key" C#

Hello everyone. I'm trying to determine the best course of action to implement a simple "licensing" system with a partner of mine. The concept is: Generate an encrypted value based upon several internal hardware components. Have the customer send this value to us which we will implement into our key generator. Once we have that, we add ...

Adding new functionality to an application using on-the-fly class generation

Is it possible to generate subclasses at runtime or while an application is running? If so, how is this achieved and what precautions should be taken to prevent a rogue object wreaking havoc inside an application? Edit: Title modified from "Class generation on the fly". ...

How to recursively delete some xml elements using XSLT

Hi, So I got this situation which sucks. I have an XML like this <table border="1" cols="200 100pt 200"> <tr> <td>isbn</td> <td>title</td> <td>price</td> </tr> <tr> <td /> <td /> <td> <span type="champsimple" id="9b297fb5-d12b-46b1-8899-487a2df0104e" categorieid="a1c70692-0427-425b-983c-1a08b658536...

how jaxb generates the custom tags (java to wsdl/xml) ??

I want to generate a xml (say a bpel xml). how can I do that using jaxb. thx ...

2d terrain generation in real time

Hey, I'm trying to create a game similar to this (Note:When you click 'play', there are SFX in the game which you can't seem to turn off, so you may want to check volume). In particular, I'm interested in knowing how the 'infinite' landscape is generated. Are there any tutorials/articles describing this? I came across procedural genera...

Map generation algorithms

Hi, I am currently working on a game in C# Xna, which works with (X,Y,Z) coordinates. Each unit, contains some information about what is placed at that position, etc dirt, rock or nothing. But I am pretty new into 3D game development, and I need some ideas for 3D map generation algorithms. I thought of interpolation or perlin noise, but...

How can I generate an "unlimited" world?

I would like to create a game with an endless (in reality an extremely large) world in which the player can move about. Whether or not I will ever get around to implement the game is one matter, but I find the idea interesting and would like some input on how to do it. The point is to have a world where all data is generated randomly o...

Add attributes to Jtree Dynamically

How to add attributes to a dynamically generated nodes of a JTree, the generated Jtree will be converted to a xml file Please Please help me ...

Generating a random number but with a twist

I need to generate a random number. But the twist is that the % of lower numbers should be greater than the higher. For example. rand > 1 to 100 13, 15, 12, 16, 87, 15, 27, 12, 1, 12, 98, 12, 53, 12, 14.... The bold integers will be the ones return from the 1-100 range. The math should be like so rand = a number lower than max/2 ...

Automatic Generation of a JavaHelp Index File

I just started working with the JavaHelp package. I have done some basic modifying of the Table of Contents and such with no problems. My issue arises in that I have created various new help files (added to an existing project within my dev team) and added various sections to existing help files. I now need to make sure that the index.x...

Generate XML document in-memory with JavaScript

I am working on a Web application that needs to send XML to a server backend. I'd like to build a XML document in-memory on the client-side, but using XML manipulation routines, instead of appending countless strings together. I'm hoping jQuery can help me out. Let's say I need to generate this (toy) XML document with JavaScript: <repo...

Resharper 5 plugin creation

I'm looking to create a plugin for resharper 5. I looked through their site and didn't find any information about where to begin. So, where do I begin? ...

How to create php RSS simulator?

So I have RSS feed of 10 000 records in file.xml (I collected them from 10 feeds in 1 hour time so there timestamps will not help, btw I used yahoo pipes). I need some class to simulate that records appearing 24 per a day with 1 per hour. How I see it: 1) turn file.xml into sql table (if you know a class for this please help) 2) cr...