James James

21416 questions
1

votes
0

answer
374

views

React Native expo there was a prob loading this experience

When i run 'exp start' from command line. my react native app builds perfectly on simulator and on device. i also ran exp start --no-dev which i assumed was to show what would run with dev mode flag off when i run exp publish. When i run 'exp publish' i get There was a problem loading this experienc...
James Woods
1

votes
1

answer
456

views

VueJS, Apollo, Rails - Can't verify CSRF token authenticity

Here is my setup const token = $('meta[name='csrf-token']').attr('content'); const authLink = setContext((_, { headers }) => { // return the headers to the context so httpLink can read them return { headers: { ...headers, credentials: 'same-origin', 'X-CSRF-Token': token, 'authenticity_token': token...
James Klein
0

votes
0

answer
3

views

How do I install Dotfuscator in Visual Studio for Mac?

I'm currently using MacOS for my C# development environment, and have been pretty satisfied with the packages available. However, since my codebase is proprietary, my coworkers recommended that I obfuscate the code using Dotfuscator. I've gone over the Microsoft documentation for direct installation...
James
1

votes
0

answer
171

views

How CNNs achieve spatial invariance despite having a Fully Connected layer at the end for classification?

An image of a dog should be learnt by the network as being a dog irrespective of the spatial position and or rotation (maybe even deformation?). My question is how CNNs are able to achieve this? The convolution operations on input image successfully detect a feature that is characteristic of a parti...
James Howlett
1

votes
2

answer
239

views

Moving the Git Repository to a Child Folder

I'm using Github with my Wordpress website. Currently it tracks the parent Wordpress folder, which essentially tracks everything. I'd like it instead to have a git with only the theme, which is located at wp-content/themes/lighthouse Is there a simple way to have this repository only be the theme r...
James Mitchell
1

votes
1

answer
170

views

How to automatically authenticate Google Drive through Docusign API

I am creating an app with Google apps script to send Docusign envelopes to customers when I receive a google form from them (with the responses going into a google sheet with an onFormSubmit trigger). I'm using the Docusign REST API envelopes method to create an envelope, and send directly to the cu...
Alex James
1

votes
0

answer
299

views

Open a workbook in xlwings without making it visible

I am having the same problem as this post, according to the comments of this post this issue was resolved in v0.9.3. My versions are: xlwings: v0.11.4 macOS: v10.13.2 python: v3.6.2 Excel for Mac: v15.41 I have attempted the app.books.open(filename) workaround but it makes no difference. Despite bei...
Callum James
1

votes
0

answer
572

views

getSymbols (in R quantmod package) not working for FRED data

the getSymbols command in R's quantmod package is no longer working for FRED data (i.e., for St. Louis Fed data base via: fred.stlouisfed.org). For example, using the quantmod help menu in R offers this example, which no longer works: library(quantmod) getSymbols('CPIAUCNS',src='FRED') Running this...
James Picerno
1

votes
0

answer
254

views

How to toggle a column's visibility in a matrix?

I want to toggle the visibility of a column ('TG3') so it can be toggled by a specific report item - The matrix looks like this It is set up so that 'Student' is toggled by 'Teacher', 'Teacher' is toggled by 'SectionDisplayName' and 'SectionDisplayName' is toggled by 'CourseDisplayName'. (It's a st...
James Brightman
1

votes
1

answer
135

views

Accessing array give undefined p5.js

this is my second attempt at this question, hopefully, I can be a little clearer as to my problem. I have an initial p5.js setup: // Setup empty array (I beleive 'position' this is in the global scope?) let position = [] //p5 setup function setup(){ createCanvas(400,400) // Simple for loop to create...
James
1

votes
1

answer
28

views

Incorporating a table inside a table in HTML

I am trying to create an HTML table where there are four columns and any number of rows. Inside this table, the first two columns are just normal cells. The latter two columns can have multiple rows WITHIN a row in the top-level table. My issue is how I can properly align the column separators, even...
James
1

votes
1

answer
259

views

Determine value of cell in Excel from Outlook

I am using Outlook VBA to find if a cell is empty on an Excel sheet. The code will write content from email in the cells but fails to register any values in the cell. After the normal Outlook VBA setup with MAPI etc., the code is: Dim xlapp As Excel.Application Dim xlwb As Excel.Workbook Dim xlws...
Elliott James Burton
1

votes
0

answer
86

views

php form not inserting data into database

I've got this php/html form where the user can assign a job to a driver and when submitted: it would be added to the database. this form was working up until I added the driver id field (this is based on the driver selected beforehand) I also binded the url to represent the selected driver via ID: h...
James Green
1

votes
0

answer
696

views

package com.xamarin.forms.platform.android does not exist

Running Visual Studio Community for Mac 7.3.3, starting a new Xamarin Forms PCL project for Android, the project does not build and throws the following error: Droid/obj/Debug/android/src/md5b60ffeb829f638581ab2bb9b1a7f4f3f/VisualElementRenderer_1.java(44,44): Error: error: package com.xamarin.form...
James Finley
1

votes
0

answer
38

views

PHP Self Processing Form with Wait Notice Before Redirect

I have a PHP form that uses itself to handle the processing. It has basic javascript validation (client side) and if it passes those tests the form submits to itself for PHP validation (server side), etc. Once complete it redirects to a 'thank you' page. The problem is that the form can take sometim...
James Parry
1

votes
0

answer
295

views

How to get automatic fail over working in Flink

I am using Apache Flink 1.4 on a cluster of 3 machines, out of which one is the JobManager and the other 2 host TaskManagers. I start flink in cluster mode and submit a flink job. I have configured 24 task slots in the flink config, and for the job I use 6 task slots. In the code, I have enabled ch...
James Isaac
1

votes
1

answer
231

views

Referencing .NET 4.7.1 library using Azure Storage from ASP.NET Core 2 MVC App

In my solution I have an ASP.NET Core 2 MVC app using Razor pages, a Web API 2 app and a .NET 4.7.1 class library containing services and their definitions that use Azure Table Storage from the Azure Storage NuGet (v8.7.0). I'm using autofac for dependency injection. I have hooked up both my web app...
James Mundy
1

votes
0

answer
125

views

Skype for Business IVR Bot

I'd like to create a full sip capable IVR bot hooked to our Cloud PBX in Skype for Business. It appears that this is possible with regular Skype but I can't find anything on how to do this with Skype for Business. Is this possible? If so, how? any examples? Also will this allow handling of multiple...
James Hancock
1

votes
0

answer
37

views

How to Escalate Bot Conversation to Skype for Business Users

We have a publicly facing bot that is working well. However what we'd like to do is if the bot was not able to address the problem, escalate it to a real person. The first of those ways is to a person or (preferably) a group in skype for business. I'd like to have them be able to answer directly in...
James Hancock
1

votes
0

answer
915

views

HTML/JS music playlist script

I'm pretty new to JS, and I've been asked to create a music player that can run out of a single HTML file. the music is hosted on a google drive because it has to be able to be changed for holidays/season etc after a lot of cobbling code together and testing and troubleshooting, I've managed to get...
james_D
1

votes
2

answer
51

views

Basic Tensorflow: Define Tensor variable using existing variables

I have some very simple tensorflow code to rotate a vector: import tensorflow as tf import numpy as np x = tf.placeholder(tf.float32, shape=(2, 1)) angle = tf.placeholder(tf.float32) s_a = tf.sin(angle) c_a = tf.cos(angle) R = tf.Variable([[c_a, s_a], [-s_a, c_a]], tf.float32, expected_shape=(2,2))...
James
1

votes
1

answer
50

views

Navbar small box error on left hand side

Hello guys im newish to bootstrap and html and im having a problem when i set up my navbar its showing a small box on the left hand side of my screen. example VENDER body { background-color: white; } TEXT HERE! Brand Name Site
James
1

votes
0

answer
21

views

Controlling the “Open in …” button in the Quick Look (preview) panel

The QLPreviewPanel window has a button that will allow the user to open the quick look document they are currently previewing by launching its original application. Is it possible to (a) disable this button for some documents and (b) learn if the user has clicked that button. My problem is that some...
James Bucanek
1

votes
0

answer
202

views

model save in keras json file

I saw the two different kinds of model saving style in Keras. model.save(os.path.join(model_path, Filename)) and other one uses json and weight model_json = model1.to_json() with open('model1.json', 'w') as json_file: json_file.write(model_json) model1.save_weights('model1.h5') print('Saved model t...
james james
1

votes
0

answer
34

views

Viewing individual form response shows different id to one given by script

I'm trying to determine how the URLs are structured and I can't work it out. In the url I know that the first ID is that of the form itself but I cannot work out what the second ID is. The code I run gets the most recent response and its ID FormApp.openByUrl(source_sheet.getFormUrl()).getResponses(...
James Gabauer
1

votes
2

answer
60

views

Why wouldn't my ajax run? No errors being thrown

I am trying to get the idof the button when its clicked process it through AJAX like shown in index.php and just echoing it out simply. Howevr when I do that PHP tells me that postid is an undefined index. What's the problem here please? As I am new to AJAX I am following this youtube video. Index....
Jake James
1

votes
1

answer
276

views

Return a random number range between 0 and a variable

I have some JSP that holds a number inside a variable, it looks something like this What I'd like to do is create another variable that gives a random number between 0 and the number stored in this variable. I know that you can use Math.random with Java to do this but I'm unsure how to modify it to...
James Ives
1

votes
1

answer
44

views

Updating a div size based on props in react

I'm trying to implement a side nav bar like how it is shown on this website https://adminlte.io/themes/AdminLTE/index2.html Now I'm trying to basically emulate the expanded nav bar and mini navbar toggle. However, I'm having trouble updating the size of the navbar in react. Here is my nav bar compo...
james
1

votes
1

answer
60

views

Stack slices of numpy array from given indices

I'm struggling to perform the below operation on a numpy vector. I want to take previous_n samples from vector finishing at indices. It's like I want to perform a np.take with slicing of the previous_n samples. Example: import numpy as np vector = np.array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1...
James Schinner
1

votes
0

answer
64

views

gui.openurl not working (no error)

The following code is for an escape menu in a garrys mod server. It's written in lua. I have no idea what the problem could be and I've been working at it for a very long time. There is absolutely no error returned. Here's the full thing: local buttonList = { { name = 'Continue', callback = functio...
1

votes
1

answer
416

views

Performance issue with tensorflow version 1.5

I have recently upgraded from tf 1.4 to 1.5. The process went through smoothly and everything seems to work as before. But I noticed that the training performance has dropped significantly, typically from 30% to 130%. Training time for my models increased from about 1 hour to more than two hours. Th...
James LI
1

votes
2

answer
120

views

Converting a date from string to object in PDO

I following this course on PHP and I'm really lost on this bit. The point is to be able to manipulate the date using a class. PDO Registered on When I load my page, I have three errors: Notice: Undefined variable: dates in /Applications/XAMPP/xamppfiles/htdocs/Side-Projects/Courses/PHP:SQL/Learn...
James Harrys
1

votes
1

answer
490

views

converting a “gif” to video using swift

I've looked around and found a few things here and there, mainly that I should be using AVAssetWriter to do this but I have 0 experience with this and video editing/creation so it doesn't help me much since I can't seem to find anything that does something I can modify easily (or not at my level of...
James Woodrow
1

votes
1

answer
59

views

Parent Dialog Closes When Child Dialog is Closed

I have a form that I open using ParentForm.ShowDialog(). Inside this form I call: using (var form = new ChildForm()) { var result = form.ShowDialog(); if (result == DialogResult.OK) { this.Cancelled = false; } } I'm getting odd behavior when the child dialog is closed, the parent (calling) form also...
James Wadsworth
1

votes
1

answer
276

views

Scrollify jQuery plugin has broken Bootstrap Scrollspy

My Bootstrap Scrollspy was working perfectly until I added the JQuery script Scrollify. I had to change the JQuery script from slim.min.js to the min.js version but I don't think that is the problem. Me Tech Challenge BBC Sport Student Mentor MTA Cert TeaFresh The nav Me ..... The text The text div...
James Fisher
1

votes
0

answer
114

views

Error when importing SCSS in a React component rendered using HtmlWebpackPlugin

We'd like to render one of our React components to static HTML, so it's in the index.html returned by the server. Rather than the code doing this while the server is being started, we'd rather the HtmlWebpackPlugin render the React component into its generated index.html. This is possible and it wor...
Calum James
1

votes
0

answer
66

views

a special character “\u9d28”(鴨) in SourceHanSerifTC-Light cannot show in PDF

the Code is in followings PdfWriter dest = new PdfWriter('o.pdf'); PdfDocument pdf = new PdfDocument(dest); Document document = new Document(pdf); string chFontPath = 'c:\\windows\\fonts\\SourceHanSerifTC-Light.otf'; PdfFont font = PdfFontFactory.CreateFont(chFontPath, PdfEncodings.IDENTITY_H, false...
James Wu
1

votes
1

answer
227

views

Extending in a media query in Sass and Bootstrap 4

I am updating to the new Bootstrap version 4 which now uses Sass over Less, and my application that uses Bootstrap used the Less files directly rather than the fully compiled css distribution. But now I've hit a snag - I understand that Sass doesn't allow you to use an @extend within a @media query,...
Dean James
1

votes
1

answer
57

views

Removing identifier with “unavailable sequence” from FASTA file

I'm new to perl and regex, but have used the guidance from this article to try to remove gene sequences in a FASTA file that have either 'Sequence unavailable' or 'No UTR is annotated...' for a given identifier: https://www.biostars.org/p/127842/ Unfortunately, my perl script is not producing the de...
James Sheppard

View additional