Keith

0

votes
2

answer
13

views

How can you add entries, and retrieve, alter, or remove values from specific keys in any nested dictionary without recursion?

I was working on a cool project I am doing in Python and I needed a way to do this without recursion because this would limit the size it could be by limiting the amount of times the loop could go through it (max recursion depth) so the function could work on a nest dictionary of any size. How can I...
Keith Cronin
0

votes
0

answer
4

views

PDF Accessibility | 'Title - Failed' Error in Acrobat Pro in PDF generated using XSL-FO

I'm creating a PDF file from XML using Apache FO. When I run an accessibility check on this file using Acrobat Reader Pro DC (version 2019.010.20098) the report indicates 'Title - Failed'. When I look at the document's metadata in Acrobat (File --> Properties --> Description tab) I can see that the...
Keith Harrison
12

votes
3

answer
5.9k

views

How Do I Backup Azure Tables and Blobs

I store data in Azure Storage tables and blob storage. I would like to automatically backup my data to protect against accidental data corruption by users or by a software issue. There isn't a good solution for this from Microsoft and, while there are paid solutions for automatic backups, it seems...
Keith Holloway
0

votes
0

answer
2

views

Is there a URL method to validate that swaggers mock mode is turned off when being used with node

Can you ping a completed server from a browser with a request that will validate that swaggers mock mode is turned off? The server is using swagger through node.
Keith
1

votes
1

answer
2.2k

views

Avoiding “Request matched multiple actions resulting in ambiguity” error in ASP.Net Core

I am trying to do something simple and trivial - or at least I thought. I am trying to write a base class that can be inherited by each micro-service project I spin up. The point of this base class is to test connectivity from HTTP all the way through to SQL. It is NOT enabled in PROD. This is one...
Keith Barrows
1

votes
1

answer
992

views

Android RIL socket and phone calls encryption?

Now I'm testing something in Android phone calls encryption. I have Hook some method in RIL.java by using Xposed framework if ( lpparam.packageName.contains('com.android.phone')){ XposedBridge.log('damowang Loaded app: ' + lpparam.packageName); findAndHookMethod('com.android.internal.telephony.RIL',...
Keith.L
1

votes
1

answer
523

views

Counting values in a range only if a condition outside the range is met

I have a table of data and want to count how many times a string shows in a range, so I'm doing =COUNTIF(C2:R100,'APPLE') and that counts how many times 'APPLE' shows up in the range C2 through R100. That works great. However, I have another column X that has percentages for each row and I want to o...
Keith
1

votes
2

answer
1.3k

views

How to get Knockout to read value from hidden input

I have a form with a hidden input in my MVC application whose value I want read by Knockout. Unfortunately the observable function in Knockout REPLACES the original value in the DOM with whatever value is specified within the parenthesis so that self.title = ko.observable() changes the value of th...
Keith Harris
1

votes
1

answer
294

views

What application makes lots of HTTP OPTIONS requests?

I have an IIS/MVC.Net application that has recorded thousands of action-not-found exceptions. When I investigated these it appears that they are all HTTP OPTIONS requests to an MVC action that only supports GET. This action allows caching and returns minified CSS or JS content. Within the applicatio...
Keith
1

votes
1

answer
186

views

EasyMapping do not map CoreData one to many relationship objects

