paul paul

18553 questions
1

votes
1

answer
361

views

Angular : Updating property of passed object in child component updates parent component, updating its value doesn't, why?

There's a behavior in Angular I don't really understand. Let's say I've two components : a parent and a child. The parent component passes data to the child. In the child component : When properties of the passed object are updated, the object updates both in parent and child component. When the obj...
Paul
1

votes
1

answer
330

views

How to use AWS CLI with Digital Ocean Spaces?

How to use AWS CLI with Digital Ocean Spaces? Is it possible? I tried to add my key id and secret to .aws/credentials but I got: An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided does not exist in our record
paul
0

votes
0

answer
4

views

How to configure ShinyProxy Google OpenID logout-url?

I'm trying to add a sign out button to my ShinyProxy app: actionLink('logout', 'Sign Out', onclick = 'location.href='https://housemate.pgstevenson.com/logout';') by adding the logout url to my application.yml in the following format (per the documentation): logout-url: https://YOUR_AUTH0_DOMAIN/v2/l...
Paul
1

votes
1

answer
41

views

Unable to render react-native Component after fetching data from firebase

I am able to fetch data from the Firebase API. I am able to set the state into the data received (I can see in Console). But when I am unable to render a Component (passing props as fetched data). Here' my code: class NewMeals extends Component { constructor(props){ super(props); this.state= { data:...
Saumay Paul
1

votes
2

answer
29

views

What is wrong with my Elastisearch query?

I need to make multi_match and bool query at once, but query below doesn't work :( When I use them separatley, they working perfect. { 'query': { 'multi_match': { 'query': 'kotlety*', 'fields': [ 'name' ] }, 'bool': { 'filter': { 'term': { 'status': 2 } } } }, 'size': 24 } response is: { 'error': {...
Paul
1

votes
1

answer
35

views

R iterate through list of dataframes to create new column

I have a list of dataframes DFList. For every dataframe in DFList i would like to create a new column X4. Small Example X1
Paul
1

votes
1

answer
32

views

Move DbSet<TEntity> properties to a Separate Class in Entity Framework Core

Here is what I have currently in MyContext class public class MyContext:DbContext { public DbSet Countries { get; set; } public DbSet States { get; set; } } What I want is to place all these DbSet properties into a separate file and just have one statement on MyContext class to add all...
Bipn Paul
1

votes
1

answer
625

views

phpUnit - Functions in test class that aren't tests

I'm doing some speed comparisons between reports in phpunit, as I am trying to figure out an optimization problem. I have a couple of functions that aren't necessarily tests, but don't belong in the functionality of the project either. I am using them in order to make my tests small and readable. Th...
Paul Stanley
1

votes
1

answer
325

views

Call to undefined function cur_init()

I've seen plenty of these both here on stackoverflow and in other places - by try as I might i am still getting this error. Any way - useful information The Code I am trying to execute is as follows Windows 7 (64bit) IIS Express PHP.INI executing phpInfo() gives the following information. Php Versio...
Paul S Chapman
0

votes
0

answer
5

views

cannot import name 'URLPatternsTestCase' from 'rest_framework.test' , can anybody please tell me how to fix this error

