问:
Quarkus CDI Bean is not injected / is null
I have a simple quarkus backend application. I am using CDI dependency injection in many places. Normally it works fine. But in one case the dependant bean is not injected. Its null. Why?

The bean I am trying to inject is a very simple service class to load data from a MongoDB.

userService.java

```<code>@Singleton       // <= is this annotation correct? Or
public class UserService {

    @Inject    // <= this all works fine
    MongoClient mongoClient;

    @ConfigProperty(name = "liquido.db-name")
    String dbName;

    public Optional<UserModel> getUserById(String userId) {
        // ... code to fetch user form DB ...
    }

}
</code>```

I have another class that implements org.mongodb.bson.CollectibleCodec. It decodes values from mongoDB to POJOs.

TeamCodec.java

```<code>@ApplicationScoped     // <= is this annotation correct?
public class TeamCodec implements CollectibleCodec<TeamModel> {

    @Inject
    UserService userService;     // <=== THIS IS ALWAYS NULL???

    @Override
    public TeamModel decode(BsonReader reader, DecoderContext decoderContext) {
        TeamModel teamModel = new TeamModel();
        reader.readStartDocument();

        userService.getUserById(...);  // <==== THIS FAILS
    }

}
</code>```

Any hint or advice why some of my injections work, but others not?

Body:
I have a simple quarkus backend application. I am using CDI dependency injection in many places. Normally it works fine. But in one case the dependant bean is not injected. Its null. Why?

The bean I am trying to inject is a very simple service class to load data from a MongoDB.

userService.java

@Singleton       // <= is this annotation correct? Or
public class UserService {

    @Inject    // <= this all works fine
    MongoClient mongoClient;

    @ConfigProperty(name = "liquido.db-name")
    String dbName;

    public Optional<UserModel> getUserById(String userId) {
        // ... code to fetch user form DB ...
    }

}

I have another class that implements org.mongodb.bson.CollectibleCodec. It decodes values from mongoDB to POJOs.

TeamCodec.java

@ApplicationScoped     // <= is this annotation correct?
public class TeamCodec implements CollectibleCodec<TeamModel> {

    @Inject
    UserService userService;     // <=== THIS IS ALWAYS NULL???

    @Override
    public TeamModel decode(BsonReader reader, DecoderContext decoderContext) {
        TeamModel teamModel = new TeamModel();
        reader.readStartDocument();

        userService.getUserById(...);  // <==== THIS FAILS
    }

}

Any hint or advice why some of my injections work, but others not?


来源: stackexchange

问:
When I add a new package I can't flutter run on M1
I have a mac M1 and it seems causing lot of problems.
When I create a project there is no error in Vscode or Xcode I can run the app normally. When I add the first package image or get for example there is no podfile created and I can run on ios the app. But when I add firebase_core, it creates a Podfile and starting from now I have only problems. In xcode there is the error "Module 'firebase_core' not found". So I do arch -x86_64 pod update ; not working, then arch -x86_64 pod install ; still the error. I don't know what to do, I just want to move on but I can't because M1 and Xcode. Maybe there is one parameter to change or one thing to install idk, help me please</p>

ContentLicense: CC BY-SA 4.0


问:
Overleaf: Closing document when typing backslash
I have been working with overleaf for a while now and never encountered this problem, or even heard about it. This is why I don't have an idea what could be causing it, lest how to solve the problem.

What's happening is, that every time I want to type a backslash '', no matter what intention I have (line breack, command, ...) the document closes itself between \begin{document} and \end{document}. The content is not lost, and I can still unfold it again, however it is quite cumbersome if I always have to copy-paste when I use a backslash.

Does anyone have an idea what could be causing this problem and how to get rid of it? Is it something in my settings (I can not remember to have changed anything, but maybe I used some shortcut by accident) on overleaf or on my computer?
I hope it is clear what the issue is, otherwise I can try to elaborate.


问:
Is there a way to upload files from a google drive folder into a GCP bucket?
I have employees who upload csv files into google drive folders on a daily basis. The data in these files needs to be consolidated, cleaned and loaded onto a DB which then in turn connects to a visualization tool. I'm looking at using GCP's solutions. I'd like to automate the data ingestion process between the files being dropped into the google drive folder and the same files being uploaded onto the GCP buckets.

I had initially thought that I could do this through the GCP console but there seems to be no such UI option. What's the best way to achieve this?


问:
React - How to Extend Children Props without Cloning (with KineticJS)
So I have a React element:

```<code><Stage>
   <Layer>
      <Element />
   </Layer>
</Stage>
</code>```

When <Stage /> is mounted, I create a new element called this.stage.

```<code>export default class Stage extends React.Component {
   constructor(props){
      this.stage = null;
   }

   componentDidMount(){
      // eslint-disable-next-line
      this.stage = new Kinetic.Stage({container:this.props.id, width:this.props.width, height:this.props.height });
   }

   layerUpdated(layer){
     this.stage.add(layer);
   }

   setChildProperties(){
    $(this.props.children).each((i, layer) => {
       layer.props.onUpdate = (layer) => this.layerUpdated(layer);
     })
   }

   render(){
      this.setChildProperties();
      return (
       <div id={this.props.id}>
          {this.props.children}
       </div>
      )
   }
}
</code>```

When the <Layer /> is constructed, I create a new element called this.layer.

