Steve Steve

12071 questions
1

votes
0

answer
77

views

Nil Out package.loaded Every Time?

Is it good practice to nil out the loaded package every time the script is called? What if the file never changes during runtime? Can I just use require instead of nilling it out first? package.loaded['scripts/common/functions'] = nil...
Steve Stout
0

votes
0

answer
13

views

Different behaviors on jQuery row deselect, and I don't understand why

I have two variations of code, each variation has a desired behavior, and an undesired behavior... But I don't understand why this is happening, or how to combine them to get both desired behaviors. (I've tried different variations of if/else statements trying to get both of the desired behaviors in...
Steve
1

votes
2

answer
170

views

Async event and exception

in ES7 we will be having async and await keyword for JS. It looks very promising for regular functions. But how do we handle exception in async events? for example async badFunc() { throw 'bad'; } var reader = new FileReader(); reader.onload = async function () { await badFunc(); } Based on my under...
Steve
1

votes
0

answer
136

views

JWT authentication and permission_callback

In angular, I have following to get the JWT token for wordpress. import { HttpClient, HttpHeaders} from '@angular/common/http'; ... logIn(){ let loginInfo ={ username: 'admin', password: 'password.' }; let headers = new HttpHeaders(); headers.set('Content-Type', 'application/json'); this.http.pos...
steve Kim
1

votes
0

answer
57

views

serve compressed file with no file extension with .htaccess

I have a website chat plugin script that I've made a local copy of, and uploaded to our website: www.example.com/js/default. webpagetest.org reports this file is uncompressed. In .htaccess, we have: AddType x-font/woff .woff AddType x-font/ttf .ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutp...
Steve
1

votes
1

answer
19

views

Converting command-line cURL where URL is piped to python

I have this command-line cURL example: curl -X PUT -H 'X-Auth-Token: $AUTH_TOKEN' \ -d '{\'data\':{\'name\':\'Device1 Callflow\', \'numbers\':[\'1001\'], \'flow\':{\'module\':\'device\',\'data\':{\'id\':\'$DEVICE_ID\'}}}}' \ http://ip.add.re.ss:8000/v2/accounts/$ACCOUNT_ID/callflows | python -mjson....
Steve Humphrey
1

votes
0

answer
95

views

infinte scroll + imagesloaded + masonry on tumblr API loaded via ajax within shopify

I've been trying to make this work for a while but haven't made any progress. Not sure if I'm missing something or if it just won't work within this setup. In short: client has a shopify site, and wants to load in images from tumblr in an infinite scroll. I'm using the standards from DeSandro: Infin...
Steve King
1

votes
0

answer
351

views

How to make Camel's “Netty4” component output an endpoint's results, but NOT echo back all the input as well?

I am experimenting with using Apache Camel to implement a TCP game server. It will accept bi-directional, synchronous telnet or SSH connections from multiple human or bot players. The communication 'protocol' is a bit crude, and based on legacy infrastructure that's already in place from an earli...
Steve Perkins
1

votes
3

answer
41

views

Console logging comparator boolean in Javascript

Somehow I manage not to get a good answer to this by googling. Java dev here, new to Javascipt. I have this code: console.log('this.props.projectData.length: ' + this.props.projectData.length); console.log('this.props.projectData.length >= 0 : ' + this.props.projectData.length >= 0); output: this.pr...
Steve Waters
1

votes
0

answer
32

views

Get File Names from Windows Share in Web App

I need to get a list of file names from a network Windows Share folder. The following works great when I am running it in my local host environment but gives this error when I try to run it in my web application server hosted on an iSeries(as400 box) - still on same network: HistoricalFileList: ja...
Steve Dyke
1

votes
0

answer
134

views

Installing png in CRAN 3.4.3

I am trying to install the png package in CRAN 3.4.3 on Ubuntu 16.04 via install.packages('png', dependencies=TRUE) but I get the following error message: Installing package into ‘/home/steve/R/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) trying URL 'https://cran.uni-muenster.d...
Steve
1

votes
0

answer
124

views

How to delete references in MonoDevelop

Running MonoDevelop-Unity, version 5.9.6, Mac Using Project->Edit References->.Net Assembly tab I have clicked Browse and added reference to a .dll library generated in another MonoDevelop Project. Now I would like to delete that line as it appears in the .Net Assembly tab. Cannot figure out how t...
Steve Reber
1

votes
0

answer
89

views

calculator parsing wth FSM

I am trying to remember what I have learned in university where we used fsm + parse tree to build a compiler. To start off simple I thought I will try to do it for a calculator first. this is what I have got I can't seem to get what I should do if im in the bracket state and I see another ( and wh...
Steve
1

