I'm trying to run this code that I found online to figure out how to run C++ on Visual Studio Code but it keeps telling me "Please update your includePath. IntelliSense features for this translation unit... will be provided by the Tag Parser." as well as "could not open source file "iostream" (no directories in search list)". VC told me to download git and so I did. Its site also told me to download mingw-w64 and I did so. How do I edit includePath settings? Please keep in mind that I am a complete beginner to C++ but need to be able to use something for a class and was recommended VC. #includ
I have tried all things to align vertically an icon and a text, Code: <Danger color="secondary" style={{ flex:1,justifyContent: "center",alignItems: "center" }}> <ErrorOutline className={classes.warning} /> <text numberOfLines={1} style={{ textAlignVertical: "center" }}> The last job was canceled </text> </Danger> Things that I've tried : display, justifyContent, alignItems, flex, flexDirection, etc. Any advice? Thanks!
I am trying to insert spark DF to Postgres using JDBC write. The postgres table has a unique constraint on one of the columns, when the df to be inserted violates the constraint entire batch is rejected and spark session closes giving an error duplicate key value violates unique constraint which is correct as the data is duplicate (already exists in the database) org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:148 What is needed that the data rows which do not violate the constraint be inserted and the failed row be ignored, without failing the entire batch. The code
I am running docker for windows on Windows 10 Enterprise edition. It runs successfully in windows container mode. When I do right-click on docker icon and "Switch to Linux Container", it keeps on switching and after some time, it throws the below error: error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.38/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running. at Docker.Core.Pipe.
working on win10 64-bit when i trying to train my model by E:\projectx\model-master\models-master>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config this error appear File "train.py", line 49, in from object_detection.builders import dataset_builder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\object_detection-0.1-py3.6.egg\object_detection\builders\dataset_builder.py", line 27, in from object_detection.data_decoders import tf_example_decoder File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\
I have a problem with the video game that I am trying to create. The problem that I have is that, the song that I have made this one very strong and looking at the documentation I have seen that can form the volume, have applied this way of forming it without any result. Not if I have explained correctly... My code in typescript: export class SampleScene extends Phaser.Scene { private song: Phaser.Sound.BaseSound; public preload() { // TODO: Add your code this.load.audio('theme', 'assets/audio/sayrun.mp3'); } public create() { // TODO Add your code. this.song = this.sound.add('theme'); this.so
I've been working in Java Eclipse with a Maven project for school. I've been using Eclemma for code coverage data, but my professor wants to run my code from the command line and get a code coverage report from there. I've been trying to get Jacoco to work, but I really have never worked with Maven or Pom.xmls before and am pretty lost. Thise is what mine looks like at the moment <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersio
I am creating an excel file by using Excel4node package. by using this code // Require library var excel = require('excel4node'); // Create a new instance of a Workbook class var workbook = new excel.Workbook(); // Add Worksheets to the workbook var worksheet = workbook.addWorksheet('Sheet 1'); var worksheet2 = workbook.addWorksheet('Sheet 2'); // Create a reusable style var style = workbook.createStyle({ font: { color: '#FF0800', size: 12 }, numberFormat: '$#,##0.00; ($#,##0.00); -' }); // Set value of cell A1 to 100 as a number type styled with paramaters of style worksheet.cell(1,1).number(
I have been trying to install the command "make" in Windows but I couldn't. I tried with cygwin and GNU, but I think I am making something wrong somewhere. Can anyone give me some detailed steps please !
I am using extent reports in appium with testng and its working fine for me.whenver my tests run is completed then extent report generates html file in my project folder and that is what expected. Issue is that when I again run my tests then extent report generate new html report file by overwrting the name of previously created html file. I want extent report to generate html file with unique names or name with date in in, each time when I run my tests
IIFE are mainly used to encapsulate scope (function () { let myVar = 10; // not global // ... }()); but why not just use a block statement? { let myVar = 10; // also not global // ... } are there other benefits for using IIFE further than scope encapsulation?
I can't get webpack dev server to work properly. I think the issue is the compiled code it makes in memory is not clearing. I can't work out where I'm going wrong. My config file is: var path = require('path'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: ['babel-polyfill', './src/js/index.js'], output: { path: path.join(__dirname, 'dist'), publicPath: "/", filename: 'js/index.js' }, devServer: { contentBase: '/dist' }, module: { rules: [ { test: /\.js$/, use: ['babel-loader'] }, { test: /\.
I'm trying to filter my data based on a list of criteria. The list of criteria will be maintained on the actual spreadsheet since it needs to be updated by other users in column Z. I tried using an advanced filter, and eventually I was going to implement it in VBA but it didn't return any values. The size and length columns are intentionally left blank. I want it to return all the data in the table on the left so that none of the words in the table on the right show up.
I created a global dragover event listener so that when something it dragged over the page it would show a dragover area on the page and hide it when you move the cursor off the page: document.addEventListener('dragover', event => { event.preventDefault() this.dragOverArea = true // ... }) document.addEventListener('dragleave', event => { event.preventDefault() this.dragOverArea = false // ... }) Problem JSfiddle: http://jsfiddle.net/ct3haqf0 Try dragging any file over the elements on the page (from the top left) you will see the dragover event switching to dragleave rapidly back and forth whi
Today I found I cannot open anaconda navigator, which operated just fine before. At the same time, spyder could not be open either, but jupyter notebook and anaconda prompt are available. I tried different methods following instructions online. 1) conda update anaconda-navigator and reboot the system 2) anaconda-navigator --reset , but it shows the error as follows: Traceback (most recent call last): File "C:\Users\User\Anaconda3\lib\site-packages\qtpy\__init__.py", line 169, in <module> from PySide import __version__ as PYSIDE_VERSION # analysis:ignore ImportError: No module named 'PySide' Du
Estoy haciendo un proyecto con Firebase, para esto instalé Angularfire2 con npm install angularfire2 firebase --save, pero me salía el siguiente error en la terminal: npm install firebase angularfire2 --save npm WARN [email protected] requires a peer of @angular/common@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of @angular/platform-browser@^6.0.0 but none is installe
I have to automate a case in which I have to download a file using Selenium WebDriver and cross-browsers. I already did that for Chrome (through ChromeOptions), FF (through FirefoxProfile) and IE11. For example, with Firefox, I use Firefox Profile to suppress the Download Prompt, like this: profile.setPreference("browser.download.dir", "C:\\DownloadCleanup"); profile.setPreference("browser.download.folderList", 2); profile.setPreference("browser.download.manager.showWhenStarting", false); profile.setPreference("browser.helperApps.alwaysAsk.force", false); profile.setPreference("browser.helperA
This seems to be the directory where my batch file my-build resides. Program\ my_app\ javasdk\ java-build.bat app\ my-build.bat I want to run from my batch file 1. Move one level up and run java-build.bat 2. And then run one more command in app dir I tried cd .. javasdk\java-build cd.. app\my-build app- antbuild.bat -D env.myAppjars= C:\Source\abcd\my-app\app\lib I am getting some errors. Am I doing it correct? How can I use relative path instead C:\Source\abcd\my-app\app\lib
According to the doc of CloudFront (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html), client IP can be the front, middle, end of X-Forwarded-For header. Is it rignt? Then how can I get real client IP?
I created a docker image and pushed it to docker hub. Now, I am trying to run it on a remote machine by using docker-compose and I get the following error. java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing my-test_1 | at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:132) my-test_1 | at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93) my-test_1 | at org.springframework.boot.Sp
Is it possible to return the column name of a row in a table? If so, how should I do it? I have a table with this structure ---------------------------------------------------------------------------- | idx | line1 | line2 | line3 | line1_action | line2_action | line3_action | ---------------------------------------------------------------------------- | 1 | 3 | 2 | 1 | PENDING | PENDING | APPROVED | ---------------------------------------------------------------------------- For example i have an idx = 1 and my line = 2, and I need to check if I am in the lines 1, 2 or 3 of idx = 1, How do I
So last week my phone got stolen and the wifi and mobile data were turned off so I had no access to it. GPS was turned off as well but that's of no use if the phone doesn't have an internet connection. Even though the phone was protected by a fingerprint and my data would be safe, I still would've loved that phone back. Thinking about this I came up with an idea. What if I create an Android app that would run silently in the background on my (new)phone and would do absolutely nothing. All it would do is listen for a certain string of characters in all the SMS the phone receives. Now say my new
I created a Magento Module to 2.2.4 and 2.2.3 version that add a custom attribute in Shipping Address and Customer Address. The attribute works fine when new address is created in checkout page show my custom attribute and save in order address and quote address. The problem is when load the address from the address book so my custom attribute not loading and it is required in shipping address and I can´t go to payments When edit the custom attribute in Customers > Address from Magento Admin is not saved. I set values into database manually to my custom attribute in customer address but not is
I am trying to open a webview inside my fragment. But I am getting the error ContentCatcher: Failed to notify a WebView. Below is the code for my onCreateView of my fragment @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_payment_gateway, container, false); webView=(WebView)rootView.findViewById(R.id.paymentwebview); WebSettings webSettings= webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClient() { @Override public
I'm trying to add a certificate into $JAVA_HOME/jre/lib/security/cacerts truststore on my Dockerfile: FROM frolvlad/alpine-oraclejdk8:slim VOLUME /tmp RUN keytool -import -alias vault -storepass changeit -keystore $JAVA_HOME/jre/lib/security/cacerts -noprompt -trustcacerts -file /var/run/secrets/kubernetes.io/certs/tls.crt ADD wseccloudconfig-0.0.1-SNAPSHOT.jar app.jar RUN sh -c 'touch /app.jar' ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ] As you can see I'm performing a command keytool... in order to insert the certificate to cacerts. I'm
I am new to Java. I created Java Maven project and am getting the below error while connecting to MySQL. I am posting my code below. In pom.xml, <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> In class, private void connection() { try { Class.forName("com.mysql.cj.jdbc.Driver").newInstance(); connect = DriverManager.getConnection("jdbc:mysql://10.100.00.00:3305/dbname" , "username","password"); } catch(SQLException ex) { System.out.println(ex.getMessage()); } catch(Exception ex) { System.out.println(ex.getMessage()); }
I want to wake up my STM32 controller from standby mode by giving a rising edge on WKUP pin, but there is a problem. When I press the switch on a WKUP pin for more than 10 seconds, then, and then only, should my controller wake up, not by just pressing and releasing the switch.
I'm trying to close my sidebar whenever user clicks somewhere not in it. I've tried two-way data-binding and now I'm trying with rxjs' Subject AppTemplate <app-sidenav [openedSubject]="openedSubject"></app-sidenav> AppComponent openedSubject = new Subject<boolean>(); @HostListener('click', ['$event']) clickedInside($event) { this.openedSubject.next(false); } SidenavComponent @Input() openedSubject: Subject<boolean>; @ViewChild('sidenav') sidenav: MatSidenav; ngAfterContentInit() { this.openedSubject.subscribe(opened => { if(this.sidenav.opened) opened || this.sidenav.toggle(); }); } toggle() {