Adrien

2

votes
0

answer
19

views

What's the most optimal query in PgSql to find the nearest neighbor in a huge dataset?

I have a huge table (about 40 Millions rows) called nearest_spot representing lines (in the linestring format) and the closest spot they're to (there is about 1500 different spot, stored in another table). The nearest_spot table comes like this : data_id || spot_id || spot_name || link_geom Where d...
Adrien
1

votes
1

answer
86

views

Npm can't install node-sass

When i install npm on my project angular. There is an failed install of node-sass. And after it's impossible to run ng serve. npm ERR! [email protected] postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is pro...
1

votes
2

answer
5.9k

views

Can't close Excel App with vba in a scheduled task

I have made a code in vba which works with different Workbooks and Worksheets. This code must be execute in a scheduled task. But for an unknow reason I have a problem with it : When I execute it manually, it works fine and excel closes itself. But with my scheduled task, Excel closes all Workbooks...
Adrien A.
1

votes
1

answer
261

views

How to read Adafruit GPS Data with STM32?

I'm using a STM32 Nucleo-F334R8 board and a Ultimate GPS Breakout V3 from Adafruit. What I'm trying to do is to read the GPS data with Putty on my computer using the serial communication. At the end I want to get the GPS data on my F334R8 board and then send it to a RaspberryPi 3 with the serial c...
Adrien Laliere
1

votes
1

answer
203

views

Upload file from Javascript Socket (Ps) to Golang API (Gin Gonic)

