Brad-

1

votes
3

answer
245

views

In Unity3d test scripts, how do I call a static function from another class?

I have two files in a Unity3d project. One is a test script that runs in edit mode. The other is a single class with static functions that I'd like to call from the test scripts. here's my test script: using UnityEngine; using UnityEngine.TestTools; using NUnit.Framework; using System.Collections;...
Brad
0

votes
2

answer
19

views

convert date based on timezone user is in

I have a date I want to convert based on their timezone. For example, I want to set it in EST time (America/New_York) 2019-04-24 12:00:00 and if the user comes across the site from America/Los_Angeles, it will appear: 2019-04-24 09:00:00 I need to be able to return the hour, so in that example: 9. I...
Brad
-1

votes
0

answer
13

views

How can I use mouse events on videos?

I need to play the second video only when the mouse is down. Once the mouse is up (released) it needs to go back to video 1.
Brad
1

votes
0

answer
126

views

Python - Hierarchical clustering with starting weights

I'm trying to perform hierarchical/agglomerative clustering using Ward's method on 'pre-clustered' clusters. Since these inputs may not have the same cardinality, the updated distances using scipy's linkage function will be skewed. To be clear, I have n input clusters, a compressed distance matrix...
Brad Flynn
1

votes
1

answer
89

views

Time series axis changes in R

I have the following data frame: head(DWPhyto) # A tibble: 6 x 2 date data 1 2008-10-13 200 2 2009-03-25 200 3 2009-05-03 200 4 2009-05-13 200 5 2009-07-20 200 6 2009-12-22 200 str(DWPhyto) Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 1364 obs. of 2 variables: $ date: Date, form...
Brad Skelton
1

votes
0

answer
351

views

Using @DataJpaTest when multiple datasources are configured [duplicate]

This question is an exact duplicate of: Using @DataJpaTest with multiple DataSource and custom repository implementation [duplicate] how to use @DataJpaTest with multiple datasourse 1 answer My application is configured with two datasources, following this example: https://github.com/snicoll-demos/...
Brad Mace
1

votes
1

answer
32

views

How can I transform a vector containing semicolon delimited lists into a presence/absence matrix?

I have a vector and each element of the vector contains a string which is comprised of a semicolon and/or comma delimited list of attributes. What I want to do is take that vector and turn it into a presence/absence matrix for each of the attributes in the list. The approach I have taken so far i...
Brad Davis
1

votes
1

answer
52

views

How can I extract distances measured in different units from a string?

I have a vector containing data describing distances except the units are mixed between meters and feet, and occasionally contains both units separated using a variety of different delimiters. What I want to do is extract the value and convert it into meters. For example, if the element of the vec...
Brad Davis
1

votes
1

answer
42

views

jQuery get last value on onChange

Actually I am writing this code. I need suppose I change input field value like on input field I press from 1 to 1000 then I need last changed value i.e. 1000. But my below code is giving like first it will gives alert 1 then 10 then 100 then 1000. Below is my code. var quantity_timer; $('.cart_quan...
John Brad
1

votes
1

answer
171

views

ModuleNotFoundError in Anaconda3 when installing package with pip

I'm running conda 4.4.8 on mac OS 10.11.16 and I'm trying to properly install a third-party package that I have as a tar.gz file. The package installation seems to work without any issue (having already tried to install, this in what I get when I run it again): $: pip install ~/Downloads/pydelay-0.1...
Brad Cownden
1

votes
0

answer
54

views

Does all the Android apps have notification enabled by default

I’m looking out for a solution in React native to check if notifications is enabled for Android. If not, enable them. I found out a library (React-native-android-permission-library) which works great. But my question here is I find that notification is enabled by default in our app without specify...
Brad
1

votes
2

answer
165

views

How to query data with calculated fields and map to a ViewModel with a nested ViewModel Collection?

I have referenced numerous questions on this site related to calculated fields and ViewModels, but I can't seem to extrapolate from examples given. I hope that laying out a specific scenario would allow someone to pin point what I can't see. I am new to WebApp design in general. Please take that...
Brad Rekkedal
1

votes
1

answer
40

views

javascript image rollover not just on image, but on empty sides too

The rollover works on the image itself, changing from one image to another then back again, but the problem is that it the image also changes on each side of the image on rollover where there is blank space. I know there it can be done better in CSS, but it is a school assignment and must be in jav...
Brad Anderson
1

votes
2

answer
73

views

If-then & lookahead with parentheses in regex

I have a small project that involves grepping through .py files and picking out import statements only of the form from import . In building a regex to capture this, there are two distinct syntaxes involved, best illustrated by example: Syntax #1 uses parentheses and can have newlines enclosed in t...
Brad Solomon
1

votes
1

answer
67

views

SQL query to return results with sub list for each item

This may be a trivial question but I am not finding an answer to it in my searches so any help and or pointing me in the right direction would be appreciated. I think my google skills may just not be asking this correctly. I am trying to return a result set within a result set using a single query....
Brad Christianson
1

votes
0

answer
53

views

Dialog element 'open' event

For the dialog element , is there some sort of 'open' event that is fired when it is shown, either normally or as a modal? The spec isn't totally clear on this, and MDN just lists a bunch of inherited events. The close event does fire, but I can't seem to get any sort of open event. Example HTML: Oh...
Brad
1

votes
0

answer
631

views

Porting Android to run on Raspberry Pi 3

I've recently started looking into running Android on my Raspberry Pi 3 Model B, and have been pretty disappointed with what already exists (e.g. the RT Android project is dead and has been replaced with a paid product, and Android Things isn't really Android). As a result, I started looking into po...
Brad Bondurant
1