votes
1

answer
779

views

Work-around for Styled-component not working on Internet Explorer 11

I have styled-components on my web-app. They work great. Except on Internet Explorer 11. They completely break and the layout is just a pile of components laying there horizontally instead of the flexbox and whatnot. What is the usual way to work around this problem? Should I somehow recognize in th...
Steve Waters
1

votes
1

answer
72

views

xamarin forms ios small caps

My designer for our Xamarin Forms app specified Small Caps for a label field. There are several discussions on how to do this in Xamarin for Android, but I can't find anything for iOS. I know I will need a custom renderer and have found a good discussion here, but am being challenged in converting...
Steve Reed Sr
1

votes
0

answer
188

views

Box-Shadow cut off in Safari

I'm having issues with box-shadows being cut off in Safari, but fine in Chrome. I've tried 'overflow: visible', but that isn't working. See link below. li { background: #f7f7f7; width: 400px; height: 200px; display: flex; justify-content: center; align-items: center; } button { background:...
Steve Lamb
1

votes
1

answer
59

views

Backtracking a Javascript Button

My question is, How do I backtrack what a javascript button does. Specifically when it does not have an obvious function as detailed below. I am taking a JS course on Udacity and I'm trying to figure out what happens when I hit the Submit Button. Is this possible and if so, what is the next piece I...
steve
1

votes
1

answer
54

views

Invoking GetProcAddress resulting procedure reports ERROR_FILE_NOT_FOUND

