Current Server Time: 07:55 (Central Europe)

#apertus IRC Channel Logs

2017/05/31

Timezone: UTC


00:03
slikdigit
joined the channel
02:56
anuditverma
joined the channel
04:17
slikdigit
left the channel
06:52
pusle
joined the channel
07:03
BAndiT1983|away
changed nick to: BAndiT1983
07:16
anuditverma
Hi BAndiT1983
07:27
anuditverma
How's my development repo's dir structure should look ? Should it be similar to axiom_beta_control_daemon repo ?
07:27
anuditverma
I am importing schema file https://github.com/apertus-open-source-cinema/axiom-beta-rest-interface/blob/develop/API/client.go#L7
07:28
anuditverma
So I think I need to replicate the structure as well
08:03
se6astian|away
changed nick to: se6astian
08:26
dimaursu16
joined the channel
08:26
dimaursu16
left the channel
08:26
dimaursu16
joined the channel
08:46
BAndiT1983
hi anuditverma, sorry working from home this week, so had a couple of telephone conferences and wasn't looking at IRC
08:46
BAndiT1983
your structure should stay like it is for now
08:47
BAndiT1983
i've created GoAPI folder in axiom_beta_daemon project, where client.go should be placed later, and other related files also
08:47
BAndiT1983
this has to be done manually for now
08:48
BAndiT1983
have you checked out the latest version of beta-software repo? there are some fixes and additions for the build of Go and C++
08:49
niculescu_vlad
joined the channel
08:52
anuditverma
Thanks and yes I saw the fixes
08:54
BAndiT1983
alright, try to build the new version, purge the build folder first to ensure clean start
08:55
BAndiT1983
put client.go into GoAPI folder, so CMakeLists.txt finds it, everything should be prepared without further intervention. at least it was on my system yesterday
08:56
BAndiT1983
if the build is "successful" and you get just Go errors, then you can start with fixing it, first one is the inverted definition of struct on line 10, then follows line 23
09:01
fredy_
joined the channel
09:01
illwieckz
left the channel
09:01
fredy
left the channel
09:01
fredy_
changed nick to: fredy
09:03
Bertl_zZ
changed nick to: Bertl
09:03
Bertl
morning folks!
09:05
anuditverma
Bandit, I am getting this https://pastebin.com/YbGZimGD
09:06
anuditverma
I copied client.go into GoAPI after git cloning
09:06
anuditverma
and then started the build process
09:06
illwieckz
joined the channel
09:10
BAndiT1983
anuditverma: have you cleared your build folder?
09:10
pusle
left the channel
09:10
BAndiT1983
CMake should create /src/Schema folder structure in it
09:11
anuditverma
ok let me check
09:11
anuditverma
There is a dir AxiomDaemon and axiom_daemon_generated.h file in Schema
09:12
BAndiT1983
and have you copied client.go to GoAPI in axiom_beta_control_daemon
09:12
anuditverma
yes
09:12
BAndiT1983
so they are generated
09:13
BAndiT1983
but your build tells me otherwise, it says: no buildable Go source files in /home/anudit/beta-software/axiom_beta_control_daemon/build/GoAPI
09:13
BAndiT1983
GoAPI/CMakeFiles/GoAPI.dir/build.make:61: recipe for target 'GoAPI' failed
09:14
anuditverma
let me try it again, I guess I copied it in a wrong dir
09:19
niculescu_vlad_
joined the channel
09:20
anuditverma
I see what happened, I need to build first then copy the file
09:20
BAndiT1983
?
09:20
BAndiT1983
you have to copy it before the build everything else does not make sense otherwise
09:21
BAndiT1983
later it will be merged into the main project
09:21
anuditverma
I copied it into axiom_beta_control_daemon/GoAPI and not into /home/anudit/beta-software/axiom_beta_control_daemon/build/GoAPI
09:21
BAndiT1983
that's why you have to copy it, to replicate the finished state
09:21
BAndiT1983
???
09:22
BAndiT1983
the first folder is right
09:22
BAndiT1983
you should never copy anything to the build folder, NEVER
09:22
anuditverma
there are two GoAPI folders
09:22
anuditverma
okay
09:22
BAndiT1983
we are working only with the source folder
09:22
BAndiT1983
maybe you need clean checkout
09:22
BAndiT1983
purge your local axiom_beta_daemon folder and get a fresh copy
09:23
anuditverma
Ok I am upto date now
09:23
niculescu_vlad_
left the channel
09:24
anuditverma
this file client.go is present in API dir right ? that I need to copy ?
09:25
BAndiT1983
API dir should only have 3 files which belong to C++: CMakeLists, Client.h and ClientExample.cpp
09:25
BAndiT1983
your client.go file should e present in the new GoAPI folder
09:25
anuditverma
yes there are 3 files
09:26
anuditverma
ok
09:26
BAndiT1983
there is also a CMae script which looks for it
09:26
BAndiT1983
*Cmake
09:26
BAndiT1983
*CMake
09:27
anuditverma
I have put my client.go into GoAPI
09:27
BAndiT1983
try to build
09:29
BAndiT1983
and in the mean time i will check what C++ does complain about
09:30
pusle
joined the channel
09:30
anuditverma
after everything : https://pastebin.com/JLG1PkPk
09:34
BAndiT1983
i've found a small bug in CMakeLists of C++ client, will commit it in a moment
09:34
anuditverma
cool, I will get back to my client.go
09:35
BAndiT1983
done, try it now, only Go errors should be there
09:35
anuditverma
ok
09:43
anuditverma
Bandit, https://pastebin.com/nbPzdh2B
09:44
sebix
joined the channel
09:46
BAndiT1983
what have i told you yesterday?
09:47
BAndiT1983
you should kick thee wrong includes out of your file
09:47
BAndiT1983
new ones should look like ->
09:47
BAndiT1983
import ( "fmt" "net" "Schema/AxiomDaemon" flatbuffers "github.com/google/flatbuffers/go")
09:47
BAndiT1983
argh, new lines were removed by clipboard, but you get the idea
09:48
anuditverma
on it
09:50
anuditverma
https://github.com/apertus-open-source-cinema/axiom-beta-rest-interface/commit/f10af4fd1a31047031798835e0532c747e51d7d9 ?
09:52
BAndiT1983
looks correct
09:52
BAndiT1983
another hint -> type Client struct {
09:55
BAndiT1983
ah, you forgot flatbuffers before "github...
09:55
BAndiT1983
look at my paste
09:57
anuditverma
https://github.com/apertus-open-source-cinema/axiom-beta-rest-interface/commit/33120af9c08fc28ab951b5c7b14b436f92d64179
09:57
BAndiT1983
yes, good start
09:57
BAndiT1983
but you said you need more directions
09:57
anuditverma
Yes !
09:57
BAndiT1983
have you looked at the reference i've posted in the issue about sockets?
09:58
anuditverma
Yes I checked it
09:58
BAndiT1983
have you got a connection to the socket?
09:59
BAndiT1983
you should comment everything out in the Client struct first, as it's C++ code and not related to Go, just use it as reference and remove it later
10:00
BAndiT1983
after that you should start to implement SetupSocket() method to get a connection
10:01
BAndiT1983
i will do it in parallel, so i can help when problems occur
10:02
anuditverma
thanks, let me try it first by myself I will ping you here or send a mail
10:03
BAndiT1983
no problem, it's your task, i'm just the safety net
10:03
BAndiT1983
;)
10:04
anuditverma
I think I got the right direction :) , was bit confused before
10:05
BAndiT1983
argh, but Go is just confusing for me, as im used to C/C++, C# and Java
10:05
BAndiT1983
especially method declaration is awkward and happens outside the struct (class)
10:06
anuditverma
yes that was my problem first, but I will get a hang of it
10:09
anuditverma
I still need to code and implement socket, after completing it, how can I test for connection ?
10:10
BAndiT1983
debugger, breakpoint in server.h at line 84
10:10
BAndiT1983
check out what ClientExample is sending
10:11
BAndiT1983
for other test possibilities we have to think of something more comfortable
10:11
anuditverma
cool
10:13
anuditverma
I think I should re-try the build after those corrections
10:23
anuditverma
right, I am getting Go related errors now
10:25
BAndiT1983
removed most code in my version, so i can build it from clean base, progressing well, now i will try to connect to scket
10:25
BAndiT1983
*socket
10:44
BAndiT1983
anuditverma: i've moved the build location to the main folder, as it was building in th GoAPI sub-folder there
10:44
BAndiT1983
now it should produce go_client executable, name can be changed later
11:05
BAndiT1983
anuditverma: connected to socket, crashing at the moment on dameon side, but at least i know what the caveats in golang are
11:05
BAndiT1983
you should use "unixgram" as protocol
11:05
BAndiT1983
net.Dial("unixgram", "/tmp/axiom_daemon")
11:55
niculescu_vlad
left the channel
12:29
anuditverma
left the channel
12:37
anuditverma
joined the channel
13:25
se6astian
changed nick to: se6astian|away
13:31
anuditverma
Bandit, thanks for the leads, I will try it now
13:39
BAndiT1983
no problem
13:39
BAndiT1983
i'll add flatbuffers schema in my version, so i can test the communication
13:43
se6astian|away
changed nick to: se6astian
14:13
sebix
left the channel
14:15
jucar
joined the channel
14:16
se6astian
changed nick to: se6astian|away
14:20
slikdigit
joined the channel
15:12
jucar
left the channel
15:29
slikdigit
left the channel
15:32
champika
joined the channel
16:02
__m__
Hej @anuditverma, hej @BAndiT1983
16:02
anuditverma
Hello
16:02
__m__
Everything fine?
16:04
anuditverma
Yes, there were few things so I have been clearing them with help from Bandit today
16:04
__m__
great
16:05
RexOrCine
left the channel
16:07
__m__
Let's take a look at the schedule, shall we?
16:07
anuditverma
I see https://github.com/apertus-open-source-cinema/beta-software/blob/master/axiom_beta_control_daemon/API/ClientExample.cpp sends few parameters like Gain, ADC range etc
16:07
anuditverma
oh ok sure, lets do that first
16:07
__m__
We have officially entered coding period
16:08
anuditverma
Right
16:08
__m__
What do you say about community bonding period? Everything fine? Did you reach your goals?
16:09
anuditverma
Ah not completely satisfied but at the near end, it seems fine, now next I can work on my client file as scheduled
16:10
Bertl
off for now ... bbl
16:11
Bertl
changed nick to: Bertl_oO
16:12
anuditverma
There were few times I was having some troubles in Go, but now I have a steady pace
16:13
__m__
Ok, that was to be expected. Good to hear you had your troubles, they are necessary to get better :D
16:13
anuditverma
So all in all it's good now
16:13
__m__
Great
16:13
anuditverma
:)
16:14
__m__
I added all issues of the coding period to github
16:14
BAndiT1983
evening
16:14
__m__
Is there anything you need help with at the moment, which you are not discussing with bandit already?
16:15
__m__
Hej there
16:15
BAndiT1983
was debugging, forgot about IRC
16:16
BAndiT1983
golang is driving me mad, but partially it's the fault of flatbuffers generator
16:16
anuditverma
Yes about those, I have 2 issues remaining, "improving go lang" and "docker usage", So I would keep the former one open for sometime and later one is for next week I guess
16:16
BAndiT1983
what is the goal of docker one?
16:17
anuditverma
according to description "Building a basic client app in Go that would be utilized to test the REST API interface throughout the project"
16:17
__m__
Docker usage was planned for week 1 of June, but it is ok for me if you do it next week
16:17
BAndiT1983
so what is the goal of docker?
16:17
__m__
Building the code in a docker process, write a Dockerfile for production
16:17
BAndiT1983
i see
16:20
anuditverma
about the ClientExample.cpp, for testing, testBuf, gain and ADCRange are used
16:20
__m__
Containerization helps us keeping boundaries
16:20
champika
left the channel
16:20
anuditverma
So for initial testing these would be used in Client.go as well ?
16:22
__m__
I would say yes
16:22
__m__
It is a good starting point in my opinion
16:22
BAndiT1983
using it at the moment, but it should be restructured later
16:22
anuditverma
okay
16:22
BAndiT1983
so we have client.go which contains client "class" and some controll application, like ClientExample
16:24
se6astian|away
changed nick to: se6astian
16:29
champika
joined the channel
16:33
__m__
@anuditverma , you know about what @BAndiT1983 is referring to? Everything clear?
16:34
__m__
*everything evident?
16:34
BAndiT1983
does bandit know what bandit is referring to? ;)
16:34
__m__
I hope so :D
16:35
BAndiT1983
__m__: you should manage the docker part, know a bit about it, but not enough
16:35
anuditverma
yes I got it
16:35
BAndiT1983
if it's necessary, then it should be set up early
16:36
__m__
Anudit wants to do it next week, that's fine for me
16:36
se6astian
changed nick to: se6astian|away
16:37
__m__
@anuditverma, shall I prepare the docker sceleton or do you want to try it alone first?
16:37
__m__
*skeleton
16:38
anuditverma
I want to try it first
16:39
__m__
Alright
16:39
__m__
That's your starting point: https://hub.docker.com/_/golang/
16:39
__m__
Anything else?
16:40
anuditverma
Nope
16:40
__m__
@BAndiT1983 ?
16:41
__m__
If not, I suggest we meet next week (!) same day, same time. Is that ok for everyone?
16:41
BAndiT1983
no, not from my side
16:41
anuditverma
Bandit would you be available tomorrow as well ?
16:41
BAndiT1983
yes, the time is ok
16:41
anuditverma
Yes, timings are fine
16:41
BAndiT1983
i think yes, just have to change the location again at some point in time, but it wouldn't last long as i do customer care and have to be near my laptop for that
16:42
anuditverma
ok great
16:42
__m__
Ok, great, so we meet next Wednesday at 4pm UTC. See you!
16:43
BAndiT1983
bye
16:43
BAndiT1983
also nice instructions -> https://blog.docker.com/2016/09/docker-golang/
16:43
anuditverma
Thanks to both !
16:46
champika
left the channel
16:52
davidak
joined the channel
16:53
BAndiT1983
anuditverma: we need an investigation about strong typing of flatbuffers generated files for Go
16:54
BAndiT1983
if i do it by hand, it works somehow, but the generated files don't have any, so i have to use int for type when passing to some method
16:55
BAndiT1983
it's about enums
16:55
anuditverma
may some sort of type casting is needed then, if it so
16:55
anuditverma
*be
16:56
BAndiT1983
no, not casting
16:56
BAndiT1983
i want to define methods which take strong typed arguments
16:56
BAndiT1983
otherwise one could insert anything and that's not the goal
16:57
BAndiT1983
e.g. it should have something like that at the begining of the file, below package -> Mode.go -> type Mode int
17:01
anuditverma
will this help https://google.github.io/flatbuffers/flatbuffers_grammar.html ?
17:02
BAndiT1983
how should it help? the problem lies in the generator
17:02
BAndiT1983
have to ask in the isues if flatbuffers
17:02
BAndiT1983
*issues
17:03
BAndiT1983
the schema works fro C++, but Go one is problematic
17:03
BAndiT1983
just take a look at the generated content
17:03
anuditverma
oh ok I thought it has something to do with declaration
17:03
anuditverma
ok
17:08
davidak
left the channel
17:09
slikdigit
joined the channel
17:18
BAndiT1983
added new issue for FB, let's see what the guys will say about it -> https://github.com/google/flatbuffers/issues/4333
17:20
anuditverma
great
17:20
anuditverma
left the channel
17:20
BAndiT1983
we will see if it is great or dumb
17:20
anuditverma
joined the channel
17:21
anuditverma
Let's hope it gets fixed :P
17:22
anuditverma
FB version ?
17:22
anuditverma
flatbuffers
17:22
anuditverma
?
17:23
BAndiT1983
yes, flatbuffers
17:25
BAndiT1983
i could fix it also, but i want to hear the opinion of the people who have developed it
17:26
BAndiT1983
maybe i'm missing something and it's already possible
17:26
BAndiT1983
just wait and see
17:26
anuditverma
The bot hasn't replied yet :P
17:39
anuditverma
we should probably add that issue is for a gsoc project, may be then their developers would add/label it on a fast track :D
17:42
BAndiT1983
maybe, let's wait a day or 2
17:42
BAndiT1983
what are you using for Go development?
17:45
BAndiT1983
if noone replies, then i will try to add new option for FB compiler and also the handling in Go generator, afterwards create a pull request, then it should be more important for the guys
17:47
anuditverma
Not using any ide or plugin for Go
17:47
anuditverma
any recommendations ?
17:47
BAndiT1983
i would suggest Visual Studio Code with Go plugin/s
17:47
anuditverma
okay
17:47
BAndiT1983
i even set GOPATH, so it uses the generated schema files, so i can develop with less errors
17:47
BAndiT1983
it builds when saving
17:48
BAndiT1983
and tells me when errors or warnings occur
17:48
anuditverma
I see it's available for linux as well
17:48
anuditverma
cool
17:48
anuditverma
Thanks
17:48
BAndiT1983
i'm developing under linux as the camera uses also ArchLinux
17:49
BAndiT1983
otherwise i wouldn't tell you about the IDE if it were not available for it
17:50
anuditverma
I read "Visual" so a Microsoft product, that's why I said so :P
17:50
anuditverma
I will try it
17:50
BAndiT1983
hey, worked with VS on daily base in former company, one of the best IDEs
17:51
BAndiT1983
QtCreator is still missing features, CLion also
17:51
anuditverma
oo I see, cool
17:51
BAndiT1983
Eclipse is a piece of slow junk
17:53
anuditverma
installed VS
17:55
BAndiT1983
you can install Go extensions, there are just 1 or 2 which are usable
17:55
BAndiT1983
afterwards you can open user settings with ctrl+, or similar, or even look usersettings up with ctrl+shift+p and type user settings to get the command
17:55
BAndiT1983
then place following there -> https://pastebin.com/Jyi8LaLx
17:56
BAndiT1983
just adjust the path for your build path
17:56
BAndiT1983
afterwards it should find the generated files and only mark the real errors in your code
18:10
anuditverma
I have updated the settings
18:11
anuditverma
how it find those files ? I need to manually add the workspace ?
18:11
anuditverma
*would
18:17
zaiwr4
joined the channel
18:18
zaiwr4
left the channel
18:38
anuditverma
Bandit, bye for now, I will see you tomorrow, goodnight
18:39
anuditverma
left the channel
18:39
niculescu_vlad
joined the channel
23:09
slikdigit
left the channel
23:25
BAndiT1983
changed nick to: BAndiT1983|away
23:26
intracube
changed nick to: intracube_afk