Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-12

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

All times shown according to UTC.

Time Nick Message
00:06 egopro joined #mojo
00:10 egopro_ joined #mojo
00:22 MeierM joined #mojo
00:36 GabrielVieira2 joined #mojo
01:12 ka2u joined #mojo
01:22 hlin joined #mojo
01:44 asarch joined #mojo
01:58 d4rkie joined #mojo
02:17 mire joined #mojo
02:56 mattastrophe joined #mojo
03:01 diegok joined #mojo
03:10 Bender joined #mojo
03:21 mattastrophe joined #mojo
03:31 Averna joined #mojo
03:36 sh4 joined #mojo
03:39 egopro joined #mojo
03:40 TitanOfOld joined #mojo
03:55 xaka joined #mojo
04:13 sh4 joined #mojo
04:16 egopro joined #mojo
04:26 jmmills joined #mojo
04:48 SmokeMac_ joined #mojo
04:48 egopro joined #mojo
04:49 preflex_ joined #mojo
05:04 ka2u joined #mojo
05:12 sh4|2 joined #mojo
05:35 wk joined #mojo
05:36 basiliscos joined #mojo
05:37 ver joined #mojo
05:56 chinaxing joined #mojo
05:57 chinaxing I use Mojolicious as my web framework. there is a request which do update database .
05:58 chinaxing but it will spend long time , about 2min .
05:58 chinaxing 25000 records insert in this update action.
05:58 jpn joined #mojo
05:59 chinaxing how can i do this , and don't impact the web's use of other request.
05:59 chinaxing something no-blocking ?
06:23 buu How are you running mojolicious?
06:28 anaio joined #mojo
06:38 yakudza joined #mojo
07:05 Mike-PerlRecruiter_ joined #mojo
07:17 dpetrov_ joined #mojo
07:21 Vandal joined #mojo
07:26 jzawodn joined #mojo
07:35 coff joined #mojo
07:36 egopro joined #mojo
07:52 wk joined #mojo
08:11 dod joined #mojo
08:21 suy joined #mojo
08:33 dod joined #mojo
09:11 hrupp joined #mojo
09:18 mugenken joined #mojo
09:26 fhelmber_ joined #mojo
09:33 dhg joined #mojo
09:43 migo joined #mojo
09:48 nicolas joined #mojo
09:48 nicolas hello
09:48 nicolas what is the best way to make an app multi-languages when every template contains both text and some code ?
09:49 nicolas like "List of your elements ... { loop through elements }"
09:50 nicolas (the template generates html forms and stuff, so code and static content are mixed)
10:01 tl42 joined #mojo
10:35 jpn joined #mojo
10:37 berov joined #mojo
10:38 berov I think I am succeding to bring a little more attention on Linkedin :)
10:38 berov https://www.linkedin.com/groupItem?view=&gid=1​06254&type=member&item=221051271&qid=1​6815b06-c6c4-4ae1-882b-320cb6558f36&trk=group_​most_recent_rich-0-b-cmr&goback=.gmr_106254
10:38 berov More attention to Mojolicious I mean of course :)
10:43 Freman joined #mojo
11:17 mire joined #mojo
11:23 bowtie joined #mojo
11:34 mattastrophe joined #mojo
11:43 tholen42 joined #mojo
12:00 mattastrophe joined #mojo
12:01 egopro joined #mojo
12:30 marty nicolas:  I'm not sure what you mean by "multi-languages".   However, it sounds like maybe you are looking for Mojolicious embedded perl.  http://mojolicio.us/perldoc/Mojolic​ious/Guides/Rendering#Embedded_Perl
12:45 xxtjaxx joined #mojo
12:49 moltar joined #mojo
12:53 d4rkie joined #mojo
12:55 marty_ joined #mojo
13:00 dod joined #mojo
13:09 bluescreen joined #mojo
13:38 asarch joined #mojo
13:49 btyler joined #mojo
13:52 gryphon joined #mojo
13:52 sh4 joined #mojo
13:58 mire joined #mojo
13:59 mst Bender: trust sri
13:59 Bender OK, mst
14:00 malikai is there an easy way to have a ua follow redirects?
14:00 malikai or do i have to do that myself? if so, where can i find the location?
14:08 egopro joined #mojo
14:10 dpetrov_ malikai: in Mojo::UserAgent?
14:14 wk joined #mojo
14:22 malikai yes, in useragent
14:22 malikai i presume that the data in $tx->res->content->headers->{headers}->{location} is my location for the redir
14:33 sri do not ever poke into objects, that is private instance data
14:35 malikai i'd rather not, no doubt
14:36 mugenken_ joined #mojo
14:36 malikai is there a method for or options for following redirs?
14:38 sri of course there is, just look at the documentation
14:38 malikai have been.. all over the place, searching for /redir/
14:39 sri http://mojolicio.us/perldoc/​Mojo/UserAgent#max_redirects
14:39 mugenke__ joined #mojo
14:40 malikai right that's perfect.. that's about 20 lines of bugs i can get rid of
14:42 malikai i as to why i didn't see that i'm not quite sure :)
14:42 malikai thanks sri
15:05 GabrielVieira joined #mojo
15:15 maxhq joined #mojo
15:17 Molaf__ joined #mojo
15:31 GabrielVieira joined #mojo
15:34 sh4|2 joined #mojo
15:34 btyler joined #mojo
15:54 yakudza joined #mojo
15:56 xxtjaxx sri: Any idea on how to implement something like a scheduler or something running at a certain point in time using mojolicious?
16:10 baton8 joined #mojo
16:37 dod joined #mojo
16:41 mattastrophe joined #mojo
16:41 basiliscos joined #mojo
16:43 mire joined #mojo
16:55 dod joined #mojo
17:01 Caelum mojolicious detects CGI mode automatically, sinatra does not, mojolicious: 1 sinatra: 0
17:02 wk joined #mojo
17:17 xaka joined #mojo
17:17 Adurah_ Well, the guy is dead.
17:22 jberger I've hear that Dean Martin detects CGI mode
17:22 jberger heard
17:25 Caelum your mom also detects CGI mode HLAGHLAGHLAGHLAGH
17:25 Caelum I meant: http://www.sinatrarb.com
17:40 beyondcreed joined #mojo
17:42 sh4 joined #mojo
17:47 nelio joined #mojo
17:54 phillipadsmith sri: sorry to be daft on this, but can you help me understand why a site with an incorrect content-type header (reporting to be utf-8) would trip up the HTML parser?
17:54 marcus I also detect CGI mode. Then I run away
18:24 btyler joined #mojo
18:25 berov left #mojo
18:30 marcus yay, new humble bundle, more games for my nexus 7.
19:00 labrown joined #mojo
19:01 phillipadsmith Is there an another way to perform basic authentication on a Mojo::UserAgent GET request, other than including the username and password in the string passed to GET ?
19:02 Adurah_ WWW-Authenticate?
19:02 phillipadsmith Adurah_: I'm specifically asking about this: $ua->get('https://sri:s3cret@search.twitter.com/search.json?q=perl')
19:03 Adurah_ I don't think it actually end up being part of the GET.
19:03 phillipadsmith I'd like to provide the user:pass separately, not as part of the string
19:04 Adurah_ It just looks like it's part of the GET, but it ends up parsing some header lines.
19:05 Adurah_ Not that I know exactly how it does that, but it has to... right?
19:08 basiliscos joined #mojo
19:08 phillipadsmith Not sure, but now I'm wondering if I can simply set an Authorization request header … digging...
19:08 Adurah_ Yes, you could. May need to come up with the hashing logic, though.
19:14 Caelum marcus: you used to say android was crap
19:15 * sri hopes firefox os will be good
19:16 dod joined #mojo
19:17 sri it's a good time to start looking for other operating systems, i think apple is loosing its edge
19:22 malikai apple lost its edge when it decided to sue samsung
19:23 Adurah_ It needs to tighten its edge?
19:25 malikai tightening their edge must have been the whole selling iStuff at walmart thing they decided to do
19:26 malikai and of course everyone knows walmart gives sweet juicy deals to their suppliers (lol)
19:29 bluescreen joined #mojo
19:35 Caelum it needs to sell sharper ipads
19:35 Caelum so you can use them to slice vegetables
19:50 Caelum seriously though, I love my ipad, but I just read books on it, so a nexus10 would work just fine for that
19:55 malikai i'd rather have a nexus-6, specifically the Rachael model..
20:02 phillipadsmith Howdy folks, any other thoughts on sending an Authorization request header via Mojo::UserAgent (but not including it in the string of the request itself) ?
20:07 phillipadsmith Looks like $ua->get( 'www.test.com' => { Authorization => { … } }); is getting close …
20:10 * phillipadsmith finds the ->authorization method ...
20:11 mire joined #mojo
20:25 phillipadsmith Okay, fwiw, this works: $ua->get( 'www.url.com' => { Authorization => "Basic base64_encoded_user_colon_pass" } );
20:36 lukep joined #mojo
20:39 mattastrophe joined #mojo
20:46 alester joined #mojo
20:49 beyondcreed joined #mojo
21:03 mattastrophe joined #mojo
21:18 labrown joined #mojo
21:25 mattastrophe joined #mojo
21:33 alester joined #mojo
21:40 nelio joined #mojo
21:50 berov joined #mojo
21:53 gryphon joined #mojo
22:12 ka2u joined #mojo
22:19 _xaka_ joined #mojo
22:39 marcus caelum: Android *was* crap. Android 4 is tolerable. But I still use my ipad more than my android tablet.
22:40 marcus Still, a bunch of cheap games for it is \o/
22:41 marcus and super hexagon is absolutely not crap :)
22:41 marcus I know I've been watching judofyr play it for months, but I didn't quite see the appeal until today.
22:49 mattastrophe joined #mojo
22:51 Caelum there is one android game I've been playing the last 4 years which will make it very painful for me to switch to an iphone, scrambled net
22:57 Meiermann joined #mojo
23:18 rem_lex| joined #mojo
23:20 freman joined #mojo
23:20 freman Greetings.
23:21 freman Inquiry, if I want to write an external script that knew of the applications home, would it be valid to use MyApp; $app = new MyApp(); $home = $app->home() ?
23:27 freman http://pastebin.com/rv34xtM6 - yeh that works...
23:27 freman which means something else is broken
23:27 freman so much for easy fix lol
23:35 suy joined #mojo
23:38 freman should re-write these as plugins...
23:40 ka2u joined #mojo
23:43 Adura joined #mojo
23:57 tagg joined #mojo

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