I am accessing a c++ dll library (I don't have the source code) from c++ code. I use this library to mount a usb device so I can access the files on the device. This code worked well in VS2010 but since we updated to VS2013 it no longer works. Here is my question. What differences between VS2010...
Steve E
1

votes
1

answer
171

views

Efficient comparison of 2 double arrays with tolerance - Java

I have a method to check for equality of 2 double[]'s with a tolerance between each element. I'd like to make this faster and am wondering if there is a way to do this without a for loop. I've been searching but can't find something that does this. The Arrays.equals() or deepEquals() doesn't seem to...
Steve W
1

votes
1

answer
91

views

Copy ManyToMany Value

I am currently trying to copy a many-to-many-field from one model to another but running into a bit of trouble. I have been able to create the model fine with a many-to-many-field with a ModelMultipleChoiceField, and the model saves the way I want it to. When I try to copy it to another model, I d...
Steve Smith
1

votes
0

answer
79

views

Relative import

I'm trying to make a dynamic relative import in Python but i'm not sure how to do it. My project is organized like this : . ├── __init__.py ├── requests.py └── serializers.py and I need to do the equivalent of from .serializers import Serializer. I tried multiple time with __import...
Steve
1

votes
0

answer
96

views

Why my JAVA_HOME points to Java 8 even though it has been set to Java 7?

Here's a picture that illustrates the problem perfectly: I have restarted windows after changing that.
Steve Waters
1

votes
0

answer
238

views

grViz diagrammeR: justifying rows of nodes

I am using diagrammeR with grViz to generate a flow chart with multiple rows. The rows are grouped together properly, and the vertical order works well. Is there a way to specify justification of full rows (ranks)? I would like them to be centered. Below is code and an image of the example I am work...
Steve
1

votes
0

answer
34

views

create identical R setup on multiple machines

I need to run a series of analyses on three servers and my laptop. In order to maintain the setup, I want each server to have identical packages (and versions) installed (incl. some of my own packages) as on my laptop. All of the packages and code has been developed and is installed the way I want i...
Steve G. Jones
1

votes
1

answer
131

views

missing metatag description bing

I'm the owner of SafetyStore.com and currently rolling over my site from sparkpay to 3dcart. Updating info with Bing and the test says that my site is missing the Title metatag and Description metatag. When I check the code, they are at line 276 and 282 on the main page. Do I have a syntax error I'...
Steve Hull
0

votes
0

answer
5

views

Can you use reflective injection techniques with .exe files?

I've been reading about reflective DLL injection and the various methods used to implement it. I was just wondering, could you implement reflective DLL injection using an .exe file, or does it have to be a DLL to reflectively inject it?
Steve Mucci
1

votes
2

answer
58

views

Are There Azure AD App Perms Available for Microsoft Teams REST API

I want to start doing some development with the preview edition of the Microsoft Teams APIs. I currently have a solution working using the Azure AD v2 Endpoint but I wanted to get a working solution using the v1 Endpoint. I can't find any Microsoft Teams permissions available in the Azure AD portal...
Steve Peschka
1

votes
0

answer
23

views

Does MSAL Nuget Package Have Config Issues

Are there any known issues with the latest MSAL preview Nuget package? I was able to add it successfully to my project, but now when I go back to manage the Nuget packages for my solution, it won't display anything on the Installed packages page; instead it has an error that says An error occurred...
Steve Peschka
1

votes
0

answer
39

views

Troubleshoot CSS Sourcemap on Firefox 59

I'm using Firefox 59.0b5/64 bit on Win 10. On a new project, DevTools isn't recognizing the CSS sourcemap created with gulp-sourcemap. Sourcemaps created on earlier projects work fine in Firefox so I don't believe it's a Firefox settings issue, and sourcemaps in Chrome DevTools work fine on this pro...
Steve Clason
1

votes
1

answer
50

views

Possible Bug with Get Team Method of Microsoft Teams Group

I think this is a bug, but looking for feedback from Microsoft Teams people. Using the new REST API to get the Team for a Group. What I find is that if I have only the Groups.Read.All permission, it fails with an 'Unauthorized' error. However, if I change my permissions to Groups.ReadWrite.All t...
Steve Peschka
1

votes
0

answer
36

views

Many To Many Field Multiple Users

I'm slowly gaining my knowledge with Django, but this one has me stumped. I am trying to create a form that multiple users need to approve. In doing this, I have created a CreateView with a modelform and that works fine. I have also created an UpdateView, and this works fine as well, with the cav...
Steve Smith
1

votes
0

answer
36

views

Python - Re-run subprocess call when it fails

I have a script that calls a subprocess (speedtest-cli). The script seems to randomly fail with the following error message:- ERROR: timed out ERROR: 'speedtest-cli --share' failed (exit code 1). Retrieving speedtest.net configuration... Cannot retrieve speedtest configuration Traceback (most recent...
Steve W
1

votes
0

answer
33

views

Assign a Sequence (session ID) to my table based on A value in field

I am manually assigning a 'Session ID' to my results set. I did this by ordering all events and if the time difference between the current and next event is greater than 2 minutes, set the 'session' field to 'New Session'. My results set now looks like this. Table name : tbl_sessions ╔═══...
Steve
1

votes
1

answer
109

views

How can I parse the table content from the website using Selenium?

I'm trying to parse the tables present in sports website into list of dictionary to render into template, this is my first exposure to selenium, I tried to read selenium documentation and wrote this program from bs4 import BeautifulSoup import time from selenium import webdriver url = 'http://www.e...
steve
1

votes
1

answer
346

views

UWP C# Read 64Byte chuncks of data from Serial device

I have an arduino device that reads data and sends it in 64Byte chunks. At times it could be reading upto 4MB Serial.write(data, 64); I'm trying to read this data using a UWP app following the Microsoft example: private async Task ReadAsync(CancellationToken cancellationToken, uint readBufferLengt...
Steve Fitzsimons
1

votes
2

answer
35

views

Inserting view into table - view doesn't take long to run - Insert takes forever

I have a view which takes roughly 1 second to return 1000 rows. However when I try to INSERT this into a table it takes a long time (even just 1000 rows). The view itself in FULL returns around 600,000,000 rows. Due to limitations on my machine I can only display 1000 at a time. When I limit the vie...
Steve
1

votes
1

answer
856

views

Jupyter Notebook: Installing R packages

I have seen this question asked various times in stackoverflow, e.g the following: error with install R packages on jupyter notebook Error with install packages R on jupyter notebook Install on jupyter notebook packages R and conda - How to install R packages that are not available in 'R-essentials'...
steve zissou
1

votes
0

answer
60

views

Is Automatic Reference Counting now supported for i386?

As of Xcode 7.3, ARC seems to be working for 32-bit i386 projects. There's no longer a compile error and zeroing out weak references even works. It's even working when running on 10.10. However, I haven't been able to find any documentation stating that 32-bit ARC is officially supported and fully f...
Steve
1

votes
0

answer
37

views

MULTI -DIMENTIONAL ARRAY correct arrangement for JSON_ENCODE

Am i doing this array correctly? this is the sample API from facebook developers in messenger bot '{ 'recipient':{ 'id':'' }, 'message':{ 'attachment':{ 'type':'template', 'payload':{ 'template_type':'generic', 'elements':[ { 'title':'Welcome to Peter'\''s Hats', 'image_url':'https://petersfancybro...
Steve I
1

votes
0

answer
61

views

How to add dc-addons/dc-leaflet.js to an Angular project?

I am building an Angular app with dc and leaflet. The dc charts work fine,but on including the dc.leafletCustomChart for including the map, an error comes up saying dc.leafletCustomChart is not a function. That is because it is an extension of the dc library which is available in dc-addons. Now I h...
Steve Doson

View additional