jason .

13946 questions
1

votes
1

answer
41

views

How can I store a copied google document element?

My code currently searches for a predefined start tag in google document, and locates a corresponding ending tag. The position of the tags is retained in a variable. Next the code runs through and copies all of the elements between the tags into a second google document. This works as expected. Ho...
Jason Allshorn
1

votes
2

answer
1.2k

views

How to monitor Elastic Stack without X-Pack?

Can we monitor the elastic stack 6.0 and above(like elastic search..) without using the X-Pack?As we know many of the Features like security, machine learning, graph APIs don't be supported under BASIC(free Licence). So I want to know if there are any APIs, without Licence limitation, can be used t...
Jason
0

votes
0

answer
5

views

Finding an O(log n) stretch tree in a nxn grid graph

Describe a O(log n)-stretch tree in a n × n grid graph. For one construction, it might be convenient to have n be of the form n = nl = 2(nl−1)+1, and n0 = 1. You may assume this. (In a grid graph, you have an n × n array of nodes where each vertex is connected to the vertices above/below/to the...
Jason
0

votes
0

answer
4

views

What are the correct tags for ASP.NET Core Model Binding to dynamic elements created by JavaScript

I'm using client-side JS to create form elements so the values are sent on a POST. I have a simple C# object as follows: public class GroupModel { public string GroupId { get; set; } public string GroupName { get; set; } } In my Razor page's controller code I'm using model binding: [BindProperty] pu...
Jason Shave
1

votes
0

answer
156

views

Can't run cordova run android in Ionic project

I'm having an issue running cordova run android in my Ionic project. I've uninstalled and reinstalled Cordova, Ionic, Gradle, and Android Studio, yet I still get this following error. FAILURE: Build failed with an exception. Where: Script 'path/platforms/android/cordova-android-play-services-gradle-...
Jason
1

votes
0

answer
59

views

Redeploy Segments option missing in Sitecore 8.2

I'm trying to fix an issue where the Sitecore marketing dashboard is throwing errors. The first suggestion in the kb and elsewhere is to go to localsitecore/sitecore/admin/RedeployMarketingData.aspx and select 'Redeploy Segments' but that option isn't available. There is a section to Redeploy Maps,...
Jason Davidson
1

votes
0

answer
44

views

Why does CodeTypeReference truncate my type with generic parameters?

I'm trying to define a base class of type 'foo' in CodeDom, but it comes out as 'foo
Jason Hernandez
1

votes
0

answer
61

views

msaccess.exe not closed on remote machine

I try to find answer on this topic but still fail to resolve my question. I use a batch file to call a simple macro which only write a log into an access table. 'C:\Program Files (x86)\Microsoft Office\Office15\MSACCESS.EXE' 'G:\Work***.accdb' /X mymacro following is the vba code: Public Sub TestSes...
jason zhang
1

votes
1

answer
32

views

Creating an Efficient (Dynamic) Data Source to Support Custom Application Grid Views

In the application I am working on, we have data grids that have the capability to display custom views of the data. As a point of reference, we modeled this feature using the concept of views as they exist in SharePoint. The custom views should have the following capabilities: Be able to define wh...
Jason Richmeier
1

votes
0

answer
102

views

Temporary file not found when uploading to a different Google Cloud bucket in a cloud function

In a Firebase cloud function I download an image from one bucket, create a temporary file (to make modifications) and then attempt to upload it to a different bucket. When doing so, the logs show an ApiError: Not found exception when attempting to upload the temporary file. I can upload the temporar...
Jason Parsons
1

votes
0

answer
35

views

Terminating all sub-processes after an event

I have a Python multiprocessing scenario which I have simplified for my question here. There are x number of jobs to be processed in 2 parts. In my code, the 2 job parts are actually HTTP requests where part 2 is dependent on the results of part 1. Finally, there is a 3rd part that simply reports on...
Jason
1

votes
0

answer
712

views

Getting error “Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes…”

I've looked around other SO questions and can't quite find one similar to my issue, so here goes. I created a react-redux site using Microsoft JavaScript Services. I wanted to manually add a component to the project, just so I can get my head around how things worked. I created a new .tsx file with...
Jason Evans
1

votes
1

answer
47

views

iOS page with scrollView randomly not loading contentView correctly

I have a page that has been working fine prior to Xcode 9.2. After updating to 9.2 the page will randomly not load correctly. See images below. The one on the left is how the page should look, but sometimes I get the page on the right. Image of what is happening My contentView is wrapped inside...
Jason
1

votes
1

answer
396

views

Installing tensorflow using pip within anaconda fails

I have a fresh Anaconda install (Python 3.6) and am trying to install tensorflow via pip (as described here) on Mac OS X High Sierra. Specifically, I've run: pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.1-py3-none-any.whl Output is the fol...
Jason McEwen
1

votes
1

answer
121

views

Concatenate immutable ruby strings with codepoints

Prior to Ruby 2.3, which introduced optional frozen strings, a string could be appended to using the shovel operator ('
Jason W
1

votes
1

answer
40

views

Access to model instance up the where chain in Rails

Is it possible to, within the record found through an association, retain access to the related model instance which found it? Example: class Person < ApplicationRecord has_many :assignments attr_accessor :info_of_the_moment end p = Person.first p.info_of_the_moment = 'I don't want this in the db' a...
Jason Galuten
1

votes
0

answer
162

views

ASP.net Identity management with Azure, in Web Form

I have a Webform ASP.net (in VB.net) that I want to add identity management too. I have added code that allows for the registration of users. But, I am stuck on how to log a user in. My application uses SSO with Azure Active Directory. What I would like to do is, after the user Authenticates wit...
jason
1

votes
1

answer
46

views

Controlling .msg formats through VBA

I've an Access database that records and saves email on the mailitem_send event. Saved email looks like: I want email to appear like an already sent email, like: Anything I've tried doesn't change how the file is saved. EmailAttachment.SaveAs Me.EmailFileLoc & Filename, OlSaveAsType.olMSG
Jason
1

votes
0

answer
286

views

Adding Multiple Objects in Unity ARKit

I want a user to place multiple objects in a room (like the IKEA app). I'm using Unity3D ARKit plugin. Currently, when I tap the screen, a new object is placed where I tap and the previous object is destroyed. How can I keep every object in the scene after I add them?
Jason Nelson
1

votes
0

answer
662

views

I don't see my track trace message in Application Insights

I have a simple console app that tracks trace. However, it's not logging the trace message in application insights from Azure web portal. What did I miss? I've looked at the https://docs.microsoft.com/en-us/azure/application-insights/application-insights-console from docs.ms.com, and couldn't find a...
Jason Tang
1

votes
0

answer
49

views

How to prevent value can not be Null during c# SQLBulkcopy Processing

I am processing a CSV file using ASP.NET C# and it works if I assign 0 to fields that = ''. But if I try to replace with ' ' or '/t' then I get a value can not be Null when inserting into the database. Here is the C# code in question: while (!csvReader.EndOfData) { var fieldData = csvReader.ReadFiel...
Jason
1

votes
0

answer
84

views

Grafana unable to load metrics from latest version of Prometheus

Initially I was using Prometheus version 1.1.1 to monitor my docker nodes so that I could get Resource monitoring of my Kubernetes cluster. With version 1.1.1, my prometheus.yml file looks like : - job_name: 'docker_containers' metrics_path: '/metrics' tls_config: insecure_skip_verify: true static_c...
Jason Stanley
1

votes
2

answer
439

views

Efficient fuzzy string comparison over thousands of text files

I need to search several thousand plaintext files for a set of names. I'm generating trigrams to retain context. I need to account for minor misspellings, so I'm using a Levenshtein distance calculation, function lev(). I need the final result to return the name with a hit, the filename the hit w...
Jason Downey
1

votes
0

answer
32

views

Firebase clousure is skipping itself for no reason

I am trying to observe single event via firebase. The address is correct there is no mistake that I am aware of. Please help me out. It skips whole code that is posted below. Database.database().reference().child('users').child(messagesWithId[indexPath.row]).child('metadata').observeSingleEvent(of:...
Jason Krowl
1

votes
0

answer
74

views

How to find the origin of a browser event

My web application started firing off a ton of events while idle and I've been trying to hunt down who has been firing them. I received a Chrome performance profile from a client and discovered that the events are being fired from the root of execution. This makes me believe that the events are comi...
Jason Lee
1

votes
1

answer
131

views

Debounce timer not restarting when input is changed

I am trying to create a date input that automatically updates the inputted value to the end of the selected month. The problem I was having was when I ran this first bit of code (below) was that if the user tries to manually change the date by typing in a date, they are unable to because the input i...
Jason
1

votes
1

answer
59

views

Combine Linq join

How can I combine these together? job.Result?.Name needs to equal Scene7ImageSet1 or Scene7ImageSet2. (from job in jobs join product in products on job.Result?.Name equals product?.Scene7ImageSet1 select product.MediaSet = job.Result).ToList(); (from job in jobs join product in products on job.Resul...
Jason Jay
1

votes
1

answer
745

views

NameError: name 'process_button16' is not defined

I am getting NameError: name 'process_button16' is not defined error when running the following code. It also turns on the LEDs without pushing the button....that shouldn't do that... I am trying to implement a button press action using an app in appdaemon for Home Assistant. I'm a former developer...
Jason
1

votes
0

answer
93

views

Dapper Multi-Mapping second object empty

I'm attempting multi mapping with dapper, but my lineitems are not returning any values. Order returns back as expected. I'm just not getting any values for LineItems and I have verified in the database/sproc there should be data. I'm using an interface for LineItems....could that be the issues? pu...
Jason Jay
1

votes
1

answer
29

views

Whats the best way to persist state in a node module?

I'm writing an auth module that contains several functions so my server can authenticate with an oAuth2 system using client_credentials. In the module I want to cache / save the credentials since they don't expire for some time (I'll refresh as needed). Whats the best way to store the credentials?...
Jason Leach
1

votes
0

answer
49

views

Eddystone UID - Android Optimal FavIcon

I have Eddystone UID functioning correctly for nearby Android phones who have Bluetooth enabled. In other words, a notification appears in the notification window with a brief call to action (or as specified) along with the favicon pulled from the linked website. The issue is that the favicon is ver...
Jason
1

votes
1

answer
88

views

SMS-MMS Class Unexpected Results

I am having some issues with this sms-mms class, the issue is it returns 6x the data expected. It displays 3 of the previous messages and then 3 of the current, I just need the 1 current and am unsure how I am ending up with the 6...Like so; V/Debug: Observer Started V/Debug: Received SMS V/Debug: F...
Jason Edel-Brock
1

votes
0

answer
888

views

Module not found: Error: Can't resolve 'dgram' in node-ssdp

After installing rokujs via npm, Can't seem to get past this error: The package is installed correctly. No other errors reported. Any ideas? ERROR in ./~/node-ssdp/lib/index.js Module not found: Error: Can't resolve 'dgram' in 'C:\VisualStudio\Repos\App\App.PWA\node_modules\node-ssdp\lib' @ ./~/node...
Jason Smith
1

votes
2

answer
50

views

Name Resolution of TRUNCATE TABLE in SQL Server 2008 R2 vs SQL Server 2014

We experienced an error in our code that was executed in SQL Server 2014 which we do not encounter in SQL Server 2008 R2. Our code is like this: IF EXISTS ( SELECT 1 FROM master.dbo.sysdatabases WHERE name = N'WebDB' ) BEGIN TRUNCATE TABLE [WebDB].[dbo].[webtable] END The Truncate Table command wil...
Jason
1

votes
1

answer
188

views

Json.NET and .NET Core WebApi - Prevent string values from being persisted in process memory

I have an API written in .NET Core 2.0 for dispensing JSON Web Tokens (JWTs). This is done via a POST request with a very simple model. public class TokenRequest { public string Username { get; set; } public string Password { get; set; } } The particulars of the API aren't important -- the goal here...
Jason E
1

votes
1

answer
175

views

Using Drools with large (1 million or more) rules

We are evaluating Drools for a medical-related software application. Our initial rule set will be about 25k, but over time that rule set will grow to well over a million. This is how a typical rule will be structured: when item contains the codes '1234' AND '5678' AND does not include 'ABC123' the...
Jason R
1

votes
3

answer
369

views

Highlighting a table row when using css hover

I'll try to be as specific as possible. I have a table that highlights rows perfectly when the mouse hovers over them using all CSS. I'd like the user to be able to then click on a row and keep it highlighted until another row is clicked. Below is some sample code and CSS I'm using to do the highl...
Jason Beck
1

votes
1

answer
2.6k

views

PDF to Json using PDFX Python library

I am trying to convert .PDF's to JSON files in order to scrape the information out of them easier. I can get the metadata from the .PDF file, but it only has the first page or what looks to be the parameters for the .PDF but it doesn't list the actual data. Below is my code. It is very simple as...
Jason Jabbour
1

votes
2

answer
333

views

Accessing Jhipster Principal in ngOnInt

First let me say thank you to all the JHispter developers and also that this project is amazing. I have a Jhipster 4.14.0 microservices app that uses JWT. I am trying to replace the menu with one from PrimeNG. This works fine, but I need to access principal.isAuthenticated() and principal.hasA...
Jason Long
1

votes
0

answer
91

views

How to match color scheme of spatial lines, circle markers in R leaflet

I'm wondering how I can color GPS locations and tracks that are created from a sequential order of points in leaflet. I've figured out how to color the circle markers by a grouping variable (TagID), but I'm not sure how to do the same for SpatialLines based off of my GPS locations. Load the librari...
Jason

View additional