Camelia, the Perl 6 bug

IRC log for #mojo, 2012-02-21

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

All times shown according to UTC.

Time Nick Message
00:22 d4rkie joined #mojo
00:26 * tempire gives chansen a websocket
00:29 * chansen hugs tempire and sends a message though the socket "xE2x98xBA", it's UTF-8 encoded ;)
00:59 scott joined #mojo
01:09 bird joined #mojo
01:10 yko joined #mojo
01:34 sri FREE HUGS!
01:34 purl free hugs is http://www.zappinternet.com/video/wex​JmuYnaL/Abrazos-gratis-en-Second-Life (nsfw)
01:39 tty234 joined #mojo
01:41 lukep joined #mojo
01:44 d4rkie joined #mojo
01:44 tempire http://theoatmeal.com/comics/free_hugs
01:56 sri \o/
03:11 hshong joined #mojo
04:13 lukep joined #mojo
04:20 alnewkirk cool t-shirt - http://goo.gl/Z21Pl
04:28 d4rkie joined #mojo
04:35 D4RK-PH0ENiX joined #mojo
04:58 d4rkie joined #mojo
05:04 arpadszasz joined #mojo
05:45 preflex_ joined #mojo
05:55 jwang joined #mojo
06:02 Foxcool joined #mojo
06:03 xoma joined #mojo
06:38 marcus moin
06:39 crab hi marcus.
06:39 purl hi marcus. are you just playing with dotcloud, or did you sign up for paid hosting?
06:39 crab purl, forget hi marcus.
06:39 purl crab, I didn't have anything matching hi marcus
06:39 marcus crab: wassup homie? :)
06:39 crab christ.
06:39 marcus is he?
06:39 marcus zombie jesus!
06:39 purl i heard zombie jesus was at http://zeejay.keenspace.com/ (or totally dead, for real this time)
06:42 marcus ( http://www.youtube.com/watch?featur​e=player_embedded&v=_SFdUJLebzU )
06:43 marcus tempire: I also want per channel notifications
06:43 marcus tempire: let's make a fork? :)
06:43 tempire what's it written in?
06:44 tempire oh, duh.  obj-c
06:44 marcus https://github.com/psychs/limechat
06:44 marcus mmm
06:46 tempire maybe ruby?
06:47 tempire shame camelbones will probably fade, since its maintainer passed away
06:48 * marcus forked it
06:49 marcus woho! zsh completion finally autocompletes git aliases, instead of trying to autocorrect them \o/
06:50 marcus tempire: didn't know he died :-/
06:50 tempire yeah.  about a year ago now
06:50 tempire or something like that.
06:50 marcus wish apple would maintain a cocoa perl bridge, like they do for ruby.
06:50 tempire I didn't know apple made the bridge.
06:51 marcus hmm, maybe they don't. but it ships with os x. https://developer.apple.com/library/mac​/#documentation/Cocoa/Conceptual/RubyPy​thonCocoa/Articles/UsingScriptingBridge.html
06:52 marcus no, those are apple's, pretty sure of it.
06:52 marcus for python and ruby.
06:52 tempire !!
06:52 tempire OMG
06:52 tempire tempi.re is available.
06:52 marcus phe.ar
06:52 tempire marcus I need your help.  I can't register it 'cause I'm in the US.
06:53 marcus tempire: the domain register I usually use doesn't seem to support .re
06:53 marcus where can I register it?
06:53 tempire gandi.net
06:53 purl gandi.net are taking their slogan really serious
07:00 dpetrov_ joined #mojo
07:02 Kulag joined #mojo
07:02 marcus tempire: Ok. done
07:02 tempire \o/
07:02 marcus provided paypal payment comes through
07:02 marcus Your order has been placed
07:03 tempire :o
07:03 tempire total cost?
07:03 purl total cost is $125/mo
07:03 marcus 15$
07:04 crab marcus: i need your help too!
07:04 xxtjaxx joined #mojo
07:04 crab cr.ab is available, but i can't establish a new country with tld "ab", so you'll have to do it.
07:04 marcus crab: I'll get right on it ;)
07:04 * marcus incites a revolution, to start Aborginalia
07:09 marcus crab: crab.li is free
07:09 marcus and even crab.ly
07:09 crab will i have to change my nick to crabli if i register it?
07:09 tempire crab.by is available
07:09 marcus nice!
07:10 marcus crab: I believe that is optional
07:10 Alias left #mojo
07:10 marcus wow, tempi.re whois already works
07:10 marcus that was fast
07:10 marcus tempire: you're now owned by nordaaker! :D
07:11 marcus *and* you're registered in france.
07:11 marcus did you really think this through?
07:11 tempire crap.  I'm screwed every which way.
07:12 marcus guess it was just too temping.
07:13 tempire now the question is whether you have any other domains under that gandi account.
07:13 marcus nope, registered it for yu
07:13 marcus you
07:14 tempire awesome.
07:14 AmeliePoulain joined #mojo
07:15 marcus gandi looks nice tho. Maybe I should migrate our domains there.
07:17 tempire I need a host as my godaddy domains come due.  But gandi is a little on the expensive side.
07:18 tempire hmm. they don't provide dns.
07:18 spleenjack joined #mojo
07:18 marcus hmm, that kinda sucks
07:18 tempire oh, maybe they do.
07:19 marcus it would be very weird for a domain host to not provide dns
07:19 tempire No, you gotta have a primary.
07:19 marcus very weird
07:19 marcus don't want that
07:19 marcus and I'm certainly not switching to godaddy
07:19 tempire I think I'm going with namecheap
07:20 tempire they responded quickly and appropriately to the sopa thing.
07:20 tempire nice enough site.
07:20 tempire cheap.
07:20 marcus yeah, I bought a ssl cert there
07:20 marcus worked fine
07:20 * marcus & # squash with henchmen
07:20 tempire gandi seems to be taking me through an order process.
07:20 marcus to get dns?
07:21 tempire no, just for tempi.re
07:21 tempire did you already pay the amount?
07:21 marcus yes
07:21 marcus I even got a receipt from paypal
07:21 marcus https://www.gandi.net/domain/interface
07:21 marcus looks like they provide dns
07:22 marcus https://www.gandi.net/domain/zones#nav even
07:22 tempire now it's clear.  the interface just changed.
07:22 marcus :o
07:22 tempire some sort of latency in the order process? who knows.
07:23 Kulag joined #mojo
07:44 tempire marcus: thanks so much.  you're awesome.
07:44 xoma joined #mojo
07:52 batman joined #mojo
08:22 Kulag joined #mojo
08:37 tempire nice: http://www.youtube.com/watch?featur​e=player_embedded&v=Z07MnBf9QNY
09:03 berov joined #mojo
09:11 hshong joined #mojo
09:19 cosmincx joined #mojo
09:43 batman i'm normally doing $self->app->ua->get(..., sub {}); but this time i want to attach a "start" event, but i only want it for one request and not every other after this one
09:43 batman how do i do that? $ua = Mojo::UserAgent->new or is there some sort of clone() method i haven't seen?
09:44 batman at least... i'm gussing that $self->app->ua->on(start => sub {}); will be shared between everyone else...
09:44 ki0 joined #mojo
09:58 daxim joined #mojo
10:00 dpetrov_ joined #mojo
10:20 GitHub35 joined #mojo
10:20 GitHub35 [mojo] marcusramberg created fix_cookie_jar (+1 new commit): http://git.io/RtQ0og
10:20 GitHub35 [mojo/fix_cookie_jar] Add test for ( in cookie path - Marcus Ramberg
10:20 GitHub35 left #mojo
10:23 GitHub99 joined #mojo
10:23 GitHub99 [mojo] marcusramberg pushed 1 new commit to fix_cookie_jar: http://git.io/SD592w
10:23 GitHub99 [mojo/fix_cookie_jar] Fix for silly cookie jar paths. closes #291. - Marcus Ramberg
10:23 GitHub99 left #mojo
10:31 dpetrov_ https://github.com/seedifferently/the-​great-web-framework-shootout/tree/dev
10:31 dpetrov_ would be nice if someone add Mojolicious as well
10:32 marcus dpetrov_: no, please don't
10:32 marcus dpetrov_: it's a horrible horrible benchmark.
10:32 dpetrov_ :)
10:32 dpetrov_ it is
10:33 dpetrov_ but I thought it would be nice since other perl frameworks are added
10:33 marcus don't know why doy bothered.
10:33 marcus dpetrov_: sri won't be thanking you if you send a pull request :)
10:34 dpetrov_ ;)
10:34 * dpetrov_ hides
10:36 tholen42 joined #mojo
10:37 xantus[] joined #mojo
11:10 poundyz joined #mojo
11:10 poundyz hi all
11:11 poundyz does any1 know how to determine what kinda request from user's end? e.g., html/json/xml ? any command to reference the 'format' tag in "get /blah => [format  => 'html','xml' ] => sub { .... } "
11:12 briang joined #mojo
11:13 marcus poundyz: /foo/bar.xml
11:14 poundyz marcus: is there any $self reference for that ?
11:14 poundyz is it okay to squeeze 2 function into 1 sub ?
11:14 marcus poundyz: http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Rendering#Content_negotiation
11:14 poundyz e.g., if .html then serve template, if json then read data and serve json
11:15 marcus poundyz: yes
11:15 marcus poundyz: look at the link I sent, it's an example of that using respond_to
11:15 marcus poundyz: also notice the comments on the top of the code example.
11:15 poundyz thank
11:16 batman is there a way to force the perl internals to thinking a number is a string? i want to get Mojo::JSON to print "0.000001" and not 1e-05
11:20 marcus batman: perl -MMojo::JSON -lE'$j=Mojo::JSON->new();say $j->encode([1,"".2])'
11:21 batman bah. i tried that, but i was loading the installed version of the lib instead of the development version :S
11:21 batman *rookie mistake* :)
11:22 marcus ;)
11:34 poundyz marcus: yea I've read the response_to ... is that possible to merge it in a sub .. e.g, if request html just serves (render html), if json then query db and put the result to json ?
11:43 batman in Test::Mojo: can i test if the server has done $client->finish ?
11:44 batman i see $t->finish_ok; but i thought that was to see if the client could finish...?
11:46 judofyr joined #mojo
11:46 judofyr MOJO MOJO MOJO MOJO
11:47 marcus mojo jojo
11:47 purl mojo jojo is a monkey in a turban.
11:47 judofyr jomo ojom?
11:48 batman also... how do i test timers?
11:48 * batman has so many questions :)
11:48 marcus Jumanji
11:48 marcus batman: look at the mojo test suite?
11:49 marcus batman: timers are tested there :p
11:49 marcus 'see if the client could finish' sounds very kinky.
11:49 Netfeed happy ending?
11:49 purl Handjobs for everyone!
11:50 batman :P
11:51 batman ok. so testing a timer actually involve the wait? :)
11:51 judofyr batman: pretty much
11:51 batman ok
11:52 judofyr you *might* be able to tweak it with MockTime or something
11:52 batman i see
11:52 judofyr but I'm not sure how the IOLoop likes that
11:52 marcus I would think not so much
11:54 batman but what about websocket '/foo' => sub { my $client = shift; $client->on(message => sub { $client->finish }); }; # how do i test if finish() was called?
11:58 ki0_ joined #mojo
12:00 paul so i had stuck a database connection in startup, but it had no negative effect, i guess postgres reconnects automatically
12:02 judofyr batman: use the websocket client and subscribe to the finish-event?
12:02 batman as in actually starting the server + client judofyr?
12:08 xoma joined #mojo
12:11 judofyr batman: yeah
12:12 batman not impossible, but i don't fancy the solution...
12:23 marcus batman: weak
12:29 * sri has most of his domains at gandi too
12:30 marcus good morning, sri.
12:31 sri good morning, marcus.
12:31 sri oh, you already fixed that bug
12:31 sri in a branch even!
12:31 sri \o/
12:31 marcus and I sent a pull request :)
12:32 marcus I like branches
12:32 sri i see a small style bug
12:32 batman marcus: weak?
12:32 purl Ah, I can whomp purl's ass!
12:32 marcus sri: forgot to perltidy
12:32 sri two newlines before new tests
12:32 marcus guess perltidy wouldn't have fixed that.
12:32 marcus maybe I should add something to Changes as well
12:33 sri that's not so important
12:34 sri i think Changes is pumpking responsibility
12:34 GitHub169 joined #mojo
12:34 GitHub169 [mojo] marcusramberg pushed 1 new commit to fix_cookie_jar: http://git.io/Z8AbPA
12:34 GitHub169 [mojo/fix_cookie_jar] Fix extra space, add Changes line - Marcus Ramberg
12:34 GitHub169 left #mojo
12:34 marcus oki
12:34 sri wait
12:34 marcus feel free to change it :)
12:34 sri your branch is oooold
12:35 sri there were already 2.52 Changes entries
12:35 marcus ugh
12:35 marcus fixing
12:35 judofyr old, and old. it was only 5 commits behind…
12:36 sri that's like... internet months
12:36 GitHub162 joined #mojo
12:36 GitHub162 [mojo] marcusramberg pushed 1 new commit to fix_cookie_jar: http://git.io/yKB09w
12:36 GitHub162 [mojo/fix_cookie_jar] Merged in master - Marcus Ramberg
12:36 GitHub162 left #mojo
12:36 judofyr marcus: also; wrong comment: https://github.com/kraih/mojo/comp​are/master...fix_cookie_jar#L2R311
12:36 sri ohoh
12:37 sri i don't think that can be merged anymore
12:37 judofyr it can't be fast-forwarded, no
12:37 judofyr you can always rebase it though
12:40 sri Changes entry is also wrong
12:40 purl okay, sri.
12:40 sri ops
12:40 sri needs a (marcus)
12:40 sri purl: forget changes entry
12:40 purl sri: I forgot changes entry
12:41 sri otherwise it looks ok to me now
12:42 judofyr sri: fun fact: marcus didn't knew about \Q before I told him :D
12:42 sri judofyr++
12:53 sri marcus: there's no pull request btw
12:56 sri hmm
12:56 sri somehow i just screwed up merging
12:57 judofyr git is hard
12:57 GitHub32 joined #mojo
12:57 GitHub32 [mojo] marcusramberg pushed 1 new commit to fix_cookie_jar: http://git.io/VfPx5Q
12:57 GitHub32 [mojo/fix_cookie_jar] space, attribution, commen fix - Marcus Ramberg
12:57 GitHub32 left #mojo
12:58 sri too late, i started merging
12:58 sri and it went wrong here
12:58 sri my master is fried
12:58 marcus huh
12:58 marcus it can be automatically merged
12:58 marcus https://github.com/kraih/mojo/pull/292
12:59 sri not anymore for me
12:59 marcus on github.
12:59 sri umm, what do i do with my repo then?
12:59 marcus do you have other local changes?
12:59 sri a few branches
12:59 vervain Master is only a pointer / head.  Just delete it and recreate if from your remote version.
13:00 sri argh
13:00 marcus VCS \o/
13:00 judofyr sri: git fetch origin; git checkout master; git reset --hard origin/master
13:00 vervain Creating master automatically was one of the 'mistakes' that git made... along with calling heads 'branches' ;-)
13:01 vervain judofyr: Yep... better way to put it.
13:01 GitHub139 joined #mojo
13:01 GitHub139 [mojo] kraih pushed 1 new commit to master: http://git.io/c-221Q
13:01 GitHub139 [mojo/master] Merge pull request #292 from kraih/fix_cookie_jar - Sebastian Riedel
13:01 GitHub139 left #mojo
13:01 judofyr vervain: :-)
13:03 noganex joined #mojo
13:05 GitHub182 joined #mojo
13:05 GitHub182 [mojo] kraih pushed 1 new commit to master: http://git.io/MEY5bQ
13:05 GitHub182 [mojo/master] slightly better tests for cookie jar - Sebastian Riedel
13:05 GitHub182 left #mojo
13:05 sri judofyr++ # rescued my branches
13:06 judofyr yay, I've gotten +2 from sri today!
13:06 vervain Ah man... I don't even get an assist. :-)
13:06 marcus judofyr: karma whore
13:06 purl cash up front, please
13:06 marcus vervain++
13:06 marcus :)
13:06 vervain \o/
13:07 marcus purl: karma for vervain?
13:07 purl marcus: wish i knew
13:07 marcus purl: karma for vervain
13:07 purl vervain has karma of 3
13:07 marcus purl: karma for judofyr
13:07 purl judofyr has karma of 20
13:07 marcus oooh
13:07 marcus :)
13:08 * sri still likes the branch workflow
13:08 marcus jupp
13:08 marcus zgood
13:08 marcus need to start squashing my branches and hide my mistakes better :p
13:08 marcus I think it's interesting that you can close issues from branches tho
13:08 sri :D
13:09 sri yea, i like that feature
13:09 vervain I like 'git checkout master; git merge --no-ff topic'  It keep master sane but also keeps topic history around.
13:09 marcus no follow friday?
13:09 sri my git fu is still very weak :/
13:09 marcus I like cherries
13:10 * vervain really should blog his git workflow
13:11 judofyr vervain: I should finish my "vgit" script (versionless git flow) which works just like that
13:11 marcus I should ...
13:11 sri marcus: you use punctuation in comments?
13:11 judofyr sri: I do…
13:12 judofyr although I'm not 100% sold
13:12 sri ah, i only uppercase the first character and sometimes use commas
13:12 judofyr it looks nicer when you have more than one sentence
13:15 sri http://en.wikipedia.org/wiki/C​omment_(computer_programming) # so many styles
13:17 sri correct punctuation looks weird to me :)
13:19 judofyr although on Twitter I've standardized on lowercase…
13:21 Netfeed i like how you write twitter with capital T and I but uses although with lower a :)
13:21 judofyr :)
13:21 judofyr yeah, that's my IM/Twitter/IRC-style
13:22 abra joined #mojo
13:23 vervain I like the way Facebook and Twitter are schizoid... having chose lower case for logos and upper case for legal name.
13:26 sri i guess there are 3 primary comment styles "# foo bar", "# Foo bar" and "Foo bar."
13:26 sri "# Foo bar."
13:27 vervain I use all three.
13:27 sri talking about schizoid
13:27 judofyr sri: yeah, I use the third: https://github.com/Nordaaker/parallol/blob​/master/lib/Mojolicious/Plugin/Parallol.pm
13:27 vervain Actually I probably don't use the middle one.
13:28 * sri uses the middle one only
13:28 judofyr sri: what do you do when you want to write more than one sentence?
13:28 * sri bets marcus uses the first
13:29 sri tempire and crab maybe third
13:29 sri judofyr: split them on multiple lines
13:29 Netfeed i like the first one with punctuation where needed
13:30 sri judofyr: but it rarely happens, if ever
13:30 judofyr sri: maybe you should put that in the in coding guidelines?
13:30 sri actually, i'm not sure which style is superior :)
13:31 judofyr I thought sri's decisions were always superior…
13:31 sri judofyr: once we have decided which style is the best ;p
13:31 marcus I don't write comments.
13:31 marcus :p
13:31 sri :D
13:32 judofyr sri: this is the closest thing you have now: "Comments should be funny if possible."
13:32 sri that was very wise of me
13:32 * sri nods
13:33 * sri proudly goes to get lunch
13:35 sri actually, lower case with punctuation where needed might be the best
13:35 sri it's simple and quick
13:38 sri maybe lower case for small comments and correct capitalization/punctuation for full sentences
13:38 judofyr sri: what about quotes?
13:42 sri ok, think i'll make it correct capitalization with punctuation where necessary for readability
13:42 sri so two sentences in a comment get a dot
13:43 inokenty joined #mojo
13:44 marcus sri: And uppercase?
13:44 purl uppercase is, like, a lower form of life
13:44 marcus purl: diaf
13:44 purl i think diaf is Die in a Fire
13:45 kaare joined #mojo
13:45 sri it's all so complicated :S
13:45 batman i don't get this... i thought Mojo::UserAgent->new->app($self->app); was the same as $self->app->ua ... the problem is that my unittest stops when i try to do $ua->get() internally
13:45 batman guess it's becuase of the ioloop object on the $ua ?
13:46 tailriver joined #mojo
13:47 batman ...where $ua = Mojo::UserAgent->new
13:48 jnap joined #mojo
13:48 vervain When it comes to comments sometimes they are like a quick note and can be treated casually. Other times they are more important and need to be more formal.  Then sometime they are narrative and should not only be formal but should be considered for pod.  $0.02
13:48 judofyr batman: do you use blocking or non-blockig UA-calls?
13:48 batman non-blocking
13:48 purl non-blocking is portable enough for me.
13:49 batman $self->app->ua->get($url, sub {}) # works
13:49 batman Mojo::UserAgent->new->get($url, sub {}) # hangs
13:50 batman new(ioloop => Mojo::IOLoop->singleton) # can't make this work either...
13:50 batman new(app => self->app, ioloop => Mojo::IOLoop->singleton) # this works :S
13:50 batman no. of course not :D
14:21 GitHub21 joined #mojo
14:21 GitHub21 [mojo] kraih pushed 1 new commit to master: http://git.io/WuGM5w
14:21 GitHub21 [mojo/master] describe comment style in coding guidelines - Sebastian Riedel
14:21 GitHub21 left #mojo
14:23 sri batman: ioloop => Mojo::IOLoop->singleton is a dangerous hack when you don't understand it
14:24 batman i'm just trying and failing to see if anything can make it work :/
14:25 sri that's the problem, you're not trying to understand what actually happens
14:25 sri when you mix blocking and non-blocking just hacking around till it works is very very dangerious
14:26 batman that's why i'm asking :/
14:26 sri side effects will pretty much always come back to haunt you
14:26 batman what i've figured out so far is: Mojo::UserAgent->new(app => self->app)->app_url ne $self->app->ua->app_url
14:27 sri you're obviously doing non-standard stuff, don't expect that there are many people that could talk you through it
14:36 poundyz hi there I've got a question about respond_to... it's too lengthy to type here
14:36 poundyz I've pasted it on pastebin http://pastebin.ca/2120446 ... can someone take a look and give me some hint on how to do it ?
14:38 judofyr poundyz: html => sub { … }
14:38 poundyz judofyr: do you mean if paste the long code (dbi stuffs) into json => sub { #read from db etc and finally return $self->render(json => $ref) ?
14:39 judofyr poundyz: yep
14:40 poundyz Ok, I thought there's some parameter I can reference for request type ... if that's the only way then I know what to do ... thanks :)
14:41 batman https://gist.github.com/1876884 # this is what i'm trying to do
14:42 judofyr batman: $ua->once(start => { } ) ?
14:43 batman i don't see how i can control which get() will fire the start callback...
14:43 batman hm... they should be called in sequence i guess :)
14:43 kaare_ joined #mojo
14:44 kitt_vl joined #mojo
14:45 batman but is my code really off sri?
14:46 hshong joined #mojo
14:46 batman judofyr: that actually works...
14:46 batman guess i'm pleased then
14:46 judofyr batman: I think the start event will be emitted when you call ->get
14:47 xoma joined #mojo
14:47 judofyr batman: yup
14:47 judofyr seems so
14:49 batman ok
14:50 sri batman: that's exactly what i meant when i said you're not trying to understand what's going on
14:51 sri a blocking request to you app obviously blocks
14:51 baton8 joined #mojo
14:52 batman $t->get_ok == blocking request?
14:53 sri a special case of a blocking request
14:53 batman ok. so why does it work with $self->app->ua ?
14:53 sri sorry, i really can't talk you through it, just give hints
14:53 sri if i could i would have written a guide by now
14:54 batman :)
14:54 batman but is judofyr's solution ok? using $ua->once(start ...) ?
14:54 sri nope
14:55 judofyr how so? isn't the start event emitted when ->get is called?
14:55 batman then i don't get what the solution is :(
14:55 sri it only works when you don't have redirects
14:55 sri or CONNECT requests
14:55 sri it's not a general solution
14:56 judofyr ah, true
14:57 sri the first question should be, why are you using a request against your app in the first place?
14:58 batman because i don't have a remote server to ask
14:58 batman i want to rely on "local" data and not connect to a remote socket
14:58 sri that sounds very very fragile
14:59 batman how can relying on local data is more fragile than remote+
14:59 batman ?
14:59 batman $ua->get('http://distant-domain.com', ...) seems more fragile than localhost/test-server
14:59 sri you're relying on a server running inside a user agent running inside a server running inside a useragent
15:00 batman so how do i fix this? create another test app which i start inside my test?
15:00 sri imo it's broken by design
15:02 batman so i need the remote server?
15:03 sri "need" is a strong word
15:04 sri there are many ways to make it work, but most simply require that you know exactly how the user agent works internally
15:04 batman and i don't :/
15:05 sri i think marcus and judofyr were trying to solve the same problem in a generic way
15:05 sri with a mitm proxy
15:05 judofyr http://mitmproxy.org/ is probably a better solution :)
15:05 judofyr http://mitmproxy.org/doc/serverreplay.html
15:06 judofyr our stuff is Work-In-Progress
15:09 sri batman: btw. are you sure your code hangs at that specific point?
15:09 sri because to me it looks like $ua simply goes out of scope and gets cleaned up
15:10 amoore joined #mojo
15:11 batman crap....
15:11 purl i think crap is the Comprehensive Ruby Archive Portal or contrast, alignment, repetition, and proximity or not a solution or the Conservative-Reform Alliance Party
15:11 sri (still not saying it's a good idea, but the code is not *that* wrong for what you're trying to achieve)
15:11 sri :)
15:12 sri we have a few unit tests that work the exact same way, to test some advanced features, and debugging them scares me to this day *hint hint*
15:12 batman if i was gordon ramsey, i would say "f*** me" :P
15:13 xantus[] http://i.imgur.com/2Kq6Y.jpg
15:13 judofyr batman: more like "fuck me". gordon doesn't use stars.
15:13 batman :)
15:13 batman bah. i was thinking $ua was saved away by the io loop since this was a non-blocking request
15:13 judofyr dammit. I *know* there was something I wanted to ask sri about, but I can't remember it!
15:14 sri xantus[]: you're a week late ;p
15:14 xantus[] I'm so late
15:14 judofyr story of my life
15:14 xantus[] I'm preg with your baby sri!
15:14 sri :o
15:15 sri batman: if it doesn't have an id it's not saved away
15:15 batman ok
15:16 batman works like a charm now :)
15:16 batman thanks for spotting that
15:16 sri which reminds me... i'm still not sure about connections having ids
15:17 judofyr does the id get used to anything? other than as a weak-hashref?
15:18 sri it gets used all over the place
15:18 sri not sure what you mean by weak-hashref though
15:18 judofyr that the connection-hash works as a weak-hashref
15:19 judofyr so instead of passing around connections you pass around IDs
15:19 judofyr (weak in the sense that they don't have a real reference to the connection-object)
15:19 sri ah, yes
15:19 judofyr (or filehandle or whatnot)
15:20 judofyr does Mojo use them for anything else than looking up in the connection-hash?
15:20 sri don't think so
15:21 judofyr so why do you want to change them?
15:21 sri simplify api
15:22 batman https://gist.github.com/1876884 <-- another thing... shouldn't the start callback add "?foo=42" to the request url?
15:23 batman line 29
15:23 sri no
15:23 judofyr sri: do you want them to be real objects?
15:24 sri yes
15:24 batman sri: so i need to add them as part of the argument to get() ?
15:24 batman what is start for then? changing request headers?
15:24 sri batman: no, $tx->req->url->param
15:24 batman oh
15:25 sri actually $tx->req->url->query
15:25 batman thanks
15:25 sri $tx->req->param is get only, as documented
15:26 sri judofyr: i'm actually not sure what i want :)
15:27 Netfeed is there a way to colapse the html generated by the default template system?
15:27 Netfeed collapse*
15:41 reezer joined #mojo
15:46 marty Netfeed: What do you mean by "colapse"?
15:46 arpadszasz joined #mojo
15:47 Netfeed minify, not writy all the white spaces to the client
15:49 marty Not that I know of.
15:56 Netfeed :/
15:57 sri a) after_dispatch hook, b) make your own templates
15:59 poundyz left #mojo
15:59 poundyz joined #mojo
16:00 Netfeed make your own templates?
16:00 poundyz hi a quick question, is that possible to have post/get using the same sub ? e.g., post/get '/blah' => sub { ... } ... what's the syntax for that ?
16:00 poundyz can i qw[/get post/] => sub { ... }
16:00 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Re​ndering#Custom_exception_and_not_found_templates
16:05 sri oh, apache 2.4 claims to be faster than event driven web servers Oo
16:08 BHS_error joined #mojo
16:09 BHS_error hi guys, I'm looking for a way to get data from a PUT request in my Mojolicious::Lite app. Any idea ?
16:11 sri actually... there are many neat enhacements in 2.4 http://httpd.apache.org/doc​s/2.4/new_features_2_4.html
16:12 sri mod_proxy_fcgi
16:12 sri about time
16:13 sri mod_lua haha
16:14 sri the fcgistarter tool will help a lot of people though
16:14 sri not just with apache
16:19 daxim also: mod_event declared stable
16:20 daxim about frigging time; apache httpd hackers are more conservative than a catholic debianista
16:25 tempire unpossible.  It's not bad ass rock star tech.
16:25 GitHub58 joined #mojo
16:25 GitHub58 [mojo] kraih pushed 1 new commit to master: http://git.io/zOXWYA
16:25 GitHub58 [mojo/master] better method examples for lite tutorial - Sebastian Riedel
16:25 GitHub58 left #mojo
16:25 sri BHS_error: that should answer your question
16:27 tempire I only use periods if there's more than one phrase, and the first phrase is actually a sentence, with a verb and a subject.
16:27 tempire With that rule, I've settled on # Foo bar
16:28 tempire I sometimes long for # foo bar, but the cap has a better aesthetic.
16:29 sri tempire: that's what i meant with the new coding guidelines entry too
16:29 tempire Also, tempi.re is awesome!  Everyone be excited about it.
16:29 * sri is excited about it
16:30 d4rkie joined #mojo
16:34 sri BHS_error: example is also live http://mojolicio.us/perldoc/M​ojolicious/Lite#HTTP_methods
16:34 purl okay, sri.
16:34 sri purl: forget example
16:34 purl sri: I forgot example
16:35 sri oh my
16:35 sri nordaaker owns tempire
16:36 * tempire is easily purchased with cheese sandwiches and the oil
16:37 sri "She found my one weakness... that I'm weak!"
16:39 * sri wonders what happened to the new tlds
16:40 sri ah, application window closes april 12
16:42 sri oh, they are closing applications for new tlds for a few years after that :o
16:44 sri $185k for a tld is a bit steep though
16:45 sri bet .apple and .google will happen though
16:46 daxim democratically governed alternative root: http://enwp.org/OpenNIC#Top_Level_Domains
16:47 sri http://www.uniteddomains.com/newgtlds # damn, looks like we will be swamped with new tlds
16:48 tempire Wonder if no one will care and still go for .com
16:48 sri actually, i think the only consequence will be that .com domains become more important than ever
16:48 sri heh
16:49 d4rkie joined #mojo
16:50 sri city domains could turn out to be useful though
16:50 sri and tedious to manage for big companies
17:14 sri diegok: any progress on the asset pipeline plugin btw?
17:15 diegok sri: nop :(. Still in my todo list.
17:15 sri awww
17:15 sri even if it wasn't full featured, i think it would be a great source for inspiration
17:19 diegok sri: yes!, and I'll need it in the near future. Problem is that future became delayed a bit :(
17:36 sri hmm
17:36 * sri wonders if we already support POE through EV
17:37 sri https://metacpan.org/module/POE::Loop::EV
17:39 tempire "Riak 1.1 significantly advances operational control and visibility via the introduction of Riak Control, a new graphical operations dashboard."
17:41 sri so they add a gui... and don't even show a screenshot?
17:41 sri that's soooo basho
17:42 tempire baby steps
17:42 purl baby steps! baby steps!
17:50 grim_fandango joined #mojo
17:53 xaka joined #mojo
18:05 ki0 joined #mojo
18:08 tempire hmm
18:08 tempire disappointing.  not very functional.
18:08 tempire and the only instructions are on the github repo.
18:09 * tempire grumbles at sri being right
18:10 tempire still.  I spoke with a basho dude on the phone yesterday, and they said that today was the beginning of them focusing on developer tools/administration and ux.
18:10 xantus[] sri: I've been using some POE and Mojo via some hackery before
18:11 sri xantus[]: before being when?
18:11 xantus[] the early days
18:11 sri lol
18:11 sri none of that code exists anymore ;p
18:12 xantus[] yeah, I used to run that code off an old copy
18:12 sri it's way better these days
18:12 sri user agent and daemon running inside AnyEvent like native components
18:13 xantus[] v nice
18:13 sri and the other ay around, anyevent/ev components just working inside hypnotoad/morbo/...
18:13 sri way
18:13 ki0 joined #mojo
18:14 * xantus[] is watching 'In Time'
18:14 xantus[] seen that yet?
18:14 sri yea, didn't like it much
18:14 sri the idea is not bad
18:15 sri with real actors it might have worked
18:17 BHS_error okay thanks a lot sri !
18:20 baton8 joined #mojo
18:21 briang joined #mojo
18:22 Foxcool joined #mojo
18:23 sri tempire: http://vimeo.com/35907658 # here's a video of riak control
18:23 tempire I downloaded and saw it
18:46 morissette joined #mojo
18:51 briang joined #mojo
18:58 jwang joined #mojo
19:15 briang joined #mojo
19:21 jwang joined #mojo
19:27 batman joined #mojo
19:37 sri hmm
19:37 sri http://onyxneon.com/books/modern_perl/
19:37 sri pdf and epub versions are gone
19:37 sri wonder what to do about it
19:44 batman what do you mean?
19:44 sri http://mojolicio.us/perldoc#LEARNING_PERL
19:45 batman https://github.com/chromatic/modern_perl_book ?
19:46 sri how will that help beginners?
19:46 batman i agree. stupid link...
19:46 batman maybe *someone* should build the book?
19:47 sri looks like chromatic deleted the pdf/epub versions for the old edition of the book before making new ones for the 2011/2012 one :S
19:49 tempire I didn't realize there was a github repo
19:50 tempire I might build it and link directly to it from mojocasts until it's posted on the site
19:52 tempire hrm.  except...it build_pdf.pl doesnt' work.
19:54 sri http://learnyouahaskell.com # i so love this book
19:54 tempire it's fantastic.
19:54 tempire learnyousomeerlang.com is the same sort of thing.  wordier, though.
19:54 tempire which is kind of fitting, considering the language difference.
19:55 tempire if a mojolicious book happens, I want it to be like that.
19:55 * sri too
19:56 tempire epub builds fine
19:56 tempire not as accessible as the pdf, though :(
19:56 tempire ooooh
19:56 tempire you need to build the chapters before the pdf
20:01 sri only reason i can imagine he didn't do it yet would be that he had no time to fix formatting
20:02 * sri shrugs
20:03 tempire epub -> pdf conversion doesn't work too well...or I have no idea what I'm doing with calibre
20:04 tempire the build_pdf.pl only generates each separate chapter
20:26 tempire we could link to higher order perl as well.
20:26 tempire not for beginners, but label it as advanced perl
20:29 sri don't think programmers at that level need a link :)
20:29 tempire true.  I'm putting it on mojocasts anyway.
20:29 sri that sounds good
20:30 tempire I'm really liking how mojocasts.com is shaping up
20:31 tempire next step is to get popular topics be an automated response to real clicks.
20:31 briang joined #mojo
20:32 * sri likes it too
20:32 xantus[] I love Cache::FileCache
20:33 xantus[] throw in some freeze/thaw and zoom zoom
20:33 * tempire thought cache:: was being succeeded by CHI
20:34 mire joined #mojo
20:36 * xantus[] shrugs, last time I tried it installed half of cpan
20:37 xantus[] fucking moose
20:37 xantus[] was it CHI?  dunno
20:37 tempire perl is expanding: https://fbcdn-sphotos-a.akamaihd.net/​hphotos-ak-ash4/424532_10101566645127​453_5251695_74851468_1192172070_n.jpg
20:38 xantus[] 10 modules, one of which is Moose
20:40 tempire ah
20:40 tempire well then.  understood.
20:43 xantus[] which resulted in 6 more so far; 16 and counting
20:47 xantus[] 10 + 13 = 23 total  I can't ask the target demo to do that :/
20:48 tempire moose is bad ass rock star tech
20:51 xantus[] sure, but I'm targeting something lightweight
20:52 xantus[] hopefully I can include most if not all of the modules
20:53 xantus[] https://github.com/xantus/TenFootCouch
20:53 lukep joined #mojo
20:54 xantus[] 10ft interface for nzb site + sabnzbd + sickbeard
20:54 marcus xantus: think tempire was referrencing that node.js transcript.
20:54 xantus[] maybe even couchpotato
20:54 marcus Xantus: I need that!
20:54 marcus :)
20:55 xantus[] want to help?
20:55 tempire http://www.youtube.com/watch?v=bzkRVzciAZg
20:56 marcus xantus[]: yes, but kind of overworked atm.
20:56 xantus[] k, hit watch and I'll try to keep you up to date
20:57 xantus[] oh, and vlc 2.0 integration!
20:58 marcus I only use plex these days.
20:58 tempire hmm
20:58 tempire never heard of plex
20:58 tempire the new vlc looks very nice, though
20:59 marcus It's teh awesomeæ
20:59 marcus Xbmc based.
20:59 marcus Great ios app too
20:59 tempire I use air video server for viewing stuff on the ipad
20:59 tempire tiny and simple
20:59 marcus Xantus: seen qouch btw?
21:00 marcus Tempire: i have that too.
21:00 tempire whoa
21:00 * tempire reacts to the plex interface
21:02 marcus Purty?
21:02 purl Purty is sexy
21:02 marcus It uses artwork from my media collection as well.
21:10 tempire wow, plex is on point.
21:10 tempire automatic plugin installation.
21:10 tempire al jazeera even
21:20 rhaen hm.
21:20 rhaen My MongoDB@Berlin talk isn't accepted so far.
21:21 rhaen hmpf! It's about training young sysadmins in Mojolicious and MongoDB
21:37 xantus[] plex is nice
21:38 xantus[] cool
21:39 xantus[] mine will be like qouch, but using sencha touch, and not limited to ios
21:39 Alias joined #mojo
21:39 xantus[] and use it as a remote for the 10ft interface
21:40 xantus[] fling to any screen
21:41 xantus[] Qouch is also the Queer Psychoanalysis Society's publishing platform
21:59 briang joined #mojo
22:09 trek1s joined #mojo
22:15 tempire xantus[]: what do you do for sencha?
22:44 * sri just noticed Mojolicious is mentioned in the new Programming Perl :)
22:44 tempire \o\
22:45 sri a few times actually, one is a typo though xD
22:45 sri Mojolicious::UserAgent
22:45 tempire how is it referred to?
22:45 tempire sweet, I was hoping for that.
22:45 tempire gateway drug
22:46 tempire I think rhaen has the right idea in introducing the client first
22:46 sri just as a generic module name example as far as i can see
22:46 sri a cameo i guess
22:53 sri btw. you can get programming perl 4 for $12 with a coupon code today :D
22:54 sri "4UNEW" = 40% off
22:54 sri no excuse not to get it
22:54 sri the unicode stuff is gold
23:20 preflex_ joined #mojo
23:27 tempire is that a good de-facto resource?
23:27 tempire I've never done the unicode research.
23:27 tempire after I read that section, will I be a master?
23:29 sri take a look at the cheatsheet i tweeted
23:30 sri it looks like tom christiansen has written the unicode stuff, doesn't get much better

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