Ryan-Ryan

12397 questions
1

votes
0

answer
130

views

Laravel - How can I authenticate users from cached user object in Laravel? (using JWT)

I'm using the Laravel Tymon package for JWT user authentication. I'm also caching every user object after a new user is created and saved in the database so that I can load the data faster on selects. The authenticate() method in the Tymon package takes the token as an input and uses the user model...
Ryan
1

votes
1

answer
144

views

How to compile SQLite3 for Linux without warnings?

I am getting hundreds of these warnings when I compile my sqlite3.c file for linux. UATHelper: Packaging (Linux): C:\Users\pbssu\Desktop\Plugins\SQLite3UE4Plugin\Source\SQLite3UE4Plugin\Private\sqlite3.c(17134,5): warning: 'SQLITE_OMIT_AUTHORIZATION' is not defined, evaluates to 0 [-Wundef] UATHe...
Ryan Glen
1

votes
1

answer
174

views

How can I send a 997 ACK through Logic Apps

I am trying to send a 997 ack through logic apps. I have managed to generate the JSON through get the FA returned when decoding a message. I then pass this over to another app which then tries to encode it to X12. The problem comes here, the app throws an error saying that it cannot find the releva...
Ryan Oxtoby
1

votes
1

answer
441

views

React final form multipart data

I am using react-final-form for handling form data in my component. How can I submit multipart form data using react-final-form?
Ryan Dsouza
1

votes
2

answer
89

views

Python3: Search List of tuples for values which have public IP addresses

I am attempting to write a script which pulls data from a sqlite3 db and outputs only specific data which is of interest. I have written a function: def get_ip(db_file): cur = con.cursor() cur.execute('select 'Computer Name','User', 'IP Address1', 'IP Address2', 'IP Address3', 'IP Address4' from Sep...
Ryan Horan
1

votes
0

answer
58

views

Cannot find functions in call graph

I am beginning with Solidity and have begun experiencing this problem in my Contract. I created a test case to show the issue(pictured below with console log included) that is also getting the same error. Functions and events are not being recognized in the call graph and I am not quite sure why bec...
Ryan Cocuzzo
1

votes
1

answer
153

views

Trained model detects almost everything as one class after a long training

I trained a custom person detector using Tensorflow and Inception's pretrained model then after a few thousands of step and an average of 2-1 loss, I've stopped the training and tested it with a live video. The result was quite good and only gets few false positives. It can detect some person but no...
1

votes
1

answer
372

views

State machines: multiple conditions for determining next state?

See end for the TL;DR. Consider a simple magazine article publishing workflow. The following diagram shows a basic, conceptual understanding of the process, which we'd like to turn into code (in this case using Stateless). It covers the basic, 'happy path' of publication, plus a few possible issues:...
Ryan Jendoubi
1

votes
0

answer
230

views

AudioKit - audio engine configuration changes periodically

I have an app that uses samplers to play loops. I am in the process of converting my app from using AVAudioEngine to AudioKit. My app now works well except for this: Approximately every 1-3 minutes, my app receives two .AVAudioEngineConfigurationChange notifications in a row. There is no apparent pa...
Ryan Robinson
1

votes
1

answer
76

views

Accessing all Advanced Custom Field checkbox values

Is it possible to access all values for an ACF Checkbox field available in the ‘Choices’ field settings? These values are being used to populate a filter dropdown, so therefore simply associating these values with a singular $post leads to inconsistent results. i.e. my current approach only work...
Ryan Achten
1

votes
1

answer
393

views

Issue running linux AWS CodeDeploy agent in non root context

I am using AWS CodeDeploy to deploy code to our AWS Amazon Linux instances. I followed this knowledge base article https://aws.amazon.com/premiumsupport/knowledge-center/codedeploy-agent-non-root-profile/ to have the agent execute in the ec2-user context instead of root Before making the change, the...
Ryan Abrahamson
1

votes
0

answer
29

views

ASP.NET Soap Webservice Implicit “Out” Parameters

I'm in the process of modernizing one of my company's older websites. As a part of this process, I need to change a few calls to the webservices we host. I'm a bit new to WCF programming, and I understand that there is an 'old way' and a 'new way' of working with these services. The old version of...
Ryan Brothers
1

votes
1

answer
44

views

Azure Cognitive Service Text API TranslateArray Category Usage

Is the 'Category' attribute in a request to TranslateArray a pre-defined list or open to specify during the request? en pets 0 dog cat fish fr Yields the following response: Argument Exception Method: TranslateArray() Parameter: category Message: Invalid category Parameter name: category message id...
Ryan Fisch
1

votes
0

answer
35

views

Bootstrap Navbar wont play animation

I am having a bit of trouble getting my animation to play when my Bootstrap 3.3.7 navbar collapses upon scrolling from the top of the page. If I change the size of other divs in my navbar in Sublime while BrowserSync is active, it will show the animation but still doesn't work when I scroll. The e...
Ryan
1

votes
0

answer
1.3k

views

Pandas - read_csv encoding error

This is an issue that is quite common for me. So common that it seems I'm missing something (i.e., there has to be a better way). There are multiple posts on SO dedicated to this problem, but they seem to be workarounds rather than an actual solution. So, I have a CSV to read in: df = pd.read_csv(fi...
Ryan Erwin
1

votes
0

answer
372

views

How to pre-fill RDP username & domain using mstsc in powershell

Currently, have two domains in which our users will have machines existing in either or. I am writing a powershell script in which I collect the user name and machine name. I think perform a test-connection to determine which domain the machine resides by pinging $computer.domain.com then if fails p...
Ryan Lynch
1

votes
1

answer
271

views

Media query width 100% not working

Here is a link to the codepen for the code that I am working on. I am trying to get it so that if the device width is less than 540px, the width of the wrapper goes from 33.33% to 100%, however it doesn't seem to be doing so. My media query is as follows: @media only screen and (max-width: 540px) {...
Spencer Ryan
1

votes
1

answer
1.1k

views

Jenkins hide build parameters

I currently have Project-based Matrix Authorization Strategy enabled. I would like to hide certain build parameters from some users when they run a job. Is there a Jenkins plugin available for that? I saw this was asked in 2014 and after 4 years I am hoping that something was created. :) Thank y...
Ryan Johnson
1

