Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-15

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

All times shown according to UTC.

Time Nick Message
00:02 sri he does
00:15 Kulag left #mojo
00:16 Kulag joined #mojo
00:21 mcmahon joined #mojo
00:21 mcmahon sri: solution found for the apache config/Mojolicious::Lite setup
00:22 mcmahon for the case where I had to co-operate with others on the same server
00:25 mcmahon Key is generating URLs in the templates that look like this:
00:25 mcmahon /hudsonlog/hudsonlog.cgi/(pathinfo part)
00:26 mcmahon http://pastie.org/1159157 is corresponding Apache conf
00:28 mcmahon Mojo routes are still /:whatever; the /directory/scriptname part is gone before we see it in Mojo.
00:28 mcmahon Just in case this gets asked again...
00:28 mcmahon left #mojo
00:47 cognominal left #mojo
00:49 cognominal joined #mojo
01:32 esskar left #mojo
01:33 esskar joined #mojo
02:25 cognominal left #mojo
02:35 janus left #mojo
02:35 janus joined #mojo
03:05 Foxcool joined #mojo
03:10 perlrocks Twitter: ""Installing on Dreamhost Mojolicious with fastcgi" by Blaber of Bleb - http://miud.in/cvA equinox # # perl" (pt) --thiagorondon http://twitter.com/thiagorondon/status/24535580412
03:33 awnstudio_ left #mojo
03:37 perlrocks Twitter: "RT @ thiagorondon: "Installing on Dreamhost Mojolicious with fastcgi" by Blaber of Bleb - http://miud.in/cvA equinox # # perl" (pt) --mantovanidaniel http://twitter.com/mantovan​idaniel/status/24537577283
03:52 yakudzo joined #mojo
04:04 tholen42 joined #mojo
04:05 tholen left #mojo
04:49 und3f[A] left #mojo
04:52 und3f[A] joined #mojo
05:45 garu yay... I taught them how do to that :)
05:47 garu though translation is a little off, it actually reads "deploying a mojolicious app with fastcgi on dreamhost"
05:48 garu sri++ # you helped making it happen in real time too :)
06:37 koban joined #mojo
06:53 esskar__ joined #mojo
06:53 esskar_ left #mojo
06:54 esskar__ is now known as esskar_
07:30 ltriant left #mojo
07:56 perlrocks Twitter: "Awesome! RT @kraih, @esskar: #Luzy is getting into a state where it's worth telling people about http://github.com/esskar/luzy #mojolicious" --doubious_code http://twitter.com/doubiou​s_code/status/24551350233
08:02 spleenjack joined #mojo
08:09 esskar tempire: yes!
08:23 jest joined #mojo
08:36 Foxcool left #mojo
08:47 Foxcool joined #mojo
08:54 Foxcool left #mojo
09:05 zakame joined #mojo
09:07 al left #mojo
09:17 koban left #mojo
09:37 perlrocks Twitter: "s adding some more magic to Mojolicious::Plugin::WriteExcel thanks to kraih's new app->helper: http://tinyurl.com/25y2xfl" --zakame http://twitter.com/zakame/status/24555718398
10:02 koban joined #mojo
10:21 koban left #mojo
10:22 koban joined #mojo
10:28 dri1ink joined #mojo
11:00 koban left #mojo
11:00 koban joined #mojo
11:01 yakudzo left #mojo
11:02 koban left #mojo
11:52 BlueT_ left #mojo
12:01 DM joined #mojo
12:01 DM hi
12:13 vti hi
12:16 DM speak Russian?
12:18 vti join #ru.pm
12:18 vti we speak english here
12:22 kvorg joined #mojo
12:22 kvorg hi
12:23 kvorg has anyone done any nice examples of form-manipulation? I am doing some, and it looks nasty due to my stupidity. I am doing too-complicated things when I want to rediplay the form with the previous settings, twiddling with strings to keep UTF-8 unescaped but escape any HTML etc.
12:24 vti kvorg: it should just work
12:24 vti kvorg: use form helpers and they will hold previous values
12:25 kvorg hi, vti. i was afraid there was something like that ... me being immensely stupid and reinventing the wheel, just in the wrong shape
12:25 vti kvorg: look at Mojolicious::Plugin::TagHelpers
12:26 vti strange that sri didn't document that feature..
12:26 vti sri: ?
12:26 kvorg eeeer, you have got to be kidding me, it does all that? B-)
12:26 kvorg nice, my program will get trimmed down
12:29 vti kvorg: ye, it's pretty handy :)
12:29 kvorg vti, u have got to have nice examples lying around, i need things such as selections (drop-down selectors) etc. can you point me to one of your projects?
12:30 vti kvorg: hm, not sure about that, but you can create a helper just like 'input' is done
12:33 vti you can write a plugin that will register 'select' helper and we all can enjoy that :)
12:35 doubi joined #mojo
12:44 kvorg good idea, yeah ... first i have to get this together though
12:46 kvorg ough ... and i have to do "next" on search results with no cookies, what would you do there? repost a hidden form? *shudder*
12:46 vti i usually make 'search' as a GET request
12:47 kvorg ahhh, is this what the link_to is ment to be used for?
12:47 kvorg damn, i missed the whole helper development
12:48 kvorg tag helper, that is
12:49 kvorg false hopes :-(
12:50 vti kvorg: do you need <a href="/search?where=a&page=2">next</a>? or what?
12:51 kvorg yeah, that, only it is now getting overly complicated with options and what-not
12:51 kvorg it is not a problem, i just got optimistic, hoping there would be a way to do that with the tag helpers for free
12:52 kvorg since it is such a common pattern on the web
12:52 vti that means you can write the first plugin that does it :)
12:54 kvorg looks like it ... so what do i call it? link_to_args?
12:54 kvorg i have no idea
12:55 vti link_to_with_query? or smth like that
12:56 kvorg oh, link_to_query should do it, no?
12:56 vti ye
12:57 kvorg we will se if i can get the escaping right :-)
12:57 vti the main thing is to return Mojo::ByteStream object
12:57 vti just look how link_to is made
13:01 kvorg i have to think a bit about all of this ... do you think form helpers in general should (at least optionally) default to the value of the current params of the same name?
13:01 kvorg including checked boxes, selected dropped-down menues, search texts etc?
13:01 vti kvorg: checkbox are alread made
13:02 vti <%= input 'foo', type => 'checkbox' %> will work as expected
13:03 kvorg i don't know what you ment with the example ...
13:03 vti it is how to render a checkbox
13:03 vti oh
13:03 vti you ask whether it is a good idea in general
13:05 vti nobody complained so far :)
13:05 kvorg i thought we were talking about how $self->param('foo', 1); ... <%= input 'foo' type="checkbox"> renders  <input name="foo" type="checkbox" value="checked">
13:05 vti yes, we are now, i didn't get it fast enough :)
13:06 kvorg more like if it should be optional or whatnot ...  but i think if anybody wants any other options, they can onlway write their own html
13:06 kvorg *always
13:32 esskar_ left #mojo
13:40 kvorg I am still not sure this is actually implemented. Look at this and tell me, please: http://pastie.org/1160513
13:41 sri link_to url_for->query(foo => 'bar')?
13:41 kvorg aaargh, i _am_ a moron, and it _is_ working, of course ...
13:41 kvorg hi sri
13:41 * sri waves
13:42 sri if form tags are missing patches would be welcome
13:43 sri customizing urls is generelly tricky, so i like to fallback on url_for, which can do everything
13:44 sri helpers accepting route names shouls also accept Mojo::URL objects
13:44 sri and i think link_to url_for even sounds good :)
13:47 kvorg sounds cool, but consider my problem: i would like to have a nice way to create links to next search pages, of the type http://search?query=blabla&options&settings&page=3
13:47 kvorg i have the nagging feeling that can be a bit too complicated for me to do right
13:47 sri why is that a problem?
13:48 kvorg it isn't, but it is such a common idiom, i think we should have a helper for it
13:48 sri what would that helper do?
13:48 sri how would it work and on what data?
13:49 kvorg the user would modify the params or pass new ones to it, and it would include all the existing ones in the URL
13:50 sri thats exectly what i showed above
13:50 kvorg my idea was link_to_query( 'linktext',
13:50 kvorg that would actually work?
13:50 sri it would be query specific and entirely unflexible
13:50 kvorg mojolicious is too cool, some people can't wrap their heads around that
13:51 kvorg say no more, off I go coding, promise to submit pathces for selection and values type=!checkbox
14:16 und3f[A] is now known as und3f
14:17 DM left #mojo
14:20 GitHub162 joined #mojo
14:20 GitHub162 mojo: master Sebastian Riedel * 0ac3b23 (2 files in 2 dirs): made query parameter merging easier in Mojo::URL - http://bit.ly/bNxPM3
14:20 GitHub162 left #mojo
14:23 GitHub14 joined #mojo
14:23 GitHub14 mojo: master Sebastian Riedel * 5e6c470 (1 files in 1 dirs): cleanup - http://bit.ly/bsZubG
14:23 GitHub14 left #mojo
14:25 doubi left #mojo
14:28 GitHub142 joined #mojo
14:28 GitHub142 mojo: master Sebastian Riedel * 9a2bdab (1 files in 1 dirs): cleanup - http://bit.ly/9aV42y
14:28 GitHub142 left #mojo
14:33 sri i'm still so slow using vim :/
14:35 DaTa try harder!
14:42 * sri tries harder
14:53 forwardever joined #mojo
14:55 sri ok, my first vim plugin will be nerdtree
14:56 omega :)
14:56 omega thats a must I think
14:57 sri indeed, also added a keybind for nerdtreetoggle
14:57 omega mhm
14:57 vti but it sucks
14:57 omega also a mush
14:57 omega must
14:58 sri nerdtree said vti sucks :o
14:58 * vti punches sri
14:58 omega sri is drunk and gabb is the coolest all over again? ;)
14:58 sri OUCH!
14:59 sri havn't seen gabb in years :/
14:59 omega he popped by #catalyst like in the last year or so I think
15:00 sri must have been when i was still banned
15:00 omega mhm
15:02 sri nerdtree really makes a huge difference, missed the ability to just browse though a project
15:03 sri is it possible to make vim jump back to the previous position after :%!perltidy?
15:04 vti sri: CTRL-o
15:04 sri automated too?
15:05 sri i would like to add it to my perltidy mapping
15:05 vti nnoremap <silent> ,pt :%!perltidy -q<cr>
15:06 vti and visual block is handy too: vnoremap <silent> ,pt :!perltidy -q<cr>
15:07 sri no, i mean can i add CTRL-o to the mapping
15:07 sri i have perltidy mappings already
15:07 vti that will not jump
15:07 sri it does
15:08 vti let me check
15:08 sri always jumps to start of file
15:08 sri maybe you have a setting i don't have?
15:08 vti hm, really
15:08 vti sucks
15:10 vti you can make a mark and then jump back
15:10 sri hmm
15:12 omega can prolly put all that into a mapping? set mark; perltidy; jump to mark; remove mark?
15:13 sri how do you jump to mark with a command?
15:14 perlrocks Twitter: "RT @ thiagorondon &quot;Installing on Dreamhost Mojolicious with fastcgi&quot; by Blaber of Bleb - http://miud.in/cvA equinox # # perl" (pt) --wreis http://twitter.com/wreis/status/24578484289
15:20 sri nnoremap <Leader>t mz:%!perltidy -q<cr>'z
15:21 sri that one works at least
15:21 * vti stole
15:21 kvorg left #mojo
15:22 sri nnoremap <Leader>t mz:%!perltidy -q<cr>'z:delmarks z<cr>
15:22 sri and that one removes the mark again
15:24 sri no idea how you can stick to console vim though
15:24 sri i just need a big window
15:25 vti i maximize iterm
15:25 sri ok, then it's close to macvim
15:25 sri macvim has good looking tabs though
15:25 sri and accelerated font rendering
15:25 vti never used tabs, only buffers :(
15:26 sri mvim -p file1 file2 file3
15:26 omega I only use splits in vim :p
15:26 sri one thing i still miss from textmate is search in project though
15:26 omega I saw a plugin for that
15:27 sri for now i use ack
15:27 omega I use AckMate anyways
15:37 sri gonna try ack.vim
15:41 sri not too bad
15:46 * sri starts to feel a special connection to his .vimrc
15:46 omega :)
15:46 omega do you share it somewhere?
15:47 sri never!
15:47 sri MY PRECIOUSSSSSSS!
15:47 omega right, right
15:48 sri http://pastie.org/1160775 # this is what i have so far
15:49 sri has a few macvim tweaks like shared clipboard and menlo font
16:39 jest left #mojo
16:40 sri http://www.youtube.com/watch?v=txdv_oNq81I # damn, scariest way to work ever
16:46 spleenjack left #mojo
17:06 vti sri: oO
17:19 Alias__ left #mojo
17:36 doubi joined #mojo
17:47 dotan left #mojo
17:51 cognominal joined #mojo
17:59 spleenjack joined #mojo
18:32 awnstudio joined #mojo
18:36 al joined #mojo
18:50 GabrielVieira2 is now known as GabrielVieira
18:50 doubi left #mojo
19:19 forwardever left #mojo
19:40 forwardever joined #mojo
19:40 Rhaen_ joined #mojo
19:41 dotan joined #mojo
19:42 MojoGuest112 joined #mojo
19:43 MojoGuest112 heh, I'm sick of this server, I'm switching to ec2
19:43 MojoGuest112 is now known as xantus_
19:45 Rhaen left #mojo
19:45 Rhaen_ is now known as Rhaen
19:54 kvorg joined #mojo
19:57 sri ec2 micro seems quite cool
19:58 xantus_ left #mojo
20:17 dotan left #mojo
21:21 MojoGuest408 joined #mojo
21:21 MojoGuest408 From: http://www.google.co.uk/ (1 hits)
21:21 MojoGuest408 left #mojo
21:23 MojoGuest4 joined #mojo
21:23 MojoGuest4 From: http://news.ycombinator.com/item?id=1277067 (1 hits)
21:25 kvorg confused again. how should one access multiple parameters from a controller, such as query?foo=bar&foo=baz?
21:25 MojoGuest750 joined #mojo
21:28 forwardever left #mojo
21:30 kvorg ah, silly, wantarray ...
21:31 MojoGuest750 left #mojo
21:32 kvorg sri: should i make <selection><option>...<option></selection> into one, complicated but easy to use helper?
21:32 kvorg sri: <%= selection 'country', options => [qw(Andora Albania) ]' %>
21:34 kvorg sri: or <%= selection 'country' => begin %><%= option 'Andora' %><%= end %>
21:38 kvorg sri: <%= selection 'country', [qw(Andorra Albania) ], class=>'whatever' %>
21:51 memememomo joined #mojo
21:53 MojoGuest4 left #mojo
22:05 tl joined #mojo
22:05 tholen42 left #mojo
22:06 sri kvorg: one helper yes
22:06 kvorg thought so ...
22:07 sri kvorg: i like the last option
22:07 kvorg i went for that one, yes
22:07 kvorg sri: but i am not sure what to do with multiple and optiongroups ... perhaps not really needed at this point?
22:09 sri [foo => [qw/bar baz/]] for grouped? :)
22:12 kvorg u have a point there, but then i would have to traverse the array to see if there are any refs ...
22:12 sri yes
22:12 kvorg would {foo => [qw/bar baz/]} be much worse?
22:13 sri yes much
22:13 sri order matters
22:13 kvorg aaah, damn, of course it does
22:16 spleenjack left #mojo
22:36 kvorg sri: do we need to support select options where value != display, such as <option value="0">male</option>?
22:36 kvorg sri: a syntax idea would be nice
22:38 kvorg sri: we can have [foo => [bar=>1, baz=>2]], but i would hate to have to type [foo => [bar=>'bar', baz=>'baz']]
22:40 sri hmm
22:40 sri yes, i think we need to support them
22:41 sri [foo => ['bar', [baz => 'yada']]]
22:41 sri maybe something like that
22:42 sri so only the worst case is more work to type
22:42 kvorg selection 'foo',  [foo => [qw/bar baz/]] and selection 'foo', options =>  [foo => [bar=>1, baz=>2]]
22:42 sri ?
22:43 sri i don't see that making sense
22:43 kvorg selection 'name', [array with simple stuff] for short syntax
22:43 sri [foo => ['bar', [baz => 'yada']]] has everything covered
22:43 sri simple thing is simple, hard thing possible
22:44 sri [foo => ['bar', [baz => 'yada'], 'lalala', 'foobar']]
22:44 sri maybe that makes mroe sense
22:45 sri if you want a different value than you display you put both in an arrayref again
22:45 kvorg ah, ok, we simply disallow optgroups with only 2 members?
22:45 sri ?
22:45 sri it's an arrayref
22:45 sri [foo => ['bar', 'baz']]
22:45 kvorg so was this, no? [foo => [qw/bar baz/]]
22:45 sri that just works too
22:45 sri of course there is
22:46 kvorg only that was to mean group foo with members bar and baz
22:46 sri exactly
22:46 sri now if you want bar to show something else you put it in another arrayref
22:46 sri as a pair
22:46 sri [Bar => 'bar']
22:47 sri [Foo => 'foo']
22:47 kvorg aaaaah: all OPTGROUP elements must be specified directly within a SELECT element (i.e., groups may not be nested)
22:47 kvorg i thought optgroups can be nested ... silly me ... we are good then
22:48 kvorg thanks for the patience :-(
22:51 sri so far it is not allowed
22:52 sri hmm
22:52 sri we could also use {Foo => 'foo'} just to be sure
22:53 sri maybe worth checking the html5 spec
22:53 sri ah, not allowed in html5
22:53 sri "Differences Between HTML 4.01 and HTML 5
22:53 sri NONE"
22:55 kvorg omg, i think we don't want that, i think the endless menu cascade can be left to the windows start menu and such
22:56 kvorg i have a simple one working, but it looks the bells-and-whistles version is for tomorrow
22:56 kvorg is it acceptable to put some docs fixups in the same branch?
23:00 sri if they are split in two commits
23:01 sri i like to cherry pick and review one change at a time
23:01 sri esepcially now that i'm a little slow due to the vim switch :/
23:08 dri1ink left #mojo
23:11 und3f is now known as und3f[A]
23:12 dri1ink joined #mojo
23:19 esskar left #mojo

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