The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
-1
votes
1 answer
Generate an id starting from one on every new date in C# using SQL server database
Please help me to do this.
Generate an id from database but id should start from one on each new date.
Using c# and SQL server.

Waseem
- 23
- 1
- 3
-1
votes
2 answers
Template Engine Capable of Altering after Render has been done
Hello
I Need to create a template, which is "dynamic", and i'll explain the meanning of "Dynamic":
I need to have a template, that is rendered into text files (c++ code, to be exact).
the user will be able to change some things in the generated…

Tomer W
- 3,395
- 2
- 29
- 44
-1
votes
1 answer
Trigger auto generation of field on new Entity (Doctrine in Symfony) / avoid Integrity constraint violation field cannot be null
Working with Symfony 3.x and Doctrine I have this problem:
Entity "Foo" is defined as follows:
/**
* @ORM\Entity
* @ORM\Table(name="foo")
*/
class Foo
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
*…

user3440145
- 793
- 10
- 34
-1
votes
1 answer
How do I generate random sized panels? C#
I was wondering how to continuously generate random sized panels with C#, withut using a game engine. What I want to do is to make a Flappy Bird remake. So what I need the random sized panels is for the obstacles. How would I do that?
I haven't…

Tobias Rasmussen
- 21
- 2
- 5
-1
votes
1 answer
How to generate a SAS code by running another SAS code
I am trying to create a simple SAS program which looks like below,
student_id = 123;
class_id = 123;
name = 'John';
How can I use another SAS code to automatically generate a SAS program contains as simple contents as shown above?
Thanks a…
-1
votes
1 answer
Using `touch` command, recognize file type and auto-generate shebang?
So, I really like the fact that text editors such as Vim allows you to auto-write text (most of the times shebangs) when creating a new file with a specific file extension.
However, I'd like to know if there's any way to do it from the terminal…

Eddo Hintoso
- 1,442
- 14
- 22
-1
votes
2 answers
The best way to generate multiple version of 1 object JAVA
I am trying to generate planets and i want to know the best way of creating objects in a for loop. I also want to be able to interact with the objects in a for loop as well. For example changing their x and y.
And help would be appreciated.

Tom Haffenden
- 43
- 6
-1
votes
1 answer
How to generate Java classes from Json File?
I would like to knows if someone can show me the right way to generate Java classes from a json File ?
for example if we have the following json file :
{
"Personne": {
"Name": "Job Moun ",
"Phone": "062352665566"
}
}
I want to generate…

Ayoub Mounji
- 7
- 1
- 6
-1
votes
1 answer
Netbeans codehints for generated code
Recently my NetBeans show me a ton of yellow hints for code, that is auto-generate by NetBeans itself when creating GUI for me. Is there a way, how to get rid of it, because I obviously cannot just simple change auto-generated code.
I assume there…

Ellrohir
- 1,017
- 1
- 14
- 32
-1
votes
3 answers
How to add auto generated ID continued from my last Data?
I want to auto generate the ID which incremented from my previous ID. ID format is A00001, A00002,... ..
I dunno how to auto generate
Controller
[HttpPost]
public ActionResult Create(Assignment assignment)
{
if (ModelState.IsValid)
…

WeakTaenie
- 247
- 2
- 6
- 14
-1
votes
1 answer
PetaPOCO: How to generate automatically class files for all of my databases?
i have 2 slq servers with many databases on each one. I've searched the documentation of PetaPoco but i can't find how to auto generate class files for each of the tables/databases on the servers.
Exist such a feature o i will have to go with custom…

CodeArtist
- 5,534
- 8
- 40
- 65
-1
votes
3 answers
PHP caches RAND() variable values
I have the following code in file index.php:
include('db_connect.php'); //Here's the script that provides mysql connection to a database
$a = round(rand(1,100));
$b = round(rand(160,202));
$c = round(rand(50,110));
$d = round(rand(1,99999));
$sql…

Al D
- 67
- 5
-1
votes
2 answers
Auto update ID in Java
This is my school assignment. I need an inventory system which auto-updates product ID when users key-in a new product. I created an array of object named Product with 4 attributes(name,ID,price,quantity). The ID should not need a user input.
This…

shunmin
- 1
- 2
-1
votes
1 answer
injecting a build tool into eclipse cdt
I would like to convert my file into .h and then run the build. How do I do that (particularly, in Xilinx SDK 12.4, which says that it is eclipse Version: 3.5.1.R35x and cdt Version: 6.0.0.201005121341)?

Val
- 1
- 8
- 40
- 64
-1
votes
1 answer
How do I generate a level randomly?
I am currently hard coding 10 different instances like the code below, but but I'd like to create many more. Instead of having the same layout for the new level, I was wondering if there is anyway to generate a random X value for each block (this…

Charlton Santana
- 3
- 6