cannot import name 'URLPatternsTestCase' from 'rest_framework.test' from django.conf.urls import include, url from rest_framework.test import APITestCase, URLPatternsTestCase from readEstateApi import views from django.core.urlresolvers import reverse class AccountTests(APITestCase, URLPatternsTestC...
Raja Paul
1

votes
2

answer
757

views

Why can't I see any console or trace output when running load tests in VS 2015?

I've got DEBUG and TRACE defined. I've tried Trace.WriteLine, Debug.WriteLine, Console.WriteLine, and TestContext.WriteLine. In the Test Results window, I've added columns for Output (StdOut), Errors (StdError), Debug Trace, and Stack Trace. I've tried all the 'Show output from' options available...
Paul Kienitz
-1

votes
0

answer
13

views

How to solve 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000

I have a custom control created in Xamarin Forms Android. The control have no resources or drawable or resource.designer. When used the control in the sample on swiping or on touch getting the below error in the output logs. 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000. 04-23 12...
Paul Anderson
2

votes
1

answer
112

views

Spark AnalysisException when “flattening” DataFrame in Spark SQL

I'm using the approach given here to flatten a DataFrame in Spark SQL. Here is my code: package com.acme.etl.xml import org.apache.spark.sql.types._ import org.apache.spark.sql.{Column, SparkSession} object RuntimeError { def main(args: Array[String]): Unit = { val spark = SparkSession.builder(...
Paul Reiners
1

votes
2

answer
13

views

how to implement level order print for MaxHeap

I'm currently making a MaxHeap program and I need to print my heap in level order. How can this be done? Do I create a method to print the heap in level order inside of my heap class or would I do it in my main class? I know for like my binary search tree project i used iterative methods and called...
1

votes
1

answer
3.8k

views

ReactJS typescript error Parameter props implicitly has 'any' type

Following, and adapting the tutorial here, I've hit a snag when trying to define a function to render some HTML. function Toolbar(props) { return ( props.onClick()}>Refresh ); } This errors in Typescript, because props is not defined. I understand why I'm getting the error, but what I'm missing is...
Paul Michaels
1

votes
2

answer
448

views

Xamarin Forms - how to display/Bind List in ListView?

I'm creating a cart where i store all of my orders , How to display List in ListView? i tried doing these codes CustomerOrder.cs public class CustomerOrder { public string menuname { get; set; } public string price { get; set; } public string qty { get; set; } public string mcode { get; set; } } pub...
Jeremy Paul
1

votes
1

answer
51

views

What are allowed symbols for naming perl5 modules and subroutines?

Is it [A-Za-z] and :: for module names and [A-Za-z_-] for subroutine names ? P.S. I'm writing regex for parsing some debug output.
Paul Serikov
1

votes
4

answer
156

views

c - const pointer to const data (gcc - duplicate 'const' declaration specifier)

I am programming a module on a microcontoller for interfacing it's EEPROM to receive some user data from there. Since you can not overwrite the EEPROM easily I want to return a const pointer to const data. Now my functions prototype looks like this: const struct userData const* getEEPROMDataAtIndex(...
Paul Würtz
1

votes
4

answer
50

views

Conditional on route in HTML file issue

I found this code for detecting the current route but it does not seem to work in Angular 7. Here is the code: app.component.ts import { Routes } from '@angular/router'; ... constructor(private router: Routes) {} app.component.html We are in someroute How can I check the route in the .html of a comp...
Paul Zone
1

votes
3

answer
84

views

How to check if list contains all string of another list

I have a object list. That object contains a string List. Like that: public class ObjectA { ... IList StringList; } And I have a list of words to search on StringList. I need to search on a ObjectA list, and find all ObjectA that have all words (parts of all words). So I did that: List myObjectList...
Paul
1

votes
2

answer
40

views

What does “%{__install}” mean in terms of rpm spec?

Maybe it's very stupid question but I can't find out the answer. I've neverr tried to write a spec file for rpm package until today. I found an example of spec and I see a lot of %{__install} thinks in the %install section. As far as I understand by the syntax it's a king of makros. But there is no...
Paul
1

votes
0

answer
9

views

Why does Hazelcast expect multicast when I enabled tcp-ip?

I'm trying to set up a 2 machine Hazelcast cluster, and can't use multicasting. Here's my xml file I'm using for configuration: 5701 10.18.7.4 10.18.14.63 And I'm instantiating Hazelcast as such: Config config = new FileSystemXmlConfig(xmlConfigFile); HazelcastInstance hz = Hazelcast.newHazelcastI...
Paul
1

votes
1

answer
33

views

Fuseki 2 FROM clause

I successfully set up Fuseki 2 and uploaded an owl file with some triples in to a dataset called fuseki_test. I can use http://localhost:3030/fuseki_test/query to successfully run this query: SELECT ?subject ?predicate ?object WHERE { ?subject ?predicate ?object } I would like to use a FROM clause,...
Paul Cuddihy
1

votes
1

answer
28

views

Scala class isn't deserialised correctly by Angular HttpClient

I have the following trait and classes in Scala: sealed trait Algorithm { val name: String val formula: String val parameters: Seq[AlgorithmParameter[Any]] def enhanceAlgorithm[T](algorithm: T): Unit } case class LinearRegressionAlgorithm(override val name: String, override val formula: String) exte...
Paul
1

votes
1

answer
63

views

Send and receive simultaneously with TIdTCPServer

It is always advised to perform all the sending / receiving tasks in OnExecute event handler of TIdTCPServer, but I do not understand following: How to wait for a specific sequence on input and at the same time send some data to the same client? I need not a command-response sequence, but I need to:...
Paul
1

votes
1

answer
35

views

Is it possible to reorganize the default CEs in another Groups?

I would like to group several default typo3 CE into one group. Is it possible?
Paul Kamma
1

votes
5

answer
748

views

Regex search and replace where the replacement is a mod of the search term

i'm having a hard time finding a solution to this and am pretty sure that regex supports it. i just can't recall the name of the concept in the world of regex. i need to search and replace a string for a specific pattern but the patterns can be different and the replacement needs to 'remember' what...
Paul Sasik
0

votes
0

answer
11

views

Angular-7 + Nativescript + Ionic-3 from one master project and share codes across them

I want to ask about a concept and the best possible way to implement that. I am going to create a project that will serve a web version using Angular 7 and mobile apps using nativescript and Ionic+cordova (differently). I am going to create one master folder in which the three versions will be locat...
Nabarag Paul
1

votes
2

answer
9.9k

views

Gap between JPanels in GridLayout

The code below produces nine individual JPanels in which are 9 buttons. The nine JPanels are arranged onto a base JPanel using GridLayout. This base JPanel is then placed onto the ContentPane using Border Layout. I'm using borders for the JButtons and each individual JPanel to clearly define thei...
Paul
1

votes
1

answer
207

views

Fortran Extensions in >=Python 3.5

I am attempting to build Python extensions that include f90 code for Python 3.5 and newer. Previously, I was able to use the MinGWPy project to build extensions with gfortran. However, MinGWPy doesn't support Python 3.5 and newer, and has recently been discontinued. How can I build Python extensions...
Paul Wells
1

votes
2

answer
278

views

Find multiple max in a data (plot)

I have a list with Y values. If I plot it I get this: There are three dominant peaks visible. Question: Is there a way, in Python, to find the n-th most dominant spikes in a data list and print their x-position (in the list)? I need to take into account spikes with very small distance to each othe...
Paul G.
1

votes
2

answer
761

views

Unexpected implicit cast to LayoutParams

This is probably something really simple, but I'm an Android newbie. The code debugs fine, but when I try to generate a signed APK, I get build errors. Using Android Studio 3.0.1 Error: Unexpected implicit cast to LayoutParams: layout tag was FrameLayout [WrongViewCast] This bit is where the error i...
Paul Smith
1

votes
1

answer
35

views

Sending variable with watchConnectivity but can't get the picker in the watch app to update

I've been trying to send a variable to the watch from the iPhone. I've managed to send it with watchConnectivity but I can't get the picker in the watch app to update with the new variable I sent through. Here's the code for the watch app: import WatchKit import Foundation import WatchConnectivity v...
Paul B
1

votes
1

answer
427

views

Trouble catching exception on Azure Service Bus SendAsync method

I'm trying to use the following code to setup a failure condition, namely were there is no network path available, so the code shouldn't be able to send to the Service bus at all. I know this because I disable my network ports when I test. I am still having trouble with the Async nature of the code...
Paul Duer
1

votes
0

answer
46

views

Neither recordset or SP approach to validating salted hashbyte fields working

UPDATE: ASP page still always returns a '1', even when correct password is supplied, but when stored proc is run in SSMS, it works properly. I added SELECT statements for the fields being tested and modified the running of the stored proc to return a recordset when executing the command. Set rs2 =...
Jan Paul
1

votes
1

answer
348

views

Smooth mouse movement in C++

I was wondering if anyone could help me with some code, essentially I've made a small function that moves the mouse cursor relative to the mouse cursor's current position, however the cursor teleports; I'd like to find a way to make it 'glide', smoothly so it looks a little more natural. Here is the...
Paul Blunt
1

votes
0

answer
315

views

Mediacodec for decoding H264 stream failed to create on Nexus 6P

I have an application (decoding module) which fails to create mediacodec for decoding H264 encoded stream while running on the Nexus 6P. But it perfectly works under Google PIXEL XL phone. I am also giving a small snap of the error I am getting while I debug it using android studio logcat. Any Help...
MSD Paul
1

votes
2

answer
36

views

User inputs multiple values and “skips Validation”

I am just recreationally coding with a little program of mine and I discovered that I could effectively skip my validation by entering multiple values and placing a space in between them. For example, a snippet of my code is as follows: while(counter == 0) { try{ int choice = input.nextInt(); System...
Paul
1

votes
0

answer
46

views

How to add tarball (Cardinality package) to dependency with stack?

I have mylib library package and myapp application. I want to use Cardinality package in mylib which is available only as tarball. So, I added to mylib stack.yaml: packages: ... - location: https://hackage.haskell.org/package/Cardinality-0.2/Cardinality-0.2.tar.gz extra-dep: true Then I add to mylib...
Paul-AG
1

votes
2

answer
203

views

GCP App Engine Access to GCloud Storage without 'sharing publicly'

I would like to know how to grant a Google Cloud Platform App Engine project permissions to serve content from Google Cloud Storage without setting the Google Cloud Storage bucket permissions to ‘share publicly'. My App engine project is running Node JS. Uses Passport-SAML authentication to authen...
Paul Trotter

View additional