Alex_Alex

31739 questions
1

votes
0

answer
131

views

GdiPlus : Region from a GraphicPath without filling it

I need to get a Gdi+ Region from a GraphicPath without filling it, and I don't know how to do it. A draw is better than words, so here is what I want to do : What I want to do I have an ellipse, than I want to be displayed unfilled (whith a known line width) I have a full rectangle, and I want it to...
Alex
1

votes
1

answer
48

views

Why is the code inside this async function triggering AFTER then? [duplicate]

This question already has an answer here: Using async/await with a forEach loop 13 answers In the following code: async createPanoramas ({ dispatch, commit, rootState }, newPanoramas = {}) { const { enterprise = '' } = rootState.route.query const splitNewPanoramas = [] const clonedNewPanoramas = ne...
alex
1

votes
0

answer
20

views

I need specific placeholders to address specific types of jobs

This is the code I currently have. I need to change it so that a specific placeholder corresponds to the specific job type such as ride or service. Ex) on the job type rides only a placeholder that corresponded to a ride would be displayed. The problem with the current code is that all placeholders...
Alex Lazarev
1

votes
0

answer
58

views

Error on Python Module “curses”

Whenever I try to use the curses module for my robot(raspberry pi 3), I keep getting the error 'setupterm: could not find terminal'. What can I do to solve this? Please bear in mind I am new to Python and self taught. import curses def initialise(): screen = curses.initscr() curses.noecho() curses.c...
Alex Mabey
1

votes
0

answer
2.8k

views

Python ImportError "cannot import name 'multiarray'

I'm trying to simply import numpy into a python script (called 'MatPlotLib.py using PyCharm) and I'm receiving this odd error. It worked fine, but then I started messing around with Jupyter. I tried uninstalling and reinstalling Python, then a system restore, but nothing seems to be working. I th...
Alex Borg
1

votes
1

answer
35

views

How to give active class on NavItem on browser back

In my application I am using react router 3 For navigation menu i have used It is working fine on click of nav menu but when going back using browser back, the url changed but the active class does not applied.
Alex Patel
1

votes
1

answer
571

views

NullPointerException when using getSupportActionBar [duplicate]

This question already has an answer here: What is a NullPointerException, and how do I fix it? 12 answers I am trying to implement a simple navigation drawer in my Android app but I am not able to solve a certain bug. Attempting to run an app throws a NullPointerException: Process: com.emertonalex...
Alex Emerton
1

votes
0

answer
46

views

Is there a max. number of Google Charts on one page?

This is hunting me the last 1.5 hour. I am trying to add a 16th graphs on a page (from a total of 20th) and now the legends of all graphs are off. google.charts.load('current', {packages: ['corechart']}); google.charts.setOnLoadCallback(chart1); // Incidents google.charts.setOnLoadCallback(chart2);...
alex
1

votes
0

answer
42

views

How to select/deselect data for columns in Google Charts?

