The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-01-27

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:04 KindTwo joined #mojo
00:45 d4rkie joined #mojo
01:24 ka2u joined #mojo
01:59 Kundun joined #mojo
02:16 laouji joined #mojo
02:32 klapperl_ joined #mojo
02:54 jberger joined #mojo
02:54 jberger o/
02:54 jberger sri: doing that little hackathon I mentioned earlier
02:54 jberger is there a Mojo::Template-like templating lanuage for python
02:55 sri \o
02:55 jberger meaning, the code lines are pythonish?
02:55 sri i believe significant whitespace makes that impossible
02:55 jberger rather than jinja2 (which is basically tt right?)
02:55 jberger gar I hate that!
02:55 * jberger hugs Mojo::Template
02:56 sri most i come across seem to use jinja2-ish stuff
02:56 * jberger sets tt on fire
02:56 jberger I do like routing with decorators
02:57 sri :O
02:58 jberger except when you have to use two of them for matching a default value
02:58 jberger sri: thanks, saved us a bunch of searching
03:09 jberger so ... is scalar deref dead then?
03:17 jberger might be cutting the hackathon a little short tho
03:17 jberger weather getting nasty again
03:17 purl Try a 4-letter station code (see http://weather.noaa.gov/weather/curcond.html for locations and codes)
03:58 amirite joined #mojo
04:40 btyler_ joined #mojo
04:45 btyler joined #mojo
04:46 laouji joined #mojo
04:58 ka2u joined #mojo
05:08 irq joined #mojo
05:19 laouji joined #mojo
05:58 laouji joined #mojo
06:18 zacts joined #mojo
06:20 Vandal joined #mojo
07:37 trone joined #mojo
07:38 laouji_ joined #mojo
07:50 rawler joined #mojo
07:51 beyondcreed joined #mojo
07:53 dpetrov_ joined #mojo
07:56 dod joined #mojo
08:08 amirite joined #mojo
08:16 trone joined #mojo
08:17 maxhq joined #mojo
08:22 dotan joined #mojo
08:22 dod joined #mojo
08:27 ka2u joined #mojo
08:30 odc joined #mojo
08:32 cleverfox joined #mojo
09:20 irq joined #mojo
09:21 cl joined #mojo
09:37 denis_boyun joined #mojo
10:08 nicomen joined #mojo
10:19 marcus http://www.josetteorama.com/all-about-catalyst-interview-of-matt-s-trout-part-3-of-3/
10:26 kwa joined #mojo
10:29 laouji joined #mojo
10:35 bowtie_ joined #mojo
10:40 laouji joined #mojo
10:53 basiliscos joined #mojo
10:59 laouji joined #mojo
11:01 d4rkie joined #mojo
11:02 laouji_ joined #mojo
11:07 Vandal joined #mojo
11:13 batman marcus: anything interesting in that interview ?
11:14 marcus batman: well, mst is sort of mentioning us without mentioning us :)
11:15 marcus I'm not sure what he means by us having a jarring experience using other CPAN modules tho.
11:16 batman ok, hehe
11:21 d4rkie joined #mojo
11:39 jack joined #mojo
12:27 cleverfox joined #mojo
12:36 dod joined #mojo
12:43 basiliscos joined #mojo
13:18 dvinciguerra joined #mojo
13:43 Tiger Guys, i use prefork server and module Zabbix-API. When zabix api couldn't connect to remote server: module died (croak) and mojolicious server too. Can i ignore croak in included modules? I seen that mojoliciuos hanlde exceptions in _exception subroutine, can i set up ignoring die/croak commands?
13:49 ver joined #mojo
13:49 diegok Tiger: eval?
13:49 purl well, eval is a unary operator
13:51 Tiger diegok: server dies before  than elal handle error
13:52 diegok you mean, server really dies?, hypnotoad goes down?
13:52 Tiger http://pastebin.com/6yTJnPp2
13:53 diegok why do you call exit?
13:53 diegok you don't want to exit your web app I guess...
13:54 Tiger server dies in $zabapi->login($zabbixAuth); before  if ($@) block works
13:55 diegok I can't test as I don't know/have a zabbix instance, but that doesn't make any sense to me... :-/
13:56 diegok well... I guess I can try running without any zabbix running to test this error... can you paste a full lite app where I can reproduce this problem?
13:58 Tiger i have only full app in github
14:00 Tiger i try to write lite app now
14:00 basiliscos joined #mojo
14:01 diegok Tiger: I'm pretty sure this eval{} thing should work
14:01 diegok just remove that exit.
14:01 diegok place a return instead if you want to stop response at that point.
14:02 arthas joined #mojo
14:04 Tiger i tried replace exit to return 0, it seems to work
14:04 diegok sure... you were stopping your server by calling exit.
14:06 Tiger it seemed to me that it does not work due to the fact that debugger misses the exception block
14:06 Tiger Thanks a lot for help!!!
14:07 diegok :)
14:07 Tiger this is my first app in mojolisious
14:07 diegok just remember, this is just perl! ;-)
14:10 diegok Tiger: just note that you are blocking your app on every call to zabbix::api
14:14 Tiger diegok:  Can you please spend 3-5 minutes to review my code from mojolicious standpoint?  Am I using the functions correctly? That would help me a lot. https://github.com/dmitry-tiger/Graph
14:14 gryphon joined #mojo
14:20 diegok Tiger: I'm not used to DBIx::Connector, but it looks like you're connecting before server forks so connection will be shared... you should connect on first call to your db helper so heach fork get it's own connecion.
14:23 Tiger i started to use  DBIx::Connector because i got error  MySQL server has gone away after long innectivity
14:24 diegok ok, that's fine. Just do connect on first call to your helper instead of connecting on startup()
14:30 Tiger diegok: you said about  rules in https://github.com/kraih/mojo/wiki/Hypnotoad-prefork-web-server  ?
14:31 russum joined #mojo
14:32 Tiger ^^ Database connection problem in preforking
14:43 bluescreen joined #mojo
14:51 diegok :)
14:51 nic or test on startup, but then throw away the dbh once you've proved it's good
14:58 geira joined #mojo
14:59 btyler joined #mojo
15:01 marty_ joined #mojo
15:14 ryozi joined #mojo
15:14 asarch joined #mojo
15:16 marty joined #mojo
15:16 marty joined #mojo
15:18 sh4 joined #mojo
15:48 inokenty joined #mojo
15:48 good_news_everyone joined #mojo
15:48 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/HJKuYA
15:48 good_news_everyone mojo/master 0cfbe55 Sebastian Riedel: use example with multiple custom headers for get command
15:48 good_news_everyone left #mojo
15:50 good_news_everyone joined #mojo
15:50 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/hlZgJg
15:50 good_news_everyone mojo/master 57423cc Sebastian Riedel: small documentation tweak
15:50 good_news_everyone left #mojo
15:54 good_news_everyone joined #mojo
15:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-TnOGA
15:54 good_news_everyone mojo/master a8deb4f Sebastian Riedel: "for" sounds better than "to"
15:54 good_news_everyone left #mojo
16:09 mire joined #mojo
16:14 r0b3rt joined #mojo
16:35 Ralesk joined #mojo
17:05 nornagest joined #mojo
17:06 basiliscos joined #mojo
17:17 irq joined #mojo
17:23 marty joined #mojo
17:23 marty joined #mojo
17:32 ka2u joined #mojo
17:42 beyondcreed joined #mojo
17:47 denis_boyun joined #mojo
18:08 cleverfox joined #mojo
18:20 zM joined #mojo
18:39 rem_lex|pivo joined #mojo
18:43 frankz joined #mojo
19:04 hrupp joined #mojo
19:32 mire joined #mojo
19:33 dod joined #mojo
19:44 mire_ joined #mojo
20:37 lukep joined #mojo
20:53 Negor joined #mojo
20:54 Negor Hi. Is there any good example of good application structure on mojo?
21:09 Negor joined #mojo
21:11 bpmedley https://github.com/tempire/MojoExample <-- This might be helpful
21:16 cleverfox joined #mojo
21:17 irq joined #mojo
22:09 marcus_ joined #mojo
22:11 marcus_ joined #mojo
22:22 bodgix joined #mojo
22:44 rem_lex| joined #mojo
23:08 cleverfox joined #mojo
23:34 beyondcreed joined #mojo
23:39 * sri wonders if he stumbled over a bug in Compress::Raw::Zlib
23:39 sri it appears i can't get LimitOutput to work
23:41 sri you'd think Compress::Raw::Zlib::Inflate->new(Bufsize => 10000, LimitOutput => 1, WindowBits => -15) wouldn't be able to inflate a zip bomb... but it does
23:43 sri 10k bufsize and it happil inflates a 1mb file... i don't get it
23:43 sri *happily
23:57 ZadYree joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary