Mike Mike

16497 questions
1

votes
1

answer
61

views

DB pulling Function with PHP

I am very new to programming with PHP and am working on a fun little game to help myself learn. I got some code help from others on pulling a character's stats from the DB but am having trouble getting it to work. I just get "server error" when I try to run it right now. The Database information is...
Mike Kellogg
1

votes
1

answer
604

views

AngularJS - filter returning reference?

I was wondering if I do something like this in AngularJS, var myCat = cats.filter(function(comparedCat) { if(comparedCat.parentCategory != undefined) { return cat.id === comparedCat.parentCategory.id; } }); and it returns a list of objects [Object, Object, ...] Are these objects referenced to the th...
Mike
1

votes
1

answer
367

views

wpf image source depending on object property

I have a boolean property in my class, say: private bool isFolder; public bool IsFolder{ get; set; } and I have an image in xaml: I would like that image to have one imageSource when the IsFolder is true and another one - when it's false. How can I do that? Thanks in advance.
Mike Spike
0

votes
0

answer
7

views

SQL Server trigger FOR DELETE Trigger not working on inner join with cascading keys

I have a PK/FK table below called Parent and Child. The Parent when deleted will cascade and delete the child. When the Child is deleted first, the trigger should run shouldnt it? I cant get my join to work and I am assuming the Parent table row is already gone. How can I accomplish this? I alr...
Mike Flynn
1

votes
3

answer
75

views

How can I retrieve data from joined tables?

I have 3 tables: products table -------------- id name ... categories table ---------------- id name ... product_categories table ------------------------ product_id category_id And join them by this query: select p.* from products p join product_categories pc on pc.product_id = p.id join categories...
Mike
1

votes
1

answer
631

views

Swift use unicode character in localization.strings

I am trying to put a unicode character inside my localization.strings file. When I manually set a label's text to "\u{F071}", the character appears properly. When I have that character as part of a string within the localization file, then the unicode character does not appear like I want it. Is the...
Mike Walker
1

votes
1

answer
132

views

Inline functions as code snippet / template

