The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
-2
votes
1 answer
How to generate constructors, getters, setters, equals&hashcode, and toString at once?
Let's say I have a data class where I have written the properties:
public class Person
{
private String name;
private int age;
}
Now, I want to create the following with just one generation process:
public class Person
{
private String…

Ramy
- 1
- 1
-2
votes
1 answer
Auto complete a HTML file from a form
Quick question to see how this would be done as I'm not sure if it can be.
But essentially, I have to make 50 "profile pages" for some new mortgage brokers.
I was wondering if it is possible to create a form with basic details (say name, email,…

Dylan Garrod
- 15
- 2
-2
votes
1 answer
Convert integer to Excel column (letter or letter combination) - complete example PHP, unit test and explanation
Let's suppose we have a function like this one that takes a PDOStatement (any query) and auto generates an excel file (using PHPExcel library):
/**
* Create an Excel file from an opened PDOStatement. Return the path to access the Excel file
* …

Jonathan Parent Lévesque
- 1,902
- 1
- 25
- 35
-2
votes
2 answers
Is there a way to let Python generate multiple if statements?
I just need to add +30 to every number in every if statement. I need 36 of these, is there a way to let turtle make more if statements or something similar? I'm really stuck and the manual way would be crazy.
For example:
if 0 <= x <=30 and 0 <= y…

user2848418
- 7
- 3
-2
votes
1 answer
How to print each Cartesian product of multiple sets (dynamic-input) to new separated files in Perl?
I intend to make program which generates new files, that contain combination of element from multiple array.
First, program prompts user to input name of files.
Every file contains single word per line.
Every file will be treated as an array, and…

ask91
- 45
- 1
- 11
-2
votes
2 answers
Generate random alphanumeric string into password field
I want to generate a random alphanumeric string into password field when click a button.
code behind the button
var chars =…

User Mora
- 1
- 5
-3
votes
1 answer
autogenerate number from database in c#
I used the solution below, but whenever I delete a particular row it will duplicate the number.
Code:
void AutoGenerateId()
{
SqlConnection cn = new SqlConnection(ConString);
string Query = "select COUNT(*) from StudentDetails";
…

Dharmin Gheewala
- 79
- 2
- 9
-3
votes
1 answer
Generate automatic photo gallery with PHP or Javascript
So I have a huge amount of car photos which I have sorted in a structure looking like this (this is an fictive example to demonstrate my principle):
Cars > Audi > Sports cars > '5 pictures'
Cars > Audi > Family cars > '3 pictures'
Cars > BMW >…

nalas
- 85
- 1
- 12
-7
votes
2 answers
Auto-generate a list of words in C#, and save as File
I need help writing my method that accepts a single parameter long i:
public static string GetWord(long i)
{
string s = "";
//Update s using i
return s;
}
...for my program that saves a file of ASCII words...
public static void…

WonderWorker
- 8,539
- 4
- 63
- 74