Chris Chris

28463 questions
1

votes
2

answer
50

views

Binding a string with value in Angular 2

How to concatenate string with a value as we do in JAVA 'The total pay is ' + totalPay. I want to do it in Angular 2+ like 'Hi Hello' +req.body.hello
Chris
1

votes
1

answer
17

views

Mongoose and nested arrays

My Schema let citySchema = new mongoose.Schema({ ... }); let countrySchema = new mongoose.Schema({ regions : [{ cities : [ref: 'City'] }] }); The problem - how to insert existing city into a selected (by _id) region. The _id of a region is automagically added by mongoose/mongodb, and I do not want t...
Chris
1

votes
0

answer
93

views

How do I use HTML5 form elements (e.g. <input type=“date”>) with Elm's Style-Elements library?

I have a view (I've mocked it up here) which uses Elm's style-elements library to generate a form: formEl : Model -> E.Element MyStyles variation Msg formEl model = E.column None []
Chris
1

votes
0

answer
87

views

Mapping generic parameter to compile time data in Typescript?

I'm playing around with trying to disentangle a codebase from Sequelize. Right now we have tons of code like: // Defining interface for model instances interface UserInstance extends Sequelize.Instance { ... database field here ... } // Wrapper class managing connection & model definitions class Db...
Chris Tavares
1

votes
0

answer
38

views

Firefox intermittently sets all colors on a page (text, background, links, highlighted text, etc.) to a single color, on both Android and Windows

This has been happening on Firefox for Android (57.0.1, Android 8.1.0, Security patch level: December 5,2017 -- but I cannot be totally sure that it has happened since the most update, since I have automatic updates on), and just happened on Firefox ESR (52.5.2, 32-bit, updates disabled by sysadmin,...
Chris Henry
1

votes
1

answer
285

views

ASP.NET Windows Authentication - Page cannot be displayed

I have created a simple WebForm asp.net web site. I have disabled the Windows Authentication checks within the code but set IIS8 to 'Windows Authentication' as well as the web.config. I perform the Indentity.IsAuthenticated check in the backend to ensure the user is authenticated. My issue is I get...
Chris Cunning
1

votes
0

answer
72

views

dc.js elasticY range bound by brush y values

How can we control the elasticY recalculation of the Y axis range, on a scatter plot, to be bound by the brushes Y range? Thus if a scatter plot has a brush bounded on the Y axis between [6-8) and the elasticY recalculates the new Y axis range to be [3-7] we would like the new Y axis range to be [3...
Chris Wolcott
1

votes
1

answer
246

views

How to handle JWT Authentication with Spring when implementing a CQRS pattern?

Using the latest Spring Cloud and Spring Boot, I've got a micro services layout with a Zuul gateway. At the moment when a user sends a get request their JWT token gets added to the request and that goes off to the microservice where they're authenticated and things go as usual. This all works perfec...
Chris Turner
1

votes
0

answer
36

views

Changing the colour of a pushbutton using python/raspberry pi

I'm working on a project for work which is essentially a remote monitor that looks at the status of drawbridges. I have a GUI set up that i designed with PyQtDesigner with 8 buttons that are currently coloured red and want them to go green when drawbridges come down. I'm using the GPIO on a raspberr...
Chris
1

votes
0

answer
128

views

How to access data form Google sheets html sidebar

I'm trying to access the values in my custom sidebar menu. Been trying to find the solution for too long. My end goal is to create a new sheet in the active spreadsheet based on the response from the sidebar. 'ReferenceError: 'document' is not defined.' var assessmentName = document.getElementbyId...
Chris Shortreed
1

votes
1

answer
33

views

Watcher does not catch array value changes

I have a simple array structured like the following: dates[2] 0:'2018-01-09T15:00:00.000Z' 1:'2018-01-10T14:00:00.000Z' And my watcher is set up like this: data() { return { dates: [], } } watch: { // whenever dates changes, this function will run dates: { handler: function(before, after) {...
Chris
1

votes
0

answer
163

views

Lato font broken in FF when using latin-ext characters

I have developed a site in Polish using the 'Lato' Google Font (supports the latin-extended character subset). My site is http://www.innova.uno I have placed the code from GF website in my theme's ` section: When I open the site in Chrome, all text are displayed correctly. But when opening the site...
Chris Osiak
1

votes
1

answer
223

views

Azure custom activities in an Azure Data Factory pipeline run timed out

I have been trying to follow the steps in this document https://docs.microsoft.com/en-us/azure/data-factory/v1/data-factory-use-custom-activities to create a custom activity, but it throw run timed out error in output dataset: Pipeline: { 'name': 'ADFTutorialPipelineCustom', 'properties': { 'descrip...
Lau Chris
1

votes
1

answer
60

views

Matlab - Expand Figure Temporarily, Then Close

I'm expanding on the question asked at Expand (maximise) subplot figure temporarily — then collapse it back - I tried to post this as a comment to the original post, but I don't have sufficient privileges. I was using the version in the comments: function gcaExpandable set(gca, 'ButtonDownFcn', [....
Chris
1

votes
1

answer
62

views

Typescript errors after including all TypeScript files in .csproj

I'm upgrading an AngularJS app to Angular, and I've created a hybrid AngularJS/Angular project that's using TypeScript 2.6.2. (It essentially works by loading AngularJS through an Angular bootstrap method, using SystemJS for the module loading). It compiles without errors when I run node installed T...
Chris Halcrow
1

votes
0

answer
236

views

Why is supervisord NOT reading INI file?

Using v2.1 (can't upgrade to newer version yet) I asked 'How to make supervisord use an INI file?' and now understand to use the [include] directive in /etc/supervisord.conf file. So I have this in my /etc/supervisord.conf [include] files = /etc/supervisord.d/myapp.ini And /etc/supervisord.d/myapp.i...
Chris F
1

votes
0

answer
178

views

Difference bwteen UNTimeIntervalNotificationTrigger and UNCalendarNotificationTrigger?

My app is very notification dependent and I have recently noticed some notification issues which never used to be there before iOS 11.2. 1) Calling removeDeliveredNotifications on a notification by a UNCalendarNotificationTrigger does not remove it anymore, but it does remove notifications triggered...
Chris Mailer
1

votes
0

answer
271

views

R fitted ARIMA off by one timestep? pkg:Forecast

When plotting fitted ARIMA results on the original data, the fitted values sometimes appear off by one timestep: library(forecast) set.seed(1) #simualted ts eg
Chris McCort
1

votes
1

answer
1.1k

views

There are no commands defined in the “backup” namespace

I have tried installing Laravel Backup for Database paulvl/backup I have followed the instructions on how to install and configure it to my Laravel application. I am however stuck at the point where you actually run the backup command. I get this error: $ php artisan backup:mysql-dump...
Chris Otaalo
1

votes
0

answer
69

views

laravel iis web.config apply only to specific routes

I have laravel running on an iis server. There is a default rewrite rule that redirects all unknown urls to index.php I would like to apply this rule only to urls with a path starting with /api and additionally to the exact path /login So mydomain1.com/assets/logo.png should point to the file or fai...
Chris
1

votes
1

answer
1.7k

views

Mongodb aggregate ifNull against array elements

I have the following dataset: { patientId: 228, medication: { atHome : [ { 'drug' : 'tylenol', 'start' : '3', 'stop' : '7' }, { 'drug' : 'advil', 'start' : '0', 'stop' : '2' }, { 'drug' : 'vitaminK', 'start' : '0', 'stop' : '11' } ], } } When I execute the following aggregate everything lo...
Chris Wolcott
1

votes
0

answer
250

views

How to setup dependent parallel tasks in groovy pipeline to the same slave

I have 3 Tasks that need to be in 3 pipelines that will run such that Task 1 & 2 run in parallel. Task 1 needs to run in the background, silently (How to set this up?) Task 2 is the worker and Task 3 triggers after Task 2 completed. Task 1 which was running in the background, needs to be terminat...
Chris
1

votes
2

answer
322

views

UTF-8 encoding for XML with php and accent characters along with ENT_XML1

AN ongoing issue for over a year, That I though I had corrected but has evolved into a monster. I move large amounts of data between sites using XML generated on PHP systems. Mainly text I ran into some basic XML items that broke the transfer so I used this code of all XML values. $value=str_replac...
Radium Chris
1

votes
0

answer
41

views

threejs: Does anyone know what happened to phong/standard shading support on recent (Nougat) smartphone releases of Android?

i.e., MeshPhongMaterial, MeshStandardMaterial. These materials now render as black. Examples: https://threejs.org/examples/#webgl_animation_skinning_blending https://threejs.org/examples/#webgl_geometry_teapot In the last example, only 'Wireframe' and 'Smooth' of the Shading menu work on many rec...
Chris R
1

votes
0

answer
48

views

How can you combine two firebase observation results into the same array

I have two nodes in my firebase DB that tracks like and comment notifications. Each value is parsed as a Notification class and I am looking to be able to get the snapshots from each node and create a merged notification array. The two functions I have work to pull the respective data but I dont kno...
Chris
1

votes
1

answer
346

views

<media:content> missing in RSS feed

I am setting up a Newsletter and it requires < media:content> from my RSS feed to pull images. My Wordpress Blog RSS dos not contain any at all and I am wondering how I can change my Feed? https://www.chrisontour84.de/feed Instead I am getting some kind of encoded content: Things I have checked are...
Chris
1

votes
0

answer
35

views

Salesforce form showing errors even when filled out correctly

I am new to salesforce and don't have a lot of experience with javascript. The issue I am having is that as I am testing a form and filling out the inputs it is adding the the 'has-error' class to the parent div even when the input is filled out correctly. However, it will allow the form to be submi...
Chris Partridge
1

votes
1

answer
127

views

Using MPNowPlayingInfoCenter without actually playing audio

I am trying to build an iOS app which controls a music player which runs on a seperate machine. I would like to use the MPNowPlayingInfoCenter for inspecting and controlling this player. As far as I can tell so far, the app actually has to output audio for this to work (see also this answer). Howeve...
Chris Brandhorst
1

votes
1

answer
1k

views

How to store my own class object into hdf5?

I created a class to hold experiment results from my research (I'm an EE phd student) like class Trial: def __init__(self, subID, triID): self.filePath = '' # file path of the folder self.subID = -1 # int self.triID = -1 # int self.data_A = -1 # numpy array self.data_B = -1 # numpy array...
Chris
1

votes
1

answer
24

views

Listiview Scrolling Down-Up Changes row's color

I'm using a listview with adapter inside for changing backcolor in every row according value Active. Also i'm using holder in my adapter but every time i'm scrolling down and up my listview, all colors are been changed. Here is my Class: class FactClass { [PrimaryKey, AutoIncrement, Column('_Id')]...
Dim Chris
1

votes
0

answer
34

views

Mongo DB Collection - Count values of an attribute

I have a mongo db with companies with the following data structure: {'Beschreibung': [], 'Branche': ['Doctor'], 'Homepage': 'http://www.doctorsdomain.de', 'Mail': None, 'Name': ['Companyname'], 'Ort': 'Doctors City', 'PLZ': '12345 ', 'StrHausnummer': 'Doctors Street', 'Telefonnummer': '1235345646',...
Chris_Du
1

votes
0

answer
24

views

css use different rem basis for an element

I have a section on my page that uses a third party stylesheet. The stylesheet uses rem values and it was used on a page that uses a html font-size of 62.5% However I have a fixed font-size of 14px on my html tag. Can I somehow use a different basis for the rem values within the section? This conten...
Chris
1

votes
0

answer
170

views

Jenkins gitlab merge request trigger builds branch commit instead of merge commit

We have the usual trunk, staging, production branches, and recently had to add a hotfix to them. The hotfix branch was created from the production branch, one commit was added, and then it was merged back into the trunk and staging branches by seperate merge requests in gitlab. The odd thing is that...
Chris Tanner
0

votes
1

answer
185

views

google-visualization-table-page-numbers background color change

I'm trying to change what I would call the footer background color where the google-visualization-table-page-numbers go. I would like the background color to extend the entire width of the table. I am hoping someone can help me find the correct solution.
Chris S
1

votes
0

answer
50

views

Species Distribution Model in R: Error Messages

I am running MaxEnt in R which is a species distribution model -- I am trying to run a 10 fold x validation on the data but keep getting two error messages: Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 1, 2, 0 And the warning message: In mean.default(sap...
Chris R.
1

votes
1

answer
88

views

Subscribing sequentially to a variable number of Observables in Angular 2+

Sorry if this was answered elsewhere, I tried to search but I'm not even sure what I'm looking for. Let say I have this object to work with: userRequest: { id: number, subject: string, ... orderIds: number[] ... } order: { id: number, ... clientId: number, productIds: number[] } client: { id: number...
Chris Lemire
1

votes
0

answer
101

views

Visual Studio 2015 Cordova build fail New project

I installed the latest node as I need it for different projects but somehow I cannot get any cordova projects to run. If I start a new blank cordova project It fails. I have cleared the cordova cache, installed npm globally and have installed cordova. 1>------ Build started: Project: BlankCordovaAp...
Chris
1

votes
1

answer
59

views

Removing span tags issue if text has encoded characters

I'm looking to remove span tags that wrap blocks of text in an in-browser editor but am having trouble if the text contains any sort of special characters like newline '\n' or encoded characters like   , • , etc. Here's my code that works on sentences without encoded characters function fnIgnoreT...
Chris G.
1

votes
2

answer
32

views

Sublime auto compile main.less when using partials

I have just started to use less with Sublime, I have setup less2css to autocompile .less files when they are saved and to ignore partials. I have a main.less which imports other .less files e.g. _global.less but this means every time I make a change to global I have to save it then go back into main...
Chris
1

votes
0

answer
1.3k

views

Capture Video with opencv, save to ffmpeg pipe and live stream

The goal is to stream an analysed live video over RTSP to some media server. To make the edits/analysis I use opencv, save the edited frames as JPEG in an FFMPEG image pipe and use the same FFMPEG to create a RTSP stream. Sorry if the terminology is not that accurate, I find it still quite confusing...
Chris

View additional