Camelia, the Perl 6 bug

IRC log for #mojo, 2011-12-14

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

All times shown according to UTC.

Time Nick Message
00:00 Alias left #mojo
00:02 MojoGuest549 joined #mojo
00:02 MojoGuest549 From: http://www.google.com/m?ie=UTF-8&a​mp;oe=UTF-8&sourceid=navclient​&gfns=1&q=websockets+demo (1 hits)
00:02 MojoGuest549 hi
00:03 vervain If only it was next week... and xmas holiday had started... coffee with brandy would be in order. ;-)
00:05 MojoGuest756 joined #mojo
00:05 MojoGuest756 From: http://blog.kraih.com/perl-is-ready-for-html5 (73 hits)
00:07 MojoGuest171 joined #mojo
00:10 j3nnn1 joined #mojo
00:26 random joined #mojo
00:39 GitHub97 joined #mojo
00:39 GitHub97 [mojo] kraih pushed 1 new commit to master: http://git.io/A2t3Bw
00:39 GitHub97 [mojo/master] improved Mojo::Asset::File to support file handles - Sebastian Riedel
00:39 GitHub97 left #mojo
00:39 sri someone else just gave me a sensible use case
00:40 tempire what was it?
00:40 * vervain was thinking the same thing ;-)
00:40 sri 3rd party libraries that insist on working with file handles, such as image manipulation
00:41 vervain I do thank you... Earlier I was thinking the my project is likely to bump into this... I just didn't have a use case available yet.
00:44 ispeak joined #mojo
00:49 sri ->move_to of course doesn't work, not sure how to deal with that
00:49 sri it will just die now
00:51 tempire that sounds bad
00:51 xaka probably there should be Assest::Handle?
00:52 xaka Assest::File could be on top of it
01:03 noganex_ joined #mojo
01:08 sri hmm, i don't like the move_to problem
01:10 mattastrophe joined #mojo
01:13 sri making it work is too much trouble for too little gain
01:20 sri actually considering removal again
01:35 chansen_ joined #mojo
01:35 GitHub35 joined #mojo
01:35 GitHub35 [mojo] kraih pushed 1 new commit to master: http://git.io/78sDfg
01:35 GitHub35 [mojo/master] removed handle support from Mojo::Asset::File again and fixed small bug - Sebastian Riedel
01:35 GitHub35 left #mojo
01:35 noganex joined #mojo
01:36 sri yea, move_to problem is not worth it
01:37 sri not useful enough for the maintenance overhead imo, feel free to discuss
01:44 sri now it needs to be a strong use case, which i kinda doubt exists
01:52 yaxar joined #mojo
01:53 sri anyway, i'm gonna experiment with icecream and alcoholic beverages now :)
01:53 sri *hic*
02:01 tempire I understand the desire to make it support handles
02:01 tempire but I don't think it fits with it's current purpose.
02:02 tempire it would only make sense if asset was further abstracted
02:02 tempire but since it's purpose is to support other aspects of mojolicious, rather than to stand on its own...
02:03 tempire in other words, it would need to be rethought in order to support handles well.
02:17 crab tempire: what does it mean, to support handles?
02:17 tempire ->new(handle => IO::File->new))
02:18 tempire see request made earlier by augensalat
02:26 gshank joined #mojo
02:51 sri yea, Mojo::Asset::File is simply path based
02:52 sri we could actually hide the handle
03:13 jnap joined #mojo
03:18 xaka joined #mojo
03:35 Psyche^ joined #mojo
03:51 mire_ joined #mojo
03:55 yaxar joined #mojo
04:36 GitHub17 joined #mojo
04:36 GitHub17 [mojo] kraih pushed 1 new commit to master: http://git.io/y-Fw_Q
04:36 GitHub17 [mojo/master] better Mojo::Asset::File documentation - Sebastian Riedel
04:36 GitHub17 left #mojo
04:37 sri that should help
04:56 d4rkie joined #mojo
04:58 ispeak joined #mojo
05:01 d4rkie joined #mojo
06:36 Vandal joined #mojo
06:47 koban joined #mojo
06:53 gshank joined #mojo
06:56 jmmills joined #mojo
07:12 sugar joined #mojo
07:15 MojoGuest914 joined #mojo
07:15 MojoGuest914 From: http://blog.kraih.com/perl-is-ready-for-html5 (74 hits)
07:24 cosimo joined #mojo
07:29 marcus sri: nice
07:41 arpadszasz joined #mojo
07:49 sugar joined #mojo
07:51 marcus sri: did you see the new popups for snippets in tm2?
07:52 sri marcus: nope, after all my settings reset i decided to switch back to tm1 and get stuff done ;p
07:53 marcus hehe :)
07:53 sri but i saw your tweet
07:53 * marcus lives on the bleeding edge
07:53 sri that looks cool indeed
07:53 marcus I tweeted that after I IRCed :)
07:53 marcus multiple carets is pretty sweet as well, specially combined with find all
07:53 sri i just was it pop up when i irced it, dude
07:57 chansen joined #mojo
07:57 perlite joined #mojo
07:57 metaperl joined #mojo
07:58 alnewkirk joined #mojo
07:58 sri bundle editor is also a pretty bad experience
07:58 marty joined #mojo
07:59 sri couldn't figure out how to get my bundle in there for updating
08:00 sri heard there's an Avian directory somewhere i can copy stuff in, not investigated yet though
08:01 noganex joined #mojo
08:02 marcus Yeah, I saw the bundle editor isn't considered done
08:03 marcus I thought it was easier to get an overview there than in the old bundle editor tho.
08:21 batman joined #mojo
08:21 berov joined #mojo
08:37 judofyr joined #mojo
08:43 spleenjack joined #mojo
08:43 sugar joined #mojo
08:51 plu the Avian directoy should be there: ~/Library/Application\ Support/Avian
08:52 sugar joined #mojo
08:52 plu I head problems with some old bundles too, so I switched back to TM1 again :(
08:57 marcus plu: gruber had the same problems
08:57 marcus with the perl support
08:58 plu yea, I saw your tweet
08:58 aleksey joined #mojo
09:02 marcus I used TM2 as my work editor all of yesterday, and I'm planning on using it today as well
09:02 marcus hmm, need to add a 'prove' command
09:03 plu :)
09:05 kd give me emacs or give me death
09:08 * marcus beheads kd
09:09 crab avian directory? that sounds interesting.
09:10 plu yea, that's where TM2 puts the bundles you create via the bundle editor
09:10 plu the "not managed ones"
09:11 marcus kd: https://github.com/ivanvpenchev/Mojoforum this time I demanded a Makefile.PL before approving ;)
09:12 crab oh, it doesn't have anything to do with birds?
09:12 marcus crab: it's the textmate 2 code name
09:12 marcus (Avian)
09:14 sri what the hell was he thinking with the double click?
09:15 sri that has to be one of the biggest ux screwups ever
09:16 plu :D
09:16 plu maybe he's planning a windows port :)
09:17 marcus agree, double click is a big fuckup
09:23 marcus but I only ever use cmd-t anyways
09:33 arpadszasz joined #mojo
09:41 AmeliePoulain joined #mojo
09:43 TheAthlete joined #mojo
09:46 plu mh
09:46 plu the new cmd+t is really a big improvement, since you can use parts of folder names now as well
09:47 plu on TM1 I had a separate plugin for that
10:08 dryman joined #mojo
10:12 kd marcus: \o/
10:17 guest43190 joined #mojo
10:20 sri \o/
10:31 marcus https://github.com/kraih/mojo/issues/242 seems a bit silly
10:31 marcus I would like a better json test method, but regexes?
10:34 sri yea
10:34 sri also a bit dramatic
10:35 sri you have to use "like $t->tx->res->body, qr//;"… oh the horror
10:37 sri also
10:37 sri how is his suggestion any different from $t->content_like()?
10:41 GitHub13 joined #mojo
10:41 GitHub13 [mojo] kraih pushed 1 new commit to master: http://git.io/tg2PeA
10:41 GitHub13 [mojo/master] better test example - Sebastian Riedel
10:41 GitHub13 left #mojo
10:42 sri to make the possibilities absolutely obvious
10:46 sri wonder if the websocket tests get used a lot
10:46 sri remember, no feedback and they vanish again!
10:51 marcus sri: I think we should wait a bit for browsers to catch up with web sockets before making any judgements
10:51 marcus sri: are we up to the final spec now?
10:51 sri we are
10:52 marcus nice
10:56 sri i'm also not really serious about the vanish part, i actually use those tests myself ;p
11:00 marcus I closed the test feature request with a link to your improved documentation
11:05 sri Test::Deep should be nice for json comparisons
11:05 marcus yeah
11:50 * marcus RELEASES THE FLYING MONKEYS
11:50 marcus FLY MY BEAUTIES
12:07 MojoGuest790 joined #mojo
12:07 MojoGuest790 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (8 hits)
12:09 MojoGuest41 joined #mojo
12:09 MojoGuest41 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (9 hits)
12:10 MojoGuest466 joined #mojo
12:10 MojoGuest466 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (10 hits)
12:29 janus joined #mojo
13:01 cosmincx joined #mojo
13:01 berov1 joined #mojo
13:05 ispeak joined #mojo
13:09 Andrei666 joined #mojo
13:18 spleenjack joined #mojo
13:20 abra joined #mojo
13:23 berov joined #mojo
13:26 Patterner joined #mojo
13:41 Andrei666 i have a more complicated issue in mojo, regarding multiple controllers
13:41 Andrei666 does anyone has time for a talk in private?
13:42 jnap joined #mojo
13:44 crab just explain what you're doing on the channel
13:44 crab that way everyone can help you
13:44 crab and judging by the kinds of things you seem to want to do, you could use all the help you can find.
13:45 Andrei666 thanks crab, i'll try...though it's a little complicated
13:46 spleenjack joined #mojo
13:48 vervain There's your problem... stop building complicated stuff. :-)
13:48 Andrei666 :))
13:48 Andrei666 true true :P
13:48 marcus I agree
13:48 marcus make easy things
13:50 memowe ;)
13:50 vervain Says me who's re-inventing the double-entry bk wheel!
13:50 Andrei666 i have 2 controllers with actions that return something like render($foo => 'bar'),
13:50 Andrei666 and they are called in another controller, and it's view renders them again..these crontrollers, are actuall tabs in css
13:50 Andrei666 the problem is that if I have the same variable names in both of the controllers, their value will be the same...wich i don't really want
13:51 Andrei666 i have solved this problem bot not in a good fashion, something like this $_controller1_foo and $_controller2_foo
14:00 marcus sounds like a weird architecture.
14:00 marcus Andrei666: why would your variables be the same across namespaces? Aren't they localized?
14:01 sugar joined #mojo
14:01 Andrei666 indeed it is weird...
14:01 Andrei666 they are localized and scoped for each controller
14:01 Andrei666 but...
14:01 marcus Andrei666: Mojolicious controller classes are just perl classes.
14:02 Andrei666 (there always is a but) :p
14:02 Andrei666 i pass the stash from the 2 test controllers to the one that renders them both
14:02 Andrei666 and i guess that there is the problem..
14:03 marcus uhm you pass the entire stash?
14:03 marcus that sounds like a pretty bad idea yeah
14:04 marcus Andrei666: are you the one who was assigning to stash like $self->stash({foo=>bar}) ?
14:04 Andrei666 yes
14:04 marcus I seem to remember something like that from a previous day
14:04 Andrei666 unfortunatley it's me
14:04 marcus Andrei666: you should be doing $self->stash(foo=>bar) .
14:05 marcus so you don't change the entire stash, just set one key.
14:06 Andrei666 i'll try that
14:07 Andrei666 so..i've dont that
14:07 Andrei666 but in if in the second controller I do $self->stash(foo=>baz) .
14:07 Andrei666 i get 'baz' everywhere
14:08 Andrei666 instead of having bar in the 1st controller, and baz in the second
14:12 amoore joined #mojo
14:13 memowe Sorry, mister Andrei666! Would you explain why you're calling multiple controllers?
14:15 Andrei666 ok..i'll try to explain again
14:16 Andrei666 i have view of a controller, and in that view...which is css formatted, i render multiple templates..
14:17 Andrei666 well the problem is that in the view's controller, i call the other controllers, for the specific templates...
14:17 Andrei666 and in it i pass the stash from each controller
14:17 marcus why not just use one controller and include the different views as templates?
14:18 Andrei666 and the stash overwrites the values of variables with the same name
14:18 marcus like http://mojolicio.us/perldoc/Mojolicious/Gu​ides/Rendering#Including_partial_templates
14:19 Andrei666 i've researched about partial rendering
14:19 judofyr or just use plain classes instead of controllers for the rest: use Mojo::Base -base; has 'stash'; has 'internal_data';
14:19 Andrei666 we don't need that
14:19 marcus Andrei666: sounds like you are doing forwarding, which mojolicious is opposed to.
14:19 Andrei666 hmm
14:19 marcus (internal redirection)
14:19 Andrei666 so in those controllers
14:20 Andrei666 instead of use base Mojolicious::Controller
14:20 Andrei666 should I use Mojo::Base
14:20 Andrei666 ?
14:22 judofyr Andrei666: use Mojo::Base, and if you need access to the controller, pass it along
14:22 judofyr has 'controller';
14:23 judofyr i.e. use composition instead of inheritance
14:23 judofyr I'm not quite sure if I see *why* you're doing all this, but I think plain Perl classes would be better than inheriting from Controller and stuff
14:25 marcus judofyr: giving solutions when you don't understand the problem? :)
14:25 judofyr marcus: my favorite hobyy!
14:25 judofyr hobby*
14:26 marcus Andrei666: seems to me you're just rendering a separate template per tab. Why does it need a separate controller?
14:26 marcus it's all in one request, right?
14:26 Andrei666 marcus: you're right i'm rendering separate template per tab
14:27 Andrei666 marcus: yes, it's all in one request
14:27 inokenty joined #mojo
14:27 marcus then what you are doing seems very wrong
14:27 Andrei666 marcus: i don't know why they need a separate controller, i'm part of  a bigger project, for a client, that builds this web app for another client...
14:28 Andrei666 marcus: do you have any alternatives?
14:28 marcus Andrei666: set up the data for all of your tabs in one action, and just render them as separate templates.
14:28 marcus with partials like I suggested
14:29 Andrei666 unfortunately my project manager doesn't want partial rendering
14:29 marcus I suggest your project manager come talk to us then
14:29 Andrei666 i've researched about it and proposed it to him..
14:30 marcus Andrei666: tell him the mojolicious developers says he's doing it wrong.
14:30 inokenty sri: You were right. 'before_render' is not as necessary as I thought. I've solved my problem using helpers
14:31 Andrei666 marcus: (bow)
14:32 marcus Andrei666: one alternative approach would be to serve each tab as an ajax action, then you could have a separate controller for each ajax action if you preferred.
14:32 spleenjack joined #mojo
14:33 Andrei666 marcus: they need individual controller because there will come other developers, that will build their own controllers, and each will be a individual tab
14:33 Andrei666 marcus: they don't want to be everything ajax...
14:34 Andrei666 marcus: yes, they are very pretentious and picky
14:34 Andrei666 :D
14:35 * marcus sighs and returns to his unit tests
14:42 crab andrei666: this whole design seems horrible and broken
14:52 marty Andrei666:  I am working on an application that has lots of tabs and sub tabs.  I mix partial rendering and ajax depending on the tab function.  It works great.   If your client is apposed to ajax and wants separate controllers per tab then it sounds like your current solution is as good as any but far from optimal.
14:52 jpmcallister joined #mojo
14:57 gshank joined #mojo
14:57 crab first, make your separate controllers return strings
15:09 Andrei666 crab: thanks, i know it a weird design
15:09 Andrei666 marty: what your doing, sounds very similar to what i'm suppose  to do
15:11 Andrei666 crab: could you please, expand on that...i'm kind of a noob and don't understand all of it
15:31 metaperl joined #mojo
15:36 sugar_ joined #mojo
15:46 crab Andrei: have you considered giving all your controllers a common base class?
15:47 Andrei666 crab: they have one
15:49 Andrei666 crab: they use base "Our::Modules::Controller"
15:49 crab how do you instantiate your controllers?
15:51 crab and what kind of data do they need to render their output?
15:54 Andrei666 some of the data will be static, some will be pulled from the database, and some from the cache...
15:55 Andrei666 do I need to instantiate my controllers in the one that renders them all into tabs?
16:06 crab how else do you call methods in them?
16:15 random joined #mojo
16:19 simengangstad joined #mojo
16:20 dmn001 joined #mojo
16:28 stephan48 67
16:28 marty 42
16:28 memowe 17
16:29 vervain 23
16:29 Quai bingo!
16:36 simengangstad if i make a websocket like this: use Mojolicious::Lite;
16:36 simengangstad websocket '/echo' => sub {
16:36 simengangstad my $self = shift;
16:36 simengangstad $self->on(message => sub {
16:36 simengangstad my ($self, $message) = @_;
16:36 simengangstad $self->send_message("echo: $message");
16:36 simengangstad });
16:36 simengangstad where are im going to hit this in the browser?
16:37 judofyr joined #mojo
16:39 arpadszasz joined #mojo
16:42 marcus Simen: please dont paste in the channel
16:42 marcus Use a paste service.
16:43 marcus Simengangstad: you interact with websockets through javascript, not directly in the browser.
16:43 simengangstad so in the terminal?
16:43 marcus Hmm?
16:44 simengangstad can i see the result in the terminal?
16:45 marcus Typically you write a web page, and then use the web sockets from javsscript loaded on that page to implement long polling.
16:45 simengangstad in not quite smart at stuff like that.. :P
16:45 marcus You could do it from the command line as well, of course.
16:45 vervain simengangstad: then skip it for now.
16:45 marcus mojo::useragent implements web sockets.
16:45 simengangstad okay
16:46 marcus Simen: are you working on a gci task?
16:46 simengangstad still trying to understand a little bit about Mojolicious,
16:46 simengangstad im making slow progress...
16:47 marcus Simen: web sockets is a new html5 thing. Just skip it for now.
16:47 marcus Simen: it is used for tunneling a socket over http.
16:48 simengangstad but could i learn on a different way though? Beacause when i go over the guides, I don´t understand so much
16:48 marcus Simen: did you start with the lite app?
16:49 simengangstad yes
16:49 marcus Simen: you could look at the examples the other gci students have made.
16:49 xaka joined #mojo
16:49 simengangstad yes, that wiki?
16:49 simengangstad you tweeted about?
16:49 marcus I have been linking to them from my english twitter account. marcusramberg
16:50 marcus A blog, a forum and a irc log bot.
16:50 marcus No wiki yet. That task is up for grabs.
16:51 simengangstad i meen forum, wasnt it that?
16:51 marcus Yeah, that is the latest one.
16:51 marcus You could download it, and look at the source and try it out.
16:51 marcus To understand things better.
16:52 marcus But web sockets is not needed to make an app like that.
16:52 simengangstad i shall
16:53 marcus Excellent.
16:53 purl Excellent. are there any japan-natives lurking in here?
16:54 marcus And dont be afraid to ask in here.
16:54 marcus But remember to use a paste service like gist.github.com ;)
16:55 ispeak_ joined #mojo
16:56 simengangstad okay  ;)
16:57 grim_fandango joined #mojo
16:59 metaperl|2 joined #mojo
17:02 marcus I heard the author of rrdtool is a mojolicious user today.
17:02 marcus That could lead to something interesting I suppose.
17:03 marcus I really should work on evangelizing to the munin guys as well.
17:03 gshank joined #mojo
17:04 marcus It would be a great fit for them, since they are avoiding deps.
17:08 crab marcus: he's been on the channel often
17:08 crab (toebu)
17:08 marcus Crab: I was not aware. A sysadmin I know met him at Lisa.
17:13 simengangstad marcus: did you knew perl before you learned yourself Mojolicious?
17:13 crab yes, he did. :-)
17:15 marcus Simen: I knew perl before you were born ;)
17:16 simengangstad cool
17:16 memowe lol. ;)
17:19 metaperl joined #mojo
17:31 simengangstad marcus: hmm… i cant seem to get the mojoforum app running… when i run it i the terminal, it cant find the directory
17:31 simengangstad and i know it is the right one
17:32 marcus Simen: did you read the readme?
17:32 simengangstad yes
17:32 marcus Can you nopaste your terminal?
17:33 marcus You run it with morbo <script>.pl
17:33 simengangstad clear it out?
17:33 random joined #mojo
17:33 marcus No, i mean paste it into a gist
17:33 marcus And give me the url to the gist.
17:33 simengangstad okay
17:34 marcus I tested it btw.
17:36 simengangstad shall I just paste the url in here?
17:37 xaka simengangstad: yes
17:37 simengangstad marcus: https://gist.github.com/1477586
17:38 marcus Simen: perl Makefile.PL
17:38 purl perl Makefile.PL is generating for me
17:38 marcus And then cpanm --installdeps .
17:39 simengangstad ive don that, maybe not right? ill try again
17:40 marcus Nopaste the output of those commands as well :)
17:40 marcus Maybe you don't have cpanmin.us
17:40 marcus cpanm I mean.
17:42 simengangstad you dont mean cpan up there? beacause cpanm gives no response to me, but cpan --installdeps does
17:42 marcus Guess it means you don't have cpanm
17:44 simengangstad it probably does
17:44 marcus curl -L http://cpanmin.us | perl - --sudo App::cpanminus
17:44 marcus Run that in the terminak
17:44 marcus Terminal
17:44 purl i heard Terminal was the thing the user sits in front of to use the computer.
17:46 simengangstad i think its called cmd on windows but terminal on mac
17:46 inokenty This is for unix based os
17:46 inokenty Not for windows
17:47 inokenty (windows's terminal sucks)
17:47 batman joined #mojo
17:48 marcus Simengangstad: ignore purl, she is a robot.
17:48 marcus Not sure about inokenty ;)
17:48 marcus Hi batman.
17:48 batman hello
17:48 purl hola, batman.
17:48 batman what' up?
17:48 marcus Hmm.
17:49 marcus Trying to teach simengangstad a bit mojolicious.
17:49 marcus So he can join GCI
17:49 inokenty marcus: Im not a robot )))
17:49 batman ok. anyone i know?
17:50 marcus Batman: doubt that, he is 13 and from Trondheim (right, simen?)
17:50 simengangstad https://gist.github.com/1477586 thats what happening when i type cpan --installdeps
17:50 batman ok :)
17:50 simengangstad right
17:50 marcus Simen: yes, that is an error.
17:51 marcus That is why you need cpanm.
17:51 simengangstad yes….
17:51 marcus So run the line I just gave you
17:51 marcus Just after you said 'it probably does'
17:51 marcus It will ask you for your password then install cpanm.
17:53 simengangstad it says it cant write  to cpanm home '/useres/simengangstad/.cpanm': you should fix it with chown/chmod first...
17:54 marcus Hrm
17:54 marcus Just delete .cpanm in your homedir.
17:55 batman simengangstad: which os?
17:55 simengangstad os x
17:55 batman oh.
17:55 * batman hides
17:55 marcus Batman /Users
17:55 marcus ;)
17:55 simengangstad the wierd thing, is that it isnt there….
17:56 batman huh? my crappy irc-client can't do sh**
17:56 inokenty batman: Which os do you use?
17:56 batman ubuntu
17:56 simengangstad neither when i serach for it, it dosent show itself
17:57 batman mkdir ~/.cpanm ?
17:57 marcus Simen: files starting with . Are hidden
17:57 simengangstad oh
17:57 * marcus is typing on an ipad, so sorry for typos.
17:58 simengangstad but how are im going to get it to show itself?
17:58 batman simengangstad: are you in a terminal?
17:58 marcus Do sudo rm -rf .cpanm
17:59 inokenty And be careful =)
17:59 batman oooh. osx got sudo. "sudo make me a sandwich"
17:59 marcus Do cd first
17:59 memowe simengangstad: you are 13 years old, and use your OS X Terminal.app to hack Perl and Mojolicious?
17:59 memowe Coool! :)
17:59 simengangstad no im not that good
17:59 marcus *yet*
18:00 batman simengangstad: that's why we're here.
18:00 batman simengangstad: or at least -- that's why some of those other guys are here :P
18:00 simengangstad thanks for that!
18:00 * batman is mostly idle
18:00 marcus No wonder, you don't even have a unix beard yet.
18:00 simengangstad ? what do you meen?
18:00 simengangstad mean
18:00 marcus Joke :)
18:01 batman simengangstad: type this into your terminal:
18:01 batman ls -ld ~/.cpanm
18:01 memowe I have a four days beard. Is that already a unix one?
18:01 batman what does it give you in response?
18:01 marcus http://www.urbandictionary.com​/define.php?term=Unix%20beard
18:01 simengangstad no such file or directory….
18:01 batman simengangstad: ok. try this then:
18:01 batman mkdir ~/.cpanm
18:01 batman does it say anything?
18:02 simengangstad nope
18:02 batman good
18:02 marcus I have to go put my daughter to bed now. Back in a bit.
18:02 batman try this then:
18:02 batman have you already installed cpanm?
18:02 memowe marcus: I'll ask my girlfriend about further unix beard questions. :)
18:02 batman simengangstad: ^
18:03 simengangstad no i dont
18:03 batman ok
18:03 batman run this:
18:03 simengangstad it gives an error message when i try...
18:04 batman wget http://cpanmin.us -O - | perl - --sudo --self-upgrade
18:04 batman simengangstad: ^ try that command
18:04 simengangstad it worked
18:04 purl Of course it worked
18:04 simengangstad lol
18:04 batman simengangstad: so you can run this command then:
18:04 batman cpanm --help
18:04 batman ?
18:05 simengangstad yes it shows the following cmds about cpanm!
18:05 batman sweet
18:05 batman then try this:
18:05 batman cpanm --sudo Mojolicious
18:06 batman it will take some time, because mojo has _a_lot_ of unittests :)
18:06 batman don't hold your breath...
18:06 batman let us know when you're done...
18:06 batman or if some weird stuff happens
18:07 kaare joined #mojo
18:11 simengangstad done
18:11 simengangstad but bye
18:11 batman ?
18:11 batman weird...
18:13 inokenty He is too young yet for consoling and terminaling ) Tired so quickly
18:13 memowe uh?
18:13 batman :)
18:13 memowe bed time? ;)
18:14 memowe Hope he'll come back.
18:37 jnap joined #mojo
18:45 xaka is there easy way to add more static dirs like public under routes? something like $app->route(...)->to(static => ...) or $app->route(...)->static(...) ?
18:59 batman i don't know about the to(static => ...); but you could do: $s=Mojolicious::Static->new(root => ...); $router->to(cb => sub { $s->dispatch($_[0]) });
19:05 gshank joined #mojo
19:26 tempire what's with the timezone rt hate?
19:27 tempire Although a separate tweet saying a similar thing, or with wording that touts something else about the same announcement is probably better.
19:31 marcus tempire: it's pure BS. Basically it's a license to post all your tweets twice
19:31 marcus it just increases the noise/signal ratio
19:37 batman joined #mojo
19:47 tempire I dig the new twitter website
19:48 tempire seems like it's settling into something usable
19:50 marcus I never use twitter on the web
19:50 marcus only through clients
19:51 tempire I use it for searching
19:51 marcus my twitter client has search =)
19:51 tempire the official twitter client searching seems slower
19:51 marcus I dunno. I use yorufukurou on the mac
19:51 marcus the only problem I have with it is the name =)
19:52 tempire what did you call me?
19:52 * tempire yorufukurou's marcus
19:53 marcus means nightowl
19:54 marcus https://sites.google.com/site/yorufukurou/home-en
19:54 marcus why is sri so quiet lately? is he playing a MMO, or finishing the mongodb driver?
19:54 tempire annual recharge
19:55 tempire but let's just make the assumption that his is in fact finishing the mongodb driver
19:55 tempire someone told me that someone else said he was just putting the finishing touches on it.
19:58 batman marcus: i'm writing a module to interface with nets/bbs. what do you think the name should be?
19:58 batman it's called Mojolicious::Plugin::NetsPayment now...
19:59 marcus batman: interesting. We're doing payex integration atm :)
19:59 marcus Net::Hate::Payments?
19:59 batman nah. rest++
20:00 batman why payex and not teller/nets?
20:04 mattastrophe joined #mojo
20:35 marcus because they use soap
20:35 marcus ehm
20:35 marcus mostly price
20:36 marcus it's only a temporary solution until we get our own payment gateway up
20:37 marcus batman: Business::Payment::Nets ?
20:38 batman "our own paymen gateway up"?
20:38 batman i want to have it in the mojolicious namespace
20:38 batman are you thinking i should create two modules? one for the backend and a think layer between as a mojo plugin?
20:39 marcus batman: we're cooperating with someone who's PCI certified.
20:39 marcus batman: yes
20:40 batman interesting... let me know how that turns out :)
20:40 batman i'm not too keen about making two modules
20:40 marcus ok, ignore me then :)
20:41 marcus I guess Plugin::NetsPayment is fine then
20:41 batman but i will think about your input
20:41 marcus screw all those people not using mojolicious ;-)
20:41 batman exactly
20:41 batman is there any alternative...?
20:41 marcus screw everybody?
20:41 batman i've heard about some sort of catadancing module... but it just sounds strange :)
20:42 marcus dunno
20:42 batman :)
20:42 marcus rafl was going to extract my oauth2 logic out of my mojolicious plugin and make it transport independent
20:42 marcus but he didn't get back to me.
20:42 mire_ joined #mojo
20:42 marcus rafl: how's that coming along?
20:45 rem_lex| joined #mojo
20:46 rafl haven't done anything on that yet
20:46 rafl other than trying to get some other guy to do it
20:46 batman :D
20:46 rafl but he decided to roll yet another one
20:47 marcus it's the circle of life ;)
20:47 marcus damnit, my proxy plugin seems to be broken on hypnotoad
20:47 rafl slacking, volunteering someone, failing?
20:47 marcus works fine in morbo
20:47 marcus rafl: well, you've noot exactly been slacking, with the whole gci crap going on.
20:48 * rafl feels quite different about that
20:49 rafl what i did most was getting others to help out because i ended up not having enough tuits and pjcj, or any other individual for that matter, really couldn't do it all alone
20:49 sri marcus: just enjoying my new freedom… and maybe finishing the mongodb driver :)
20:50 simengangstad joined #mojo
20:50 jnap joined #mojo
20:51 rafl where do i get some new freedom?
20:51 marcus sri: good times.
20:51 purl DON'T OPEN IT!  IT'LL CRASH AOL!
20:51 marcus rafl: add core developers to all your projects.
20:52 rafl aww.. dammit. that won't fly. yelling from the sidelines, whining, and delegating is pretty much everything i do already :-)
20:52 marcus so you are already free :)
20:53 rafl i wish! :)
20:55 * marcus is watching the cleveland show before bedtime. Die hard parody this week!
20:56 simengangstad marcus: ive downlaoded cpanm, but i couldnt open the mojoforum.pl file neither do cpanm --installdeps
20:56 marcus simengangstad: it should be 'cpanm --installdeps .'
20:56 marcus actually you probably need 'cpanm --sudo --installdeps .'
20:56 GitHub132 joined #mojo
20:56 GitHub132 [mojo] kraih pushed 2 new commits to master: http://git.io/8zex6Q
20:56 GitHub132 [mojo/master] fixed small upload filename bug - Bernhard Graf
20:56 GitHub132 [mojo/master] Merge pull request #243 from augensalat/master - Sebastian Riedel
20:56 GitHub132 left #mojo
20:57 simengangstad okay ill try
20:57 marcus is it installing stuff?
20:58 simengangstad it only says that the command is uknown...
20:58 simengangstad hmm.....
20:59 batman simengangstad: does "cpanm --help" still work?
20:59 marcus simengangstad: uhm?
20:59 marcus simengangstad: gist again?
20:59 simengangstad cpanm --help works
20:59 batman marcus: maybe he's missing make ++ ?
20:59 marcus oh
20:59 batman simengangstad: what does the command "make" say?
20:59 marcus simengangstad: you have xcode right?
21:00 simengangstad *** No rule to make target `mojoforum', needed by `blib/script/mojoforum'.  Stop.
21:00 batman ok...
21:00 simengangstad this is what make says
21:00 batman good
21:00 simengangstad i have xcode
21:00 simengangstad yes
21:00 marcus simengangstad: nopaste the output of the cpanm thingie
21:00 marcus the one that does not work.
21:00 simengangstad developing......
21:00 purl developing is skipped
21:02 simengangstad https://gist.github.com/1477586 here you go
21:02 GitHub55 joined #mojo
21:02 GitHub55 [mojo] kraih pushed 1 new commit to master: http://git.io/-Tkz7Q
21:02 GitHub55 [mojo/master] updated credits - Sebastian Riedel
21:02 GitHub55 left #mojo
21:02 batman simengangstad: no. the output from "cpanm --installdeps ."
21:02 rem_lex| joined #mojo
21:02 batman include the command as well...
21:03 simengangstad here: https://gist.github.com/1477586
21:04 batman you still miss the dot
21:04 batman cpanm --installdeps .
21:04 batman see the dot at the end..?
21:04 simengangstad omg, im so stupid
21:04 simengangstad haha
21:04 marcus simengangstad: https://gist.github.com/d9398c7c1dc3e444782a
21:04 batman better to be blind than stupid :P
21:05 simengangstad thanks!
21:05 marcus -_-
21:05 marcus :)
21:05 simengangstad there finally
21:05 marcus hurrah
21:06 batman simengangstad++
21:06 marcus augensalat is bitter :)
21:06 simengangstad password time
21:06 simengangstad !
21:07 marcus simengangstad: the student didn't implement login yet
21:07 simengangstad in the terminal...
21:07 simengangstad just joking...
21:07 marcus oh :)
21:07 marcus hehe
21:10 simengangstad marcus: which dir is the mojoforum.pl if i placed it in the home folder?
21:11 marcus simengangstad: you can write 'pwd' to see your current dir in the terminal
21:11 simengangstad thanks!
21:13 simengangstad looks like there something wrong with the code https://gist.github.com/1477586
21:14 batman try to start it with morbo...
21:14 marcus simengangstad: you should start it with 'morbo mojoforum.pl'
21:14 simengangstad okay
21:14 marcus simengangstad: looks like it was executed like a bash script in your terminal
21:15 marcus but it's a good point, it's missing a perl shebang in the top
21:15 marcus like '#!/usr/bin/env perl' . Wonder why he deleted that
21:16 memowe eh eh eh: HTTP status codes as cat images (including teapot): http://www.flickr.com/photos/girliemac​/6508102407/in/set-72157628409467125/
21:16 marcus mojo generate lite_app foo will add it by default
21:16 simengangstad nice made tought
21:16 simengangstad the forum, nice and clean
21:17 simengangstad how does he do the buttons that nice?
21:17 marcus simengangstad: twitter bootstrap
21:17 purl i heard twitter bootstrap was pretty derned neat or http://twitter.github.com/bootstrap/
21:17 batman any idea how to make a sort of unique number? (max length 32)
21:18 batman it doesn't need to be super-unique, but it should be able to conflict too often
21:18 simengangstad so he just uses buttons, layout from that template?
21:18 batman "should not be"
21:18 sri memowe: :D
21:18 marcus batman: UUID::Tiny?
21:19 marcus simengangstad: yes
21:19 simengangstad and how do he implement this, it looks fairly nice
21:20 marcus simengangstad: http://twitter.github.com/bootstrap/
21:21 marcus simengangstad: basically just include the css and write markup
21:21 simengangstad in the __DATA__ section?
21:22 marcus simengangstad: the __DATA__ section can contain templates and static files.
21:22 marcus simengangstad: you can also put templates in a 'templates' folder and static files in a 'public' folder if you prefer.
21:23 simengangstad ill look on it the days forward and mayby… only mayby ill build my own forum
21:23 simengangstad a apple forum!
21:24 simengangstad an apple*
21:24 batman marcus: does it give me a number...?
21:25 marcus batman: a hex number is a number? :p
21:25 batman yes. i just thought it had a lot of messy data with it
21:26 marcus simengangstad: cool ,good luck! or you can make something else if you prefer :) Or contribute to this forum codebase.
21:26 simengangstad marcus:the student have implemented the layout under the __DATA__
21:26 marcus simengangstad: the student has implented everything in that project
21:28 simengangstad Thanks for it all marcus and batman it helped me alot! But now ill going to go to bed, goodbye!
21:28 batman goodbye
21:28 batman hope to see you :)
21:28 batman aiai... too slow
21:28 marcus I'm going to bed as well.
21:28 marcus nite guys.
21:28 batman nite
21:29 marcus 13 year olds and 35 year old have the same sleep pattern, it seems.
21:31 sri nn
21:52 mattastrophe joined #mojo
21:54 metaperl joined #mojo
22:11 mateu joined #mojo
22:16 j3nnn1 joined #mojo
22:18 ccushing joined #mojo
22:19 ccushing so what would be the right way to create a new  full Mojolicious app? most of the frameworks have some sort of way of generating the structure, but I can't find it
22:21 stephan48 mojo generate
22:21 purl mojo generate is the same as mojo generate help
22:21 stephan48 and you get a list of templates
22:22 ccushing ok
22:29 MojoGuest842 joined #mojo
22:29 MojoGuest842 From: http://www.google.com/url?sa=t&amp;rct=j&am​p;q=&amp;esrc=s&amp;source=web&amp;cd=9&amp​;ved=0CGMQFjAI&amp;url=http%3A%2F%2Fdev.xan​tus.org%2F&amp;ei=0SLpTuv-IOSfsQLtjonNCA&am​p;usg=AFQjCNGw6nZv0wO42uzUnHhWcD0vcKNULg (1 hits)
22:29 MojoGuest842 hello
22:31 jpmcallister joined #mojo
22:43 jpmcallister joined #mojo
23:50 ccushing can the mojo daemon be made to restart on source changes?
23:52 ccushing ah nvm, found the docs on that

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