Stephane

1

votes
1

answer
29

views

How to run .net unit tests in Docker without installing the whole SDK? [closed]

Is there a way to run .net unit tests (xunit or others) in Docker without installing the whole SDK? I would like to have a minimal Docker image that would be use exclusively to run my tests.
Stephane Simard
0

votes
0

answer
4

views

How to install fink from scratch now that mirrors are down?

I am trying to install fink on a new computer (it runs fine on my main machine) and now that fink mirrors are down, It is impossible to install it by using the usual way (./boostrap) and there are no explanations on www.finkproject.com, only stuff to upgrade. I found nothing related on the mailing l...
1

votes
1

answer
3.9k

views

Using Camel with Spring-boot to build a REST Application

Basically, I want to be able to post an object in JSON and print the details of this object using Java. In order to o that I want (and I have to) use SPRING-BOOT and Camel This is the class representing my object : public class Response { private long id; private String content; public Response(){...
1

votes
1

answer
1.5k

views

error: passing ‘const std::map<int, int>’ as ‘this’ argument discards qualifiers [-fpermissive] [duplicate]

This question already has an answer here: C++ “error: passing 'const std::map' as 'this' argument of …” 3 answers Fetching an entry from a const C++ std::map fails to compile on gcc 5.4.0. test_map.cpp: In function ‘int main()’: test_map.cpp:9:24: error: passing ‘const std::map’ as ...
Stéphane Gourichon
2

votes
2

answer
40

views

Is string_view really promoting use-after-free errors?

I have read an article this morning (here and there) which basically warns everyone about the monstrous dangers of the forever evil C++. (Personnally C++ is my still favorite language, ex aequo with Python and Haskell). According to the article this code should be an erroneous use-after free example...
Stephane Rolland
1

votes
0

answer
103

views

Stucky dithering as custom CIKernel does not work

I'm trying to implement Stucky dithering (error diffusion) as a CIKernel but I am a bit lost. I don't find a way to debug the filter (I m new to CIKernel). Here is what I have came up so far, but the kernel does not compile, plus, I wonder how I could store the spreaded error to the destination pixe...
Stéphane de Luca
1

votes
0

answer
159

views

Building fontconfig with freetype in non standard user home directories fails to find the freetype dependency

I successfully built freetype with the following steps: Download the file freetype-2.7.1.tar.gz from http://www.freetype.org/download.html#stable The 2.7.1 version is a version that can be built into the GD library. The 2.8 and 2.8.1 version prevented the GD library from building. ./configure \ --pr...
Stephane
1

votes
2

answer
1.6k

views

My private repository returns binary content on a curl GET request

Here is the request and its response: $ curl -v -X GET domain.com:5000/v2/_catalog/ Note: Unnecessary use of -X or --request, GET is already inferred. * Trying 165.227.161.233... * TCP_NODELAY set * Connected to domain.com (165.227.161.233) port 5000 (#0) > GET /v2/_catalog/ HTTP/1.1 > Host: domai...
Stephane
1

votes
1

answer
56

views

Missing bridge between JSON-B and JSON APIs?

I'm trying to implement a function that applies a JSON-PATCH (RFC 6902) to an object annotated with JSON-B. I've come to the following solution: /** * Applies a JSON patch to a JSON-B annotated object, and returns a resulting patched version of the object. * * @param object the object to patch. * @p...
Stéphane Appercel
1

votes
0

answer
66

views

Bar chart in Vaadin Charts doesn't seem to respect the dateformat if all the data in the DataSeries is for the same month?

If my DataSeries is spread over multiple months then everything works as expected, however if all the data is within a single month it displays a weird x axis label. My code is: configuration.getxAxis().setType(AxisType.DATETIME); configuration.getxAxis().setDateTimeLabelFormats(new DateTimeLabelFor...
Stephane Grenier
1

votes
0

answer
73

views

VMWare python API : How to access cpu load average?

I'm trying to get the load average of my ESX, using python script et pyVmomi. I cannot find the numbers 1.71, 1.72, 1.72 from the API, as described in the commands below. Any clues ? # ssh my-esx [[email protected]:~] uptime 12:07:54 up 8 days, 21:02:09, load average: 1.71, 1.72, 1.72 [[email protected]:~] unam...
Stéphane
1

votes
0

answer
49

views

Insert April 1, 2017 into MySQL database using JDBC results in March 31, 2017

First I will just note that the server and database are both setup for the EST timezone. I say this because I see lots of comments about issues if the timezones are different, they are the same. That being said my code: LocalDate localDate = LocalDate.of(2017, 04, 01); java.sql.Date databaseDate = j...
Stephane Grenier
1

votes
0

answer
27

views

Nonclosed union of tetrahedra in CGAL

I have two tetrahedra T1 and T2 and I compute their union with CGAL. This is the result: Quite nice. To compute the union, I convert the tetrahedra to nefs and I use the union operator +. But now, I have a third tetrahedron T3, and I would like to compute the union of T1, T2 and T3. That does not wo...
Stéphane Laurent
1

votes
0

answer
216

views

How to force iOS lib compression to LZ4 compress in one block?

I'd like to compress a buffer whose size is greater than 64Kb in only one block. I currently use lib compression to LZ4 compress/decompress, which works fine with buffer lower than 64Kb. Provided I stripped Apple extras header from the block as Apple adds extra bytes described in the doc right there...
Stéphane de Luca
1

votes
1

answer
52

views

Puzzled with 64-bit UInt right shift acting as signed shift

Why does the right shift behave as follows? let a: UInt = 0x6177206d, b: UInt = 0x9e3779b1 let m: UInt = a * b print(''' let m = \(String(format:'%x', a)) * \(String(format:'%x', b)) = \(String(format:'%x', m)) m>>4=\(String(format:'%x', m >> 4)) m>>8=\(String(format:'%x', m >> 8)) m>>16=\(String(fo...
Stéphane de Luca
1

votes
0

answer
22

views

Vaadin's RichTextArea doesn't seem to respect any css properties after all: unset;

If I have: .special { all: unset; width: 100%; border: 1px solid #ddd; } 1 2 3 4 5 The last table will not get a width of 100% although it should. I've tested this snippet in FF, Chrome, etc., and they all seem to work but for whatever reason the Vaadin RichTextArea doesn't. What happens is that no...
Stephane Grenier
1

votes
0

answer
43

views

Getting two log messages that seems to stall the website running Vaadin 8 with tomcat behind apache using mod_jk

I keep getting lots of these warnings in my logs: WARN  o.atmosphere.cpr.DefaultBroadcaster - Duplicate resource fda35646-a562-4366-933a-ba93a01297ea. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one and: WARN  c.v.server.ConnectorResourceH...
Stephane Grenier
1

votes
1

answer
118

views

From POV-Ray to rgl

I've followed this tutorial to export a POV-Ray graphic to a STL file, through Meshlab. I've also tried the export to the OBJ format. Everything seems to work fine from the creation of the POV-Ray graphic to the exporting in Meshlab. But then I've tried to render the graphic in R with the functions...
Stéphane Laurent
1

votes
0

answer
191

views

How can I create a TextField in the Vaadin Grid Editor for a BigDecimal and be able to type in amounts

The problem is that as I'm typing the value can be overwritten. For example if I want to type '12.34' but it takes me more than half a second to type the 3 after the period (that is '12.3' then the period is erased and I end up typing '123') which is very annoying. All it takes is for me to look at...
Stephane Grenier
1

votes
2

answer
261

views

Cannot import migration data into a MariaDB database

I'm trying to import some exported migration data into a MariaDB database. I could successfully do the import into the H2 database. But when trying to import in the MariaDB one, it creates 87 tables in the database instead of 91 tables, and also ends up in error: 2018-04-22 14:13:33,275 INFO [org.k...
Stephane
1

votes
0

answer
362

views

Spring JPA hibernate postgresql partion and timestamp without timezone

After searching a lot, I have a trouble to save timestamp data in PostgreSQL base using Spring JPA Hibernate. Here my main table in PostgreSQL, it's a partitionning table : CREATE TABLE public.archive_traffic_measure ( measure_point_id integer NOT NULL, measure_agregation_id integer NOT NULL, measur...
Stéphane Delarue
1

votes
0

answer
54

views

Cppcheck error: size is not a multiple of the underlying type's size

I have this line in a C program: double** out = malloc(3 * sizeof(double*)); My program works, but in my editor, cppcheck reports this error: The allocated size 12 is not a multiple of the underlying type's size. What does it mean? Is there really a possible error here? EDIT 2018-05-02 This warning...
Stéphane Laurent
1

votes
1

answer
592

views

Infinite redirect when logged in my angular keycloak application

My application experiences an infinite redirect after what seemed to be my first successful login. The url I can see in the browser is: http://localhost:4200/#state=04e2f6b5-4998-473b-91fc-bc77c8482796&session_state=3ffbf15e-464a-4a6a-afe7-d82a8be58797&code=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMj...
Stephane
1

votes
0

answer
42

views

Error with Delaunay4Points: subscript out of bound

I have this matrix: v library(DatabionicSwarm) Delaunay4Points(v, IsToroid = FALSE) Error in UniqDelaunay[Uniq2DataInd, Uniq2DataInd] : subscript out of bounds Is it a bug ? Unfortunately there's no Github repo to fill an issue. I've compared with another tool and the result should be: [0,1,0,1,0,...
1

votes
0

answer
47

views

Why there is no regex match in the output of this wget command?

I download a file from internet with wget and I want to record the name of the actual downloaded file (it changes in case the file already exists). I know that wget output goes to stderr, that is why I try to search for a regex match in it. There should be one but my 'match' is None (because I get t...
Stephane B.
1

votes
1

answer
333

views

How to get the device address with ASK SDK v2 for Node.js

I'm trying to build a skill which needs to get access to the device address by using ASK SDK v2 for Node.js. However, I found the documentation for this v2 extremely limited and even with the sample they provide on Github, it just doesn't work. So far I understood the following: In your Alexa skill'...
Stephane
1

votes
1

answer
292

views

Action on Google working, but with a Dialogflow agent broken

I have a project with Actions on Google, Dialogflow & an AWS Lambda to manage the fulfilment. On the backend (NodeJs) I use actions-on-google (v2) const {dialogflow} = require('actions-on-google'); const app = dialogflow({debug: true}); app.intent('StartIntent', (conv) => { console.log('Hello AWS');...
1

votes
1

answer
50

views

start second animation css at position of first animation css

I need to chain two animations in my interface HTML/CSS on user event (here just a click on the document). The first animation start correctly, but when I want to restart the second animation nothing move ? I know if i remove the .rotaiotn class and with a timeout put other animation class for the e...
1

votes
0

answer
15

views

EXC_BAD_ACCESS while accessing CMDeviceMotion instance

I get a 'Thread 1: EXC_BAD_ACCESS (code=1, address=0x50)' in a view controller code triggered by an observer: guard let app = UIApplication.shared.delegate as? ExtendedAppDelegated else { return } let deviceAngle = app.deviceMotion.attitude.yaw // EXC_BAD_ACCESS Where deviceMotion is defined as foll...
1

votes
0

answer
46

views

What kind of auto incremant the “In-Memory” H2 database use?

My Spring Boot 2 / Hibernate 5 application is running some integration tests against the H2 server version 1.4.197. What kind of auto increment is the database server using ? a table keeping a number, global to all tables an 'hibernate_sequence' sequence, global to all tables ? some auto increment c...
Stephane
1

votes
0

answer
60

views

Why my MariaDB sequence generates a negative number?

I'm running the latest MariaDB 10.3.7 server which offers sequences. I created my sequences as: drop sequence if exists user_account_id_seq; create sequence user_account_id_seq; drop table if exists user_account; create table user_account ( -- id bigint(20) unsigned not null auto_increment, id bigin...
Stephane
1

votes
0

answer
182

views

mongodb sasl unable to find a callback 32775

I installed a MongoDB server 4.0 Enterprise Edition on a Windows Server 2012 R2 and configured kerberos authentication following the official documentation https://docs.mongodb.com/manual/tutorial/control-access-to-mongodb-windows-with-kerberos-authentication/ When I tried to connect to the MongoDB...
1

votes
0

answer
32

views

How to add the resource location to the response?

I cannot find how to add the resource location in the reponse in my controller endpoint: @GetMapping @ResponseBody public ResponseEntity all(Pageable pageable, PagedResourcesAssembler pagedResourcesAssembler, UriComponentsBuilder builder) { Page foundUsers = userService.all(pageable); URI location =...
Stephane
1

votes
1

answer
33

views

Have the authorization interceptor not intercept requests to the credentials endpoint

I have an interceptor that adds a JWT access token to requests directed at a resource server: @Injectable() export class AuthInterceptor implements HttpInterceptor { constructor(private keycloakClientService: KeycloakClientService) { } intercept(request: HttpRequest, next: HttpHandler) { return this...
Stephane
1

votes
1

answer
431

views

Authentication to JHipster UAA from non-jhipster application

I used JHipster to create a micro-service architecture. I'm using JHipster Registry and JHipster UAA (OAuth2) as authentication solution. Now I'm looking for a way to authenticate and make some API calls from a mobile application that would be developed outside of JHipster. I tried to call UAA servi...
Stéphane Biolley
1

votes
2

answer
1.6k

views

docker-compose build image or build context

I would like build custom Dockerfile, but i've this message : --> Starting build app ERROR: The Compose file is invalid because: Service app has neither an image nor a build context specified. At least one must be provided. I don't understand why the name is app. You can see my docker-compose.yml f...
Stéphane R.
1

votes
0

answer
58

views

How do I combined two styles in a single Grid cell?

I've tried different methods posted here and StackOverFlow and none seem to work. I basically have the following CSS: .v-grid-cell.cellBackgroundColor { background-color: red; } .v-grid-cell.cellfontColor { color: green; } And for the code I have: addColumn(MyData::getValue) .setStyleGenerator(data...
Stephane Grenier
1

votes
1

answer
68

views

How to have the `searchTerm` input field being observed for its value change?

I have two observables that work fine: @ViewChild(MatPaginator) paginator: MatPaginator; @ViewChild(MatSort) sort: MatSort; ngOnInit() { ... merge(this.sort.sortChange, this.paginator.page) .pipe( startWith({}), switchMap(() => { return this.getUsers(this.sort.active, this.sort.direction, this.pagin...
Stephane
1

votes
0

answer
36

views

Use service as provider in config but also as service in controller

So I have this service : var module = angular.module('app.shared.user', []); module.service('userService', ['$q', '$http', 'firebaseService', function($q, $http, firebaseService) { this.isAdmin = undefined; this.userIdToken = undefined; let defered = $q.defer(); this.promise = defered.promise; this...
Stéphane Conq
1

votes
0

answer
76

views

ld: illegal text-relocation (objects files assembled with nasm)

I am trying to create a dylib from objects file assembled with NASM, but I get the following error: ld: illegal text-relocation to 'newline' in objects/ft_puts.o from '_ft_puts' in objects/ft_puts.o for architecture x86_64 Here is my ft_puts.s: SYS_WRITE equ 0x2000004 STDOUT equ 1 section .da...
Stephane

View additional