paul paul

18524 questions
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
1

votes
1

answer
77

views

Is there a way for Watchman to only process “closed/completed” files?

I'm using Node.js to start Watchman on Windows 2016 with a number of file type filters on a specific directory. This directory is being used for staging. Uploaded files will be routed to other folders depending on the filename. The problem that I'm having is Watchman is picking up files that are b...
Paul L.
1

votes
0

answer
132

views

JHipster: Login with email + password. Issue with cache

I have a problem with the cache when I login with email/password in my dev enviroment of a JHipster project. Here are the steps: In a new fresh project, I login with [email protected] user Go to account->settings and change the email to [email protected] and save the changes I logout and then I can login...
Paul
1

votes
0

answer
1.2k

views

managed-keys-zone ./IN: No DNSKEY RRSIGs found for '.': success

I am running bind9 in a centos vps and started implementing dnssec so I have signed zonefiles for my domains but the following output shows up in the logfiles every hour named[12181]: managed-keys-zone ./IN: No DNSKEY RRSIGs found for '.': success named[12181]: managed-keys-zone ./IN: No DNSKEY RRSI...
Paul Nemeth
1

votes
0

answer
1.8k

views

Can Autofill in an Android WebView be disabled?

I would like to disable Autofill in an Android WebView in Oreo but I cannot find a way to do that. I have tried AutofillManager.disableAutofillServices and cancel() in the app. I created an onAutofillEvent() listener in the app and it does not get called when Autofill is used in the WebView. Does...
Paul
1

votes
2

answer
818

views

What is the use of “items” property in MatMenu of angular/material2?

In the Angular material, MatMenu documentation https://material.angular.io/components/menu/api, the API has a 'items' property which is documented like an attribute of type QueryList to the MatMenu component. In the Angular documentation for QueryList, https://angular.io/api/core/QueryList, the live...
Paul Thomas
1

votes
0

answer
45

views

Hiding div classes when timer ends in Javascript

I have a timer script but I am having a few issues with it. Just a day ago, it was working perfectly fine, as intended. Now, the timer no longer hides the div class when it ends. Didn't change the HTML or JavaScript code at all, but for whatever reason it no longer removes the div class. Here is the...
Johnny Paul
1

votes
1

answer
550

views

Reading array fields in Spark 2.2

Suppose you have a bunch of data whose rows look like this: { 'key': [ {'key1': 'value11', 'key2': 'value21'}, {'key1': 'value12', 'key2': 'value22'} ] } I would like to read this into a Spark Dataset. One way to do it is as follows: case class ObjOfLists(k1: List[String], k2: List[String]) case cl...
Paul Siegel
1

votes
1

answer
535

views

iOS Detect setting of system “Settings/Cellular/Cellular Data” master switch?

As of iOS9, the capability to check the setting to enable/disable use of cellular data for your app (Settings/Cellular/AppName) is available using Apple's CTCellularData class. The following code will set cellularDataRestrictedState when it is run initially and then set it and log whenever it change...
paul king
1

votes
1

answer
72

views

Angular 1.x component bindings don't update after logging out and logging back in

I've got a weird edge case scenario regarding Angular 1.x component bindings on an application with really poor front-end architecture. I have a base controller called searchController, and all its child components are elements on searchController.html. On searchController.html there are five compon...
Les Paul
1

votes
1

answer
115

views

How to activate a Jaalee IB002M beacon

I've bought 2 Jaalee IB002M Beacons at BeaconZone and can't activate them. I've downloaded the Jaalee app from iTunes onto my iPad Pro. I have the choice of adding 'Jaalee', 'Jaalee 1S' or 'Jaalee 2' beacons. I've tried all three with the following procedure: Choose the beacon type ('Jaalee', 'Jaale...
Paul Sinnema
1

votes
1

answer
477

views

How to display 2d arrays with tkinter?

I am trying to make a maze game and I am using 2d arrays to store my mazes as functions, as I thought it would be the easiest solution. I don't know how to pack each function into a tkinter window so that the player can choose a place to move to by clicking a button (haven't gotten to that yet). My...
Paul Brown
1

votes
0

answer
22

views

Calling 3rd party web services from inside a ASP.Net webservice without delaying response to the originating client

The web application I'm working on receives HTTP POST data from an external system run by another company, which essentially tells us when one of our customers performs a particular action. At present, we log the data, update relevant statuses, and it works nice and quickly. I now have to integrate...
Paul T
1

votes
0

answer
357

views

Unity capsule collider not working while animating

I have a fairly simple setup that involves multiple capsule colliders to detect the collision. But while punching opponent collision detection is working but attackers hand is moving through opponent body. WHAT I DID TO SOLVE THIS PROBLEM Reduced speed of the animation. Non kinematic rigidbody is...
paul p
1

votes
1

answer
203

views

Excel VBA to send email reminder every 28 days from a Date

I have the below code already that works but I guess there is a much better way than having lots of if statements going up in 28 days. Could someone please show me how to say Every 28 days send email based on date created? Thank You! Sub Current28() ' ' ' 'Dim Answer As VbMsgBoxResult 'Answer = Msg...
Paul C
1

votes
0

answer
36

views

Get maven plugin property in scala class

I´ve been looking in google but I cannot find a work solution. I´m using Maven where I´m using the plugin com.bazaarvoice.maven.plugins com.bazaarvoice.maven.plugins process-exec-maven-plugin 0.7 Start-Service-discovery-Mock pre-integration-test start ${skipStartService} start-service-discovery-...
paul
1