I am trying to upload a file to my server (Golang) from a photoshop script (javascript) Here is the service reading the file on the server: func Post(c *gin.Context) { // Read uploaded file file, header, err := c.Request.FormFile('file') if err != nil { c.JSON(utils.BuildError(err)) } if file == nil...
Adrien
12

votes
1

answer
18.5k

views

Unable to understand error “SparkListenerBus has already stopped! Dropping event …”

The issue I'd like to know if anyone has a magic method to avoid such messages in Spark logs: 2015-08-30 19:30:44 ERROR LiveListenerBus:75 - SparkListenerBus has already stopped! Dropping event SparkListenerExecutorMetricsUpdate(41,WrappedArray()) After further investigations, I understand that Live...
Adrien M.
1

votes
1

answer
485

views

XPath: exclude text nodes that contains a certain word

I have a problem with Xpath. I am trying to find all text nodes of the first iteration of a div but exclude the ones that have a key word in them. A simple example: I like bananas I also like apples some text I want to fetch all text from the first div 'blabla' but exclude all paragraphs that contai...
Adrien
1

votes
2

answer
535

views

GET request throws error: str.replace is not a function

I am struggling with a VueJS project function supposed to make a GET request on the server. It throws an error while this syntax has always been working so far in the rest of the website. this.existingUsers = this.existingMembers.map(a => a.userId) console.log(this.existingUsers) this.usersResource...
Adrien Merlier
1

votes
2

answer
687

views

Incorrect S3 bucket policy is detected for bucket in CloudFormation

I have issues implementing CloudTrail via Cloudformation, with a Incorrect S3 bucket policy is detected for bucket error being thrown when I try to launch the model. Here is the configuration from the BucketPolicy: 'LogBucketPolicy': { 'Type': 'AWS::S3::BucketPolicy', 'Properties': { 'Bucket': { 'Re...
Adrien Merlier
1

votes
1

answer
2k

views

Cloudformation template throws “Encountered unsupported property Statement”

I am trying to construct a Cloudformation template where CloudTrail will store the logs from my VPC in a S3 Bucket. When I try to launch the model, I get a ' Encountered unsupported property Statement' for the bucket policy. Here is the JSON I use: 'LogBucketPolicy': { 'Type': 'AWS::S3::BucketPoli...
Adrien Merlier
1

votes
2

answer
628

views

How do I set an “onchange” event of a Razor “EditorFor” with a Date field?

I have a razor EditorFor for a field of type Date : @Html.EditorFor(model => model.AvailableEndDateTimeUtc) I want to set a 'change' event on the generated datepicker but I don't find a solution to get an event when the value in the input is changed manually OR with the calendar. I tried with a Jav...
0

votes
0

answer
5

views

Spring configure method not called

I tried to configure spring to allow encoded slashes in URL, but I cannot get the configuration to be applied I've tried adding @EnableWebSecurity but it didn't seem to change anything. When I put breakpoints, the @Bean method is called but not configure(). @Configuration public class SecurityConfig...
Adrien
1

votes
1

answer
116

views

CloudWatch not receiving Cloudtrail logs from outside region

I am struggling with detecting activities performed outside of a given region in CloudWatch. For example, if an InternetGateway is created in the same region as the CloudWatch Event (let's say eu-central-1), it is detected by CloudWatch, however if it's somewhere else (let's say eu-west-1) it won't...
Adrien Merlier
1

votes
0

answer
53

views

Wrong mutt smtp server from Motion

I'm using Motion to manage a camera and it works perfectly. I've configured mutt so it can send emails when an event occur on the camera. When I send an email via mutt by myself it works every times. But when it's motion that send the email, the 'from:' field is not good and it doesn't send the emai...
1

votes
0

answer
222

views

Openlayers 5 - How to update the map?

I have created a map with different layers and a sidemenu with checkboxes to display or not markers. The code I use to do this is good, when I check a checkbox markers are displayed ... but only after I move the map (manual refresh). I'm searching a way to update the map just after I checked a check...
Adrien
1

votes
0

answer
168

views

Drawing a chunk with OpenGL

I have some trouble with my shader/vbo/vao stuffs with OpenGL. Situation I have created a geometry shader that allows me to draw a cube from a position (Position set using uniforms). I'm trying to use a chunk system to reduce my draw calls. The problem is that I can't find a way to start. How to re...
Adrien Givry
1

votes
0

answer
35

views

Manually encrypt data with OpenSSL with Qt

I know that Qt has SSL/TLS support to TCP communications, and I wanted to leverage the cross-platform high-level API to encrypt communications not based on TCP. If possibly keeping Diffie–Hellman protocol to establish the secured communication. Now I've been looking at the classes sources, and whe...
Adrien Leravat
1

votes
1

answer
111

views

Use a function outside ngOnInit() inside ngOnInit()

I'm programming a map with OpenLayers (4.6.5) in Angular (6). I use also a french API provided by the french government to create requests and return GeoJSON files. I have already programmed a map with static GeoJSON files like this : this.parkingLayer = new VectorSource({ url: '.../file.geojson', f...
Adrien
1

votes
0

answer
438

views

How to resolve loader in webpack 4?

Using webpack version 4.6.0 I need to resolve the path of a loader using webpack. The loader is used like this in a node_modules dependency: const loadedIndex = require('!!../loaders/A-loader!./index.js'); I want to override this loader A-loader with another B-loader. Here is how my project is struc...
Adrien Gadaud
1

votes
1

answer
77

views

Send a function to MPI processes

I am currently writing a runtime system software for distributed systems and then I intend to evaluate some parallel management stuff. I relied my runtime systems on the task programming model as in the OpenMP3.0 standard, but for another category of machines with MPI. To do that, I create some MPI...
Adrien Roussel
1

votes
1

answer
127

views

Google cloud TPU: NotImplementedError: Non-resource Variables are not supported inside TPU computations

I am trying to train my model using google cloud's TPUs. The model works fine on CPU and GPU, and I can run the TPU tutorials without any problems (so it is not a problem of connecting to TPUs). However, when I run my program on the TPU cloud I get an error. The most important line is probably the f...
Adrien Doerig
1

votes
1

answer
14

views

How to modify javascript object with attributs names stocked in an Array

I'm working with Node.js and I've got a jsonFile which allow me to create an object: var dateFile = './Dictionnary/lastUpdate.json'; var dateObj = jsonfile.readFileSync(dateFile); The object is this one: var dateObj = { 'l2D': '2018-07-10T08:45:03.000Z', 'CU': '2018-07-10T08:45:03.000Z', 'l2G': '201...
Adrien Voisin
1

votes
0

answer
60

views

JPA Hibernate Converter is not called with Spring Data QBE

I have a springboot Application and I've made a converter (for convert string to date and date to string). With standards CRUD methods like 'findByName()' (which JPARepository make easiest to create), the converter is called and work very well. Now, I've tried to run a QBE. When I run my QBE, my con...
Neau Adrien
1

votes
1

answer
193

views

elasticsearch python queries - Group by field and then count

I am stuck regarding an elasticsearch query using python I have data such as: {'_index': 'toto', '_type': 'tata', '_id': '9', '_version': 14, 'found': True, '_source': {'Loss Event ID': 833, 'Product': 'Sushi', 'Company': 'SushiShop', 'Profit': '10000000'} } {'_index': 'toto', '_type': 'tata', '_id...
Adrien Sieg
1

votes
0

answer
61

views

Filtering list of elements based on a model @property in a ViewSet - Django Rest Framework

Below is a data structure that can be accessible trough an endpoint built with Django Rest Framework: 'sites': [{ 'id': 1, 'configs': [ { 'id': 1, 'subconfigs': [ { 'id': 1, 'name': 'subconfig_1', 'macro_subconfigs': [1, 2] 'flag': true }, { 'id': 2, 'name': 'subconfig_2', 'macro_subconfigs': [1] 'f...
Adrien Mulattieri
1

votes
1

answer
84

views

Linking PartialView to View returns System.Web.Mvc.WebViewPage<TModel>.Model.get returned null

I looked up everywhere and tried multiple solutions but none of them would work. In my MVC website, I have a cart section and a checkout section. I want to make it so inside my checkout section, i have a small cart section to show the cart. This is my partial view _CartItems.cshtml @model IEnumerab...
Adrien Jabbour
1

votes
0

answer
50

views

tf.summary.image provoks PNG encoding failed

I am working on MNIST dataset and having trouble with tensorboard. I want to record an image with the following function : tf.summary.image('input', input_layer, 1) But I get the following warning and error : 2018-11-04 19:32:44.798869: W tensorflow/core/lib/png/png_io.cc:87] PNG warning: Applicat...
Adrien Laveau
1

votes
0

answer
27

views

GULP SRC | Negatives not working as expected

I was trying to understand how gulp works, and particularly how to select files, so I ran some tests. But the results are not as they were supposed to be. Could somebody please explain me why I get theses results and if it was the result expected. Files set assets |-script01.js |--sub01 |-script02.j...
Adrien Euverte
1

votes
0

answer
18

views

Lyft Api: How do I get a current ride?

How do I get a current ride information from an authenticated driver? Is this possible from web hooks or is there anyway to do this? I couldn't find anything in the documentation.
Kubwimana Adrien
1

votes
1

answer
115

views

DryIoc - ASP.Net Core - Scope context per request

I want to use DryIoc in my application (ASP.Net Core 2.2). I want to use the same instance of services during execution of the call of one API service. (During Http call / scoped context). If it was in ASP.Net WebApi, I would like to have a scope per http context. In the DryIoc documentation, it is...
Adrien
1

votes
0

answer
114

views

What's causing play protect to warn me concerning apps behavior?

I have an issue with apps internally deployed in my company. Since the begining of the year, the Google Play Protect warns me that these apps are unsafe and try to steal my data. I don't have any clue on what's causing this issue. Could you help? The full message : Blocked by Play Protect This app...
Adrien QUINT
1

votes
1

answer
51

views

Dialogflow : don't expect user response without ending the conversation

I would like to make intent on Dialogflow giving an answer but without expecting user response. I tried the DialogflowConversation close() method but this also ends the conversation, which is not the expected behaviour. Does anyone have a trick on this ? Thanks for your returns.
Adrien Smondack
1

votes
0

answer
36

views

How to document nested and undetermined types?

I'm trying to document the return type of a function which queries a database. My try goes like this: ''' Execute the query, append a report to the file (start & end time, duration, n rows and result file) and copy results next to the original file with the same file name but the extension being csv...
Adrien H
1

votes
1

answer
59

views

How to define an instance attribute in a pandas DataFrame subclass?

I am subclassing pandas DataFrame and I want to have an attribute. class MyFrame(pd.DataFrame): _metadata = ['myattr'] myattr = [] def __init__(self, *args, **kwargs): pd.DataFrame.__init__(self, *args, **kwargs) self.myattr.append(0) @property def _constructor(self): return AutoData My issue is tha...
Adrien Pavao
1

votes
1

answer
55

views

How to clone a database without data in postgres with an SQL request

I am currently working on a project where I need to do an SQL request that can clone a database (postgres) without any data (only schema a.k.a only the columns of the different tables and constraint like primary key/foreign key). Some topic are similar to my question like this two : Creating a copy...
Pierre-Adrien Delisle
1

votes
1

answer
943

views

Circle radius on Lat/Lng map

I am trying to draw a circle on a CloudMade map. The center of the circle is expressed in Lat/Lng, while the radius is in meters. Here following is the JavaScript I use, but some tests seem to indictae that the conversion I'm using for the radius gives me a too short radius. Does somebody understand...
Adrien Hingert
1

votes
2

answer
1.3k

views

Optimizing the weighted sum of sparse matrices

I welcome any help for the following code optimization problem: I have a collection of N sparse matrices of identical sizes ([s1 s2]) stored in a cell array A and a corresponding number of scalar weights stored in an vector w. I want to compute the sum of all the matrices in A weighted by the values...
Adrien
1

votes
1

answer
1.4k

views

How to set privacy settings while posting on a facebook feed, using FB.ui()

I would like to submit a post to Facebook that will be visible to a specific list of friends only. I know that it is possible to set a privacy property for that, as specified on Facebook's Graph API, but I need to use the FB.ui() so that the user can preview the post and update its message. That's t...
Adrien Joly
1

votes
2

answer
438

views

MAGNOLIA CMS - When using cmsu:simpleSearch and cmsu:searchResultSnippet links are not displayed properly and can't convert date into readable format

When using cmsu:simpleSearch and cmsu:searchResultSnippet links are not displayed properly. This is my code: xx results for '${fn:escapeXml(param.contentSearchPattern)}' No results ${node.title} drintranet-testdev${node.handle}.html So let's say I have a page matching the search pattern, it'll displ...
Adrien Be
1

votes
2

answer
5.3k

views

Slow HTTP POST Vulnerabity for Apache [closed]

Does anybody know if there is a fix for Slow HTTP POST Vulnerabity for Apache? http://www.darkreading.com/vulnerability-management/167901026/security/attacks-breaches/228000532/researchers-to-demonstrate-new-attack-that-exploits-http.html Here is a tool to test the vulnerabilty: http://code.google.c...
Adrien Hingert

View additional