Andrew Andrew

17989 questions
1

votes
0

answer
859

views

How Hyper-V DNS resolution works and how to fix VM registration delay?

I have created Virtual Switch in Hyper-V management console (Windows 10) connected to the internet via ICS and launched a virtual machine (Linux) connected to this switch. I named virtual machine m1 in the Hyper-V console. When it is up and running, I ssh to the machine by the assigned address (192....
Andrew
1

votes
3

answer
83

views
1

votes
1

answer
99

views

How to set the responsive width of Polymer component inside `<iron-list grid>`

Consider the following code, where always has a fixed width of 200px inside Polymer Element Test Case iron-list-grid-calc-issue .content { width: calc(50% - 32px); /* Not working */ width: 200px; height: 200px; line-height: 200px; text-align: center; border: 1px solid grey; box-sizing: border-box;...
Andrew See
1

votes
2

answer
722

views

Code for joystick on sense hat

I just got a sense hat for Christmas, and I am working through the following website: https://projects.raspberrypi.org/en/projects/getting-started-with-the-sense-hat. When doing the joystick part of the website, i typed in this code: from sense_hat import SenseHat sense = SenseHat() while True: for...
Andrew Bell
1

votes
0

answer
75

views

Is Dependency Injection with AngularJS and Webpack superfluous?

I'm working on an AngularJS application and trying to convert it from a Gulp bundling system over to Webpack. I've been searching for some time now for arguments for/against utilizing the AngularJS dependency injection in tandem with require() statements for Webpack dependency graphs. Why might some...
Andrew Craswell
1

votes
1

answer
389

views

MVC using VS2017: The name 'Model' does not exist… and other errors when I create a new controller

Hello to everybody at Stack Overflow and please pardon me if I am missing anything here! I am studying ASP.NET to prepare myself for an internship. To this end, I am following along with a Microsoft Virtual Academy course entitled 'Introduction to ASP.NET Core with Visual Studio 2017'. Specifically,...
Andrew Lau
1

votes
0

answer
48

views

Verify the expected scope of an autowired bean?

Suppose there is a bean defined as: @Component @SessionScope public class Person { private int age; public int getAge() { return age; } public void setAge(int age) { this.age = age; } } and a rest controller such as: @RestController public class PersonController { @Autowired private Person person; @...
Andrew S
1

votes
1

answer
829

views

Trying to connect to database using Postgres but it isn't able to translate the address on Amazon server to Amazon database

Getting this error when trying to connect to a database on Amazon. This is from an Amazon server. psycopg2.OperationalError: could not translate host name 'domain-stg-postgres.caxdkvuertc9.us-west-1.rds.amazonaws.com/projectname_dev' to address: Name or service not known I'm setting this here: db['h...
Andrew Alexander
1

votes
0

answer
37

views

Automate maintenance of Authorized JavaScript origins for large number of domains

We are using the google drive sdk on a large number of domains to load the google picker. In order for this to work we need to manually enter all domains in the Authorized JavaScript Origins field of the Developer Console. Additionally, when we remove or change a domain we will have to go back in to...
Andrew Hale
1

votes
1

answer
126

views

CAPABILITY_NAMED_IAM using cloud9

I am trying to do all my dev work using cloud9 template for serverless apps It complains that i don't have CAPABILITY_NAMED_IAM due to the fact that I am creating a role. How do I edit cloud9 deploy defaults to include CAPABILITY_NAMED_IAM?
andrew shved
1

votes
1

answer
30

views

Tweeting a variable or a html classes contents - Random Quote Machine - freeCodeCamp

I'm relatively new to JavaScript. I'm working on the freeCodeCamp - 'Random Quote Machine'. And trying to tweet a variable and or html .class. My code thus far: Code Pen $('#tweet').click(function()window.open('https://twitter.com/intent/tweet?text=' + quote, '_blank');}); I hope someone could give...
Andrew Raynes
1

votes
1

answer
162

views

Button that returns dataframe

I have a Jupyter Notebook that contains a button, some dropdowns, and a dataframe. Essentially, selections are made in a dropdown, and after clicking the button, a dataframe containing values selected in the dropdowns is produced. My dropdowns work perfectly. However, my button does not return the...
Andrew Louis
1

votes
1

answer
88

views

In what cases should I use UUID as primary key in Django models

What are advantages and disadvantages of UUID field? When should I use it as a primary key? When should I use default primary key? My table has many rows. Is it possible that max value of default primary key will be exceeded? I use PostgreSQL.
Andrew Fount
1

votes
0

answer
46

views

Performance issues while passing UDTT[] to postgres Function

I have created a function in postgres that takes a UDTT[] as an importing parameter, and want to eventually insert that data into a Table Example Udtt create type udtt_mytype as ( id uuid, payload int ); And then an example Function is something akin to CREATE OR REPLACE FUNCTION dbo.p_dothething(...
Andrew Moore
1

votes
1

answer
60

views

Enable sort for wpf DataGridColumn which source is converted value

In my wpf/c# project I have datatype with 3 dimensions: length, width and depth. When user inputs those in datagrid the volume for this item is calculated in 4th column using converter. What I want is to enable sort for this column. I tried to put SortMemberPath to Converter return value, but this d...
Andrew Miller
1

votes
0

answer
205

views

Angular 5: How to load multiple custom child components for a screen?

Background I'm writing an enterprise application in Angular 5. One of the large screens I'm working on has many tabs and child components. A majority of clients will get the same version of the screen, but a client or two want custom changes under a couple of tabs. Question How do I dynamically load...
Andrew
16

votes
4

answer
31.1k

views

Fortran unformatted file format

I don't understand the format of unformatted files in fortran. For example: open (3,file=filename,form='unformatted',access='sequential') write(3) matrix(i,:) outputs a column of a matrix into a file. I've discovered that it pads the file with 4 bytes on either end, however I don't really understan...
Andrew Spott
1

votes
0

answer
77

views

Is there any product tour library for use with polymer / web component?

Is there any product tour library for use with polymer / web component? Such as intro.js/Shepherd to guide user on web app build on polymer-start-kit?
Andrew See
1

votes
1

answer
153

views

Dynamic delimiter in DFDL

In DFDL of a delimited file in IIB, is it possible to make the delimiter as dynamic? Or is it possible to override the Separator of a DFDL while writing out a delimited file?
Andrew Femin
1

votes
1

answer
95

views

Every time I launch tests, asp.net mvc project starts building

I have a problem: when I launch my asp.net mvc application it always starts building even without any changes. I found that I can't prevent this, but it bothers me when a launch tests too. Project isn't REbuilt and it skips already built files, but even so it takes about 30-40 seconds for each launc...
Andrew Vorobyov
1

votes
0

answer
168

views

Ag-grid - button causing page reload

I've got a component that uses ag-grid. The component is eventually rendered inside a form element on another page. (I don't have any control over that situation.) In the grid I have a filter button on each column like this... The red circle shows the button. The problem occurs when the user clicks...
Andrew Cooper
1

votes
1

answer
75

views

Running random operations over vector, conditional

I am doing some modelling and wish to simulate randomness. I have a total number of runs run_times which is 5 in this example. A vector holding run_lengths will print 1's for which, so if run length is 3, it prints 1's 3 times. The sample_data includes a sample of 1's and 0's. The application of p...
Andrew Bannerman
1

votes
0

answer
40

views

Using (column-span:all) after (break-after:always) introduces huge gap. Why?

When using column-count in a div, if the children are in the following order: text div with break-after:always text text with column-span:all Then there will be a large gap above the 4th child. Further, this gap seems to shrink as the column-count number increases. Is there a way of styling elements...
Andrew
1

votes
0

answer
77

views

Firebase throws java.lang.reflect.InvocationTargetException when trying to store an android.location.Address to Firebase

With Firebase Database in Android, I'm getting the RuntimeException when trying to setValue() using an subclass (ExtAddress) of class android.location.Address. While checking out the Address source code here, I don't know what are the conflicts between the Address class with how Firebase handles set...
Andrew Lam
1

votes
0

answer
288

views

Cordova geolocation plugin causes build error

I have a cordova application with two platforms enabled, ios and android. I am attempting to use the geolocation plugin, but I get an error message during builds. Running 'cordova build ios' or 'cordova build android' produces the following output at the start of the build: Discovered plugin 'Geoloc...
Andrew Hnilica
1

votes
0

answer
103

views

How do I filter a foreach loop in Razor? Preferably with JavaScript though I'm pretty sure with how MVC works it won't be possible

Sorry in advance for the probably super simple question, and for my terrible programming vocabulary. Please let me know if I need to add any more info. I have an Umbraco project I'm working on but I'm a bit new to Razor and how everything interacts with each other. I've populated a table with a fore...
Andrew Massery
2

votes
1

answer
29

views

How to get angular item from $event?

I display on page an array of arrays of objects. And every object has a click event. I want to replace that many clicks events (now it is more than three thousand click events) by one click on wrapper. For example, current code {{cat.name}} + - Desired code {{cat.name}} + - But in event.target I get...
Andrew G
1

votes
1

answer
21

views

How do I observe the current selected view inside <my-view1> in PSK?

In Polymer-Starter-Kit, how do I observe the current selected view inside , so that I can create an observer and only trigger it whenever the is selected/visible?
Andrew See
1

votes
1

answer
124

views

Gmail add-on says 'Invalid add-on' in one G Suite account (but not another)

We've developed an add-on, but whenever we try to install it we get an 'Invalid add-on' message. This is when adding the ID directly into the Gmail 'Add-ons' tab. I've copy-pasted it into another G Suite account, and it works fine. So I'm assuming the problem can't be with the code - it must be our...
Andrew West
1

votes
1

answer
47

views

Refreshing safariViewController causes OAuth2 to fail

I made a similar question about the library in question (Keycloak), but I feel it may actually be related to code outside the library. I am trying to use a Safari View Controller with Aerogear OAuth2 in order to login via Google. However, when trying to log in, if you try to refresh in the middle of...
Andrew Alexander
1

votes
0

answer
617

views

ReactJS Post with Express, GraphQL, and SQLite3

I am trying to post data to a SQLite DB from a form. Very new at React so please bear with me. Now in my Register.js form code, I have an action='/graphql'. I'm hung up on how exactly to route that POST to my graphql mutation code and ultimately to a SQLite insert (which I'm still missing I believe)...
Andrew Hummel
1

votes
0

answer
269

views

Idea Intellij doesn't see classes's metamodels

I use JPA 2.0 and criteria queries. For criteria queries I need metamodels of classes, so I've added org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor in Idea Intellij and set 'generated' folder for metamodels. Also I've added dependence 'hibernate-jpamodelgen' in build.gradle file. After buildi...
Andrew Valevskiy
1

votes
1

answer
87

views

Web UI not generating JS bundle file

Running the latest version the web ui pulls up and I can see the image assets but the app.bundle.js returns a 404. Do I need to do anything to build that file or something? Cannot GET /assets-wp/app.bundle.js
Andrew M
1

votes
0

answer
55

views

How to compile Android Monogame on Nemerle?

Can I develop MonoGame for Android with Nemerle ? I need help setting up 'Hello World' project (which targets and which references should be used?) Please let me know if you need additional info. Thank you.
Andrew Vinichenko
1

votes
0

answer
354

views

Results of SURF keypoint dection and FLANN matching between images vastly different for C++ and Python OpenCV libraries

I've implemented a workflow of matching keypoints between images in Python, and I'm in the process of converting it to Objective C++, for use in an iOS project. I'm using OpenCV 3.4 on both platforms. Though I'm matching my code, the results seem vastly different. Python implementation: def simple(s...
Andrew
1

votes
0

answer
212

views

R Jags Multinomial error “length mismatch in node:setValue”

I am trying to run a multinomial model in rjags and I keep getting this error Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, : Error in node dmulti(b,639) Length mismatch in Node::setValue Here is the code that creates the error: n = c(294, 307,38) m= c(288,...
Andrew Gregory
1

votes
0

answer
21

views

Pivoting a large table

I have a very messy table with two kinds of columns, a 'start' point and a 'end' point. Wherever the start point occurs, there is a 1, and wherever the end point occurs, there is a 1. All other cells are filled with zeros, so each row only contains two 1 values. Here's a general idea of what it look...
Andrew Louis
1

votes
1

answer
88

views

how to use aws public ips with elixir

Have 2 iex shells running on different servers in EC2 but when I try to connect from one to the other I get this error: Node.connect :[email protected] ** (ArithmeticError) bad argument in arithmetic expression :erlang It looks like elixir doesn't like that the hostname has dashes in it. How can I cha...
Andrew Dixon
1

votes
0

answer
250

views

Should I delete underlying persistent store files after calling destroyPersistentStore on a NSPersistentStoreCoordinator?

I'm migrating my iOS app to use NSPersistentContainer. This class by default locates its persistent store files in the Library/Application Support directory; previously my store files were stored in the Documents directory. I've added a little bit of code to move the store files if they were found a...
Andrew Bennet
1

votes
1

answer
83

views

Code Structure for Very Simple c++ Text Adventure

I'm trying to write a simple text adventure game in c++ but as its now getting longer I am looking for advice on how to structure my code better. The game is very simple, its really more of a chance for me to play with c++ as I am relatively new to it. I print a block of text to the terminal, ask t...
Andrew

View additional