votes
0

answer
108

views

What is the Best C# Sortable Serialized List that can be used with DataContract?

As a part of a class, I have some Immutable POCO objects just to act as a Data Transfer Object for a configuration file. [DataMember] public IReadOnlyList Messages { get; } = new List() { new Warning(75, 'UserMessage1', 'LogMessage1'), new Warning(90, 'UserMessage2', 'LogMessage2'), new Error(100, '...
Ryan The Leach
1

votes
0

answer
373

views

C# getting JSON through Cloudflare protection

FIXED - I got this to work by declaring the webclient as a static and then doing the actual call inside a using statement; Now it works if anyone else comes across this. The original issue was it was losing the Cookies after the initial call. I'm trying to implement the first answer to this questi...
Ryan
1

votes
1

answer
392

views

How to write/append PING results to output file

Fairly new to Python so forgive the basic question and my repetitive coding. I'm trying to write a script that PINGs a network segment then writes the results to a couple of TXT files. I have the PING scan part working just fine with some code I found online, just cant get the results to save in th...
Ryan
1

votes
1

answer
33

views

Beautifulsoup: extracting links from a file that links were already taken from

I'm trying to write a web searching algorithm and on my first time through the site, I call beautifulsoup on it. I then use find_all on it and it returns a list of 'a' class. Within this a class, there is a collection of data, but i'm trying to create of list of the URLs. Here's my code: soupcurren...
Ryan
1

votes
0

answer
43

views

How to conditionally apply aggregate function across data set in R

I have a data set that looks like the following: | ID | Date | Stage | |----|:----------:|-----------:| | 1 | 2/1/2017 | Activity 1 | | 1 | 4/1/2017 | Activity 2 | | 1 | 5/15/2017 | Activity 1 | | 1 | 5/20/2017 | Outcome 1 | | 1 | 9/25/2017 | Activity 3 | | 1 | 10/1/2017 |...
Ryan
1

votes
2

answer
42

views

Mobile Content Stuck in Middle of the Page?

I'm not sure why it's doing this but my jumbotron and my nav are all pushing to the left side of the screen and even making their position absolute and top, right of 0 isn't helping. The furthest they'll go is the middle of the page. I've added a picture of the problem as well as my HTML and CSS cod...
Austin Ryan
1

votes
1

answer
31

views

Linux Grouping and Counting Files by attribute

I am trying to return a list of the months that files were created using the following code. ls -l|awk '{A[$6':']++}END{for (i in A){print i' 'A[i]}}' I am using the below code to validate each output. ls -la | grep -c 'Jan' However as you can see from my output: : 1 Jan: 19 Feb: 11 Mar: 28 Apr: 10...
Ryan G
1

votes
1

answer
1.7k

views

Getting CUDA out of memory

Im trying to train a network but i get, I set my batch-size as 300 and i get this error,but even if i reduce this to 100 i still get this error,and more frustratingly for running 10 epoch on ~1200 images it takes about 40 minutes,any suggestions what is going wrong and how may i speed the process! A...
Ryan
1

votes
2

answer
383

views

Unable to write data to Firebase real-time database with Swift 4

I have installed Firebase/Database in my cocoa pods, configured it in my AppDelegate, imported my Google plist, turned the read and write permission to true, and in viewDidLoad(), I wrote let rootRef = Database.database().reference() rootRef.child('users').setValue(['name': 'Ryan']) rootRef.child('u...
Ryan Jin
1

votes
1

answer
540

views

sailsjs send a file on the fly with res.attachment()

I would like to send a file to a client using something like res.attachment() in sailsjs. I do not want to store the file on the server at all, I simply want to generate it constantly and send it to the client. For example, my controller looks like this file: function(req, res, next) { var name = re...
Ryan de Kock
1

votes
2

answer
610

views

Joining several tables: table specified more than once error

I am attempting to call data after joining all of my tables in a postgreSQL query. I am getting the following error: Error in postgresqlExecStatement(conn, statement, ...) : RS-DBI driver: (could not Retrieve the result : ERROR: table name 'place' specified more than once ) Failed to execute SQL...
Ryan
1

votes
2

answer
23

views

Scala--How to get the same part of the two RDDS?

There are two RDD: val rdd1 = sc.parallelize(List(('aaa', 1), ('bbb', 4), ('ccc', 3))) val rdd2 = sc.parallelize(List(('aaa', 2), ('bbb', 5), ('ddd', 2))) If I want to join those by the first field and get the result like: List(('aaa', 1,2), ('bbb',4 ,5)) What should I code?Thx!!!!
Ryan Wang
1

votes
0

answer
173

views

start: Job already running: Unity7

I am setting up the Claymore DualMiner Software and, after executing start in the folder's directory (in the terminal)to begin the mining, I receive this message: start: Job is already running: unity7 I don't understand how this could be possible. All help is greatly appreciated.
Ryan Cocuzzo
1

votes
1

answer
101

views

Exclude SVG from gulp-svg-sprite build process

I'm currently building an SVG Icon system using gulp-svg-sprite and have run into a situation where I need to exclude some icons from the build process. Is there a way to EXCLUDE an SVG from running through these 2 pipes? Somehow I need to get the src filename and compare it to the SVG I want to exc...
Ryan Belisle
1

votes
0

answer
637

views

Is there anyway to bring up the color picker in VSCode when writing JS/JSX files?

When using React, it would be nice to be able to have access to a color picker with hex code when using inline styling. Any extensions or settings out there to remedy this?
Ryan Mcguinn
1

votes
0

answer
167

views

Is this right way to generate the following heavy-tailed distribution?

I'm trying to generate an error distribution which follows a heavy-tailed distribution based on the statement : (2) A heavy-tailed distribution, i.e., t-df=2, a t-distribution with 2 degrees of freedom. This distribution has C95=3.61, where C95 is a measure of the distribution tail weight and defin...
Ryan
1

votes
4

answer
90

views

What does it mean to iterate until it reaches button.length in javascript?

I have this in-line java-script function that creates a paragraph, and is called when a button gets clicked. What I do not understand is the condition code in the for loop. What does it mean to iterate until it reaches button.length? (Seeing that everytime I click the button the eventListener catche...
Ryan Thompson
1

votes
0

answer
168

views

Java 7 : Test connection fails with error DSRA0010E ,SQL state 08s01

I'm trying to create a JDBC connection(from WAS 8.5) using SQLJDBC41.jar with a SQL Database(MS SQL 2012),which is having TLS 1.2 security. When I'm trying to test the connection form the admin console the below error displayed. Do I need to add/delete any properties so that I can fix this issue......
Ryan Edwards
1

votes
0

answer
218

views

PostMessage only works during first ~110ms of application lifetime

I'm trying to send Ctrl+Up to a non-active Spotify window. Although this isn't a reliable method for every app, a PostMessage using WM_KEYDOWN / WM_KEYUP does work... but only if it's the very first thing my program does. After my own program has been running for more than 120 milliseconds, nothing...
Ryan Cavanaugh
1

votes
1

answer
77

views

Getting specific value from Swift array

So, I'm download data from an API using SwiftyJSON. I'm converting it, and looping through to get all of the results. I'm trying to get a specific part of each result to print out, but I can't seem to get it working. The code I'm using below takes the json, and loops through it and prints out what i...
Ryan Nacker
1

votes
0

answer
295

views

Instagram API - posting photos?

I am currently working on an art project that would require an API to post images to Instagram. I was wondering if this API (https://github.com/GitTH/pigram) could be tweaked to post to Instagram from my Raspberry Pi's camera every time a motion sensor is activated?
Tyler Ryan
1

votes
0

answer
37

views

Number of companies who started paying by how long it took them since signing up

In this, I want to record the number of schemes who started paying by how long it took them since signing up from Jan-17 till Dec-17, I wrote this query which it counts the number of companies who signed up 1 month ago(as per month) and not yet paid. SELECT YEAR(c.created_at) 'YEAR', COUNT(IF(MONTH...
ryan

View additional