Mike Mike

21911 questions
1

votes
1

answer
557

views

Multiple-line example in openapi v3 response body [duplicate]

This question already has an answer here: How to add multiple example values in swagger propertise? 1 answer Is there a way to code a multiple-line example in a request body? If possible I'd like my OpenApi document to display as follows when running under Swagger-UI. So far, all I've been able to...
Mike
1

votes
1

answer
53

views

Codeception cleanup vs. depends

When working with Codeception Acceptance tests i got to realise the best way is to cleanup the database before every test and make every test independent. But some Cest Tests depend on each other. So if i write: /** * @depends createObjectBase * @___skip */ public function createObjectMore(A...
Mike
1

votes
1

answer
39

views

Express OAuth Authorization for Different Access Methods

I am looking to figure out best practices for the following scenario. I am a relatively new/hobby programmer. I am developing a chat bot that is using Dialogflow. I want users to be able to use different messaging apps to be able to access the data and information in a backed database, but that I...
Mike Nelson
1

votes
0

answer
159

views

LinkedIn's shareArticle Dialog Window Bug

I'm hoping to connect with someone from LinkedIn or someone that is familiar with their http://linkedin.com/shareArticle popup. I've added a 'Share on LinkedIn' button on my website that uses LinkedIn's shareArticle parameterized URL to create a share popup dialog. I'm supplying OpenGraph parameters...
Mike B.
1

votes
1

answer
221

views

Linqpad - Linq to Sql Ambiguous table and linked server name

Using Linqpad & Linq to Sql, I am trying to join some data from a table in the database to data that which is contained on a linked server. I have followed the instructions to create a connection with the linked server (http://www.linqpad.net/FAQ.aspx#cross-database) My problem seems to be that I ha...
Mike B
1

votes
1

answer
176

views

Using jQuery with Visual Studio SPA template

I've created a project using the Visual Studio SPA template. This project is using ASP.NET Core template, Vue.js and Webpack. I'm having issues using jQuery within the project. Within the package.json file, it has 'devDependencies': { '@types/webpack-env': '^1.13.0', 'aspnet-webpack': '^2.0.1', 'aw...
Mike Walker
1

votes
0

answer
68

views

TSQL from 2012 to 2016, lost all performance on same query

I face this issue when same query performed at least 30 times slower on 2016v, and that was only for sample data, in real life it never finish, I ran it 24hr+, I see that inflation rate is very high, having 2 rec on input produces 200K rows. This query produce pretty complex Execution Plan and they...
Mike S
1

votes
1

answer
70

views

SQL Server create database dynamically and use the database in the script

I have a script that can be represented by the following: DECLARE @DatabaseNamePart VARCHAR(50) = 'Part1' DECLARE @DataBaseName VARCHAR(70) = 'MyDataBase_' + @DatabaseNamePart IF NOT EXISTS (SELECT * FROM master..sysdatabases WHERE [name] = @DataBaseName) BEGIN DECLARE @SqlQuery NVARCHAR(150) = 'CRE...
L.Mike
1

votes
1

answer
53

views

Different behavior between Jupyter kernel and Python

I've been working on a Jupyter notebook on my local, and have recently migrated it to an Ubuntu Linux VM located on a remote server. I've install Python and Jupyter on the remote server successfully, and am accessing it via SSH portforwarding. I have been able to run other scripts and files successf...
Mike
1

votes
0

answer
507

views

Angular4+ decode route parameters

I have such URL in my app: http://example.com/page/payments;offerId=5 After exploring the page (going back and forth, reloading page) sometimes this url gets encoded to http://example.com/page/payments;offerId%3D5 and breaks my page because I use route.snapshot.params... somewhere in the code. Aft...
Mike
1

votes
0

answer
81

views

how to save value from POST method into parameter of Java class?

I'm new in Java, and currently try to create my own project, but have a problem with displaying information about user in his main page. Now I need to save a value from my JSP page (/login) which use method POST into parameter of my Java class('Controller'). login.jsp Log in with your account Log in...
Junior Java Mike
1

votes
1

answer
75

views

Azure CLI 2.0 Export Error

I have a resource group called log-rg. I want to generate a deployment script and tried using: az group export --name log-rg and I get: The schema of resource type 'Microsoft.EventGrid/topics' is not available. Resources of this type will not be exported to the template. This is the same error I get...
Mike W
1

votes
1

answer
140

views

Installing wkpdtothtml on google cloud platform

I created a node express application that acts as a print api based on the wkhtmltopdf plugin. I am trying to deploy it to Google Cloud Platform, but I will need to install the wkhtmltopdf binaries on Google Cloud Platform first. How do I go about this? I am using Google App Engine service.
Mike Axle
1

votes
1

answer
60

views

How is Linux dealing with blocking I/O processes

I have a system that does a lot of blocking network calls. Based on that the CPU idle time is relatively high as well as the overall system load. When I add more CPUs to the system idle time remains the same but system load drops. Why is that happening? Is the following what is happening behind the...
mike
1

votes
0

answer
324

views

fontspec (xetex/luatex) and fontconfig

LuaTeX and XeTeX are passing on a warning on from the fontspec package, and I'm not sure whether I should worry. The following minimal code will generate the warning: \documentclass{report} \usepackage{fontspec} \setmainfont[Script=Cyrillic]{Arial} \begin{document} \end{document} The warning is fon...
Mike Maxwell
1

votes
0

answer
279

views

ffmpeg - Take Frame Accurate Screenshot

trying to find a way to take frame accurate screenshots with ffmpeg WITHOUT re-encoding the video. When I use: ffmpeg -ss -i input -vframes 1 -q:v 2 output.jpg with -ss being hh:mm:ss.ms, not matter how I specify the milliseconds, it is never frame accurate with this command. it seems to be landing...
mike
1

votes
1

answer
74

views

Shared Object is statically linked against boost program_options; application links shared

I'm working on a library that is statically linking our boost dependencies so that we do not have to worry about conflicting with users. Our library statically links date_time system thread regex filesystem program options We then have an executable that also needs program_options and links against...
Mike K.
1

votes
0

answer
317

views

Spring Framework and encode/decode of public key

I am trying to create a new RsaVerifier to check a public key: JwtHelper.decodeAndVerify(token, verifier); I do believe it's a valid public key. I'm copying it correctly from my browser. It does begin with a return character though. It actually has them in several places: -----BEGIN PUBLIC KEY-----\...
Mike
1

votes
1

answer
82

views

Use csv file with multiple newline characters in Python 3

I'm trying to import a csv file which has # as delimiter and \r\n as line break. Inside one column there is data which also has newline in it but \n. I'm able to read one line after another without problems but using the csv lib (Python 3) I've got stuck. The below example throws a Error: new-line...
Mike Nathas
1

votes
1

answer
23

views

In excel can anyone show me how to concatenate strings and variables to make a cell reference?

If I manually reference a cell in another spreadsheet (by typing = in the destination cell and then clicking in the source spreadsheet), excel creates a formula like this: ='H:\excel\data\[source_file.xls]Sheet1'!$C$5 I am wanting to create that formula from the cell and path which are stored in cel...
Mike Avison
1

votes
1

answer
105

views

Groovy: Mockito UnfinishedStubbingException using verify (and inline mocks)

I'm trying to verify the calling of a method on a FileChooser. I'm coding in Groovy, and this appears to be the problem. I'm using the 'incubating' Mockito feature which enables you to mock even a final class. Code is: FileChooser mockFC = mock(FileChooser.class) doReturn(mockFC).when(spyCH).getFile...
mike rodent
1

votes
0

answer
51

views

serviceworker cache in conjunction with app cache still loading both?

I am writing a PWA and just got into service workers. I've implemented a worker-based cache but when my app loads, the regular manifest-based cache still gets loaded by the client (latest Chrome). I thought that if a service worker was loading the cache, then manifest would be ignored? Is there a wa...
Mike D
1

votes
0

answer
31

views

Hybridauth - Windows Live stopped importing contacts

I'm not sure when it started, but Windows Live stopped returning contacts. Updating to version 2.10 did not help. The raw response for getUserContacts (Live.php) returns: object(stdClass)#10 (1) { ['data']=> array(0) { } } Any clue/suggestion is greatly appreciated.
Mike Feng
1

votes
2

answer
1.5k

views

SSIS Package stopped working with Error code: 0x80004005

I got this SSIS package working this past December. It only runs on Friday mornings. Last Friday it failed with this error message: Package:Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: 'Microsoft Access Databa...
Mike
1

votes
0

answer
41

views

Mongodb query for all values in in an indexed column doesn't use the index

I have a collection where I often want to pull the value of a field for all documents in the collection. Specifically, I want to get the 'filename' field for all documents. I have an index on this field: { 'v' : 2, 'key' : { 'filename' : 1.0 }, 'name' : 'filename_1', 'ns' : 'testdata.metadata' } How...
Mike Scannell
1

votes
1

answer
133

views

How should synchronised Realm actually work

I'm a newbie to both react-native and realm, but not with programming, so I'm sure I'm doing something wrong. The scenario is I have an offline-first react native app using realm. When I run a completely local realm file, everything works fine. I can load data (from the phone contacts) and interact...
Mike Sutton
1

votes
1

answer
298

views

Automate clicking buttons on one page and then another page using vba

I am trying to work on something that clicks a button\line on a page, then clicks on others when the new page loads. I can get my vba to click the first button/link, but then when trying to click the next I am getting the error Run-time error 91: Object variable or With block variable not set Now I...
Mike Hill
1

votes
0

answer
387

views

Linux Mint 18.3 Cinnamon desktop too many files error

After running cinnamon desktop for a while, I eventually get a 'too many files open' error. This typically occurs after leaving my laptop on overnight, or midway thru a day. Here's my system details: $ cat /etc/lsb-release DISTRIB_ID=LinuxMint DISTRIB_RELEASE=18.3 DISTRIB_CODENAME=sylvia DISTRIB_DE...
Mike Crowe
1

votes
0

answer
883

views

Tensorflow - GPU dedicated vs shared memory

Does Tensorflow use only dedicated GPU memory or can it also use shared memory? Also I ran this: from tensorflow.python.client import device_lib device_lib.list_local_devices() [name: '/device:CPU:0' device_type: 'CPU' memory_limit: 268435456 name: '/device:GPU:0' device_type: 'GPU' memory_limit: 11...
Mike
1

votes
1

answer
375

views

Uncaught SoapFault exception: [HTTP]

I'm trying to handle an Api in PhP made with .Net and I user SoapClient to do it. I can return the functions that it has like this: $client = new SoapClient($url); print_r($client->__getFunctions()); But when I'm trying to call a function with parameters it returns me the error: Uncaught SoapFault e...
mike vorisis
1

votes
0

answer
225

views

declaredParameters versus addDeclaredParameter SimpleJdbcCall

So I'm working with an Oracle database and a function as opposed to a stored procedure. I figured this was no big deal and carried on as I had with all my previous DAO's created for the stored procedures. This did not work. The difference is demonstrated below. Here's the function setup that works f...
Mike
1

votes
1

answer
30

views

Express/Node Res Variable Access With Javascript File

I am using Express/Node and Pug to build an application. I have a client side Javascript file that renders a JVectorMap based on data coming from an Express route and controllers. I know how to access the data through the Pug view, and also if I use a script tag within the view. My question is,...
Mike Nelson
1

votes
2

answer
56

views

Using classes for JSON serialization

All, I need some help with understanding how classes can work with vb.NET and JSON.NET. I'm completely new to this. I've tried searching for answers, but I'm probably not asking the right questions. Here's my dilemma: I have a JSON that I need to send to a REST API. { 'paInfo':[ { 'providerAccoun...
Mike C
1

votes
1

answer
488

views

How to Use Forcats::Fct_Collapse in a Function Across Different Dataframes with Different Factor Levels

library(tidyverse) library(forcats) I have two simple dataframes (code at bottom) and I want to create a new recoded variable by collapsing the 'Animal' column. I usually do this with forcats::fct_collapse. However, I want to make a function to apply fct_collapse to many different dataframes that ha...
Mike
1

votes
1

answer
39

views

Using a react app without rendering a html piece

I come from Angularjs 1.6.x . What is i need is that using a react app without rendering a html piece like ReactDOM.render(null, document.querySelector('#container')); this is my .container that contain some html tags that want to use my react app model and logic in it: {{ errorMessage }} Name {{ er...
Mike Anderson
1

votes
1

answer
1.9k

views

Use FFMPEG to restream RTMP source to YouTube - no video stream in output

I am attempting to grab the .m3u8 file from an nginx-rtmp server and pass it along to YouTube rtmp. I believe this to be possible (for example here: https://stackoverflow.com/a/11978820/1552594 although this is on the same host). The command I am using is: ffmpeg -analyzeduration 0 -i \ http://sourc...
Mike Miller
1

votes
2

answer
1.7k

views

OpenStreetMap and OpenLayer: simple marker labels

I'm trying to use an OpenStreetMap with OpenLayers.js, because I have to integrate in a web page a map with markers and labels of them. I've searched everywhere, but I didn't find anything... I've this script: // Definisco la variabilie mappa come un oggetto OpenLayers.Map utilizzando il DivMappa, p...
Mike Diana
1

votes
1

answer
229

views

Build Failed in Jenkins

status code 128: stdout: stderr: fatal: Unable to find remote helper for 'https' How do I fix the above..?
Mike Shobes
1

votes
1

answer
61

views

Filter Start Date with Greather Than or Equal To and End Date that Contains Months as Strings [closed]

library(tidyverse) library(lubridate) I'm new to working with dates in the tidyverse and I'm attempting to filter by Start_Date that is greater than or equal to 08-MAY-2017, and an End_Date that contains the months of AUG or JUL. I attempted this with the code below. I first used lubridate::mdy...
Mike
1

votes
0

answer
207

views

WINDOWS - python subprocess returns incorrect shell script exit code

Hi folks I'm a scripting/python newbie but i have searched endlessly for a solution to no avail. I am trying to call a sh script (using windows 10) using python (subprocess) and return the exit code to python. For clarity i have stripped out everything except the relevant code. I have an sh script...
Mike Waring

View additional