EDIT: Basically I want to be able to use the following mechanism as an answer to my original question: void MethodA() { MethodB(); //This code will never be reached because 'return' from the inline MethodB is executed. //... More code here } [Attribute(Inline)] ReturnValue MethodB() { return; } Of c...
Mike de Klerk
3

votes
1

answer
41

views

Understanding Facebook payments Fulfillment flow

I'm learning how to implement Facebook Fulfillment flow. I can't make sense of using request_id (steps 1 & 2). The idea is that my server generates request_id and later when the app get encoded response from Facebook, compare details in that response with the stored details on my server (using requ...
Mike Keskinov
1

votes
2

answer
308

views

After issuing partial refund via PayPal RefundTransaction NVP API, IPN listener only shows payment status as “Refunded,” not “Partially_Refunded”

When I issue a partial refund on my site using the RefundTransaction API operation, the refund is processed successfully. However, my IPN listener continually receives a payment status of just Refunded for this transaction. I am not sure why it isn't Partially_Refunded. I have tested partial refund...
Mike P.
0

votes
1

answer
26

views

SQL Server Express 2014 - @@version 2008

I have a question reharding strange behavior of Sql Server. I had sql server 2008 edition which I uninstalled and installed SSMS Express 2014 instead. However I could not perform any advanced analytics on sample northwind db i.e. lead, lag, preceding etc. When I asked the program @@version, the outp...
Mike_R
1

votes
1

answer
411

views

ALSA volume change callback not triggering?

I have a function that I'm setting as the callback, but events are happening and the funciton is not being called. Is there something else I need to do? // static int volume_change_callback(snd_mixer_elem_t* elem, unsigned int mask) { // Do stuff } snd_mixer_elem_set_callback(element, volume_change_...
Mike Bjorge
0

votes
0

answer
4

views

Perl: Connecting to Walmart API to load items Unsupported Media type error

We are trying using the marketplace.walmartapis.com api to bulk list items and it is returning unsupported media type for xml item feed We are using Perl and are able to perform other commands to update inventory and pricing, check orders, lookup feeds and skus etc. The token SHOULD be good, as we r...
1

votes
2

answer
1.4k

views

logoutSuccessUrl not working in Spring Boot

I have a simple Gradle Spring Boot (v 1.3.3) WebMVC application I'm running from the command line via "Gradle bootrun". I am also including Spring Security and am overriding some default security configuration by including a java security config class. My build file is buildscript { ext { springBoot...
Mike HT
0

votes
0

answer
4

views

How to fill a DataGridView in Visual Studio 2017 automatically?

What I have: MS VS 2017 MySql server launched on local host Completely installed pack mysql-installer-community-8.0.15.0.msi What I need: To create a Windows Forms application using an element DataGridView, whith bound table columns. I suppose that this radio-button should be active to do it The pro...
Mike Biri
4

votes
0

answer
27

views

Typescript changes not compiling after git merge

I am working in a small team environment. When I merge in a change from a separate branch and try to recompile, the compiler doesn't notice any changes to the files affected by the merge. After manually editing the affected files (adding or removing a space) the compiler picks up the changes. This m...
Mike T.
1

votes
2

answer
2.1k

views

Including a script src into js file [duplicate]

This question already has an answer here: How do I include a JavaScript file in another JavaScript file? 53 answers Im trying to integrate a firebase config into my js file rather than directly into html file. Given: // Initialize Firebase var config = { ....... } and my js file: $(function() { ......
Mike
1

votes
1

answer
867

views

Detect a fetch request in PHP

How can I detect requests from the Fetch API in PHP? I am currently using the approach below to detect an AJAX request: $context['isAJAX'] = (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); Ideally I could detect Fetch requests in a si...
Mike Wagz
1

votes
3

answer
134

views

How to update the OpenShift Online 3 platform to the latest version of Node.js?

At the age of OpenShift Online 2 there was an ability to update Node.js to the latest version. As far as I can see, this approach doesn't work anymore for the new OpenShift Online 3 version. Currently, OpenShift offers only outdated or LTS versions of Node.js, e.g. v.4 or v.6. My question: How can I...
Mike B.
1

votes
1

answer
474

views

Thymeleaf functionality on Meta tag

I'm not sure if this could be a known scenario. But I'm confused since I couldn't find any discussions on this. Raising my clarification. Does thymeleaf based html page allow meta tags within its head? I've this code: Data Services Platform Support ... which displays the page I'm looking for. But wh...
Mike
1

votes
2

answer
69

views

JSON processing - Javascript

I have the following script that holds a json. $http({ url: '/mpdValidation/mpdValidate', method: "POST", data: { 'message' : mpdData } ).then(function(response) { console.log(response.data.searchResults[0].customers); $rootScope.mpdValidatedData = response.data.searchResults[0].customers; var party...
Mike
1

votes
2

answer
40

views

Can MSSQLLocalDB be used on production web server?

Long story but I have a web app that has a SQL Server DB that works fine but also has a ASPNETDB.MDF database (for membership), which has always worked fine under SQL Server 2008. I did an upgrade on the server to SQL Server 2014 and I can no longer access the ASPNETDB.MDF database and get this erro...
Mike Stephenson
1

votes
3

answer
25

views

Add parentheses around 4 digit year in folder name

I have about 1,500 folders where the last 4 digits represent a year. I need to add parenthesis around the year while preserving the rest of the name. The folder names vary in length from about 4 characters to over 20. Some of the folder names contain numbers other than the date. I found a way to put...
Mike
0

votes
0

answer
14

views

urllib: Opening a url always gets 429: Too many requests

I just got started with the urllib module. I'm trying to scrape products from supermarkets and there's a website that seems to always respond with an HTTP Error 429: Too many requests. I already did a bit of research on the Stack Overflow and no one seems to have the same problem. My code is as simp...
Mike Pham
0

votes
0

answer
5

views

How to enable facebook authentication in Core .NET 2.2 project?

I have a project written using C# on the top of Asp.NET Core 2.2. I am using the built-in Identity to enable accounts authentication. I am now trying to add integration to enable Facebook authentication. I followed the documentation to create an app on Facebook and then enable it on my site. Howeve...
Mike A
0

votes
0

answer
16

views

How to rearrange data frame based on multiple criteria

I'm trying to build a coherent flight route. I have a dataframe that includes all the flights an airline does in a period of time. I would like to sort this data frame based on: Destination airport must match the Origin airport of the following row, and they should not overlap in time. Aditionally,...
M. Mike
0

votes
0

answer
5

views

Is there a way to exclude specific branch names/patterns in GitHub branch protection?

I want to enable GitHub branch protection on all branches except those prefixed with "private_", for example. This way, we do not have to enable every new 'non private' branch as it is created. I cannot find a way, using GitHub's pattern matching/globbing rules, to accomplish this. Something like a...
Mike Goddard
0

votes
0

answer
17

views

What cause a Task to auto cancel in C#?

I have a console app written with c# on the top of Core .NET 2.2 framework. My application executes admin tasks using task asynchronous technology. However, I keep running into an issue on my production server that causes the task to cancel. I am unable to reproduce the problem locally, so I am una...
Mike A
1

votes
1

answer
1.7k

views

System.Data.Linq in netstandard20

I have a netstandard20 project that references a .Net 4.6 Project, all compiles and runs except where I call any functionality in the .Net 4.6 project, I get the following error. FileNotFoundException: Could not load file or assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToke...
Mike U
1

votes
2

answer
718

views

how to pass multi value query params in swagger

I have following service in swagger.yml. The service is written so that page_id can be passed multiple times. e.g /pages?page_id[]=123&page_id[]=542 I checked this link https://swagger.io/specification/ but couldnt understand how could i update yml so i could pass id multiple times. I see that i hav...
mike
1

votes
1

answer
761

views

Kivy: TextInput border radius

I would like to know if it was possible in python & Kivy, to customize TextInput widgets like in HTML/CSS. Is there any way to do that directly into my CustomTextInput(TextInput) class ? I want my TextInput looks like this:
Mike Delta
0

votes
0

answer
3

views

Setting Environment in Jenkins report results

I have a result report that I manually update with the 4 different environments we test in (DEV, CTE, ITE, PTE). I was looking for a Execution Variable that indicates the URL I am using or a way to show in my reports easily which environment I used. Is there a way to set the variable in one spot (or...
Mike vR
1

votes
1

answer
2.2k

views

How to open emacs GUI

There are many guides online to install emacs. They are all the same (like the one I have linked). sudo apt-get install emacs emacs testfile (SUPPOSED to runs the GUI) emacs -nw testile (-nw runs emacs in the terminal) I just installed a fresh copy of Ubuntu 14.04 and installed emacs. Whe...
Mike S
1

votes
0

answer
13

views

Traversing the DOM to determine the existance of a child element and outputting the path from Parent to Child using JavaScript / ES6

I have a strange question here, but I wanted to ask the community. I was asked by a colleague a question regards DOM structure. He wanted to know the best way to determine that a parent node/element contains a child node/element and how could the DOM path / selector from parent to child be collected...
Mike Sav
1

votes
2

answer
52

views

How can I extend the Array class and keep its implementations

I'd like to add some functions to the Array class (I'd rather not have them as functions external to the class since it would ideally be discoverable when typing . following the object). This is what I have so far: export class List extends Array { constructor(items?: Array) { super(...items) Object...
Mike
1

votes
1

answer
67

views

UI5 routing implementation: Express.js vs. SAPUI5 routing functionality

In a generic single page app (SPA), I would implement a routing logic with Express.js. But what approach should I use in SAPUI5 environment? Should I rely on sap.ui.core.routing.Router and sap.m.routing.Router routing modules of SAPUI5 or implement such functionality with Express.js?
Mike B.
1

votes
4

answer
56

views

Replace all values in a list without using enumerate?

Say I wanted to find all the values '6' in a list and replace it with the value '600'. I can accomplish this using enumerate() but I believe this is not a good way to do what I want to do. The problem I am facing is that I need to know the index in order to replace the value with a new one, hence th...
Mike
0

votes
1

answer
13

views

How to call multiple URLs and only handle the first value that returns using RxJS?

I have multiple URLs that contain information. I have an ID I am trying to look up but do not know which URL contains the information I need. I am trying to call each URL and whichever returns a valid response first, use that and cancel the other calls. I have attempted to use race() to do this, but...
Mike
0

votes
0

answer
12

views

Ubuntu genome session is broken by an linux application build by pyinstaller when it's running by desktop shortcut and closed

I have built an linux application by python, pyqt5, django and pyinstaller and I have added desktop shortcut to lunch from start menu. When I run the app on command line there is no problem. But when I run the app by desktop shortcut and exit it then the app close everything on genome session and lo...
1

votes
2

answer
3.9k

views

Simple file upload with php and ExtJs not working

I need the simplest solution for uploading file from Ext application with php. I'm a total php newbie, so I don't get the errors I'm recieving and can only guess what's causing them. On the frontend side I have a simple form : Ext.create('Ext.form.Panel', { width: 300, renderTo: Ext.getBody(), frame...
mike_hornbeck
1

votes
1

answer
2.5k

views

Disabling store views in Magento for improving performance

I need to improve indexing times, specifically "Product Prices". I would like to know if I need to actually delete a store view in order to improve indexing performance, or would it be enough to disable it. I'm talking about store views in different websites in a multi-site Magento installation. How...
Mike

View additional