Questions tagged [generate]

Any question related to the Generate developer framework and CLI tool should tagged using the `generate` tag. How to use the generate CLI to run this generator ? How to use this generator as a plugin ? How to run a task from a subgenerator ? How to create my own Generate generator ?

What is generate ?

Generate is an extremely modern command line tool and developer framework for scaffolding out any kind of developer projects. Generate offers the robustness and configurability of Yeoman, the expressiveness and simplicity of Slush, and more powerful flow control and composability than either.

It is an open source framework hosted on github under the MIT license.

It has its own Github organization to namespace all the generators authored by the same author, Jon Schlinkert.

Generate is part of the awesome node toolkit created by the same author: https://github.com/node-toolkit

Some of the best related projects composing the node-toolkit:

Related StackOverflow tags

371 questions
1
vote
0 answers

Generate UITouch event from an app in iOS 11

Is it possible to generate a UITouch event, from an iOS 11 app, which will never be submitted to the App Store? I've seen several articles, dating back to around 2010 describing some old methods of doing this which are no longer valid. Does anyone…
1
vote
2 answers

How to generate a graph file?

Is there a way to generate valid graph files like simple-leuven.dot or graphs of other cities available on Rinsim? We'd like to find a fast way to generate directed cyclic graphs with various geometries.
1
vote
2 answers

Generate 6 random numbers without duplicates MySQL

I need a smart way to generate 6 numbers without duplicates between 1 and 49 and insert each number to column. Below is my procedere created in phpmyadmin, which insert numbers with duplicate. BEGIN DECLARE liczba1 INT; DECLARE liczba2 INT; DECLARE…
gushy22
  • 9
  • 6
1
vote
0 answers

Nuxt.js – Nuxt generate does not pass onclick parameter to component on 404 page

I have a strange issue with my 404/index.vue which after $ nuxt generate generates my 404.html file. I am using a Btn component in my vue file which works on index.vue file but not on my 404/index.vue. It seems that it does not pass the onclick…
Merc
  • 4,241
  • 8
  • 52
  • 81
1
vote
4 answers

Generate a perfectly normally distributed sample of size n in R

I would like to generate a sample of mean = 0, sd = 1 and size n = 100 which distribution is as normal as possible. Using rnorm alone returns a lot of variability. The only way I found was to average multiple rnorms. rowMeans(replicate(10000,…
Dominique Makowski
  • 1,511
  • 1
  • 13
  • 30
1
vote
2 answers

PHP + generate .html file for download

I'm not sure what to even be searching for here, so I'll explain what I am attempting to do. I current have a form (several dropdowns, input fields..etc) When the form is submitted, I am currently generating an 'output page' for print that has all…
whispers
  • 962
  • 1
  • 22
  • 48
1
vote
4 answers

java generated parallel IntStream(and other stream) issues

public static void main(String[] args) throws Throwable { AtomicInteger i = new AtomicInteger(); IntStream .generate( () -> { int item = i.incrementAndGet(); …
Max
  • 21
  • 3
1
vote
1 answer

JSZip - how to name file with generateAsync without download it

Good morning, I am using JSZip to create a zip, I have this code: for (var i = 0, f; f = content[i]; i++) { var zip = new JSZip(); zip.file(f.name, f); zip.generateAsync({type:"blob", compression:"DEFLATE", compressionOptions: { level: 9…
Marlon Adarme
  • 357
  • 4
  • 15
1
vote
1 answer

Generate django multiple sitemaps

I have a blog site and i want to generate 2 sitemaps, one for posts and one for categories the code that i have : sitemaps.py from django.contrib.sitemaps import Sitemap from .models import Post, Category class PostSitemap(Sitemap): priority =…
Dimitris Kougioumtzis
  • 2,339
  • 1
  • 25
  • 36
1
vote
1 answer

Program that build an executable

I would like to know how can i generate an executable using python or c/c++ (or any other langagues) from a program already compiled. For instance: I have an executable program.exe with a textbox and a button. You type any text you want in the…
voyager_1
  • 61
  • 6
1
vote
1 answer

Grails 3.3.3 generate-all Creates only the Service Interface

In Grails 3.3.3, when I run generate-all for a domain class, a Service Interface is generates (versus the actual Service Class from Grails 2.x). I actually didn't notice it until I tried to add a method to my service. The interface gets placed in…
Bmoe
  • 888
  • 1
  • 15
  • 37
1
vote
0 answers

Generate file by WebService through URL with query params (.NET)

I've a customer that needs access a WebService through the URL, but he wants the URL the following way: www.website.com/saf-t/generate.zip?start_date=2017-01-01&end_date=2017-01-31&simple_version=1&tax_number=203413421&purchases=0&accounting=0 Not…
rjcpereira
  • 943
  • 4
  • 17
1
vote
4 answers

Verilog, How to pass different parameters when I use generate to instantiation module?

I have a question about parameters passing. I used generate for to do module instantiation. But how to pass different parameters to each module? For example: generate for (i=0;i
user9362958
1
vote
1 answer

Generating all R-digit numbers among N digits in C++ (combinations, iterative)?

I have a program, where I have to generate all R-digit numbers among N digits in C++, for example for N=3 (all digits from 1 to N inclusive) and R=2 the program should generate 12 13 21 23 31 32. I tried to do this with arrays as follows, but it…
A.Petrov
  • 71
  • 6
1
vote
1 answer

IntelliJ: Persistence view: Generate Persistence Mapping hangs when accessing large database

This REALLY should be documented by the JetBrains folks but I figured out how to stop that eternal import wait. In IntelliJ, you set up a datasource in the Database view. You have added persistence.xml to a module and now want to use the JPA…
Matt Campbell
  • 1,967
  • 1
  • 22
  • 34