My Goal: To run unit tests on my Angular 6 app (that runs inside of a Docker container) using Karma/Jasmine. In order to run these tests it appears I need a web browser. So it seemed like Chromium headless was a good option. I've gotten it installed along with a bunch of other libraries through my Dockerfile, but running my tests inside of the Docker container fails (running tests outside of it works fine). The Error: 23 02 2019 04:28:08.884:ERROR [launcher]: ChromiumHeadless stdout: 23 02 2019 04:28:08.884:ERROR [launcher]: ChromiumHeadless stderr: [0223/042808.557529:WARNING:dns_config_servi
I am working with R using a scaled dataset and principal component analysis (princomp). Everything works fine, but I would like to graph the cumulative % variances of principle components to the whole. The summary provides this information, but I am not able to access it yet. In other words, I want to y='Cumulative Proportion' from pca vs. 'component#'. pca <- princomp(class5_subset_scaled) summary(pca) # Summary provides Importance of components: Comp.1 Comp.2 ... Standard deviation 0.0513980 0.04482971 ... Proportion of Variance 0.2089728 0.15897513 ... Cumulative Proportion 0.2089728 0.3679
I'm not sure how to describe this, so I'll try my best. I am currently trying to make a formula that will add 10% to my final cost. I have the formula currently working out the cost of linear meters from 'R3'. The cost is on per linear meter is on sheet 'Base Rates ! DO NOT DELETE !'. Once the formula works out the cost per linear meter and puts it into column 'AB', I then need it to add 10% which is the our markup. I can't seem to get it to do so. Please find the formula below. Any assistance would be greatly appreciated. =SUM(R3*'Base Rates ! DO NOT DELETE !'!B$1)
Using either VS 2017 or Blend, the rendered XAML does not show in the design view. Can click in the empty window and will jump to elements in the Xaml file. The rendered view had been showing without issues. As I continued to develop my program it first quit working in VS and then in Blend. To troubleshoot, copied my solution and started hacking sections out. Finally found in the two lines of code below. Back in my full program can make the problem go away and come back with just these two lines. Also, with lines in, the program functions correctly. <Window x:Class="LuaFileParser.MainWindow" W
I have a set of databeses with names like abc_base_1, abc_base_2, abc_base_3, abc_base_n. I'd like to grant all privileges on all tables of all this databases to one non root user. Generally, it seems that abc_ is a common prefix of group. Questions: Is mysql has database groups? If yes - how to define them (something special or it just has to have same name prefix (like abc))? Is it possible to grant privileges on group of databases (or databases with names starts with abc prefix)? If yes - how to grant? Is this permissions distributes dynamically for all new databases, that has the same name
I need to write a macro in Catia 5. My aim is to convert cgm files to png at the desired background color and at desired resolution. Manually I am doing it by Capture->image->options(setting resolution and background color)-> save as . I need to do it by macro. I can open the Capture window with CATIA.StartCommand "Capture" but can not proceed furthermore. How can I proceed? Thanks in advance. HOW WE CAN USE COMMANDS WHICH ARE GIVEN IN OBJECT BROWSER IN MACRO? I AM DIRECTLY WRITING IT BUT DOES NOT WORK.
There is no bitLength() method documented in the MDN BigInt reference or the JSBI repository. How can I find the number of bits (the bit length) of a native BigInt value? I am looking for a "direct way", using some internal information, or anything faster than doing x.toString(2). Not ideal, but an interim workaround (seems faster than toString()) is to use this mathematical formula based on log2(x) adapted for BigInt. This library implements a specific integerLogarithm(value, base), which could be used to calculate log2 and implement a bitLength() method (without Math.floor()), but it has a l
Scenario: I am writing data JSON object data into kafka topic while reading I want to read an only specific set of messages based on the value present in the message. I am using kafka-python library. sample messages: {flow_status: "completed", value: 1, active: yes} {flow_status:"failure",value 2, active:yes} Here I want to read only messages having flow_Status as completed.
I have succesfuly made a fetch post to my php api with my thisWorks() function, but I am trying to use fetch with async/await post () function but I keep getting back a 500 internal server error response when trying to do this which I'm not sure how to debug since my code in my async function is mostly the same as in thisWorks(). here are the two functions - //I can make a succesful post to my api with this function and it returns a 200 ok response from the server function thisWorks(title, message, author, id) { fetch("http://menu.com/menu/api/post/create.php", { method: "POST", headers: new H
I have a df with polygon ID's from a shapefile and their centre-points in a geometry column: # A tibble: 3 x 2 ID geometry <dbl> <POINT [°]> 1 1 (117.2 31.8) 2 2 (116.4 40.1) 3 4 (117.9 26) I want to put the latitude/longitude values into separate columns, so I do: library(sf) centres<- as.data.frame(st_coordinates(df)) This new 'centres' dataframe has the lat&long values, but misses the ID column. How can I preserve it, or is there another way to get the lat&long values into separate columns from the geometry column whilst keeping the ID in the same df? dput for the dataframe is: df <- struct
Environment:Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1586.0 Backend: Oracle 9i Tools : Visual Studio 2012, ODAC 11.2 Version The application works fine when I debug through Visual studio 2012 and all CRUD operation works perfectly. But when I deploy it to the IIS server it said "ORA-03134: Connections to this server version are no longer supported as in below image" IIS configuration(Application Pool) is as follows :
I implemented reCAPTCHA v3 on my website, all is working fine, I'm getting a score back and everything on the server-side. However, I'm getting tons of Content Security Policy warnings in the console (Firefox): Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified Content Security
So it looks like there is no official support for ie with cypress js. I'm wondering if anybody knows about alternatives, hacks that can make this work at the moment?
I have an excel workbook that is stored locally on my PC but inside my OneDrive sync-ed folder. Whenever I try (from the immediate window and programmatically as well): ? Excel.Application.ThisWorkbook.FullName I get something like: https://d.docs.live.net/c31ceb5b47a36fa2/VBA/learnVBAmacros.xlsb whereas the real local path of my file is: C:\Users\viset\OneDrive\VBA\learnVBAmacros.xlsb How can I retrieve this latter LOCAL path to my workbook, instead of its URL on OneDrive?
I'm planning to travel to India from an international destination, and leaving back to the same international destination. My airline allows me to check two bags weighing 50 pounds each, and I plan to make full use of this allowance. However, when I was booking my ticket, I found that the ticket price to my final destination in India is significantly more expensive than booking a ticket to a major hub airport (e.g. DEL, BOM, etc.) and a separate domestic ticket to my intended destination. I'm aware that if I book a ticket straight through to my final destination, I can carry the full allowance
I am having some trouble parsing my AWS SQS message when I receive a message. My main issue is that while it seems to be somewhat of a string it also wants to act like an object. So far, I have just been trying to parse the message so it has been a lot of console.log() and typeof. sqs.receiveMessage(params, (err, data) => { if (err) console.log(err, err.stack); else { messages = data; console.log(typeof messages.Messages[2].Body); // #2 let validMessage = JSON.parse(messages.Messages[2].Body); // #1 console.log(`validMessage: ${validMessage}`); // Just doesn't print out console.log(typeof vali
I am running postgresql in WSL Ubuntu on windows. Everything is up to speed, my data is loaded and I wish to access the database through some graphical interface. I was thinking pgadmin4. Is it possible to accomplish this through a windows install of pgadmin4? I installed pgadmin4 on windows and tried to connect the traditional way in the GUI through localhost but am not getting a connection. I figure there may be a special method here.
I have an escaped string in a variable and I am trying to make a JSON object from the string. It's throwing the following Exception: org.json.JSONException: Missing value at character 1 After thorough research, I couldn't find an answer on Stack Overflow. If the string is escaped you need to unescape it before trying to make a JSONObject out of it. Below is a snippet of my code: String escapedString = StringEscapeUtils.unescapeJava(escapedString); JSONObject Json = new JSONObject(escapedString); I am open to hearing any other solutions besides what I mentioned here.
I want to create table via H2 in springboot, but when I run I've got following error; org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table bank_account (id bigint not null, balance double not null, full name varchar(128) not null, primary key (id))" via JDBC Statement ... data.sql: Insert into Bank_Account(ID, Full_Name, Balance) values (1, 'Ibrahim', 2500); Insert into Bank_Account(ID, Full_Name, Balance) values (2, 'Ates', 4210); pom.xml; <dependency> <groupId>com.
I'm trying to get a token from my SQL server. Everytime I run it in VS2017 I'm prompted for credentials. The SQL connection should be made with integrated authentication but the datasource kind of SQL seems like I have a mismatch between what I can enter in the tester and what my code needs to connect. [DataSource.Kind="PQExtension1", Publish="PQExtension1.Publish"] shared PQExtension1.Contents = (optional message as text) => let _message = if (message <> null) then message else "(no message)", a = "Hello from PQExtension1: " & getToken() in a; getToken = () => let t = Sql.Database("sqlserver"
I want to combine an API specification written using the OpenAPI 3 spec, that is currently divided into multiple files that reference each other using $ref. How can I do that?
Getting InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. error when parsing Protobuf Not sure why parsing failing ever though I can see the output if I call response.getContentAsString() method on response object. my Proto file: syntax = "proto2"; package com.test.protocol; option java_package = "com.test.protocol.v1"; option java_outer_classname = "Test1"; message Test2 { required int64 id = 1; required string value = 2 } I wrote API to return the Proto response which looks like below final Test2.Builder builder = TEST2.n
You can change measurement system in: Windows settings => Time & Language => Additional date, time & regional settings => change date, time, or number formats => Additional settings => Measurement system When you use RegionInfo.CurrentRegion.IsMetric in C#, this data isn't related to what you have chosen in settings. How to access from C# code currently chosen Measurement system?
I am building an Angular 6 SPA. When using Google Analytics, I am using the following code: <script> (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); ga('create', 'XXXXXXX', 'auto'); //tracking code in index.html Since I want to trigger analytics for every page inside app.component.ts,
I was wondering if it is possible to prevent that a lease is used twice. What is a lease? A lease is some sort of token that is given out to exactly one node at a time in a distributed setting. An example use case of a lease would be that only one node at the time can write to a database. What is a fencing token and why use it? With the lease as described above, we could run into problems. A node could stop (e.g. because of stop-the-world garbage collection) and still believe that his lease is valid, when in fact it is not. If we give each lease a fencing token (an incremental integer) the dat
I have two form pages 3 and 4. I want to pass the value for item: P3_LOT_N in page 3 to item: P4_LOT_N in page 4 when the button "Next" is pressed. How can I do this in oracle apex 5.0? Please help. Thank you.
I was trying to generate and test my codes (if working) for Cucumber-Maven report then opened command prompt. I have tried "mvn clean", it was BUILD SUCCESS. After that, I have tried "mvn install" and encountered BUILD FAILURE (error was shown). [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.844 s [INFO] Finished at: 2019-02-05T13:14:51+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.
Getting below error while running spring boot application : java.lang.AbstractMethodError: Receiver class org.springframework.jms.config.JmsListenerEndpointRegistry does not define or inherit an implementation of the resolved method abstract isAutoStartup()Z of interface org.springframework.context.SmartLifecycle. at org.springframework.context.support.DefaultLifecycleProcessor.lambda$startBeans$0(DefaultLifecycleProcessor.java:144) ~[spring-context-5.0.12.RELEASE.jar:5.0.12.RELEASE] at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) ~[na:na] at org.springframework.context.su
I have a rubyonrails website which function in such a way that when a user signup with his username it create a repo in that username in my github account. It is working flawlessly in heroku. When I switched to amazon web service I initially get intializing git sh: git: command not found sh: line 0: cd: /home/webapp: No such file or directory I overcome this error by adding a config file in .ebextensions like commands: 01_mkdir_webapp_dir: # use the test directive to create the directory # if the mkdir command fails the rest of this directive is ignored test: 'mkdir /home/webapp' command: 'ls