[ Note: I've removed the code which extends the props ]

```<code>export default class Layer extends React.Component {
   constructor(props){
      // eslint-disable-next-line
      this.layer = new Kinetic.Layer({ id:this.props.id, height:this.props.height, width:this.props.width });
   }

   elementAdded(el){
    this.layer.add(el);
    **this.props.onUpdate(this.layer);**
  }

   render(){
      return (
       <div id={this.props.id}>
          {this.props.children}
       </div>
      )
   }
}
</code>```

When the <Element />is mounted, I create a new element called this.element.

```<code>export default class Element extends React.Component {
   constructor(props){
      this.element = null;
   }

   componentDidMount(){
    // eslint-disable-next-line
    this.element = new Kinetic.Element({});

    **this.props.elementAdded(this.element);**
   }

   render(){
      return []
   }
}
</code>```

The problem is that I used to be able to go through each layer or element and extend the props without cloning the React element and adding the method I wanted to add. I used to be able to write

layer.props.onUpdate = () => { // do something }

without any problems and my code worked well. Unfortunately, when I first started my project, I was extremely new to React and used a batch program to check if any changes were made and, if any changes were made, to compile the React into Javascript. I realized this was rather tedious and spent time figuring out how to use create-react-app and refactored my code so I can run the npm start and npm run build commands. Which was great... except for the fact I was not able to extend props anymore. 90% of the time, this was okay. I could simply clone the React children and add the properties I wanted. But here, it does not work. I've tried. I need to extend the props of the children without cloning them. (Cloning appears to create multiple stages)

I have a lot of code which uses this, and refactoring all of my code to work without extending the props like how I want it to will take days.

[ Note: I've already removed any <React.StrictMode /> tags ]

Body:
So I have a React element:

<Stage>
   <Layer>
      <Element />
   </Layer>
</Stage>

When <Stage /> is mounted, I create a new element called this.stage.

export default class Stage extends React.Component {
   constructor(props){
      this.stage = null;
   }

   componentDidMount(){
      // eslint-disable-next-line
      this.stage = new Kinetic.Stage({container:this.props.id, width:this.props.width, height:this.props.height });
   }

   layerUpdated(layer){
     this.stage.add(layer);
   }

   setChildProperties(){
    $(this.props.children).each((i, layer) => {
       layer.props.onUpdate = (layer) => this.layerUpdated(layer);
     })
   }

   render(){
      this.setChildProperties();
      return (

          {this.props.children}

      )
   }
}

When the <Layer /> is constructed, I create a new element called this.layer.

[ Note: I've removed the code which extends the props ]

export default class Layer extends React.Component {
   constructor(props){
      // eslint-disable-next-line
      this.layer = new Kinetic.Layer({ id:this.props.id, height:this.props.height, width:this.props.width });
   }

   elementAdded(el){
    this.layer.add(el);
    **this.props.onUpdate(this.layer);**
  }

   render(){
      return (

          {this.props.children}

      )
   }
}

When the <Element />is mounted, I create a new element called this.element.

export default class Element extends React.Component {
   constructor(props){
      this.element = null;
   }

   componentDidMount(){
    // eslint-disable-next-line
    this.element = new Kinetic.Element({});

    **this.props.elementAdded(this.element);**
   }

   render(){
      return []
   }
}

The problem is that I used to be able to go through each layer or element and extend the props without cloning the React element and adding the method I wanted to add. I used to be able to write

layer.props.onUpdate = () => { // do something }

without any problems and my code worked well. Unfortunately, when I first started my project, I was extremely new to React and used a batch program to check if any changes were made and, if any changes were made, to compile the React into Javascript. I realized this was rather tedious and spent time figuring out how to use create-react-app and refactored my code so I can run the npm start and npm run build commands. Which was great... except for the fact I was not able to extend props anymore. 90% of the time, this was okay. I could simply clone the React children and add the properties I wanted. But here, it does not work. I've tried. I need to extend the props of the children without cloning them. (Cloning appears to create multiple stages)

I have a lot of code which uses this, and refactoring all of my code to work without extending the props like how I want it to will take days.

[ Note: I've already removed any <React.StrictMode /> tags ]


问:
Kafka Consumer + kerbos authentication +GSSAPI for node js application -> broker transport failure on Consumer end
We are trying to use Kafka Conssumer + kerbos authentication +GSSAPI for node js application for enterprise chat applictaion. We are getting below error . What could be the reason for this error , any help is highly appreciated . if you have any referennce for similar implementaion , please share ...

error broker transport failure

It is working fine for JAVA client , failing from NODE JS Client.

this is our client configurations.

const kafkaConsumer = new KafkaConsumer({ 'client.id': ['myserver', hostname()].join('-'), 'group.id': 'kf__write_test', 'rebalance_cb': true, 'metadata.broker.list': [servers], 'security.protocol': "sasl_ssl", 'sasl.mechanisms': 'GSSAPI', 'sasl.password': 'sdadsad', 'ssl.ca.location': path.resolve(__dirname, '../../cache/certs/...'), "sasl.kerberos.service.name": "", "sasl.kerberos.principal": ", "sasl.kerberos.keytab": path.resolve(__dirname, '../../cache/certs/..'), "sasl.kerberos.kinit.cmd": "%{sasl.kerberos.keytab}", "debug": "protocol,security,broker" }, { 'auto.offset.reset': 'beginning', })

Environment Information

OS = Mac,Node Version = 16.10.0 NPM Version = 7.24.0 C++ Toolchain :llvm node-rdkafka version: 2.14.0

Error information

320 timing command:install Completed in 41507ms 321 verbose stack Error: command failed 321 verbose stack at ChildProcess. (/Users//.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) 321 verbose stack at ChildProcess.emit (node:events:390:28) 321 verbose stack at maybeClose (node:internal/child_process:1064:16) 321 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) 322 verbose pkgid node-rdkafka@2.14.0 323 verbose cwd /Users//APP/APP/chat-socket-server 324 verbose Darwin 21.6.0 325 verbose argv "/Users//.nvm/versions/node/v16.10.0/bin/node" "/Users//.nvm/versions/node/v16.10.0/bin/npm" "install" "debug" 326 verbose node v16.10.0 327 verbose npm v7.24.0 328 error code 1 329 error path /Users//APP/APP/chat-socket-server/node_modules/node-rdkafka 330 error command failed 331 error command sh -c node-gyp rebuild 332 error Debugger attached. 332 error gyp info it worked if it ends with ok 332 error gyp info using node-gyp@8.4.1 332 error gyp info using node@16.10.0 | darwin | x64 332 error gyp info find Python using Python version 3.10.9 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3" 332 error gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 332 error gyp info spawn args [ 332 error gyp info spawn args '/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/node_modules/node-gyp/gyp/gyp_main.py', 332 error gyp info spawn args 'binding.gyp', 332 error gyp info spawn args '-f', 332 error gyp info spawn args 'make', 332 error gyp info spawn args '-I', 332 error gyp info spawn args '/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/build/config.gypi', 332 error gyp info spawn args '-I', 332 error gyp info spawn args '/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/node_modules/node-gyp/addon.gypi', 332 error gyp info spawn args '-I', 332 error gyp info spawn args '/Users//Library/Caches/node-gyp/16.10.0/include/node/common.gypi', 332 error gyp info spawn args '-Dlibrary=shared_library', 332 error gyp info spawn args '-Dvisibility=default', 332 error gyp info spawn args '-Dnode_root_dir=/Users//Library/Caches/node-gyp/16.10.0', 332 error gyp info spawn args '-Dnode_gyp_dir=/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/node_modules/node-gyp', 332 error gyp info spawn args '-Dnode_lib_file=/Users//Library/Caches/node-gyp/16.10.0/<(target_arch)/node.lib', 332 error gyp info spawn args '-Dmodule_root_dir=/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka', 332 error gyp info spawn args '-Dnode_engine=v8', 332 error gyp info spawn args '--depth=.', 332 error gyp info spawn args '--no-parallel', 332 error gyp info spawn args '--generator-output', 332 error gyp info spawn args 'build', 332 error gyp info spawn args '-Goutput_dir=.' 332 error gyp info spawn args ] 332 error Debugger attached. 332 error Waiting for the debugger to disconnect... 332 error gyp: Call to 'node ./util/get-env.js BUILD_LIBRDKAFKA 1' returned exit status 0 while in binding.gyp. while trying to load binding.gyp 332 error gyp ERR! configure error 332 error gyp ERR! stack Error: gyp failed with exit code: 1 332 error gyp ERR! stack at ChildProcess.onCpExit (/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/node_modules/node-gyp/lib/configure.js:259:16) 332 error gyp ERR! stack at ChildProcess.emit (node:events:390:28) 332 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) 332 error gyp ERR! System Darwin 21.6.0 332 error gyp ERR! command "/Users//.nvm/versions/node/v16.10.0/bin/node" "/Users//APP/APP/chat-socket-server/node_modules/node-rdkafka/node_modules/.bin/node-gyp" "rebuild" 332 error gyp ERR! cwd /Users//APP/APP/chat-socket-server/node_modules/node-rdkafka 332 error gyp ERR! node -v v16.10.0 332 error gyp ERR! node-gyp -v v8.4.1 332 error gyp ERR! not ok 332 error Waiting for the debugger to disconnect... 333 verbose exit 1


问:
Can I use more than one user input for an if statement?
So I'm trying to set up if statements to convert codons (I'm lazy) and I want to put more than one value. I tried to put "or" between two values like so:

```<code>user = input("What is the codon you would like to translate? ").upper()

if user == "UUC" or "UUG" or "UCU":
    print("Phe")
</code>```

But even if it worked, if I added another user = input situation, for example:

```<code>user = input("What is the codon you would like to translate? ").upper()
if user == "UUC" or "UUC":
    print ("Phe")

if user == "UUA" or "UUG" or "CUU" or "CUC" or "CUA" or "CUG":
    print ("Leu")
</code>```

It would print out both "Phe" and "Leu" when I only want it to print "Phe". The IDLE shell would look like this:

```<code>>>>
What is the codon you would like to translate?: uuc
Phe
Leu
>>>
</code>```

How would I only get it to print out "Phe" if I enter something like "UUC" instead of getting it to print both "Phe" and "Leu?"

Body:
So I'm trying to set up if statements to convert codons (I'm lazy) and I want to put more than one value. I tried to put "or" between two values like so:

user = input("What is the codon you would like to translate? ").upper()

if user == "UUC" or "UUG" or "UCU":
    print("Phe")

But even if it worked, if I added another user = input situation, for example:

user = input("What is the codon you would like to translate? ").upper()
if user == "UUC" or "UUC":
    print ("Phe")

if user == "UUA" or "UUG" or "CUU" or "CUC" or "CUA" or "CUG":
    print ("Leu")

It would print out both "Phe" and "Leu" when I only want it to print "Phe". The IDLE shell would look like this:

>>>
What is the codon you would like to translate?: uuc
Phe
Leu
>>>

How would I only get it to print out "Phe" if I enter something like "UUC" instead of getting it to print both "Phe" and "Leu?"


问:
How could it be that Python module `arviz` has no attribute `plots`?
I tried to run this program:

```<code>import pymc3 as pm
import theano.tensor as tt
import scipy
from scipy import optimize
</code>```

but I got in return some non understandable comment:

```<code>---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_38164/4136381866.py in <module>
----> 1 import pymc3 as pm
      2 import theano.tensor as tt
      3 import scipy
      4 from scipy import optimize

~\anaconda3\lib\site-packages\pymc3\__init__.py in <module>
     70 from pymc3.model import *
     71 from pymc3.model_graph import model_to_graphviz
---> 72 from pymc3.plots import *
     73 from pymc3.sampling import *
     74 from pymc3.smc import *

~\anaconda3\lib\site-packages\pymc3\plots\__init__.py in <module>
     26
     27 # Makes this module as identical to arviz.plots as possible
---> 28 for attr in az.plots.__all__:
     29     obj = getattr(az.plots, attr)
     30     if not attr.startswith("__"):

AttributeError: module 'arviz' has no attribute 'plots'
</code>```

Note that:

arviz was downloaded: conda install -c conda-forge arviz

pymc3 was downloaded: conda install -c conda-forge pymc3

theano-pymc was downloaded: conda install -c conda-forge theano-pymc

So, please, how could I provide this attribute 'plots' to this module 'arviz'? I really dont understand how to solve this AttributeError...

Body:
I tried to run this program:

import pymc3 as pm
import theano.tensor as tt
import scipy
from scipy import optimize

but I got in return some non understandable comment:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_38164/4136381866.py in <module>
----> 1 import pymc3 as pm
      2 import theano.tensor as tt
      3 import scipy
      4 from scipy import optimize

~\anaconda3\lib\site-packages\pymc3\__init__.py in <module>
     70 from pymc3.model import *
     71 from pymc3.model_graph import model_to_graphviz
---> 72 from pymc3.plots import *
     73 from pymc3.sampling import *
     74 from pymc3.smc import *

~\anaconda3\lib\site-packages\pymc3\plots\__init__.py in <module>
     26
     27 # Makes this module as identical to arviz.plots as possible
---> 28 for attr in az.plots.__all__:
     29     obj = getattr(az.plots, attr)
     30     if not attr.startswith("__"):

AttributeError: module 'arviz' has no attribute 'plots'

Note that:

arviz was downloaded: conda install -c conda-forge arviz

pymc3 was downloaded: conda install -c conda-forge pymc3

theano-pymc was downloaded: conda install -c conda-forge theano-pymc

So, please, how could I provide this attribute 'plots' to this module 'arviz'? I really dont understand how to solve this AttributeError...


问:
accessing JS object with variable key
im passing an array with Laravel to my blade file and trying to access this with js inside.

This is my array from php:

```<code>$show_array = array (
  'jondoe_1' => '12.66',
  'jondoe_6' => '14.48',
  'jonsmith_23' => '22.10',
  'davejo_5' => '12.10',
);
</code>```

Getting it is no problem.

```<code>    var array_ =  {!! json_encode($show_array) !!};
</code>```

If I access anything like that its working :

```<code>    console.log(array_["jondoe_1"]);

</code>```

But when I try to call it with a variable its not working

```<code>    string = array[i].name + "_" + array[i].number;
    console.log(array_[string ]);
</code>```

Showing undefied.
Thanks in advance !

There is a simple solution I know...but trying for hours now and being stupid

Title: accessing JS object with variable key

Body:
im passing an array with Laravel to my blade file and trying to access this with js inside.

This is my array from php:

$show_array = array (
  'jondoe_1' => '12.66',
  'jondoe_6' => '14.48',
  'jonsmith_23' => '22.10',
  'davejo_5' => '12.10',
);

Getting it is no problem.

    var array_ =  {!! json_encode($show_array) !!};

If I access anything like that its working :

    console.log(array_["jondoe_1"]);

But when I try to call it with a variable its not working

    string = array[i].name + "_" + array[i].number;
    console.log(array_[string ]);

Showing undefied.
Thanks in advance !

There is a simple solution I know...but trying for hours now and being stupid


问:
React Native getItemAsync Returns Promise
I am writing a storage class as such:

```<code>//Fallback if SecureStore fails
let data = {};

import * as SecureStore from 'expo-secure-store';

const Storage = {

    set: async function (key, value) {
        try {
            console.log("Setting Item");
            console.log(key);
            console.log(value);
            return await SecureStore.setItemAsync(key, value);
        } catch (e) {

            //fallback if set cookie fails
            data[key] = value;

        }
    },
    get: async function (key) {

        try {
            console.log("Gettimg Item");
            console.log(key);
            let result = await SecureStore.getItemAsync(key);

            if (result) {
                return await result;
            }

            return null;
        } catch (e) {

            console.error(e);

            value = data[key];

            return value;
        }
    }

export default Storage;
</code>```

And Storage.set is called as such:

```<code>function() {

   Storage.set("some_key", "some_value");
}
</code>```

And here is an output of the console.log

```<code>Setting Item
user_id
4ce9dse7-650a-4ff5-955d-466a640de2c4
Setting Item
user_first_name
John
Setting Item
user_last_name
Doe
</code>```

So apparently the items are being set. But each time I use the get function Storage.get(x), I get a promise back:

```<code>Promise {
  "_A": null,
  "_x": 0,
  "_y": 0,
  "_z": null,
}
</code>```

What am I doing wrong here? I am using await twice but still returns a promise.

Body:
I am writing a storage class as such:

//Fallback if SecureStore fails
let data = {};

import * as SecureStore from 'expo-secure-store';

const Storage = {

    set: async function (key, value) {
        try {
            console.log("Setting Item");
            console.log(key);
            console.log(value);
            return await SecureStore.setItemAsync(key, value);
        } catch (e) {

            //fallback if set cookie fails
            data[key] = value;

        }
    },
    get: async function (key) {

        try {
            console.log("Gettimg Item");
            console.log(key);
            let result = await SecureStore.getItemAsync(key);

            if (result) {
                return await result;
            }

            return null;
        } catch (e) {

            console.error(e);

            value = data[key];

            return value;
        }
    }

export default Storage;

And Storage.set is called as such:

function() {

   Storage.set("some_key", "some_value");
}

And here is an output of the console.log

Setting Item
user_id
4ce9dse7-650a-4ff5-955d-466a640de2c4
Setting Item
user_first_name
John
Setting Item
user_last_name
Doe

So apparently the items are being set. But each time I use the get function Storage.get(x), I get a promise back:

Promise {
  "_A": null,
  "_x": 0,
  "_y": 0,
  "_z": null,
}

What am I doing wrong here? I am using await twice but still returns a promise.


Title: Error running unit tests in intellij : Caused by: org.xml.sax.SAXParseException: Attribute "thread-count" must be declared for element type "test"

Body:
/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=52696:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA CE.app/Contents/plugins/testng/lib/testng-rt.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/openjsse.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/jre/lib/rt.jar:/Users/mehparmar/Repos/mehparmar/abc-java-library-parent/abc-java-library/target/test-classes:/Users/mehparmar/Repos/mehparmar/abc-java-library-parent/abc-java-library/target/classes:/Users/mehparmar/Repos/mehparmar/abc-java-library-parent/abc-java-library-interfaces/target/classes:/Users/mehparmar/.m2/raptor2/com/fasterxml/jackson/core/jackson-databind/2.13.4/jackson-databind-2.13.4.jar:/Users/mehparmar/.m2/raptor2/com/fasterxml/jackson/core/jackson-annotations/2.13.4/jackson-annotations-2.13.4.jar:/Users/mehparmar/.m2/raptor2/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/maven-model/3.3.1/maven-model-3.3.1.jar:/Users/mehparmar/.m2/raptor2/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar:/Users/mehparmar/.m2/raptor2/org/jacoco/org.jacoco.ant/0.8.7/org.jacoco.ant-0.8.7.jar:/Users/mehparmar/.m2/raptor2/org/jacoco/org.jacoco.core/0.8.7/org.jacoco.core-0.8.7.jar:/Users/mehparmar/.m2/raptor2/org/jacoco/org.jacoco.report/0.8.7/org.jacoco.report-0.8.7.jar:/Users/mehparmar/.m2/raptor2/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7.jar:/Users/mehparmar/.m2/raptor2/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/surefire/surefire-report-parser/3.0.0-M6/surefire-report-parser-3.0.0-M6.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/surefire/surefire-logger-api/3.0.0-M6/surefire-logger-api-3.0.0-M6.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar:/Users/mehparmar/.m2/raptor2/commons-io/commons-io/2.6/commons-io-2.6.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/reporting/maven-reporting-api/3.1.0/maven-reporting-api-3.1.0.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/doxia/doxia-sink-api/1.11.1/doxia-sink-api-1.11.1.jar:/Users/mehparmar/.m2/raptor2/org/apache/maven/doxia/doxia-logging-api/1.11.1/doxia-logging-api-1.11.1.jar:/Users/mehparmar/.m2/raptor2/org/apache/httpcomponents/httpclient/4.5.8/httpclient-4.5.8.jar:/Users/mehparmar/.m2/raptor2/org/apache/httpcomponents/httpcore/4.4.11/httpcore-4.4.11.jar:/Users/mehparmar/.m2/raptor2/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/Users/mehparmar/.m2/raptor2/org/apache/httpcomponents/httpmime/4.3.1/httpmime-4.3.1.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/main/jenkins-core/2.277.3/jenkins-core-2.277.3.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/main/remoting/4.6/remoting-4.6.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/main/cli/2.277.3/cli-2.277.3.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/version-number/1.7/version-number-1.7.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/crypto-util/1.5/crypto-util-1.5.jar:/Users/mehparmar/.m2/raptor2/org/jvnet/hudson/jtidy/4aug2000r7-dev-hudson-1/jtidy-4aug2000r7-dev-hudson-1.jar:/Users/mehparmar/.m2/raptor2/com/google/inject/guice/4.0/guice-4.0.jar:/Users/mehparmar/.m2/raptor2/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/mehparmar/.m2/raptor2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/mehparmar/.m2/raptor2/org/connectbot/jbcrypt/jbcrypt/1.0.0/jbcrypt-1.0.0.jar:/Users/mehparmar/.m2/raptor2/org/jruby/ext/posix/jna-posix/1.0.3-jenkins-1/jna-posix-1.0.3-jenkins-1.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jnr-posix/3.1.4/jnr-posix-3.1.4.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jnr-ffi/2.2.1/jnr-ffi-2.2.1.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jffi/1.3.1/jffi-1.3.1.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jffi/1.3.1/jffi-1.3.1-native.jar:/Users/mehparmar/.m2/raptor2/org/ow2/asm/asm-analysis/9.0/asm-analysis-9.0.jar:/Users/mehparmar/.m2/raptor2/org/ow2/asm/asm-util/9.0/asm-util-9.0.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jnr-a64asm/1.0.0/jnr-a64asm-1.0.0.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jnr-x86asm/1.0.2/jnr-x86asm-1.0.2.jar:/Users/mehparmar/.m2/raptor2/com/github/jnr/jnr-constants/0.10.1/jnr-constants-0.10.1.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/stapler/stapler-groovy/1.262.1/stapler-groovy-1.262.1.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/stapler/stapler-jelly/1.262.1/stapler-jelly-1.262.1.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/commons-jelly/1.1-jenkins-20120928/commons-jelly-1.1-jenkins-20120928.jar:/Users/mehparmar/.m2/raptor2/org/dom4j/dom4j/2.1.3/dom4j-2.1.3.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/windows-package-checker/1.2/windows-package-checker-1.2.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/stapler/stapler-adjunct-timeline/1.5/stapler-adjunct-timeline-1.5.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/stapler/stapler-adjunct-codemirror/1.3/stapler-adjunct-codemirror-1.3.jar:/Users/mehparmar/.m2/raptor2/io/jenkins/stapler/jenkins-stapler-support/1.1/jenkins-stapler-support-1.1.jar:/Users/mehparmar/.m2/raptor2/com/infradna/tool/bridge-method-annotation/1.13/bridge-method-annotation-1.13.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/stapler/json-lib/2.4-jenkins-2/json-lib-2.4-jenkins-2.jar:/Users/mehparmar/.m2/raptor2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar:/Users/mehparmar/.m2/raptor2/commons-httpclient/commons-httpclient/3.1-jenkins-2/commons-httpclient-3.1-jenkins-2.jar:/Users/mehparmar/.m2/raptor2/args4j/args4j/2.33/args4j-2.33.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/bytecode-compatibility-transformer/2.0-beta-2/bytecode-compatibility-transformer-2.0-beta-2.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/asm6/6.2/asm6-6.2.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/constant-pool-scanner/1.2/constant-pool-scanner-1.2.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/task-reactor/1.5/task-reactor-1.5.jar:/Users/mehparmar/.m2/raptor2/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/mehparmar/.m2/raptor2/com/thoughtworks/xstream/xstream/1.4.15/xstream-1.4.15.jar:/Users/mehparmar/.m2/raptor2/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar:/Users/mehparmar/.m2/raptor2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar:/Users/mehparmar/.m2/raptor2/org/jfree/jfreechart/1.0.19/jfreechart-1.0.19.jar:/Users/mehparmar/.m2/raptor2/org/jfree/jcommon/1.0.23/jcommon-1.0.23.jar:/Users/mehparmar/.m2/raptor2/org/apache/ant/ant/1.10.9/ant-1.10.9.jar:/Users/mehparmar/.m2/raptor2/org/apache/ant/ant-launcher/1.10.9/ant-launcher-1.10.9.jar:/Library/Java/JavaVirtualMachines/zulu-sa-1.8.0_232.jdk/Contents/Home/lib/tools.jar:/Users/mehparmar/.m2/raptor2/commons-digester/commons-digester/2.1/commons-digester-2.1.jar:/Users/mehparmar/.m2/raptor2/org/apache/commons/commons-compress/1.19/commons-compress-1.19.jar:/Users/mehparmar/.m2/raptor2/com/sun/mail/jakarta.mail/1.6.5/jakarta.mail-1.6.5.jar:/Users/mehparmar/.m2/raptor2/com/sun/activation/jakarta.activation/1.2.1/jakarta.activation-1.2.1.jar:/Users/mehparmar/.m2/raptor2/commons-jelly/commons-jelly-tags-fmt/1.0/commons-jelly-tags-fmt-1.0.jar:/Users/mehparmar/.m2/raptor2/commons-jelly/commons-jelly-tags-xml/1.1/commons-jelly-tags-xml-1.1.jar:/Users/mehparmar/.m2/raptor2/org/jvnet/hudson/commons-jelly-tags-define/1.0.1-hudson-20071021/commons-jelly-tags-define-1.0.1-hudson-20071021.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/commons-jexl/1.1-jenkins-20111212/commons-jexl-1.1-jenkins-20111212.jar:/Users/mehparmar/.m2/raptor2/org/springframework/security/spring-security-web/5.4.4/spring-security-web-5.4.4.jar:/Users/mehparmar/.m2/raptor2/org/springframework/security/spring-security-core/5.4.4/spring-security-core-5.4.4.jar:/Users/mehparmar/.m2/raptor2/org/springframework/spring-web/5.2.12.RELEASE/spring-web-5.2.12.RELEASE.jar:/Users/mehparmar/.m2/raptor2/jline/jline/2.12/jline-2.12.jar:/Users/mehparmar/.m2/raptor2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar:/Users/mehparmar/.m2/raptor2/jakarta/servlet/jsp/jstl/jakarta.servlet.jsp.jstl-api/1.2.7/jakarta.servlet.jsp.jstl-api-1.2.7.jar:/Users/mehparmar/.m2/raptor2/org/slf4j/jcl-over-slf4j/1.7.30/jcl-over-slf4j-1.7.30.jar:/Users/mehparmar/.m2/raptor2/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/Users/mehparmar/.m2/raptor2/org/slf4j/log4j-over-slf4j/1.7.30/log4j-over-slf4j-1.7.30.jar:/Users/mehparmar/.m2/raptor2/com/sun/xml/txw2/txw2/20110809/txw2-20110809.jar:/Users/mehparmar/.m2/raptor2/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/mehparmar/.m2/raptor2/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar:/Users/mehparmar/.m2/raptor2/org/jvnet/winp/winp/1.28/winp-1.28.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/memory-monitor/1.9/memory-monitor-1.9.jar:/Users/mehparmar/.m2/raptor2/org/codehaus/woodstox/wstx-asl/3.2.9/wstx-asl-3.2.9.jar:/Users/mehparmar/.m2/raptor2/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/akuma/1.10/akuma-1.10.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/libpam4j/1.11/libpam4j-1.11.jar:/Users/mehparmar/.m2/raptor2/com/sun/solaris/embedded_su4j/1.1/embedded_su4j-1.1.jar:/Users/mehparmar/.m2/raptor2/net/java/sezpoz/sezpoz/1.13/sezpoz-1.13.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/jinterop/j-interop/2.0.8-kohsuke-1/j-interop-2.0.8-kohsuke-1.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/jinterop/j-interopdeps/2.0.8-kohsuke-1/j-interopdeps-2.0.8-kohsuke-1.jar:/Users/mehparmar/.m2/raptor2/org/samba/jcifs/jcifs/1.2.19/jcifs-1.2.19.jar:/Users/mehparmar/.m2/raptor2/org/jvnet/robust-http-client/robust-http-client/1.2/robust-http-client-1.2.jar:/Users/mehparmar/.m2/raptor2/org/jenkins-ci/symbol-annotation/1.1/symbol-annotation-1.1.jar:/Users/mehparmar/.m2/raptor2/org/kohsuke/access-modifier-annotation/1.16/access-modifier-annotation-1.16.jar:/Users/mehparmar/.m2/raptor2/commons-fileupload/commons-fileupload/1.3.1-jenkins-2/commons-fileupload-1.3.1-jenkins-2.jar:/Users/mehparmar/.m2/raptor2/com/google/guava/guava/11.0.1/guava-11.0.1.jar:/Users/mehparmar/.m2/raptor2/com/ppl/test/qi/client/testframework-testng-client/1.0.24/testframework-testng-client-1.0.24.jar:/Users/mehparmar/.m2/raptor2/com/ppl/test/qi/client/abc-testng-listener/1.0.24/abc-testng-listener-1.0.24.jar:/Users/mehparmar/.m2/raptor2/com/ppl/test/qi/client/testng-listener-commons/1.0.24/testng-listener-commons-1.0.24.jar:/Users/mehparmar/.m2/raptor2/com/ebay/aero/cal-client-impl/3.3.0/cal-client-impl-3.3.0.jar:/Users/mehparmar/.m2/raptor2/commons-configuration/commons-configuration/1.10/commons-configuration-1.10.jar:/Users/mehparmar/.m2/raptor2/com/ebay/aero/aero-kernel/2.2.4/aero-kernel-2.2.4.jar:/Users/mehparmar/.m2/raptor2/ch/qos/logback/logback-classic/1.1.5/logback-classic-1.1.5.jar:/Users/mehparmar/.m2/raptor2/ch/qos/logback/logback-core/1.1.5/logback-core-1.1.5.jar:/Users/mehparmar/.m2/raptor2/com/ebayinc/platform/raptor/metadata-runtime-local/2.2.1/metadata-runtime-local-2.2.1.jar:/Users/mehparmar/.m2/raptor2/com/ebayinc/platform/raptor/metadata-api/2.2.1/metadata-api-2.2.1.jar:/Users/mehparmar/.m2/raptor2/com/ebay/aero/aero-jmx/2.2.4/aero-jmx-2.2.4.jar:/Users/mehparmar/.m2/raptor2/com/ebayinc/platform/config/config-client/4.2.1/config-client-4.2.1.jar:/Users/mehparmar/.m2/raptor2/org/json/json/20140107/json-20140107.jar:/Users/mehparmar/.m2/raptor2/com/ppl/usf/commons/1.1.2/commons-1.1.2.jar:/Users/mehparmar/.m2/raptor2/com/ebay/kernel/uKernelCore/9.2.2/uKernelCore-9.2.2.jar:/Users/mehparmar/.m2/raptor2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/mehparmar/.m2/raptor2/org/springframework/spring-context/4.2.4.RELEASE/spring-context-4.2.4.RELEASE.jar:/Users/mehparmar/.m2/raptor2/org/springframework/spring-core/4.2.4.RELEASE/spring-core-4.2.4.RELEASE.jar:/Users/mehparmar/.m2/raptor2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/mehparmar/.m2/raptor2/com/ppl/test/qi/client/abc-testng-listener-jaws-plugin/1.0.24/abc-testng-listener-jaws-plugin-1.0.24.jar:/Users/mehparmar/.m2/raptor2/org/jboss/resteasy/resteasy-jaxrs/3.10.0.Final/resteasy-jaxrs-3.10.0.Final.jar:/Users/mehparmar/.m2/raptor2/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.1_spec/2.0.1.Final/jboss-jaxrs-api_2.1_spec-2.0.1.Final.jar:/Users/mehparmar/.m2/raptor2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec/1.0.1.Final/jboss-jaxb-api_2.3_spec-1.0.1.Final.jar:/Users/mehparmar/.m2/raptor2/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar:/Users/mehparmar/.m2/raptor2/jakarta/validation/jakarta.validation-api/2.0.2/jakarta.validation-api-2.0.2.jar:/Users/mehparmar/.m2/raptor2/org/jboss/spec/javax/annotation/jboss-annotations-api_1.3_spec/2.0.1.Final/jboss-annotations-api_1.3_spec-2.0.1.Final.jar:/Users/mehparmar/.m2/raptor2/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/Users/mehparmar/.m2/raptor2/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/Users/mehparmar/.m2/raptor2/com/ppl/test/qi/client/abc-testng-listener-mako-teststeps/1.0.24/abc-testng-listener-mako-teststeps-1.0.24.jar:/Users/mehparmar/.m2/raptor2/org/testng/testng/6.14.3/testng-6.14.3.jar:/Users/mehparmar/.m2/raptor2/com/beust/jcommander/1.72/jcommander-1.72.jar:/Users/mehparmar/.m2/raptor2/org/apache-extras/beanshell/bsh/2.0b6/bsh-2.0b6.jar com.intellij.rt.testng.RemoteTestNGStarter -usedefaultlisteners false -socket52695 @w@/private/var/folders/6n/kcp2mfmx0s9_lqw9y30yqq500000gq/T/idea_working_dirs_testng.tmp -temp /private/var/folders/6n/kcp2mfmx0s9_lqw9y30yqq500000gq/T/idea_testng.tmp
org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 57; Attribute "thread-count" must be declared for element type "test".
    at org.testng.TestNG.parseSuite(TestNG.java:327)
    at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:348)
    at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:39)
    at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 57; Attribute "thread-count" must be declared for element type "test".
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1253)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1917)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:742)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
    at org.testng.xml.XMLParser.parse(XMLParser.java:38)
    at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:16)
    at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:9)
    at org.testng.xml.Parser.parse(Parser.java:152)
    at org.testng.xml.Parser.parse(Parser.java:233)
    at org.testng.TestNG.parseSuite(TestNG.java:295)
    ... 3 more

Process finished with exit code 255

The test I am able to run manually using mvn clean install but not working through intellij. So definetely sure that this is an intellij issue. Invalidated cache and resync dependencies but still nothing worked. The xml file in picture is the unit test I am running.This is a temporary file in cache folder of intellij. What is wrong with it?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default Suite">
  <test thread-count="5" name="abc-java-library-parent">
    <classes>
      <class name="com.xyz.test.qi.library.TestDataProcessorImplTest">
        <methods>
          <include name="testMultiModuleE2EflowTestJunit"/>
        </methods>
      </class>
    </classes>
  </test>
</suite>


问:
When does PHAsset.canPerform(.delete) return false?
I have an application in which, at some point, I want to delete some pictures/videos from the user's Photo Library. I know that I can perform such deletions as:

func delete(_ phAsset: PHAsset, completion: @escaping (Bool, Error?) -> Void) {
    guard phAsset.canPerform(.delete) else {
        completion(false, nil); return
    }

    PHPhotoLibrary.shared().performChanges({
        PHAssetChangeRequest.deleteAssets([phAsset] as NSArray)

    }, completionHandler: completion)
}
```

but I am primarily interested in the call to PHAsset.canPerform(_:).

Which are the cases in which that call returns false, passing PHAssetEditOperation.delete as an argument? I dove into the official documentation, the developer forum and here but I am unable to find any references to a possible case in which I can't delete a PHAsset from the Photos Library.

I am assuming some cases, related to iCloud sync, for example, but I don't think that's all. Can you help me? Thanks in advance!

Body:
I have an application in which, at some point, I want to delete some pictures/videos from the user's Photo Library. I know that I can perform such deletions as:

func delete(_ phAsset: PHAsset, completion: @escaping (Bool, Error?) -> Void) {
    guard phAsset.canPerform(.delete) else {
        completion(false, nil); return
    }

    PHPhotoLibrary.shared().performChanges({
        PHAssetChangeRequest.deleteAssets([phAsset] as NSArray)

    }, completionHandler: completion)
}

but I am primarily interested in the call to PHAsset.canPerform(_:).

Which are the cases in which that call returns false, passing PHAssetEditOperation.delete as an argument? I dove into the official documentation, the developer forum and here but I am unable to find any references to a possible case in which I can't delete a PHAsset from the Photos Library.

I am assuming some cases, related to iCloud sync, for example, but I don't think that's all. Can you help me? Thanks in advance!


问:
Electron app while opening shows Black screen first
When we first start electron browse window it shows black colour display. Also when we use property window.maximize() it shows solid black border around window. I also tried with different versions like 21.2.3 and 22.0.0 but it shows same. Currently I am using windows 10 version.

I am trying with different windows versions like window 11 and also tried with electron 22.0.0 but its shows same


问:
LibTiff C# .NET 6 - trim white space of image
I was able to crop white space from images using Bitmap. However, it is not supported in platforms other than Windows (https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).

I'm using LibTiff from BitMiracle. How can I trim the surrounding white space from images using LibTiff?


问:
Imported Protobuf Message Type Support in Apache Flink
I am experiencing an issue when trying to using the "com.google.protobuf.Any" message type in my protobuf definitions along with the official "protobuf" deserializer provided by Flink in version 1.16.

It seems that the following message definition

```<code>syntax = "proto2";

option java_package = "com.company.model.proto";

import "google/protobuf/any.proto";

message MessageWrapper {
  optional google.protobuf.Any message = 1;
}
</code>```

with the Flink table definition

```<code>tableEnv.executeSql("CREATE TABLE trade_records (" +
        "  kk_trade_id STRING," +
        "  message ROW<`value` BYTES>, " +
        "  PRIMARY KEY (kk_trade_id) NOT ENFORCED" +
        ") WITH (" +
        "  'connector' = 'upsert-kafka'," +
        "  'value.protobuf.message-class-name' = 'com.company.model.proto.Common$MessageWrapper'," +
        "  'key.format' = 'raw'," +
        "  'key.fields-prefix' = 'kk_'," +
        "  'value.fields-include' = 'EXCEPT_KEY'," +
        "  'value.format' = 'protobuf'" +
        ...
        ");"
);
</code>```

triggers this error:

```<code>Caused by: org.apache.flink.api.common.InvalidProgramException: Program cannot be compiled. This is a bug. Please file an issue.
    at org.apache.flink.formats.protobuf.util.PbCodegenUtils.compileClass(PbCodegenUtils.java:265)
    at org.apache.flink.formats.protobuf.deserialize.ProtoToRowConverter.<init>(ProtoToRowConverter.java:118)
    ... 14 more
Caused by: org.codehaus.commons.compiler.CompileException: Line 20, Column 36: "com.company.model.proto.Common" declares no member type "Any"
    at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014)
    at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6873)
