Camelia, the Perl 6 bug

IRC log for #mojo, 2011-06-02

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

All times shown according to UTC.

Time Nick Message
00:12 Akron left #mojo
00:53 perlrocks Twitter: "MacVim with file drawer is really quite nice. # Mojolicious # perl on Twitpic http://htn.to/cMEaEf" (ja) --kaz_hiramatsu http://twitter.com/kaz_hirama​tsu/status/76089000204574720
01:02 mattastrophe joined #mojo
01:33 sherr left #mojo
01:42 tardisx left #mojo
01:42 tardisx joined #mojo
01:44 Kulag left #mojo
01:45 Kulag joined #mojo
01:50 sherr joined #mojo
02:10 tardisx left #mojo
02:10 tardisx joined #mojo
03:02 tardisx left #mojo
03:02 tardisx joined #mojo
03:36 sri good morning fellow daleks
03:38 crab up early, i see.
03:40 * sri nods and yawns
03:43 crab i'm going to an integrated bug-tracker in my webapp.
03:43 crab s/to/to put/
04:27 arpadszasz joined #mojo
05:23 kaare_ joined #mojo
05:26 sri think' i'll release 1.4 today, even drawn a little something :)
05:29 GitHub75 joined #mojo
05:29 GitHub75 mojo: master Sebastian Riedel * f186060 (1 files in 1 dirs): release preparation - http://bit.ly/jZTB1M
05:29 GitHub75 left #mojo
05:46 marcus is it a penis?
05:46 marcus or a smiling face with sunglasses?
05:46 marcus sri: is it a holiday in germany today?
05:49 sri it is
05:54 alnewkirk as per http://code.google.com/p/chr​omium/issues/detail?id=70283 looks like i'll have to hack Mojolicious::Types at runtime
05:55 sri hack at runtime?
05:56 sri it's a dynamic map, you are *supposed* to modify it to suit your needs
05:56 alnewkirk woff => 'application/x-woff', already exists but chrome doesnt support it
05:56 alnewkirk rigth same difference
06:02 sri might actually be a good idea to default to application/x-font-woff
06:03 GitHub186 joined #mojo
06:03 GitHub186 mojo: master Sebastian Riedel * 450af8c (2 files in 2 dirs): fixed woff MIME type - http://bit.ly/jXwuvQ
06:03 GitHub186 left #mojo
06:03 arthas left #mojo
06:03 arthas joined #mojo
06:09 koban` joined #mojo
06:10 alnewkirk based on that article yes
06:17 sri anything else before i release 1.4? :)
06:17 alnewkirk dont forget the futurama quote
06:19 kaare_ left #mojo
06:23 d4rkie joined #mojo
06:30 AmeliePoulain joined #mojo
06:38 marcus http://nordaaker.com/docs/skitch/Servi​ces_%7C_Silk_Road-20110602-083656.jpg # step 1, buy anon vserver with bitcoins , # step 2, do bad on shit on the internets
06:48 alnewkirk any ideas why this page might be taking so long to load http://dev.ana.im/
06:48 alnewkirk mojo + apache2
06:48 alnewkirk using fast-cgi
06:48 alnewkirk script/ana -processes 1
06:50 sri you do realize your site requires 27 http requests right?
06:51 alnewkirk :) yes the load-time is still abnormal considering
06:51 sri i don't think so
06:52 sri 27 requests with one fastcgi process take a hell of a lot of time
06:52 sri i assume you are serving static files from mojolicious
06:53 sri then all 27 requests are sequential
06:54 yko time wget http://dev.ana.im/ => 0.764s from here
06:55 alnewkirk yko yea, and im local and thats close
06:55 yko make apache render static for you
06:55 yko and... profile your app
06:55 alnewkirk can i use .htaccess, mojo and fastcgi
06:56 alnewkirk trying it
06:56 purl i guess trying it is quicker than talking on IRC about not trying it ;>
06:56 * alnewkirk pats purl on the head
06:56 * purl purrs
06:56 yko dunno, i prefer nginx for that purposes
06:57 yko anyway, you are holding it wrong
06:58 yko there's mojolicious page using l18n and stuff in CGI env that loads in 0.33s
06:58 AmeliePoulain http://groups.google.com/group/mojolicio​us/browse_thread/thread/f72ed4194445d071
06:58 AmeliePoulain Have any idea?
06:58 purl know is a silly bot
06:59 alnewkirk yko?
06:59 purl yko is op or a friendly alligator or living under the #mojo channel trap door or a grue or maybe a crocodile
06:59 sri alnewkirk: your site does something weird though in chrome
06:59 alnewkirk sri, thats what im testing in and alarmed by
06:59 alnewkirk firefox, etc seems cool, ... slow but cool
06:59 sri there's a loading delay, maybe cause by some javascript
07:00 Alias left #mojo
07:00 sri main site loads in 600ms then there's a 15 second delay
07:02 sugar joined #mojo
07:15 cosmincx joined #mojo
07:21 alnewkirk son of a bitch
07:21 purl and fuck you too, jobu!
07:21 alnewkirk http://dev.ana.im:3000/ runs beautifully
07:21 alnewkirk damn you apache
07:24 crab i still have an uneasy relationship with nginx when it comes to caching, but otherwise i'm very happy with it
07:26 ysyrota joined #mojo
07:31 alnewkirk okay, now i feel like a n00b
07:31 alnewkirk running the site as cgi is faster than fastcgi
07:31 alnewkirk watever, its 3:30am
07:32 crab yes, it'll all be better at 11:00 tomorrow.
07:32 alnewkirk :)
07:34 yko crab++
07:41 sri alnewkirk: do you have a process limit on cgi too?
07:41 sri if not that's what i would change first
07:41 alnewkirk no
07:42 arpadszasz left #mojo
07:42 sri we don't have too much startup overhead, so 27 parallel cgi requests can easily beat 27 sequential fastcgi requests
07:43 sri fastcgi is just persistent, otherwise it doesn't have much over cgi
07:43 alnewkirk main reason i left dancer development was they clearly expressed no interest in supporting cgi as a means for deployment
07:44 crab i've forgotten: why are fastcgi requests sequential? i know the standard allows for multiple requests, and out-of-order completion. i can't remember if it's that mod_fastcgi doesn't implement it, or NOBODY implements it.
07:44 sri crab: he has a process limit of 1
07:44 sri only one fastcgi process means apache can only handle one request at a time
07:45 crab so it's an apache mod_fastcgi limitation only?
07:45 sri while the fastcgi protocol has mechanisms to handle multiple requests async, nobody supports it
07:45 sri crab: NO!
07:45 sri crab: he set it up that way
07:45 sri he configured it to be slow
07:46 crab sri: i'm not really thinking about alnewkirk's setup
07:46 crab but about what you said: "nobody supports it"
07:46 crab i couldn't remember. i wrote c++ fastcgi server code that supported it, and then realised that apache couldn't feed it properly. i was bitterly disappointed.
07:46 sri mod_fastcgi and mod_fcgid don't do multiplexing no
07:47 sri i think there was a commercial server that does it
07:47 sri maybe by now there's a nginx module too
07:47 crab zeus?
07:47 purl zeus is at http://www.zeus.com/
07:47 sri don't remember
07:47 purl Remember what?
07:47 * sri hugs purl
07:47 purl sri: get off me, you botvert!
07:49 sri i really wouldn't mind if fastcgi died
07:49 sri http 4 life!
07:50 crab yeah. and scgi too.
07:50 sri why scgi over http?
07:50 crab wouldn't mind if scgi died, i mean.
07:51 sri :D
07:51 crab i wrote a c++ implementation of scgi which was actually quite nice.
07:52 abra left #mojo
07:53 zakame joined #mojo
07:54 sri hmm, i need a few good eval examples for the announcement, quick
07:56 ajgb joined #mojo
07:59 sri *crickets*
08:03 abra joined #mojo
08:04 marty left #mojo
08:05 marty joined #mojo
08:15 zakame left #mojo
08:20 AmeliePoulain After updating Mojo from git I've got many errors: http://pastebin.com/95tWaJqE Has anyone come across them?
08:22 * moritz doesn't use the reloader
08:23 zakame joined #mojo
08:31 sri AmeliePoulain: warnings, not errors
08:31 sri huge difference
08:32 arthas left #mojo
08:32 AmeliePoulain This doesn't work: http://pastebin.com/082T54V6
08:32 AmeliePoulain Thu Jun  2 12:32:11 2011 fatal Mojolicious:195 [26426]: Processing request failed: Can't call method "res" on an undefined value at script/../lib/FW.pm line 34.
08:33 AmeliePoulain ...after updating
08:33 yegor joined #mojo
08:33 sri yes, that was deprecated
08:34 sri for a year or so
08:35 sri where did you see that?
08:35 sri hooks have a new registering mechanism for a very very very long time
08:36 AmeliePoulain I have using it till version (AFAIR) 1.2
08:36 preflex left #mojo
08:36 sri that's not what i asked
08:37 sri it was deprecated before 1.0 and there should have been no references to that syntax for ages
08:37 AmeliePoulain OK, I understand.
08:37 sri where did you see it?
08:38 AmeliePoulain Oh, sry. It's in my "main" application package  - lib/FW.pm (in sub startup {}).
08:39 sri ok, but how did you learn about it?
08:39 sri i'm asking because i want to make sure there is no documentation left mentioning it ;)
08:40 preflex joined #mojo
08:40 AmeliePoulain I've found it in some article about i18n
08:41 AmeliePoulain I need to change language by pushing language name in session variable
08:41 GitHub165 joined #mojo
08:41 GitHub165 mojo: master Sebastian Riedel * ff475cc (2 files in 2 dirs): fixed a small Mojo::Loader bug - http://bit.ly/iKqlA4
08:41 GitHub165 left #mojo
08:41 sri i see :/
08:43 AmeliePoulain I will rewrite it later because I have more critical issue (about unicode characters in mailing lists)
08:43 yegor left #mojo
08:54 GitHub146 joined #mojo
08:54 GitHub146 mojo: master Sebastian Riedel * ef0fafe (1 files in 1 dirs): cleanup - http://bit.ly/lnf99k
08:54 GitHub146 left #mojo
08:58 cosmincx left #mojo
09:00 sri ok, i think we are ready for 1.4
09:02 sri and tagged
09:04 perlrocks Twitter: "Mojolicious 1.4 by KRAIH - http://frepan.org/~kraih/Mojolicious-1.4/" --cpan_new http://twitter.com/cpan_ne​w/status/76212642804547584
09:06 zakame left #mojo
09:08 AmeliePoulain I found strange behavior of uri_unescape. When I run perl -e 'use URI::Escape; uri_unescape "%D0%B0%D0%B1%D0%B2%2C %D0%B3%D0%B4%D0%B5"', I have normal unescaped characters but when I dump $value in Mojo::Parameters->parse() (line 134), I have broken cyrillic characters after ", " in value. What's wrong?
09:10 cosmincx joined #mojo
09:20 sri AmeliePoulain: just make a unit test and i'll look into it
09:24 sri but i'm rather sure you're just misunderstanding something
09:24 sri because we test the hell out of unicode urls
09:28 AmeliePoulain OK, I try to make test :)
09:28 arthas joined #mojo
09:30 perlrocks Twitter: "I try to get table contents by #oneliner: #perl -Mojo -e 'b(g("some_url")->dom->at("table.tb"))->say', but I see no rows. What can I do?" --shoorick77 http://twitter.com/shoorick​77/status/76219061909995521
09:34 spleenjack joined #mojo
09:51 perlrocks Twitter: "New blog post, #mojolicious 1.4 (Smiling Face With Sunglasses) released. :) http://t.co/lvAXsTP #perl" --kraih http://twitter.com/kraih/status/76224419550347264
09:51 sri \o/
10:06 memowe sri: grats! :)
10:06 sri thx
10:06 memowe btw, can has syntax highlighting in the long polling snippet?
10:07 sri oh
10:09 sri yes you can!
10:09 memowe yay, thanks.
10:10 memowe Whoops, I got a failing test in home.t (looks like a lowercase/uppercase issue).
10:10 memowe Do you want me to paste it somewhere or is it a known issue?
10:11 AmeliePoulain sri, unit test seems right (http://pastebin.com/kfXfS5F4) but http://pastebin.com/KtkmU6Tt
10:11 memowe https://gist.github.com/1004212
10:11 AmeliePoulain sri, characters was broken only after comma and space characters
10:12 AmeliePoulain I have no more idea...
10:14 bzero joined #mojo
10:14 AmeliePoulain sri, 'абв, где' like 'abc, def' but in cyrillic
10:15 bzero is now known as su-bzero
10:15 arthas left #mojo
10:17 sri memowe: unknown issue, very weird
10:17 memowe Did you see my last update on that gist? https://gist.github.com/1004212
10:17 memowe Seems like Mojo::Home uppercases one directory.
10:18 sri makes no sense
10:18 marcus memowe:  uname -a ?
10:18 purl Infobot 0.43.3 alpha (oznoid+#perl)
10:18 sri os x file system is not case sensitive though...
10:18 memowe Darwin book.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
10:19 sri maybe one of the libraries we use doesn't get it right
10:19 marcus memowe: what filesystem?
10:19 purl filesystem is probably incredible.
10:19 memowe umm, how do I see that, marcus?
10:19 sri hfs+ i bet
10:19 marcus mount
10:19 marcus ./dev/disk0s2 on / (hfs, local, journaled)
10:20 memowe yep.
10:20 memowe exactly.
10:20 arthas joined #mojo
10:20 marcus buy why does it fuck up on Code, and not Users?
10:21 sri i can't replicate it either
10:21 sri same setup
10:21 purl rumour has it same setup is working in windows
10:21 memowe $ pwd
10:21 memowe /Users/memowe/code/mojo
10:21 memowe btw
10:22 marcus yeah, that makes it break
10:22 memowe Is there anything I can do to help catching that issue?
10:22 marcus if you cd using the wrong path on osx
10:22 marcus memowe: cd ~/Code/mojo
10:22 marcus and it will go away :p
10:22 sri lol
10:22 memowe ew...
10:22 sri yay for hfs+
10:23 memowe OMFG...
10:23 memowe yup, all tests pass..
10:24 memowe OK, I'll remember to cd to the upper case path when I try to install a new mojo version...
10:25 sri you just need to remember to use the right version
10:25 sri if i do "cd ../Mojo" it breaks too
10:25 memowe The "right" version is lowercase: $ ls ~ | grep ode
10:25 memowe code
10:26 sri obviously not
10:26 sri your file system seems to have Code
10:26 memowe weird.
10:26 marcus memowe: or mv Code code
10:26 sri ye
10:26 sri do that
10:26 memowe Done.
10:26 memowe make test...
10:26 purl make test is chugging along fine in OpenBSD.
10:28 memowe OK, it worked. Weird that ls gets another name than the file system...
10:28 memowe Thanks anyway, sorry for the trouble.
10:28 sri the shutdown of planet.perl.org seriously harmed my readership
10:35 perlrocks Twitter: "Mojolicious 1.4: Smiling Face With Sunglasses:  http://bit.ly/llwlaL" --hnfirehose http://twitter.com/hnfireho​se/status/76235410275180544
10:41 sh9 joined #mojo
10:50 MisterHatt hey sri, got an example of when you'd actually be manipulating divs like that inside an application? or was that just to show the features of Mojo::DOM off?
10:50 sri just to show the feature
10:51 MisterHatt ah right, thanks
10:51 sri don't build your html like that :D
10:52 MisterHatt I thought that's what templates were for so yeah, totally not doing that
10:52 MisterHatt the Mojo::Server part of the post was interesting though
10:53 sri glad you liked it, actually wasn't sure about that part
10:54 sri seemed a bit mundane
10:54 MisterHatt wwell I guess most of what you can do with it as far as building external servers for db connections or something could just as easily be done with a plugin but it was a cool idea, to me at least
11:04 tempire left #mojo
11:06 marcus sri: +1 for getting the smiling face as a wallpaper
11:06 sri lol
11:06 marcus SUMMER FOR PRRRL
11:06 marcus SUMMER OF PPRRRL
11:07 AmeliePoulain OMG. When I run perl -e 'my $p = "%D0%B0%2C%D0%B1"; $p =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg; print "$p\n"'- get the output "а, б". When I replace url_decode in Mojo::Parameters->parse() on this regexp, I get the crap after the comma. What can there be?
11:08 MisterHatt marcus: winter of perl here, snowed in and coding yeaaah
11:09 * sri loves winter
11:11 marcus MisterHatt: aussie?
11:11 purl aussie is both an Adjective and a Noun
11:11 MisterHatt marcus: for the moment
11:11 MisterHatt doesn't really snow here, just gets really windy and I can't feel my hands
11:13 perlrocks Twitter: "Mojolicious 1.4: Smiling Face With                 Sunglasses http://bit.ly/llwlaL" --ycombinatornews http://twitter.com/ycombinator​news/status/76245041085022208
11:14 marcus MisterHatt: hacking with gloves, eh?
11:14 MisterHatt mojolicious is on y-combinator?
11:14 MisterHatt marcus: I bought some nice new leather ones yesterday actually!
11:14 arpadszasz joined #mojo
11:14 MisterHatt need them for new job, takes an hour and a half to get there from here and I have to be in office at 8am, assuming the role gets finalised
11:15 sri most of the time i submit blog posts to reddit/perl and yc
11:15 marcus upvoted on both
11:15 sri \o/
11:15 marcus also upvoted http://www.bearsthebook.com/images.html
11:15 marcus :D
11:15 MisterHatt I wonder if there are any large startups that use mojo even, would be nice to know
11:16 sri upvoted too!
11:16 sri MisterHatt: there are, they are shy though :/
11:16 MisterHatt ah, I see
11:16 marcus http://szabgab.com/blog/2011/05/strawberr​y-perl-with-cream-5-12-3-v3-released.html
11:16 marcus dancer, and no mojolicious? :-/
11:16 sri i even know of a few really big setups... but they can't be convinced to make it public
11:17 MisterHatt ah
11:17 sri szabgab is biased
11:17 marcus what does duckduckgo use?
11:18 MisterHatt project my company is working on is using it, although I'm nto allowed to say what yet :V
11:18 sri cgi.pm?
11:18 purl cgi.pm is, like, nice or for pussies
11:18 sri :D
11:18 sri don't think duckduckgo is actually using modern perl
11:18 sri MisterHatt: so annoying... nobody is ever allowed to say anything
11:18 MisterHatt depends how you define modern? perl 5.8.4 is modern according to redhat I guess
11:19 MisterHatt sri: only because it hasnt launched yet, once it's out in public we're free to say whatever
11:19 MisterHatt I'll be sure to let you know if you want to add it to the list
11:19 sri of course
11:20 * MisterHatt should probably finish writing this blog software in mojo too
11:20 MisterHatt started it in dancer but the lack of separated prefixes in dancer annoyed me so much I scrapped it
11:21 marcus http://www.gabrielweinberg.com/blog/2​009/03/duck-duck-go-architecture.html
11:22 marcus FCGI::Engine. No framework it seems
11:23 MisterHatt actually, does anyone know of a way to run psgi applications under apache2 with suexec?
11:23 mattastrophe left #mojo
11:23 MisterHatt mod_psgi/mod_perl wont work with it apparently
11:23 MisterHatt think I've asked that before but never got an answer :S
11:24 sri no framework makes sense for their use case though
11:25 sri actually i'm surprised it's not a compiled language
11:26 MisterHatt raphters or scala or something? hmm
11:27 AmeliePoulain I guess my issue with a broken unicode characters by replacing "url_decode $value" in Mojo::Parameters->parse() to $value =~ s/%(D0)%([0-9A-Fa-f]{2})/ch​r(hex($1)).chr(hex($2))/eg; $value =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
11:27 MisterHatt raphters when I looked at it briefly was very cool, although I can't think of all that many things that'd use it
11:27 AmeliePoulain But modifying Mojo source is not good
11:28 sri C for sure
11:28 sri maybe as a nginx module
11:28 MisterHatt fancy
11:28 sri if i was working on a search engine frontend
11:28 marcus why not assembly?
11:29 marcus :p
11:29 sri actually not that much to gain i think
11:29 marcus I've written a search engine frontend in catalyst in the past
11:29 marcus it worked just fine
11:29 sri nginx http parser is supposed to be very close to hand optimized assembler
11:29 marcus of course, it was only serving like 700.000 unique a week
11:29 marcus on like 4-5 servers
11:30 sri real search engine frontend or just a search engine for a site?
11:30 marcus abcsok.no
11:30 purl abcsok.no is, like, about 10% of the norwegian search engine traffic
11:30 sri heh
11:30 marcus it's still catalyst powered
11:30 sri interesting
11:31 marcus Resultat 1 - 10 av ca. 3.910.000 for arne (0,61 sekunder.)
11:33 marcus sri: I believe it it currently using WWW::Curl::Simple to fetch from the backends. Was using LWP::Parallel when I implementedit. Also uses moose for the search engine drivers
11:36 marcus Guess they might migrate to Mojo::UserAgent at some point if it performs well enough.
11:39 cosmincx1 joined #mojo
11:44 cosmincx left #mojo
12:00 GitHub111 joined #mojo
12:00 GitHub111 mojo: master Sebastian Riedel * fa5e228 (8 files in 4 dirs): removed a few more unnecessary comments - http://bit.ly/k7ddf3
12:00 GitHub111 left #mojo
12:05 kaare_ joined #mojo
12:20 sh9 left #mojo
12:31 kaare_ left #mojo
12:34 sri wow, pixelmator is getting vector tools :o
12:37 bosphorus joined #mojo
12:37 sri http://www.pixelmator.com/sneak-preview/ # drop dead gorgeous
12:38 marcus yeah
12:38 marcus I should get my guys to stop using photoshop
12:38 marcus it might hurt but..
12:43 metaperl nice website layout for pixelmator - too bad it's OS X only
12:45 marcus guess I will have to buy pixelmator 2, since I got pixelmator 1 before the app store existed
12:49 sri they made a lot of money on the app store, good to see they are not slacking now
12:56 sh9 joined #mojo
12:56 sh9 left #mojo
12:56 sh9 joined #mojo
13:09 dekimsey joined #mojo
13:26 sri http://www.firebox.com/product/3621/Dalek-​Replica?via=sfg&aff=512&awc=550_13​07021141_728d5a2c264948b247040595fbd4b398
13:26 sri cute
13:35 koban` left #mojo
13:38 amoore joined #mojo
13:40 cosmincx1 left #mojo
13:45 cosmincx joined #mojo
13:50 AmeliePoulain left #mojo
13:58 metaperl for uninstalled pod, there is no mojo pod viewer, right?
13:59 * MisterHatt wonders how easy it'd be to pass json/jquery into a moustache template rather than hard rendering
13:59 MisterHatt nice way to have asynchronous template fills I guess...
13:59 sri twitter does that
13:59 sri i hate it :)
13:59 perlrocks Twitter: "New Mojolicious release! RT @kraih: New blog post, #mojolicious 1.4 (Smiling Face With Sunglasses) released. :) http://t.co/lvAXsTP #perl" --arpadszasz http://twitter.com/arpadsza​sz/status/76286936762953728
14:00 sri the user experient is horrible
14:01 metaperl sweet, found one - https://github.com/mfontani/Leguminous
14:03 Foxcool joined #mojo
14:05 MisterHatt sri: the application I had in mind for it is for image serving tho, catalogue thingy
14:05 MisterHatt not like it's pulling async text in and being generally slow as fuck like twitter
14:06 MisterHatt jquery to get the session image link on cdn, moustache or somehing to throw it in
14:06 MisterHatt probably dont even need moustache really
14:08 * MisterHatt heads out
14:19 metaperl how should --listen be specified so that I my app is public-facing and available at port 3001?
14:19 metaperl e.g. perl start.pl daemon --listen='http://*:3001'  # but that only seems to accept requests from the same machine
14:19 su-bzero left #mojo
14:19 bzero joined #mojo
14:20 Foxcool left #mojo
14:21 metaperl ah
14:21 metaperl it's our firewall
14:27 Foxcool joined #mojo
14:28 j-v-e good morning everyone :)
14:28 j-v-e that might be no news (I've been quite disconnected recently), but I just received the US linux journal and they feature an article on Mojolicious
14:31 sri \o/
14:32 elb0w sri I loved those comments
14:32 elb0w wtf
14:32 elb0w whole days ruined now
14:32 j-v-e http://www.linuxjournal.com/podcas​t/linux-journal-insider-july-2011
14:33 j-v-e I think they are confused, it's the June issue
14:33 j-v-e ah no, it's really the July issue 0_o
14:34 elb0w wow literally listening to the greatest song ever on that podcast
14:35 j-v-e the podcast on the linux journal page ?
14:35 j-v-e it rocks :D
14:57 arpadszasz left #mojo
15:05 tempire joined #mojo
15:11 Foxcool left #mojo
15:17 bosphorus left #mojo
15:19 snearch joined #mojo
15:20 cosmincx left #mojo
15:51 marcus who wrote the lj article?
15:54 Foxcool joined #mojo
15:54 d4rkie left #mojo
16:01 sri that is a good question
16:02 j-v-e I don't have the magazine with me right now
16:02 j-v-e I can check tonight
16:03 marcus also, do they actually mention mojolicious in that podcast?
16:03 marcus if so I missed it
16:03 marcus Jamie Popkin describes how to use Mojolicious, which allows you to monitor processes remotely with your smartphone.
16:04 marcus nice angle
16:06 marcus https://twitter.com/#!/jamiepopkin
16:09 perlrocks Twitter: "Looks like there's a #mojolicious article by @jamiepopkin in the latest issue of the linux journal, neat. :) http://t.co/vefbjxu #perl" --kraih http://twitter.com/kraih/status/76319462420267008
16:27 perlrocks Twitter: "@kraih Thanks. Hopefully the article will bring more fame to #mojolicious. Thanks for the fantastic framework. :)" --jamiepopkin http://twitter.com/jamiepopk​in/status/76324109063163904
16:29 ajgb left #mojo
16:31 maluco -> FAIL Installing Mojolicious::Plugin::BasicAuth failed. See /home/thiago/.cpanm/build.log for details.
16:31 maluco Can't locate object method "client" via package "Mojolicious::Lite" at t/auth.t line 60
16:32 sri contact the author and tell him to use Mojo::UserAgent
16:32 sri the deprecation period for client ended with 1.4
16:32 maluco are there another way to do http basic auth with mojolicious ?
16:33 maluco *::lite
16:33 sri you don't really need a plugin for basic auth
16:33 marcus maluco: you could just craft a 401
16:34 marcus then check the authorization header
16:34 marcus that is likely what the plugin does
16:34 sri yea, and header parsing is built in, we put username and password into $self->req->url->userinfo
16:35 sri my ($username, $password) = split /:/, $self->req->url->userinfo;
16:35 marcus it's like 3 lines of code :)
16:35 sri oh, the module belongs to tempire
16:35 sri he should know better!
16:35 * sri whips tempire
16:36 maluco sri: ok, i'll try this. Thank's.
16:39 crab iirc, that was a nice module. when i first saw it, it wasn't clear to me how to implement it.
16:40 tempire ack!
16:40 tempire what did I do?
16:41 crab but, what's a basic auth module doing using a client anyway?
16:41 Foxcool left #mojo
16:43 tempire tests
16:44 tempire maluco: you can force install it..it's just left over test stuff from previous versions
16:44 tempire I'll upload a new release
16:47 marcus yay
16:47 marcus if you liked it should have put a ring on it!
16:48 crab what if you just liked the ring and wanted to put it on (everything)?
16:53 maluco tempire: no, i'll wait your version in cpan. :)
16:53 crab more pressure on tempire.
16:53 * sri cracks the whip
16:58 maluco heheh
16:59 edenc sri: have you ever considered writing a mojo compatibility layer for catalyst plugins, there's a whole ecology of plugins that would instantly boost usability
16:59 edenc I'd be willing to put some tuits in that direction, with the proper guidance
17:00 crab sounds like a nightmare.
17:00 edenc why?
17:01 crab giant sucking support/maintenance black hole
17:01 edenc crab: sounds like less of a nightmare than rewriting everything
17:02 Foxcool joined #mojo
17:02 edenc it'll take about 4 years to get somewhere similar to where the ecology is right now
17:02 tempire a lot of stuff doesn't need to be re-written at all
17:02 perlrocks Twitter: "Mojolicious-Plugin-BasicAuth 0.05 by TEMPIRE - http://frepan.org/~tempire/Mojo​licious-Plugin-BasicAuth-0.05/" --cpan_new http://twitter.com/cpan_ne​w/status/76332880741142530
17:02 edenc and, you don't have to use the layer if you don't want to
17:02 tempire as it's a different methodology
17:02 sri edenc: nope i have not
17:04 sri we rarely have requests for functionality provided by catalyst plugins
17:04 shonorio joined #mojo
17:04 edenc that's because people are going straight to catalyst
17:04 sri not my perception
17:05 sri in fact i can't think of a single plugin i would consider worth porting atm
17:05 crab it's one thing to say "hey, it'd be simple and useful to turn $catalyst_plugin into a mojo plugin", and do that.
17:06 crab it's another thing entirely to say "we'll support ALL CATALYST PLUGINS EVER and come and yell at us if anything goes wrong".
17:06 edenc so, you're saying that from the 5000 catalyst plugins available, not a single one of them is useful?
17:06 sri of course i wouldn't say no to a magical plugin adapter :)
17:06 sri i say there is none i really care about
17:06 sri personally
17:06 * purl blushes
17:06 crab shut up, purl.
17:06 * purl goes on and on about how much shutting up she's doing
17:06 edenc ok, but community-wise that's not what happens
17:07 edenc crab: I'm sorry but that's the wrong perception of writing free software, you're always going to be yelled at, it's software
17:07 edenc there's always trouble, bugs, etc.
17:08 Foxcool left #mojo
17:08 crab edenc: so write the magical plugin adapter. i'm sure you know more about catalyst plugins than i do, anyway.
17:09 edenc well, it'd be helpful to get support from the core community
17:09 edenc so that I don't dump my tuits into a void
17:09 crab what sort of support do you want?
17:10 edenc bouncing ideas off people, responsiveness to patches I might submit, and knowing that the project is willing to walk in that direction, overall
17:10 tempire we're here
17:10 tempire at least I am
17:10 tempire sri's a bot
17:11 tempire crab is some kind of crazy foreigner
17:11 tempire marcus is a viking
17:11 crab you should implement the adapter as a mojolicious plugin module that you can release to cpan, regardless of what anyone thinks.
17:11 edenc crab: see, that's the problem, I'm not dumping my time into something I'm not sure is going anywhere
17:11 sri edenc: well, i'm here to answer questions
17:11 crab if you have questions about how to do something, tempire will take breaks from his studies to answer them.
17:12 crab edenc: if you release a working module to cpan, how is that "not going anywhere"?
17:12 crab if it works, people who need it will use it.
17:12 edenc crab: modules need maintanance, and eventually, someone needs to help me do that otherwise it's just going to sit there and bitrot
17:13 crab if it's useful to people who want to use these 5000 plugins, i'm sure people will help you to maintain it.
17:13 edenc and
17:13 edenc maybe there was already some effort going in that direction
17:13 edenc that's why I asked
17:13 sri edenc: core patches will depend, i have intention to make mojolicious more catalyst compatible just for plugins, there would have to be other benefits too
17:13 crab well. there's no such effort at the moment that's been discussed on irc or the list.
17:14 sri *+no
17:14 edenc sri: sure, and I agree
17:14 snearch_ joined #mojo
17:14 crab also, if there's anything in core that stands in the way of implementing your idea as a module, i'm pretty sure that can be fixed.
17:15 spleenjack left #mojo
17:15 snearch_ left #mojo
17:15 sri yea
17:15 edenc yes, I'm aware of that, but I don't want to take the project in a completely different direction
17:16 edenc I'm more of a community person, I don't think it's productive to work alone, specially not on something like this
17:16 tempire lulz, "how to use Mojolicious, which allows you to monitor processes remotely with your smartphone"
17:16 edenc but anyway, ideas bounced, I'll get some code going and we'll see how it works out
17:19 tempire wow.  I can't believe I've gone all this time without the autocomplpop vim plugin.
17:21 crab hmm... can i use vim plugins in mojolicious?
17:21 * crab hides
17:21 * sri pushes crab into the alligator pit
17:22 sri yko++ # highlighting for ep templates is really pretty
17:24 blabos joined #mojo
17:24 sri it even knows how to handle javascript and stylesheet helper blcoks
17:24 yko hell yeah!
17:24 purl Woooo!
17:25 yko sri: thanks a lot. it's my pleasure to hear compliment from you
17:25 sri https://gist.github.com/1004856 # reminds me to share the latest version of my theme
17:25 sri gvim and 256 color support
17:25 marcus /me fires up the bbq
17:26 yko thanks
17:26 tempire pic first!
17:28 * yko uses solarized colors for last two months
17:28 crab solarized?
17:28 sri http://twitpic.com/55d9p1/full # PIC
17:29 tempire http://ethanschoonover.com/solarized
17:29 yko tempire++
17:29 yko dark side of solarized is almost perfect
17:29 * sri hates solarized
17:30 tempire I'm a bit partial to jellybeans
17:30 sri bad contrast
17:30 tempire but I still like sri's the best
17:30 yko by the way, vim-people!
17:31 yko i'm happy to say that mojo.vim has snippet supports now
17:31 yko and if someone interested - any snippet related ideas are welcome
17:31 * crab looks at his white-on-black vim and feels old
17:32 tempire crab: no colorscheme!?
17:32 * marcus looks at his textmate again
17:32 marcus if I only could get sri's sexy project stuff!
17:32 crab i turned syntax highlighting off because it made things really slow when i edit this 15k-line file i have
17:33 marcus crab: I have a solution for you: stop making 15k source files!!!
17:33 sri marcus: still not working?
17:33 purl see "doesn't work"
17:36 sri marcus: git clone -b file-drawer https://github.com/alloy/macvim.git && cd macvim && ./configure --with-features=huge --enable-cscope --enable-rubyinterp --enable-pythoninterp --enable-perlinterp && make && rm -rf /Applications/MacVim.app && mv ./src/MacVim/build/Release/MacVim.app /Applications
17:36 crab marcus: it's actually a bundle of the various javascript files i depend on
17:36 sri run that oneliner
17:36 sri it will do all the work
17:37 sri the file drawer is then activated with "Window -> Toggle File Browser" or similar
17:37 tempire yko: you should make a pull request for your epl snippets into https://github.com/garbas/vim-snipmate, the new official snipmate repo
17:38 tempire since there are all sorts of them included
17:38 tempire https://github.com/garbas/vim-​snipmate/tree/master/snippets
17:38 sri yko: do you have all my textmate bundle snippets yet?
17:38 yko sri : not sure
17:38 sri https://github.com/kraih/mojo-​tmbundle/tree/master/Snippets
17:38 sri they are all there
17:38 yko i should review it. last time i tried i saw XML and closed all open windows
17:38 sri yea, the file format sucks
17:39 yko but i'll try harder
17:39 yko maybe using ojo or so
17:39 sri it's the apple serializer
17:39 yko thanks for reminding btw
17:40 crab jesus christ. i enabled solarized and everything's turned green.
17:40 yko tempire,  i don't think i really should. snippets package contain general-purpose snippets
17:40 marcus sri: rerunning with your option now
17:40 yko mojo.vim is a specific stuff for mojo users. i don't think including each-existing-framework snippets in base package is a good idea
17:41 kaare_ joined #mojo
17:41 marcus yko: I think apple has a gui for editing plists
17:41 tempire well, they have django
17:41 sri the file format is rather simpel though
17:41 yko marcus, i think i don't have any apple around me :p
17:41 yko one bad thing - i still can't get mojo snippets work in ::lite
17:42 yko sri, it is. main problem is my lazyness
17:42 * sri cracks the whip
17:42 * yko reads a book about slave revolt in Rome
17:43 crab and how they were brutally suppressed?
17:44 * sri orders teargas from the americans
17:45 yko well, sometimes before they were suppressed sometimes many people was harmed
17:45 yko not slaves only :p
17:45 sri those canisters are all over the news, so they must be good
17:45 yko hehe, you did that in '43. did it help? :p
17:45 crab yko-spartacus: modern suppression techniques are more efficient
17:47 yko each children born before 90s in my country knows how to behave under gas attack, bombing, nuclear attack
17:49 crab :-(
17:49 yko last one is very simple: you should lie with your feet in direction of epicenter and smolder slowly :D
17:50 yko crab, no, that was funny to have nuclear attack-training, hiding at metro station or local school vault
17:51 yko with jokes, laugh and beer in backpack :)
18:05 perlrocks Twitter: "private screening. django, rails, mojolicious on iis 7 http://www.helicontech.com/zoo/ soon be on your windows-production." (ru) --rukeba http://twitter.com/rukeba/status/76348779929944064
18:17 yko Oo
18:17 sri oO
18:20 sri damn, i really need to write about custom plugin hooks
18:20 sri https://github.com/kraih/mojo/blob/master/​lib/Mojolicious/Plugin/PodRenderer.pm#L135
18:20 sri hooks like that one are so nice in combination with content_for
18:21 sri https://github.com/kraih/mojolicio​.us/blob/master/mojolicious.pl#L12
18:21 sri adding google analytics to perldoc is that easy
18:22 sh9 left #mojo
18:25 d4rkie joined #mojo
18:32 crab hm. i don't like this solarized colour scheme, but trying it made me figure out how to enable 256 colours in xterm, and thus to make my own old homebrew colour scheme better.
18:32 crab so: thanks, yko.
18:39 marcus sri: HAZ FILEBROWSER, KTHX!
18:40 perlrocks Twitter: "Finished my new 256 color vim theme. #mojolicious #perl http://t.co/ymEPzjj http://t.co/yJZl5Td" --kraih http://twitter.com/kraih/status/76357471479939073
18:41 sri http://twitpic.com/55zp2g/full # not really twilight, but it has something
18:44 blabos left #mojo
18:46 sri not enough pastel in 256 colors :/
18:46 crab i'd go nuts if things were that colourful.
18:46 marcus you mean 'grow nuts'
18:46 marcus :
18:46 marcus :D
18:46 marcus :
18:47 marcus </cheshire cat>
18:47 elb0w nice sri
18:47 * marcus drinks GT.
18:48 sri http://bit.ly/eEZydj # because it's caturday
18:48 sri MADE YOU CLICK LULZ!
18:48 marcus at least it wasn't rick astley
18:50 marcus 90 seconds and counting
18:51 marcus 140 seconds - starting to feel a nosebleed coming on
18:51 crab marcus: :-P
18:51 sri :)
18:51 elb0w this theme is nice too http://bit.ly/7JJSz8
18:55 snearch left #mojo
18:55 sri for high contrast i kinda like molokai
18:56 elb0w yeah I swap between ir_dark / molokai / zenburn at home
18:56 elb0w looks nice on the mac
18:57 elb0w ir_dark is awesome imo
18:57 sri http://www.monokai.nl/blog/200​6/07/15/textmate-color-theme/ # the original
18:58 elb0w never used textmate
18:59 shonorio left #mojo
18:59 sri 660 seconds!
18:59 elb0w oo I like this, http://blog.toddwerth.com/entries/show/6
19:00 yko crab: https://github.com/yko/dotfil​es/blob/master/.vimrc#L67-69 and https://gist.github.com/3eb28cc0f65af13b2e40
19:00 sri my terminal theme uses the same colors as my vim theme
19:01 Foxcool joined #mojo
19:01 yko i'm not 100% sure, maybe there's something more you should do to get 256
19:03 elb0w http://blog.toddwerth.com/entries/show/2
19:03 elb0w clean
19:03 elb0w fav html theme
19:04 sri oh, kinosearch goes apache http://incubator.apache.org/lucy/
19:04 sri http://search.cpan.org/~karman/Lucy/lib/Lucy.pod
19:12 perlrocks Twitter: "Looks like my next article will be published in the July issue of @linuxjournal : http://tinyurl.com/yfc7kxk #linux #perl #mojolicious" --jamiepopkin http://twitter.com/jamiepopk​in/status/76365467593359361
19:21 perlrocks Twitter: "Mojolicious-Plugin-ContentManagement 0.014 by MEMOWE - http://frepan.org/~memowe/Mojolicio​us-Plugin-ContentManagement-0.014/" --cpan_new http://twitter.com/cpan_ne​w/status/76367757637189632
19:41 metaperl http://pastebin.com/kBigSPky  ... a simple mojo route to render a static directory ... based on enhancements to File::Stat::Ls ( https://github.com/metaperl/file-stat-ls )
19:42 * yko wonders if 1.4 should fail tests on ubuntu
19:52 yko https://gist.github.com/1005140 - can somebody confirm that? Mojolicious 1.4 and latest? ubuntu 11.04, perl 5.10.1
19:53 yko maybe it's because of perlbrew though. on 5.14 all ok
19:53 sri ah, i've seen that report before
19:53 sri from koban
19:53 sri he said it was the overload code in Mojo::DOM::_Collection
19:53 sri but never managed to fix it
19:53 yko Operation "eq": no method found points to it
19:54 yko -_-
19:54 sri could be a list/scalar context bug or so
19:55 sri https://github.com/kraih/mojo/bl​ob/master/lib/Mojo/DOM.pm#L1343
19:55 sri that's the line
19:55 sri and the bug is most likely in to_xml
19:55 yko yem im already there
19:55 sri actually it is most likely a perl bug we are triggering
19:56 sri it only happens when perl is compiled with a few specific flags
19:56 yko my 5.10.1 is default that comes from the box
19:56 sri my bet would be on the join code
19:56 yko so this should affect all ubuntu 11.04 at least
19:57 yko i think it's because "$_" in map { }
19:57 sri possible
19:57 purl Impossible!
19:57 sri :(
19:57 yko can Mojo::DOM of Mojo::DOM::_Collection appear inside of _Collection object?
19:58 yko s/of/or/
19:58 sri don't think so
19:59 yko btw 1.4 tag is missed on github
20:00 sri it's not
20:00 sri github just sorts wrong
20:00 yko oh. thanks
20:01 sri 43 tags already... time flies by
20:03 crab sigh. i still get core dumps with 5.12.3.
20:03 sri doh
20:06 kaare_ left #mojo
20:22 yko damn. looks like it's behavior of Test::More: http://www.mail-archive.com/p​erl-qa@perl.org/msg07654.html
20:24 sri :S
20:25 yko use overload 'eq' => sub { "$_[0]" eq "$_[1]" }; heals it
20:25 yko but i don't like. it's stupid -_-
20:25 sri yea
20:25 yko actually tests or test lib need fixes rather than Mojo::DOM
20:26 sri my first guess would be that he tried it for a few releases and fixed it again soon after
20:27 sri and your linux ships one of the broken versions
20:28 yko Test::Simple is up to date. (0.98)
20:28 sri weird
20:28 sri because it passes here
20:28 yko but wait...
20:28 yko it's not a test problem (
20:30 sri yko: is it important that you stringify both values?
20:31 yko perl -Mojo -e 'print x("<foo />") eq "<foo />" ? "ok" : "fail";'
20:31 yko that one actually reproduces error
20:31 yko not printing anything accept error 'Operation "re" ...
20:31 yko s/re/eq/
20:31 sri works here
20:32 yko 5.10.1?
20:32 purl it has been said that 5.10.1 is in Debian. I'll try that.
20:32 yko it works fine on 5.14
20:32 sri 5.14.0
20:32 yko it works ok on 5.14
20:32 yko i beieve it works on 5.12 but fails on 5.10.1. maybe some flags affects it.
20:32 sri fails on 5.10.0 here
20:33 yko i think we can just wait for cpantesters
20:33 yko oh. reproduced?
20:36 dwierenga left #mojo
20:36 dwierenga joined #mojo
20:38 yko LOOOOOOOOOOOOOOOOOOOOOOL
20:38 yko even ROFL!!!
20:38 yko give me a second
20:39 sri ?
20:39 yko go a fix
20:41 crab ROOOFL?
20:43 dwierenga left #mojo
20:43 sri can i have it?
20:48 sri ykooooooooooo!
20:48 dwierenga joined #mojo
20:49 yko sorry, was afk for a few minutes
20:49 yko see pull request
20:49 sri seriously? :O
20:49 yko i believe you will change it, but i can't stand not to create a pull request for soooo dramatic fix
20:49 yko damn, yeah! :)
20:50 yko just try it
20:51 crab is there a way for me to subscribe to mojo pull requests?
20:51 GitHub119 joined #mojo
20:51 GitHub119 mojo: master Sebastian Riedel * 28a633e (12 files in 3 dirs): fixed overload bug in Mojo::DOM - http://bit.ly/k1ln72
20:51 GitHub119 left #mojo
20:52 sri i was bored... so cleaned up some other stuff
20:52 yko it's ok
20:52 yko looks like you can overload or not overload. at all
20:52 yko *fallback i mean
20:54 sri yko++ # tracking it down
20:54 yko ${$package . "::()"} = $fb; # in overload.pm
20:55 dwierenga left #mojo
20:55 dwierenga joined #mojo
20:56 yko strange thing - just the same in 5.14.0
21:00 dekimsey left #mojo
21:36 crab sri: here's the ssd you want:
21:36 crab http://hothardware.com/News/Micron-D​emos-RealSSD-P320h-PCIe-SSD-Achieves​-Over-3GBs-Of-Sustained-Throughput/
21:38 perlite_ joined #mojo
21:42 perlite left #mojo
21:42 perlite_ is now known as perlite
21:49 sugar left #mojo
21:52 amoore left #mojo
22:20 kmx left #mojo
22:38 Foxcool left #mojo
22:59 arthas left #mojo
23:03 arthas joined #mojo
23:03 stephen left #mojo
23:05 stephen joined #mojo

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