votes
1

answer
78

views

Facebook SDK Login Issue

I am using facebook login in my application. In fb developer settings I added developer hash key and release hash key. When i tried to login the error shows Invalid key hash. Does not match any stored key hashs. Then I added the shown key hash to the settings. But it is not possible to add key hash...
Cecil Paul
1

votes
0

answer
55

views

Using “ember new” missing package error

I use ember-cli to create a new Ember application. Command ember new my_app_name --skip-git Encounter errors: error code E404 error 404 Not Found: @ember/[email protected]^0.7.9 verbose exit [ 1, true ] My version: $ ember -v ember-cli: 2.16.2 node: 4.7.0 os: linux x64
Paul Stewart
1

votes
0

answer
204

views

Running Kestrel in 64-bit mode with ASP.NET Core MVC web apps

With a ASP.NET Core MVC web app, is there a way to run the Kestrel web server in 64-bit (or AnyCPU) mode? If I change my app's target platform from the default x86 to either x64 or AnyCPU, it no longer runs, producing a System.BadImageFormatException when trying to start Kestrel (Microsoft.AspNetCor...
Paul Lambert
1

votes
0

answer
105

views

In Java how do I create a structured tree using FileVisitor

Given a starting path I want to create a tree like object representing the filesystem using Java, showing all the folders down to level x but not ordinary files. . So using FileVisitor I know that every time just before Im going to browse a new subfolder that the preVisitDirectory() method will be c...
Paul Taylor
1

votes
1

answer
50

views

Alternative to findIndex for navigating and editing multi-layered object-arrays

I have an object that looks something like this: { userId: 111, notes: [ { name: 'Collection1', categories: [ { name: 'Category1', notes: [ {data: 'This is the first note', id: '1238123-12931'} ] } ] } ] } In Mongoose, I need to push/delete/edit notes. For push, I need to navigate to the notes in th...
John Paul Penaloza
1

votes
0

answer
90

views

Tensorflow Kubernetes Integration Tutorial fails on Ubuntu Xenial

I am following the 'Serving Inception Model with TensorFlow Serving and Kubernetes' tutorial from the tensorflow.org website. When I get to loading and exporting the model using [email protected]:/serving# bazel-bin/tensorflow_serving/example/inception_saved_model --checkpoint_dir=inception-v3 --ou...
Paul Rousseau
1

votes
0

answer
93

views

Can I include the ADB command line tool inside the bundle of my MacOS app?

I would need to include ADB command line tool inside the bundle of my MacOS Cocoa app. I've two questions: Is this an infringement of Google/Android ADB copyright? There are technical drawbacks/problems addressing ADB calls inside the bundle? Thanks
Paul Claude
1

votes
0

answer
30

views

WordPress: user meta won't grab PHP

I am trying to get this meta data to display: public static function user_register($user_id) { //The user_id is grabbed from wordpress and this is run after user //registration, echo does display correctly the user_id as 806 (example) //$data = empty.. which makes no sense!! $data = get_user_meta (...
Paul Scheller
1

votes
0

answer
652

views

Running an ASP.NET Core Pipeline using Azure Functions

This was posted back in August https://social.msdn.microsoft.com/Forums/expression/en-US/c3e9f882-541f-48a2-a856-956ad3383f67/running-an-aspnet-core-pipeline-using-azure-functions He talks about using a catch-all function and then somehow running the HttpRequestMessage through Asp.Net Core How can I...
Paul Shell
1

votes
2

answer
163

views

How do I search a model by specific fields in Rails with Sunspot/Solr?

The gem and version I am using for sunspot is: sunspot_rails gem version 1.2.1 rails version 2.3.18 The query I am trying to search with and search method is something like this: query_params = { :name => 'Joe Smith', :email => '[email protected]' } How can I search a model with sunspot so that it...
Paul Lee
1

votes
2

answer
42

views

Elastic 2.3.4. Node Startup Quiet Failure

We are using a 5 node cluster hosted in Google Cloud (Ubuntu 16.04 LTS) and we noticed that one of the node's disk space was at 90%+ so we shut down the node with: sudo service elasticsearch stop Then stopping the instance in the GCP console. After upgrading the node's disk space, we tried starting...
Geoff Paul Bremner
1

votes
0

answer
72

views

Decouple Service and Model in a Framework

In my framework I have a class PhonecallerService. Currently the users of my framework have to create a new PhonecallerService for each person they want to call, because the service depends on PhonecallerCredentials. The thing is, users should not call the PhonecallerService::callPhone method. They...
Paul White
1

votes
2

answer
1.6k

views

in pytorch, cuda.is_availbale(), but every operation fails with out of memory

I've set up a new virtual machine (on GCP) with a K80 GPU on Ubuntu 16. Followed installation instructions for the CUDA toolkit 9.1 nvidia-smi returns correctly: NVIDIA-SMI 390.12 Driver Version: 390.12 ... in pytorch, cuda.is_available() returns True, but any operation fails: torch....
Paul
1

votes
1

answer
179

views

Using lock in Hangfire executed ASP.Net code

I am using hangfire in an ASP.Net MVC project to manage longrunning background job. I am trying to use lock statement block for database operation. Here is my lock statement code- public class LockedTransaction { private Object thisLock = new Object(); public LockedTransaction() { } public void Upd...
s.k.paul

View additional