</code>```

I have narrowed this down to an issue in deriving the correct type when Flink generates the source code to feed to the Janino compiler:

```<code>public class GeneratedProtoToRow_07c0170e88dd4e5ba9f3e2c33217562a{
...
com.company.model.proto.Common.Any message22 = message12.getMessage();
</code>```

I believe this type should read com.google.protobuf.Any instead. Is there a known compiler option or some other workaround for this problem?

Body:
I am experiencing an issue when trying to using the "com.google.protobuf.Any" message type in my protobuf definitions along with the official "protobuf" deserializer provided by Flink in version 1.16.

It seems that the following message definition

syntax = "proto2";

option java_package = "com.company.model.proto";

import "google/protobuf/any.proto";

message MessageWrapper {
  optional google.protobuf.Any message = 1;
}

with the Flink table definition

tableEnv.executeSql("CREATE TABLE trade_records (" +
        "  kk_trade_id STRING," +
        "  message ROW<`value` BYTES>, " +
        "  PRIMARY KEY (kk_trade_id) NOT ENFORCED" +
        ") WITH (" +
        "  'connector' = 'upsert-kafka'," +
        "  'value.protobuf.message-class-name' = 'com.company.model.proto.Common$MessageWrapper'," +
        "  'key.format' = 'raw'," +
        "  'key.fields-prefix' = 'kk_'," +
        "  'value.fields-include' = 'EXCEPT_KEY'," +
        "  'value.format' = 'protobuf'" +
        ...
        ");"
);

triggers this error:

Caused by: org.apache.flink.api.common.InvalidProgramException: Program cannot be compiled. This is a bug. Please file an issue.
    at org.apache.flink.formats.protobuf.util.PbCodegenUtils.compileClass(PbCodegenUtils.java:265)
    at org.apache.flink.formats.protobuf.deserialize.ProtoToRowConverter.<init>(ProtoToRowConverter.java:118)
    ... 14 more
Caused by: org.codehaus.commons.compiler.CompileException: Line 20, Column 36: "com.company.model.proto.Common" declares no member type "Any"
    at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:13014)
    at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:6873)

I have narrowed this down to an issue in deriving the correct type when Flink generates the source code to feed to the Janino compiler:

public class GeneratedProtoToRow_07c0170e88dd4e5ba9f3e2c33217562a{
...
com.company.model.proto.Common.Any message22 = message12.getMessage();

I believe this type should read com.google.protobuf.Any instead. Is there a known compiler option or some other workaround for this problem?


问:
How to resize a rectangle which is rotated by a certain angle in HTML canvas?
I want to know how to resize a rectangle by dragging it's edges when the rectangle is rotated by a certain angle in HTML canvas.

https://shihn.ca/posts/2020/resizing-rotated-elements/ this link which is a potential solution for this problem but I am not able to understand the math behind it.


问:
How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?
How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?

I have an a link like:

```<code><a class="btn btn-warning btn-sm"
   data-ajax="true"
   data-ajax-begin="beginClearWCGWCs"
   data-ajax-update="#WCEditor"
   data-ajax-url="/Prefs/ClearWCGWGs/@ViewData["ActiveWCGID"]"
   data-ajax-method="get"
   data-ajax-token="@Html.AntiForgeryToken()"
   style="margin-bottom:10px;"
   title="Delete ALL">
   Delete All
 </a>
</code>```

This links works except for the AntiForgeryToken.

How do I add an antiforgery token to this 'A' link?

Body:
How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?

I have an a link like:

   Delete All

This links works except for the AntiForgeryToken.

How do I add an antiforgery token to this 'A' link?


问:
How to Google reverse image search with Bitmap or Base64 Android Java
I have a Java class that acquires a picture using the camera. The result of the activity is a bitmap.

I need to pass the bitmap to Google image search using an http request.

Here's the piece of code that gets the bitmap:

```<code>public void onActivityResult(ActivityResult result) {
if (result.getResultCode() == Activity.RESULT_OK && result.getData() != null) {
    Bundle bundle = result.getData().getExtras();
    Bitmap bitmap = (Bitmap) bundle.get("data");
    String base64 = encodeTobase64(bitmap);

    requestQueue = Volley.newRequestQueue(context);
    getRequest();
    postRequest(base64);
}
}
</code>```

How do I implement a method to post a request to Google image search passing the bitmap as input?

Thank you.

Body:
I have a Java class that acquires a picture using the camera. The result of the activity is a bitmap.

I need to pass the bitmap to Google image search using an http request.

Here's the piece of code that gets the bitmap:

public void onActivityResult(ActivityResult result) {
if (result.getResultCode() == Activity.RESULT_OK && result.getData() != null) {
    Bundle bundle = result.getData().getExtras();
    Bitmap bitmap = (Bitmap) bundle.get("data");
    String base64 = encodeTobase64(bitmap);

    requestQueue = Volley.newRequestQueue(context);
    getRequest();
    postRequest(base64);
}
}

How do I implement a method to post a request to Google image search passing the bitmap as input?

Thank you.


问:
Trying to figure out how to add a letter to the end of a duplicated group
I have a list of transactions that contain a header (H) and typically one but sometimes multiple detail (D) rows for each transaction (in the case of split transactions). There is an Invoice Number column that must match for the H and D rows, and a Transaction ID (ID) but sometimes there are duplicates of that Invoice Number if there are several transactions on the same day. What I would like to do is add an index to the end of the Invoice Number for any duplicates of that number, but currently it is only working correctly for one pair of records. See below for a visual representation of my data frame and what I am trying to accomplish and the current code being used.

Current Code

```<code>ordered['Invoice Number'] += np.where(ordered.groupby(['Invoice Number'])['Invoice Number'].transform('count') > 2,
                                 ordered.groupby(['Record ID', 'Invoice Number']).cumcount().map(dict(enumerate(ascii_uppercase))), '')
</code>```

Original File

ID
Record ID
Invoice Number
Amount

01
H
BOB12222022
10.00

01
D
BOB12222022
10.00

02
H
JOE12182022A
30.00

02
D
JOE12182022A
30.00

03
H
BOB12212022A
15.00

03
D
BOB12212022A
15.00

04
H
BOB12192022A
150.00

04
D
BOB12192022A
25.00

05
D
BOB12192022B
25.00

05
D
BOB12192022C
25.00

05
D
BOB12192022D
25.00

05
D
BOB12192022E
25.00

05
D
BOB12192022F
25.00

06
H
JOE12182022B
30.00

06
D
JOE12182022B
30.00

Expected Result

ID
Record ID
Invoice Number
Amount

01
H
BOB12222022
10.00

01
D
BOB12222022
10.00

02
H
JOE12182022A
30.00

02
D
JOE12182022A
30.00

03
H
BOB12212022A
15.00

03
D
BOB12212022A
15.00

04
H
BOB12192022A
150.00

04
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

06
H
JOE12182022B
30.00

06
D
JOE12182022B
30.00

Body:
I have a list of transactions that contain a header (H) and typically one but sometimes multiple detail (D) rows for each transaction (in the case of split transactions). There is an Invoice Number column that must match for the H and D rows, and a Transaction ID (ID) but sometimes there are duplicates of that Invoice Number if there are several transactions on the same day. What I would like to do is add an index to the end of the Invoice Number for any duplicates of that number, but currently it is only working correctly for one pair of records. See below for a visual representation of my data frame and what I am trying to accomplish and the current code being used.

Current Code

ordered['Invoice Number'] += np.where(ordered.groupby(['Invoice Number'])['Invoice Number'].transform('count') > 2,
                                 ordered.groupby(['Record ID', 'Invoice Number']).cumcount().map(dict(enumerate(ascii_uppercase))), '')

Original File

ID
Record ID
Invoice Number
Amount

01
H
BOB12222022
10.00

01
D
BOB12222022
10.00

02
H
JOE12182022A
30.00

02
D
JOE12182022A
30.00

03
H
BOB12212022A
15.00

03
D
BOB12212022A
15.00

04
H
BOB12192022A
150.00

04
D
BOB12192022A
25.00

05
D
BOB12192022B
25.00

05
D
BOB12192022C
25.00

05
D
BOB12192022D
25.00

05
D
BOB12192022E
25.00

05
D
BOB12192022F
25.00

06
H
JOE12182022B
30.00

06
D
JOE12182022B
30.00

Expected Result

ID
Record ID
Invoice Number
Amount

01
H
BOB12222022
10.00

01
D
BOB12222022
10.00

02
H
JOE12182022A
30.00

02
D
JOE12182022A
30.00

03
H
BOB12212022A
15.00

03
D
BOB12212022A
15.00

04
H
BOB12192022A
150.00

04
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

05
D
BOB12192022A
25.00

06
H
JOE12182022B
30.00

06
D
JOE12182022B
30.00


问:
How to add phone numbers to meta app through api?
I want to add phone numbers to meta app. So that if anyone messages to that whatsapp number, I can intercept the message and reply accordingly.
I want to add phone number in "From"

I tried to register the number using system user access token as bearer token. but it shows not enough permission.
My postman request


问:
Reading Server-Sent Events from Express.js Proxy Server
Our application uses an express server as a proxy for our local dev environment to hit our staging endpoints to get around CORS.

I'm trying to wire in our server-sent events (SSEs) to pass through out proxy server so our local environment can read these events.

In the app.js file, I've tried setting up a new EventSource, but that doesn't seem to work.

Any suggestions?


问:
Gems for rake DB
Good day

What I have add to gem file ?
And how install ?

TODONE:

added: gem 'rake', '0.8.7'

run: > bundle install

or run: > bundle install rake

All it's not work

Thank You

**Gemfile**

    source 'http://rubygems.org'

    gem 'rails', '~> 5.0.0'

    gem 'puma', '~> 3.0'

    gem 'sass-rails', '~> 5.0'

    gem 'uglifier', '>= 1.3.0'

    gem 'coffee-rails', '~> 4.2'

    gem 'jquery-rails'

    gem 'turbolinks', '~> 5'

    gem 'jbuilder', '~> 2.5'

    gem 'byebug', platform: :mri

    end

    group :development do

      gem 'web-console'

      gem 'listen', '~> 3.0.5'

      gem 'spring'

      gem 'spring-watcher-listen', '~> 2.0.0'

    end

    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

    gem 'activerecord'

    gem 'actionpack'

    gem 'actionmailer'

    gem 'actionwebservice'

    gem 'settingslogic'

    gem 'authlogic'

    gem 'calendar_date_select'

    gem 'cgi_multipart_eof_fix'

    gem 'daemon_controller'

    gem 'daemons'

    gem 'file-tail'

    gem 'gem_plugin'

    gem 'i18n'

    gem 'mini_portile'

    gem 'multi_json'

    gem 'permutation'

    gem 'polyglot'

    gem 'rack'

    gem 'rake', '0.8.7' #'10.0.4' **Here added 'rake'**

    gem 'ruby-ole'

    gem 'rufus-scheduler'

    gem 'tins'

    gem 'treetop'

    gem 'will_paginate'

    gem 'ya2yaml'

    gem 'rdoc'

    gem 'mime-types'

    gem 'mysql2'

    gem 'active_scaffold', git: 'https://github.com/activescaffold/active_scaffold.git'

    gem 'jquery-turbolinks'

    gem 'jquery-ui-rails'

    gem 'activerecord-session_store'

    gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Title: Gems for rake DB


问:
Migration Axis2 to CXF -> multiple ports one service
we found out that the WSDL stuff is not working anymore after a migration from Axis2 to CXF:

```<code><wsdl:service name="WSService">
    <wsdl:port name=WSServiceSOAP11port_http" binding="ns:WSServiceSOAP11Binding">
        <soap:address location="http://localhost:8080/axis2/services/WSService"/>
    </wsdl:port>
    <wsdl:port name="WSServiceHttpport" binding="ns:WSServiceHttpBinding">
        <http:address location="http://localhost:8080/axis2/services/WSService"/>
    </wsdl:port>
</wsdl:service>
</code>```

In the Axis2 implementation the WSDL is delivered with WSService?wsdl

```<code><wsdl:service name="WSService">
    <wsdl:port name=WSServiceSOAP11port_http" binding="ns:WSServiceSOAP11Binding">
        <soap:address location="http://server.com:8080/axis2/services/WSService.WSServiceSOAP11port_http/"/>
    </wsdl:port>
    <wsdl:port name=WSServiceHttpport" binding="ns:WSServiceHttpBinding">
       <http:address location="http://server.com:8080/axis2/services/WSService.WSServiceHttpport/"/>
    </wsdl:port>
</wsdl:service>
</code>```

In current implementation with CXF the answer is

```<code>    <wsdl:service name="WSService">
       <wsdl:port binding="tns:WSServiceSoapBinding" name="WSServiceSOAP11port_http">
          <soap:address location="http://localhost:8080/axis2/services/WSService"/>
      </wsdl:port>
   </wsdl:service>
</code>```

where the deployed war has still the same name axis2.

I wonder, I was not able to find a solution to bind the ports to the webservice.

The same WSDL is generated with wsdl2java. wsdlsToGenerate = [["$wsdlDir/WSService.wsdl"]]
But I can't generate the correct binding.

We use Jax-Ws but there was no success today:

```<code>@Stateless
@WebService(
        portName = "WSServiceSOAP11port_http",
        serviceName = "WSService",
        targetNamespace = "http://example.com/WSService/",
        endpointInterface = "com.example.WSService.IWSService")
public class WSService implements IWSService {
</code>```

Does anybody have an idea how to generate the two ports defined in the WSDL to the webservice/SOAP address in the JakartEE context?

Thanks,
Markus

Body:
we found out that the WSDL stuff is not working anymore after a migration from Axis2 to CXF:

<wsdl:service name="WSService">
    <wsdl:port name=WSServiceSOAP11port_http" binding="ns:WSServiceSOAP11Binding">
        <soap:address location="http://localhost:8080/axis2/services/WSService"/>
    </wsdl:port>
    <wsdl:port name="WSServiceHttpport" binding="ns:WSServiceHttpBinding">
        <http:address location="http://localhost:8080/axis2/services/WSService"/>
    </wsdl:port>
</wsdl:service>

In the Axis2 implementation the WSDL is delivered with WSService?wsdl

<wsdl:service name="WSService">
    <wsdl:port name=WSServiceSOAP11port_http" binding="ns:WSServiceSOAP11Binding">
        <soap:address location="http://server.com:8080/axis2/services/WSService.WSServiceSOAP11port_http/"/>
    </wsdl:port>
    <wsdl:port name=WSServiceHttpport" binding="ns:WSServiceHttpBinding">
       <http:address location="http://server.com:8080/axis2/services/WSService.WSServiceHttpport/"/>
    </wsdl:port>
</wsdl:service>

In current implementation with CXF the answer is

    <wsdl:service name="WSService">
       <wsdl:port binding="tns:WSServiceSoapBinding" name="WSServiceSOAP11port_http">
          <soap:address location="http://localhost:8080/axis2/services/WSService"/>
      </wsdl:port>
   </wsdl:service>

where the deployed war has still the same name axis2.

I wonder, I was not able to find a solution to bind the ports to the webservice.

The same WSDL is generated with wsdl2java. wsdlsToGenerate = [["$wsdlDir/WSService.wsdl"]]
But I can't generate the correct binding.

We use Jax-Ws but there was no success today:

@Stateless
@WebService(
        portName = "WSServiceSOAP11port_http",
        serviceName = "WSService",
        targetNamespace = "http://example.com/WSService/",
        endpointInterface = "com.example.WSService.IWSService")
public class WSService implements IWSService {

Does anybody have an idea how to generate the two ports defined in the WSDL to the webservice/SOAP address in the JakartEE context?

Thanks,
Markus


问:
Publishing WPF Application with EmguCV and Clickonce
I've been trying to publish a WPF application I've been working on to a specific folder using Microsoft Clickonce. In my application I use the OpenCV wrapper EmguCV. However, when I publish the application and download and install it on a new machine, it gets thrown the following error.

```<code>Application: Photo.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
   at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback, IntPtr, IntPtr)
   at Emgu.CV.CvInvoke..cctor()

Exception Info: System.TypeInitializationException
   at Emgu.CV.CvInvoke.cvCreateImageHeader(System.Drawing.Size, Emgu.CV.CvEnum.IplDepth, Int32)
   at Emgu.CV.Image`2[[Emgu.CV.Structure.Gray, Emgu.CV, Version=4.6.0.5131, Culture=neutral, PublicKeyToken=7281126722ab4438],[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].AllocateData(Int32, Int32, Int32)
</code>```

Whats really confusing me though is if I download my bin folder to that same machine and run the application, it works completely fine. Because of this I know the machine is not missing any runtimes, so it would have to be with Clickonce itself. I've verified that I'm targeting x64, and have also checked that all of the EmguCV dll's are being included in the Application Files section of Clickonce. I've also checked EmguCV's documentation about the issue and I've also verified that I have the correct Nuget package with the Emgu.CV.runtime.windows package.

Body:
I've been trying to publish a WPF application I've been working on to a specific folder using Microsoft Clickonce. In my application I use the OpenCV wrapper EmguCV. However, when I publish the application and download and install it on a new machine, it gets thrown the following error.

Application: Photo.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
   at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback, IntPtr, IntPtr)
   at Emgu.CV.CvInvoke..cctor()

