Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-01

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

All times shown according to UTC.

Time Nick Message
00:09 taryk joined #mojo
00:11 * tempire is powerless
00:11 tempire vervain ^
00:12 tempire that's the only windows user I know of
00:21 sri hmm, i don't really like the ->close semantics
00:23 GitHub31 joined #mojo
00:23 GitHub31 [mojo] kraih pushed 1 new commit to master: http://git.io/QTPRYA
00:23 GitHub31 [mojo/master] removed close method from Mojo::Log again - Sebastian Riedel
00:23 GitHub31 left #mojo
00:26 sri i actually tend towards removing the whole thing again
00:38 SmokeMachine_ joined #mojo
01:32 tempire joined #mojo
01:44 GitHub62 joined #mojo
01:44 GitHub62 [mojo] kraih pushed 1 new commit to master: http://git.io/OcQgTw
01:44 GitHub62 [mojo/master] removed USR1 support from Hypnotoad again - Sebastian Riedel
01:44 GitHub62 left #mojo
03:02 GitHub124 joined #mojo
03:02 GitHub124 [mojo] kraih pushed 1 new commit to master: http://git.io/rnKh9g
03:02 GitHub124 [mojo/master] added reopen method to Mojo::Log - Sebastian Riedel
03:02 GitHub124 left #mojo
03:02 sri better solution
03:02 purl somebody said better solution was to deny access to assholes
03:02 sri !
03:27 jzawodn joined #mojo
04:31 arpadszasz joined #mojo
05:54 tempire behold the future
05:54 tempire https://img.skitch.com/20120401​-nbh72kjm6uhjk657ty2dib9h49.png
06:15 venkatk_ joined #mojo
06:34 xenu joined #mojo
07:04 d4rkie joined #mojo
07:09 D4RK-PH0ENiX joined #mojo
08:00 Htbaa joined #mojo
08:16 Leandr joined #mojo
08:59 * memowe is happy now.
09:05 abra joined #mojo
09:12 Psyche^ joined #mojo
09:16 chorny joined #mojo
09:16 inokenty joined #mojo
09:20 batman i got  an app, with controllers and such. how should i organize my code if i have common methods i want to share in multiple controllers?
09:20 batman are plugins my option?
09:21 batman or should i create classes which i extend the controller code on?
09:22 memowe What do that common methods do?
09:23 batman they provide methods to look up information in a database
09:24 batman other methods create webpages which can be used in multiple resources
09:24 batman such as /foo/blogg/edit and /blogg/edit ...
09:24 memowe What about bridges or waypoints?
09:26 judofyr joined #mojo
09:26 memowe But maybe you just want to use Perl classes that provide that stuff and 'use' them in your controller code.
09:27 batman hm.... need to read more about bridgers and waypoints i guess
09:27 batman memowe: and let them export methods, kind of like roles?
09:28 batman or is there some module i can use that provide me with a role-like-concept in mojolicious?
09:31 judofyr joined #mojo
09:31 memowe Controllers are classes. You could use multiple inheritance.
09:32 batman yes, i could...
09:32 memowe you could also add your own helpers.
09:32 batman i think adding helpers i kind of messy when i don't need them everywhere
09:33 batman i guess i'm going for multiple inheritance
09:34 memowe What's wrong with
09:34 memowe has blog_thing => sub { My::Blog::Thing->new };
09:34 memowe and later
09:34 memowe my $thong = $self->blog_thing->gimmeh_thong;
09:37 batman nothing really. i think you're on to something... maybe i've put too much logic into my controller
09:37 memowe And you don't need multiple inheritance. Just create your own Mojolicious::Controller sub class and use it for your controllers
09:38 memowe TIMTOWTDI :)
09:38 batman indeed
09:39 batman memowe: i think i actually just want to move the code to my model, and make my controller thinner
09:41 memowe sounds great. :)
09:41 jwang joined #mojo
09:42 batman yep. thanks!
09:54 mire joined #mojo
10:12 abra joined #mojo
10:37 taryk joined #mojo
11:11 mire joined #mojo
11:19 abra joined #mojo
11:25 marcus hi peeps
11:27 marcus batman: thin controllers and phat models rule :)
11:27 batman indeed they do :)
11:27 * marcus plays with Mojolicious-Boilerplate
11:28 batman https://github.com/tudorconst​antin/Mojolicious-Boilerplate ?
11:28 marcus mmm
11:29 marcus wooop, it pulls in a shitload of modules.
11:36 marcus it`s kinda neat, but I think we need something generator based, and with a tag library.
11:36 * marcus is really happy with his tmux+vim setup now. bluetooth keyboard+ipad == dev joy.
11:39 inokenty I played with tmux for a time but then returned to screen
11:40 marcus why?
11:41 marcus I`ve got it mapped to "`" now
11:41 marcus so `` to switch between last two windows is handy :)
11:42 inokenty Dunno. I didn't use all the features that tmux provide )
11:42 jamesw the dungeon collapsed too many times on me for me to go back to screen
11:43 marcus iterm has native tmux support too now for us mac freaks
11:46 inokenty Does tmux support 256 colors?
11:46 jamesw yeah
11:47 jamesw tmux -2 if it doesn't do it by itself
12:19 crab i never found a reason to switch to tmux from screen
12:33 crab caching the results of complex calculations can be hard.
12:34 crab * Awesome Perl microframework inspired by [Sinatra](http://www.sinatrarb.com/)
12:54 * sri yawns
13:06 baton8 joined #mojo
14:24 tempire joined #mojo
14:52 batman i'm a bit confused about the session... i got a session_id stored in the session, which again map to an session object in my database, which again map to the account
14:53 batman is that any safer than just storing the account id in the session cookie?
14:56 Leandr joined #mojo
14:58 xenu joined #mojo
15:16 GitHub141 joined #mojo
15:16 GitHub141 [mojo] kraih pushed 2 new commits to master: http://git.io/fF_zew
15:16 GitHub141 [mojo/master] small documentation tweaks - Sebastian Riedel
15:16 GitHub141 [mojo/master] more Mojo::Log tests - Sebastian Riedel
15:16 GitHub141 left #mojo
15:18 * sri would appreciate test runs on windows
15:26 GitHub43 joined #mojo
15:26 GitHub43 [mojo] kraih pushed 1 new commit to master: http://git.io/X3813w
15:26 GitHub43 [mojo/master] better Mojo::Log multi-line test - Sebastian Riedel
15:26 GitHub43 left #mojo
15:46 Psyche^ joined #mojo
16:03 vel joined #mojo
16:41 GitHub134 joined #mojo
16:41 GitHub134 [mojo] kraih pushed 1 new commit to master: http://git.io/xWsFVA
16:41 GitHub134 [mojo/master] better log file reopening tests - Sebastian Riedel
16:41 GitHub134 left #mojo
16:51 sri ok, i think tests are ok now
16:51 sri tempire, crab, marcus: thoughts on the functionality?
16:52 sri log rotation is possible with USR2 signal too, but USR1 is a lot cheaper
17:03 taryk joined #mojo
17:08 taryk joined #mojo
17:25 sri btw. if there is no feedback whatsoever i will assume nobody cares and remove it
17:26 taryk joined #mojo
17:31 inokenty1 joined #mojo
17:35 taryk joined #mojo
17:44 GitHub162 joined #mojo
17:44 GitHub162 [mojo] kraih pushed 1 new commit to master: http://git.io/hWJubA
17:44 GitHub162 [mojo/master] removed reopen method from Mojo::Log again - Sebastian Riedel
17:44 GitHub162 left #mojo
17:46 * crab sighs
17:47 abra joined #mojo
17:47 inokenty joined #mojo
17:48 sri in the past i would have marked it as experimental, but apparently our users want more stability, so i'll just not add anything i'm not 100% sure about ;p
17:49 taryk joined #mojo
17:58 asarch joined #mojo
18:02 stephan48 sri: just mark whole api as experimentall...
18:02 sri stephan48: ?
18:02 stephan48 then you can simply throw in and remove features when you want
18:03 sri umm, how does that help mojolicious?
18:03 stephan48 idk
18:04 sri why did you suggest it then?
18:04 stephan48 idk
18:05 stephan48 you complain about stable api and no experimental features so i suggest making everything experimental
18:05 batman sri: don't see why there should be an issue with marking an api as experimental
18:05 batman i like that
18:05 batman if people have an issue with that, then they should avoid the experimental bits
18:06 taryk joined #mojo
18:07 batman it's a bit anoying when things suddenly breaks, but that's my own fault not bothering to read the Changes file
18:07 batman imho ^
18:09 tempire_ joined #mojo
18:09 tempire_ batman: that's exactly what helpers are for
18:10 batman tempire_: adding experimental stuff?
18:10 tempire_ regarding your conversation with memowe earlier
18:11 tempire_ and/or plugins
18:11 tempire_ since they're essentially the same thing.
18:11 batman so your comment has nothing to do with what sri said about experimental features?
18:11 tempire_ correct.
18:11 batman :D
18:11 batman ok
18:12 batman so i sorted that one out. my code is cleaner now...
18:12 batman tempire_: since you're scrolling back... got any comment on the security/session question i had as well? :)
18:24 marty joined #mojo
18:24 tempire batman: just store the account id in the session directly
18:24 zivester joined #mojo
18:25 tempire the account id is fine, just don't store a bunch of stuff in the session
18:25 batman but is that secure? i don't have ssl
18:26 tempire is the account id something that should be kept secret?
18:26 zivester joined #mojo
18:26 tempire generally the account id can be public information, just like a username
18:26 batman i'm just trying to avoid others from stealing the cookie and logging in as the original user...
18:27 batman once logged in, i trust the session id...
18:27 sri that's what an expiration date is for
18:27 tempire if someone is monitoring the connection, you would have the same problem using a session id in the session
18:28 batman sri: what do you mean?
18:28 tempire you're always going to be susceptible to a firesheep-like attack without ssl
18:28 sri our session is more secure than a signed cookie because we store the expiration date in it too
18:28 tempire batman: http://toroid.org/ams/etc/m​ojolicious-session-cookies might help
18:29 batman sri: how is that more secure?
18:29 batman tempire: *reading*
18:29 kmx joined #mojo
18:29 taryk joined #mojo
18:29 sri because the expiration time can't be tampered with
18:30 tempire batman: he's saying it's more secure because it can't be used at a later time
18:30 batman ok
18:32 batman but the cookie is valid during that timeframe by anyone?
18:32 batman so i need ssl :)
18:33 tempire yes.  ssl is never a bad idea.
18:33 batman hehe
18:33 tempire there's no noticeable performance hit, according to the googles.
18:33 tempire and a cert costs $20 from the right registrar
18:33 batman no, i heard so as well at last years yapc
18:33 zivester joined #mojo
18:33 batman about 0.01% or something like that :)
18:34 sri googles view of the situation is a bit onesided
18:36 tempire sri: in that it's only one opinion, or for another reason?
18:36 taryk joined #mojo
18:37 sri there have been many discussions in the http working group about this
18:38 sri pretty much everybody else than google agrees that the performance hit of ssl is signaificant enough to rule out its use in many cases
18:38 tempire hmm
18:38 sri google is also not impartial
18:38 purl okay, sri.
18:39 sri by promoting ssl everywhere tracking users gets much easier for them
18:39 sri i'm pretty sure they would be more than happy to kill off intermediaries
18:39 sri tracking corporate users behind the firewall is a huge ad market
18:40 tempire so the options currently are firesheep or be tracked?
18:40 sri there have been talks about hop by hop tls encryption
18:40 sri but that has other problems of course
18:41 sri like that you couldn't trust the little green lock in your browser anymore when connecting to your bank
18:42 taryk joined #mojo
18:45 marcus_ joined #mojo
18:46 tempire sigh
18:46 zivester joined #mojo
18:46 * tempire liked the world better before google started descending into evil
18:50 batman http://www.google.com/intl​/en/chrome/multitask.html :)
18:50 batman not all evil :)
18:50 tempire I prefer the google tap
18:52 inokenty joined #mojo
18:52 taryk joined #mojo
18:56 sri google has not done much recently that wasn't evil
18:57 tempire indeed.  even their april fools things now come across to me as trying to gloss over the other stuff.
18:57 sri i'm a little scared that they will ruin gmail
18:58 tempire yeah.  that's still the superior product, by a long shot.
18:58 sri search is already border line broken
18:58 tempire how do you figure?
18:58 sri social everywhere is annoying as hell
18:58 sri and when they roll out google comments it's going to be a total mess
18:59 tempire not familiar with that
18:59 sri it's not official yet
18:59 sri but i heard from multiple sources that they are going to copy facebook comments
19:00 sri and include comments in google search and stuff
19:00 sri blogs using google comments get higher ranking in search results
19:00 sri all out evil to force google+ upon us
19:01 sri it's pretty clever
19:01 taryk joined #mojo
19:19 SmokeMachine_ joined #mojo
19:21 taryk joined #mojo
19:21 mojocasts joined #mojo
19:27 hide I switched to Duck Duck Go
19:29 tempire I still like googles search results better
19:30 taryk joined #mojo
19:30 taryk left #mojo
19:33 judofyr joined #mojo
19:38 tempire cpanfile release!
19:38 xaka joined #mojo
19:41 vel joined #mojo
19:48 judofyr joined #mojo
19:54 hide I find DuckDuckGo's code searches better, especially for Perl modules with the ::
20:30 xenu_ i personally prefer bing because of pretty background image
20:30 xenu_ but google still has better results
20:51 xenu left #mojo
21:18 GitHub83 joined #mojo
21:18 GitHub83 [mojo] kraih pushed 1 new commit to master: http://git.io/lKj5Nw
21:18 GitHub83 [mojo/master] updated bug reporting FAQ answer - Sebastian Riedel
21:18 GitHub83 left #mojo
21:33 GitHub93 joined #mojo
21:33 GitHub93 [mojo] kraih pushed 1 new commit to master: http://git.io/hD92kQ
21:33 GitHub93 [mojo/master] no implicit return values - Sebastian Riedel
21:33 GitHub93 left #mojo
21:40 sri oh, game of thrones is back
21:40 sri \o/
21:47 lukep joined #mojo
22:12 GitHub143 joined #mojo
22:12 GitHub143 [mojo] kraih pushed 1 new commit to master: http://git.io/JK_6AA
22:12 GitHub143 [mojo/master] improved version command to detect proxy servers automatically - Sebastian Riedel
22:12 GitHub143 left #mojo
22:20 ndiewald joined #mojo
22:28 GitHub144 joined #mojo
22:28 GitHub144 [mojo] kraih pushed 1 new commit to master: http://git.io/EOyJ6w
22:28 GitHub144 [mojo/master] mention mailing list in feature FAQ answer - Sebastian Riedel
22:28 GitHub144 left #mojo
23:14 Liam joined #mojo

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