The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.
Questions tagged [auto-generate]
654 questions
14
votes
2 answers
Make git to track auto-generated files but ignore from diff
I have a repository with source code (mostly *.php, *.js) and documentation files (mostly *.md, *.html, *.svg) that are automatically generated from annotations. All documentation resides in a seperate sub-directory (./doc) within the repository.
On…

user2690527
- 1,729
- 1
- 22
- 38
14
votes
7 answers
How make toString() method return Super Class private fields also along with its instance fields?
Is there a way to make toString() include private fields of the super class? I tried adding a super.toString(), no use however.
Please see the code below
Employee.java
package test;
public class Employee {
private String name;
private int…

Sainath S.R
- 3,074
- 9
- 41
- 72
13
votes
4 answers
GNU make: Generating automatic dependencies with generated header files
So I followed the Advanced Auto-Dependency Generation paper --
Makefile:
SRCS := main.c foo.c
main: main.o foo.o
%.o: %.c
$(CC) -MMD -MG -MT '$@ $*.d' -c $< -o $@
cp $*.d $*.tmp
sed -e 's;#.*;;' -e 's;^[^:]*: *;;' -e 's; *\\$$;;' \
…

Chen Levy
- 15,438
- 17
- 74
- 92
13
votes
4 answers
Can Visual Studio auto-generate properties?
Like in Eclipse for Java, where it can auto-generate getters and setters for class variables, can Visual Studio 2010 do this as well?

Scott
- 4,066
- 10
- 38
- 54
13
votes
1 answer
Using project references as assembly paths in T4
I have a .tt script that needs to reference a couple of external assemblies.
Is it possible for the T4 host to automatically include the assemblies referenced in the project - rather than me manually adding an assembly directive for each one?
E.g.…

herskinduk
- 1,187
- 6
- 14
13
votes
2 answers
How to document Ruby code using Doxygen?
Question: How can I document Ruby code using Doxygen?
Disclaimer: I know ruby already has a system for documentation built in and there are probably other ways to do it as well, but the specific constraint I am operating under is how to get Doxygen…

dreftymac
- 31,404
- 26
- 119
- 182
11
votes
1 answer
Generate db diagram from any sql statement
I'm using DBArtisan 8.5.5 and it has the ability to generate Database Diagrams using Build Query, it has a nice feature that lets it autojoin, detecting potential relationships on newly added tables to the diagram. So the diagram results into a SQL…

Carlos Jaime C. De Leon
- 2,476
- 2
- 37
- 53
11
votes
2 answers
Python ORM that auto-generates/updates tables and uses SQLite?
I am doing some prototyping for a new desktop app i am writing in Python, and i want to use SQLite and an ORM to store data.
My question is, are there any ORM libraries that support auto-generating/updating the database schema and work with SQLite?

Jason Miesionczek
- 14,268
- 17
- 76
- 108
11
votes
3 answers
Paypal auto-generated HTML code: why the 1 pixel image?
If you create a button using PayPals selling tools you are then presented with auto-generated HTML after filling in the details of the particular product you want to sell. At the bottom of this generated code is this strange piece of HTML:

Gary Willoughby
- 50,926
- 41
- 133
- 199
11
votes
2 answers
EntityFramework not generating C# files properly (some enums are incomplete, so build fails)
At work I just installed a brand new copy of my OS and a brand new copy of VS2015. When I clone my solution for the first time, I cannot build it anymore, even if I've generated the C# files like I always do, by opening the .edmx file first, and…

knocte
- 16,941
- 11
- 79
- 125
11
votes
3 answers
How to automate property generation for a class in phpstorm?
If I implement a class, which gets some services injected, I have to write this bulk of code:

k0pernikus
- 60,309
- 67
- 216
- 347
10
votes
5 answers
Is there a way to generate boilerplate code for RESTful stacks?
As I get more into RESTful APIs, the (good) simplicity of the approach means that you generate a LOT of boilerplate code, and code that has to match in three or four different places, e.g. for a Jersey-based stack:
HTML on the web page which…

Alex Feinman
- 5,393
- 1
- 30
- 48
9
votes
2 answers
generate_series() equivalent in DB2
I'm trying to search the DB2 equivalent of generate_series() (the PostgreSQL-way of generating rows). I obviously don't want to hard-code the rows with a VALUES statement.
select * from generate_series(2,4);
generate_series
…

Steve Schnepp
- 4,620
- 5
- 39
- 54
9
votes
1 answer
Android: How to set a generated contextMenu title?
I create a context menu like this:
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
if(v.getId() == R.id.ListView01) {
getMenuInflater().inflate(R.menu.add_contextmenu, menu);
}
…

Tobias
- 7,282
- 6
- 63
- 85
9
votes
2 answers
Generate random latitude-longitude values within an area(country/city)
How can I get thousands of geographic coordinates (long/lat) randomly generated that remains within a specific country ?
It's for an application i'm doing and i need test data.
I preffer it in JSON format.

Xsmael
- 3,624
- 7
- 44
- 60