Exception Info: System.TypeInitializationException
   at Emgu.CV.CvInvoke.cvCreateImageHeader(System.Drawing.Size, Emgu.CV.CvEnum.IplDepth, Int32)
   at Emgu.CV.Image`2[[Emgu.CV.Structure.Gray, Emgu.CV, Version=4.6.0.5131, Culture=neutral, PublicKeyToken=7281126722ab4438],[System.Byte, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].AllocateData(Int32, Int32, Int32)

Whats really confusing me though is if I download my bin folder to that same machine and run the application, it works completely fine. Because of this I know the machine is not missing any runtimes, so it would have to be with Clickonce itself. I've verified that I'm targeting x64, and have also checked that all of the EmguCV dll's are being included in the Application Files section of Clickonce. I've also checked EmguCV's documentation about the issue and I've also verified that I have the correct Nuget package with the Emgu.CV.runtime.windows package.


问:
Calculating Portfolio from one data series
I am supposed to make two market portfolios from the reversal strategy from the data given of value weighted market returns. However, I am stuck at how to proceed.

```<code>Sub REV1()

Dim c As Integer, r As Integer, g As Integer, x As Integer

Application.ScreenUpdating = False

lr = Sheets("VWMR").Cells(Rows.Count, 1).End(xlUp).Row
lc = Sheets("MRM").Cells(1, Columns.Count).End(xlToLeft).Column

