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

IRC log for #mojo, 2014-01-14

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

All times shown according to UTC.

Time Nick Message
00:20 stl joined #mojo
00:21 KindOne joined #mojo
00:22 jack joined #mojo
00:29 zM How can I access to params in a template ? Should I stash it ?
00:29 zM them*
00:34 tianon check out the param helper :)
00:34 zM Good idea :)
00:34 tianon http://mojolicio.us/perldoc/Mojolicious/Plugin/DefaultHelpers#param
00:34 zM Danke
00:35 zM This templating system is awesome.
00:36 marty joined #mojo
00:45 d4rkie joined #mojo
00:47 dvinciguerra joined #mojo
00:49 tempire_ joined #mojo
00:50 laouji joined #mojo
00:58 laouji_ joined #mojo
01:00 zM "ALL GLORY TO THE HYPNOTOAD!" :' )
01:03 d4rkie joined #mojo
01:05 zM Is it possible to specify a port in app->start(); ?
01:06 zM I've found how.
01:41 jberger <3 Mojo::Template/EP
01:41 jberger zM: glad you are enjo ... ALL GLORY TO THE HYPNOTOAD!!!
02:01 cfedde joined #mojo
02:22 salparadise joined #mojo
02:45 klapperl joined #mojo
02:57 russum joined #mojo
02:57 russum left #mojo
03:20 asarch joined #mojo
03:21 laouji joined #mojo
03:30 laouji_ joined #mojo
04:07 laouji joined #mojo
04:10 usetheforce joined #mojo
04:10 usetheforce Hi all
04:11 usetheforce how would I go about iterating through each of these: say $ua->get('http://en.wikipedia.org/w/api.php?format=json&amp;action=parse&amp;page=_page&amp;prop=sections')->res->json->{parse}->{sections}[0]{anchor}; without using a counter for the array index.
04:11 usetheforce So there are 20 sections let's say and I want the anchor for each one.
04:14 preflex_ joined #mojo
04:59 laouji joined #mojo
05:12 laouji joined #mojo
05:47 beyondcreed joined #mojo
06:24 amirite joined #mojo
07:14 Lucas1 joined #mojo
07:21 * marcus started watching Bob's Burgers last night. Pretty good!
07:22 omega is it a tv show?
07:22 marcus omega: yeah, https://en.wikipedia.org/wiki/Bob's_Burgers
07:37 Vandal joined #mojo
07:38 dpetrov_ joined #mojo
07:58 laouji joined #mojo
08:15 rem_lex joined #mojo
08:17 laouji joined #mojo
08:28 laouji joined #mojo
08:29 laouji_ joined #mojo
08:31 odc joined #mojo
08:32 trone joined #mojo
08:48 dvinciguerra joined #mojo
08:53 maxhq joined #mojo
09:02 highflying joined #mojo
09:03 dpetrov_ joined #mojo
09:06 basiliscos joined #mojo
09:20 irq joined #mojo
09:26 denisboyun joined #mojo
09:40 hummeleBop joined #mojo
09:57 ka2u joined #mojo
10:17 dpetrov_ joined #mojo
10:25 laouji joined #mojo
10:33 dvinciguerra joined #mojo
10:38 Tiger Guys, i use http://pastebin.com/p02cxrQv as described https://github.com/kraih/mojo/wiki/Hypnotoad-prefork-web-server and got error  MySQL server has gone away after long timeout. What i'm doing wrong? i need check connection manually?
10:39 nicomen up the connection timeout in myslq, or add a reconnect option when connecting
10:41 nicomen look at mysql_auto_reconnect in http://search.cpan.org/~capttofu/DBD-mysql-4.025/lib/DBD/mysql.pm
10:47 Tiger nicomen: i read that if i use DBIx::Connector  "Even if database connection is closed, the connection is automatically reconnected."  proof https://github.com/kraih/mojo/wiki/Hypnotoad-prefork-web-server. Maybe i forgot anything
10:52 Tiger maybe i need use special execution methods as (run txn svp) except  (prepare execute) from dbi
10:52 kwa Tiger: I don't think you should connect in startup.
10:54 kwa http://toroid.org/ams/etc/mojolicious-db-handles
11:07 laouji joined #mojo
11:07 fhelmber_ joined #mojo
11:14 bpmedley Tiger: Where are you getting the error message?  Which log file?
11:25 Tiger bpmedley: i got in to console
11:26 Tiger bpmedley: DBD::mysql::st execute failed: MySQL server has gone away at /home/graphtool/script/../lib/Graph/Auth.pm line 74.
11:28 bpmedley Did you try the mysql_auto_reconnect feature of DBD::mysql?
11:28 Tiger no
11:28 bpmedley Would you?
11:28 purl never!
11:30 Tiger now i try rewrite code to use  DBIx::Connector->run with mode ping insdead using DBIx::Connector->dbh
11:31 bpmedley That could be an alternate approach.
12:04 dotan joined #mojo
12:12 nicomen Tiger: ah, I have never used the connector thing
12:12 nicomen but maybe passing around the dbh is the wrong way?
12:13 laouji joined #mojo
12:15 nicomen ah run and friends
12:15 laouji joined #mojo
12:21 ka2u joined #mojo
12:31 xantus joined #mojo
12:37 dvinciguerra joined #mojo
12:48 nicomen is there a script/app get <url> version that also outputs headers?
12:49 nicomen bah, I should think before I ask
12:49 nicomen -v
12:50 nicomen except I don't get the output...
12:51 nicomen ah STDERR is overriden...
13:17 zM1 joined #mojo
13:38 zM1 Can someone help me please ?
13:39 bpmedley zM: What do you need help with?
13:39 zM I don't know how get a CSS file without have it in my app.pl
13:39 zM Sorry, I'm a beginner with Mojo !
13:39 bpmedley zM: Are you familiar with public directories?  Have you read the tutorial?
13:39 zM And I haven't found anything in the doc
13:40 zM I have read the Mojolicious::Lite tuto, not whole but there is nothing about CSS files : (
13:40 bpmedley zm: http://mojolicio.us/perldoc/Mojolicious/Lite#Static_files
13:40 bpmedley CSS is Just a static file.
13:41 zM Thank you very much bpmedley
13:41 zM pbmedley++
13:41 zM bpmedley++
13:45 d4rkie joined #mojo
14:00 d4rkie joined #mojo
14:30 ka2u joined #mojo
14:31 odc great! i've fixed MojoX::AIO. Now let's see if this japanese dude is still alive...
14:41 sh4 joined #mojo
15:02 btyler joined #mojo
15:02 mire__ joined #mojo
15:06 zM joined #mojo
15:12 zM Knows someone how can I use ojo's feature "g" in a template ? Which package should I use ?
15:13 zM (It's maybe, again, a silly question ... sorry ;)
15:14 zM This is*)
15:23 go|dfish zM: http://mojolicio.us/perldoc/ojo#g
15:24 laouji joined #mojo
15:25 bpmedley zm: http://mojolicio.us/perldoc/Mojolicious/Plugin/DefaultHelpers#ua  <-- How is this?
15:32 gryphon joined #mojo
15:32 zM Thank you again bpmedley
15:39 irq joined #mojo
15:46 * bd wonders when ojo end's up running out of characters ...
15:50 ralesk_ There's always place for ߞ and some others :D
15:51 cfedde unicode character function names.
15:53 cfedde it is bad enough decoding perl when functions and variable are german.  What is it going to be like when they are thai?
15:53 ralesk_ :D
15:54 ralesk_ or even a() vs. а()
15:55 ralesk_ perl -Mojo::WeBeTrollin -e '...'
15:55 bd and again, perl can parse more than I
15:59 azerus joined #mojo
16:11 nicomen coffescript reminds me a lot of perl, and I already wish perl had one thing, the question mark modifier
16:11 nicomen undefined?->lol == undefined
16:12 nicomen wonder if that is possible to implement somehow
16:20 mire__ joined #mojo
16:29 marty joined #mojo
16:29 marty joined #mojo
16:47 ka2u joined #mojo
17:05 meshl joined #mojo
17:24 amirite_ joined #mojo
17:29 mishantil So what's this talk about a mojo-conf i Oslo?
17:29 mishantil *in
18:04 kej joined #mojo
18:23 nornagest joined #mojo
18:27 batman i don't get what's going on with perltidy here: http://p.thorsen.pm/64b4786dcc12
18:28 beyondcreed joined #mojo
18:28 batman i think i'm using the perltidy from mojo...
18:43 * batman will test 0.4rc1
18:45 elvis joined #mojo
18:45 elvis joined #mojo
18:45 dvinciguerra joined #mojo
18:45 elvis_ joined #mojo
18:46 elvis__ joined #mojo
18:46 elvis___ joined #mojo
18:54 elvis joined #mojo
19:01 denisboyun joined #mojo
19:12 elvis joined #mojo
19:14 elvis joined #mojo
19:15 elvis joined #mojo
19:19 elvis joined #mojo
19:29 batman joined #mojo
19:29 dpetrov_ joined #mojo
19:31 lukep joined #mojo
19:34 bluescreen joined #mojo
19:41 batman joined #mojo
19:57 mire__ joined #mojo
20:04 fhelmber_ joined #mojo
20:06 trone joined #mojo
20:21 KindOne joined #mojo
20:36 hrupp joined #mojo
20:51 btyler joined #mojo
20:56 ivan joined #mojo
20:57 zackiv31 joined #mojo
20:58 zackiv31 joined #mojo
21:21 fhelmber_ joined #mojo
21:25 jnbek joined #mojo
21:28 jnbek joined #mojo
21:51 rem_lex|pivo joined #mojo
21:55 riche joined #mojo
22:02 fhelmber_ joined #mojo
22:28 jnbek joined #mojo
22:30 amirite joined #mojo
22:57 zM joined #mojo
23:00 jberger joined #mojo
23:31 * jberger yawns
23:32 * jberger lights purl on fire
23:33 * jberger roasts marshmallows over purl
23:34 jberger Bender: spread the love
23:34 purl jberger: TI EST BEAU, TU EST COMME UNE PETITE FLEUR DES CHAMPS, TU SENS BON, TES ORTEILS SONT DIX PETITS CHOUX À LA CRÈME !
23:34 jberger Bender:  share the love
23:34 purl somebody said share the love was at http://conferences.oreillynet.com/cs/eurooscon/view/e_sess/7497
23:42 zM Ten cream puffs as foot fingers ?... Eurk ...
23:43 zM (There is a conjugation mistake : "tu es beau", "tu es comme [..]", not "est" ; )
23:44 jberger zM purl is not really big on conjugation
23:45 jberger botsnack
23:45 purl thanks jberger :)
23:45 zM Ahahah
23:46 jberger Why not zoidberg?
23:46 purl (V) (;,,;) (V)
23:48 zM jberger: do you know if a new season will appear soon ?
23:49 jberger Futurama?
23:49 purl Futurama is not on, unfortunately. or has left the building
23:49 zM Yes
23:49 jberger iirc it ended
23:50 Adura Multiple cancellations.

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