Questions tagged [generated-code]

231 questions
0
votes
0 answers

Master certificate

Ok how can I generate a library with every image I have ever downloaded or taking with my camera without duplicates? I need just album in my library where I have just one image , and in the order I taken them or downloaded the image from the first…
0
votes
0 answers

QR code is generated by using 'Simple QrCode' package not showing correctly?

I have used 'Simple QrCode' package to generate 'QR Code'. Followed the instruction https://www.positronx.io/how-to-generate-various-qr-codes-in-laravel-application/ I want to generate Logo Inside QR CODE, Code {!!…
0
votes
1 answer

Jackson Spring-boot test coverage

I'm developing a rest API on IntelliJ and I was wondering if there's a way to exclude Jackson generated classes from test coverage. Searching online I didn't find anything except a way to tell IntelliJ to exclude some packages, but I thought that…
0
votes
0 answers

How do I combine two XSD files and keep the older classes from the older XSD file?

I have two XSD files and I need to combine them and generate a .cs file (C# objects). One XSD is the one we already use (let's call it first.xsd), and we still need the C# objects that are generated from this one. The second.xsd file has changes,…
A. Gh
  • 631
  • 9
  • 24
0
votes
1 answer

Avoid sonarqube analysis of source code automatically generated

my project generates at runtime source code from thrift file. Is there a way to avoid Sonarqube analyzes this source code automatically generated? This because I have some code smell and bug detected by Sonarqube in that generated code I can't…
C.S.
  • 77
  • 2
  • 9
0
votes
1 answer

Generated client code in postman not matching with postman's tested response

I've been trying to send a file (image) using Java and Springboot. Recently I've discovered that there is a code section in the Postman which can generate Java code, and thought it can be used for sending file (via post method), however I'm getting…
slomil
  • 193
  • 1
  • 4
  • 12
0
votes
0 answers

Rapid Check how to get output for custom types?

I have the following code with rapidcheck: namespace rc { template<> struct Arbitrary { static Gen arbitrary() { return gen::build( gen::set(&Point::x), gen::set(&Point::y), gen::set(&Point::z)); …
Makogan
  • 8,208
  • 7
  • 44
  • 112
0
votes
1 answer

How to create a collection of singletons from all classes in a namespace

Lets say we have a namespace called AllFoos. And Lets say all classes in the AllFoos namespace implement a specific interface called IFoo and are all singletons. Now we have: HashSet myFoos = new HashSet(); What would be the code to…
Barka
  • 8,764
  • 15
  • 64
  • 91
0
votes
1 answer

How to recreate page references in LibreOffice

Before you dismiss this post as using LibreOffice documents THE WRONG WAY, let me explain what I'm trying to achieve. I am generating programatically ODT documents, which is mostly no big deal. I have hit the wall, however, trying to insert internal…
helcim
  • 789
  • 13
  • 27
0
votes
1 answer

How to generate CREATE TABLE scripts for a List of table names in SQL Server

Can someone help me with a tool/script that generates CREATE TABLE script for a bunch of table names that are listed either as comma separated or in an excel file. We often have to selectively generate scripts for several tables that user submits…
LonelyRogue
  • 376
  • 1
  • 2
  • 10
0
votes
1 answer

Data binding stops working when using MutableLiveData variable inside layout [Gradle to 3.5.1]

I'm using DataBinding in my project. Use Java, not Kotlin, Android Studio version is 3.5.1(latest) After upgrading project gradle version from 3.5.0 to 3.5.1 got error inside *BindingImpl class. I've figure out that the problem is with…
Akbolat SSS
  • 1,761
  • 15
  • 23
0
votes
1 answer

How to create a Spring Boot fat JAR containing classes from target/generated-sources

I want to create a Spring Boot fat JAR containing classes from target/generated-sources. After that I want to add this JAR as a dependency in another app and use a class from target/generated-sources in another app. So I have a Spring Boot app, and…
Yuan
  • 1
  • 3
0
votes
0 answers

Why does echo concatenate in CMake custom command

I am messing around with build time source file generator, and I came across a strange behavior. If I have the following: ADD_CUSTOM_COMMAND( OUTPUT ${GENERATED_FILE} COMMAND echo "// generated file" > ${GENERATED_FILE} …
jws
  • 2,171
  • 19
  • 30
0
votes
2 answers

How to fix 'Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException' on code generated by NetBeans?

I have a form with a button and an icon assigned to the button. This code was generated by NetBeans. I get an 'Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException" error when trying to run the application. I created a brand new…
0
votes
1 answer

How to generate code when submit 2 things simultaneously in node js

I have a node js and I want to generate code for activity_code, I want to generate code like these : LA0000000001 , LA0000000002 , LA0000000003 and so on sequentially. I have tried like this, but in the some case, when I submit 2 activities…
Ratri
  • 337
  • 1
  • 7
  • 21