Sheets.Add after:=Sheets(Sheets.Count)
Sheets(ActiveSheet.Name).Name = "REV1"
ReDim r1(lr - 2) As Variant
ReDim r2(lr - 2) As Variant
ReDim r3(lr - 2) As Variant
ReDim r4(lr - 2) As Variant
ReDim r5(lr - 2) As Variant
ReDim r6(lr - 2) As Variant
Columns("A:C").ColumnWidth = 20

For h = 1 To 2
B = 2
x = 2
For r = 2 To lr - 2 - h

Set n = Range(Sheets("VWMR").Cells(x, 2), Sheets("VWMR").Cells(x, lc))
Set m = Range(Sheets("VWMR").Cells(x + h, 2), Sheets("VWMR").Cells(x + h, lc)) _

cn = Application.WorksheetFunction.Count(n)
cm = Application.WorksheetFunction.Count(m)

If cn > 10 And cm > 10 Then

        D2 = Application.WorksheetFunction.Percentile(n, 0.1)
        D3 = Application.WorksheetFunction.Percentile(n, 0.9)
        r2(r) = Application.WorksheetFunction.AverageIfs(m, n, "<=" & D2)
        r3(r) = Application.WorksheetFunction.AverageIfs(m, n, ">=" & D3)

        Sheets("REV1").Cells(B + h - 1, h + 1).Value = r2(r) - r3(r)
        Sheets("REV1").Cells(B, 1).Value = Sheets("VVMR").Cells(B + 1, 1).Value

        End If
    B = B + 1
    x = x + 1
    Next
    Sheets("REV1").Cells(1, h + 1).Value = "MOM" & h
    Next
    Sheets("REV1").Cells(1, 1).Value = "Dates"
    Application.ScreenUpdating = True
    Set a1 = Range(Sheets("REV1").Cells(2, 2), Sheets("REV1").Cells(lr, 2))
    D = Application.WorksheetFunction.Average(a1)
    MsgBox "The annual reversal returns are " & Format(Exp(D) - 1, "") & "."