How can I add selection boxes in the legend which selects/deselects the data to be displayed? For instance say I want to deselect t2 to not appear in the stacked columns? google.charts.load('current', {packages: ['corechart']}); google.charts.setOnLoadCallback(drawChart) function drawChart() { va...
alex
1

votes
1

answer
439

views

creating pg_cron extension within docker-entrypoint-initdb.d fails

If I create the pg_cron extension in a docker-entrypoint-initdb.d/init.sql file, the docker image fails to run and docker logs just says 'No such container.' Here's the relevant .sql snippet: CREATE DATABASE my_database; \c my_database; CREATE EXTENSION IF NOT EXISTS postgis CASCADE; CREATE EXTENSI...
Alex Leung
1

votes
0

answer
49

views

Custom Angular Accordion - Not Responsive

I'm pretty fresh to using Angular. Right now I'm stumped on this angular accordion: http://jsfiddle.net/3sVz8/19/ angular.module('angularSlideables', []) .directive('slideable', function () { return { restrict:'C', compile: function (element, attr) { // wrap tag var contents = element.html(); elemen...
Alex Sieben
1

votes
0

answer
257

views

Change Font size on change of range slider by jquery

I need to dynamically change css property values by jQuery.But it is not changing dynamically. Here is the codes hello there Here is javascript function dynamicDisplayChange(elem, target, id){ if( 'head_1' == target ){ $('h3[data-id='focused_post_font_size_phsm2']') .css('font-size', elem.value); }...
Alex Garret jones
1

votes
1

answer
147

views

Using S3 Constructors in R

I was looking at some code earlier today (https://www.r-bloggers.com/building-your-own-blockchain-in-r/) where someone was defining S3 functions in a way that I'd never seen before and liked the visual style, but have never seen it anywhere else in R code and wanted to figure out why. They defined a...
Alex Gold
1

votes
1

answer
62

views

creating user input from the oracle database

I am trying to ask the user which item they want to choose within a certain column named 'SKU' and I want them to be able to type whichever item that is and it display the appropriate details from that table. I know that to get user input you can: declare x number; begin x := &enter_value; dbms_ou...
Alex_fields
1

votes
1

answer
181

views

Fabric miss version name at distribution to beta

After updating gradle wrapper to 4.1 and android plugin to 3.0.1 fabric miss version name at distribution titles at beta (titles contain only version suffix) root build.gradle contains: dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } app build.gradle contains: buildscript { reposit...
Alex Klimashevsky
1

votes
1

answer
170

views

How to automatically authenticate Google Drive through Docusign API

I am creating an app with Google apps script to send Docusign envelopes to customers when I receive a google form from them (with the responses going into a google sheet with an onFormSubmit trigger). I'm using the Docusign REST API envelopes method to create an envelope, and send directly to the cu...
Alex James
1

votes
0

answer
25

views

Refactor validation rules generating function

I need assistance with refactoring a function (the function is long and can be parted out later). I have a fields object that contains every column in a database table and has some additional information on the column such as the max_length and whether or not it can be null. These parameters form th...
Alex
1

votes
2

answer
355

views

An efficient way to render similar objects in Qt3D?

I need to render hundreds of objects sharing their mesh and material (and having different QTransforms). The only way I found is to create an instance of QEntity for each of them. Each would be holding an instance of the mesh and of the material resulting in a huge waste of time and memory. Is there...
Alex
1

votes
1

answer
167

views

How can i load laravel sessions in ratchet?

I installed Ratchet on Laravel, it's work, but I can't read user sessions. I read this - https://laravel.io/forum/01-16-2015-loading-laravels-session-using-ratchet But it doesn't work and I have an error: An error has occurred: Undefined property: stdClass::$request I think that it can be related...
Alex
1

votes
0

answer
107

views

Sails js bcrypt installation

Can anyone tell why I'm having this error when I'm trying to install bcrypt on windows 10?
Alex Hunter
1

votes
1

answer
24

views

Select Custom Post Types Per Category?

Trying to select custom posts by selected category $args = array('post_type' => 'speakers', 'posts_per_page' => 10, //'category_name' => 'saturday',// array( // array( // 'taxonomy' => 'category', //...
alex
1

votes
1

answer
204

views

pip3 crashes when installing h5py [duplicate]

This question already has an answer here: Pip does not work after upgrade to ubuntu-16.10 3 answers I am trying to install h5py and execute sudo pip3 install h5py I also tried to install h5py via wheel from https://pypi.python.org/pypi/h5py/2.7.0rc2 I have python 3.5 installed. And pip3 then crash...
Alex S.
1

votes
0

answer
394

views

macOS Jenkins uses system ruby instead of installed ruby

A client has jenkins setup on a macOS machine. It's doing iOS builds and uses bundler to install some gems. One gem recently started requiring a dependency which in turn requires ruby >= 2.1 Installing jwt 2.1.0 Gem::InstallError: jwt requires Ruby version >= 2.1. An error occurred while installing...
Alex Bartiş
1

votes
0

answer
243

views

Variant type mismatch at run time

I am trying to automate Bentley Microstation from Excel using runtime objects without project References for a proof of concept. Sub MSFromXlRuntime() Dim MS As Object Dim DesignFile As Object Dim Line As Object Dim startPoint As Variant Dim endPoint As Variant Set MS = CreateObject('MicroStationDGN...
Alex
1

votes
1

answer
45

views

Exclude urls from spring-starter-security

I have a problem using springboot-starter-security. I want to secure only urls that does not begin with '/api', all urls such as '/api' or '/api/' or '/api/**' must no be secured. In WebSecurityConfigClass I have: @Override public void configure(WebSecurity web) throws Exception { web.ignoring().ant...
Alex Foglia
1

votes
1

answer
375

views

generate separate angular service file for each controller in my api

this produces a single output containing all the generate clients (angular services) is it possible generate different output (different service.ts) for each controller this is my current code string sUrl = 'http://localhost:7325/swagger/v1/swagger.json'; var document = SwaggerDocument.FromUrlAsync(...
alex
1

votes
0

answer
78

views

How to convert original MySQL Datatypes in R

I have a MySQL database with a lot of data in it. Now I want to manipulate it with R. After I run the MySQL Query, R imports the data but converts the datatypes of the tables. e.g. datetime is converted to character and so on. And this is not the problem when just using the data in R. But after anal...
Alex
1

votes
0

answer
274

views

custom notification with buttons, notification click causing button action

Im building an alarm app for Android ive created a custom notification with two buttons. Since ive added the buttons if i now click on the notification it seems to trigger the buttons action rather than the notification intent. Also the second button in layout seems to also trigger the first button...
alex barnes
1

votes
1

answer
54

views

Create a web worker when a function is called | JavaScript

I have a Tic Tac Toe 3D game which I want to optimize because at this moment, it crashes my web browser. It uses the MiniMax alpha-beta-pruning algorithm and I've split the code in 3 different files: TTT3D |-js   |---init.js # where I define all variables (as winningCombos, human, computer etc)...
Alex
1

votes
0

answer
85

views

Video Conferencing with Hololense

I know that Skype has an extension for video conference between Hololense user and desktop user. You can send video and hologram from hololense to the desktop user. And desktop user can draw something in hololense view and send image data/received video with an image back to Hololense. You can ev...
Alex
1

votes
0

answer
167

views

Is Jasypt secure enough to use?

We are using Jasypt in one of our Spring based project to encrypt our database properties. As per Jasypt documentation we need to make algorith and password (secret) entry in our application context. If we do that, any one can easily decrypt our properties by decrypt property provided by Jasypt onl...
Alex
1

votes
0

answer
313

views

Always get UNKNOWN status code for failed gRPCs to python server

my data.proto likes this: syntax = 'proto3'; package rpc; service Performer { rpc carryOut(Image) returns (Objects){} } message Objects{ repeated Object objects=1; } message Object{ string type=1; } and implementation like this: class Performer(data_pb2_grpc.PerformerServicer): def __init__(self): p...
Alex Luya
1

votes
0

answer
248

views

Babel6 not transform class definitions with Angular 5, Webpack 3.8.1

Why babel does not transform my classes? Syntax error main.js (24,25) IMAGE: IE11 transformed main.js file Maybe my configuration is not right? I try to add support of IE 11 by my app, but babel not work correctly. I had also added polyfills.ts from angular.io documentation to support IE. Here I'll...
Alex Vasil
1

votes
0

answer
62

views

Create tf.estimator.Estimator from tf.saved_model.SavedModel

I have a TensorFlow model on disk saved using tf.saved_model.builder.SavedModelBuilder. How to create a TF Estimator from it?
alex
1

votes
1

answer
54

views

How can my JavaScript assert library return a pass?

I am working on a custom Javascript assert library, primarily for use in test runners like Mocha. The library works fine when the test fails, by throwing an Error. However, I can't figure out how to make the library return a 'pass', when there's no Error to throw. I have tried reading through the so...
Alex Gorischek
1

votes
0

answer
41

views

What is the meaning of 'NK' in pandas int64?

I have a column pathsize (int64). However, I got some values define as 'NK'. I've tried to convert this value into an integer, but it doesn't seem to have any effect. NK 687 15 180 12 172 14 166 ... 3 123 Name: pathsize, Length: 92, dtype: int64 The script I used to convert NK into 0...
Saber Alex
1

votes
0

answer
384

views

Angular5 + CLI ng serve: background-image URL doesn't converted to base64

Angular4 + [email protected] _variables.scss file contains: $brand-logo: url('~assets/images/logo.png') After 'ng serve' in style tag this image URL rebased to data:image/png;base64 and that's cool :) Migrated to Angular5 + [email protected] Now I have an error when run 'ng serve' - fixed like described here https:...
Alex
1

votes
0

answer
817

views

How to install PHP5.6 on OSX High Sierra without homebrew or macports

I have upgraded from OSX Sierra to HighSierra which comes with Apache 2.4 and PHP 7.1 out of the box. For development I need to be able to use PHP 5.6 but have had issues with trying to run Homebrew (both with system Apache and Brew apache) and also phpbrew. I also built PHP5.6 from source but thin...
Alex Holsgrove
1

votes
0

answer
59

views

Include checkstyle rule name in exception message in IntelliJ

I'm looking for an elegant way of suppressing checkstyle warnings in source code in IntelliJ. If necessary I want to use annotations from SuppressWarningsFilter, e. g. @SuppressWarnings('checkstyle:AbbreviationAsWordInName'). To use this I need of course the name of the rule ('AbbreviationAsWordInNa...
Alex
1

votes
0

answer
490

views

Jest/React/Apollo "Cannot read property 'data' of undefined

I'm trying to get my head around testing. I've built a react/next/apollo app and I've attempted to write what I thought was a basic test but I can't get it to work. I get the following error: TypeError: Cannot read property 'data' of undefined 85 | constructor(props) { 86 | super(props) >...
Alex Foxleigh

View additional