Kevin.

13296 questions
9

votes
1

answer
20k

views

Get in WooCommerce cart the product ID of a cart item

$cart_item = $woocommerce->cart->get_cart(); I have the above code. if I run print_r on cart_item I get a multi dimensional array: Array( [a6292668b36ef412fa3c4102d1311a62] => Array ( [product_id] => 6803 How do I get the product_id only? I tried $test = $cart_item['data']; pr...
Kevin.a
1

votes
0

answer
56

views

Sharepoint REST Jquery no results display message

With the code I have it in a script editor on a sharepoint page. I would like to display a message that states 'No results found'. I have tried over and over and have failed to display. .item-name-clickable{ font-size:1.1em; background-color: #c7e0f4; padding:2px 5px; margin-top:2px; cursor:pointer...
Kevin
1

votes
0

answer
60

views

Creating a type to extend React.Component with class attributes

I'm trying to bring Typescript into a project that extends react components with various additional class properties. I'm trying to work out how to extend the React.Component type to incorporate those additional attributes. As an example of what I mean, in both class and functional form: class Sampl...
Kevin Rocker
1

votes
1

answer
142

views

how to pass data for a viewController through a PageViewController to a second ViewController of the pageViewController

im new in this and Im trying to pass some variables for a viewController through a pageViewController who manages 3 viewControllers and use those variables in the 3 controllers, can anybody help me? here is my code on swift... I send my variables with this: public var lenguaje = '' public var usern...
Kevin Arvizu
1

votes
1

answer
27

views

Database name list not display issue

I am getting blank list when i trying to add database with entity framework. Note: i am using code first approach. Please check the screen shot bellow for better understanding. Its existing project just deleted .edmx and now trying to generating again for a issue.
Kevin himch
1

votes
1

answer
38

views

Access UPDATE statement in query fails to actually update

The following tables exist: Passerine_Survey_Observation Species_Codes I'm trying to set the common name in Passerine_Survey_Observation with that of Species_Codes: UPDATE Passerine_Survey_Observation INNER JOIN Species_Codes ON Passerine_Survey_Observation.SPEC_FK = Species_Codes.SPEC SET Passeri...
Kevin R. M.
1

votes
0

answer
218

views

Load-balancing for real-time production environments in TensorFlow

Let's say that you want to have a machine that serves up inferences to input data that and has multiple GPU cards. The inferences are made by a model with high GPU RAM requirements. These inferences are consumed by multiple machines on the same LAN. The input data is high volume and needs to be pro...
Kevin Johnsrude
1

votes
0

answer
39

views

Oracle sql: insert into by copying from two different tables

Although it's much more complex than I'm about to explain, I'll try to only stick to the relevant bits of what I want to accomplish. Our data model is quite complex, and the terms are also a bit confusing. We basically have a Request, and this request can have an active Request_Status (which has an...
Kevin Cruijssen
1

votes
1

answer
25

views

Display List data child to parents

I am trying to get a list of my Subcategory which contains Main Category id and name info. Please note: Subcategory is a child of the Main category. So it is like a child calling its related parents. I already tried code bellow but problem is I am getting error- System.ObjectDisposedException: 'The...
Kevin himch
1

votes
1

answer
50

views

Echo Option Value Based On Wordpress User Role

If someone can figure this out, man you would make my week! Basically what I'm trying to do is echo a different value in a option based on a the users role on Wordpress. If user is administrator echo = [email protected] If user is subscriber echo = [email protected] Here is the code I am working with: if...
Kevin W.
1

votes
0

answer
183

views

digitalocean and google domain settings

I have a problem when I access to my url. If I enter myurl.com on browser, it redirects to my digital ocean server and shows the contents correctly. However, the url on the browser is changed to ip address:port/index right away. I'm not sure what to change to show up with correct url (myurl.com) on...
Kevin Cho
1

votes
0

answer
243

views

Spring Boot Security Javascript Post 401 error

I'm currently developing a micro-service architecture application with a Spring boot Authorization Server. When I try to get a new token with a existing account trough postman I get a valid token. Postman request and result - Postman body Now when I try to do the same with a Javascript call I get a...
Kevin Bos
1

votes
1

answer
27

views

accept() blocks (with pending connections); Ctrl+C unblocks?

I've written a simple C++ server for my Windows desktop which talks to a mobile app I'm developing. When the two communicate, the client connects, sends some data, receives data back from the server, then the connection is closed. However, occasionally, the client will connect, send data, then ti...
Kevin Engel
1

votes
0

answer
52

views

How to know google SDK version ios?

Google has changed policy under which the ads will not display in SDK under version 7.0 any more. How to get SDK version of google admob?
Kevin Maru
1

votes
0

answer
26

views

How to removed crashed node in SQL Server 2012 Log Shipping?

My DR site server crashed and they built a new one with a new IP. I added the new node but I am unable to remove the old one (since it is no longer there). The log shipping to my new node is working fine. Any ideas on how I can remove the reference to the old secondary on my primary server? Remo...
Kevin T
1

votes
0

answer
124

views

How do you make a face symmetric using openCV and C++?

I was looking at this tutorial, and it said 'You can make a symmetric face, by averaging a face and its mirror reflection.' - and there was an example of Obama's face being made symmetrical. I tried doing the same with openCV and C++, but these are the results I'm getting using the following code:...
Kevin Thomson
1

votes
0

answer
27

views

Magic Tap Pausing Background Audio

I'm trying to figure out how to respond to magic tap while my audio playback app is in the background. I've already done all the Command Center stuff and they work as expected, but while audio is playing, magic tap from the home screen or elsewhere doesn't work. I'm able to respond to magic tap whil...
Kevin
1

votes
1

answer
612

views

Docker stack deploy postgresql slave container restart in few minutes

Run this YML with docker stack in swarm. Docker stack file to create Postgresql master/slave setup with 2 slaves. The slave container will restart in few minutes repeat and repeat.... How to fix it ? docker stack deploy -c docker-stack-postgresql.yml post docker-stacl-postgresql.yml version: '3' ser...
Kevin Lin
1

votes
0

answer
15

views

Separate “domain user” from “authentication user” with Devise

My previous Rails apps have ended up with bloated user model with a thousand has_many associations and a whole bunch of domain-specific code and attributes in the user model. In the next app, I am thinking about separating the model that I use for authentication (with devise) from the domain-specifi...
Kevin Lawrence
1

votes
1

answer
380

views

Hot to set up permissions for GraphQL with graphene and SQLalchemy

I have Clients, Users, Projects and Trips on my graphene schema: class Clients(SQLAlchemyObjectType): class Meta: model = ClientModel interfaces = (relay.Node, ) class Users(SQLAlchemyObjectType): class Meta: model = UserModel interfaces = (relay.Node, ) class Projects(SQLAlchemyObjectType): class M...
Kevin Castro
1

votes
1

answer
191

views

Lexical or Preprocessor Issue happens when using Core Data: '.Friend.h' file not found

I am writing functions of iOS Core Data. I have one Entity named 'Friend', its Codegen is Category/Extension. I have written my own Friend subclass as NSManagedObject. I am facing an issue that Lexical or Preprocessor Issue, '.Friend.h' file not found in file Friend_CoreDataProperties.h which is aut...
Kevin Science
1

votes
2

answer
207

views

Adding borders to dynamic range SQL query using VBA

I have tried a bunch of different ideas, and I'm still stuck. I'm new to VBA, so I can't figure out how to get exactly what I need, because I don't totally understand the language. I'm looking to add borders (both outer and inner) around each cell in the data that is returned to the query. How can I...
Kevin Vrany
1

votes
1

answer
256

views

SAS adding white space between the bottom of a graph and the footnote

I hope you can help. I would like to reduce the amount of white space that SAS adds between the bottom of a graph and the footnote. I'm generating graphs into .pdf files that need to meet certain requirements in terms of having a minimum margin (that I've specified in the options statement) and wi...
Kevin
1

votes
0

answer
35

views

How do I launch a exe file (will pop out GUI) with windows service correctly

I have a problem with launching a exe file with windows service. My service will call 'CreateProcessasUser' function in MSDN, and it will launch the exe file correctly, however the launched exe task only shows in task manager but didn't prompt on desktop(GUI). Is there any ideas to fix this problem?...
Kevin Chiu
1

votes
1

answer
634

views

LIbrary for Zendesk or Freshdesk in React Native?

Is there any library for installing Zendesk or Freshdesk in React Native ? Or if there is another provider who provide their React Native SDK ?
Kevin Dave
1

votes
1

answer
282

views

Xamarin forms app throws a null exception when creating StandardKernel

I created with VS2017 a cross-platform App(Xamarin Forms) with the template set to Blank App, Platform Android, UI Tech Xamarin.Forms, Code Sharing .NET Standard. All builds and runs and displays 'Welcome to Xamarin Froms'. I added the Portable.Ninject package to both the .NET standard PCL project a...
Big Kevin
1

votes
0

answer
43

views

SetHandler seems to be ignored

Installing shibboleth on apache 2 on Ubuntu 14.04LTS. Actual shib install seems to go fine, so configure the site .conf file to use shibboleth. When I access https://lib.msu.edu/secure, it is handled by shibboleth (with an appropriate config exception at this stage), but when I access https://lib.m...
Kevin Finkenbinder
1

votes
1

answer
61

views

Why do these t-sql batches behave differently?

I am exploring the boundaries of Sql Server 'batch' behavior in the presence of statement level problems. I read this Technet article and reproduced the example with some added experiments of my own. I think I understand that SQL Server attempts compilation of a batch in two passes. The first pass...
Kevin Olree
1

votes
2

answer
178

views

Soap sandbox at https://apitest.authorize.net/soap/v1/Service.asmx TLS 1.2 only?

We are testing with SOAP against the test url - https://apitest.authorize.net/soap/v1/Service.asmx Curious if this is the Sandbox environment with TLS 1.0 and 1.1 disabled?
Kevin Hubbard
1

votes
0

answer
132

views

Reference equals of two closures [duplicate]

This question already has an answer here: How do you test functions and closures for equality? 8 answers In Swift 3, what is a way to compare two closures? 2 answers I'm in an odd state where it would help me a lot if I could compare 2 closures to see if they are the same reference object. I trie...
Kevin DiTraglia
1

votes
1

answer
28

views

What are the relationships among imports, includes, and verification in Dafny?

I know one Dafny source file can be included in another, leading to textual concatenation of the files prior to verification. But I don't have a clear mental model of the relationships between includes, imports, and which files are verified when. Perhaps an expert can elaborate. Thanks.
Kevin S
1

votes
0

answer
64

views

Swift - Overlay Text on current PDF Document

I have been trying to simply overlay text onto a current PDF document that is essentially a timecard. I copy the file to the downloads folder and that works fine, but then when I try to use a CGContext to add text, it exports a white PDF document. Can anyone see where I'm going wrong? do { try file...
Kevin Peters
1

votes
1

answer
107

views

Nightwatch click event on anchor not working in edge

I've written a command in Nightwatch to test a takeover element. The test works fine in Chrome only it does NOT in Edge. What i've noticed is that the click function on the first two anchor elements is not triggered. If i manually click them it closes them as expected. The click event does work on t...
Kevin Schuit
1

votes
0

answer
140

views

What happened to “gcm.notification.body” key in FCM extras (bundle data) ? FCM seems to stop sending it?

Before, it seems like the bundle data arriving with the Push Notification from FCM has the following: Before: { 'google.c.a.udt': '...', 'google.sent_time': '1486481416380', 'gcm.notification.e': '1', 'google.c.a.c_id': '...', 'google.c.a.ts': '...', 'gcm.n.e': '1', 'google.message_id': '...', 'gcm....
Kevin Le - Khnle
1

votes
1

answer
278

views

cURL, php and SSL error

I got instructions from an organisation how to connect to their server with a CA, key and cert. Tried in the terminal successfully with the following: openssl s_client -connect api-system3.xxxx.com:443 -CAfile teliasonerarootcav1.cer -cert BolagACert.crt -key BolagAKey.key and a following GET reques...
Kevin Lindmark
1

votes
2

answer
69

views

Record python version to rebuild virtualenv

The convention to record package requirements for future installation in a python virtual environment is to use pip freeze > requirements.txt and then install using pip install -r requirements.txt The python interpreter version, however, is not recorded in the requirements.txt file. Is there a simi...
Kevin L.
1

votes
0

answer
55

views

Finding average value in a single data frame using pandas

import pandas as pd import csv l=[] url = 'ftp://ftp.cpc.ncep.noaa.gov/htdocs/degree_days/weighted/daily_data/{}/Population.Heating.txt' for i in range(1981,2018): df = pd.read_csv(url.format(i), sep='\|', skiprows=3, engine='python') l.append(df.loc[9]) print(pd.concat(l)) pd.concat(l) Region...
Kevin Choi
1

votes
3

answer
415

views

VBA Code fill cells with increment of 0.1

I want to fill column A with values starting from 0 up to the value set in range('b1') with 0.1 increments. I have the code below but when I run it, it doesn't stop on the value that I set on range('b1'). Help? Dim x As Double Do x = x + 0.1 Range('A' & Rows.count).End(xlUp).Offset(1).Value = x Loop...
Kevin Melendres
1

votes
1

answer
416

views

Boost Filesystem exists Access violation

I have a Problem with boost::filesystem::exists(pathName). When the folder did not exists the method returns false as expected. If the Folder exists it throws an exception in the make_permissions(const path& p, DWORD attr) Method of the Boost File operations.cpp. This is the code from that file if...
Kevin
1

votes
0

answer
48

views

Use Handlebars JS inside Fabricator JS Project

I would like to use Handlebars JS in my Fabricator JS project. I had already developed the project with handlebars as a stand alone solution and finished it functionally. When I install it in Fabricator I get a blank page and my handlebars {{}} tags are empty. Does anyone know how to use these two...
D. Kevin

View additional