shawn

1

votes
1

answer
125

views

Ansible aws_ec2 inventory plugin issue

I am trying to get started using Ansible and the aws_ec2 plugin. I have the following in my ./ansible.cfg file: [inventory] enable_plugins = aws_ec2 and the following in my ./inventory.yml file: plugin: aws_ec2 aws_access_key_id: ********** aws_secret_access_key: ********** regions: - us-east-2 when...
Shawn Northrop
1

votes
3

answer
27

views

Removing part of string after specific character (from right to left)

I want this to happen: (left side is the full string. on the right side, after the '---->' is the output I want to get) 3.4.2.12 -----> 3.4.2 3.4.2.1-------? 3.4.2 I'm getting this: 3.4.2.12-----> 3.4.2. (note the '.' in the end) 3.4.2.1-----? 3.4.2 (this is good for me) I used this: select LEFT(...
Shawn Bitton
1

votes
1

answer
73

views

Integrate Azure Multi-Factor-Authentication in website to authenticate its users

I have a website (built in PHP), OS of web-server is Linux (Ubuntu) from AWS EC2, I want to integrate Azure MFA in website to authenticate users using 2FA (2 factor authentication), I checked this code using Node JS https://github.com/Azure-Samples/active-directory-node-webapp-openidconnect It is a...
Herry Shawn
1

votes
2

answer
134

views

Auto Format on Visual Studio Code for .cfm files

Does anyone know if there's a way to auto format ColdFusion documents on VSCode the way it does for HTML files?
Shawn Yap
1

votes
1

answer
45

views

