Brian Brian

12014 questions
1

votes
1

answer
343

views

Multiple Left Joins in MS Access using sub-queries

I'm trying to run a query with multiple left joins. I understand that MS Access has additional parameters requiring () around the joins, otherwise I get a 'Missing Operator' error, however I'm using sub-queries which adds even more complexity. I can't figure out the syntax. Can someone help? Here is...
Brian Michael
1

votes
3

answer
37

views

How to Concatenate Any Number of Arrays and Returns a Copy of the Array As Many Numbers Specified

I'm trying to set up a function that takes an array (as the first parameter) and a number (as the second), that which returns a copy of the array as many numbers as specified in the second parameter (i.e. if the array is [1,2,3] in the first argument and the number 4 is the second argument, the func...
Brian Aquino
1

votes
1

answer
49

views

spark scala create column from Dataframe with values dependent on date time range

I'm trying to create a new column from a dataframe that lets say looks like names|birthtime-datetime| joe|2017-03-29 2:23:38| mike|2017-03-29 3:53:38| mary|2017-03-29 11:63:38| ..... I want to add a column that based on if the DateTime column is in a range gets a int. let's say in this case there ar...
Brian
1

votes
2

answer
31

views

filter or label rows based on a Scala array

Is there a way to filter or label rows based on a Scala array? Please keep in mind in reality there the number of rows is much larger. sample data val clients= List(List('1', '67') ,List('2', '77') ,List('3', '56'),List('4','90')).map(x =>(x(0), x(1))) val df = clients.toDF('soc','ages') +---+----+...
Brian
1

votes
2

answer
32

views

Select a random item from json imported dictionary

I'm trying to select a random player from an imported json file. data = json.loads(source) randPlayer = data['areas']['homes'] randP = random.choice(randPlayer) print(randP) Here is a code I tried, basically in 'homes', I have a list of player names and I want to select one at random. Err Output Sou...
Brian Naranjo
0

votes
1

answer
14

views

AWS S3 - Allow public to view HTML files

