These are chat archives for synrc/n2o

9th
Apr 2016
Denys
@denys-potapov
Apr 09 2016 08:07
у меня в review не выводятся логи в консоль - так и должно работать?
версия из мастера, запусткаю через ./mad dep com pla repl
в консоле
```
wf:error(index, "test", []). 
ok
rusjava8
@rusjava8
Apr 09 2016 08:18
This message was deleted
Canislupax
@Canislupax
Apr 09 2016 09:35
anyone used n2o as backendwebserver for mobile apps developed with angularjs?
Namdak Tonpa
@5HT
Apr 09 2016 11:01
> wf:error(index,"test",[]).

=ERROR REPORT==== 9-Apr-2016::14:01:04 ===
index:test
ok
Roman
@AstRonin
Apr 09 2016 11:27
@denys-potapov , проверь модуль config.erl, там перечисляются модули, в которых wf будет выдавать логи, можно еще проверить io:write выводит ли что-то
Canislupax
@Canislupax
Apr 09 2016 11:44
how to access complete http header, attributes could be read with wf:q(attr) but i need to analyse complete headers and queries...
Namdak Tonpa
@5HT
Apr 09 2016 11:44
read cowboy documentation
Denys
@denys-potapov
Apr 09 2016 19:03
This message was deleted
@AstRonin
wf:error(index,"test",[]).
ok
2> io:write("test").
[116,101,115,116]ok
3> error_logger:error_report("test error"). 
ok
4>
Namdak Tonpa
@5HT
Apr 09 2016 20:05
а шо за эрланг?
rusjava8
@rusjava8
Apr 09 2016 20:06
ЯП какой то
Namdak Tonpa
@5HT
Apr 09 2016 20:08
@Canislupax anyway N2O is just a bridge over cowboy
Canislupax
@Canislupax
Apr 09 2016 20:08
yes learned much today how you implemented the rest handlers etc....
Namdak Tonpa
@5HT
Apr 09 2016 20:09
:-)
Canislupax
@Canislupax
Apr 09 2016 20:09
written some onwn stuff and its working creat with the other n2o modeles...
Namdak Tonpa
@5HT
Apr 09 2016 20:09
it is very techy, the author is @b0oh
Canislupax
@Canislupax
Apr 09 2016 20:10
yeah i read much today about cowboy and the implementations study the code ....
Namdak Tonpa
@5HT
Apr 09 2016 20:10
how it transformed your n2o vision ? :-)
Canislupax
@Canislupax
Apr 09 2016 20:12
n2o is so much easier to get things done fast.... without developing own handlers and json to erlang record stuff
i struggle a little bit with trying to implement a chat app to interact with your chat example in the review app
from mobile devices with angujarjs
Namdak Tonpa
@5HT
Apr 09 2016 20:14
actually review application is a chat application, with persistence
Canislupax
@Canislupax
Apr 09 2016 20:15
i hate to write code in javascript -> that was the reason i switched to n2o because i have the ability to write everything in erlang
Namdak Tonpa
@5HT
Apr 09 2016 20:15
how angularjs supports websockets ?
Canislupax
@Canislupax
Apr 09 2016 20:15
there are some modules angula-websocket from angularclass e.g.
Namdak Tonpa
@5HT
Apr 09 2016 20:15
you could create some sort of n2o connector for angular apps
and open source it
Canislupax
@Canislupax
Apr 09 2016 20:16
if i had time .... :-(
Namdak Tonpa
@5HT
Apr 09 2016 20:16
never had a chance to work with angular
Canislupax
@Canislupax
Apr 09 2016 20:22
but thank you for your support every time!
Denys
@denys-potapov
Apr 09 2016 22:09
"а шо за эрланг?" это был, наверно, мне вопрос:
$ erl
Erlang/OTP 18 [erts-7.3] [source-d2a6d81] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.3  (abort with ^G)
1> error_logger:error_report("test error"). 
ok

=ERROR REPORT==== 10-Apr-2016::01:08:46 ===
test error
2>
Namdak Tonpa
@5HT
Apr 09 2016 22:54
тум у него SASL наверно не запущен просто
хотя у меня и так и так работает все.
а как эрланг стартует он?
а или это у тебя проблема (перечитал фид)
счас попробую вытащить
> wf:error(index, "test", []).
ok
вроде вопроизводится
Namdak Tonpa
@5HT
Apr 09 2016 23:06
странно
но это com ломает

т.е.

./mad dep pla rep

или

./mad rep

все ок

только если

./mad com rep

(минимальное вопроизведение)

счас найдем почему com ломает вывод
я подозреваю потому что там делаются операции над code:path
            code:replace_path(Name,EbinDir),
возможно это ломает