I use EasyMapping library for object unmarshalling from JSON to my CoreData objects. Object Balance has to-many relationship with Transaction, this is my nsmanaggedobject class: class Balance: NSManagedObject, EKManagedMappingProtocol { static func objectMapping() -> EKManagedObjectMapping! { retur...
keith
1

votes
1

answer
883

views

Populate ACF Checkboxes with Post Types

I'm trying to populate a checkbox ACF field with the various post types of a WP site. This is for a plugin, so the post types will vary based on the location of install. By default, the plugin uses pages and posts as it's post types, but need to give user option to use checkboxes to select other CPT...
Keith
1

votes
2

answer
461

views

WPF Databound object changed in code not reflected in UI

WPF-MVVM beginner here. My problem: in a WPF-MVVM UI I am editing an entity. Some properties when changed, require automatic updates on other properties. These are done in Entity class, set methods, but not reflected in my View More details: 1) I have the Model (a simple class with properties) in a...
Keith Jones
1

votes
1

answer
153

views

Why does XPath over a System.Xml.XmlDocument not find adjacent text and CData nodes?

Why does XPath over a System.Xml.XmlDocument not find adjacent text and CData nodes? var raw_xml = @' And this is an adjacent text node '; var doc = new XmlDocument(); doc.LoadXml(raw_xml); var results = doc.SelectNodes('/root/test/text()'); Console.WriteLine(results.Count); // gives: 1 Console.Writ...
Keith Hall
1

votes
1

answer
84

views

Batch snapshot PowerCLI script slow performance

I've made a powershell script which will take in a delimited batch of VM IP addresses and take snapshots of each VM. My issue is I am calling Get-VM every time for every VM, which obviously is very slow. I'm wondering if anyone can see another way to perform the same action without having to call th...
Keith Thomson
1

votes
1

answer
3k

views

Get name of Enum instance [closed]

Say I have this enum: public enum MyEnum{ ValueOne = 1, ValueTwo = 2, ValueThree = 3 } And then this field/variable: public MyEnum myEnumInstance = MyEnum.ValueTwo; I need to get the name of myEnumInstance via reflection from another class. I tried: myClassInstance.GetType().GetField('myEnumInstance...
Keith M
1

votes
1

answer
460

views

excluding templates from search in sitecore

I can't seem to get this to work. I started here how to use Linq to get a sitecore field but have stalled. I'm trying to exclude certain pages/templates. Here is what I have: var query = PredicateBuilder.True(); query = query.And(i => i.Paths.Contains(homeItem.ID)); query = query.And(i => i.Content....
Keith
1

votes
1

answer
154

views

How to install Xamarin on Windows using Chef

I configure my TeamCity build agents (Windows Server 2012 VMs) using Chef, and I have a need to install Xamarin for an Visual Studio/Android build. For other installers I usually play around with invoking it with /h, /help, /?, -?, -h and --help until I get a usage dialog that tells me the command-l...
Keith Pinson
1

votes
1

answer
136

views

Testing PostgreSQL function

I'm moving an existing Sybase system to PostgreSQL and am having trouble with testing my functions. For example I have the following code drop function if exists contract_line_ins(bigint, bigint, char(10), date, date, numeric(18, 0), numeric(18, 0), integer, bigint); create function contract_line_i...
Keith Miller
1

votes
1

answer
1.5k

views

Worker Role Tracing Logging

I'm working out how to fix an issue with an Azure Worker Role. Given LogManager.GetCurrentClassLogger().Info('In index {0}', item); // in the source Where am I likely to find that logged in a Azure Worker Role Cloud Service VM that I can log into with Remote Desktop?
1

votes
2

answer
753

views

`Errno::EExist` error with sprockets when running rails in dev

This has happened to me on multiple occassions now and I was hoping someone could provide some insight into the the following error: Errno::EEXIST at / File exists @ dir_s_mkdir - tmp/cache/assets/sprockets/v3.0/Pd Here's the associated stack trace: Errno::EEXIST - File exists @ dir_s_mkdir - /home...
Keith
1

votes
1

answer
532

views

Anchor tag update div without page reload

I have this div which includes an anchor tag that loads a php script that essentially adds information to a database and returns back to this page. I want to use this achor tag to run that php script update the database and refresh this div without reloading the page. The php script need those two...
Waggoner_Keith
1

votes
2

answer
614

views

Passing Jquery variable to php url

I have a jquery function that looks like this: $('.dislike_box a').click(function(event){ event.preventDefault(); var title = $(this).data('title'); alert(title); $.ajax({ url: 'vote.php?vote=dislike&title=title', success: function(result){ $('.dislike_box p.vote_text').text('Dont Like it.'); }});...
Waggoner_Keith
1

votes
1

answer
76

views

KeyError in Plug connection or session

So I was getting the error below because I was trying to access the :id key. No surprise here. However, my actual question is why is the user placed inside the :session key? Is this Plug specific? I don't remember setting user to the key :session as you can see in the view below. Error: ** (KeyError...
Keith Alpichi
1

votes
2

answer
2.7k

views

TFS build unable to find some NuGet package versions

The packages restore fine on the developer PC and using Visual Studio on the build server. When performing an automated build using TFS, however, many of the packages fail with a messages like these: WARNING: Unable to find version '5.0.4' of package 'Newtonsoft.Json'. WARNING: Unable to find versio...
Keith Walton
1

votes
2

answer
3.3k

views

Bundle identifier is missing - macOS 10.12 and Xcode 8 - 5.5.0.GA

Updated to macOS 10.12 and Xcode 8 and can not build to app store. No changes other then Xcode 8 and macOS update. I am using SDK 5.5.0.GA. -- [ERROR] : Error details: Bundle identifier is missing. MySlomins doesn't have a bundle identifier for the Release build configuration. Add a value for PRO...
Keith Tucci
1

votes
1

answer
288

views

MYSQL Finding substring when column contains needle

How can I find a string in my database if the database contains the needle? For example I have the string: 'www.example.com/test' My database column urlColumn contains: 'www.example.com' If I do the following (pseudo): SELECT * FROM db WHERE urlColumn LIKE '%www.example.com/test%' I don't get a resu...
Keith C.
1

votes
2

answer
324

views

Using python request library to dynamically get HTTP Error String

I've been asked to swap over from urllib2 to the requests library because the library is simpler to use and doesn't cause exceptions. I can get the HTTP error code with response.status_code but I don't see a way to get the error message for that code. Normally, I wouldn't care, but I'm testing an AP...
Keith
1

votes
1

answer
130

views

Django on EC2 security group fo postgresql on RDS

edited the DATABASES entry in my settings.py to be: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'Limbo', 'USER': '', 'PASSWORD': '', 'HOST': '..us-west-2.rds.amazonaws.com', 'PORT': '5432', } } now when I .manage.py runserver 0.0.0.0:800, it says: Performing system...
Keith
1

votes
1

answer
101

views

How can I alter the formatting of pandoc footnote marks?

Suppose I have the following markdown code, test.md: This is a footnote mark.^[Which I would like to show up having brackets] Using the following command, I then generate HTML: $ pandoc --ascii test.md -o test.html which gives me the following HTML: This is a footnote mark.1 Which I would like to sh...
Kevin Keith
1

votes
1

answer
210

views

Error 403 trying to use CORS with a static website loading image hosted on AWS S3

I have dumped a index.html file on my root folder (also on AWS S3 englify bucket) and am trying to load images onto the webpage from the images folder. My CORS configurations has been set to: englify.s3-website-ap-southeast-1.amazonaws.com GET PUT POST DELETE * and my request headers are as such:...
Keith Leow
1

votes
1

answer
30

views

How to add a named element to a R list using a variable counter?

I have number of results to pass back to a calling procedure I'd like to pass back a named list where each result is numbered. # the following works # result is a valid result results = list( '1' = result) When I do the following I end up with results$resultCounter instead of results$'1' resultCoun...
Keith John Hutchison
1

votes
2

answer
274

views

django modelformset_factory doesn't include actual forms

I've been trying to follow tutorials and other SO questions and have a modelformset_factory that's displaying a list of what looks like forms in the html, but it turns out they're not actual forms. html that gets displayed: Config key: Config value: Config key: Config value: notice there is no for...
Keith
1

votes
2

answer
38

views

How to store database name in entity class

I want to create a read-only property [NotMapped]Database {get;} on a POCO entity class to reflect the name of the database from which the entity was loaded at the time of creation so that I can read the value later when no DbContext instance is available. How do I tell EF to load this data at obje...
Keith
1

votes
1

answer
920

views

How to specify a wildcard path for jar libraries for a java command line application?

I'm writing a command line utility to extract Adobe Form Data from PDF's This command line fails. java -classpath jars/*.jar:. extractpdfformdata.ExtractPDFFormData --pdf csmu-asfm.pdf where as this works. java -classpath jars/commons-cli-1.3.1.jar:. extractpdfformdata.ExtractPDFFormData --pdf csmu-...
Keith John Hutchison
1

votes
2

answer
50

views

What is an elegant way to use a column of sql output for the tag of xml output within mssql?

I have a stored procedure that returns xml. Sample call is get_organization_user_export_data_permission_procedure @organizationId = '64483342-af49-4a04-b25d-ce7346cb5375' , @userId = '5324B48E-B560-4345-B290-12CC72D722FA' Sample output is false false true Which is correct. The base SQL is selec...
Keith John Hutchison
1

votes
1

answer
3.7k

views

Mule (Dataweave) transform JSON array to string

This is probably simple, but everything I find in a search is only vaguely related to my question. I have this: { 'user':'C03999', 'caseNumber':'011-1234567', 'documents':[ { 'file':[ {'name':'indem1','document':'xSFSF%%GSF','mimeType':'PDF'}, {'name':'indem2','document':'xSFSF%%GSF','mimeType':'PDF...
Keith Fosberg
1

votes
1

answer
1.3k

views

Serenity-BDD: Screenplay: How to find a string of text anywhere on the page (in any element)

After searching for a few hours, I have to ask... I want to be find a string of text on a page. Specifically, I'm looking to ensure the proper errors are displayed based on a user's form submission. Given that there could be several messages, and the web application I'm dealing with, if I could capt...
Keith Eckelmeyer
1

votes
1

answer
60

views

Can the range of acceptable values in an XML Schema interdepend?

Let's suppose I'm writing a schema for an XML document wherein there's a document describing pieces on a linear game board: where the attributes length and position are both non-negative integers greater than 0. Now, there's a clear relation between length and position that further restricts the set...
Kevin Keith
1

votes
1

answer
71

views

where is the location of class Normal in edward's source code?

When using edward, we always use from edward.models import Normal , but i didn't find the declaration of Normal in github anybody who can tell me where is it
Keith
1

votes
2

answer
1k

views

Why am I getting variable 'list' has no value?

I am trying to understand why I am getting this error, as I am fairly new to lisp. I want to create a function that takes a number n from the user and creates a list of up to five numbers based on that number. The function then takes the first number in the list and sends it to the end of the list....
Keith Code

View additional