I am looking to allow public users to view HTML files located on an AWS S3 bucket on their browser. These HTML files are created and uploaded to my S3 bucket via node.js, and a URL linking to the file is generated. I am using this method to upload the HTML files: s3.upload({ Bucket: bucket, Key: 'H...
Brian
1

votes
2

answer
697

views

Need 'e-novative DocBook Environment (eDE)' Install Files [closed]

The 'e-novative DocBook Environment' is a brain dead simple DocBook toolchain built specifically for the Win32 platform by a company called e-novative GmbH. The company appears to have went out of business. Their website [http://www.e-novative.de] is dead and apparently the install files for their D...
brian newman
0

votes
0

answer
4

views

Problem installing bundler, Says it installs, but then doesn't actually install

I am setting up a new system. I'm using rbenv instead of rvm because rvm changes the definition of 'cd' and that's just evil. I've got the required version of ruby and rails (I think) installed, but bundler is causing problems: turlingdrome$ gem install bundler ERROR: While executing gem ... (Errn...
Brian Postow
0

votes
0

answer
5

views

Is it possible to change the id of a group using gitlab API?

I'm using python-gitlab to crate a gitlab group. Is it possible to determine the id of the group that I created? The following code doesn't work: import gitlab gl = gitlab.Gitlab( 'http://my-gitlab.com', private_token='' ) # the id of the newly created group can't be determined by the id inside `gr...
Brian
0

votes
0

answer
2

views

Google heat map not showing in Xcode

I am trying to call data from firebase using google heatmaps. for some reason my simulator is just showing a white screen for the google map I am trying to implement googleHeatmaps that calls data from a database and store onto the MapView as a heatmap. import UIKit import GoogleMaps import Google...
Brian
0

votes
0

answer
5

views

How do I create a lookup table in my application using JPA and Hibernate?

I have an application that uses JPA and Hibernate. I have an entity called Person that has several fields that I would like to use lookup tables for. For example, there is gender, which [I believe] should look like this: @Entity @Table(name = 'genderLookup') @EntityListeners(AuditingEntityListener.c...
Brian
1

votes
1

answer
327

views

Using a function-generated column in the where clause

I have an SQL query, which calls a stored SQL function, I want to do this: SELECT dbo.fn_is_current('''{round}''', r.fund_cd, r.rnd) as [current] FROM BLAH WHERE current = 1 The select works fine, however, it doesn't know 'current'. Even though (without the WHERE) the data it generates d...
Brian Postow
1

votes
2

answer
1.7k

views

Change Instance type of a cluster registered ec2 instance

I have an Amazon EC2 instance which is registered to a cluster of Amazon ECS. And I want to change this instance's type from c4.large to c4.8xlarge. I'm able to change its type from c4.large to c4.8xlarge in AWS console. But after the change, I found [ERROR] Could not register module='api client'...
Brian
1

votes
1

answer
4.2k

views

Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() error laravel 5.4

I am uploading a laravel 5.4 project to cpanel server. And i am serve with PHP Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos() on server. I have done composer require symfony/polyfill-iconv However, it does not change the error message. What thing i might miss out?
Brian Ruchiadi
1

votes
2

answer
1.4k

views

fo-dicom - How can I download dcm images from PACS and save them?

I'm trying to download dcm image from PACS server, but this is generating an empty dcm file. Following is the code: public void VisoresPacsController(string ipAddress, string aeTitle, string accessId, int port) { /* this.ipAddress = ipAddress; this.aeTitle = aeTitle; this.accessId = accessId; this.p...
0

votes
0

answer
3

views

Error Importing Pyro after source install for Anaconda release of Python

I downloaded Pyro using source install instructions here under the Install from source link because I was always told not to use pip when installing to an Anaconda installation. When I try import pyro I get the attribute error below which does not make sense import pyro Traceback (most recent call...
Brian Wiley
1

votes
1

answer
47

views

Is there a fix for my code not declaring an int to what I select it to be in a if else loop?

When I run and test the code, I select 2 for the second option, but when I do, it reverts it to 1 and selects the first option in my if-then loop. I've tried moving the declaration to right below the console input, and I've tried using other numbers besides 2.I moved the console output so I know wha...
Brian
1

votes
3

answer
59

views

Check if a string does not exist in multiple arrays

Trying to check and see if a string value is NOT a member of two different arrays. If the string value does not exists in any of them, then i need to perform a statement. I was able to do it with an if statement.... if [[ $REQ_FIELDS_LIST != *'$XFR_FIELD'* && $NON_INPUT_FIELDS_LIST != *'$XFR_FIELD'*...
Brian Gurka
1

votes
3

answer
68

views

How to generate random data off of existing sample data?

I have a set of existing data, lets say: sample_data = [2,2,2,2,2,2,3,3,3,3,4,4,4,4,4] off of this sample data, i would like to generate a random set of data of a certain length. This should not be off of the sample data, but off of a distribution that was generated off of the sample data. expected...
Brian Chen
1

votes
2

answer
42

views

function to create multidimensional array [duplicate]

This question already has an answer here: Numpy: cartesian product of x and y array points into single array of 2D points 11 answers I would like to create a function that adds together a 3 element array. with other 3 elements arrays to create a multidimensional array, for instance, with 2 arrays:...
Brian Barbieri
1

votes
2

answer
45

views

Dynamically generate SVG with images inside?

AngularJS app. Basically I've to make an horizontal arrow-like drawing with images that will be repeating inside depending on the array of items i sent to the html(ng-repeat). I got told the best would be svg so here I am, but my knowledge of svg is pretty low. So I managed to make a little arrow wi...
Brian Suárez
1

votes
2

answer
48

views

reformatting dplyr summarise_at() output

I am using summarise_at() to obtain the mean and standard error of multiple variables by group. The output has 1 row for each group, and 1 column for each calculated quantity, per group. I'd like to have a table with 1 row for each variable, and 1 column for each calculated quantity: data % summaris...
Brian Guay
1

votes
2

answer
44

views

How to spool to multiple files within a loop?

I am using Oracle 12c. I have a table of EMPLOYEES that looks something like this: EMPLOYEE_NAME | DEPARTMENT_NAME --------------|---------------- Jim | Sales Barb | Marketing Paul | Sales Frank | Sales Cindy | Accounting Carl | Marketing ... and...
Brian Giroux
0

votes
0

answer
24

views

How to Write a Function that Accepts Two Callbacks and Invokes Them in Order?

Note: This exercise is specifically asking me to do this with callbacks and not promises Currently, I took some time to checkout if there were in any similar solutions to the problem that I had (which I did find, but it wasn't quite clear on how to go about doing it as the solutions seemed a bit mor...
Brian Aquino
1

votes
1

answer
100

views

Objective-C protocol delegate not working

I want to send back an array of objects to myViewController from myRenderer In myRenderer.h: @protocol myProtocol; @interface myRenderer : NSObject @property (weak) id myDelegate; @end @protocol myProtocol - (void)sendToMyViewController : (NSMutableArray *) objects; @end In myRenderer.mm (C++ / o...
Brian Scherady
1

votes
0

answer
151

views

Dynamically add PropertyChanges to a State in QML

Is it possible to extend or dynamically add property changes to a qml state? For example Item { id: myItem; state: 'opened'; states: [ State { name: 'opened'; PropertyChanges { target: myItem; height: 100; } }, State { name: 'closed'; PropertyChanges { target: myItem; height: 10; } } ] } but later I...
Brian
1

votes
1

answer
360

views

Setting multiple inbound-channel-adapter at runtime

Using spring-integration-sftp, what is the recommended way to create an arbitrary number of inbound-channel-adapter objects? My application needs to monitor multiple remote directories (1 to n), which will not be known until runtime.
Brian K
1

votes
1

answer
107

views

How to evaluate the URL Parameter value in JS Script in paw

I need to create a sign method in JS Parameter. I use some variables like Environment Variable or the Secure Variable in some parameter, and in the sign parameter I need to get the evaluated value of them, but I got undefined. Is there a way to get the evaluated parameter's value?
Brian Wang
1

votes
2

answer
1.3k

views

DispatchingActivityInjector returns null

Okay, so I've been beating my head over this one for quite a while. My application fails pretty much immediately due to a NPE at AndroidInjection.inject(this) on my activity... The problem appears that DispatchingActivityInjector (injected) returns null but I don't know where I went wrong. Anyways...
Brian Burgess
1

votes
0

answer
703

views

Testing localStorage with Jest & React

I am using Jest to test my react app and I have a component that parses some state data from localStorage in the componentwillmount method and saves it to it's state. Like this: componentWillMount() { let keys = Object.keys(localStorage); let data = []; keys.map((key) => { if(Date.parse(key) && mome...
Brian McCall
1

votes
0

answer
214

views

How can I play an audio stream from web request?

I want to play an audio stream from web request. I send the request to TTS API Url and then received the result stream. How can I play it without saving it in my disk.
Brian
1

votes
0

answer
208

views

Unreliable Query results from an Access DB with a PHP PDO odbc connection using the MDBTools driver

I'm on a Ubuntu 16.04 box, and have connected to an MS Access database via PHP PDO. I am using the MDBTools odbc driver. To prepare for this, I ran the following commands in the terminal: sudo apt install php7.0-odbc sudo apt install libmdbodbc1 sudo service apache2 restart sudo ln -s /usr/lib/x86_6...
Brian Gottier
1

votes
2

answer
220

views

Unable to push to github with EGIT

I have been trying to configure Eclipse (Oxygen) to be able to push to a repository on github, but to no avail. I have been trying many different configurations and using the command line, TortiseGit and Atlassian Sourcetree. I have had varying levels of success with all the others, but not with EG...
Brian Utterback
1

votes
1

answer
143

views

Integer is required (got type str): using ipyparallel and jupyter

I'm trying to get ipyparallel working. I'm following the Getting Stared guide but the basic functionality isn't working on my machine. I launch a cluster from the command line ipcluster start -n 4 and then I run the script: import ipyparallel as ipp c=ipp.Client() print(c[:].apply_sync(lambda : 'He...
Brian
1

votes
1

answer
304

views

Material-UI-Next Single Line Grid List doesn't have a horizontal scrollbar like it does in the example component

https://material-ui-next.com/demos/grid-list/#single-line-grid-list If I copy and paste this code into my project I get the same grid list sans the horizontal scrollbar. I can still scroll with touch controls in dev tools or click my mouse wheel, but that scrollbar is important for my project. Anyon...
Brian Patrick
1

votes
1

answer
187

views

How to build picadoh/motocker docker image?

How can I build the Dockerfile here? I git clone it and run docker build .. Then I got the following error: Sending build context to Docker daemon 3.072kB Step 1/8 : FROM python:2.7-alpine ---> 0781c116c406 Step 2/8 : MAINTAINER Hugo Picado ---> Using cache ---> 3b9485bbb02b Step 3/8 : RUN pip inst...
Brian
1

votes
1

answer
37

views

How to have Xamarin library project reference another library project

I have created a solution in Xamarin (Visual Studio for Mac) that has: MyGame (solution) > MyGame > MyGame.Droid > MyGame.IOS > MyLibrary
Brian Rice
1

votes
0

answer
59

views

Node.js route error when clicking buttons in .ejs file

I have an edit and delete button in a .ejs file, and problem is that when i click the delete button I am redirected to the edit view file instead of delete code which will delete the data from the database, a second problem is when I try to edit something in the edit view page it doesn't update the...
Brian Polanco
1

votes
0

answer
313

views

Jupyter Notebook not adaption to protocol 5.1

Just swtiched from a MBP to a ThinkPad, Windows 10. Fresh download of Python 3.6. Fresh download of jupyter, pip, not conda. Tried to start kernels and the console kept looping through the below. Cleared cache, attempted to upgrade jupyter, jupyter_client, switched browsers, all to no avail. Any...
Brian Mauck
1

votes
0

answer
173

views

Custom migrations for PostgreSQL Materialized View with SQLAlchemy

I'm trying to auto-generate migrations for materialized views in SQLAlchemy, and the only thing that's not working is detecting changes between revisions. More specifically, it always generates a change, even when the model hasn't changed. I think the problem is, and I could just be using the wrong...
Brian

View additional