votes
2

answer
62

views

How can I compare values to each other in two different pandas dataframes

I have two different pandas data frames. One is called 'price' and it has the schema SKU, price The second data frame is called sales_tracking which contains information about the number of sales for a SKU at a given price. It's schema is SKU, price, total_orders, total_visits But when we add a n...
Brad Davis
1

votes
0

answer
750

views

Passing certificate and key file using C#

We have new process where we need to use certificate file and private key file for web authentication. Files: -----BEGIN CERTIFICATE----- MIIFtjj.......k= -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- MIIEow.......jsTC9bx -----END RSA PRIVATE KEY----- Examples are given for pyt...
brad.v
1

votes
0

answer
1.1k

views

RN 0.38.0 React/RCTBridgeModule.h' file not found

This is a long shot, but I've taken over a project done in RN v .38 and I need to update a library and resolve the build issues without updating the version of react native. I'm trying to update the react-native-aws-cognito-js library and while it looks to be compatible with the formatting change of...
Brad P
1

votes
0

answer
37

views

Adding products automatically restrict quantity to 1 in Magento

I have a module that adds a free product to the cart automatically if a product exists. The issue: If the customer keeps shopping and adds other products. The quantity for the free automatic product increases. What I need: I need the quantity of the free automatic product restricted to 1. He...
Brad
1

votes
0

answer
223

views

Python: plotting an exponential on an axis

I'm currently working on a piece of code to model the evolution of the dark energy equation of state parameter w with the scale factor a. In order to do this I am solving a system of three coupled ODEs, however the derivative used is with respect to e-foldings N = ln(a) (in the code x = w and ln(a)...
Brad
2

votes
0

answer
13

views

Robinhood Faust: How to process results from windowed table?

I am trying to create a tumbling windowed table in robinhood faust whereby events consumed from a topic are windowed into discrete time intervals of 10 seconds and expire after 90 minutes. events_topic = app.topic('events', value_type=Event) event_table = app.Table( 'event_table', default=Event, ).t...
Brad
1

votes
1

answer
319

views

Looping through nested yaml data in .erb file

I'm not overly familiar with YAML syntax and can't seem to find a solution through search. I'm trying to loop through this data file: - category1: title: Title 1 sub: name: name1 desc: desc1 sub: name: name2 desc: desc2 sub: name: name3 desc: desc3 - category2: title: Title 2 sub: name: name1 desc:...
Brad
1

votes
0

answer
81

views

Python: plotting an analytic solution to 3rd order

I'm currently reading through a review paper on quintessence and I want to try and reproduce some of their plots and play around with the free parameters. The equations I'm using are: and I'm trying to get this plot: However, after playing around with the initial conditions, the best fit I can get...
Brad
1

votes
0

answer
278

views

Unreal Engine access violation crashes using third party library code

Some background information first. I'm currently trying to write a c++ class that can parse a file and generate a tree structure from it that I will be able to use for Inverse Kinematics. To do this I'm making use of some ROS libraries that are able to incorporate the functionality that I need, nam...
Brad Matthews
1

votes
0

answer
121

views

Hibernate method that starts with “is”, but isn't a getter

I'm modeling an entity with hibernate. I'm using the JavaFX Property Pattern. I'm using PROPERTY access so Hibernate is looking at my methods for configuration. My problem is the word 'Issue' starts with 'is' and so it seems that Hibernate thinks my property method is a getter for a boolean—someth...
Brad Turek
1

votes
0

answer
139

views

Full Screen Intent Does Not Work

