I have to schedule a jams job for sending a report to a client. But my job failed and I get an error in the log file The term 'sqlcmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. This is my PowerShell script: param ( [string]$DatabaseServer = "COREP02P.centiv.com", [string]$SFTPPath = "/home/cdibrm02/", [string]$SFTPServer = "test-externalftp.prudential.com", [string]$SFTPCredential = "PrudentiaReport-SFTP-Test", [string]$JamsServerName = "jams01d
axios uses http.request in NodeJs which has an option (lookup) for a custom lookup function. Its default value is dns.lookup. However, we want to use another dns resolver which has the cache ability. How can I set lookup when using axios?
I managed to setup a jenkins on kubernetes and gitbucket on kubernetes. Now I am trying out to create my own first docker file for uploading on dockerhub. Unfortunately it fails while uploading to docker. Build is successfully, but I cant manage how to upload it to dockerhub (private repository). Jenkinsfile def label = "${BUILD_TAG}" podTemplate(label: label, containers: [ containerTemplate(name: 'docker', image: 'docker:latest', command: 'cat', ttyEnabled: true) ], volumes: [ hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock') ]) { node(label) { def app def my
I have this simple decorator which sets an attribute mark='marked' on the decorated method def mark(fn): @wraps(fn) def wrapper(*args, **kwargs): return fn(*args, **kwargs) setattr(wrapper, 'mark', 'marked') return wrapper I use it on a class property method like this class Car(object): @property @mark def move(self): return "move" Now since Car.move is a property method, how do I access the marked attribute I created? >>> c = Car() >>> getattr(c.move, 'mark') AttributeError: 'str' object has no attribute 'mark' The error makes sense since c.move invokes the __get__ method on the property desc
I'm trying to take square root on all elements in a matrix A by doing the following command. A.operateOnAll() But the argument must be UnaryFunction<N> and I don't know how to create that. I reading the API documention, but still don't know how to create a sqrt procedure for matrix A https://javadoc.scijava.org/ojAlgo/index.html?org/ojalgo/function/FunctionSet.html
Is it possible to insert a Access2D element in a Primitive64Store in OjAlgo? Access2D<Double> data = Access2D.wrap(mu.toRawCopy2D()); Primitive64Store B = Primitive64Store.FACTORY.make(rows * m, columns * n); I want to insert data into B at a specific start row and start column. For the moment. I have implement the procedure like this: public class Repmat { static public MatrixStore<Double> repmat(MatrixStore<Double> mu, int m, int n) { long rows = mu.countRows(); long columns = mu.countColumns(); double[][] data = mu.toRawCopy2D(); Primitive64Store B = Primitive64Store.FACTORY.make(rows * m,
I'm experiencing crowding on my x-axis when using lineplot in seaborn. I initially plotted the data with the following: import pandas as pd import matplotlib matplotlib.use('TkAgg') import seaborn as sns for state in states_list: starting_point = state_covid_data[(state_covid_data.cases > 9) & (state_covid_data.state == state)] plot = sns.lineplot(data=starting_point, x='date', y='cases') plot Here is the output: To try and fix the crowding, I adjusted my code as follows from the recommendation in this answer: for state in states_list: starting_point = state_covid_data[(state_covid_data.cases
I've configured an InnoDB MySQL v8.0.19 Group Replication Cluster in single-primary mode. I have several webapps accessing the cluster via their own MySQL Router instance in a 1:1 relationship, as per the suggested pattern. Everything appears to be working fine, but the logs for my primary server are being filled with the following message: [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' Dumping the mysql.user table, I see that the generated mysql_router users are
I created a dark/light theme switcher. The problem that I discovered is that when I enter any information in the input field while the website is in dark mode, the text inside the input field appears black. How can I change it to keep the black text colour in light mode and white text colour in dark mode? Here is my CSS for light/dark mode. How can I add a different text color for dark mode? :root { --primary-color: rgb(82, 80, 144); --secondary-color: #536390; --font-color: #424242; --bg-color: #fff; --heading-color: #292922; --color: black; } [data-theme="dark"] { --primary-color: rgb(107, 1
I have been using xampp for a long time, everything was fine and work correctly. one month ago the xampp server shut down suddenly and when try to start the apache I couldn't, it shows that start button disabled and I cant start it. it gave me an error: Problem detected: Apache Not Found! 8:16:51 PM [Apache] Disabling Apache buttons 8:16:51 PM [Apache] Run this program from your XAMPP root directory! 8:16:51 PM [mysql] Problem detected: MySQL Not Found! 8:16:51 PM [mysql] Disabling MySQL buttons 8:16:51 PM [mysql] Run this program from your XAMPP root directory! I have tried all solutions: I t
Do you know of any API, tool, or Python package which can parse individual sections SEC 10-K filings? I'm looking for the individual sections of 10-K filings (e.g. ITEM 1: Business, ITEM 1A: Risk Factors, etc) separated from the entire 10-K filing and preferably cleaned from any page headers (company name), footers (page number) and tables containing mostly numeric data. I've written a parser in python using BeautifulSoup for entire 10-K statements but dividing them into individual sections is looking to be quite challenging - not impossible though. I've found https://jodie.ai/hi/ which has th
I am trying to import import tensorflow.python.keras.applications.MobileNetV2 but it gives the bellow error: ModuleNotFoundError: No module named 'tensorflow.python.keras.applications.MobileNetV2' my tensorflow version is 1.8.0 and keras version is 2.2.0
I want to retrieve a user's friend list with their avatar and steam name. There is a method GetFriendList() from the web API .But it only returns the steamid's of the friends and a unix timestamp from when the user is a friend. I was wondering is there a method or a npm package which gets the user's friend's list with their avatar and steam name.I have been all over steam web API documentation,I was unable to find this type of method.Any help is appriciated.Thank YOU
We are working on integrating a live video class room environment on our website. We have explored a couple of solutions - Bigbluebutton on the opensource end of the spectrum and Agora, Zoom towards the high price per minute end. We have started off the project with Bigbluebutton - but have some concerns - does Bigbluebutton scale well when we have 1000 concurrent users/sessions. Would appreciate if anyone can help us do a comparative analysis.
I have multiple 360 videos that I'm trying to concatenate in ffmpeg. The command it self is pretty straightforward: ffmpeg -f concat -i 0036_concat.txt -c copy -strict unofficial 36.mp4 where 0036_concat.txt is just a list of the individual files. The issue I'm having is that I can't get ffmpeg to preserve side data. Very simply put, ffprobe on any of the source files includes this: Side data: spherical: equirectangular (0.000000/0.000000/0.000000) And I can't, for the life of me, get that to propagate to the output file. this question has a solution that works for single files, but it doesn't
I have some problems to understand the iTunes COM interface with Jacob in reference to the PersistentIDs (PersistentIDLow and PersistentIDHigh) to identify playlists and tracks by unique key in iTunes. I hope someone can tell me what I'm doing wrong. Here is my code example to read one playlist List 1 of iTunes. The example shows in comments the trial to read the PersistentIDs for the playlist List 1 and for every track of the playlist. But the Dispatch doesn't work, see code lines with comment "doesn't work". Exception in thread "main" com.jacob.com.ComFailException: Can't map name to dispid:
For operations using single precision values in IEEE 754 (float, 32bit), is there a way to somehow condition the two operands to ensure that the operation result is rounded down, when an exact result is not possible? In other words, how can I force round to -Inf? Example: Typical result (using 'round to nearest'): 1.0f / 3.0f = 0.3333333432674407958984375f Expected result (using 'round down'): 1.0f / 3.0f = 0.333333313465118408203125f As additional info, I would be doing this in C99, and (unfortunatly) it's not possible to configure the FPU.
I'm getting this execption every time I run the command : kinit -k -t C:\Users\XXXX\user.keytab MYUSER Here is the execption C:\Users\XXXX>kinit -k -t C:\Users\XXXX\user.keytab MYUSER Exception: krb_error 0 Do not have keys of types listed in default_tkt_enctypes available; only have keys of following type: No error KrbException: Do not have keys of types listed in default_tkt_enctypes available; only have keys of following type: at sun.security.krb5.internal.crypto.EType.getDefaults(EType.java:280) at sun.security.krb5.KrbAsReqBuilder.build(KrbAsReqBuilder.java:261) at sun.security.krb5.KrbAs
I have a column I am getting in the RTF TEMPLATE that calculates the sum by using -<?sum(current-group()/PAYMENT[../PAYMENT != ''])?> ***Tax deduction*** Description current YTD Voluntary `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`> Involuntary <?PAYMENT?> `<?sum(current-group()/YEAR)?`> Pre tax `<?sum(current-group()/PAYMENT[../PAYMENT != ''])?>` `<?sum(current-group()/YEAR)?`> I want to calculate the sum total of the current value and YTD column value. How can I do that?
I have an xarray dataset. <xarray.Dataset> Dimensions: (lat: 92, lon: 172, time: 183) Coordinates: * lat (lat) float32 4.125001 4.375 4.625 ... 26.624994 26.874996 * lon (lon) float32 nan nan nan ... 24.374996 24.624998 24.875 * time (time) datetime64[ns] 2003-09-01 2003-09-02 ... 2004-03-01 Data variables: swnet (time, lat, lon) float32 dask.array<shape=(183, 92, 172), chunksize=(1, 92, 172)> Find the nearest lat-long df.sel(time='2003-09-01', lon=6.374997, lat=16.375006, method='nearest') Need to find The indices of this particular location. Basically, the row-column in the grid. What would
I have been trying to come up with a way to interact with openvpn on windows. I did fine the openvpn.exe but there are no commands that will use a config file to connect with a vpn server. I am using nordvpn by the way. Specifically a tcp Canadian server. I did find some people suggesting to use the openvpn-gui.exe to run the program but it defeats the purpose. I want t to completely be on command line. Secondly, i need the command line to work as i want to integrate openvopn into a script which will download stuff from the internet. Anyone with any idea how to do it?
I am struggling to solve a problem I am having with folium choropleth map. I am visualizing COVID-19 cases and try to plot the colour according to their quantiles affiliation. However, unfortunately, the legend overlaps. Hence, I am wondering if someone could please tell me how to fix this problem? Either by "logarithmically" scaling the legend or just showing the start and end. Unfortunately, I did not find sufficient advice online. Please find below the code and a visualization: myscale = (covid_cases['total_cases'].quantile((0,0.02,0.25,0.5,0.75,0.9,0.98,1))).tolist() m = folium.Map([10, -1
I have tried to migrate my database but am still having issues. I wanted to try and look at all my sites databases via Command Prompt. I want to try and see which columns do or don't exist in models. I did python manage.py shell but then could not work out the queries that would allow me to see all the information in both my sites databases. (project2_env) C:\Users\HP\django_project3>python manage.py shell (InteractiveConsole) >>> from blog.models import Post >>> from django.contrib.auth.models import User >>> User.objects.all() <QuerySet [<User: RossSymonds>, <User: RossTheExplorer>, <User: R
I am using Google Colab GPU for training a model. After the training, I delete the large variables that I have used for the training, but I notice that the RAM is still full. What is really happening and what is exactly in the RAM? How can I free up the RAM without restarting?
I am learning git. I accidentally used git add . and it adds hundreds of files from the "node_modules" directory to my local repository. Is there anything I can do to undo this before I run the git commit command?
I'm working on a group project and am trying to run a test. When running it I get the error in the file along with org.junit.platform.commons.util.PreconditionViolationException: Could not load class with name ... I've tried invalidating caches and restarting and I've also tried re-importing the pom.xml file but I'm still getting the error when trying to run a test. Any help would be much appreciated. I'm using intellij IDEA 2019.2.4 (Community Edition) Error that Intellij is showing WARNING: TestEngine with ID 'junit-vintage' failed to discover tests org.junit.platform.commons.util.Preconditi
I am developing a Java application that will send mail to multiple recipients via Java Mail API(1.6.2). I have configured the SMTP as per the Microsoft docs. The problem is the code is working with my personal Hotmail email ID but it fails for my corporate Office 365 account: Error: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful [PN1PR0101CA0066.INDPRD01.PROD.OUTLOOK.COM] POP and IMAP are working (receiving mails), and I can log in with the password in Office 365 Web. I have tried changing the password too. Code: User user = Credentials.ACC; Properties props =
I have no idea why this piece of code failed to synthesis using the oasys tool: for (i = 0; i < N; i = i + 1) begin if( i >= counter & i < new_pos) out[i] <= bit; end where counter, out are reg, and new_pos is wire for full code module provided below: module decompressor #(parameter N = 32)(clk , reset , start , bit , value , store , out); input clk,reset,start,bit; // start decompress , bit is the value to be added input [$clog2(N):0] value; // value is counter for the decoded bit output reg store; // Store to acknwoledge memory manager output reg[N-1:0]out; // out is decoded data reg [$clog2