Differences

This shows you the differences between two versions of the page.

Link to this comparison view

irc:1441231200 [2017/05/27 13:44] (current)
Line 1: Line 1:
 +[01:54:31] <BadApe> when i call socket.write(jsonData) what is it sending as the control code to delimit the object? \r\n something like that?
 +
 +[02:31:06] *** ChanServ sets mode: +o temporalfox
 +
 +[09:13:11] *** ChanServ sets mode: +o temporalfox
 +
 +[09:34:41] *** ChanServ sets mode: +o purplefox
 +
 +[09:37:16] *** ChanServ sets mode: +o temporalfox
 +
 +[10:31:49] <temporalfox> hi everyone !
 +
 +[10:37:58] <purplefox> temporalfox: pmlopes: morning
 +
 +[10:38:08] <pmlopes> good morning
 +
 +[10:38:34] <temporalfox> pmlopes I fixed the groovy classcastexception, I think it should fix the problem you observed in vertx-web
 +
 +[10:38:44] <pmlopes> thanks
 +
 +[10:51:55] <cescoffier> good morning
 +
 +[10:55:57] <robal_> hi
 +
 +[11:08:05] <robal_> I'm thinking about creating a login mechanism on my personal project, but I'm using AngularJS and Vertx together. Has anyone tried this? If so are there things I need to consider? Do I need to seperate controllers for public and private access? (Maybe I'm more concerned with AngularJs than vertx regarding authentication as I'm thinking it more through.. )
 +
 +[11:17:16] <cescoffier> robal_: to manage your authentication you can rely on the different authentication provider vert.x provides
 +
 +[11:18:27] <cescoffier> robal_: check http://vertx.io/docs/#authentication_and_authorisation
 +
 +[11:18:57] <cescoffier> robal_: for the UI / client side, it is Angular related (i.e. I've no idea ;-))
 +
 +[11:21:02] <robal_> cescoffier: yes  indeed, I looked into the BasicAuthHandler, which seems to fit my needs. My consern is more that I need to combine this with AngularJS, and I'm not sure what parts to place into a private directory. (controllers I'm guessing, but maybe even an entire module)
 +
 +[11:23:27] <robal_> but thanks :) it's all very new to me still. Very happy with vertx, never expected it to become this easy to upscale web applications, awesome :)
 +
 +[11:41:45] <Narigo> cescoffier, good morning - I've checked out the mysql postgresql client and see failing tests for mysql (testDateValueSelection, Error 1292 - #22007 - Incorrect datetime value: '2015-02-22T07:15:01.234Z' for column 'some_timestamp' at row 1)
 +
 +[11:42:15] <cescoffier> Narigo: hum, let me check
 +
 +[11:42:37] <Narigo> the port-to-java branch
 +
 +[11:43:50] <cescoffier> obviously it works here, and on my CI
 +
 +[11:44:30] <Narigo> what mysql version do you have?
 +
 +[11:45:16] <Narigo> do i need to do anything else than mvn clean && mvn test ?
 +
 +[11:47:42] <cescoffier> what is weird is that is looks like a mysql issue
 +
 +[11:47:49] <cescoffier> while inserting the value
 +
 +[11:48:36] <cescoffier> I'm using 5.6
 +
 +[11:48:46] <cescoffier> (latest GA)
 +
 +[12:00:57] <Narigo>  $ mysql --version
 +
 +[12:00:57] <Narigo> mysql  Ver 14.14 Distrib 5.6.24, for osx10.10 (x86_64) using  EditLine wrapper
 +
 +[12:09:51] <cescoffier> Narigo: in the mysql logs I've "2015-09-03 10:08:22 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details)."
 +
 +[12:19:48] <Narigo> cescoffier, sorry, won't be able to debug today anymore... too many things on my plate right now :(
 +
 +[14:56:45] *** ChanServ sets mode: +o purplefox
 +
 +[21:20:17] *** ChanServ sets mode: +o purplefox
 +
 +[22:32:31] <BadApe> hello, so i am integrating a c++ app with a tcp service i've sent a json object but i don't think i am sending the right line feed that my handler recognises
 +
 +[22:51:28] <AlexLehm> BadApe: to answer your question from yesterday, i think the serialized json object does not have any end delimiter like \n
 +
 +[22:53:48] <BadApe> i tried a \n i am just checking using Pump.pump(socket, socket).start(); that i am not just sending garbage
 +
 +[22:58:23] <AlexLehm> you should be able to simluate the service call with e.g. netcat by writing your payload into a file first
 +
 +[22:58:39] <AlexLehm> depends on what the service expects of course
 +
 +[22:58:50] <BadApe> netcat on windows?
 +
 +[22:59:35] <BadApe> the unittest in java connect to the server and sent json
 +
 +[22:59:57] <BadApe> i am sure i am just not sending the right termination from the c++ app
 +
 +[23:01:12] <AlexLehm> i found a rewritten netcat called ncat for windows somewhere
 +
 +[23:01:47] <BadApe> netcat only sends data, won't create me a listen server will it?
 +
 +[23:02:25] <AlexLehm> it can create a listener as well so you can test your client code
 +
 +[23:02:46] <BadApe> ah cool
 +
 +[23:02:51] <AlexLehm> something like ncat -l 8080
 +
 +[23:06:11] <AlexLehm> what are you using to parse the reply?
 +
 +[23:08:51] <BadApe> so i can see a the json and a \n\n
 +
 +[23:09:56] <BadApe> so makes me wonder what i need to send for socket.handler(buffer -> { JsonObject jsonObject = new JsonObject(buffer.getString(0, buffer.length())); to pick it up
 +
 +[23:11:07] <BadApe> ah i can send the unit test
 +
 +[23:12:59] <AlexLehm> to parse the data until a newline you can use RecordParser, this will take care of replies arriving in more than one buffer
 +
 +[23:15:41] <BadApe> well i wrote a quick test but didn't see anything other than some json
 +
 +[23:21:42] *** ChanServ sets mode: +o purplefox
 +
 +[23:21:55] <BadApe> thanks for the help i think i can see what i've done wrong
 +
 +[23:58:56] <BadApe> stupid question, how do i know if a library i want to use is blocking?