When use android full screen intent, the notification does not do anything and does not give any error messages. Why does this happen? This is the link of the give full screen intent tutorial https://developer.android.com/reference/android/telecom/Connection.html#onShowIncomingCallUi()
Brad Wang
1

votes
0

answer
46

views

net::ERR_ABORTED NGINX EC2 Linux

I am trying to get my Nginx server up and running but get ERR_Aborted error when trying to load the page. My server is an EC2 Amazon Linux AMI and my Ember.js is stored in /distelli/envs/Production/dist/; My NGINX.conf file: server { listen 80; root /distelli/envs/Production/dist/; # server_name...
Brad
1

votes
0

answer
197

views

Outlook form field value in body

I am decent at programming VB for Excel but this is the first time I have tried Outlook. What I am trying to do is create a form that allows me to fill in some data and have that info be populated into the body of an email which would be sent to someone else. I, and others, handle cell phone replac...
Brad
1

votes
4

answer
85

views

Counting Different Types

I have a table named Food which contains a BoxNumber, Analyte, and AnalyteVal column. I need the sum of specific analytes(ana1, ana3, ana4) within those boxes. How can I got about doing this? Raw Data: (Integer) (Varchar) (Varchar) BoxNumber | Analyte | AnalyteVal 1 ana1 5 1...
Brad
1

votes
0

answer
58

views

wavfile_sink: Value nan can not be represented in the target integer type

I have a couple of gnuradio apps that communicate across the internet. The flow graphs are rather complex, so I boiled them down to simplest form to re-create an issue I'm seeing. The issue is that, when I invoke the client, it connects to the server as expected, but immediately throws an exception...
Brad Hein
1

votes
0

answer
129

views

ugettext_lazy/pgettext_lazy not working in Django sub-application

I am translating a Django site with a sub-application. Let's say the top level site is called 'main_site' and the sub application is called 'sub_app'. In main_site, I am using only trans and blocktrans tags for translation (with context markers). After farting around for a day or two, I can now mark...
Brad Smith
1

votes
0

answer
25

views

Exporting to SVG in fabric with svgs doesn't match canvas

We are using Fabric.js 1.7.20. We aren't able (yet) to update to 2.0+. http://jsfiddle.net/tcem4f4L/ The issue is that we are adding SVG objects to the map, but when they get output to an svg, some padding within the SVG causes the rendering to not look correct. The svg x/y coordinates and any lines...
Brad P
1

votes
0

answer
467

views

vue-good-table choose a certain row out of your data to be displayed

So I'm using vue-good-table: https://github.com/xaksis/vue-good-table and I am wanting to create multiple tables when I receive data back from an ajax call. The call is through the facebook API and takes roughly 20 seconds for data to be returned and pushed into the tableModel array. I'm doing v-f...
Brad Goldsmith
1

votes
1

answer
492

views

AttributeError: 'NoneType' object has no attribute 'text' - python

So I've been trying to learn data scraping and I'm using this stock website when I inspect element the price, it shows that: 12,620.83 So when I use that and write this in python: stockPrice = soup.find('div', class_='priceText__1853e8a5') price = stockPrice.text.strip() print(price) It gives me th...
Brad Park
1

votes
0

answer
40

views

How to debug issues with deploying to tomcat from eclipse?

I've inherited a Spring web app. It's a gradle web app project that I've imported into Eclipse. We're using Eclipse 4.7.3, Tomcat 7.0.47 and JDK 1.8.0.151. The problem is that when I deploy the project to Tomcat from Eclipse, some of the dependency jars are not copied to the project lib directory....
Brad Dre
1

votes
1

answer
189

views

AutoMapper select expression translation

I'm trying to understand exactly what select expression AutoMapper will generate for the following mapping. I'm attempting to replicate a bug that only manifests when using AutoMapper projection, but does not with a handcrafted select expression. I am aware that the mapping expression is redundant a...
Brad M
1

votes
0

answer
48

views

How to set up the asset pipeline in an ongoing project in Ruby on Rails 5?

Im returning to this to build a small portfolio site for myself. I have image and code assets that Im trying to incorporate into the rails project Im walking myself through via a Rails Tutorial book and the internet. I was wondering if someone could or had any easy to understand resources or ways to...
Brad G.
1

votes
0

answer
104

views

Executing a dynamic query inside a CROSS APPLY statement?

Given: @Records holds a list of integer ID's #Columns contains information from INFORMATION_SCHEMA.COLUMNS for more than one table (and some other stuff) I'm trying to cycle through the @Records and pivot the column values into a backup table. For example: DECLARE @KeyId SET @KeyId = 1 DECLARE @Reco...
Brad Shennette

View additional