End Sub
</code>```

This is the code I tried to take out one portfolio first but this is not working.

Body:
I am supposed to make two market portfolios from the reversal strategy from the data given of value weighted market returns. However, I am stuck at how to proceed.

Sub REV1()

Dim c As Integer, r As Integer, g As Integer, x As Integer

Application.ScreenUpdating = False

lr = Sheets("VWMR").Cells(Rows.Count, 1).End(xlUp).Row
lc = Sheets("MRM").Cells(1, Columns.Count).End(xlToLeft).Column

Sheets.Add after:=Sheets(Sheets.Count)
Sheets(ActiveSheet.Name).Name = "REV1"
ReDim r1(lr - 2) As Variant
ReDim r2(lr - 2) As Variant
ReDim r3(lr - 2) As Variant
ReDim r4(lr - 2) As Variant
ReDim r5(lr - 2) As Variant
ReDim r6(lr - 2) As Variant
Columns("A:C").ColumnWidth = 20

For h = 1 To 2
B = 2
x = 2
For r = 2 To lr - 2 - h

Set n = Range(Sheets("VWMR").Cells(x, 2), Sheets("VWMR").Cells(x, lc))
Set m = Range(Sheets("VWMR").Cells(x + h, 2), Sheets("VWMR").Cells(x + h, lc)) _

cn = Application.WorksheetFunction.Count(n)
cm = Application.WorksheetFunction.Count(m)

If cn > 10 And cm > 10 Then

        D2 = Application.WorksheetFunction.Percentile(n, 0.1)
        D3 = Application.WorksheetFunction.Percentile(n, 0.9)
        r2(r) = Application.WorksheetFunction.AverageIfs(m, n, "<=" & D2)
        r3(r) = Application.WorksheetFunction.AverageIfs(m, n, ">=" & D3)

        Sheets("REV1").Cells(B + h - 1, h + 1).Value = r2(r) - r3(r)
        Sheets("REV1").Cells(B, 1).Value = Sheets("VVMR").Cells(B + 1, 1).Value

        End If
    B = B + 1
    x = x + 1
    Next
    Sheets("REV1").Cells(1, h + 1).Value = "MOM" & h
    Next
    Sheets("REV1").Cells(1, 1).Value = "Dates"
    Application.ScreenUpdating = True
    Set a1 = Range(Sheets("REV1").Cells(2, 2), Sheets("REV1").Cells(lr, 2))
    D = Application.WorksheetFunction.Average(a1)
    MsgBox "The annual reversal returns are " & Format(Exp(D) - 1, "") & "."

End Sub

This is the code I tried to take out one portfolio first but this is not working.


问:
Filling DBGrid dynamically with related DataSource and DataSet (Delphi)
In my project i have 1 database with 20 DataSource & DataSet.
I would like to capture the customer name with "BGrid1.SelectedField.AsString;" and open another DbGrid2 with data (datasource and dataset) referring to the selected customer.
In sample below is working, but i have no idea how to do changing dynamically.

```<code>procedure TMain.DBGrid1DblClick(Sender: TObject);
  begin
   Form2.Caption := DBGrid1.SelectedField.AsString;