No association found for name `user'. Has it been defined yet? Nested Attributes Rails 5

Building a rails 5 app, using devise and acts_as tennant. Not too sure where I'm going wrong, I'm trying to create the account and the owner of the account in the same form under accounts/new. at present I'm getting the following error: ArgumentError at /accounts/new No association found for name...
Shawn Wilson
1

votes
1

answer
32

views

Smoothing a fitted function

Good afternoon everybody, I have been trying to smoothen out a fitted function I have as an output of an exponential fitting process. The lines of code I am using look like: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit x = (0.005, 0.025, 0.05, 0.075, 0.1) y...
Shawn Marion fan
1

votes
0

answer
399

views

Test Actions on Google app on Raspberry Pi running Google Assistant SDK

I created an Actions on Google app which I am currently testing. I was able to test it on my Pixel, but when I tried to launch the app on my Raspberry Pi running the Google Assistant SDK it responded by saying '(name of app) isn't supported on this device'. Is there any way I can run the app on my P...
Shawn Patel
1

votes
0

answer
37

views

Hyphen in FQDN not working with Apache 2.4.18 on Ubuntu?

I am a little confused on this one. I am trying to add a new site to my server which is not that unusual, the issue is this one has a '-' in the FQDN and it seems like Apache is not liking that in the ServerName field Here is my apache config file. If I remove the '-' from ServerName bingo it works...
Shawn
1

votes
1

answer
501

views

Spring Data JPA - findAllBy query checks for null?

The documentation shows that findByLastnameAndFirstname equals to where x.lastname = ?1 and x.firstname = ?2. We know that in sql = NULL is always false. You have to use IS NULL. Let's say we have an entry firstname = 'First' and lastname IS NULL. I call this findByLastnameAndFirstname(null, 'First'...
Shawn
1

votes
1

answer
62

views

WSO2 IS different 'mail.smtp.from' per tenant?

we are running WSO2 IS 5.3.0 with multiple tenants. The question is can we specify a different email smtp configuration per tenant such as the 'mail.smtp.from'? It appears like there is only one file in the IS server for configuring email 'from' address in: /repository/conf/output-event-adapters.xm...
shawn
1

votes
1

answer
70

views

I can't get a Bluetrade API Private Function Call to Work

Here is their PHP Examaple. You can find the entire api at https://bleutrade.com/help/API $apikey = 'YOUR_API_KEY'; $apisecret = 'YOUR_API_SECRET'; $nonce = time(); $uri = 'https://bleutrade.com/api/v2/account/getbalances? apikey='.$apikey.'&nonce='.$nonce; $sign = hash_hmac(...
Shawn
1

votes
0

answer
51

views

Pycharm type hinting window covers typed code

I have an annoyance with Pycharm. When I start typing anything in the window a little window appears (i'm pretty sure it's a type hinting window) and it covers up what I have typed: Under this window I have simply typed print() Anyone know how to move this so it does not block what I've typed? I d...
Shawn
1

votes
0

answer
123

views

Java JVM crash after webview file upload

I want to implement file drag and upload in java webview, however, it keeps crashing JVM when any type of upload is initiated. Tested on latest JDK 8 and 9 on windows 10. I'm lost as to what can be causing this issue. import javafx.application.Application; import javafx.scene.Scene; import javafx.sc...
Shawn
1

votes
0

answer
109

views

How to pass Spring MVC form <form:select> selected value to Spring webflow action class

I am using Spring MVC v4.3.12 and Spring WebFlow v2.4.4. I have problems to use form:select drop down menu pass the value back to WebFlow action class. The bean I am using is: public class Application{ products = new LinkedHashMap(); public Map getProducts() { return products; } /** * @param product...
Shawn
1

votes
1

answer
1.1k

views

SSRS Expression to Get last 12 months

I have created a Reporting Services report that displays the last 12 months data. I have 2 parameters @StartDate and @EndDate. The @EndDate is the current month and I want the @StartDate to be the last 12 months. For example, if @EndDate is Jan 2018. I want the @StartDate to be Feb 2017. I have th...
Shawn
1

votes
2

answer
418

views

Is there a way to easily wrap or extend Angular-material directives in Angular 5?

I am using the angular-material library here and there in an angular5 application, but I don't want its directive/component/class names in my markup, which I prefer to keep agnostic with respect to external libraries. However, I tried doing something like this: import { Directive, ElementRef, R...
Shawn Mercado
1

votes
0

answer
264

views

Spark Streaming groupBy on RDD vs Structured Streaming groupBy on DF (Scala/Spark)

We have a high volume streaming job (Spark/Kafka) and the data (avro) needs to be grouped by a timestamp field inside the payload. We are doing groupBy on RDD to achieve this: RDD[Timestamp, Iterator[Records]]. This works well for decent volume records. But for loads like 150k every 10 seconds, the...
Shawn
1

votes
1

answer
34

views

Getting data out of an XML column using SQL

I have a temp table that contains account IDs and customer IDs and an xml field #tempXML(uniqueidentifier AccountId, uniqueidentifier CustomerId, xml xmlData) The XML field is similar to this where the FieldId is a uniqueidentifier that tells me what data is being stored in the FieldValue field. I w...
Shawn C.
1

votes
1

answer
285

views

SMS url on android with ionic 3 framework not opening messaging app

The sms url works fine on iOS and opens the messages app fine but on android it does not open the messages app and just crashes. Does anyone know why its not opening the messages app on android? home.html home.ts sanitize(url: string) { return this.sanitizer.bypassSecurityTrustUrl(url); }
Shawn Varughese
1

votes
1

answer
772

views

2d isometric maps in libGDX

Im a starting game developer and I'm having some issues with how to setup a isometric 2D map. I haven't got the slightest clue in how I should accomplish that. And what would be the easiest way to do this. EDIT: I already have looked up tutorials but they are mostly to make 3D isometric maps. Thanks...
Shawn Gyina
1

votes
1

answer
377

views

D3 Typescript SVG append not working

I've been able to get numerous different objects to populate correctly on the DOM using D3 and Angular. Angular 4.4.6 D3 4.13.0 types/d3 4.12.0 My problem is the SVG will populate correctly the first time but will not update either through a button or through interval duration. I've tried running th...
Shawn Dooley
1

votes
1

answer
89

views

Basic R output: Show the label and its unclass value & Do not alphabetize/numerically order results

Still learning much about R, having work mostly in Stata & SPSS. 2 part, interconnected questions: 1) How can I get R to NOT produce output in alphabetical order or number order using the first digit(s) of numeric values? Let's say I have a vector of factor data representing numerical info (counts a...
Shawn Janzen
1

votes
0

answer
361

views

Vue I want an image to follow the mouse

I am having trouble with a Vue component https://jsfiddle.net/shawnswebsites/fep1p02c/20/. I have a div in the component and when the user's mouse enters the div I want an image to be shown and I want the image to follow the mouse. new Vue({ el: '#app', data: { showImage: false, page: { left...
Shawn
1

votes
0

answer
120

views

Is react-toolbox ready for webpack 4?

I am having a dickens of a time getting the default styles of certain components (namely buttons with icons and dialogs) to display when compiled with Webpack 4 (using the MiniCssExtractPlugin in place of the ExtractTextPlugin. Has anyone else found this to be the case when upgrading to Webpack 4? a...
Shawn Rice
1

votes
0

answer
31

views

How do I automate this process of capturing detected faces and adding to the database by auto increment assigning ids to every detected face?

I want to add people to database by assigning id auto-incrementing when a face is detected. This is the code to create sql connection and add details. def insertOrUpdate(id, gender): conn=sqlite3.connect('facebase.db') cmd='SELECT * FROM people WHERE ID='+str(id) cursor=conn.execute(cmd) isRecordExi...
shawn
1

votes
1

answer
223

views

Can a property decorator define the type of the decorator property?

I have a property decorator that returns a property descriptor. Is there a way to tell the compiler the type of the decorated property x via the decorator? e.g. // returns a readonly string property descriptor function d(target, key) { return { get: function() : string {return 'hello'} } } // would...
shawn
1

votes
3

answer
1.4k

views

Why does installing boto3 break my installation of awscli?

I am trying to install boto3 so I can use it in my python script that I want to run on an EC2 instance running Ubuntu 14.04. Anyway I install boto3 it breaks my installation of awscli on the non root user. I install awscli using apt get with sudo apt-get install awscli. After I install it, it works...
Shawn Volpe
1

votes
2

answer
38

views

Using CSS header lock after .html() doesn't work within extra div

I'm trying to get this CSS header lock: JSFiddle working after an .html() load. It works perfectly if I go directly to the php page, but if I reference it from another page and load it into a div, I can't get it to work and I can't figure out why. I have a feeling it has something to do with the...
Shawn Babinyecz
1

votes
1

answer
763

views

Symfony 4 api - how do I update an entity

I have created a Symfony 4 project which uses jms_serializer annotations and fos_rest_bundle I am wondering how I would go about updating an existing entity. I have the following: class ProgramController extends FOSRestController { /** * @FOSRest\Put('/programs/{id}') * @ParamConverter('updatedProgr...
Shawn Northrop
1

votes
0

answer
211

views

ionic 3 - popToRoot not destroying page

I am using ionic 3 and when I popToRoot() the current page still executes and does not gets destoryed. I thought popToRoot() is suppose to destroy the current page as it goes to the root page? Here is the code: ionViewDidLoad() { this.menuCtrl.swipeEnable(false); this.navCtrl.swipeBackEnabled = fa...
Shawn Varughese
1

votes
0

answer
63

views

Android - Extract html with tag and make count on result

I got a JSON object that return in a long string with html content, is there anyway i can get the certain text from this html string and assign put it into textview? what i want to get would probably the content under & and throw all others away. \r\n\r\n \r\n \r\n Latest Deals\r\n...
Shawn.Y
1

votes
0

answer
191

views

Migrating SQL Server Replication

I have a production server with transaction replication in place. I am only migrating the publisher server to a Windows Server 2012 for TLS 1.2 compliance. The SQL Server version is staying the same: 2008 R2. The distribution server and the subscription servers are not being moved. I have one subscr...
Shawn
1

votes
1

answer
44

views

My Add and remove Button disappears

I have an add and remove button for my fields, and i click the remove button to remove a row it deletes them but when i have no rows and click the remove button it deletes both add and remove button. What i am trying to do to keep both buttons there when there are no rows to delete and you will not...
Shawn Nguyen
1

votes
1

answer
193

views

Typescript error when passing props to component that is a redux-form component

I am having the following issue when trying to export a form component using redux-form. I am using typescript 2.9.2 and redux-form 7.3.0. Does anybody know how to change my typings to work with this? [ts] Argument of type 'typeof ForgotPasswordForm' is not assignable to parameter of type 'Componen...
Shawn
1

votes
1

answer
118

views

Implementation of Mailchimp Signupform with checkbox in custom Registration From in REACTJS

so upfront I'm would consider myself still an amateur as I'm working my way into REACTjs and the world of Frontend development at the same time. I'm currently trying to solve an issue which is as followed: We got a registry from on our Website, now I want to include a checkbox, which when checked wi...
Shawn GB
1

votes
1

answer
363

views

Win7 : Black screen when switching users / logging off with SCEP av client enabled?

Anyone out there run into this? : Seeing Win7 Ent machines show black screen and go unresponsive when switching users or logging out while the SCEP client (Microsoft's AV client supplied with SCCM) is enabled. If I disable it, the issue goes away. Just started happening yesterday. Ran through Window...
Shawn Keslar
1

votes
0

answer
151

views

Why are my styles not taking effect in codesandbox?

If you look at this tiny CodeSandbox project: https://codesandbox.io/s/0oj4z7ko00 Notice in index.html the following two snippets: #container { background: yellow; } and This container is where React renders the rest of the app (which works), but its background isn't yellow! Why not? Furthermore, if...
Shawn
1

votes
1

answer
253

views

Using a domain name without a subdomain causes routing to fail

I'm trying to create a simple app using traefik to handling routing and SSL, but I'm running into issues when I want to use 'example.com' instead of 'subdomain.example.com' If I try to include a service with a frontend rule of just 'example.com' the only rule that works is 'monitor.example.com'. 'ap...
Shawn Clake
1

votes
1

answer
223

views

Creating Multiple Lines with Line Chart

I am making use of code example and advice to add two or more lines in my line chart. I have difficulty doing so, as chtChart.data adds the chart data to the chart and causes an update. How should additional lines be added? In my code below, chtChart.data = data1 is replaced by data2. let line1 = Li...
shawn.t
1

votes
1

answer
1k

views

How to find the output node name of given .ckpt.meta file in tensorflow

So far I can get the list of all node names given any .ckpt.meta file, but I was wondering if there is a systematic way of finding out the output node name from the list. import tensorflow as tf tf.reset_default_graph() with tf.Session() as sess: saver = tf.train.import_meta_graph('mymodel.ckpt.meta...
Shawn

View additional