Camelia, the Perl 6 bug

IRC log for #mojo, 2011-04-20

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

All times shown according to UTC.

Time Nick Message
00:15 baton8 left #mojo
00:19 marcus sup homies
00:22 tempire word
00:22 sri sssssshhhhhhhhhhht.
00:22 sri we are trying to sleep here
00:24 sri http://www.jwz.org/blog/2011/04/a-badg​e-for-the-software-industrys-failures/ # funny
00:24 * marcus ponders buying a pen-2
00:26 marcus http://www.ritzcamera.com/product/SLR1245.htm
00:28 sri iphone4 cam is enough for me these days
00:30 marcus I still drag my dslr around, but it's mighty heavy
00:35 perlrocks Twitter: "Mojolicious Directory Traversal Vulnerability http://bit.ly/dF20Il" --Alltop_TM http://twitter.com/Alltop_T​M/status/60501735118090240
00:36 ispy_ left #mojo
00:37 * sri switched his dslr for a moleskine :)
00:38 sri s/for/with/
00:38 marcus to draw dirty pictures? :)
00:39 * sri nods
00:43 marcus I now carry around my kindle, an ipad2 to entertain $fork, and the dslr
00:43 marcus it's a bit much
00:44 marcus maybe I could just get http://photojojo.com/store/aw​esomeness/cell-phone-lenses/  :D
00:44 marcus at least if the 8mbit pixel rumors for iphone5 is true
00:46 sri haha
00:49 crab moo
00:51 ispy_ joined #mojo
00:54 marcus moob
00:54 * marcus is sitting in a hotel bar in harlem
00:54 marcus damn waiter gave me blue moon again.
00:55 marcus hmm, I think buying a camera over here is a bad idea
00:55 marcus I can get it at the same price in norway when I deduct MVA
00:55 marcus i mean VAT
00:56 marcus and with an actual warranty
01:01 crab and you get the warm fuzzy feeling that comes from supporting the norwegian economy?
01:02 marcus screw that
01:02 marcus but our consumer rights are pretty strong
01:02 marcus all products have a 2 year warranty
01:02 marcus or more
01:12 amonaco left #mojo
01:26 esskar left #mojo
01:27 esskar joined #mojo
01:48 alnewkirk left #mojo
02:03 memowe_ joined #mojo
02:07 memowe left #mojo
02:15 alnewkirk joined #mojo
02:22 esskar left #mojo
02:22 esskar joined #mojo
02:41 yakudzo left #mojo
03:07 abra left #mojo
03:13 yakudzo joined #mojo
03:18 abra joined #mojo
04:04 Foxcool joined #mojo
04:45 Foxcool left #mojo
04:57 Foxcool joined #mojo
05:13 koban joined #mojo
05:52 kaare_ joined #mojo
06:00 jwang joined #mojo
06:16 f00li5h left #mojo
06:23 Foxcool left #mojo
06:23 perlrocks Twitter: "Latest Vulnerabilities: [SECURITY] [DSA 2221-1] Mojolicious security update http://bit.ly/dSOkEl" --securident http://twitter.com/securide​nt/status/60589478321987584
06:33 jamesw joined #mojo
06:34 Foxcool joined #mojo
06:37 f00li5h joined #mojo
06:40 AmeliePoulain joined #mojo
06:55 ysyrota joined #mojo
07:06 tabbi joined #mojo
07:06 breaker313 joined #mojo
07:14 breaker313_ joined #mojo
07:15 breaker313 left #mojo
07:24 Foxcool left #mojo
07:36 Foxcool joined #mojo
07:37 breaker313_ left #mojo
07:37 breaker313__ joined #mojo
07:38 breaker313__ left #mojo
07:38 breaker313 joined #mojo
07:40 dotan joined #mojo
07:42 Foxcool left #mojo
07:43 breaker313_ joined #mojo
07:44 breaker313 left #mojo
07:44 Foxcool joined #mojo
07:50 perlrocks Twitter: "There is no official warning, but you should update if you use #Mojolicious server https://gist.github.com/faec15ca41c90d9c3dcd" --und3f http://twitter.com/und3f/status/60611183337676803
07:56 cosmincx joined #mojo
07:57 breaker313_ left #mojo
07:57 breaker313 joined #mojo
07:57 tabbi1 joined #mojo
08:01 tabbi left #mojo
08:04 koban left #mojo
08:04 koban joined #mojo
08:09 perlrocks Twitter: "DSA 2221-1: Mojolicious security update http://bit.ly/ggq87z" --compatdb http://twitter.com/compatd​b/status/60616092418179072
08:12 Foxcool left #mojo
08:16 breaker313 left #mojo
08:17 PerlNinja joined #mojo
08:17 spleenjack joined #mojo
08:19 PerlNinja sup, brothers from other mothers
08:22 dotan left #mojo
08:24 Foxcool joined #mojo
08:32 plu_ is now known as plu
08:33 plu left #mojo
08:33 plu joined #mojo
08:38 koban left #mojo
09:05 AmeliePoulain left #mojo
09:06 tabbi1 left #mojo
09:07 baton8 joined #mojo
09:07 crab heh
09:08 crab that makes it sound like we have a common father
09:08 PerlNinja sri's the daddy
09:08 PerlNinja it's all his fault
09:08 crab so how's .id this fine day?
09:08 PerlNinja west java is alternating between hot and sunny, hot and rainy, and hot and bloody bigassed thunderstorms
09:09 PerlNinja probably going to be in for some epic rain later
09:13 su-bzero_ Hey. process is different to on_process?
09:13 * sri yawns
09:13 sri sup?
09:13 purl Yo dawg
09:14 AmeliePoulain joined #mojo
09:15 su-bzero_ in process {} I had my ($self, $c) = (@_); What should I have in on_process?
09:15 su-bzero_ $c is undef. :(
09:16 su-bzero_ I got $c->req->stuff in process{}.
09:16 su-bzero_ How to do it in on_process in Mojolicious?
09:21 sri su-bzero_: considering that all my Coro examples work with on_process i'm quite sure you're doing something wrong
09:31 sri su-bzero_: now the big question, why don't you use a hook?
09:31 su-bzero_ sub startup { $self->on_process(\&_process);} sub _process { my ($self, $c) = (@_); }
09:31 su-bzero_ It works. :)
09:44 sri just like the documentation says
09:57 koban joined #mojo
10:04 AmeliePoulain left #mojo
10:08 fhelmber_ joined #mojo
10:10 PerlNinja left #mojo
10:10 PerlNinja joined #mojo
10:10 PerlNinja huh, wrong button
10:10 sri btw. anyone having problems with 1.19?
10:12 GitHub56 joined #mojo
10:12 GitHub56 mojo: master Sebastian Riedel * f90f5f5 (1 files in 1 dirs): release preparation - http://bit.ly/edZnUz
10:12 GitHub56 left #mojo
10:15 GitHub99 joined #mojo
10:15 GitHub99 mojo: master Sebastian Riedel * 0a63116 (1 files in 1 dirs): more release preparation - http://bit.ly/g4gZrq
10:15 GitHub99 left #mojo
10:18 crab i haven't tried it yet
10:18 sri then wait a minute for 1.20 ;p
10:25 crab lots of changes
10:34 GitHub188 joined #mojo
10:34 GitHub188 mojo: master Sebastian Riedel * 0eff929 (2 files in 2 dirs): improved size limit handling further - http://bit.ly/dZu6rE
10:34 GitHub188 left #mojo
10:36 Foxcool left #mojo
10:36 GitHub145 joined #mojo
10:36 GitHub145 mojo: master Sebastian Riedel * 5ecfc94 (1 files in 1 dirs): added another test - http://bit.ly/hd9Pv0
10:36 GitHub145 left #mojo
10:37 PerlNinja sri: late reply but i upgraded to 1.19 this morning and haven't noticed anything yet so ... will do 1.20 when it appears :)
10:40 perlrocks Twitter: "Mojolicious 1.20 by KRAIH - http://frepan.org/~kraih/Mojolicious-1.20/" --cpan_new http://twitter.com/cpan_ne​w/status/60653985966735360
10:40 sri there it is :)
10:40 PerlNinja teehee... upgrade done
10:42 PerlNinja clustermgr.pl rabbit mojo.upgrade  ... <3 automation. automation++ && sri++
10:42 sri \o/
10:45 ajgb joined #mojo
10:47 Foxcool joined #mojo
10:52 sri 5201 tests now btw :)
10:53 bessarabov joined #mojo
10:55 koban left #mojo
10:55 koban joined #mojo
11:09 zakame joined #mojo
11:32 perlrocks Twitter: "Full description of Mojo::IOLoop "workaround" critical issue https://gist.github.com/931037 #mojolicious #perl" --und3f http://twitter.com/und3f/status/60667168064409600
11:43 tabbi joined #mojo
11:54 PerlNinja sri, you should start asking vti and und3f for money, cos if they're so intent on gangbanging you, you might as well get paid for it :P
11:54 sri heh
11:55 sri as long as they are useful
11:56 PerlNinja mmm they're like vicious little chihuahuas
11:56 PerlNinja gotta slap em around every now and then so they don't get too big for their britches
11:56 sri if anything they make me look good :)
11:56 moritz PerlNinja: funny thing is that in the end, mojo will be better
11:57 moritz PerlNinja: when the turn up bugs and report them (instead of silently exploiting them), it's a profit for us
11:57 PerlNinja moritz, no doubt about that
11:57 PerlNinja not saying they're not being useful :)
11:57 moritz even if it's a short term inconvenience
11:57 PerlNinja just that at the moment besides reporting bugs, they make a whole lot of hoo-ha about it - and unfortunately it's shit like that that gets managers and people-in-charge nervous about using Mojolicious
11:58 PerlNinja it's a fine balance :)
11:58 sri well, his descriptions are also quite wrong
11:58 PerlNinja yeah, you know that sri
11:58 PerlNinja we know it
11:58 PerlNinja but does Joe Q. Manager know it
11:58 PerlNinja chances are he doesn't, and is going to go into knee-jerk "omgwtf the world is ending" mode :)
11:58 sri but he barely speaks english and doesn't listen... no point trying to communicate
11:59 PerlNinja I'm not communicating, just making him look like enough of a resentful tool that his opinions aren't worth much :)
11:59 PerlNinja he'll keep reporting bugs and thinking he's the man, and I'll just keep making fun of him
11:59 moritz PerlNinja: that kind of FUD exists for about every tool that you can think of
12:00 sri kinda funny we get more attention than the perl core security issue that recently popped up
12:00 PerlNinja moritz, I'd be surprised to find one that hasn't got the treatment, for Mojolicious it just tends to get on my nerves because from a personal standpoint, it's just about what I've wanted to build one day except sri got there first :d
12:00 sri lc() breaking taint or whatever it was
12:01 PerlNinja no idea, i have to admit i don't keep up with perl issues at all
12:02 moritz http://web.nvd.nist.gov/view/vuln/search-results?q​uery=perl&amp;search_type=last3months&amp;cves=on
12:02 * moritz cries
12:03 moritz the search for "perl" triggers on "properly"
12:03 sri lol
12:03 moritz http://cve.mitre.org/cgi-bin/c​vename.cgi?name=CVE-2011-1487 looks what you meant
12:03 PerlNinja when fuzzy matching goes wild...
12:06 perlrocks Twitter: "@perlninja I am just helping to make #mojolicious better (I've used it in a lot of my projects). It is not about FUD or anything personal." --und3f http://twitter.com/und3f/status/60675715036753920
12:07 perlrocks Twitter: "@und3f Your lack of proper excuse is disturbing. You might be making #mojolicious more bug-free, but you're opinionated, and it shows." --perlninja http://twitter.com/perlninj​a/status/60675951700348929
12:08 yakudzo hehehehe
12:08 purl hehehehehe
12:08 yakudzo DRAMA
12:09 sri the best geek marketing tool ever
12:10 moritz twitter or drama? :-)
12:10 yakudzo trolling (;
12:11 nuclon joined #mojo
12:11 sri drama > twitter
12:11 PerlNinja drama on twitter  <3
12:11 perlrocks Twitter: "@perlninja You might be making #mojolicious better too, but i don't see your name in Changes. Take a look at `grep und3f Changes`" --und3f http://twitter.com/und3f/status/60677083420037120
12:14 GitHub15 joined #mojo
12:14 GitHub15 mojo: master Sebastian Riedel * cf15d06 (2 files in 2 dirs): fixed changes - http://bit.ly/gbom4S
12:14 GitHub15 left #mojo
12:14 sri my bad
12:15 perlrocks Twitter: "@und3f Is this your way of telling me your #mojolicious e-peen is bigger than mine? 8 contributions, 7 before 1.0, 1 in 1.11. #notimpressed" --perlninja http://twitter.com/perlninj​a/status/60677899891646465
12:15 TheCritic joined #mojo
12:15 perlrocks Twitter: "@und3f also, instead of personal attacks, how about explaining why that workaround in #mojolicious is an issue? Still haven't answered that" --perlninja http://twitter.com/perlninj​a/status/60678090904449024
12:16 PerlNinja *whistles innocently*
12:16 TheCritic This is the output to stdout from my app. thought it may interest you. http://pastebin.com/E7fjC3jb
12:17 sri TheCritic: a test case would be very much appreciated
12:18 TheCritic Ferb, I know what we are going to do today.
12:18 sri or actually
12:19 sri i might know what's happening
12:19 sri TheCritic: are you using a non standard response code?
12:20 TheCritic I didnt think I was...
12:20 TheCritic I am not using $message
12:20 sri the request timer can't find a message for your response code
12:22 Sugar joined #mojo
12:23 GitHub44 joined #mojo
12:23 GitHub44 mojo: master Sebastian Riedel * f0849a4 (2 files in 2 dirs): added test - http://bit.ly/gYJTt6
12:23 GitHub44 left #mojo
12:23 sri TheCritic: this will make the warning go away, but it's not really a fix, since your app could be doing something wrong
12:23 perlrocks Twitter: "@perlninja this may be "a total non-issue" for you but it is important for other #mojolicious users (official site for example)" --und3f http://twitter.com/und3f/status/60680025460047872
12:24 marcus moin
12:24 perlrocks Twitter: "@und3f you still haven't answered why the workaround in #mojolicious is a big issue. If you can't, then be so kind as to shut your pie-hole" --perlninja http://twitter.com/perlninj​a/status/60680270621315072
12:25 perlrocks Twitter: "@und3f @perlninja The official #mojolicious site has not been impaired by any of the recent bugs." --kraih http://twitter.com/kraih/status/60680418499899392
12:25 Sugar hi all
12:26 * sri waves
12:26 Sugar i've a problem
12:26 sri welcome to mojolicious anonymous Sugar
12:26 crab excessive sweetness?
12:26 moritz happens in the best families
12:26 PerlNinja for the low low price of $19.99 initially and $9.99 monthly, we can help! You too can have a full head of .... eh.. wait.. wrong channel
12:27 Sugar in first case i send this request:
12:27 Sugar my $url = 'http://localhost:3000/test';
12:27 Sugar my $ua  = Mojo::UserAgent->new;
12:27 Sugar my $res = $ua->post_form( $url, {test => [1..5]} );
12:27 crab sri: can i send you a patch for the upload file race condition before someone else finds it and causes more drama? :-)
12:27 Sugar was kicked by sri: Sugar
12:28 abra ))
12:28 PerlNinja crab: no no wait until I publically report it and make fun of mojolicious for being so re-inventive and shit... :D
12:28 sri crab: sure
12:29 crab sri: you should hook up your client with a "please use a paste site" or something kick message
12:29 * sri nods
12:29 Sugar joined #mojo
12:29 sri no pasting into the channel please
12:30 crab PerlNinja: ok, but i don't have a twitter account, so you have to make fun of yourself afterwards
12:30 PerlNinja :(
12:30 PerlNinja that's too much like masturbation without the happy ending
12:30 crab i thought my patch was the happy ending
12:30 Sugar sri, why did you kick me?
12:31 sri see above
12:31 crab Sugar: only because you were pasting into the channel. please paste your code on a paste site and post a link to the channel.
12:31 Sugar jr
12:31 Sugar ok
12:31 arpadszasz joined #mojo
12:31 moritz happens to everybody at least once, no hard feelings
12:31 * moritz would kick sri too for pasting code here :-)
12:31 crab any warm fuzzy feelings?
12:32 crab i'm a doctor, you can tell me.
12:32 * sri would expect no less
12:33 crab man. the bundles jquery.js really kills you when you do git grep <...most things...>
12:33 crab s/les/led/
12:34 sri and the base64 encoded version screwed up sloccount
12:34 sri can't have everything
12:34 koban left #mojo
12:34 PerlNinja but we want everything :(
12:35 crab eh, who cares about sloccount
12:35 sri wait...
12:36 koban joined #mojo
12:36 sri you're still using grep instead of ack?
12:36 PerlNinja ack?
12:36 purl i heard ack was http://betterthangrep.com or a grep-like tool for code. or at http://www.betterthangrep.com/
12:36 sri http://www.betterthangrep.com # that's cute
12:37 sri a grep for code, written in perl
12:37 sri umm
12:37 sri of course i missed the factoid...
12:37 TheCritic sri: http://pastebin.com/U1cRaL7y Looks like $headers->leftovers is not initialized ...
12:38 sri TheCritic: which version?
12:38 purl which version is that?
12:39 sri i don't think that code exists anymore
12:39 TheCritic from cpan KRAIH/Mojolicious-1.19.tar.gz
12:39 sri outdated :)
12:39 crab haha
12:40 sri 1.20 is the latest, and it looks like we'll have 1.21 later
12:40 perlrocks Twitter: "@und3f no answer why the workaround in #mojolicious is such an issue? I kindly refer you to http://bit.ly/fU6Bmf to see why it's not." --perlninja http://twitter.com/perlninj​a/status/60684349972021248
12:40 crab so i installed ack and my eyes fell out
12:41 sri mojolicious is getting an in-depth review atm. so we have releases twice a day :)
12:41 crab blazing bright green and yellow, ow it hurts
12:41 PerlNinja mmm green eggs and yellow spam
12:41 PerlNinja also: argueing with russians is like pulling a tooth with a pair of pliers, sucks to do it but the end result is satisfying
12:41 Sugar http://pb.rbfh.de/YR0lXQbWnhA4
12:42 Sugar in second case mojo is 1.15
12:42 * sri uses the ackmate textmate addon
12:42 Sugar I take two version of params
12:43 sri Sugar: the second request is all wrong
12:43 Sugar why?
12:43 Sugar ua is helper in our app, it's  obgec of Mojo::UserAgent
12:44 sri params have to be a hashref
12:44 Sugar *object
12:44 sri see Mojo::UserAgent pod for an overview
12:44 Sugar ok thx
12:44 crab ack --perl rand is half as fast as git grep rand
12:44 crab i guess i'll try it for a while and see if i like it
12:45 moritz somehow git grep never returned a single result for me :/
12:45 sri crab: did you send the patch yet?
12:45 moritz maybe I always searched for something not in the repo, or maybe it's just broken on my machine
12:46 crab sri: no, i'm wondering if O_CREAT|O_EXCL works on windows
12:46 crab moritz: if you do "git grep rand" in the mojo repository, you should get lots of results
12:47 crab and they will GLADDEN your HEART!
12:48 Sugar sri: sorry, but in our helpers params are converted to hashref
12:49 Sugar another idea where is an error?
12:49 sri Sugar: i don't think your helper works at all
12:49 sri $self->ua is a builtin method that can't be replaced with a helper
12:50 sri then again, i'm just guessing about the context
12:50 Sugar it's instance of mojo::base
12:50 Sugar not of App
12:50 Sugar what about context?
12:51 elb0w keep seein mojo on these sec lists
12:51 bessarabov left #mojo
12:51 sri the context of the pasted code
12:52 PerlNinja elb0w: and? :D
12:52 bessarabov joined #mojo
12:52 Sugar http://pb.rbfh.de/8glqkxdz17Vm
12:52 elb0w thats all
12:52 Sugar here is helper (wrapper)
12:53 Sugar params converted to hashref
12:54 PerlNinja :D
12:55 crab perlninja: see, everyone's terrified you'll pounce on them
12:55 PerlNinja I'm a trained attack dog. rawr.
12:56 crab sri: i'll patch later. too tired now.
12:56 sri :o
12:56 PerlNinja nah, nothing wrong with seeing mojolicious on the seclists, at least people will see they need to upgrade, and at the very least later on you can point at it and go "see, we fixed all that"
12:56 crab google isn't telling me if O_CREAT|O_EXCL works on windows or not
12:56 PerlNinja wait what google doesn't know all? o_O
12:57 * PerlNinja blames it on the boom boom
12:57 sri crab: just make a test and we'll see
12:57 stephanj i have windows. if you can hand me a test i can tell you
12:57 sri crab: see :)
12:57 Sugar http://pb.rbfh.de/YR0lXQbWnhA4 - anybody knows why is is doesnt work?
12:59 PerlNinja will see if I have an answer on that as soon as the damn page loads :D
12:59 crab stephan: perl -MFcntl=O_CREAT,O_EXCL,O_RDWR -wle 'sysopen(F, "foo", O_RDWR|O_CREAT|O_EXCL) or die $!;syswrite F, "blah"; close F;'
12:59 sri Sugar: i don't understand the problem i'm afraid, maybe you can reformat everything into a single paste with enough context?
12:59 PerlNinja nodes => @nodes ?
12:59 Sugar no, it will be plain array
13:00 * sri pokes stephanj
13:00 stephanj yes?
13:00 PerlNinja Doesn't matter what the dumped params are, see if it gets you the result you want first :D
13:01 stephanj crab: seems to work
13:01 crab stephan: run it again, does it die with EEXIST?
13:01 stephanj aftet execution i get a file foo in current dir, and on next run gives me a file already exists
13:01 crab great
13:01 stephanj :)
13:01 sri \o/
13:02 Sugar PerlNinja: sorry, i dont understand what did you meen
13:03 PerlNinja me neither... i kinda lost track of what was in my head when i typed that
13:03 PerlNinja sorry :/
13:05 Sugar ok =)
13:05 elb0w sri, should do a Mojo::STOMP client
13:05 elb0w :D
13:05 crab what's STOMP?
13:05 purl STOMP is http://stomp.codehaus.org/ or Net::Stomp or Streaming Text Orientated Messaging Protocol
13:06 elb0w its a simple protocol for messaging
13:06 sri crab: Mojo::Asset::FIle?
13:06 tardisx left #mojo
13:08 sri crab: if we are looking at the same code... wouldn't adding the pid solve the issue?
13:10 sri whatever, i'm sure you'll find a good solution :)
13:10 crab no, because in theory it's predictable, so i can create a symlink to something and it'll clobber it
13:10 crab you just need to use O_EXCL to break the race, then you'll never clobber anything
13:11 alnewkirk left #mojo
13:11 crab it's not a realistic problem. just something i happened to notice while reviewing the code.
13:11 sri i see your point
13:12 crab patch coming up.
13:12 sri crab++
13:14 perlrocks Twitter: "Не любят тут # Mojolicious http://slonik-v-domene.livejournal.com/87515.html" (sw) --vtivti http://twitter.com/vtivti/status/60692721035264000
13:20 sri lol, that blog post is hilarious!
13:21 crab do you understand it? what does it say?
13:21 sri someone compares Mojo::Template to PHP, using sql queries directly inside the template
13:21 sri google translate ;p
13:21 Sugar yes
13:21 PerlNinja yeah
13:21 PerlNinja funny shit
13:21 purl So three shits walk into a bar *PLOP*
13:21 sri Mojolicious sucks because it allows stupid people to do stupid things!!!
13:22 sri *facepalm*
13:22 Sugar sloniv_v_domene is famous russian hater of Perl
13:22 perlrocks Twitter: "@vtivti funny, #mojolicious has nothing to do with someone writing a crap template, now does it? You again #fail at discrediting." --perlninja http://twitter.com/perlninj​a/status/60694764198174720
13:22 PerlNinja *stirs the pot a little*
13:22 sri i'd like to see that in english
13:23 crab i really hate it that there's so much... bad feeling about all this
13:23 sri bad feeling?
13:23 purl :(
13:23 nuclon PerlNinja: actually, vti didn't attempt to discredite by this twit
13:23 * sri pats purl
13:23 * purl purrs
13:24 sri that blog post is quite funny imo
13:24 nuclon PerlNinja: so at least try to translate twit before answering
13:25 sri crab: you've seen nothing yet
13:25 nuclon sri: the blog post is about php developer who tries to write php-ish perl, and have nothing to mojo at all, actually
13:25 sri crab: https://github.com/rails/rails/commit/9​f09aeb8273177fc2d09ebdafcc76ee8eb56fe33 # this is what rails people have to deal with
13:26 sri they added a soft prereq on coffeescript...and got that thread
13:26 sri developing successful frameworks is madness most of the time
13:28 PerlNinja nuclon: he did actually, because the original post blames mojolicious - and vti just loves to post shit that puts mojolicious in a bad light
13:28 PerlNinja *shrug*
13:29 PerlNinja I don't need an accurate translation in order to grasp the context something
13:29 PerlNinja s/something/of something/
13:29 nuclon PerlNinja: so you got context wrong in this case :)
13:30 PerlNinja nuclon: no, I doubt that
13:30 sri nuclon: i doubt that too
13:30 PerlNinja any post that has (paraphrased) "Mojolicious, the next generation framework my ass!" in it
13:30 PerlNinja that's blaming Mojolicious for the inability of some schmuck to write proper code
13:31 PerlNinja vti retweeting this (given his rather anti-Mojolicious stance) is his way of bringing some more mud to the mud slinging contest
13:31 PerlNinja but it's okay, you russians stick together, I can respect that
13:34 arpadszasz left #mojo
13:36 perlrocks Twitter: "#mojolicious community reminds "1984". Any dissent is forbidden and will be punished :)" --und3f http://twitter.com/und3f/status/60698322675048449
13:37 mateu haha
13:37 PerlNinja bwahahah
13:38 Foxcool left #mojo
13:38 sri we are watching you
13:38 * tempire puts on his sheriff hat and stares down *everyone* in the saloon.
13:38 perlrocks Twitter: "@und3f The #mojolicious community welcomes dissidence, but unfounded FUD and personal vendetta's aren't. Also, where's my answer, bitch?" --perlninja http://twitter.com/perlninj​a/status/60698905255493632
13:38 * tempire preps the alligator pit
13:38 nuclon PerlNinja: Actually, I'm not russian. I'm ukrainian :)
13:38 mateu hows' the view of me sitting on the toilet :)
13:38 PerlNinja nuclon: eh, same thing :P
13:39 PerlNinja well.. used to be.. sorta
13:39 PerlNinja I guess
13:39 * PerlNinja fails
13:41 nuclon anyway, I think that security audit performed by vti&und3f is really good thing for mojo, use that :)
13:42 sri nobody is arguing against an audit
13:42 crab sri: http://toroid.org/misc/file.diff is the basic idea, how does it look?
13:42 sri just the FUD around it
13:43 PerlNinja nuclon: it's great they're doing it, but it's the whole "look look! we found more bugs in mojolicious! mojolicious sucks! and sri is the devil! everyone should stop using it!"
13:43 PerlNinja that's the part that sucks
13:43 sri crab: hmm, how expensive is the double open?
13:44 crab perlninja: sorry, but i think your being rude doesn't really make things better
13:44 crab sri: it's fdopen, no syscall
13:44 PerlNinja crab: calling someone a bitch isn't that rude
13:45 crab sri: it's "wrap an stdio.h FILE around this fd", that's all
13:45 sri ah, looks good
13:46 crab perlninja: maybe it's a cultural thing. well, i don't really want to discuss how rude x is or isn't, so i'll just shut up.
13:47 PerlNinja crab: well, no need to shut up, I mean, I'll freely admit to being a rude uncouth opinionated bastard with a mouth on him :) And you do have a point
13:47 sri i'm not even sure russians consider that rude
13:47 PerlNinja according to my russian friend there isn't much they actually find rude, but crab has a point though
13:48 nuclon PerlNinja: actually, calling somebody bitch in russian is THAT rude
13:48 crab i'm a fan of taking the moral high ground in public and stabbing your enemies in dark deserted alleys.
13:49 Foxcool joined #mojo
13:49 sri interesting
13:49 PerlNinja well
13:49 PerlNinja that is the proper way to do it :d
13:49 nuclon PerlNinja: unless you're friends and use it as sarcasm :)
13:49 PerlNinja nuclon: nnnooo can't say und3f and me are friends :D
13:50 crab (that last croak on the fdopen could in theory go away, it should never fail)
13:50 sri famous last words
13:50 purl Backups are for wussies
13:51 crab sri: well, if this patch looks good to you, it looks good to me. test suite passes as-is.
13:53 tempire I'm starting to believe it's a russian cultural thing.
13:53 tempire by russian, I mean "that part of the world"
13:54 Sugar left #mojo
13:54 crab sri: good christ, i just looked at that ruby thing. pages and pages of grumbling!
13:54 tempire und3f comes across as harsh, but he's always trying to help, and for the most part, ignores the negative criticism when it comes.
13:55 tempire given vti hurt everyone with the method of his initial "departure", there's an added emotional perspective that all mojo supporters should account for.
13:56 tempire nuclon++ for attempting to clear the air from a insider's cultural perspective
13:56 * tempire gets on the soapbox
13:56 tempire Name calling is rude.  In any language.
13:56 tempire Mojolicious is made of unicorns and rainbows
13:57 crab and vomit?
13:57 purl vomit is a c++ coder trying to objectify perl or http://www.monkeydyne.com/r​mcs/dbcomic.phtml?rowid=444
13:57 tempire And apparently, puppies have been added to the mix (chromatic++)
13:57 Sugar|2 joined #mojo
13:57 tempire In the words of the master bender, sri, "Be nice"
13:57 tempire That goes for everyone.
13:58 tempire und3f++ for reporting security issues
13:58 tempire Consider, though, how you come across from a different culture.
13:58 * moritz thought Bender always says something about his shiny metal ass :-)
13:58 tempire vti++ for spreading the love initially in the channel
13:58 tempire His support eartly on, I'll never forget.
13:59 tempire sri++ for being awesome enough to take criticism
13:59 tempire und3f: consider sri's arguments with marcus
13:59 tempire marcus gets right up in his face sometimes
13:59 fmerges joined #mojo
14:00 tempire and it's ok, because the tension dissipates after the words are all said.
14:00 tempire PerlNinja++ for being so supportive and defensive of Mojolicious
14:01 tempire but there's no substitute for niceness
14:01 * tempire gets off the soapbox
14:02 tempire Now, everyone go out and write a plugin for your penance.
14:02 tempire Plugins are made of glitter by the way.
14:03 sri tempire++
14:03 tempire They are shininess metamorphed
14:03 * tempire sprinkles glitter on everyone
14:03 crab sri: pull-requed-ed
14:03 sri \o/
14:03 crab er, request-
14:04 PerlNinja tempire: I already made plugins...
14:04 moritz THE MAKE MORE AND BETTER, OK?
14:04 crab tempire: i'm allergic to glitter
14:04 moritz s/THE/THEN/
14:04 tempire The work of the true is never done.
14:04 tempire There is no rest.
14:04 tempire Only more reward.
14:04 tempire GO FORTH!
14:04 moritz .oO( there is no REST ? )
14:06 tempire lulz.  Rainbows do not maintain state.
14:06 * nuclon is writing form validator on pure C...
14:06 tempire it's depends solely on the viewer.
14:06 tempire *quantum mojo*
14:07 crab nuclon: why?
14:07 PerlNinja don't need a REST plugin ... do we?
14:07 Sugar|3 joined #mojo
14:08 crab sub register { sleep 1000 }
14:08 tempire depends on whether its useful
14:08 tempire mojo needs a lot more 'n00b' plugins
14:08 nuclon crab: it's for my job :)
14:08 tempire my plugins are all pretty basic when you look at the code.
14:08 tempire but it makes mojolicious seem more accessible
14:09 PerlNinja tempire: already took care of that, plugins::mongodb, plugins::database are stupid simple (also for me :P) hehe
14:09 tempire :)
14:09 PerlNinja plugins::authentication is a bit more involved
14:09 crab nuclon: after you write the code, show it to me and i'll try to poke holes in it ;-)
14:09 tempire yeah, I'm not a fan of the ::authentication module.
14:09 tempire that pod is a big wall of text
14:10 nuclon crab: I can't (by the contract) :)
14:10 tempire but maybe I just don't like to read
14:10 * tempire looks out the window....oooh shiny
14:10 crab nuclon: just rot13 the code, i'll never be able to crack the encryption ;-)
14:11 Sugar|2 left #mojo
14:11 tempire lulz, the code of ::authentication is easier to read than the pod
14:12 PerlNinja tempire: yeah i'm not that good at writing documentation
14:12 PerlNinja but if you have improvements on the docs send em over :)
14:13 tempire patches welcome!
14:13 purl patches welcome is always true or unless for search.cpan.org or swahili for "Put up or shut up."
14:14 PerlNinja patches always welcome :) can send em madcat@cpan.org, or if you've got mercurial, clone it on bitbucket and do a pull request
14:14 nuclon left #mojo
14:15 Foxcool left #mojo
14:17 GitHub142 joined #mojo
14:17 GitHub142 mojo: master Abhijit Menon-Sen * f55a143 (1 files in 1 dirs): Avoid a (very unlikely) race when opening a temporary file ...
14:17 GitHub142 mojo: master Sebastian Riedel * f27c032 (2 files in 2 dirs): cleanup
14:17 GitHub142 mojo: master commits f0849a4...f27c032 - http://bit.ly/fMVadx
14:17 GitHub142 left #mojo
14:18 crab making mojolicious more secure since several seconds ago!
14:22 PerlNinja woohoo!
14:22 PerlNinja crab++
14:23 sri oh now i understadn sugars question, sharifulin posted it again to the list
14:23 sri interesting
14:23 sri i have no idea why i did that back then
14:24 moritz now it would pay off if you had written more verbose commit messages :-)
14:24 sri indeed
14:25 sri if only we had time travel... so i could go back and punch myself in the face for that!
14:25 PerlNinja my commit messages are a random choice of 'foo', 'bar', 'baz' or 'fffffuuuuuuuu...' :/
14:26 sri damn... multipart/form-data is sooooo underdocumented
14:26 sri (in general)
14:35 Sugar|3 sharifulin ismy co-worker ))
14:36 sri :)
14:36 sri i'm investigating now
14:36 sri changing the behavior would be easy
14:37 Sugar|3 ok, it's nice =)
14:37 sri have you checked what browsers do in that case?
14:38 Sugar|3 no, we use Mojo::UserAgent to automate operations with api
14:44 alnewkirk joined #mojo
14:46 nuclon joined #mojo
14:50 GitHub88 joined #mojo
14:50 GitHub88 mojo: master Sebastian Riedel * 36d659a (3 files in 3 dirs): fixed "multipart/form-data" generation bug in Mojo::UserAgent - http://bit.ly/fXTMaz
14:50 GitHub88 left #mojo
14:52 sri Sugar|3: should be fixed
14:53 Sugar|3 tnanx
14:55 sri and i still have no idea why i originally implemented it differently
14:56 sri i bet some confusing spec made me do it
14:58 Foxcool joined #mojo
15:04 tabbi left #mojo
15:05 sri i guess 1.21 will be released soon
15:05 sri any other open bugs? :)
15:06 koban left #mojo
15:11 perlrocks Twitter: "Bugtraq: [SECURITY] [DSA 2221-1] Mojolicious http://www.securityfocus.com/archive/1/517595 security update" (es) --D3Seguridad http://twitter.com/D3Segurid​ad/status/60722151300411392
15:16 crab huh. i have only 3 commits in mojo. must find more bugs.
15:16 sri indeed
15:16 cosmincx left #mojo
15:16 sri that's what you slackers get for nopasting patches
15:17 crab 27 more needed to overtake everyone but you. :-)
15:18 sri go go go!
15:19 crab oh, that explains it (nopaste+other diffs). i knew i'd submitted various doc patches earlier.
15:21 crab isn't it time for a new code name?
15:22 sri code name comes with big user visible features
15:22 crab ah, i see
15:24 PerlNinja left #mojo
15:26 sri 1.21 tagged ;p
15:28 PerlNinja joined #mojo
15:30 perlrocks Twitter: "Mojolicious 1.21 by KRAIH - http://frepan.org/~kraih/Mojolicious-1.21/" --cpan_new http://twitter.com/cpan_ne​w/status/60727044815855616
15:31 perlrocks Twitter: "Released #mojolicious 1.21 with a few more bug fixes, great to have so many people audit the code, thanks for participating everyone! #perl" --kraih http://twitter.com/kraih/status/60727323112112128
15:31 cosmincx joined #mojo
15:35 crab the reason i started looking at this code in the first place is because i have to give a filename to the spreadsheet::read module, otherwise certain kinds of spreadsheets can't be parsed (because some parsers can't parse from a stream)
15:36 perlrocks Twitter: "Bugtraq: [SECURITY] [DSA 2221-1] Mojolicious security update http://dlvr.it/P80n4" --pikipiki_net http://twitter.com/pikipiki_​net/status/60728494778368000
15:52 perlrocks Twitter: "Bugtraq: [SECURITY] [DSA 2221-1] Mojolicious security update http://goo.gl/fb/CDj1O" --BackTrack5 http://twitter.com/BackTrac​k5/status/60732603262713856
15:56 cosmincx left #mojo
15:56 ysyrota left #mojo
15:57 alnewkirk-away joined #mojo
15:59 sri hmm, more Coro problems
16:00 elb0w damn with all these updates
16:00 elb0w my god
16:00 elb0w !
16:00 elb0w :D
16:01 alnewkirk left #mojo
16:01 alnewkirk-away is now known as alnewkirk
16:04 perlrocks Twitter: "#fdmail [SECURITY] [DSA 2221-1] Mojolicious security update http://dlvr.it/P887k #infosec" --FDmail http://twitter.com/FDmail/status/60735525681770496
16:07 * elb0w ssh's into 15 servers just to type cpanm Mojolicious
16:11 sri i don't think 1.21 has hit cpan yet ;p
16:11 sri (the mirrors at least not)
16:11 kaare_ left #mojo
16:16 baton8 left #mojo
16:17 elb0w how do I check version again?
16:17 perlrocks Twitter: "BUGTRAQ: [SECURITY] [DSA 2221-1] Mojolicious security update http://bit.ly/h5pISG" --SecMailLists http://twitter.com/SecMailLi​sts/status/60738845943148544
16:17 perlrocks Twitter: "[SeclistsBugTraq] [SECURITY] [DSA 2221-1] Mojolicious security update http://bit.ly/h5pISG" --neksted http://twitter.com/neksted​/status/60738848023519232
16:17 sri mojo version
16:17 elb0w CPAN: Module::CoreList loaded ok (v2.18)
16:17 elb0w Mojolicious is up to date (1.21).
16:28 perlrocks Twitter: "I just sent perl-Mojolicious in Mandriva repositories. This package was missing too." (fr) --Kharec http://twitter.com/Kharec/status/60741580004392960
16:30 alnewkirk-away joined #mojo
16:33 ajgb left #mojo
16:34 alnewkirk left #mojo
16:34 alnewkirk-away is now known as alnewkirk
16:35 perlrocks Twitter: "perl-1.210.0-1mdv2011.0 Mojolicious-importé and uploaded to contrib / release, cooker. Mandriva # \ o /" (fr) --Kharec http://twitter.com/Kharec/status/60743299836809218
16:42 bessarabov left #mojo
16:42 baton8 joined #mojo
16:47 yell0_ joined #mojo
16:47 Drossel left #mojo
16:47 Kulag joined #mojo
16:49 TheCritic left #mojo
16:49 Akron joined #mojo
16:57 perlrocks Twitter: "perl-Mojolicious-1.210.0-1.mga1 importé and uploaded to core / release, cauldron. Mageia # \ o /" (fr) --Kharec http://twitter.com/Kharec/status/60749008695607297
16:58 ispy_ left #mojo
16:58 crab cauldron!
17:01 PerlNinja cauldron?
17:02 crab "cooker" translated to cauldron.
17:02 crab oh, no. it seems they're actually separate branches.
17:02 crab but still. cauldron. that's amusing.
17:13 Sugar|3 left #mojo
17:15 spleenjack left #mojo
17:18 sri interesting
17:18 sri one Coro problem sovled in mojolicious, one to go
17:18 sri interesting one
17:18 purl i think interesting one is PPI, it uses a inside-out-style weakened %PARENT hash to do the upwards tree refs
17:20 sri the dispatch stack was localized while another request came in
17:20 crab purl, no, interesting one is <reply>
17:20 purl okay, crab.
17:20 sri new requests got an empty dispatch stack until the first one was finished
17:20 sri so only one request worked properly at a time
17:21 sri everything else got 404
17:21 crab it's web 3.0 rate limiting!
17:22 sri cool thing is we don't even need that localization
17:45 fhelmber_ left #mojo
17:58 preflex left #mojo
18:00 Foxcool left #mojo
18:02 ispy_ joined #mojo
18:11 janus mojo <3
18:12 janus using it basically on daily basis now to do quick and oneshot stuff
18:13 janus an awesome experience!
18:15 janus really... otherwise i had to use tons of modules
18:15 stephanj ye
18:15 janus always had to glue things together again and again and again...
18:15 janus incompatibilities... all that crap
18:15 janus gone! :)
18:15 stephanj catalyst... i need to quickly test something, some hours just for installing all deps
18:15 stephanj yap
18:16 janus seriously... long dep chains suck big time
18:17 stephanj ye
18:17 stephanj i can understand it code reuseabillity whise... but often its just annoying
18:17 janus without even mentioning the maintenance hell :)
18:17 stephanj ye
18:18 stephanj Mod X version W causes this incompat with mod Y on version Z, and often its that deep into the whole mess that you spend hours debugging
18:19 crab when i first started using mojo, a lot of people told me i should be using plack instead
18:19 janus hehe
18:19 stephanj i still know some people who tell me why using mojo, some limited framework, instead of catalyst
18:19 stephanj who ask me why i use*
18:19 crab and i worried about that for a while... but recently i tried to install Task::Plack for something, and it has become a huge wobbling monster of inextricable dependencies and mysterious test failures. i was horrified.
18:19 stephanj ye
18:20 Foxcool joined #mojo
18:20 perlrocks Twitter: "MojoX::Ping 0.4 is on #cpan https://github.com/und3f/mojox-ping #mojolicious #perl" --und3f http://twitter.com/und3f/status/60769785058820096
18:20 stephanj and under that aspect i can understand PHP programmers they just deploy tons of ugly script files, and have their framework...
18:20 stephanj on perl you need to install modules, often even XS to special places to work or hell breaks lose
18:24 stephanj is there better way to have a timer constantly run each x seconds than readding it after each run?
18:25 janus oh please, something like libevents EV_PERSIST
18:27 fmerges left #mojo
18:27 janus would even simplify code in case of anonymous subs
18:28 stephanj yes, i have a ping which should be send to socket clients each few seconds to keep the connection alive
18:31 Akron left #mojo
18:31 janus looking into ioloop.t... :)
18:32 stephanj on_tick is a candidate, but there i dont know if really some seconds passed, i dont want to end having my server ping the client 20 times per second just because something manipulated with the tick timer
18:32 GitHub61 joined #mojo
18:32 GitHub61 mojo: master Sebastian Riedel * f54ac2c (3 files in 3 dirs): fixed small stack localization bug - http://bit.ly/fjxyDi
18:32 GitHub61 left #mojo
18:35 sri stephanj: i don't like recurring timers, they tend to get forgotten
18:35 stephanj k
18:35 sri but you can of course make a small plugin that create one based on the current timers
18:36 janus why don't hand the rope? they can hang themselves after all anyways :)
18:36 stephanj what would your solution be in this case? or is there maybe some way to hook into connection inactivity(pre drop f.e.)
18:36 sri just use the current timer
18:36 stephanj or is there a way to access the amount of seconds since the last communication occured?
18:37 stephanj that would be better way i think ... to only send ping if actually no communication took place
18:38 nuclon left #mojo
18:39 janus $loop->timer(1 => sub { warn "repeat" } => 0 ); # optional counter, zero meaning infinite?
18:39 janus that would be a rope you can use for many things ;)
18:39 stephanj ye
18:39 sri you can build that around the current timers
18:40 sri just register a new one after each run
18:40 janus sure, but why don't make it easier?
18:41 sri we've had them a long time ago... caused a lot of trouble :/
18:42 crab re-adding timers is hardly any trouble, and accommodates whatever oddball pattern you want
18:43 crab and it's the way signals work too, so it's not even unfamiliar
18:43 sri give me a few good use cases where it would be sleek
18:44 janus well, it is repeated code every time for a reoccuring pattern... hence the question for it :)
18:44 sri i mean like example code
18:44 sri before/after stuff
18:44 sri that's the best way to convince me
18:44 janus mom
18:45 alnewkirk left #mojo
18:45 crab my mom certainly doesn't need to have recurring timer support
18:46 sri i'm especially interested in if you shoot yourself in the foot at the first try
18:57 janus http://pastebin.com/jZTUsdVC
18:58 janus and my feet don't hurt so far
18:58 sri or $cb->()
18:58 sri oh right, you just shot your foot off btw
18:59 janus doesn't hurt though
18:59 sri since your recurring example is incomplete
18:59 janus because it never stops?
19:00 sri exactly
19:00 Foxcool left #mojo
19:01 janus ctrl-c doesn't care, just like myself ;)
19:01 sri that's the main part is was actually interested in
19:01 sri *-s
19:02 janus well, if that would have been started from within a running process, yes... nobody will notice after the timer was installed
19:02 ispy__ joined #mojo
19:02 janus at least not consciously i guess
19:02 sri also => 0 makes not much sense
19:03 sri when would you ever let the timer run a few times and have it stop automatically?
19:03 janus it wouldn't stop
19:03 sri ->timer(1 => sub {...} => 5)
19:04 janus ah, that
19:04 purl ah, that is pretty obscure
19:04 janus mhm
19:04 janus must keep state for that
19:04 sri my $id = Mojo::IOLoop->recurring(1 => sub {...}); Mojo::IOLoop->drop($id);
19:05 sri that's how it would look realistically
19:05 ispy_ left #mojo
19:05 crab ->timer(1 => sub {...} => ∞)
19:05 sri :)
19:06 janus :)
19:08 sri i actually wouldn't mind it if it replaced on_tick
19:08 sri since Mojo::IOLoop->recurring(0 => sub {...}); would be equivalent
19:10 sri that's a scenario i could live with
19:14 sri in case you really want it ;)
19:15 janus looking at the code and pod thinking about implications
19:15 PerlNinja left #mojo
19:16 crab btw, did anyone see gofix? it's a tool that rewrites go source code to keep up with backwards-incompatible source code changes.
19:16 janus *shrugs*
19:17 sri patch would have to deprecate on_tick (make it use recurring internally) and add recurring with pod and tests
19:17 sri crab: never heard of it
19:17 crab go, or gofix? (the latter is very recent)
19:17 sri gofix
19:18 sri i've played with go
19:18 janus yup, checking exactly that... so far i like it and try to come up with more applications for it
19:18 sri nice language
19:19 sri what sucks a bit is the google smell
19:22 crab sri: out of curiosity, did you have in mind unifying timers and tick handlers in this patch?
19:22 sri yes
19:22 crab *nod*
19:22 sri that's what i said above
19:22 sri on_tick would be deprecated
19:23 crab it wasn't clear if the implementation of recurring would be based on a timer or the current tick handlers
19:23 crab maybe because it's 1AM
19:24 crab the code seems straightforward. i can see clearly how to write such a patch.
19:25 crab not that i'm going to, but it pleases me when i can see how to change something.
19:26 sri right, merging it right into the current timers makes sense
19:27 sri don't think i'll write the patch either, but maybe janus will
19:27 janus it pleases me to change stuff... so, maybe
19:28 janus needs to survive tests at least
19:29 crab needs new tests.
19:31 janus yes
19:41 PerlNinja joined #mojo
19:45 PerlNinja I. hate. leaky, office, roofs.
19:47 alnewkirk joined #mojo
19:50 perlrocks Twitter: "Zhep ebrilo # Mojolicious lyalipuki @ perlninja likuka chubakabra!" (ru) --vtivti http://twitter.com/vtivti/status/60792436695379968
19:50 PerlNinja no idea what that says
19:50 sri oO
19:51 sri PerlNinja = chupacabra?
19:51 PerlNinja I guess
19:51 PerlNinja I'd love to know what it really says :D
19:53 sri http://nyan.cat/ # omg
19:54 perlrocks Twitter: "@ Vtivti Did not think you're talking about # mojolicious have much grief you're there. Fine if you have lult in a language you do not understand?" (nl) --perlninja http://twitter.com/perlninj​a/status/60793443844243456
19:54 PerlNinja oh ... holy jesus
19:54 PerlNinja i thought i'd see it all after zombo.com
19:59 PerlNinja also: the translation of my tweet is funny
19:59 sri not a bad translation i guess
19:59 PerlNinja the proper one would be: "didn't think you were talking about #mojolicious, you sad schmuck. Funny, isn't it, when people talk smack about you in a language you don't understand"
20:00 sri i like the google one more ;p
20:00 PerlNinja me too
20:00 PerlNinja :D
20:00 PerlNinja one of these days i'mma build a website for that.. funny google translations
20:00 PerlNinja or something
20:00 purl something is rotten in the state of Denmark
20:01 crab no, purl, something is <reply>
20:01 purl okay, crab.
20:02 PerlNinja purl: it's the fish
20:02 purl PerlNinja: what?
20:02 sri http://damnyouautocorrect.com # could be a bit like this
20:02 PerlNinja sri: yeah
20:02 PerlNinja I mean, google translate is awesome
20:03 PerlNinja but it's got issues with colloquialisms .. or however you spell that
20:03 PerlNinja translating from indonesian to english for example is ... interesting
20:03 PerlNinja dutch to english, more interesting... indonesian to dutch is hilarious
20:10 justin left #mojo
20:15 janus first step done, renamed on_tick to recurring and merged ticks into timers
20:20 sri let me know if you want some feedback
20:21 crab and if he does, you will squeal loudly?
20:21 * sri nods
20:23 sri hmm
20:24 sri on_idle looks a bit lonely now
20:24 janus heh
20:24 sri maybe it should become Mojo::IOLoop->idle(...)
20:25 sri oh wait
20:25 sri problem
20:26 sri recurring timers screw up idle
20:26 janus not in my test cases
20:26 sri they can't count as events that prevent idle
20:26 janus had to tweak _timer() though
20:26 janus wait
20:26 sri ok, maybe your implementation is smart enough
20:27 janus setting started=0 and not counting those
20:31 janus http://pastebin.com/wSSVqTjD
20:32 janus ok, the pod tweaks aren't complete
20:32 Akron joined #mojo
20:33 janus well, seems now i have to do more about the whole thing anyways ;)
20:34 sri not as complicated as i thought it would look
20:34 sri recurring(1 => sub {...}) working yet?
20:35 janus not checked yet ;)
20:35 sri doubt it then
20:35 sri since you need to track time
20:37 janus it does
20:37 janus at least the first and second simple check as oneliner
20:38 janus i mean, the event is registered as timer
20:38 tabbi joined #mojo
20:38 janus and it keeps firing
20:38 janus #
20:38 janus -      $self->_drop_immediately($id);
20:38 janus #
20:38 janus +      $self->_drop_immediately($id) if $t->{started};
20:38 janus gah
20:38 janus sorry
20:39 janus should copy from teh intarwebz
20:39 janus NOT
20:40 * sri pushes janus into the alligator pit
20:40 janus hrhr
20:41 sri yko is on vacation though, so it's a bit pointless :/
20:48 PerlNinja he left the pit here before he left though
20:50 sri if only we had a chupakabra for the meantime
20:51 josh left #mojo
20:51 PerlNinja >.>
20:51 PerlNinja <.<
20:51 PerlNinja *teeth*
20:55 Akron left #mojo
21:10 josh joined #mojo
21:13 sri \o/
21:21 sigue joined #mojo
21:54 PerlNinja In case anyone's interested (who knows), just cobbled up Net::Disqus and stuck it on CPAN. Should arrive there at some point :)
21:55 josh left #mojo
21:57 sri didn't facebook comments kill disqus?
21:57 sri at least that's what i heard from the hipsters
21:57 PerlNinja no idea, but I use disqus a lot
21:57 PerlNinja facebook comments are a bloody big bitch to implement right
21:58 PerlNinja so... itch ... = me going apeshit on dirty autoload tricks = end result: it works
21:58 PerlNinja :D
21:58 sri i hate facebook comments
21:59 PerlNinja yup, disqus offers a lot more in the way of flexibility from the admin end
21:59 PerlNinja plus it's dedicated to basically doing one thing and they do it pretty well
22:00 crab but is it enterprise cloud scale and web 2.1?
22:00 sri hard to imagine that for many people facebook is the whole internet
22:02 PerlNinja meh I like disqus because they have an API and basically let you export, import, and do whatever with your comments
22:03 PerlNinja so moving away from them = easycakes
22:03 PerlNinja try that with FB
22:03 PerlNinja disqus only had php/python libs so i figured fuggit, i need to do something non-work related for a bit
22:05 sri i'm starting to get why google is so afraid of facebook
22:06 PerlNinja FB is like...
22:06 PerlNinja a web 2.0 AOL
22:07 sri still not sure if they will implode at some point or take over the web
22:07 DaTa me too!
22:07 PerlNinja </aol>
22:08 PerlNinja sri: mmm, implosion
22:08 PerlNinja i hope
22:08 PerlNinja I've got an FB profile but I've pretty much blocked half the internet so I stop getting stupid invites to even stupider apps
22:09 sri haha, i so hate those
22:10 sri then again i found people on facebook i've not seen for 20 years
22:10 crab if i haven't seen people for 20 years, i'm pretty much happy to continue to not see them
22:11 crab wonder if i'll feel differently 20 years later
22:12 PerlNinja I think the only thing FB did for me was put me in touch with some former co-workers who I do want to keep in touch with, and some local musicians looking for bass players
22:12 PerlNinja other than that, bwleah
22:15 PerlNinja hm I should really add something to it so it can use Mojo::UserAgent instead of LWP::UserAgent and be all non-blocking-play-nice-with-Mojolicious :D
22:16 sri that reminds me that i still have to track down the second Coro problem :/
22:17 PerlNinja this is going to sound *really* stupid... but
22:17 PerlNinja a) what are coroutines, and b) why are they awesomesauce?
22:18 sri you know the perl callstack?
22:18 PerlNinja no, I try to avoid perl guts :)
22:18 PerlNinja familiar with call frames and such in a general sense
22:18 sri ok, but you know that if it gets too big you have a deep recursion error
22:19 PerlNinja yep, had those a few times
22:19 sri well, coroutines allow you to split the callstack and have multiple
22:19 sri and then jump between them
22:19 PerlNinja right so.. equivalent to umm
22:19 PerlNinja having a bucket of perl interpreters inside your perl interpreter
22:19 PerlNinja sorta
22:19 sri exactly
22:20 sri and each one can now run an eventloop
22:20 PerlNinja <obligatory type="lame">hai dawg! i herd u like to perl so i put perl in your perl so you can perl while you perl!</obligator>
22:20 sri when one is idle waiting for io the next one becomes active
22:20 PerlNinja right.. okay i see how that's useful
22:20 PerlNinja and I want to bet it's easier than pthreads
22:20 PerlNinja that's a nightmare i don't ever want to deal with again
22:20 sri and that allows us to use non-blocking io and make it look blocking
22:21 PerlNinja right, because it "blocks" inside that one coro and the other(s) keep running
22:21 sri no os threads involved, just perl interpreters
22:21 PerlNinja schweet
22:21 PerlNinja cpanm Coro ; perldoc Coro
22:22 PerlNinja :D
22:22 sri http://pastie.org/1817153 # an example
22:22 sri the request inside the template is actually using non-blocking io
22:23 crab it's the same as if you had a $ua->get with a callback that rendered a template, but it looks nicer, you don't have to think about the async-ness of it
22:24 sri feel free to debug that example yourself
22:24 PerlNinja ooohohoho
22:24 PerlNinja that just solved a problem on $work_related code
22:24 crab well, assuming that you realy want to do such things in your templates
22:24 sri it breaks in benchmarks
22:24 sri i sure wouldn't mind and outside opinion
22:24 PerlNinja will have to bolt it on and see what happens
22:24 crab i'd be worried about mysterious bugs when it comes to coro though
22:25 sri my guess atm is that i'm stupid and simply have too many coroutines up at a time or so
22:25 PerlNinja gotta read up a bit first, i'll see if i can bolt it in
22:25 sri with latest github master and small number of requests it works quite stable
22:25 PerlNinja it'll be part of a JS interpreter's runtime environment
22:26 PerlNinja just to make it interesting :P
22:26 crab nodejolicious
22:27 sri nonono
22:27 PerlNinja yeah sort of
22:27 sri or wait
22:27 sri javascript is the new perl i heard recently
22:27 PerlNinja the core of the thing is mojolicious and perl, and initially extensions for the app were perl too but got some comments about "perl coders are hard to find"
22:28 PerlNinja and "can't you use javascript" ... since it's coming from the guy that's giving us money, figured I'd keep him happy
22:28 sri well, perl is the number one language for programming jobs or so
22:28 PerlNinja yeah, if you're a technically inclined person :)
22:29 sri that's why it's so hard to get perl hackers
22:29 PerlNinja this guy is 65, retired, richer than God, and likes what we're doing, and has a few of his companies running beta right now - and the #1 comment was: extensions are a bitch, can they be easier?
22:29 PerlNinja so now they are
22:30 PerlNinja JSP is actually quite nice, only thing I found out the hard way is that creating new  contexts on the same runtime makes it go poopy after a while
22:30 sri i think all javascript interpreters have that kind of problem
22:31 PerlNinja yeah, creating new runtime is expensive in a way though
22:31 PerlNinja so i have one runtime that creates a new context on a request and hooked it to after_dispatch to forcibly terminate it
22:31 PerlNinja mostly because this JS thing is a pretty big franken-bolt-on
22:33 sri joyents old javascript thingy (smart platform or so) used mojolicious and the JavaScript module i think
22:33 alnewkirk-away joined #mojo
22:34 sri https://github.com/joyent/smart-platform​/blob/master/lib/RSP/Transaction/Mojo.pm
22:34 sri right, there are still traces
22:35 sri but it got abandoned for node.js
22:36 alnewkirk left #mojo
22:36 alnewkirk-away is now known as alnewkirk
22:37 PerlNinja ah, node.js
22:37 PerlNinja overhyped if you ask me but kinda cool
22:37 sri bearable with coffeescript
22:39 PerlNinja hm
22:39 PerlNinja funn
22:39 PerlNinja +y
22:40 PerlNinja that smart-platform stuff is basically right along the lines of how I did it in $work app
22:40 PerlNinja minus the moose bits
22:40 PerlNinja with some extra symbol table sauce
22:41 sri perl needs a really good binding to spidermonkey that's easy to install
22:41 PerlNinja JSP
22:41 PerlNinja just that getting spidermonkey installed is usually the bit that hurts
22:41 sri it should be bundled
22:42 PerlNinja that's gonna hurt too because you'd need to bundle for linux 32 bit, linux 64 bit, freebsd, etc. etc.
22:42 PerlNinja PAR could work there though
22:43 PerlNinja oh, yeah, running Mojolicious from a par archive also works, it seems
22:43 sri in source form, like EV does it
22:43 janus seems i got it, two ugly changes though... and still no pod adjustments yet
22:43 janus but a new test
22:43 purl a new test is on the way .. nothing specially great just to test is POST works ..
22:43 sri we don't do ugly :o
22:44 janus i do functional
22:44 * sri faints
22:44 PerlNinja sri: hmm that might work
22:46 janus on top of the previous: http://pastebin.com/jVhh4GcP
22:47 janus quite hackish... but i try not to be invasive and keep diffs small
22:47 sri janus: that test looks wrong
22:48 sri recurring every 3 seconds, and the timer stops the loop after 3 seconds too
22:48 sri it should only tick once if at all
22:49 stephanj janus:
22:49 stephanj +      $self->_drop_immediately($id) if $t->{started}
22:49 stephanj +        or $after < 0 && ++$t->{after} >= 0;
22:49 stephanj wouldnt it also kick the timer out if the timer is already started? so the after part is irrelevant?
22:50 stephanj or i might also be wrong
22:53 janus gah, damnit
22:53 stephanj mh?
22:53 purl mh is a unix commandline-based mail user agent or at http://www.ics.uci.edu/~mh/ or Men's Health magazine or a "women's magazine" for men or Getty's way of saying hm or stephan48's way of saying hm
22:53 janus at one point i though about wether its recurrences or timespan
22:57 josh joined #mojo
22:59 yell0_ left #mojo
23:02 pranq joined #mojo
23:02 pranq left #mojo
23:05 sri time of course ;p
23:06 sri recurrences is rather useless
23:08 janus well, its a countdown in terms of loop instance timeout :)
23:09 tabbi left #mojo
23:53 daviddelikat joined #mojo
23:56 daviddelikat1 left #mojo

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