if DBGrid1.DataSource.DataSet.RecNo = 1 then
begin
 DBGrid2.DataSource := Form2.DtSource05;
  DBGrid2.DataSource.DataSet := Form2.ADO01;
   Form2.Show;
end;
</code>```

Can someone help me please?

Thanks in advance.

Body:
In my project i have 1 database with 20 DataSource & DataSet.
I would like to capture the customer name with "BGrid1.SelectedField.AsString;" and open another DbGrid2 with data (datasource and dataset) referring to the selected customer.
In sample below is working, but i have no idea how to do changing dynamically.

procedure TMain.DBGrid1DblClick(Sender: TObject);
  begin
   Form2.Caption := DBGrid1.SelectedField.AsString;
if DBGrid1.DataSource.DataSet.RecNo = 1 then
begin
 DBGrid2.DataSource := Form2.DtSource05;
  DBGrid2.DataSource.DataSet := Form2.ADO01;
   Form2.Show;
end;

Can someone help me please?

Thanks in advance.


问:
How to setup Cloud SQL Connection for Cloud Run with run_v2.services.CloudSQLInstance in python client
I use python client library for Cloud API to update a CloudRun service. The steps are as follows:

Get Google credentials

Build google.cloud.run_v2.ServicesClient with these credentials

Build google.cloud.run_v2.RevisionTemplate

Build google.cloud.run_v2.Service

Run request with google.cloud.run_v2.UpdateServiceRequest

I need to set up SQL Connection to this Cloud Run service. Any idea how to glue CloudSqlInstance into the code?

https://cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.CloudSqlInstance

Google search gives only GUI examples


问:
Can't open RDP redirected serial port
I have a VM (Win10 x64) where my code runs, and my host is also Win10x64. I have an FTDI device connected to my host, and I need to use it with the guest. I have set up all (on both machines) to not prevent port redirecting. Port redirection seems to both work and not: it is not shown in the device manager albeit it looks to be there in all other places.

My code should be ok. It still fails on both COM2, \\.\COM2, and \\\\.\\COM2: it returns INVALID_HANDLE_VALUE and puts 'The system cannot find the file specified' in GetLastError.

```<code>HANDLE m_hCommPort = CreateFile( port ,
                    GENERIC_READ|GENERIC_WRITE,
                    0,
                    NULL,
                    OPEN_EXISTING,
                    FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,
                    NULL
                    );
</code>```

(removing FILE_FLAG_OVERLAPPED makes no difference)

Even this works (I have no COM4, but I have COM2):

Is there an other syntax for redirected ports, or am I missing something?

Title: Can't open RDP redirected serial port

Body:
I have a VM (Win10 x64) where my code runs, and my host is also Win10x64. I have an FTDI device connected to my host, and I need to use it with the guest. I have set up all (on both machines) to not prevent port redirecting. Port redirection seems to both work and not: it is not shown in the device manager albeit it looks to be there in all other places.

My code should be ok. It still fails on both COM2, \\.\COM2, and \\\\.\\COM2: it returns INVALID_HANDLE_VALUE and puts 'The system cannot find the file specified' in GetLastError.

HANDLE m_hCommPort = CreateFile( port ,
                    GENERIC_READ|GENERIC_WRITE,
                    0,
                    NULL,
                    OPEN_EXISTING,
                    FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,
                    NULL
                    );

(removing FILE_FLAG_OVERLAPPED makes no difference)

Even this works (I have no COM4, but I have COM2):

Is there an other syntax for redirected ports, or am I missing something?


问:
config using nginx to change path
```<code>const express = require('express');
const path = require('path');
const app = express ();
app.use(express.static('public'));
app.get('/', function(req, res)  {
        res.sendFile(path.join(__dirname, '/public/Ko.html'));
});
</code>```

at nodejs www.localhost:4402/Ko.html

i want to  www.localhost:4402/website/Ko.html config at nginx don't want to config at nodejs
how to do it ?

Title: config using nginx to change path

Body:
const express = require('express');
const path = require('path');
const app = express ();
app.use(express.static('public'));
app.get('/', function(req, res)  {
        res.sendFile(path.join(__dirname, '/public/Ko.html'));
});

at nodejs www.localhost:4402/Ko.html

i want to  www.localhost:4402/website/Ko.html config at nginx don't want to config at nodejs
how to do it ?


问:
customize the header group using ag grid angular
I want to create the table like below image using ag grid angular.

But I am not able to match exactly like the above screenshot.
Please find the screenshot below which i have tried, I want to keep the column group name long header inside cell1 and cell2. Also same way I want to move column group name small header inside cell3. Also I have tried using row spanning and column spanning. But those are not working with table group headers.

Please find the stackblitz link: https://stackblitz.com/edit/ag-grid-angular-hello-world-kbrumu?file=src%2Fapp%2Fapp.component.ts,src%2Fstyles.scss,src%2Fapp%2Fapp.component.html


问:
German special characters (äÄöÖüÜß) are not encoded and converted to?
I am mentioning my problem in a simple test scenario. I am sending a message using a WebAPI.

Here is code:

```<code>string subject = "Test message for German special characters (äÄöÖüÜß)";
var utf8 = Encoding.UTF8;
byte[] utfBytes = utf8.GetBytes(subject);
subject = utf8.GetString(utfBytes, 0, utfBytes.Length);

string aktz_sender = "test Absender";
string aktz_rec = "Test Empfänger";
string receiverIdent = "Test_Identity";
string att_type = "Test_Type";

string result = baseClass.SendMessage(subject, aktz_sender, aktz_rec,
                                      receiverIdent, att_type, listOfAttachment);

if (result == "true")
    MessageBox.Show("Message send successfully");

listOfAttachment.Clear();
</code>```

The message is sent successfully. But when the recipient receives the message in his inbox, the subject is shown as:

```<code>Test message for German special characters (???????)
</code>```

i.e. each German special character is replaced by a ? character. I have contacted with Web API vendor and got a reply that I have to make sure that each character is encoded in UTF-8 before sending the message, because the API is working entirely with UTF-8 encoding.

Please guide me where am I missing something.

Body:
I am mentioning my problem in a simple test scenario. I am sending a message using a WebAPI.

Here is code:

string subject = "Test message for German special characters (äÄöÖüÜß)";
var utf8 = Encoding.UTF8;
byte[] utfBytes = utf8.GetBytes(subject);
subject = utf8.GetString(utfBytes, 0, utfBytes.Length);

string aktz_sender = "test Absender";
string aktz_rec = "Test Empfänger";
string receiverIdent = "Test_Identity";
string att_type = "Test_Type";

string result = baseClass.SendMessage(subject, aktz_sender, aktz_rec,
                                      receiverIdent, att_type, listOfAttachment);

if (result == "true")
    MessageBox.Show("Message send successfully");

listOfAttachment.Clear();

The message is sent successfully. But when the recipient receives the message in his inbox, the subject is shown as:

Test message for German special characters (???????)

i.e. each German special character is replaced by a ? character. I have contacted with Web API vendor and got a reply that I have to make sure that each character is encoded in UTF-8 before sending the message, because the API is working entirely with UTF-8 encoding.

Please guide me where am I missing something.


问:
When upserting a row into SQL via code, how do I avoid duplicate primary key errors?
I am generating the following SQL statement from a JSON object to insert or update a record. Can someone explain why I'm getting this error? My only limitation is that I need to do this in one query- I can't preprocess the data to filter records.

the primary key is combined: ItemID,AwsCoId

Error:

RequestError: Violation of PRIMARY KEY constraint 'PK_Items'. Cannot insert duplicate key in object 'dbo.Items'. The duplicate key value is (10118, 40454).

JSON object:

```<code>{ TwoDigitCoID = '40', AwsCoID = '10118', ItemID = '40454' }
</code>```

SQL query

```<code>insert into [ecomm]..[Items]([TwoDigitCoID],[AwsCoID],[ItemID])
    select '40', '10118', '40454'
    where not exists (select 1
                      from [ecomm]..[Items]
                      where [ItemID] = '40454'
                        and [AwsCoID] = '10118')

if (@@rowcount = 0)
    update [ecomm]..[Items]
    set [TwoDigitCoID] = '40',
        [AwsCoID] = '10118',
        [ItemID] = '40454'
    where [ItemID] = '40454' and [AwsCoID] = '10118'
</code>```

Body:
I am generating the following SQL statement from a JSON object to insert or update a record. Can someone explain why I'm getting this error? My only limitation is that I need to do this in one query- I can't preprocess the data to filter records.

the primary key is combined: ItemID,AwsCoId

Error:

RequestError: Violation of PRIMARY KEY constraint 'PK_Items'. Cannot insert duplicate key in object 'dbo.Items'. The duplicate key value is (10118, 40454).

JSON object:

{ TwoDigitCoID = '40', AwsCoID = '10118', ItemID = '40454' }

SQL query

insert into [ecomm]..[Items]([TwoDigitCoID],[AwsCoID],[ItemID])
    select '40', '10118', '40454'
    where not exists (select 1
                      from [ecomm]..[Items]
                      where [ItemID] = '40454'
                        and [AwsCoID] = '10118')

if (@@rowcount = 0)
    update [ecomm]..[Items]
    set [TwoDigitCoID] = '40',
        [AwsCoID] = '10118',
        [ItemID] = '40454'
    where [ItemID] = '40454' and [AwsCoID] = '10118'


问:
Error Channels: how to configure for config based destination
I have a 2 spring cloud stream consumers each consuming 2 different messages:

```<code>  cloud:
    stream:
      kafka:
      function:
        definition: OneConsumer; TwoConsumer;
      bindings:
        oneConsumer-in-0:
          destination: destination-1-qa
          group: processor-qa
          binder: binder-one
        twoConsumer-in-0:
          destination: destination-2-qa
          group: processor-qa
          binder: binder-one
