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
0
votes
1 answer

Display images with WickedPDF on an RoR App

I actually generate PDF with WickedPDF on my app. And now I just want to include an image "logo.jpg" on the header of my PDF. I tried lot of things, and I think my problem come from assets. My Controller : def generate_pdf pdf =…
0
votes
1 answer

Very simple question about faker.random in javascript... newbie question

I am very newbie in javascript! I want to be professional in javscript! I am shame to ask this question, but I cannot find anything about it :( (faker.random.number(89999999) + 10000000) If I am using this faker, what numbers will be…
Rich Kim
  • 11
  • 3
0
votes
3 answers

How to use while loop to creat a dummy variable based on an existing variable?

I have a categorical variable called "X1" and a dummy variable called "X2". Now I want to create a dummy variable X3 in a way that follows this logic: If in any rows of any categories of X1, at least one row gets X2=1, then put X3=1 for all the rows…
Aura
  • 49
  • 7
0
votes
1 answer

how can i generate hex file from cpp file with avrdude

I have a string code. void setup() { pinMode(5, OUTPUT); } void loop() { digitalWrite(5, HIGH); delay(1000); digitalWrite(5, LOW); delay(1000); } I want to create a hex file from that string code using avrdude. Is there a command to do…
0
votes
1 answer

Crunch - How to generate specific password list?

First Hello! I have a crunch question: We need to generate some list to crack password which has lower, upper case letters and numbers. exp: a2jXBv69 We can do it simple way by using "crunch 8 8 abcABC123..." but it will create a huge list with a…
TrifuN
  • 1
  • 2
0
votes
1 answer

how to take highest value and assign that to generate value

Hello I have below scenario. I am using ID4 to generate Level 4 and ID3 to generate Level3. So in my ID3 i have two records with NULL. I want my sql to take the value without null and generate same value under level 3 in output file (Yellow…
saif
  • 1
  • 1
0
votes
1 answer

how to finalize generating a signed SDK

When trying to generate a signed SDK, I receive an error message: " Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;29.0.2 Android SDK Build-Tools 29.0.2 To build this project, accept the SDK…
MarcelV
  • 1
  • 1
0
votes
0 answers

Android Studio-Can't Generate APK

When i want to generate the apk this error appears to me :https://i.stack.imgur.com/mdAyR.jpg . So far I have not received this error, for some time it started to appear and I do not know how to fix it, if anyone can help me, I am waiting for an…
0
votes
5 answers

Generate a list of 100 elements, with each element having a 50% chance of being 0, and a 50% chance of being a random number between 0 and 1

I am quite new in this and I am trying to learn on my own. As I said in the title, I am trying to create a list of 100 numbers whose elements are either 50% chance of being 0's or 50% change being a number between 0 and 1. I made it like the one…
0
votes
0 answers

How can I get a Mongodb collection create script?

I have a spring boot application rest api with mongodb as database. My own application created all the collections in mongodb, but I really need the db.createCollection script. There is anyway to get this? Like SQL Server? I'm reading about…
0
votes
1 answer

How to callback a view created with an ID in Kotlin

My current scripts are fun addRow(text: String, rowNum: Int){ val textViewNm: TextView = TextView(this.context) textViewNm.text = text textViewNm.gravity = Gravity.CENTER textViewNm.id = rowNum textBox.addView(textViewNm) } I'd…
lacuna
  • 3
  • 2
0
votes
2 answers

Jmeter testing: How to generate many unique files?

I have question:How to generate many unique files ? In my testing: upload many files to gofast,but File content is not repeating. Thank you ! enter image description here
gang yan
  • 37
  • 4
0
votes
1 answer

Android Studio-Generate Signed APK Errors

I recently started Androids Studio, I bought a quiz game and I tried to modify it a bit with the help of some tutorials, only when I want to generate the apk I get some errors, I tried to do everything from the beginning about 10 times and the same,…
0
votes
1 answer

NUXT build vs generate and sitemap

My case: I want to have dynamic routes (ex: page/1). I want to have accessible web also without JS because of SEO and crawlers. So I load data with asyncData. It is ok. I have nodejs hosting. Nowadays I used deploy in way yarn build and yarn…
Jan Pikl
  • 3
  • 4
0
votes
5 answers

Random image javascript

I am struggling a bit with this random image javascript even though I sense the answer is quite simple. My code generates four letters (images) at a time. How do I get the code to regenerate new letters instead of adding four additional letters…
micks88
  • 57
  • 1
  • 10