Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-14

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

All times shown according to UTC.

Time Nick Message
00:22 perlrocks left #mojo
00:38 stephen left #mojo
01:45 tempire Dude.  With Perl::Visualize, lite apps could be distributed as gifs. http://bit.ly/cckVmZ
02:35 janus left #mojo
03:44 janus joined #mojo
04:03 polvo joined #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
05:19 ysyrota joined #mojo
05:21 rhaen good morning!
05:21 xantus make it rhaen!
05:21 xantus :)
05:22 rhaen :)
05:22 rhaen Hej xantus!
05:22 rhaen good to see you!
05:22 rhaen you did an awesome job with all your Mojo applications
05:22 rhaen really cool!
05:23 xantus oh, thanks
05:26 xantus I'm working on a dav server, so I can use cloud9ide with mojo
05:26 y0j left #mojo
05:27 rhaen oh, a webdav server inside mojo? with websocket protocol?
05:28 xantus the ide uses webdav to browse, save and load files
05:28 xantus and websockets, etc to communicate with the server
05:29 xantus so yep
05:29 xantus I'll replace mojopaste with cloud9
05:29 rhaen holy! Are websockets production ready right nwo?
05:29 rhaen err now
05:31 xantus well, its a moving target, but you can test and fallback onther things like longpoll
05:31 xantus s/onther/on other
05:32 xantus I think I just made up a new word :)
05:32 rhaen trivial!
05:32 rhaen that's easy
05:33 rhaen just throw a few pieces of code together - shouldn't take long (tm)
05:33 rhaen me and my friends (tm)
05:34 xantus omg, byobu (gnu-screen) has a status bar item for ec2 cost!
05:34 xantus ~$1.63 :)
05:34 xantus using uptime
05:35 rhaen haha. Do you have ec2 instances?
05:35 xantus I'm ircing from one right now
05:35 rhaen are you confidient with their services? Do you use them for web based services?
05:35 xantus yeah
05:36 xantus It's so nice to be able to set up a machine and create an AMI from it
05:36 rhaen I am still thinking of migrating a few parts of the company I am working for to the cloud
05:36 xantus and launch X more of that same machine
05:37 xantus I even setup ddclient to set up dns
05:37 xantus I have a vip account at dyndns
05:37 rhaen ah - yep, rent enterprise cloud space and use ddclient for dyndns homemade dns solutions
05:38 rhaen Same here :)
05:38 xantus I have them manage xantus.org dns
05:38 rhaen I contributed that time when they ask for donations
05:38 rhaen ah! Ok, thats the cool irc webchat client
05:38 xantus yeah, me too, like 10-15 years ago
05:38 rhaen this one is _AWESOME_
05:39 MojoGuest688 joined #mojo
05:39 MojoGuest688 this one right?
05:40 rhaen I like oh, fuck.
05:40 xantus that one is on a $5/mo server at dreamhost
05:40 rhaen is this one production ready? For like 500 users?
05:40 xantus hm ,not sure
05:41 xantus but it can handle a lot of connections
05:41 xantus the code is on github
05:42 rhaen I need to talk later to you about the client :)
05:42 xantus http://github.com/xantus/mojo-websocket-examples
05:42 rhaen however, up to work - NOW!
05:42 xantus yeah, I hacked that together
05:42 * rhaen kicks himself.
05:42 xantus the client parses the irc protocol
05:42 rhaen rhaen: come on guy, stop chatting around, get to work!
05:43 rhaen I'll see you later *waves*
05:43 xantus k :)
05:43 MojoGuest688 \o/
05:43 MojoGuest688 left #mojo
05:47 MojoGuest374 joined #mojo
05:47 MojoGuest374 left #mojo
05:48 MojoGuest378 joined #mojo
05:48 MojoGuest378 left #mojo
05:50 MojoGuest919 joined #mojo
05:50 MojoGuest919 left #mojo
05:51 MojoGuest61 joined #mojo
05:51 xantus p
05:51 xantus added a link
05:52 MojoGuest61 left #mojo
05:52 marcus_ hmm, I kind of envy php their interp request scope
05:53 marcus_ only need one fcgi daemon, and I can run a bunch of wordpress installations ;)
06:02 marcus_ sri: I think the latest change will be confusing
06:02 marcus_ sri: I mistype $self->request as $c->reques for instance, and it complains about helper methods...
06:03 marcus_ o/' I'm free to do what I want, any old time o/'
06:08 marcus_ Thu Oct 14 08:08:26 2010 error Mojolicious::Controller:189 [9240]: Helper "reqast" not found at /Users/marcus/Source/iPhonePr​ojects/Brygg/t/..//bryggws.pl line 34
06:12 marcus_ Thu Oct 14 08:12:21 2010 debug Mojo::Server:57 [9320]: Waiting for delayed response, forgot to render or resume?
06:12 marcus_ woot
06:13 * marcus_ gently stabs his guitar
06:26 ltriant left #mojo
06:29 kvorg joined #mojo
06:39 y0j joined #mojo
06:40 marcus_ sri: I found a very subtle problem
06:40 marcus_ get ('/list') => sub { };
06:46 koban joined #mojo
06:52 alnewkirk left #mojo
06:58 kvorg left #mojo
07:17 marcus_ so, when is mojolicious code point 1F4A9 coming out?
07:17 Foxcool joined #mojo
07:27 kvorg joined #mojo
07:31 rhaen marcus_: ?
07:32 rhaen marcus_: I really would like to change parts of your testing wiki entry
07:32 rhaen the name - is, well - chosen wonderfully however it's named "NAME" right now
07:32 rhaen I'll change it to something, hm - more meaningful :)
07:33 rhaen marcus_: objections?
07:36 marcus_ rhaen: yes, I hate you all.
07:36 marcus_ or maybe not
07:36 rhaen cool! :) I am changing it.
07:53 rhaen changed - did it hurt?
08:13 vti sri: :D # app helpers
08:15 Arktosis left #mojo
08:16 Kulag joined #mojo
08:28 marcus_ OH DANNY BOY, THE PIPES, THE PIPES ARE CALLING
08:30 daxim joined #mojo
09:03 kvorg left #mojo
09:40 kvorg joined #mojo
09:46 sri marcus: the error message can be adjusted
09:46 sri moin btw :)
09:47 gabb moinsen
09:47 * gabb got the shit beaten out of him last night at squash by a girl who is 2 heads smaller than him
09:48 gabb I feel so friggin sore - she let me run into every fucking wall, my shoulders are a nice mix of green, purple and blue
09:48 * gabb swears revenge and invited her to play basketball agains him xD
09:50 GitHub29 joined #mojo
09:50 GitHub29 mojo: master Sebastian Riedel * 5651bd8 (2 files in 2 dirs): improved autoload error - http://bit.ly/cfH1Qx
09:50 GitHub29 left #mojo
09:50 sri marcus: that should help
09:53 marcus_ gabb: lol
09:53 marcus_ gabb: <3 squash
09:53 marcus_ sri: btw, is there really any point in allowing just get ('/foo'); without a second argument?
09:54 sri ye
09:54 sri get('/foo')->to(...)
09:54 marcus_ it automatically looks for a template?
09:54 marcus_ oh
09:54 sri they return the generated route
09:54 marcus_ I see.
09:55 sri fancy pattern also works
09:55 marcus_ I spent a long time debugging because I didn't notice I'd put () around the route argument
09:55 marcus_ so my sub got ignored
09:55 sri get '/:controller/:action';
09:55 marcus_ it gave a funky warning about useless use of {} or something tho
09:59 sri don't think there is much we can do about that
10:05 GitHub115 joined #mojo
10:05 GitHub115 mojo: master Sebastian Riedel * 6821049 (2 files in 2 dirs): improved autoload exceptions again - http://bit.ly/96zEX3
10:05 GitHub115 left #mojo
10:05 sri marcus_: ok, now it is the exact same error perl generates :)
10:08 sri the things about route generators is that they are so damn dynamic
10:09 sri you would have to identify every single bad case and catch it somewhere
10:11 sri interesting you are the first to *ever* complain about it though
10:12 sri considering it is our most heavily used api
10:13 sri or has anyone else had problems with the lite api?
10:17 * gabb is ignoring the lite api
10:18 sri your loss!
10:18 gabb :P
10:18 gabb is by any chance a "evolve your lite app into a fullblown app" guide in planning?
10:19 gabb the reason I avoid lite is because I can't forsee the amount of work required for the re-engineering once I go web scale (hoho)
10:20 sri thats the growing guide
10:20 sri it is 90% written now
10:22 gabb once its there the uncertainty may go away in choosing lite as a starting point
10:23 gabb I created a lite app and tried to turn it mojolicious and watched the errors come up, which made me think I don't want any business with the re-engineering
10:27 sri http://cache.gizmodo.de/wp-content/upl​oads/2010/10/google_battleship_ib.jpg # lol
10:28 spleenjack joined #mojo
10:33 dotan joined #mojo
10:43 rhaen gabb, easy - there had been a post on the ML
10:46 rhaen or not - I am searching
10:47 Foxcool left #mojo
10:52 rhaen hm, cant find it anymore.
10:52 rhaen basic thing was to put the app into the mojolicious::lite app
10:54 spleenjack left #mojo
10:57 dotan rhaen: there's embedding, where you can plug a lite app into a regular app (you set up a route to a lite app instead of a controller class/action)
11:05 dotan I've got a mojolicious app with the '/:controller/:action' route, and I've got some actions that basically do nothing (just to autorender the template). Can I bypass having empty action methods in the controller?
11:07 sri as long as a route endpoint matches auto rendering does not require actual methods
11:08 sri at least in newer mojolicious releases
11:10 rhaen "newer releases"?
11:10 rhaen oh "newer _RELEASES_"?
11:10 * rhaen hides.
11:10 dotan Just checked and looks like I just need a template. Thanks!
11:11 rhaen dotan: make sure to remove the "mojolicious" app - it's been replaced with mojo
11:11 rhaen just a "make install" won't fix it
11:11 dotan rhaen: thanks - I think I suggested that change :)
11:12 rhaen oh, I just wanted to remind you :)
11:12 dotan can't I just ignore the mojolicious command and use mojo?
11:13 rhaen yeah, but if your laptop will be stolen the thief might use the wrong command
11:13 rhaen and might ask stupid questions on the ML then
11:13 rhaen j/k
11:14 dotan does 'make uninstall' remove the previous version? that can't be right...
11:21 yakudzo my ep template file grew up to 1000 lines. how can I include other files in one template ?
11:23 spleenjack joined #mojo
11:24 spleenjack left #mojo
11:24 yakudzo found it
11:34 yakudzo left #mojo
11:38 vti sri: i am thinking how to make bootylicious' templates a bit more flexible.. like a plugin can add a twitter button without forcing a user to alter the template.. any suggestions? the first thought is to add a special stash value where everybody can push their templates and then it just gets rendered one by one after the article for example
11:42 sri vti: dunno, there are so many ways
11:44 forwardever joined #mojo
11:45 marcus_ sri: could be that I wrote get('/foo') because I'm so used to catalyst foo : Path('/bar')
11:46 sri :)
11:48 perlrocks joined #mojo
11:50 perlrocks left #mojo
11:50 perlrocks joined #mojo
11:50 sri marcus_: the new autoload error works for you?
11:54 GitHub78 joined #mojo
11:54 GitHub78 mojo: master Sebastian Riedel * 9a488d3 (1 files in 1 dirs): cleanup - http://bit.ly/9NJTkx
11:54 GitHub78 left #mojo
11:55 marcus_ sri: yes.
11:56 vti maybe view shouldn't be only about templates...
11:56 sri ?
11:57 vti just typing crap from my head
11:57 vti :D
11:57 marcus_ let's make the view about the model.
11:57 marcus_ o/' it's all about the money o/'
12:00 vti marcus_: ;p
12:00 sri did i mention how much i like redis?
12:01 vti no
12:01 sri i really like redis
12:02 sri even the new protocol
12:02 sri so simplistic
12:11 dotan left #mojo
12:13 sri marcus_: you're sold on mongodb?
12:18 rhaen Excuse me, why didn't you use MongoDB
12:18 marcus_ sri: it works for the project I am doing on it.
12:18 marcus_ the geospatial indexes are nice
12:18 marcus_ and the perl driver is easy to use.
12:19 rhaen Everyone knows that relational database are slow because they use joins and write to disk.
12:19 marcus_ rhaen: diaf
12:19 rhaen diaf?
12:19 sri hahahaha
12:20 rhaen ok  - no.
12:20 marcus_ yes
12:20 rhaen no!
12:20 marcus_ :-/
12:22 * vti drives to the farm
12:22 rhaen HAHAHA!
12:30 rhaen hm, can I store binary data inside redis?
12:30 rhaen I really should have a closer look.
12:30 rhaen ok, yes.
12:32 rhaen redis is unusable!
12:32 rhaen you can only store 1 gigabyte as value
12:32 rhaen puuh, we should be careful :)
12:35 vti that's not web scale
13:00 forwardever how to define ->to() in routes to get dispatched to hello::Admin::City controller ? Nothing seems to work.
13:02 sri thats a class right?
13:02 sri ->to('admin-city#')
13:03 forwardever works, thanks :)
13:39 spleenjack joined #mojo
13:52 forwardever is there a single_to_plural method in mojo, to transform city to cities?
13:56 dotan joined #mojo
13:56 rhaen hej dotan!
13:59 dotan rhaen: yes?
14:03 rhaen oh, just a "hej" :)
14:12 spleenjack left #mojo
14:20 forwardever sri: updated ResourcefulRoutes plugin, maybe you can take a look at it http://gist.github.com/626226
14:28 fhelmber_ joined #mojo
14:36 xantus forwardever: no (re: single_to_plural)
14:37 xantus that should be part of your localization strategy
14:38 xantus I prefer using template sets
14:38 spleenjack joined #mojo
14:38 xantus you could even have a helper
14:40 forwardever needed single to plural for the plugin mentioned above, have copied a method for this from anohter project
14:50 vti sri: i want render_inner to accept a format too, is that possible?
14:54 vti and a helper like 'include' but for strings :)
15:03 kvorg left #mojo
15:03 vti oh, it's not possible, because you append it to the current template =/
15:05 vti hm, there is inline
15:06 vti you bet not call render(inline => '') from a template :D
15:12 koban left #mojo
15:12 kvorg joined #mojo
15:31 stephan48 why?
15:32 vti it replaces all the output just with that rendered string
15:33 stephan48 k
15:35 fod joined #mojo
15:37 fod left #mojo
15:38 fod joined #mojo
15:40 und3f[A] is now known as und3f
15:52 marcus_ rhaen: hej hej. hemskt mycket hej.
15:54 marcus_ forwardever: wow, that's a very primitive singular_to_plural
15:54 GabrielVieira joined #mojo
15:55 marcus_ forwardever: you might be better off with http://search.cpan.org/~dconway/Lingua-E​N-Inflect-1.892/lib/Lingua/EN/Inflect.pm
15:56 forwardever marcus: just want to keep it simple, will probably allow to also pass plural form manually in cases this simple sub does not work :)
15:57 perlrocks Twitter: "Today's YAPC:: Asia and tatsumaki Sledge came out in interest. WAF they wanted to make something using recently been playing around a little, but Mojolicious, Sledge and I try to read the document." (ja) --nabetama http://twitter.com/nabetama/status/27353827209
15:57 perlrocks Twitter: "RT @ nabetama: Today's YAPC:: Asia and tatsumaki Sledge came out in interest. WAF they wanted to make something using recently been playing around a little, but Mojolicious, Sledge and I try to read the document." (ja) --AE_PerlIsm http://twitter.com/AE_PerlIsm/status/27353827973
16:00 perlrocks Twitter: "RT! Nabetama: Today's YAPC:: Asia and tatsumaki Sledge came out in interest. WAF they wanted to make something using recently been playing around a little, but Mojolicious, Sledge and I try to read the document." (ja) --perlism http://twitter.com/perlism/status/27354041327
16:13 spleenjack left #mojo
16:21 und3f sri, thanks for &apos :P
16:28 spleenjack joined #mojo
16:56 alnewkirk joined #mojo
16:58 perlrocks Twitter: "And you've already seen job with # Mojolicious http://is.gd/g1Xau? # Perl" (ru) --xomaa http://twitter.com/xomaa/status/27358948025
16:59 perlrocks Twitter: "And you've already seen job with # Mojolicious http://is.gd/g1Xau? # Perl" (ru) --mslufsvwivann http://twitter.com/mslufsv​wivann/status/27359046230
17:06 ysyrota left #mojo
17:19 dotan left #mojo
17:33 perlrocks Twitter: "I am happy:) Just a silly claim to teach for two weeks is very simple RT: @ xomaa: already seen job with # Mojolicious http://is.gd/g1Xau?" (ru) --sharifulin http://twitter.com/sharifulin/status/27361637669
17:39 spleenjack left #mojo
17:42 daxim left #mojo
18:39 forwardever left #mojo
18:58 Htbaa joined #mojo
19:32 Htbaa left #mojo
19:34 perlrocks Twitter: "#Bootylicious got sponsorship. #perl #mojolicious" --vtivti http://twitter.com/vtivti/status/27370080931
19:40 alnewkirk salutations
19:42 marcus_ alnewkirk: moin
19:43 alnewkirk konichiwa
19:52 memowe_ left #mojo
20:12 Akron joined #mojo
20:23 fhelmber_ left #mojo
20:34 Akron Hi! How can I use templating URLs with Mojo::URL? ( http://tools.ietf.org/html/draf​t-hammer-hostmeta-05#section-3.2.1 )
20:35 Akron It always escapes to something like "http://example.com/?foo=%7Bbar%7D" ...
20:54 xantus -05 is old, its -13 now
20:54 xantus http://tools.ietf.org/html/draf​t-hammer-hostmeta-13#section-3.1.1
20:57 xantus and templating is silly
20:58 Akron ebfinger needs it.
20:58 Akron Webfinger needs it.
20:59 ltriant joined #mojo
21:01 Akron But thanks for the Update! ;)
21:01 fod left #mojo
21:10 xantus do { local $Mojo::URL::PARAM = "{}A-Za-z0-9\-\.\_\~\'\!\$\(\)\*\,\:\@\/\?"; my $url = Mojo::URL->new("http://foo.com")->query({q => "{bar}"}); print "$url\n"; }
21:10 xantus heh
21:10 xantus uuggly
21:10 Akron Wow ... brillant!
21:10 xantus you need to test that
21:10 Akron I will.
21:11 Akron Looks beautiful. :)
21:11 xantus its a hack, but whatever
21:11 xantus http://blog.codinginparadise.org/2010/10/3d​-slides-built-with-html5-css3-and-svg.html
21:13 vti sri: what if a helper could be an object too, not only function? this way it could be easy to overload helpers and reuse them using the same name without changing templates
21:42 forwardever joined #mojo
22:36 forwardever left #mojo
22:54 und3f is now known as und3f[A]

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