Alexis

1

votes
0

answer
75

views

How to get clear legend on ggplot2 while mixing bar charts and points?

I've been struggling for hours with my problem. I'm comparing two resolution methods of a bi-objective problem. I want to compare them and represent the deviation of both objective function, then add points to represent the savings in dollars which are calculated a posteriori (just for the informati...
Alexis Bretin
1

votes
0

answer
669

views

How to display mysql data on html page in node js

I am using node express to connect to Mysql and i am able to write fetch query from mysql but results come in console in the form of array , i am a beginner to the Node.js , please help me on how i can display the results from mysql to HTML template . See what i have : config.js : .... var expr...
Alexis MUGWANEZA
1

votes
0

answer
28

views

Mercurial: Tracking configuration files, but in a different branch

In my current project I have followed the usual advice for configuration files: Commit configuration files as templates, then copy them to another location so that configuration settings don't end up in the change history. However, it is nice to be able to track the history of configuration files as...
alexis
1

votes
1

answer
57

views

array_push for stdClass with numeric keys

I'm trying to use a function similar to array_push but for objects (stdClass) in PHP. See what I expect:
Alexis Schad
1

votes
4

answer
925

views

How to sort user input String names in alphabetical order, using String.equals and String.compareTo

This program output should be: Enter first : Alexis Enter Second : Zach Enter Third : Cassie Here are sorted the sorted name: Alexis Cassie Zach but if the names are identical it has to output an error message saying the names are identical. Example Enter name 1 Alexis Enter Name 2 Alexis Enter Name...
Alexis Marie
1

votes
1

answer
107

views

PySNMP Fetch variable timeout

I am working on an SNMP simulator in python and I am trying to follow some of the examples from snmplabs.com. I am having trouble running one of the example scripts from snmplabs.com that performs SNMP GET operation for a sysDescr.0 object at a publicly available SNMP Command Responder at demo.snmpl...
Alexis Flores
1

votes
0

answer
22

views

API Send only New/Updated/Deleted records

I'm actually working on a Rails Application API. I have models with a lot of data. I would like to be able from my client application to send like a Token, a timestamp or whatever to get the new, updated, deleted content/datas since the last request. While providing a new Token, timestamp for the fu...
Alexis Darnat
1

votes
0

answer
62

views

Shifting elements in an Array of objects

I need to insert an Appointment in a Planner class that takes Appointment A1 as a parameter and places A1 in proper order to an array Appoint. I have already created the Array which only has 4 default appointments and has a length of 20. I also created a method to compare two objects of the Array an...
Alexis Flanigan
1

votes
3

answer
54

views

cannot seem to sort an Array of objects by date

class newPlanner{ private newAppointment[] Appoint = new newAppointment[20]; newPlanner(){ newAppointment obj1 = new newAppointment('Mar',4,17,30,'Quiz 1'); newAppointment obj2 = new newAppointment('Apr',1,17,30,'Midterm'); newAppointment obj3 = new newAppointment('May',6,17,30,'Quiz 2'); newAppoin...
Alexis Flanigan
1

votes
1

answer
50

views

Conflict Update Model (Rails)

My first question is not really specific to rails, but more general about good practices. Let's suppose that I have an API with only one Model : Post. And few records of it. A first client who modify a specific Post record but doesn't have services to call the API. So he will store the modifications...
Alexis Darnat
1

votes
1

answer
55

views

Plot multiple rows as columns with ggplotly

I have the following data dput(head(new_data)) structure(list(series = c('serie1', 'serie2', 'serie3', 'serie4'), Chr1_Coverage = c(0.99593043561, 0.995148711122, 0.996666194154, 1.00012127128), Chr2_Coverage = c(0.998909597935, 0.999350808049, 0.999696737431, 0.999091916132), Chr3_Coverage = c(...
Alexis_543
1

votes
2

answer
406

views

HTTP status code for a resource infected by virus

I'm developing an application which acts as an Http-Proxy for serving files from an external resource. It actually downloads the file from the external resource, checks for viruses and if the file is not infected, returns the file to the client. My problem is, in case of the file is infected, what H...
1

votes
0

answer
80

views

Oracle OLE DB - Connection string without password

I'm working on programmatic queries relying on the Oracle provider for OLE DB (in VB script). I can successfully query my database using the standard syntax: Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword; But how can I make it work without disclosing the pa...
Alexis
1

votes
1

answer
51

views

C# RichTextBox Environment.NewLine not working.1

I have a custom class to work as a debug console in a winform app. It is writing everything fine with the exception that it never, ever, goes to the next line (wordwrap is set to false intentionally). This is my class: public static class ConsoleEx { private static RichTextBox outTarget; public stat...
Alexis Shepard
1

votes
0

answer
224

views

Microsoft office 365 add-in + Azure Auth token graph

I have a problem getting token for Microsoft Graph. I have followed this documentation to get the token. With the Office Javascript API, I get from my add-in the identity token and the application token. I have put my add-in on the exchange server, I have checked that an application was created in...
Alexis Puskarczyk
1

votes
2

answer
492

views

Asp net core MVC Authorization with Active Directory

In an Asp net core MVC application, I use Active Directory for automatic login like this : this.user = UserPrincipal.FindByIdentity(this.context, Environment.UserName); and I get groups of the user with this : public List GetUserGroups() { List groups = new List(); foreach(GroupPrincipal gr in user....
Alexis
1

votes
0

answer
215

views

Exporting plotly as webpage offline without plotly JS included? (R ggplot2)

I know that to export plotly in python another stack-exchange post says: plotly.offline.plot(data, include_plotlyjs=False, output_type='div') Is there such a thing for R? When I save as webpage it's a massive file full of javascript. I want to use their javascript and then have a small div id or wha...
1

votes
0

answer
147

views

Leaflet how to convert a L.CRS.SIMPLE coordinate to a normal L.CRS.Earth one

I have a leaflet map set with a CRS of L.CRS.SIMPLE and several Markers. The tiles are custom tiles pulled from my server (the usual /zoom/x/y.png) format. I'm building a mobile app with Android using the same tiles and so using Google Map the coordinate system is different but I would like to reuse...
Alexis
1

votes
2

answer
172

views

iOS PresentViewController with Keyboard

I'm actually struggling with the keyboard ! I have a viewController that I present like this : self.present(viewController, animated: true, completion: nil) In this viewController, I have a textfield which becomeFirstResponder like this : override func viewWillAppear(_ animated: Bool) { super.viewWi...
Alexis Darnat
1

votes
0

answer
160

views

How do I setup a list of checkboxes in Qt Designer?

In my window, I have one menu which is a set selections, one of which can be current. For example, in my Browser I have sub-menus where I can select the Zoom Factor. For example, it could be offering three options like these: 50% √ 100% 150% Whenever the user selects one of the 50%, 100%, or 150%,...
Alexis Wilke
1

votes
1

answer
972

views

Postman Test Script - Check that the status is NOT 200

I'm creating a script to test my API, I want to check that if the user doesn't enter the correct username and password, the access is denied. I want my test to pass when the status code is 401. Postman displays a test failure because the status code of my request is not 200. I actually WANT my respo...
Alexis Brunet
1

votes
0

answer
90

views

How to set up MPI_COMM_SPAWN to behave like mpirun?

I use MPI (openMPI 3.0.1) in C for my work and i want to know how to set up mpi_comm_spawn to behave as if I run my executable with mpirun ? I use this hostfile : # This is a single processor node: # This is a height-processor node. Oversubscribing # to it is prevented by setting max-slots=4: # hos...
alexis
1

votes
2

answer
141

views

iOS Write Data to file, FILE DOES NOT EXIST

I'm tryin to write the datas of an Image in the cacheDirectory, like this : let imageData = UIImageJPEGRepresentation(image, 1.0) else { fatalError('Impossible to read the image') } try! imageData.write(to: cachedImageURL, options: .atomic) print(fileManager.fileExists(atPath: cachedImageURL.absolut...
Alexis Darnat
1

votes
0

answer
229

views

Webpack 4 Dev Server config with back end using virtual host

I'm working on a project split into 2 parts (on the same machine) : a front end using Webpack 4, a back end coded with PHP. I'm running Webpack Dev Server with the following config : ... devServer: { contentBase: '../backend/public', compress: true, proxy: { '/backend': { target: 'http://localhost:3...
Alexis Romot
1

votes
1

answer
64

views

Symfony - CSRF not working in some mobile browsers

I have symfony form that send via ajax and persist/update it on database. this process work correctly in desktop browsers but on mobile browsers (almost safari and another apple browsers) get error: This CSRF token is invalid. Please try to resubmit the form I use {{ form_end(form) }} twig (my sym...
Alexis T
1

votes
0

answer
67

views

Webpack file-loader (multiple path)

I'm using Webpack in a project which is supposed to be recovered by another dev. In my configuration, I use file-loader to process my .png/jpg/svg files. { test: /\.(png|jpg|gif|svg)$/, use: [ { loader: 'file-loader', options: { name: '[name].[ext]', outputPath: './assets/images' } } ] } The thing i...
1

votes
1

answer
111

views

Rails rendering why have to call .to_json

I work on a Rails API, and I want to render some binary in json. To do that I convert my binary in hex to render it. So I have # (byebug) play_card.to_json {'id'=>3, 'card_id'=>12, 'atk'=>10, 'hp'=>9, 'deck_id'=>nil, 'game_id'=>nil, 'uid'=>'2e646b8a', 'created_at'=>Wed, 06 Jun 2018 17:17:25 CEST +0...
Alexis CHEVREUX
1

votes
0

answer
124

views

dask groupby without combining partitions

I have a set of data for which I want to some simple groupby/count operation and I don't seem to be able to do it using dask. Most probably I don't understand the way the groupby/reduce is performed in dask, especially when the index is in the grouping key. So i'll illustrate my problem with toy dat...
Alexis M
1

votes
0

answer
270

views

Flask-SocketIO: Emit socket to all client outside of context

With Flask-MQTT and Flask-SocketIO, I'm trying to emit a socket message outside from the Flask-SocketIO event context to all connected clients, upon reception of an MQTT message. Yet, when doing so, the messages never seem to reach the clients. It appears this has been a long known issue, but using...
Alexis Facques
1

votes
1

answer
21

views

PHP CURL HTTPS Issue

I am having big problems with accessing lots of https sites to download pages and especially files. I have done multiple searches on the interweb over this problem and the bulk of them say the same thing: use the following: curl_setopt($ch, CURLOPT_SSLVERSION,3); curl_setopt($ch, CURLOPT_SSL_VERIFYP...
Alexis
1

votes
0

answer
205

views

python request response seems cut off

I am sending the following request using Python's requests library: files={'file': open(fileURL,'rb')} r = requests.post(baseUrl + 'api/users/' + userId + apiEndpoint, files=files, headers=headers, stream = True) r.json() I get the following error: JSONDecodeError: Expecting ',' delimiter: line 1 co...
1

votes
1

answer
32

views

How do I determine the type of the MySQL Checksum column?

I want to run a CHECKSUM TABLE to determine whether a table is changing over time. If not changing, then it is likely that something is broken in my software and I have to check what could be in the way. Now, how do I determine the type of the Checksum column? There is what I get when I run the com...
Alexis Wilke
1

votes
0

answer
122

views

Is inheritance handled differently in jupyter?

This sounds as if it should be really simple but I do not quite understand how inheritance applies in jupyter notebooks. I created the following class as a subclass of ipywidgets.HTML. I have tested that this does what I want and for the purpose of this question, what it's exactly doing is irrelevan...
Alexis
-1

votes
0

answer
24

views

How does a C++ compiler know which shared pointers to delete in a constructor?

The following is a working example of what I'm wondering about. As we look at class Z below, we can see that it attempts to create A, B and C. I have several modes and place the exception in various places. Each time, it works as expected, but I have a hard time to understand. When I initialize m_a,...
Alexis Wilke
1

votes
2

answer
57

views

Log in as administrator in acumos

I'm following this guide to deploy acumos. After sudo bash one_click_deploy.sh I need to complete Hippo CMS setup : In your browser goto the Hippo CMS component at http://acumos:9080 and login as “admin/admin” This port give me nothing, in my case it's 30443 (as indicated in the logs from one_c...
Alexis
1

votes
1

answer
65

views

Resolve root folder in other folder without edit URL client

I need to resolve my root folder public_html (www.example.com) to another folder (www.example.com/laravel/public/) without editing the client URL. I tried this: Options +FollowSymLinks RewriteEngine On RewriteRule ^.*$ https://www.mysite.lol/laravel/public/ [R=301,L] This .htaccess file edits the cl...
Alexis Cervetto
1

votes
0

answer
95

views

Connection timed out: no further information. Verify the connection properties Formular

Something very strange happened, I'm doing a web application in java with app engine and SQL server using rest services, everything works apparently fine, but only once, that is, I have an endpoint that connects to a database and runs a Store Procedure, when I connect to the endpoint for the first t...
1

votes
1

answer
123

views

Stripe Checkout error loading custom fonts

I'm integrating Strip Checkout without any functional problem (on my local machine up to now). The only problem I encounter is that when the Stripe Checkout script is loading, I get 690+ errors in my devtools console stating : Refused to load the font 'https://fonts.gstatic.com/s/barlow/v1/7cHqv4kjg...
Alexis Romot
1

votes
0

answer
29

views

Bootstrap 4 Card cut (Loading through ajax call with Shuffle.js), on Microsoft Edge works fine

Website Link When I click Load more on Chrome, the card is cut halfway. It seems to have loaded in the background because if I resize chrome the card appears in full. Images showing the issue: and here is how it's supposed to look:
Alexis Drakopoulos
1

votes
1

answer
49

views

PHP and Ajax Upload file path to Mysql and save renamed image to the folder fails

I am trying to upload the file path and other parameters to mysql and I keept the file to the folder with Ajax and PHP it fails, For String parameters it's ok, but get file parameter to database I get empty file data. an error: Uncaught TypeError: Illegal invocation HTML form : ................ Min...
Alexis MUGWANEZA

View additional