</code>```

If any failure happens, it get's thrown into an error channel to handle the failure.

As seen above, my destination and and group both are for my qa environment, but when I go to prod, all my destination and groups will change to the prod setting. How can I configure the ServiceActivator to be config based instead of hard coding the destination like below:

```<code>  @ServiceActivator(inputChannel = "destination-1-qa.processor-qa.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}

  @ServiceActivator(inputChannel = "destination-2-qa.processor-qa.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}
</code>```

If my destination or my group changes, I would also need to do a code change to change the inputChannel.

I'm looking for something like this or something that can consumer based on the binding, not the destination or can be config based.

```<code>  @ServiceActivator(inputChannel = "oneConsumer-in-0.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}
</code>```

Body:
I have a 2 spring cloud stream consumers each consuming 2 different messages:

  cloud:
    stream:
      kafka:
      function:
        definition: OneConsumer; TwoConsumer;
      bindings:
        oneConsumer-in-0:
          destination: destination-1-qa
          group: processor-qa
          binder: binder-one
        twoConsumer-in-0:
          destination: destination-2-qa
          group: processor-qa
          binder: binder-one

If any failure happens, it get's thrown into an error channel to handle the failure.

As seen above, my destination and and group both are for my qa environment, but when I go to prod, all my destination and groups will change to the prod setting. How can I configure the ServiceActivator to be config based instead of hard coding the destination like below:

  @ServiceActivator(inputChannel = "destination-1-qa.processor-qa.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}

  @ServiceActivator(inputChannel = "destination-2-qa.processor-qa.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}

If my destination or my group changes, I would also need to do a code change to change the inputChannel.

I'm looking for something like this or something that can consumer based on the binding, not the destination or can be config based.

  @ServiceActivator(inputChannel = "oneConsumer-in-0.errors")
  public void processErrorMessage(ErrorMessage errorMessage) {}


问:
Python Condition
I'm creating a conditional loop in python but it's not working. What do you think could be the reason or how else can it be done?
In this way, I am looking for the necessary information here.

```<code>   try:
        WebDriverWait(driver, timeout=10).until(
            lambda d: d.find_element(By.XPATH, "//button[@class='sc-bczRLJ iBneUr mde-consent-accept-btn']")).click()
        WebDriverWait(driver, timeout=10).until(
            lambda d: d.find_element(By.XPATH, "//p[@class='phone-number-container']")).click()
        tel_number = driver.find_element(By.XPATH, "//p[@class='phone-number-container']").text
        print(tel_number)

    except:
        tel_number = ' '
</code>```

There is also a tel number filter like this

Title: Python Condition

Body:
I'm creating a conditional loop in python but it's not working. What do you think could be the reason or how else can it be done?
In this way, I am looking for the necessary information here.

   try:
        WebDriverWait(driver, timeout=10).until(
            lambda d: d.find_element(By.XPATH, "//button[@class='sc-bczRLJ iBneUr mde-consent-accept-btn']")).click()
        WebDriverWait(driver, timeout=10).until(
            lambda d: d.find_element(By.XPATH, "//p[@class='phone-number-container']")).click()
        tel_number = driver.find_element(By.XPATH, "//p[@class='phone-number-container']").text
        print(tel_number)

    except:
        tel_number = ' '

There is also a tel number filter like this


问:
Fallback for Postgresql DB in AsyncSession in Python
I am currently having two Postgresql Clusters attached to my Python FastAPI server

```<code>from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker

primary_engine = create_async_engine("PRIMARY_DATABASE_URL", echo=False, future=True)
replica_engine = create_async_engine("REPLICA_DATABASE_URL", echo=False, future=True)

async def get_primary_session() -> AsyncSession:
    async_session = sessionmaker(primary_engine, class_=AsyncSession, expire_on_commit=False)
    async with async_session() as session:
        yield session

async def get_replica_session() -> AsyncSession:
    async_session = sessionmaker(replica_engine, class_=AsyncSession, expire_on_commit=False)
    async with async_session() as session:
        yield session

</code>```

Now assume, that the replica crashes. What would be the best strategy to redirect the traffic back to the primary?

I currently have tried this:

```<code>async def get_replica_session() -> AsyncSession:
    try:
        async_session = sessionmaker(replica_engine, class_=AsyncSession, expire_on_commit=False)
        async with async_session() as session:
            yield session
    except:
        async_session = sessionmaker(primary_engine, class_=AsyncSession, expire_on_commit=False)
        async with async_session() as session:
            yield session
</code>```

However, it used to throw Runtime errors? Hence, it would be great if you could give me some thoughts about it.

Body:
I am currently having two Postgresql Clusters attached to my Python FastAPI server

from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker

primary_engine = create_async_engine("PRIMARY_DATABASE_URL", echo=False, future=True)
replica_engine = create_async_engine("REPLICA_DATABASE_URL", echo=False, future=True)

async def get_primary_session() -> AsyncSession:
    async_session = sessionmaker(primary_engine, class_=AsyncSession, expire_on_commit=False)
    async with async_session() as session:
        yield session

async def get_replica_session() -> AsyncSession:
    async_session = sessionmaker(replica_engine, class_=AsyncSession, expire_on_commit=False)
    async with async_session() as session:
        yield session

Now assume, that the replica crashes. What would be the best strategy to redirect the traffic back to the primary?

I currently have tried this:

async def get_replica_session() -> AsyncSession:
    try:
        async_session = sessionmaker(replica_engine, class_=AsyncSession, expire_on_commit=False)
        async with async_session() as session:
            yield session
    except:
        async_session = sessionmaker(primary_engine, class_=AsyncSession, expire_on_commit=False)
        async with async_session() as session:
            yield session

However, it used to throw Runtime errors? Hence, it would be great if you could give me some thoughts about it.


问:
Cannot upload images to S3 from Django backend and Nextjs frontend vercel
I have an e-commerce site built with Django and nextjs. Previously it was hosted on hostinger but recently I moved the API backend to AWS Lambda and the frontend to vercel. I'm storing the product images in S3. The problem I;m facing is after the migration, I'm not able to upload the images from my nextjs frontend. I have tried uploading the images from postman and Django admin panel and it worked. It just not works from the nextjs frontend.

Here is the error:

An error occurred (400) when calling the HeadObject operation: Bad Request

I'm using django-storages to upload my images to S3.

I'm using FormData to send images from frontend to backend.

frontend submit function:

```<code>function submit() {
    setIsLoading(true);
    var myHeaders = new Headers();
    myHeaders.append("Authorization", `Bearer ${session?.token?.access}`);
    myHeaders.append("Cookie", "django_language=en");

    var formdata = new FormData();
    formdata.append("name", name);
    formdata.append("desc", desc);
    formdata.append("length", length);
    formdata.append("height", height);
    formdata.append("width", width);
    formdata.append("measure", measurements);
    formdata.append("origin", origin);
    formdata.append("signed", signed);
    formdata.append("reproduce", reproduce);
    formdata.append("reproduce_days", reproduce_days);
    formdata.append("image", img);
    formdata.append("reg_price", price);
    formdata.append("cat", category);
    formdata.append("year", year);
    formdata.append("newcat", otherCategory);
    formdata.append("newsubcat", otherSubCategory);
    formdata.append("newmedium", otherMedium);
    formdata.append("subcat", subCategory);
    formdata.append("medium", medium);
    formdata.append("orientation", orientation);
    formdata.append("stock_quantity", quantity);

    var requestOptions = {
      method: "POST",
      headers: myHeaders,
      body: formdata,
      redirect: "follow",
    };

    fetch(
      `${API_URL}/profile/vendor/${session?.token?.user?.id}/add-product/?curr=INR`,
      requestOptions
    )
      .then((response) => response.text())
      .then((result) => console.log(result))
      .catch((error) => console.log("error", error));
  }
</code>```

Note: My Lambda function and S3 bucket are not in the same region.

Body:
I have an e-commerce site built with Django and nextjs. Previously it was hosted on hostinger but recently I moved the API backend to AWS Lambda and the frontend to vercel. I'm storing the product images in S3. The problem I;m facing is after the migration, I'm not able to upload the images from my nextjs frontend. I have tried uploading the images from postman and Django admin panel and it worked. It just not works from the nextjs frontend.

Here is the error:

An error occurred (400) when calling the HeadObject operation: Bad Request

I'm using django-storages to upload my images to S3.

I'm using FormData to send images from frontend to backend.

frontend submit function:

function submit() {
    setIsLoading(true);
    var myHeaders = new Headers();
    myHeaders.append("Authorization", `Bearer ${session?.token?.access}`);
    myHeaders.append("Cookie", "django_language=en");

    var formdata = new FormData();
    formdata.append("name", name);
    formdata.append("desc", desc);
    formdata.append("length", length);
    formdata.append("height", height);
    formdata.append("width", width);
    formdata.append("measure", measurements);
    formdata.append("origin", origin);
    formdata.append("signed", signed);
    formdata.append("reproduce", reproduce);
    formdata.append("reproduce_days", reproduce_days);
    formdata.append("image", img);
    formdata.append("reg_price", price);
    formdata.append("cat", category);
    formdata.append("year", year);
    formdata.append("newcat", otherCategory);
    formdata.append("newsubcat", otherSubCategory);
    formdata.append("newmedium", otherMedium);
    formdata.append("subcat", subCategory);
    formdata.append("medium", medium);
    formdata.append("orientation", orientation);
    formdata.append("stock_quantity", quantity);

    var requestOptions = {
      method: "POST",
      headers: myHeaders,
      body: formdata,
      redirect: "follow",
    };

    fetch(
      `${API_URL}/profile/vendor/${session?.token?.user?.id}/add-product/?curr=INR`,
      requestOptions
    )
      .then((response) => response.text())
      .then((result) => console.log(result))
      .catch((error) => console.log("error", error));
  }

Note: My Lambda function and S3 bucket are not in the same region.


问:
Re Create Assembly used by SSIS when deploying Package
Receiving the below message when deploying packages via SSIS to SQL Server 2019.

Seems that an assembly is missing, is there a way to create this?

```<code>TITLE: SQL Server Integration Services
------------------------------

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
 (Microsoft SQL Server, Error: 10314)

</code>```

Tried re-creating the integration services catalogue which doesn't help.

Body:
Receiving the below message when deploying packages via SSIS to SQL Server 2019.

Seems that an assembly is missing, is there a way to create this?

TITLE: SQL Server Integration Services
------------------------------

An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error:
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException:
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
 (Microsoft SQL Server, Error: 10314)

Tried re-creating the integration services catalogue which doesn't help.