Camelia, the Perl 6 bug

IRC log for #mojo, 2011-04-24

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

All times shown according to UTC.

Time Nick Message
00:00 sri you won't get conflicting sessions
00:00 sri newest version always wins
00:01 PerlNinja na just the data in it, it was one of those things that gave me a headache when it used server-side storage for everything, there was a chance something could get clobbered, so .. solves that then
00:01 sri :)
00:02 PerlNinja ok.. one more just from a "am curious" perspective
00:02 PerlNinja app->sessions v.s. controller->session - they both use the same session stash, why split them like that? conveniene or more a matter of "just happened that way"
00:03 PerlNinja ?
00:04 plu left #mojo
00:05 plu joined #mojo
00:07 sri app->sessions is simply a component that can be replaced
00:08 PerlNinja okay and controller->session uses that or is it a separate thing, in theory?
00:09 sri exactly
00:09 sri you could replace app->sessions with a server side solution and controller->session can still work
00:10 sri MojoX::Sessions predates both btw. so it does not use any of the new APIs
00:11 PerlNinja I know :)
00:11 PerlNinja that's why I want to re-do it
00:11 PerlNinja cos lord knows vti ain't gonna
00:17 PerlNinja oh wait, teehee, guess he swapped roles at some point, i'm first-come and he's co-maint .. so solves that too :D
00:20 PerlNinja hm, funny, i seem to one of few people using Mercurial instead of git
00:22 stephanj i use it too rarely
00:23 stephanj in my opinion it works better with windowns
00:24 PerlNinja i ended up using it at some point because the people i worked for/with (british) didn't quite enjoy the idea of telling their clients to install git
00:24 stephanj but hg?
00:24 purl i guess hg is just more poular over there. or Mercurial
00:24 PerlNinja so.. yeah.. mercurial it was. plus i have it anyway for $work since that's all we used anyway
00:25 PerlNinja and bitbucket had free private repos :D
00:25 PerlNinja I'm Dutch and I fit the "cheap bastard" stereotype
00:25 stephanj hehe
00:27 PerlNinja only thing i miss about mercurial is subrepositories being handled in a sane manner
01:03 sri git pretty much won though
01:04 PerlNinja yeah
01:05 PerlNinja I have to admit I like git too, but it's too much of a pain in the ass to switch over to it from hg
01:05 PerlNinja that and I like being different :P
01:05 sri git-hg?
01:05 PerlNinja that exists?
01:05 PerlNinja hm
01:05 PerlNinja meh
01:06 PerlNinja :effort:
01:06 sri <3 github
01:06 PerlNinja <3 bitbucket
01:06 PerlNinja :P
01:07 sri you have to be kidding!
01:07 PerlNinja nope, that's where i keep all my junk
01:07 sri :S
01:07 PerlNinja wha?
01:09 PerlNinja whats wrong with it? :P
01:09 sri if you really want to be different you should use bazaar :D
01:11 sri i really can't stand bitbucket
01:13 PerlNinja look at github, now look at bitbucket ... they're virtual twins pretty much :P UI wise
01:13 sri only at first sight
01:13 sri coming from github you notice all the little details missing instantly
01:14 PerlNinja mmm
01:16 PerlNinja might take the time to move things over then
01:16 PerlNinja there goes another weekend fixing build tools
01:17 sri and why the hell would they make the commit list the first thing you see?
01:17 PerlNinja no idea but I like it :P
01:17 PerlNinja lets me see what my minions have been up to
01:18 sri for you, but not people visiting your project to take a look
01:18 PerlNinja point
01:18 PerlNinja hmm
01:19 sri on github you get an overview of what everybody you know did on the main page
01:19 sri social networking style
01:19 PerlNinja myeah maybe i'll move
01:19 PerlNinja right now it's just that half my build tools depend on being able to extract a numerical revision instead of a hash
01:19 sri just try it, follow a few cool people
01:19 PerlNinja hg id -n does that
01:20 PerlNinja soooo that's like... rewrite that stuff
01:20 PerlNinja oh well :D
01:20 PerlNinja hobby projects++
01:22 sri the social network thingy actually helps you discover hip new projects
01:23 sri because you can see when people you know start following something
01:23 stephanj and what is if you dont want the social networking stuff?
01:23 sri then you don't look at it :)
01:23 PerlNinja ahh but same could be said for that commit list thing :P
01:24 stephanj ye commit list is cooler sometimes "dammit, i should do something"-motivator like
01:24 sri not really, social network thingy is only visible if you're logged in
01:24 sri commit list gets shown to everybody
01:25 sri https://github.com/kraih/mojo # i think this is pretty much the ideal solution for a code repository overview
01:29 PerlNinja hmm
01:31 PerlNinja yeah that is kinda better
01:32 PerlNinja guess more people use github than bitbucket too so that'd help a little
01:32 sri especially perl people
01:32 PerlNinja yeah just noticed dist::zilla has no mercurial bits but it has git bits
01:32 PerlNinja and i'm tempted to start using it because my own build scripts do a bunch of things dist::zilla probably does better
01:33 sri https://github.com/mongodb/mongo # another example :)
01:33 PerlNinja meh... sleep first, mucking with github after
01:33 PerlNinja ug that reminds me
01:33 PerlNinja i need to shoot whoever wrote the spec docs for BSON
01:33 sri why?
01:34 sri i've implemented the whole spec, wasn't too bad
01:34 PerlNinja because the examples don't match the spec :D hehe .. or maybe that was just me not paying attention
01:35 PerlNinja was looking for a pure perl bson implementation and couldn't find any so figured maybe i'll write me up something but ...
01:35 PerlNinja :effort: :D
01:35 sri i have one ;p
01:35 sri feature complete with tests
01:35 PerlNinja yeah but you're not done yet with your mongodb things :P
01:35 arpadszasz joined #mojo
01:36 yegor left #mojo
01:36 PerlNinja anyway .. nap time, back later with either horror stories or happy stories about moving to github
01:36 PerlNinja left #mojo
01:37 sri reminds me, i should spend more time working on that -.-
01:38 * tempire whips sri
01:38 sri OUCH!
01:38 tempire a mojolicious full stack would be excellent protection against such attacks
01:39 sri i see
01:47 sri suppose i could change my goals a bit and release the mongodb driver without a finished orm
01:55 tempire Is there a lot of interest in a pure perl mongodb driver?
01:55 tempire I don't use it myself.
01:55 tempire clearly perlninja has interest.
01:56 tempire it's the orm that interests me
01:56 arpadszasz left #mojo
01:57 arpadszasz joined #mojo
02:00 mateu i'd be happy with starting by testing a driver
02:02 sri pure perl mongodb driver means it installs like mojolicious itself and supports non-blocking
02:03 sri and of course a friendlier bson api
02:03 sri those are the parts that interest me
02:05 mateu I think the non-blocking part would be nice.
02:05 mateu not that blocking has slowed me down yet, but I'm at the tip of the iceberg.
02:05 tempire I think the orm should involve a nyan raptor.
02:06 sri purl: nyan?
02:06 purl i don't know, sri
02:06 sri purl: nyan is http://nyan.cat
02:06 purl OK, sri.
02:06 sri purl: nyan is also NYAN NYAN NYAN NYAN NYAN NYAN NYAN!!!!!!!1
02:06 purl okay, sri.
02:07 mateu my eyes are hurting.
02:07 sri you're doing it wrong then
02:07 mateu I think I'be been locked into a timewarp or something.
02:07 sri it should be the ears
02:08 tempire I really enjoy the nyan cat
02:08 mateu goin' to make 100 seconds yes...
02:08 tempire I can listen to it for long blocks at a time.
02:08 mateu oh, it has sound?
02:08 tempire DUDE.
02:08 sri DUDE.
02:08 tempire seriously.
02:08 purl I'm totally freaking serious.
02:08 mateu EDUD
02:09 * mateu does a sound check
02:09 mateu you guys got me on that one, damn I'm gullable
02:11 sri 312 seconds!
02:11 mateu /me concedes defeat
02:12 tempire you could always go with the original youtube vidoe
02:12 tempire *video
02:13 tempire I prefer the pop-tart version myself.
02:13 tempire but the toast is still a winner.
02:13 sri http://www.youtube.com/watch?v=QH2-TGUlwu4
02:49 tempire or if you prefer live action
02:49 tempire http://www.youtube.com/watch?v=​PuW23sMVWEs&amp;feature=related
02:58 sri i actually had to google what a pop tart is :S
02:59 tempire they don't have pop tarts in the fatherland?
02:59 sri don't think so
03:04 sri don't think i would like it anyway
03:05 * sri hates oreos and mountain dew too
03:07 abra left #mojo
03:09 tempire no one likes pop tarts
03:10 tempire except for children that have no palate.
03:10 tempire But oreas
03:10 tempire oreos
03:10 tempire the mint oreos are tasty
03:11 sri way too sweet
03:11 sri i like to have a little more cookie with my sugar
03:12 tempire that's what she said
03:12 tempire OH!
03:13 sri actually can't think of many american brands i like
03:14 sri ben and jerrys is really good though
03:17 sri also still need to try hot pockets
03:17 tempire http://www.youtube.com/watch?v=​xaLpVzPxY6w&amp;feature=related
03:18 abra joined #mojo
03:21 alnewkirk left #mojo
03:22 sri lol
03:22 sri maybe not
03:46 * mateu had a dream with home made pop tarts in it.
03:47 alnewkirk joined #mojo
04:12 arpadszasz left #mojo
05:05 k-man joined #mojo
06:25 vitalka joined #mojo
06:25 vitalka left #mojo
06:26 vitalka joined #mojo
06:27 vitalka Hi, mojopeoples!
06:27 vitalka Anybody home?
06:27 purl There's nobody here but us bots. or <reply>no
06:30 vitalka Could you consult me?
06:34 vitalka left #mojo
07:13 Foxcool joined #mojo
08:12 sugar joined #mojo
08:13 alnewkirk-away joined #mojo
08:15 alnewkirk left #mojo
08:15 alnewkirk-away is now known as alnewkirk
08:15 elb0w left #mojo
08:16 elb0w joined #mojo
08:16 jamesw left #mojo
08:16 jamesw joined #mojo
08:30 Foxcool left #mojo
08:47 yegor joined #mojo
08:49 Foxcool joined #mojo
09:32 vitalka joined #mojo
09:49 PerlNinja joined #mojo
10:47 arpadszasz joined #mojo
10:49 arpadszasz left #mojo
10:55 yegor left #mojo
10:56 perlrocks Twitter: "Mojolicious-Plugin-Authentication 1.11 by MADCAT - http://frepan.org/~madcat/Mojolic​ious-Plugin-Authentication-1.11/" --cpan_new http://twitter.com/cpan_ne​w/status/62107750079004672
10:59 yegor joined #mojo
11:13 Akron joined #mojo
11:33 perlrocks Twitter: "Mojolicious - знакомство с "вебом из коробки" http://www.dimio.org/mojolicious-z​nakomstvo-s-vebom-iz-korobki.html" (sw) --afiskon http://twitter.com/afiskon​/status/62116947340427264
11:56 media left #mojo
12:07 Foxcool left #mojo
12:10 perlrocks Twitter: "Mojolicious-Plugin-Disqus 1.20 by MADCAT - http://frepan.org/~madcat/Moj​olicious-Plugin-Disqus-1.20/" --cpan_new http://twitter.com/cpan_ne​w/status/62126136708177920
12:25 Foxcool joined #mojo
12:40 perlrocks Twitter: "Mojolicious-Plugin-Mongodb 1.06 by MADCAT - http://frepan.org/~madcat/Moj​olicious-Plugin-Mongodb-1.06/" --cpan_new http://twitter.com/cpan_ne​w/status/62133816495583233
12:44 yko joined #mojo
12:46 sh4 joined #mojo
12:56 diegok left #mojo
12:58 diegok joined #mojo
13:05 * sri yawns
13:11 * PerlNinja sticks a breadroll in sri's mouth
13:12 PerlNinja operation bitbucket-to-github is actually going nicely :P
13:12 sri *munch*
13:20 abra left #mojo
13:20 abra joined #mojo
13:27 sh4 left #mojo
13:28 perlrocks Twitter: "Mojolicious-Plugin-Database 1.05 by MADCAT - http://frepan.org/~madcat/Mojo​licious-Plugin-Database-1.05/" --cpan_new http://twitter.com/cpan_ne​w/status/62145780034703362
13:30 GitHub126 joined #mojo
13:30 GitHub126 mojo: master Sebastian Riedel * 24421d2 (1 files in 1 dirs): cleanup - http://bit.ly/gaFxP2
13:30 GitHub126 left #mojo
13:30 sugar left #mojo
13:37 mattastrophe left #mojo
13:37 Foxcool left #mojo
13:46 GitHub177 joined #mojo
13:46 GitHub177 mojo: master Sebastian Riedel * fd66746 (2 files in 2 dirs): updated WebSocket implementation to ietf-07 - http://bit.ly/dQfj9q
13:46 GitHub177 left #mojo
13:57 Foxcool joined #mojo
14:12 mateu PerlNinja: may I offer a suggestion for your Changes file?
14:14 GitHub166 joined #mojo
14:14 GitHub166 mojo: master Sebastian Riedel * f348ef0 (1 files in 1 dirs): added ietf-07 WebSocket masking - http://bit.ly/hOG6qT
14:14 GitHub166 left #mojo
14:15 sri only small changes to the websocket spec this time
14:16 sri 07 could be final
14:17 mateu that would be nice
14:18 kmx left #mojo
14:19 PerlNinja mateu: sure, go for it
14:19 PerlNinja the one you see on github isn't the one that goes into the dist, though
14:20 mateu I'd consider synthesizes the repo messages into something along the lines of CPAN::Changes::Spec
14:21 PerlNinja lemme take a look at that
14:22 PerlNinja yep makes sense
14:23 PerlNinja i think Dist::Zilla already dumps it out for me in that fashion but it'll take it from the git log, so can't really change that anymore - but will format accordingly for new stuff
14:27 kmx joined #mojo
14:27 PerlNinja thanks :D
14:46 mateu in my opinionated opinion a Change log should be something different than verbatim commit messages
14:47 mateu it's an opportunity to summarizes and categories the changes for easy human consumption
14:47 mateu summarize and categorize*
14:47 * mateu struggles with his native tongue
14:48 mateu Moose is a decent example of such
14:51 PerlNinja hmm dunno, I always feel it's a hassle to write commit messages and keep Changes up to date
14:51 PerlNinja mostly because Changes would duplicate that what's been committed in the first place
14:55 mateu it's about turning noisy commits into something more palatable - what you have now in Changes is as you say a duplication and a lot of useless stuff for a change log
14:56 mateu pardon my peskiness, but I figure you don't mind me ranting a bit
14:58 PerlNinja absolutely not :)
14:58 PerlNinja ranting is good
14:58 PerlNinja and yes my current Changes file is a dupe of the commit log line for line .. my old scripts did hg log > Changes, basically
14:59 PerlNinja retooling things to use Dist::Zilla so I can add things like critic tests, proper Changes files, the whole nine yards without having to do it by hand .. I'm a chaotic personality so I tend to flat out forget about things like that :)
15:01 mateu my point is I don't think an automated changes is necessarily a good thing.  I'd like to see a tool that could turn commit message into something more structured but haven't come across one
15:01 mateu let me know if you do
15:01 PerlNinja well that's what i was thinking of doing
15:01 PerlNinja i figure since i'm tagging things with version numbers on release
15:02 PerlNinja you could rock up all changes between the last release and the one you're doing, throw that in an editable file and auto-edit before proceeding so you can take your commit messages, and re-roll it into something sane
15:02 PerlNinja and then it gets written out to Changes
15:02 mateu how would you categorize statements?
15:02 PerlNinja cut, paste, liberal editing :)
15:02 mateu :)
15:03 PerlNinja I mean if I fix a security bug or something related to reported bugs, I'd list it as fixing issue #whatever
15:03 PerlNinja or at least mention 'fixed security issue' in a commit message somewhere
15:03 PerlNinja so using your commit messages you can just write a categorised list of things that need to be categorised
15:04 PerlNinja more often than not you don't have to categorise anything :d
15:04 PerlNinja .. categorize ... hm... stupid american english spelling :D
15:05 mateu while I'm ranting, mojolicious Changes could improve as well by categorizing a touch more as well
15:05 mateu No need for "Fixed" 10 times when a Fixes section heading will suffice
15:06 * mateu is a bit anal about the Tufte principle maximum-data-ink
15:06 sri mateu: i order them by importance
15:07 sri actually i don't like categories in Changes
15:08 sri but i agree about auto generated Changes files, they suck big time
15:11 sri in fact i think http://cpansearch.perl.org/src/​KRAIH/Mojolicious-1.21/Changes is much easier on the eyes than http://cpansearch.perl.org/src/​KRAIH/Mojolicious-1.21/Changes
15:11 sri ops
15:11 sri than http://cpansearch.perl.org/s​rc/DOY/Moose-2.0001/Changes
15:13 sri humans should be able to qickly skim over the Changes file without too much effort
15:16 GitHub33 joined #mojo
15:16 GitHub33 mojo: master Sebastian Riedel * cc9b999 (1 files in 1 dirs): fixed Changes formatting - http://bit.ly/fNShuV
15:16 GitHub33 left #mojo
15:18 yegor left #mojo
15:29 PerlNinja hmm i'm undecided, things can be said for both styles
15:30 PerlNinja on the other hand, do we really need a Changes file these days - everything's on github or bitbucket or whatever anyway, Changes files are a holdover from the days where you'd have to record what you did because there wasn't any version control, and no way for people to easily see what's gotten changed
15:33 stephanj version control? whats that?
15:34 * PerlNinja slaps stephanj with ... with ... a smelly poodle
15:34 stephanj i would say yes its needed, so you can see changes for current and maybe last 2-3 versions, but for more? you could also link to $somewebsite
15:35 PerlNinja to be honest i never look at changes files - if there's any backward compatibility breaking changes they're usually in the docs
15:36 marty joined #mojo
15:40 yegor joined #mojo
15:45 sri absolutely needed
15:45 sri Changes is for users, commit messages for developers
15:45 PerlNinja not like i'd not include it :) but formatting wise
15:46 PerlNinja the moose Changes file is not nice on the eyes for me
15:46 sri usually when i announce a new mojolicious version and i forget a Changes link people notice and complain
15:49 PerlNinja :D
15:50 moritz at least commit messages that are more specific than "cleanup" are for developers
15:52 * marcus is currently running: Finder, Skype, iTerm, App Store, Google Chrome, Xcode, Sparrow, Textual, iTunes - (9 Total)
15:53 PerlNinja "foo" and "fffuuuuuuuuuuu" aren't that useful for developers either :P
15:53 * PerlNinja isn't running anything that marcus is running :( I'm not hip.. no macbook for me :(
15:58 sri hmm, Textual looks like garbage
15:58 marcus sri:how so?
15:58 marcus It's a modified limechat
15:58 sri judging by the screenshots
15:58 marcus it's just a crappy default font :)
15:58 marcus I use it with Mesnch
15:59 marcus mensch even
15:59 marcus and it supports full-screen
16:01 yegor left #mojo
16:05 yegor joined #mojo
16:47 josh joined #mojo
17:23 Akron left #mojo
17:43 moritz in my debug output I see lines like
17:43 moritz Sun Apr 24 19:43:10 2011 debug Mojolicious::Plugin::EplRenderer:61 [8822]: Template "authorid.html.ep" not found.
17:44 moritz but the string 'authorid' appears nowhere in my code
17:44 moritz where does it come from?
17:44 sri "./myapp.pl routes"
17:45 moritz it mentions
17:45 moritz /author/:id               authorid              (?-xism:^/author/([^\/\.]+))
17:45 PerlNinja ooh
17:45 PerlNinja autorendering now uses the route's generated name?
17:45 moritz but that route has an exeplicit template => 'author',
17:46 sri PerlNinja: did for quite some time
17:46 moritz and I'm not using link_to either
17:46 moritz so I don't understand why an include (?) tries to use an 'authorid' template
17:48 sri well, i can only guess that you're doing something wrong
17:48 PerlNinja sri: okay been a long time since i used the auto-render bits :D
17:48 sri it's not just auto render
17:48 moritz does %== include with an even number of arguments does something magic?
17:48 * PerlNinja is currently messing with Mojolicious::Sessions >.>
17:48 sri $self->render; will use controller/action or route name too
17:48 PerlNinja *makes it sound much more sinister than it is to see whether sri is going to panic*
17:51 PerlNinja sri, you were right about github, moar features there than bitbucket
17:51 PerlNinja sri++
17:51 sri :)
17:52 marcus <3 github
17:54 marcus https://github.com/creationix/​wheat/blob/master/lib/wheat.js interesting to see how an actual node.js mvc app looks
17:54 marcus the router is pretty ugly
17:59 sri eww
18:01 PerlNinja ick
18:03 sri the only way to make a javascript webapp look good is to use coffeescript
18:05 stephanj which then hides the total uglyness?
18:05 * sri nods
18:15 PerlNinja showed that to a friend just now, he said "i always thought Perl was ugly, for that I'm sorry. JS is uglier. _O-"
18:16 sri haha
18:18 PerlNinja vindication!
18:21 PerlNinja too many windows
18:21 PerlNinja so yeah uhmm
18:21 PerlNinja where was i
18:21 sri actually
18:21 PerlNinja mojo.session
18:21 sri i could also turn session and flash into helpers
18:22 sri then you replace them as a whole
18:22 PerlNinja hmm, true, that might work better than doing what i'm doing
18:22 PerlNinja on the other hand the thing is that that subclass way
18:23 PerlNinja flash behaviour doesn't change at all, and it doesn't need to - I'm just sort of sticking my nose into load() and store() to grab the bits that need to go to the DB, the rest  goes thru the standard mechanism
18:23 PerlNinja although the only value in the entire session would be expires, and session_key
18:24 mattastrophe joined #mojo
18:24 PerlNinja so one way or the other I guess it boils down to what's easier - I don't mind doing it this way to be honest
18:24 * sri is unsure
18:25 * PerlNinja is also unsure as to what'd be better
18:25 sri well, i have no plans to change mojo.session, but since it's private there is always a risk
18:25 PerlNinja yeah okay but that's more something that ends up on my plate at that point
18:25 sri or wait
18:26 sri wait wait
18:26 * PerlNinja wait(3)
18:26 sri you don't need that
18:26 sri of course, you can delete stuff from the hash
18:26 sri my $hash = $self->session
18:27 sri no need to touch anything private there
18:27 PerlNinja \o/
18:27 PerlNinja didn't even think of that
18:28 sri let me just make a small change
18:28 PerlNinja sure no prob, i'm nowhere near done with anything so it's all good
18:29 sri i'll prefix flash/new_flash with mojo. so you can consider them private too and just ignore session keys prefixed with mojo.
18:29 PerlNinja cool
18:30 PerlNinja is there such a thing as $self->session though? which $self are we talking about, Mojolicious::Sessions or Mojolicious::Plugin?
18:30 PerlNinja or app
18:30 sri controller
18:30 purl rumour has it controller is all fine until someone writes another app that uses the same db/model
18:30 PerlNinja hmm okay so i can get to it by hooking (before|after)_dispatch then, right?
18:35 sri hmm, or actually renaming flash makes no sense... since you need to implement it with server side storage
18:35 sri i would still go with overloading i think
18:36 PerlNinja the thing with flash is though that it's not really necessary to store that server side
18:36 PerlNinja since it's not supposed to last between requests.. (mojo.static notwithstanding)
18:36 mattastrophe left #mojo
18:36 PerlNinja although it would let you flash across browsers ... that's my main reason for writing this plugin, $work project has a requirement that people can log in from different browsers and end up on the same session state
18:37 sri hmm
18:37 PerlNinja or rather, if they've logged in on their desktop and they're logged in on their ipad
18:37 PerlNinja if they push a button on one, the end result needs to show up in both places
18:38 sri guess i'll not change anything and just let you do your thing, can always clean up later
18:38 PerlNinja heheh
18:38 sri better to base these decisions on actual experience ;p
18:39 PerlNinja one thing that could be done though if it's not going to turn out confusing
18:39 PerlNinja is add an accessor in Mojolicious::Sessions to get to mojo.session
18:39 PerlNinja at least I won't be poking around directly in the stash
18:39 sri $c->session
18:39 purl $c->session is always browser session
18:39 PerlNinja wups
18:39 PerlNinja forgot about that one
18:40 PerlNinja ok that works then :D
18:40 sri \o/
18:45 * PerlNinja codes
18:45 PerlNinja actually... I'm doing things differently for a change. I'm writing tests and docs before coding... usually I do it the other way around
19:26 marcus hmm
19:26 marcus a mojo port of squeezebox server would be pretty cool
19:39 perlrocks Twitter: "http://is.gd/gN2cYd #mojowka now show pages in #russian too. Language detectd by Accept-Language or explicit user choice. #mojolicious #perl" --shoorick77 http://twitter.com/shoorick​77/status/62239227294912513
19:39 snearch joined #mojo
19:41 PerlNinja squeezebox?
19:41 purl squeezebox is, like, The Original, now with 802.11g and optical outputs, at http://www.slimdevices.com or now with RSS feeds of ANYTHING or built on Linux and Perl, streams audio from anywhere and outputs to my home stereo, with excellent software available for $any_platform
19:41 PerlNinja apa itu?
19:41 PerlNinja oh
19:42 PerlNinja damn that bot
19:42 purl damn that bot is annoying
19:42 sri lol
19:42 PerlNinja o_O
19:43 mattastrophe joined #mojo
20:05 sugar joined #mojo
20:24 Foxcool left #mojo
20:27 marcus http://svn.slimdevices.com/slim/7.4/trunk/
20:27 marcus server is perl
20:31 snearch left #mojo
20:35 marcus they are bundling cpan dependencies.
20:36 sri that does not look very maintained
20:36 marcus agrundman works on it.
20:37 marcus last commit  to 7.6 trunk was 8 hours ago
20:37 marcus wonder why they don't use github
20:37 marcus (agrundman/andyg)
20:37 sri oh, your link was just bad
20:37 marcus purl: seen andyg
20:37 purl andyg was last seen on #catalyst-dev 1 years, 171 days, 1 hours, 55 minutes and 32 seconds ago, saying: it never got ported to M::I?  [Nov  4 18:42:21 2009]
20:38 marcus sri: 7.4 is the release version, 7.6 is development trunk
20:38 * marcus has a squeezebox, and is running squeezeserver on his mac mini
20:38 marcus also have squeezebox software for the iphone/ipad
20:39 sri last i heard about squeezebox was like 4 years ago
20:39 marcus when they got bought by logitech?
20:39 sri ye
20:39 * moritz uses Debian/Squueze
20:39 PerlNinja hey sri, is there a way for a plugin to figure out if another plugin has been loaded? obviously if they're loaded in the correct order
20:40 marcus sri: they've made a few cool devices - http://www.logitech.com/no-no/spea​kers-audio/wireless-music-systems
20:40 sri PerlNinja: no standard one
20:40 PerlNinja ah ok
20:41 PerlNinja I just ran into an interesting problem, since there's no such thing as Catalyst's Authentication plugin, having per-user sessions instead of per-browser sessions turns into a bit of a ... fun one. And I don't want to require people to use my auth plugin either, so .. hm.. time to get creative :)
20:42 PerlNinja just wanted to see if there's a way to figure out *if* my auth plugin's loaded, that I can use that to deal with part of it
20:42 marcus uhm
20:42 moritz PerlNinja: require a callback that returns the current user
20:43 marcus do you really need per user sessions?
20:43 PerlNinja marcus, I do
20:43 marcus PerlNinja:because you want to have multiple people logged in at the same time?
20:43 PerlNinja marcus: no, I want the same user to be able to log in on multiple devices at the same time and end up with the same session data
20:43 PerlNinja normally speaking sessions are per-device (read: browser)
20:46 PerlNinja just that for $work-project, i need per user sessions
20:46 PerlNinja so I figured, if I'm going to do a session plugin i might as well make it able to use that so i can eat my own dogfood :)
20:52 sugar left #mojo
20:58 amonaco joined #mojo
20:58 daviddelikat joined #mojo
20:59 vitalka left #mojo
21:06 amonaco left #mojo
21:07 amonaco joined #mojo
21:16 marcus PerlNinja: sounds like a bad architecture to me. At that point, I would just treat the data as model data.
21:18 PerlNinja mm yeah, but then you get into the region of adding dispatch hooks to your app just to load this model data :)
21:18 PerlNinja reason i'm turning it into a plugin is so that everyone can do it without having to dive deep
21:19 PerlNinja architecture wise, it's all nicely split off into separate modules, so if you just want to use sessions that get stored in database, that's fine, per user is optional and it does some voodoo to swap out the right pieces here and there
21:19 marcus PerlNinja: I'd just add it to the auth bridge, myself.
21:20 marcus if it's something you need in all authed requests
21:20 PerlNinja yeah
21:20 PerlNinja you'd do that, I'd do that :)
21:20 PerlNinja just saying, there's a reason Catalyst got popular and that's because there's a lot of plugins, so a lot of DRY
21:21 marcus PerlNinja: well, rails got popular despite dhh stating that an auth system is too high-level to do well generally :p
21:21 PerlNinja that's why I did that auth plugin - it's easy enough to do in a bridge, but even easier if all that stuff gets done for you and all you have to worry about is checking user_exists, or even going over(authenticated => 1)
21:21 marcus personally, I think the catalyst auth system is an abomination, and I've used it more than most.
21:21 PerlNinja marcus: mmm I'll leave my opinion about dhh out of this :D
21:21 PerlNinja marcus, I agree
21:21 PerlNinja which is why I didn't want to turn my auth plugin into something like it
21:22 PerlNinja all it does is take care of the nitty gritty details, after that, you'll still have to tell it how to load a user and how to check that a username and a password are okay
21:23 PerlNinja most of my plugins are things I used already, it's just that as soon as I need to use the same thing in two different apps, I'm turning it into a plugin because it's going to save my ass a lot of typing and messing about if I have to fix something
21:23 PerlNinja and if I write them anyway, I figure i might as well throw them on CPAN - people don't have to use it after all ;)
21:23 PerlNinja also: I am under the influence of 2 cans of red bull so if I start wall-of-texting .. sorry :D
21:24 gshank_ joined #mojo
21:24 yegor left #mojo
21:26 perlrocks Twitter: "[EN] Mojolicious-Plugin-Authentication 1.11 by MADCAT - http://frepan.org/~madcat/Mojolic​ious-Plugin-Authentication-1.11/" --OneTimeCode http://twitter.com/OneTimeCo​de/status/62266062238003200
21:26 marcus no worries, I've had 3 beers :p
21:26 PerlNinja ooh
21:26 PerlNinja beer
21:27 PerlNinja still got a couple in the fridge
21:27 PerlNinja 4:30am though so a bit... ehr.. early.. or late.. to start
21:27 marcus mmm
21:28 PerlNinja yay twitter content farm
21:28 gshank left #mojo
21:29 marcus frepan.org_
21:29 marcus ?
21:31 * marcus has read some slimserver code now, backs away slowly
21:38 PerlNinja ugly?
21:38 purl well, ugly is in the mind of the becuddler
21:39 plu left #mojo
21:41 plu joined #mojo
21:50 marcus huge
21:50 marcus it uses anyevent and http::daemon
21:51 PerlNinja o_O
21:51 * PerlNinja backs away even further
22:03 perlrocks Twitter: "Mojolicious-Plugin-Disqus 1.21 by MADCAT - http://frepan.org/~madcat/Moj​olicious-Plugin-Disqus-1.21/" --cpan_new http://twitter.com/cpan_ne​w/status/62275597967163392
22:43 amonaco left #mojo
22:49 sri damn, i'm running out of tv shows to watch again :/
23:07 mattastrophe left #mojo
23:11 PerlNinja well.. that session thing turned from something semi-simple into something probably horridly over-engineered
23:18 PerlNinja imma sleep on that one
23:18 PerlNinja left #mojo
23:31 marcus sri: watching game of thrones, I assume
23:31 marcus sri: tried Chaos?
23:31 sri of course
23:31 sri nope
23:31 marcus CIA thingie
23:31 sri comedy?
23:31 purl it has been said that comedy is when a rabbi, a priest and a monk walk into a bar and the bar tender says, "hey, is this some kind of joke?"
23:32 sri i'd like a new crime or scifi series
23:32 sri but also thinking about starting with weeds, breaking bad or 30 rock
23:35 marcus sri: Breaking bad is awesome
23:35 marcus must see
23:35 sri sounds a bit boring
23:36 marcus 9.3 on imdb ;)
23:36 marcus with 8k votes
23:37 marcus also, did you see the wire?
23:38 sri nope, i'm not really into those drug dramas

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