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

IRC log for #mojo, 2014-01-13

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

All times shown according to UTC.

Time Nick Message
00:08 genio That's a lot of glory
00:21 stl joined #mojo
00:34 amirite joined #mojo
01:07 good_news_everyone joined #mojo
01:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/MEfSYA
01:07 good_news_everyone mojo/master 701af99 Sebastian Riedel: more RFC links
01:07 good_news_everyone left #mojo
01:54 d4rkie joined #mojo
02:04 amirite joined #mojo
02:45 klapperl_ joined #mojo
02:46 dj_goku joined #mojo
04:15 preflex_ joined #mojo
05:14 amirite joined #mojo
05:15 laouji joined #mojo
05:56 good_news_everyone joined #mojo
05:56 good_news_everyone [mojo] kraih created livelog (+1 new commit): http://git.io/GTfsTg
05:56 good_news_everyone mojo/livelog a8bb214 Sebastian Riedel: added real-time logging to not found and exception pages
05:56 good_news_everyone left #mojo
05:57 sri it's so simple to make those log widgets update in realtime :)
06:07 sri don't worry, that will never make it into master... just wondered how easy it would be ;p
06:22 tianon that's super cool :D  it seems to me that'd be a really great example of websockets in the docs somewhere too, since it's reasonably short, too :)
06:31 laouji joined #mojo
06:38 mire__ joined #mojo
06:45 Vandal joined #mojo
07:11 sunson joined #mojo
07:12 sunson Is there a way we can insert stuff (like perl-page CSS, per-page JS, etc.,) into <head> of my layout from different routes?
07:12 sunson s/perl/per/
07:13 stl joined #mojo
07:31 bobkare sunson: take a look at the content_for helper, and the usage example in the mojolicious::lite docs
07:35 Tiger joined #mojo
07:50 sunson bobkare: thanks
07:51 Tiger Guys, anyone use mojolicious::plugin::dbi ? i use Mojolicious::Plugin::Database but it have issue with dropped connection "MySQL server has gone away". What should I use: DBI / DBIx:Connector or any mojolicious plugin?
08:02 dod joined #mojo
08:03 highflying joined #mojo
08:21 rem_lex|pivo joined #mojo
08:24 rem_lex joined #mojo
08:25 basiliscos joined #mojo
08:25 dod joined #mojo
08:26 batman Tiger: DBIx::Connector
08:26 purl DBIx::Connector to the rescue!
08:28 odc joined #mojo
08:29 trone joined #mojo
08:33 Tiger Thanks guys, i read https://github.com/kraih/mojo/wiki/Hypnotoad-prefork-web-server and prefer using DBIx::Connector too.
08:39 maxhq joined #mojo
09:12 keedi joined #mojo
09:16 laouji joined #mojo
09:18 laouji_ joined #mojo
09:19 dpetrov_ joined #mojo
09:32 Tiger what am i doing wrong: i try to create db helper in startup sub
09:32 Tiger $self->attr('dbh' => $connector->dbh);
09:32 Tiger $self->helper('db' => sub { return shift->dbh });
09:32 Tiger but i get error Default has to be a code reference or constant value
09:35 Adura Should probably use a pastebin-like service for more than one line of code.
09:37 Tiger sorry but only 2 line.
09:40 lukep joined #mojo
09:48 laouji joined #mojo
09:49 Tiger http://pastebin.com/56QqgEMP
09:51 laouji joined #mojo
09:52 dpetrov_ left #mojo
09:59 trone joined #mojo
10:02 rem_lex|pivo joined #mojo
10:05 rem_lex| joined #mojo
10:14 dvinciguerra joined #mojo
10:22 dotan joined #mojo
10:38 denisboyun joined #mojo
10:45 Jonis Tiger: https://gist.github.com/jonisno/8398093 here's how I've done it, using dbix
10:45 hummeleBop joined #mojo
10:46 Jonis not sure if that's any use now that I think about it
10:47 mst Tiger: $self->helper(db => sub { $connector });
10:47 mst Tiger: then $self->db->run(sub { ... });
10:47 mst Tiger: assuming you're using DBIx::Connector
10:47 mst Jonis: DBIx::Class already has that logic built-in
10:48 mst Jonis: people using straight DBI get to do that themselves, along with everything else ;)
10:48 Jonis ;)
10:50 Jonis I'm a dbix newbie myself, but it makes everything so much more pleasant
10:51 mst dbic please
10:51 purl dbic is a very naughty boy
10:51 mst purl, forget dbic
10:51 purl mst: I forgot dbic
10:51 mst Jonis: there's hundreds of DBIx:: projects
10:51 mst Jonis: DBIx::Class should be shortened to DBIC
10:52 Jonis mst: noted
10:57 mst Jonis: we tried not complaining for a while and #dbix-class got overrun with people wanting help on random DBIx::* projects ... so went back to complaining :D
11:09 Jonis understandable
11:32 fhelmber_ joined #mojo
11:53 dsteinbrunner joined #mojo
11:54 KindTwo joined #mojo
12:26 amirite_ joined #mojo
12:37 trone joined #mojo
12:54 dvinciguerra joined #mojo
13:41 d4rkie joined #mojo
14:19 btyler joined #mojo
14:23 rem_lex joined #mojo
14:32 asarch joined #mojo
14:32 bluescreen joined #mojo
14:36 KindOne joined #mojo
15:03 marty joined #mojo
15:21 gryphon joined #mojo
15:28 zackiv31 joined #mojo
15:28 marty joined #mojo
15:29 marty joined #mojo
15:45 dvinciguerra joined #mojo
16:13 nornagest joined #mojo
16:14 sh4 joined #mojo
16:41 mire__ joined #mojo
16:52 laouji joined #mojo
16:55 sh4 joined #mojo
16:59 sh4|2 joined #mojo
17:05 sh4 joined #mojo
17:26 elvis_ joined #mojo
17:26 batman_ joined #mojo
17:35 marty_ joined #mojo
17:38 beyondcreed joined #mojo
17:45 rem_lex|pivo joined #mojo
17:53 mtths joined #mojo
18:21 elvis joined #mojo
18:21 batman joined #mojo
18:30 sjn joined #mojo
18:59 mire__ joined #mojo
19:01 sh4 joined #mojo
19:13 kej joined #mojo
19:46 dod joined #mojo
19:50 denisboyun joined #mojo
20:36 hrupp joined #mojo
20:38 lukep joined #mojo
20:46 zM joined #mojo
21:12 meshl joined #mojo
21:38 zM Hello
21:57 bluescreen joined #mojo
22:12 marty_ o/
22:14 marty Hello, zM
22:14 sivoais joined #mojo
23:36 jberger joined #mojo
23:43 jberger o/
23:43 zM \o
23:44 jberger sri: is there are real-time log plugin (that you are aware of?) if not, could be a fun one
23:45 jberger it would be a nice demo
23:45 jberger and useful at the same time
23:47 zM Code it ;)
23:47 tianon sri already did, and it's super pretty <3
23:47 tianon see http://git.io/GTfsTg
23:48 tianon it's not a plugin, but it's a POC that's super duper cool
23:53 jberger zM: http://irclog.perlgeek.de/mojo/2014-01-13#i_8110880
23:54 zM Am I crazy or kraih is a Futurama fan ?
23:54 tianon no, that's crazy

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