Camelia, the Perl 6 bug

IRC log for #mojo, 2011-08-16

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

All times shown according to UTC.

Time Nick Message
00:04 elb0w__ joined #mojo
00:05 elb0w__ sri: is there anything built into mojo to generate session id?
00:13 preflex_ joined #mojo
00:41 GitHub5 joined #mojo
00:41 GitHub5 [mojo] kraih pushed 1 new commit to master: http://bit.ly/phyL46
00:41 GitHub5 [mojo/master] fixed small command bug - Sebastian Riedel
00:41 GitHub5 left #mojo
00:43 tempire elb0w_: why do you need to generate one manually?
00:43 elb0w__ using mojo as a backend to a mobile app
00:43 elb0w__ storing the session in redis
00:44 elb0w__ Im just using Digest::SHA1 now
00:45 sri why not use a unique id generated by redis then?
00:45 elb0w__ I should learn more about redis :P
00:46 sri facepalm moment :)
00:46 elb0w__ First time really using redis other then playing with it
00:47 sri redis has a command just for generating unique ids
00:47 sri INCR
00:47 elb0w__ thought that just increases the value
00:49 sri yes, but it's race free
00:49 elb0w__ hmm ok
00:50 sri since it returns the value you get a unique id if you never DECR it
00:51 mspo sprintf("%0.8x",rand()*0xffffffff)
00:52 elb0w__ :o excited using mojo in a real app finally lol
00:55 Alias joined #mojo
01:11 xaka joined #mojo
01:15 elb0w__ Theres no mojo dbi right?
01:15 * elb0w__ feels like a noob
01:19 alnewkirk nope
01:20 elb0w__ k
01:30 Alias left #mojo
01:34 mspo elb0w__: what would it do?
01:35 GabrielVieira joined #mojo
01:35 elb0w__ I dunno, I guess its really not needed, DataModel and Class can pretty much do everything
01:36 perlrocks Twitter: "Got a simple mojolicious app running on dreamhost with fastcgi.  Stay tuned something new and exciting soon." --jasoncrowther http://twitter.com/jasoncrowt​her/status/103279046758105089
01:38 mspo DBIx::Class?
01:38 purl hmmm... DBIx::Class is a resultset-driven ORM with a Class::DBI compatiblity or http://lists.scsys.co.uk/m​ailman/listinfo/dbix-class or see 'dbic repo' or http://dbix-class.shadowcatsystems.co.uk/ or discussed on #dbix-class or a bit like handing an automatic rifle to a squirrel. or ilmari's mro orm
02:07 alnewkirk DBIx::DataModel look great albeit complex
02:42 elb0w__ yeah, gonna read about it for a bit
02:42 elb0w__ was reading over some of the docs had to take a break
03:06 elb0w__ so morbo works but when I swap it to hypnotoad I get a raptor not found
03:12 elb0w__ argh wtf
03:12 elb0w__ morbo works and hypno with --foreground
03:12 elb0w__ but everything else gives "Something went very wrong"
03:15 elb0w__ arggghhh
03:16 elb0w__ sri: u there?
03:19 elb0w__ well this is lame :(
03:27 tempire elb0w_: did you look at the log?
03:30 elb0w__ Where?
03:30 elb0w__ I tracked it down to selectall_arrayref
03:30 elb0w__ not sure why that would cause it
03:32 elb0w__ argh wth
03:34 elb0w__ so weird that morbo works
03:35 elb0w__ and so does foreground
03:37 elb0w__ figured it out
03:37 elb0w__ had $dbh as a global, didn't like that
03:38 arne joined #mojo
03:47 sri joined #mojo
04:20 jwang joined #mojo
04:28 perlrocks joined #mojo
05:19 koban joined #mojo
05:59 psiman_x1 joined #mojo
06:09 Foxcool joined #mojo
06:16 sugar joined #mojo
06:47 john joined #mojo
07:04 arthas joined #mojo
07:08 judofyr joined #mojo
07:23 Firkin joined #mojo
07:33 cosmincx joined #mojo
08:01 Alias joined #mojo
08:18 Eugene joined #mojo
08:18 sromanov joined #mojo
08:23 Eugene hi. I have a problem after Mojolicious upgrade. I have 4 async post requests and $ua->start that used to run them and wait till they finish. In the latest Mojo version I can see ->start is called in ->post, so, once I call my own ->start it says "Non-blocking requests in progress". The question is how can I wait till 4 async post requests have finished? (= $condvar->recv in AE)
08:23 Eugene ( the same as $condvar->recv in AE )
08:24 AmeliePoulain joined #mojo
08:24 marcus Eugene: trigger
08:25 marcus Eugene: https://metacpan.org/module/Mojo::IOLoop::Trigger
08:25 Eugene ok cheers, will look
08:28 Kulag joined #mojo
08:52 spleenjack joined #mojo
11:24 cosmincx joined #mojo
11:26 * sri yawns
11:26 marcus hmm, seems my talk might not get recorded
11:26 sri aww
11:26 marcus someone stole one of the cameras from YAPC, so this room is currently missing one.
11:26 judofyr marcus: what are you going to talk about?
11:26 marcus judofyr: Mojolicious :)
11:27 judofyr :)
11:27 marcus I also has a lightning talk about iusethis infrastructure
11:27 marcus have
11:27 judofyr cool
11:27 judofyr how's the conference so far?
11:27 judofyr sri: are you there too?
11:28 sri nope
11:35 marcus sri has never been at a conference afaik
11:35 marcus he might be a robot
11:35 judofyr like, never never?
11:36 judofyr too busy fixing Mojolicious?
11:36 marcus More bad news, I'm up against the PSGI talk in the main room.
11:36 marcus oh well, not as bad as up against Tim Bunce at LPW =)
11:36 sri smells like a conspiracy
11:44 GitHub111 joined #mojo
11:44 GitHub111 [mojo] kraih pushed 1 new commit to master: http://bit.ly/qUkWe5
11:44 GitHub111 [mojo/master] fixed requirements - Sebastian Riedel
11:44 GitHub111 left #mojo
12:25 minimalist joined #mojo
12:35 Akron joined #mojo
12:42 perlrocks Twitter: "Still unsure if "mojo cpanify" and "mojo generate plugin" should be part of the #mojolicious core distribution, thoughts? #perl" --kraih http://twitter.com/kraih/status/103446613485293569
12:57 Skylos_ joined #mojo
12:59 arthas joined #mojo
13:09 GitHub46 joined #mojo
13:09 GitHub46 [mojo] kraih pushed 3 new commits to master: http://bit.ly/oTjnwR
13:09 GitHub46 [mojo/master] documentation tweaks - Sebastian Riedel
13:09 GitHub46 [mojo/master] fixed typo - Sebastian Riedel
13:09 GitHub46 [mojo/master] more documentation tweaks - Sebastian Riedel
13:09 GitHub46 left #mojo
13:09 sri the lack of feedback about cpanify and generate plugin makes me worry a bit
13:12 sri i guess cpanify could also be integrated into the get command
13:13 nordicdyno joined #mojo
13:13 sri but one would have to copy and paste a very very long oneliner from the documentation
13:13 sri (the post parameters)
13:14 sri https://github.com/kraih/mojo/blob/maste​r/lib/Mojolicious/Command/Cpanify.pm#L39
13:14 diegok around 40 persons at marcus presentation :-)
13:14 sri not really something you would want to do on the command line i guess
13:14 sri diegok: is that good?
13:14 diegok a bit more than 40.
13:15 judofyr a bit more? 41 then :)
13:15 diegok sri: hm, I'm think it is being agains a PSGI one at the main room
13:15 diegok judofyr: :-p
13:15 alnewkirk :}
13:16 diegok judofyr: I'm at the first row, can't count easily :)
13:16 alnewkirk wishing i was there
13:17 judofyr sri: why haven't you been to any conferences btw?
13:17 sri judofyr: don't know really, just happened
13:18 GitHub52 joined #mojo
13:18 GitHub52 [mojo] kraih pushed 1 new commit to master: http://bit.ly/n3mdxV
13:18 GitHub52 [mojo/master] release preparations - Sebastian Riedel
13:18 GitHub52 left #mojo
13:23 sri releasing with cpanify :D
13:25 judofyr sri: releasing cpanify with cpanify? :D
13:26 perlrocks Twitter: "Released #mojolicious 1.78 with new experimental commands for plugin authors, enjoy! :) http://t.co/DizJtFH #perl" --kraih http://twitter.com/kraih/status/103457576037007361
13:26 nordicdyno left #mojo
13:26 sri judofyr: YEA!
13:28 sri i like how you can prefix commands in zsh with whitespace to hide them from history
13:28 sri we are leaking ops again btw *cough*
13:29 judofyr why are all you ops btw?
13:31 stephan48 sri: works also in bash...
13:36 diegok judofyr: well, I guess to not running out of ops (as happened to as at #madrid.pm and #barcelona.pm) :-(
13:37 diegok judofyr: we can't announce meetings nor regain op as there are several bots blocking the channel to be re-created...
13:37 judofyr you don't have anything like ChanServ here?
13:38 stephan48 ask mst?
13:38 perlrocks Twitter: "♺ @kraih: Released #mojolicious 1.78 with new experimental commands for plugin authors, enjoy! :) http://t.co/gsjzPrq #perl" --Metztli_IT http://twitter.com/Metztli_I​T/status/103460728819826688
13:39 sri judofyr: nope, we don't
13:39 judofyr now that sucks
13:39 sri ye
13:39 ChanServ ta-da!
13:40 diegok ChanServ: ok, so, give as the *.pm chans please :-p
13:40 ChanServ diegok: you didn't register, did you? :)
13:41 * diegok I should ping mst personally as he is at #yapc also :)
13:41 stephan48 ye
13:41 stephan48 usually he reacts a bit "couldnt you prevent that" like on irc and then fixes it
13:41 diegok ChanServ: control everywhere :-p
13:42 diegok stephan48: I guess I was just not wanting to pass thru that situation :-(
13:42 stephan48 oh this chanserv is broken!!!
13:42 stephan48 doesnt react on register ... huch lag
13:43 sri made in norway...
13:43 stephan48 ye bad quality
13:55 arthas joined #mojo
14:02 GitHub43 joined #mojo
14:02 GitHub43 [mojo] kraih pushed 1 new commit to master: http://bit.ly/o4FDWa
14:02 GitHub43 [mojo/master] documentation tweaks - Sebastian Riedel
14:02 GitHub43 left #mojo
14:04 perlrocks Twitter: "Plack is dependent on Catalyst - media tokuhirom's blog Kai TokuLog: Amon2 is not recommended and I dabbled in knowing Mojolicious> <http://t.co/84Au1DB N even there" (ja) --hateBfavorite http://twitter.com/hateBfavor​ite/status/103467195924881408
14:08 judofyr ChanServ++
14:08 judofyr I think he was an excellent ChanServ
14:09 judofyr may he rest in peace
14:10 marcus if brief.
14:11 judofyr who knows, one day he might return
14:12 stephan48 ye. i hope then he allows me to reg a chanm!
14:19 elb0w__ joined #mojo
14:22 elb0w__ Is there a way to pass ? params?
14:23 judofyr stephan48: register a channel?? now you're being quite a bit demanding here!
14:30 diegok marcus++
14:31 judofyr diegok: good talk?
14:33 diegok judofyr: yes, but he ran out of time :(
14:34 judofyr aww
14:35 judofyr that always sucks
14:35 diegok judofyr: yup
14:41 stephan48 judofyr: isnt that chanservs reason to exist? regging chans and handing out ops?
14:42 judofyr stephan48: I still think you are very demanding :P
14:42 marcus At least I managed to show the mojocasts slide.
14:43 sri are the slides online yet?
14:44 marcus nope
14:44 marcus can put them online now
14:44 sri \o/
14:46 nordicdyno joined #mojo
14:47 nordicdy_ joined #mojo
14:47 marcus maybe not, the wifi sucks :/
14:47 judofyr as usual
14:47 sri /o\
14:47 marcus at the latest I will put it up from the hotel tonight.
14:48 marcus ssh: Could not resolve hostname nordaaker.com: nodename nor servname provided, or not known
14:48 marcus bah
14:49 abra joined #mojo
14:50 elb0w__ |o|
14:51 sri tie fighter?
14:51 elb0w__ lol
14:51 ryanc joined #mojo
14:51 marcus [-o-]
14:51 Skylos joined #mojo
14:53 nordicdyno joined #mojo
14:53 judofyr (╯°□°)╯︵ ┻━┻
14:54 Skylos left #mojo
14:56 marcus judofyr: someone has been reading too much _why stuff lately?
14:56 judofyr marcus: symbol.is_a? String?
14:56 judofyr actually not, I didn't realize there was RedHanded post until: http://twitter.com/#!/aanan​d/status/103460472023547904
14:58 judofyr or maybe you're thinking about: "why are you always so dramatic, Perl? die? in Ruby we simply raise our problems…" but _why only made a joke about raise vs throw… not die…
15:01 marcus judofyr: No, I meant that the ascii art looked very _whyish :)
15:01 judofyr oh
15:02 judofyr but hey, it's _why day soon!
15:04 marcus when?
15:04 marcus 'If you are not on IRC, you do not exist' lightning talk now
15:04 marcus Guess we exist \o/
15:04 marcus I was worried there for a while.
15:08 judofyr 19th Aug
15:09 GitHub149 joined #mojo
15:09 GitHub149 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mZ61Df
15:09 GitHub149 [mojo/master] better command description - Sebastian Riedel
15:09 GitHub149 left #mojo
15:12 kaare joined #mojo
15:16 marcus http://nordaaker.com/docs/Mojo​licious_-_A_new_hope_YAPC.pdf
15:20 GitHub164 joined #mojo
15:20 GitHub164 [mojo] kraih pushed 1 new commit to master: http://bit.ly/n8xrVY
15:20 GitHub164 [mojo/master] improved usage message of get command - Sebastian Riedel
15:20 GitHub164 left #mojo
15:21 sri Y U NO ADD TO WIKI?!
15:23 sri and why is nordaaker in lillehammer?
15:25 judofyr why?
15:25 sri i thought you were in oslo
15:25 judofyr the office, yes
15:26 cosmincx joined #mojo
15:26 judofyr Nordaaker is also an old farm
15:26 purl okay, judofyr.
15:26 sri marcus is also a moose farmer?
15:26 purl okay, sri.
15:27 * sri hugs purl
15:27 * purl nibbles sri's elbow
15:29 judofyr scouts == fail: http://www.youtube.com/watch?v=ZTk9zA010AU
15:29 judofyr totally unrelated
15:30 judofyr #mojo just happened to be the closest input field I found
15:30 Akron joined #mojo
15:31 judofyr (watch until 0:50)
15:31 dekimsey joined #mojo
15:31 judofyr or 0:40
15:32 * sri doesn't get it
15:33 judofyr I don't think "let's set fire to the gasoline can" was a part of their plan…
15:34 sri it doesn't even explode and nobody gets hurt…. boooooring
15:34 judofyr haha
15:34 judofyr I know
15:35 judofyr anyway
15:37 sri marcus: but the mojocasts slide is at the end
15:38 Foxcool joined #mojo
15:38 perlrocks Twitter: "Added compile checker to skykitteh.com during Mojolicious talk at #ye2011" --ollej http://twitter.com/ollej/status/103490916714684416
15:44 xaka joined #mojo
16:05 meraxes joined #mojo
16:36 perlrocks Twitter: "The cpanify command is in itself of course a good example for the simplicity of #mojolicious. http://t.co/bUYmqgw #perl" --kraih http://twitter.com/kraih/status/103505476066619393
16:42 j-v-e joined #mojo
16:46 sri tempire, crab, marcus: what are your opinions about cpanify and generate plugin?
17:06 tempire hooray!
17:06 tempire I removed my first spam from the mailing list
17:07 tempire I'm a great moderator.
17:07 tempire I'm ambivalent about cpanify.
17:07 sri tempire++
17:08 tempire On the one hand, it's not really mojo's problem space.
17:08 sri tempire: everybody seems ambivalent about it :S
17:08 tempire But the whole point of mojo is to make things easy.
17:08 tempire and the recipe you've written makes it really simple.
17:08 sri maybe crab can talk some sense into us
17:09 tempire and it makes people think, "oh, I *can* make a plugin and submit it to cpan"
17:09 tempire that's not something that occurs to darkpanners easily.
17:09 tempire it took me forever.
17:09 sri you do sound more in favor of it :)
17:09 tempire if I would have seen something like that recipe, it wouldn't have taken me nearly as long.
17:09 tempire so yes, I'm in favor of it.
17:10 tempire so I guess I'm no longer ambivalent.
17:10 tempire I think it's currently at a clean separation point.
17:10 tempire An opening point towards dist::zilla and others
17:11 * sri nods
17:11 tempire I say leave it in as experimental for several months and see if anyone cares.
17:12 tempire And we can drop in, "you can also turn that helper into a cpan plugin pretty easily [here's the link]" often.
17:12 tempire that's a lot easier than saying, "you should read about how to make a cpan module"
17:13 tempire A mojocast about testing is forthcoming, after that, I'll talk about cpanify.
17:14 sri cpanify is actually not unlike the perldoc browser plugin
17:14 elb0w__ joined #mojo
17:17 sri maybe a little disclaimer would be nice for such components
17:17 elb0w__ thats what she said
17:17 sri to draw a line
17:17 tempire boosh
17:17 tempire 41 people sounds like a decent amount
17:18 tempire marcus: how was the reception?
17:18 sri 41 new borg drones
17:20 tempire oh, and he included cpanify
17:21 tempire wonder if he got to hypnotoad
17:22 sri oh wow
17:22 sri missed that part
17:22 sri we made that up yesterday… and it's already in his talk today, win :)
17:23 tempire although you released it when he was talking, it seems
17:23 tempire could have said, "available now"
17:23 sri yea, he really should have updated his slides during the talk!
17:24 * tempire is happy that mojocasts were mentioned
17:24 * tempire hugs marcus
17:30 crab hi
17:30 purl hola, crab.
17:30 crab what is cpanify?
17:30 purl i heard cpanify was actually not unlike the perldoc browser plugin
17:31 tempire see backlog.  it's a way to upload a mojolicious plugin to pause.
17:31 sri crab: see also end of this recipe http://mojolicio.us/perldoc/Mojolici​ous/Guides/Rendering#Helper_Plugins
17:31 elb0w__ When swapping from a lite app to a full app think there will be any noticeable performance changes?
17:31 sri elb0w__: nope
17:31 elb0w__ ok
17:31 sri 99% the same code
17:32 tempire lite is a wrapper
17:32 elb0w__ figured as much
17:34 crab sri: that page never seems to render completely for me
17:36 crab it never sends as much data as the announced content length, it seems
17:37 crab i think it's the isp
17:37 crab 's transproxy breaking things
17:53 john joined #mojo
18:08 bpaluch question: I have a http client that is padding %00 after key values in urls, this is messing up the return value of param('key') and I can't really figure out what the value its holding because when I print the scalar it prints just the readable characters... I figured out how to fix it when its just digits with a regex but characters is proving to be more diffcult.
18:08 bpaluch I can't fix the http client, the values look like this pid=21832%00&uid=0000025bdad4&ptitle​=Beverly+Hills+Ninja%00%00%00%00%00%​00%00%00%00%00%00%00%00%00%00%00%00
18:08 Eugene joined #mojo
18:17 bpaluch nevermind got it, needed a :print: in my regex
18:30 sri crab: but what are your thoughts on cpanify and generate plugin?
18:32 sromanov joined #mojo
18:33 tempire arg.
18:34 tempire is the germany/norway/anywhere else media just as crazy as the american media?
18:34 sri nope
18:34 tempire it's like a big reality tv show.
18:35 tempire the popular reality tv, where all the drama is staged.
18:35 sri we have public tv stations payed by taxes that keep news mostly neutral
18:35 sri *+for
18:36 tempire Where's marcus?
18:36 purl marcus is probably pretty sure lisp adoption is being hampered by being named after a speech defect. or http://picasaweb.google.com/olga.r​amberg/Lisboa#5240395957801479314 or a moose farmer?
18:37 sri for us your media look even more crazy
18:37 tempire it's ridiculous.  it's all sensationalism.
18:37 sri last time i watched fox news i couldn't stop laughing
18:37 tempire It's not even just fox news.
18:38 tempire Fox news at least balances it out with right wing craziness.
18:38 tempire so now there's a voice against the left wing craziness
18:38 tempire but it's all crazy.
18:39 tempire so they showboat all the crazy people
18:39 tempire what concerns me is that I think most people get their news from television.
18:40 tempire instead of reading things that don't target their emotions so directly.
18:49 sri it's all part of the conspiracy, dumb people are easier to control
18:49 Akron Yes, sir.
19:28 Firkin left #mojo
19:29 Akron joined #mojo
19:32 elb0w__ I have no idea how to write tests
19:32 elb0w__ where is a good resource to learn?
19:47 tempire elb0w_: have you ever written perl tests before?
19:49 tempire if not, start with https://metacpan.org/module/Test::More
19:49 tempire and then start using https://metacpan.org/module/Test::Most
19:49 elb0w__ ok thanks
19:49 elb0w__ yeah never ever
19:51 tempire oh, this is excellent: http://www.slideshare.net/Skud/t​est-driven-development-tutorial
19:51 tempire that will give you an overview of how it all works
19:52 elb0w__ just what I was looking for
19:52 elb0w__ thanks again so much
19:53 tempire and when you've got all that down, ask again
19:53 tempire I could talk all day about testing
19:53 tempire testing testing testing testing
19:56 diegok tempire: spanish media is also a bit crazy, but I think not near the US level.
19:56 elb0w__ yeah, I figure its a good skill to learn
19:57 tempire it will change your life
19:57 diegok tempire: we also have national one being mostly neutral.
19:58 diegok elb0w__: Test::Simple is also a nice starting point
19:58 purl okay, diegok.
19:59 elb0w__ yeah saw that
19:59 tempire elb0w_: it also changes your development.  when you start to write tests first, it shows code smells, 'cause if it's hard to test, there's likely a better way.
20:00 tempire and it moves you away from the *should* problem
20:00 tempire as in, "yes, it *should* work"
20:01 tempire 'cause when developers say *should*, they really mean, "I really have no idea"
20:01 tempire with testing, you know.
20:01 * tempire gets off his soap box
20:02 diegok tempire: well... you *should* know :-p
20:02 tempire oh snap!
20:06 sromanov joined #mojo
20:07 tempire From Steve, of nowjs:
20:08 tempire "A Perl client isn't exactly the highest of our priorities at the moment, but it should arrive some time in the next few weeks."
20:10 sri well, i'm more interested in the next generation of that kind of libraries
20:11 sri websocket instead of socket.io
20:12 tabbi joined #mojo
20:12 tabbi left #mojo
21:06 marcus yoyo
21:07 metaperl joined #mojo
21:11 perlite_ joined #mojo
21:13 sri yo yo yo
21:13 * purl walks the dog
21:24 metaperl_ joined #mojo
21:32 xaka joined #mojo
21:34 perlrocks Twitter: "mojolicious-lexicon 0.9921 by UNDEF - http://t.co/JWN2Ia2" --cpan_new http://twitter.com/cpan_new​/status/103580405113954306
21:40 xaka joined #mojo
21:46 perlrocks Twitter: "mojolicious-lexicon 0.9922 by UNDEF - http://t.co/tsULCEa" --cpan_new http://twitter.com/cpan_new​/status/103583495191924736
22:18 GitHub33 joined #mojo
22:18 GitHub33 [mojo] kraih pushed 1 new commit to master: http://bit.ly/mQdUKY
22:18 GitHub33 [mojo/master] documentation tweak - Sebastian Riedel
22:18 GitHub33 left #mojo

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