Camelia, the Perl 6 bug

IRC log for #mojo, 2010-10-11

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

All times shown according to UTC.

Time Nick Message
00:47 polvo joined #mojo
00:53 achromic left #mojo
00:58 achromic joined #mojo
01:43 and joined #mojo
02:14 and left #mojo
02:23 al left #mojo
02:28 al joined #mojo
02:35 janus left #mojo
02:42 hoelzro Is there a way to get the stash to persist across redirects?
02:45 hoelzro or a way to call a route from another without destroying the stash?
02:52 and joined #mojo
02:54 sri hoelzro: no
02:55 sri you would normally use a session or the flash for that
02:59 hoelzro sri: Mojolicious has a flash?
02:59 ltriant left #mojo
02:59 ltriant joined #mojo
02:59 sri thats what i said
03:00 janus joined #mojo
03:01 and is now known as avkhozov
03:01 sri http://www.boingboing.net/2010/​10/10/simpsons-show-intro.html # wow, banksy intro for the latest simpsons episode
03:02 hoelzro sri: alright, thanks for that tip
03:11 yakudzo joined #mojo
03:31 yakudzo morning
03:37 alnewkirk left #mojo
03:37 alnewkirk joined #mojo
04:04 tholen42 joined #mojo
04:06 tl left #mojo
04:10 yakudzo sri, are you there ?
04:42 sri yakudzo: maybe
04:42 yakudzo (:
04:43 yakudzo sri, do you have some place to post test cases with bug or I should just paste it somewhere and give link here ?
04:44 sri those are usually sent via github pull requests
04:44 sri but a nopaste link here is fine too
04:45 yakudzo then here  http://paste.scsys.co.uk/52688
04:45 yakudzo actually I already try to fix it
04:46 sri what has the lite app to do with it?
04:47 yakudzo I created lite app just to show bug with Mojo::DOM where replace_inner not working with utf chars
04:47 sri ok, why not a normal script then?
04:48 sri garbage just makes it harder to fix
04:50 yakudzo ok understood. If I fail with wix I will write normal script (;
04:51 sri and as suspected, there is no bug
04:53 GitHub164 joined #mojo
04:53 GitHub164 mojo: master Sebastian Riedel * 10debf9 (1 files in 1 dirs): added test - http://bit.ly/d2KyJJ
04:53 GitHub164 left #mojo
04:53 sri yakudzo: you might have to read up on perl unicode
04:54 sri works flawless
04:55 xantus sri: DOM caches the slash in self closed tags <foobar/> in the ->name
04:56 sri xantus: long fixed
04:56 xantus hmmm, really
04:56 sri Mojo::DOM got massive updates last week
04:56 sri full css3 support and stuff
04:57 xantus ah
04:57 xantus odd, I can't pull from github, its probably down
04:57 sri odd, i just pushed
04:58 xantus git is giving me:  fatal: protocol error: bad line length character: <!DO
04:58 xantus heh
04:58 sri ouch
04:59 xantus its http://github.com/kraih/mojo.git
04:59 xantus says its 404
05:00 * xantus shrugs
05:00 yakudzo xantus, just right now made a clone
05:01 xantus I used the git:// url just fine
05:04 xantus ok, name accessor went away
05:04 sri type
05:05 sri accessors now match the spec
05:06 sri in the specs name only appears in relation to namespace
05:06 xantus ok, back in business
05:07 sri $dom->at('div:nth-of-type(3)')->name seemed weird :)
05:08 sri make sure to try the sibling selectors, people don't appreciate those enough :(
05:09 sri oh and :not()
05:10 sri that one was a hell of a lot of work
05:18 yakudzo sri, perl -Mojo -e'$qwe = x("<div>some text</div>")->at('div'); $qwe->replace_inner("som\x{444}"); print $qwe->to_xml'
05:18 sri yakudzo: use utf8
05:19 sri otherwise it's just gibberish
05:19 sri when i said read up on perl unicode i really meant it :)
05:19 sri the pod documents are a good start
05:27 y0j left #mojo
05:29 koban joined #mojo
05:31 GitHub55 joined #mojo
05:31 GitHub55 mojo: master Sebastian Riedel * 3ea54d5 (2 files in 2 dirs): made Mojo::DOM a little more liberal and added another test - http://bit.ly/a6kHXe
05:31 GitHub55 left #mojo
05:35 ysyrota joined #mojo
05:37 sri yakudzo: that might make your immediate problem go away, but please don't let it keep you from reading up :)
05:37 yakudzo sri, many thanks already pulled
05:37 yakudzo (:
05:39 sri it's not a fix, just a workaround for a common misunderstanding
05:47 xantus hrm, type has the namespace on it
05:52 marcus_ Mojo::DOM is so liberal, Ron Paul approves
05:52 xantus hah
05:53 marcus_ sri: I thought checking utf8::is_utf8 was not very reliable?
05:53 sri it isn't
05:54 marcus_ sri: btw, re your log analysis
05:54 marcus_ if you make it parse access logs, I'll buy it :)
05:54 sri heh
05:55 sri i was just loud thinking, nothing planned yet
05:55 marcus_ I'm a bit frusterated that all modern tools only use javascript.
05:55 marcus_ for instance, iusethis is serving shitloads of xml to apps, and I have no way of tracking it.
05:55 sri the only programming language you'll ever need...in 10 years
05:56 marcus_ I mean, they only track users through the browser
05:56 marcus_ like google analytics for instance
05:56 sri ah
05:56 sri my point still stands though :)
05:56 marcus_ mm :)
05:56 marcus_ woot, gabb is on twitter
05:57 marcus_ and he's following my norwegian account
05:57 sri I IZ FOLLOWS HIM!
05:57 marcus_ I IZ FOLLOWS TOO
05:57 Tomiles left #mojo
05:58 Tomiles joined #mojo
05:58 sri you could actually combine the whole thing with a browser based repl to tap into a mojolicious session
05:58 marcus_ yeah.
05:59 marcus_ being able to track both on the server side and js would be a huge advantage
05:59 und3f[A] is now known as und3f
06:00 Tomiles left #mojo
06:01 marcus_ have to see the banksy simpsons opening now
06:01 sri really good
06:02 kvorg left #mojo
06:03 marcus_ no kidding
06:20 alnewkirk left #mojo
06:21 alnewkirk joined #mojo
06:29 ltriant left #mojo
06:39 viking-3 left #mojo
06:44 viking-3 joined #mojo
06:50 viking-3 left #mojo
06:56 koban left #mojo
07:05 perlrocks joined #mojo
07:07 y0j joined #mojo
07:07 gabb lol @ banksy
07:08 gabb erm marcus_ - whats your not norwege acc on twitter? :P
07:09 perlrocks Twitter: "[H] Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/cx8VoT Hatena Diary" (ja) --bb_auto http://twitter.com/bb_auto/status/27012301375
07:09 gabb ah, found it :P
07:10 marcus_ ;)
07:11 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6sky8 Hatena Diary" (ja) --RtestR http://twitter.com/RtestR/status/27012392528
07:12 gabb damn, thats the best simpsons opening ever
07:12 marcus_ agree
07:20 spleenjack joined #mojo
07:20 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary http://bit.ly/cx8VoT # javascript" (ja) --javascript_j http://twitter.com/javascript_j/status/27012845139
07:21 perlrocks Twitter: "[Hatebu:: it] Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/cx8VoT Hatena Diary" (ja) --mbiz_rss http://twitter.com/mbiz_rss/status/27012895017
07:22 viking-3 joined #mojo
07:23 perlrocks Twitter: "http://tinyurl.com/26a73a3 # followmejp # followdaibosyu Mojolicious:: Lite to make chat with at WebSocket - naoya ends of the ã" (ja) --unageedog http://twitter.com/unageedog/status/27012986946
07:23 perlrocks Twitter: "Hatena: Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/bu1v83 Hatena Diary" (ja) --_newsrss http://twitter.com/_newsrss/status/27012991479
07:25 perlrocks Twitter: "☑ Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6snCr # pctool Hatena Diary" (ja) --pctoolnews http://twitter.com/pctoolnews/status/27013047931
07:25 gabb actually scratch that, it may be one of the best episodes - love it
07:27 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6snTv Hatena Diary" (ja) --yotasurf2 http://twitter.com/yotasurf2/status/27013146569
07:29 perlrocks Twitter: "[IT] Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/cnfIc4 Hatena Diary" (ja) --wingedlove_feed http://twitter.com/wingedlo​ve_feed/status/27013229096
07:29 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6snhX Hatena Diary" (ja) --HiroshiNTCS http://twitter.com/HiroshiNTCS/status/27013230698
07:30 sri holy retweet batman
07:31 sri it's even a neat example
07:34 sri clean translation to english might be very cool for the wiki
07:34 perlrocks Twitter: "Web Trend: Mojolicious:: Lite to make chat with at WebSocket - naoya http://goo.gl/fb/q92Fw Hatena Diary" (ja) --S64Pontal http://twitter.com/S64Pontal/status/27013483514
07:36 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6spbb Hatena Diary" (ja) --kyaro_os_2 http://twitter.com/kyaro_os_2/status/27013549091
07:36 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6sphh Hatena Diary" (ja) --my_googlereader http://twitter.com/my_googl​ereader/status/27013562303
07:37 Rhaen moin channel
07:37 sri moin
07:38 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6spsb Hatena Diary" (ja) --infokubo http://twitter.com/infokubo/status/27013641559
07:38 Rhaen hm, it would be easier if the Japanese Perl people would write in English...
07:40 fhelmber_ joined #mojo
07:40 sri very few japanese are good at english
07:41 sri it's similar to the russians
07:42 yakudzo hehehe
07:42 sri maybe english is not the first foreign language there either
07:44 perlrocks Twitter: "✔ Mojolicious:: Lite to create a chat by using WebSocket http://bit.ly/by3zAv # doncabot" (ja) --Donca http://twitter.com/Donca/status/27013912006
07:44 perlrocks Twitter: " Mojolicious:: Lite to create a chat by using WebSocket: WebSocket aim for the "real Web"! - @ IT I read an article. node.js. .. http://bit.ly/by3zAv # dncreco # dncaster" (ja) --Donca1 http://twitter.com/Donca1/status/27013912085
07:45 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6sqjh Hatena Diary" (ja) --hiraba_reader http://twitter.com/hiraba_​reader/status/27013961230
07:46 DaTa mayday mayday, we are sinking! -- what are you sinking about?
07:46 sri :)
07:47 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya WebSocket Hatena Diary Aim at "real Web"! - @ IT ... http://goo.gl/fb/H7bwE" (ja) --BizCoolLinks http://twitter.com/BizCoolLinks/status/27014053740
07:51 gabb jesus, is every japanese following each other?
07:52 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/cx8VoT node.js" (ja) --kiki_feed http://twitter.com/kiki_feed/status/27014296636
07:52 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/cx8VoT node.js" (ja) --feed109 http://twitter.com/feed109/status/27014296680
07:52 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/cx8VoT node.js" (ja) --taetae109 http://twitter.com/taetae109/status/27014296634
07:53 gabb apparently they are xD
07:55 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/9WLx77 Hatena Diary" (ja) --kamipo http://twitter.com/kamipo/status/27014418472
08:00 perlrocks Twitter: "☆ Mojolicious:: Lite to make chat with at WebSocket - naoya ☆ Hatena Diary http://bit.ly/94RlZg [Hatena Bookmark - Popular Entries - Computer IT]" (ja) --shaat00 http://twitter.com/shaat00/status/27014658923
08:04 perlrocks Twitter: "RT @ hurdle91_4: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. http://bit.ly/cx8VoT" (ja) --makoto_inoue http://twitter.com/makoto_inoue/status/27014831885
08:05 vti sri: it's easy for you to say, you are like in the same language family ;p
08:11 sri thats true ;p
08:12 sri yet german is many times harder to learn than english
08:13 sri those stupid "der/die/das"
08:14 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/rqM7uu Hatena Diary" (ja) --ATM_09_TD http://twitter.com/ATM_09_TD/status/27015267822
08:14 vti sri: ye, i know :)
08:14 kvorg joined #mojo
08:14 sri i mean, who came up with the stupid idea that dogs are male and cats female in the german language...
08:17 sri optimized for swearing and poetry i guess
08:18 kvorg we have the same distinction in slovenian, probably most slavic languages
08:18 vti kvorg++
08:18 kvorg must have been made under the influence of canabis while we all still had sheep grazing north  of India
08:24 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/hafMJt Hatena Diary" (ja) --hiromark http://twitter.com/hiromark/status/27015709981
08:28 perlrocks Twitter: "http://bit.ly/cgWiGf More Mojolicious WebSocket examples / No time to wait I've been playing with WebSockets for a while. And here are s.." (ja) --recenturl http://twitter.com/recenturl/status/27015898380
08:42 gabb kvorg: oh, hello neighbor :P
08:48 * kvorg pokes gabb and inspects.
08:50 gabb croatia :>
08:50 koban joined #mojo
08:52 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/jEJZar Hatena Diary" (ja) --aroma_black http://twitter.com/aroma_black/status/27016994252
08:53 perlrocks Twitter: "- - RSS_4 Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim at "real Web"! - @ IT I read an article. no ... http://bit.ly/cx8VoT" (ja) --myrss_ http://twitter.com/myrss_/status/27017052814
09:09 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://ff.im/rQzZF Hatena Diary" (ja) --feedbaka http://twitter.com/feedbaka/status/27017794579
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --twithatebu http://twitter.com/twithatebu/status/27017833950
09:10 perlrocks Twitter: "Hatena job Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to create a chat by using WebSocket - naoya ... http://bit.ly/9JayjU" (ja) --lenomick_feed http://twitter.com/lenomic​k_feed/status/27017834002
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --feed_test http://twitter.com/feed_test/status/27017834149
09:10 perlrocks Twitter: "★ ★ hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/cddJrP # apr_ Hatena Diary" (ja) --aprinfo http://twitter.com/aprinfo/status/27017834100
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --tuuhanman http://twitter.com/tuuhanman/status/27017834227
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --omoshironews http://twitter.com/omoshironews/status/27017834173
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/cx8VoT Hatena Diary" (ja) --SAPPOROlovers http://twitter.com/SAPPORO​lovers/status/27017834269
09:10 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/aUG0cx Hatena Diary" (ja) --yuu_news http://twitter.com/yuu_news/status/27017834293
09:10 sri :O
09:11 zakame hehehe
09:12 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/cx8VoT node.js" (ja) --Hatena_Bot_it http://twitter.com/Hatena_​Bot_it/status/27017902375
09:12 perlrocks Twitter: "[H.hotentry] Mojolicious:: Lite to make chat with at WebSocket - naoya Aim WebSocket Hatena Diary "in real time ... http://goo.gl/fb/DpJTU" (ja) --sostso http://twitter.com/sostso/status/27017914216
09:13 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t2Pv Hatena Diary" (ja) --usmaloninc http://twitter.com/usmaloninc/status/27017944541
09:13 sri %-)
09:13 vti sri: start learning japanese
09:13 perlrocks Twitter: "[HATENA] Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t2YQ Hatena Diary" (ja) --koji_RSS http://twitter.com/koji_RSS/status/27017983788
09:17 ysyrota left #mojo
09:17 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://d.hatena.ne.jp/naoya/20101011/1286778922 Hatena Diary" (ja) --sattzi02 http://twitter.com/sattzi02/status/27018172466
09:19 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t3HG Hatena Diary" (ja) --kikoushi_flip http://twitter.com/kikoush​i_flip/status/27018224339
09:19 sri japanese are crazy
09:20 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://d.hatena.ne.jp/naoya/20101011/1286778922 Hatena Diary" (ja) --sbm2tw http://twitter.com/sbm2tw/status/27018269122
09:21 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t3Vt Hatena Diary" (ja) --hiraba_reader http://twitter.com/hiraba_​reader/status/27018320964
09:21 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t3ZC Hatena Diary" (ja) --HiroshiNTCS http://twitter.com/HiroshiNTCS/status/27018337577
09:24 perlrocks Twitter: "# Followdaibosyu Mojolicious:: Lite to make chat with at WebSocket - naoya http://ow.ly/19oaUK Hatena Diary" (ja) --kumechang http://twitter.com/kumechang/status/27018466476
09:25 perlrocks Twitter: "[Kwmr reader] Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/9l2dBh Hatena Diary" (ja) --kwmr_reader http://twitter.com/kwmr_reader/status/27018505753
09:28 perlrocks Twitter: "[H] Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t486 Hatena Diary" (ja) --roland_808 http://twitter.com/roland_808/status/27018650067
09:38 perlrocks Twitter: "Interesting. "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary" http://ow.ly/2RwSk" (ja) --YamaguchiToshi http://twitter.com/Yamaguc​hiToshi/status/27019122228
09:38 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/9JayjU" (ja) --shalmemls http://twitter.com/shalmemls/status/27019140860
09:41 omega should perlrocks perhaps detech retweets, and just not output all of them ? :p
09:42 perlrocks Twitter: "[Article] helps Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t5zd Hatena Diary" (ja) --kid_nh http://twitter.com/kid_nh/status/27019306464
09:42 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/cx8VoT node.js" (ja) --kou_yan http://twitter.com/kou_yan/status/27019324697
09:42 sri yea, possibly :)
09:43 vti i need coffee
09:43 vti !tweet I need coffee!
09:43 perlrocks vti: http://twitter.com/perlrocks/status/27019386635
09:44 vti ok, now everybody knows :)
09:44 ysyrota joined #mojo
09:47 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket http://j.mp/aZ8NDv" (ja) --ikeike443 http://twitter.com/ikeike443/status/27019564256
09:47 sri !tweet vti really needs coffee
09:47 perlrocks sri: http://twitter.com/perlrocks/status/27019581001
09:48 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t6X9 Hatena Diary" (ja) --osawa_rss http://twitter.com/osawa_rss/status/27019586515
09:49 perlrocks Twitter: "RT @ ikeike443: Mojolicious:: Lite to make chat with at WebSocket http://j.mp/aZ8NDv" (ja) --katsyoshi http://twitter.com/katsyoshi/status/27019638765
09:52 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t6r7 Hatena Diary" (ja) --yotasurf2 http://twitter.com/yotasurf2/status/27019779175
09:53 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t6vm Hatena Diary" (ja) --skzs_r http://twitter.com/skzs_r/status/27019824853
09:54 perlrocks Twitter: "So many japanese tweets about #mojolicious today, scary. :) #perl" --kraih http://twitter.com/kraih/status/27019879348
09:55 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6t77Y Hatena Diary" (ja) --Hideto_N_X http://twitter.com/Hideto_N_X/status/27019943379
09:57 perlrocks Twitter: "Somebody should really translate this for our wiki. http://bit.ly/bxCaMn #mojolicious #perl" --kraih http://twitter.com/kraih/status/27020032692
10:00 vti sri: that chat looks very familiar to me... :)
10:01 dotan joined #mojo
10:01 vti and there is a link to my blog that sucks!
10:11 sri it would look cooler with the new on_message/on_finish methods :)
10:16 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --heatupbot http://twitter.com/heatupbot/status/27020977665
10:16 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/cx8VoT" (ja) --officeshema http://twitter.com/officeshema/status/27020977726
10:16 perlrocks Twitter: "TF Hatena he: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket -... http://bit.ly/9JayjU" (ja) --kote2_rss http://twitter.com/kote2_rss/status/27020977681
10:18 vti http://twitpic.com/2wg3jc
10:20 und3f is now known as und3f[A]
10:22 koban vti: lol
10:23 sri oh, that must be the terminator i sent after vti
10:23 vti :D
10:28 perlrocks Twitter: "http://bit.ly/c3HVMY Mojolicious:: Lite - search.cpan.org Download: Mojolicious-0.999929.tar.gzDependenciesAnnotate this POD WebsiteMojol .." (ja) --recenturl http://twitter.com/recenturl/status/27021561178
10:28 perlrocks Twitter: "http://bit.ly/blhfxI Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary to the web, the art, everyday events. Aim WebSocket the "real Web"! - @ IT .. recorded it" (ja) --recenturl http://twitter.com/recenturl/status/27021561883
10:28 perlrocks Twitter: "[From yoshy921] Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: http://bit.ly/cx8VoT" (ja) --anksfeed http://twitter.com/anksfeed/status/27021564019
10:35 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (58) → ※ http://tinyurl.com/26eneughttp://tinyurl.com/26a73a3 yuan" (ja) --bukome http://twitter.com/bukome/status/27021952743
10:46 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 users) http://bit.ly/9WswJN" (ja) --hatebu http://twitter.com/hatebu/status/27022491682
10:48 gabb nice ride: http://i211.photobucket.com/albu​ms/bb224/Shehz911/BalMandir.jpg
10:48 perlrocks Twitter: "RT @ hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 users) http://bit.ly/9WswJN" (ja) --SWtree http://twitter.com/SWtree/status/27022604345
10:49 * gabb cuts underwater cable that provides japan with the intertubes
10:50 perlrocks Twitter: "★ hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 .. → http://am6.jp/9JzJSm" (ja) --R_atmark http://twitter.com/R_atmark/status/27022687891
10:51 perlrocks Twitter: "RT @ hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 users) http://bit.ly/9WswJN" (ja) --kakeru_13493 http://twitter.com/kakeru_13493/status/27022770164
10:55 perlrocks Twitter: "RT: hatebu: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary (57 users) http://bit.ly/9WswJN" (ja) --O_T_MagellanV_ http://twitter.com/O_T_Mag​ellanV_/status/27022946321
11:00 sri gabb: didn't seem to work :S
11:02 omega man, do these japaneese just sit in a circle retweeting each other? :p
11:02 gabb no wonder the japanese economy has gone to shit, all they do is retweet all day :P
11:02 omega this must be some sort of plot to get fail whales
11:04 gabb longshot: anyone running a postfix/dovecot install with virtual users but without mysql?
11:04 vti gabb: i do
11:05 vti or i am
11:05 gabb using doveauthdb or something? flatfile?
11:05 gabb heh, the first reply sounded like you accepted my wedding proposal :D
11:05 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena ... http://bit.ly/9JayjU" (ja) --news_yukimis http://twitter.com/news_yukimis/status/27023531087
11:05 vti via userdb i think
11:06 gabb got a good guide you remember or did you do it experimentally all by yourself?
11:07 vti hm.. i think it was debian administrator guide
11:07 sri http://blog.cloudant.com/cl​oudant-core-is-open-source # interesting
11:09 vti gabb: i even managed to install imap ssl, now struggling with smtp :D
11:10 gabb imap ssl was easy ... well ... kinda, once you sort the .key, .pem, .crt, .csr mess with openssl
11:10 sri anyone knew ssl certificates are free for open source projects?
11:10 gabb but I hate that outlook doesnt support cram-md5 logins
11:10 sri http://www.godaddy.com/gds​hop/ssl/ssl_opensource.asp
11:11 marcus_ gabb: there's so much more to hate about outlook
11:11 gabb lol true, but thats just my latest encounter :P
11:11 gabb however UI-wise outlook 2010 is improving
11:11 perlrocks Twitter: "What is Google V8 JavaScript Engine node.js of whether it was using server-side framework »Mojolicious:: Lite to make chat with at WebSocket http://t.co/UhPYhDD" (ja) --zetamatta http://twitter.com/zetamatta/status/27023869000
11:12 marcus_ wth?
11:12 gabb lol
11:12 marcus_ somehow I doubt that is a perfect translation
11:12 sri lol
11:15 sri if those japanese spoke english they would conquer the internets :o
11:17 gabb maybe, but then we wouldn
11:18 gabb *we wouldn't have such jewels: http://groups.google.com/shibboleth-users/b​rowse-thread/thread/123bd2b82822a3a7?pli=1
11:18 gabb erm: http://groups.google.com/shibboleth-users/b​rowse_thread/thread/123bd2b82822a3a7?pli=1
11:19 gabb fail: http://tinyurl.com/japeng
11:19 gabb copying a URL from host into vm sucks
11:21 sri rofl
11:21 Rhaen hm.
11:22 yakudzo left #mojo
11:30 marcus_ gabb: too good
11:30 marcus_ dragon vomit ftw
11:32 gabb ye
11:37 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/xjpwgH Hatena Diary" (ja) --momota http://twitter.com/momota/status/27025333122
12:19 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/cNrqAC Hatena Diary" (ja) --hachimitu http://twitter.com/hachimitu/status/27028049486
12:28 avkhozov left #mojo
12:32 perlrocks Twitter: "ꥣ Ȥ Ƥʤ Ϥ - Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: http://j.mp/bLBmps # miteru" (ja) --hinatter http://twitter.com/hinatter/status/27028901175
12:34 perlrocks Twitter: "[Perl] [html5] / Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/6EbRUJ Hatena Diary" (ja) --tyage http://twitter.com/tyage/status/27029083048
12:35 perlrocks Twitter: "RT! Tyage: [Perl] [html5] / Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/6EbRUJ Hatena Diary" (ja) --perlism http://twitter.com/perlism/status/27029113799
12:42 avkhozov joined #mojo
12:43 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary: WebSocket aim for the "real Web"! - @ IT I read an article. Toi ... http://bit.ly/9JayjU node.js" (ja) --hatebu_it http://twitter.com/hatebu_it/status/27029751477
12:49 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/yXs7Nx Hatena Diary" (ja) --ItSANgo http://twitter.com/ItSANgo/status/27030202463
12:56 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/9JayjU # HTML5 # HTML5jp Hatena Diary" (ja) --html5_j http://twitter.com/html5_j/status/27030684307
13:04 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://dlvr.it/6tVDF Hatena Diary" (ja) --hkuze_flipboard http://twitter.com/hkuze_fl​ipboard/status/27031275503
13:04 Rhaen omg!
13:04 Rhaen shall I retweet?
13:09 forwardever joined #mojo
13:09 forwardever sri: have some questions :)
13:10 sri don't ask to ask, just ask
13:10 forwardever just wanted to see if your online :)
13:11 forwardever first, i'm playing around with mojolicious and i also write everything down
13:11 forwardever i will publish it later in the wiki, under routes non lite apps
13:12 forwardever one of the problems that occured on Windows, I get the following error message:
13:12 forwardever Can't unlink PID file "C:\Users\andre\AppData\Local\Temp\hello.pid".
13:12 forwardever is there a way to get rid of this problem ?
13:14 sri could be windows specific, no idea
13:15 forwardever okay, it seems that this happens only if I restart windows and try to start the server again
13:15 forwardever really annoying
13:16 forwardever I have to delete this file manually all the time
13:17 forwardever another problem that I noticed:
13:17 sri the pid file code is changing completely, might already be fixed in my hypnotoad branch
13:17 sri i think it is bound to a signal atm
13:18 snearch joined #mojo
13:18 forwardever what exactly is hypnotoad, a rewritten server?
13:18 sri replacement for the prefork daemon
13:18 forwardever okay
13:18 sri will make hot deployment dead simple
13:18 forwardever another problem, I have created a route: $r->route('/city/:name/')->to('city#info');
13:19 sri upgrade perl with zero downtime, out of the box
13:19 Alias_ left #mojo
13:19 Alias left #mojo
13:20 forwardever now, if the city controller does not exist, I get a 404, but this should produce an exception, as it is a coding error
13:20 sri no it should not
13:20 forwardever why not?
13:20 sri /:controller/:action could be used to flood the log with false errors
13:21 sri not a coding error
13:21 sri routes are too dynamic for it to be a coding error
13:22 forwardever what I mean, if I define a non-existing controller as the default controller, I would expect an exception
13:23 sri false assumption
13:23 sri we would have to walk the whole routes stack up and check every route for a controller placeholder
13:24 sri controller is no constant, it is a variable
13:25 sri it might have been an error in your code, but for routes it is not even an exception
13:25 sri that is by design
13:27 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/eh35nJ Hatena Diary" (ja) --__gfx__ http://twitter.com/__gfx__/status/27033142100
13:28 forwardever it makes debugging a bit harder, getting a hint from mojolicious would have helped, as my controller file had a wrong name (Cities.pm, not City.pm)
13:30 sri should be something in the debug log
13:31 sri at least in the github version
13:31 Rhaen ah! forwardever?
13:32 Rhaen did you write the route (non lite) thing inside the wiki?
13:32 Rhaen is that ok for you to rename it without the ( ) braces?
13:32 forwardever yea, just log my experiences :)
13:32 Rhaen It will messup some systems - like github itself
13:33 forwardever you can rename it, if you want
13:33 Rhaen cool - great work!
13:33 Rhaen k, I will do it right now - thanks for all your help!
13:33 forwardever as mentioned earlier, will add some stuff after your renaming
13:35 Rhaen k
13:36 forwardever sri: in the debug log, i just get a note that the template could not be found
13:37 forwardever Dispatching hello::City2->info
13:37 forwardever Resource "city2/info.html.ep" not found.
13:41 Rhaen done.
13:41 Rhaen oh. lemme check
13:41 Rhaen yup. done
13:43 Rhaen so - feel free to change everything you like :)
13:43 GitHub106 joined #mojo
13:43 GitHub106 mojo: master Sebastian Riedel * 3c67333 (2 files in 2 dirs): improved dispatcher debug log - http://bit.ly/91KpdD
13:43 GitHub106 left #mojo
13:43 sri forwardever: should be better now :)
13:44 forwardever sri: will check it out
13:44 forwardever :)
13:44 sri also includes the pid fix
13:45 Rhaen hm, it's a very productive feeling in this channel
13:46 Rhaen very nice!
13:46 forwardever will check pid-fix tomorrow, otherwise I would have to restart Windows Vista, which is a pain :)
13:46 Rhaen forwardever: if you just switch off the power you can save the time for the shutdown
13:47 forwardever :)
13:48 forwardever log: Dispatching hello::City2->info
13:49 perlrocks Twitter: "Watching: [Mojolicious:: Lite to make chat with at WebSocket - naoya Hatena Diary http://d.hatena.ne.jp/naoya/20101011/1286778922 Guide" (ja) --hidehish http://twitter.com/hidehish/status/27035007586
13:49 forwardever log: hello::City2 does not exist
13:49 forwardever it works, thanks
13:49 GitHub106 joined #mojo
13:49 GitHub106 mojo: master Sebastian Riedel * a0036f5 (1 files in 1 dirs): friendlier log message - http://bit.ly/9xUYQ7
13:49 GitHub106 left #mojo
13:49 sri great, and now it hints at the problem :)
13:52 forwardever yea, however, that way, I will have to keep an eye on the debug log, a direct warning would be better, but it's okay for now, thanks again
13:53 arthas joined #mojo
13:54 forwardever okay, another question, if I rename my template file from
13:55 forwardever info.html.ep to info.html2.ep, I get The page you were requesting "/city/new_york.html" could not be found.
13:56 forwardever so far, this is what I was expecting
13:56 hoelzro left #mojo
13:57 forwardever however, if I rename the file to info.html.ep2, I get an error message like "the website could not be display", so it seems the server doesn't deliver anything
13:57 hoelzro joined #mojo
13:59 sri empty response yes
13:59 sri answer should be in the log
13:59 forwardever but why a 404 in one case, and empty response in the other case?
14:00 sri in the first a template is missing, in the second a renderer
14:00 forwardever I see: No handler for "ep2" available
14:00 forwardever okay, that might make sense
14:01 gabb vti: phew, done with mail :) (postfix + dovecot running pop3-ssl and imap-ssl without database)
14:02 gabb just need to set hooks for spamd and clam I guess
14:02 forwardever why are these kind of warnings not displayed directly in the shell window?
14:02 vti gabb: congrats
14:02 sri forwardever: what shell window?
14:02 * gabb <3's cacert.org for free certs
14:03 forwardever I mean the window where Server available at http://*:3000. is displayed
14:03 sri forwardever: delete the log directory :)
14:03 sri it's in the lite tutorial
14:03 sri this is totally becoming a faq :S
14:04 forwardever the could be an own guide for "how to debug your mojolicious application"
14:05 sri don't think there is enough material for a whole guide, but there could be a cookbook section
14:05 gabb there is some written by marcus
14:06 sri i know, but it's not enough either
14:07 sri and stop acting like a cookbook section is something bad ;p
14:07 fhelmber_ left #mojo
14:07 gabb lol I am not xD
14:07 forwardever but it does'nt has to be much content, if the topic is important enough
14:07 gabb but still, a own guide is a own guide :>
14:08 forwardever so people would know where to look just by reading the title of the guide
14:08 sri forwardever: i don't want to end up with a thousand 50 line files
14:08 sri in the cookbook they even get an index
14:09 sri if a topic is important enough it can always grow into a guide
14:10 sri like the deployment section, few more recipes and it moves into its own guide
14:11 forwardever maybe, there could be many smaller cookbook files in a seperate folder, like debugging, sessions, cookies ...
14:11 sri why?
14:11 gabb lol, does is really matter? ^^
14:11 sri yes it does
14:11 sri navigating many small files is horrible
14:11 sri there is absolutely no gain
14:11 gabb I agree, thats why I meant forwardevers suggestion :P
14:12 gabb there is no tangible benefit over splitting things up too much
14:13 forwardever huge files are frightening
14:13 forwardever :)
14:13 Alias joined #mojo
14:14 snearch left #mojo
14:14 sri only if they are unorganized
14:14 gabb cookbook is not really huge yet
14:14 gabb its not a single-file exim config file :P
14:14 sri and that
14:15 gabb it has structure
14:15 gabb and navigating is not too hard as long as topics are ordered in a sensible fashion
14:15 sri on search.cpan you even get an index at the top
14:16 gabb *cough* if you release *cough*
14:16 sri http://search.cpan.org/~kraih/Mojolicious-0​.999929/lib/Mojolicious/Guides/Cookbook.pod
14:17 forwardever if you want to know where to look for a specific problem, you first have to decide which file to look at, so your recommendation would be to always look in the cookbook if the topic is not covered by the guides, that means that the cookbook will become huge
14:18 gabb nah, but in the dev world cookbooks has the reputation of being collections of tidbits
14:19 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/qGogap Hatena Diary" (ja) --hinagishi http://twitter.com/hinagishi/status/27037594999
14:19 gabb once a certain subset is structures and complete enough it becomes a new doc, a tutorial or guide or best practice recommendation etc
14:19 gabb DAMN YOU JAPANESE!
14:19 gabb I thought we had weathered the re-tweet storm
14:19 forwardever okay, another question:
14:20 sri yea, look at it as an incubator for new guides :)
14:20 forwardever in internet explorer, exceptions are displayed with raw code, e.g. &apos;
14:20 forwardever in firefox, everything seems to work fine
14:20 sri i don't understand
14:21 forwardever e.g. if there is a syntax error in my code, I get
14:21 forwardever {
14:21 forwardever &apos;status&apos; => 500,
14:21 forwardever &apos;mojo.captures&apos; => {
14:21 forwardever &apos;controller&apos; => &apos;city&apos;,
14:21 forwardever &apos;format&apos; => &apos;html&apos;,
14:21 sri no pasting
14:21 sri ever
14:22 sri use nopaste next time
14:22 gabb use a nopaste service please
14:22 forwardever okay
14:22 sri and what is wrong with that?
14:22 sri looks sensible escaped
14:23 gabb I guess he wonders why its not { 'status' => 500, ... }
14:23 forwardever yea, like in firefox
14:23 sri umm
14:23 sri possibly because ie sucks
14:23 sri i don't know really
14:24 gabb ie doesnt suck actually
14:24 gabb at least not in this case
14:24 gabb xml has &apos; - html has not iirc
14:24 gabb firefox renders xml, ie sticks to html and fails
14:24 gabb html equiv is &#39; :S
14:25 gabb see http://blogs.msdn.com/b/kirillosenkov/archive/​2010/03/19/apos-is-in-xml-in-html-use-39.aspx
14:26 forwardever IE still most popular browser, so I have to know how pages look in IE, that's why I use it in development
14:26 gabb well ye, but you won't deploy the debugging :)
14:27 sri which spec are you refering to?
14:27 gabb or
14:27 gabb use XHTML
14:27 sri html4 includes &apos
14:28 forwardever I have to read the debugging messages...
14:29 gabb what does your html header look like?
14:30 gabb sri: dont think it works in html4
14:30 gabb from a w3c spec:
14:30 gabb C.16. The Named Character Reference &apos;
14:30 gabb The named character reference &apos; (the apostrophe, U+0027) was introduced in XML 1.0 but does not appear in HTML. Authors should therefore use &#39; instead of &apos; to work as expected in HTML 4 user agents.
14:30 sri http://en.wikipedia.org/wiki/List_of_XM​L_and_HTML_character_entity_references # wikipedia is full of shit it seems
14:31 sri argh
14:31 sri they mixed
14:31 gabb heh, thats why I dont allow students to use wikipedia as a valid source for research papers :P
14:31 gabb XHTML = HTML4 + &apos
14:32 gabb forwardever: so change the dtd and you are good
14:39 sri ye
14:40 sri ie will go into quirks mode for the default html5 templates
14:41 avkhozov left #mojo
14:48 memowe_ joined #mojo
14:49 memowe left #mojo
14:50 koban left #mojo
14:52 forwardever gabb: can you explain a bit further? Change the dtd in Internet Explorer, in Mojo, or what do you mean?
14:53 forwardever have added some content to routing for non lite apps, it has become really long, so this is an intro for people with no framework experience
14:54 gabb i mean the header of your templates basically
14:56 gabb basically IE tries to figure out what you supplied him and if you give him a dtd he knows how to look stuff up and validate them etc
14:56 gabb <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/​DTD/xhtml1-transitional.dtd">
14:56 gabb got something like this?
14:58 xantus :)
14:59 forwardever I already try this, will come back in a couple of seconds
15:01 und3f[A] is now known as und3f
15:02 forwardever gabb: I have put exactly the same header into my exception.html.ep file (first line), with no success
15:03 arthas left #mojo
15:04 gabb then its IE's fault after all, because if you use that and a charset that is compatible with apostrophes like 8859-1 then it should work
15:07 gabb I dunno what part escapes the markup, but it then should use &39; to fix IE being stupid
15:09 * gabb looks at Mojo::DOM
15:12 gabb hmm
15:12 gabb the bytestream html unescape does that
15:15 Rhaen hm.
15:15 Rhaen We need something like a conceptual guide to Mojolicious
15:15 Rhaen it's hard to understand the basics when you can't see the big picture
15:16 gabb yes, very
15:16 GitHub70 joined #mojo
15:16 GitHub70 mojo: master Sebastian Riedel * 747f98f (3 files in 2 dirs): made xml escaping a little more liberal towards broken browsers - http://bit.ly/amAsxB
15:16 GitHub70 left #mojo
15:16 Rhaen like: if you want to change something inside the renderer - you have to look at the pod page: MojoX::Renderer
15:16 gabb hoho
15:16 gabb sri++
15:16 Rhaen borken browsers? You mean IE?
15:16 sri it's always ie
15:17 Rhaen nah, not always - Firefox just behave different than the standard (tm)
15:17 gabb actually ByteStream was kinda correct
15:17 sri yes it was
15:18 gabb shouldnt the templates be escaped with the html_ one�?
15:18 sri html one is too slow
15:18 gabb ah :/
15:19 sri and unneccessary
15:19 gabb ye, but spec conform :>
15:19 perlrocks Twitter: "RT @ kamipo: Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/9WLx77 Hatena Diary" (ja) --asip2k25 http://twitter.com/asip2k25/status/27043072223
15:20 sri not like #39 is worse than apos
15:20 sri xml_escape is the pragmatic one anyway, so it can do what ever it has to
15:22 * gabb had salad for lunch and thirsts now for something that had to be killed violantly
15:22 gabb laters :)
15:22 sri pizzatime!
15:23 perlrocks Twitter: "[Perl] [websocket] / Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/Mcvez1 Hatena Diary" (ja) --yasutaka http://twitter.com/yasutaka/status/27043467535
15:25 perlrocks Twitter: "RT! Yasutaka: [perl] [websocket] / Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/Mcvez1 Hatena Diary" (ja) --perlism http://twitter.com/perlism/status/27043583150
15:25 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/Loo3ih Hatena Diary" (ja) --toritori0318 http://twitter.com/toritori0318/status/27043621575
15:26 perlrocks Twitter: "@ @ Hoge.html.ep to expand a variable in the <% =%> tags around what. # Mojolicious" (ja) --nabetama http://twitter.com/nabetama/status/27043663255
15:31 forwardever sri: works now, thanks for the fix
15:31 sri not a fix, just a workaround
15:31 forwardever okay, thanks for the workaround :)
15:32 sri you're welcome :)
15:33 forwardever another question, now to test the workaround, I have removed a right curly
15:33 forwardever error message: Missing right curly or square bracket
15:33 Rhaen we still can use CGI.pm if everything breaks!
15:33 * Rhaen hides.
15:34 forwardever now hitting the reload button, I get a totally different exception: Global symbol "$our_data" requires explicit package name
15:34 Rhaen just put a "my" in front.
15:34 sri is --reload active?
15:34 forwardever yes
15:35 Rhaen sorry - sorry! I am just about to leave for today :
15:35 Rhaen )
15:35 sri i guess it's one of the cases where releading doesn't work 100%
15:36 sri not much to do about it
15:39 forwardever the --reload option does not work as soon as syntax errors appear, in other cases a have corrected the syntax error, than hit reload, but still got an exception, took me quite some time to find out that I have to restart the server manually in these cases
15:42 forwardever now I have removed the my from my $city_info
15:42 forwardever first exception: Global symbol "$city_info" requires explicit package
15:42 forwardever after reload: Helper "info" not found
15:43 forwardever very hard to debug
15:43 sri just tried syntax errors in templates, works flawless here
15:44 sri recovers perfectly after it is fixed
15:46 sri i can even switch between different syntax errors
15:46 sri and it still recovers
15:49 forwardever it's a syntax error in the controller
15:49 sri oh, that might not be recoverable
15:49 sri perl limitation then
15:49 forwardever something for the debugging guide :)
15:50 sri good luck explaining that ;p
15:50 forwardever what exactly is the perl limitation?
15:51 sri something stateful we can't reset possibly
15:52 sri quite some time since i last investigated this
15:55 forwardever is this also an issue in other frameworks ?
16:01 spleenjack is this normal that Mojo::URL::to_abs won't do anything if url contains the host? when i create Mojo::URL instance and specify host part only i suppose that to_abs->to_string() returns absolute url with leading slash. test: http://pastebin.com/ddAFM4ea . the problem has been solved by uncommenting either line 7 or line 10. but why ->to_abs->host()->to_string() and ->host()->to_abs->to_string() aren't the same?
16:02 sri forwardever: yes
16:03 sri forwardever: like i said, a perl limitation, not everything can be reloaded
16:03 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/gSqy3o Hatena Diary" (ja) --nabetama http://twitter.com/nabetama/status/27046967599
16:04 forwardever would stopping the server in such cases would be possible (and less confusing) ??
16:04 sri ?
16:05 sri spleenjack: how is http://kraih.com not an absolute url?
16:05 forwardever I mean: forcing the user to resart the server manually, so that the user does not get the impression that everything is alright, while it isnt
16:06 sri forwardever: that does not at all seem convenient
16:06 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://bit.ly/9JayjU # web Hatena Diary" (ja) --newswebc_j http://twitter.com/newswebc_j/status/27047189838
16:06 sri forwardever: how would you even detect it?
16:07 forwardever not sure, would just apply to syntax errors in controllers, maybe just in development mode, dont know whether this can be detected
16:07 sri not all syntax errors are unrecoverable
16:08 spleenjack sri: no, it is an absolute. but leading slash appears and hides depending on to_abs() and host() calls order
16:08 forwardever that's the problem: you nether now wether the error still exists or not
16:08 forwardever *know
16:08 sri forwardever: whats your point?
16:09 alnewkirk left #mojo
16:10 sri spleenjack: i don't understand, the test case looks fine
16:11 sri please make a sensible test case if you think there is a bug
16:11 sri if possible with pointers to the spec section
16:13 perlrocks Twitter: "[B!] Mojolicious:: Lite to make chat with at WebSocket - naoya http://d.hatena.ne.jp/naoya/20101011/1286778922 Hatena Diary" (ja) --co_jit_Bookmark http://twitter.com/co_jit_B​ookmark/status/27047828351
16:13 forwardever have described the problem already: exceptions are thrown, even if everything is okay (after fixing) (but wasn't okay earlier), so just providing some thoughts on making debugging easier (if there is no way to fix it)
16:14 sri forwardever: even the way you proposed to make debugging easier is impossible
16:15 kvorg left #mojo
16:15 forwardever okay, so will write a debugging section in the wiki in the next few days, so that people are warned and save some time when facing these kind of problems
16:16 sri sounds good
16:16 forwardever until you come up with a solution :)
16:17 ysyrota left #mojo
16:17 sri i'm afraid there might not be a solution
16:19 forwardever I have another question, regaring the folder structure in mojolicious apps
16:19 forwardever i have created an app called hello
16:20 sri maybe you should make a list? :)
16:20 forwardever a list of questions ?
16:20 sri ye
16:21 forwardever I have a list of questions here on my desk :)
16:21 forwardever but only one or two questions left
16:21 sri next time nopaste them so i can answer at once
16:22 gabb I have a question too! What pizza did you get sri? :)
16:22 sri pizza diablo
16:23 forwardever than I would have to answer the whole list of answers (not good :)
16:23 gabb salami + paprika + peperoni ?
16:23 sri ye
16:23 sri + onions + extra cheese
16:25 spleenjack sri: http://pastebin.com/hi4txXqE i get three different results, but they would seem identical. are there some logic for this behavior?
16:26 sri of course
16:26 sri to_abs takes into account the current state of the object
16:27 sri its behavior on an empty object is undefined
16:27 forwardever question: have created app hello, so main folder is hello, file where the routes go: /hello/lib/hello.pm, than controller folder: hello/lib/hello, so my point: all the hellos make me crazy, why not call the controller folder "controller" and the route file "route.pm" by default (maybe just a matter of taste)
16:28 sri because thats not cpan compatible
16:28 sri apps should be installable
16:29 sri i've played around with non standard layouts and everybody hated it
16:29 sri just doesn't work
16:29 forwardever okay
16:30 sri spleenjack: i think you might be misunderstanding to_abs
16:31 sri its job is simply to deal with $url->base
16:31 sri all other use cases are undefined
16:32 spleenjack sri: yes, i am. this behaviour is indistinct for me :-s
16:32 sri i don't even understand what you are trying to achieve
16:33 forwardever last question for today: is there a way than to change to folder names in my specific app?
16:33 sri ?
16:35 forwardever I mean is there a way to change the folder where controllers are located for my specific app (even if my app is not cpan compatible than)
16:36 spleenjack i think in that way: "this is my container for url parts. i put host and scheme into it, then call "build"-method, and get url-string. and i shoudn't care of putting order that parts". order of to_abs() in this case isn't significant.
16:37 spleenjack sri: "i don't even understand what you are trying to achieve" this is becase my english is hard to understand ;)
16:38 sri spleenjack: why call to_abs at all?
16:38 sri it doesn't belong into that context
16:39 sri just add your url parts and stringify "$url"
16:40 sri forwardever: umm...i guess you can change the script to whatever you want
16:40 sri but thats entirely untested and unsupported
16:42 spleenjack sri: ok, thanks
16:43 xantus something like $self->req->url->path->append( '/blah' )
16:43 kvorg joined #mojo
16:43 sri xantus: $self->req->url->path('blah')
16:43 sri ;)
16:44 sri no leading slash means append
16:45 xantus nice
16:59 forwardever sri: another example for the --reload problems: I have created a "create" method in my controller, which is not really needed, as only the template "create.html.ep" shall be delivered, so I decided to remove the "create" method from the controller, now I get: Helper "create" not found, is this one of the perl limitations?
16:59 sri it is
16:59 forwardever okay
17:13 dotan forwardever: It's just perl, so you can put your controller classes in whatever namespace you want - just set app->controller_class (documented in the Mojolicious doc) at startup.
17:13 forwardever thanks, will take a look at it :)
17:16 GitHub140 joined #mojo
17:16 GitHub140 mojo: master Sebastian Riedel * fb39b14 (0 files in 0 dirs): switched to pod readme - http://bit.ly/aFW838
17:16 GitHub140 left #mojo
17:21 Htbaa joined #mojo
17:23 dotan left #mojo
17:33 stephen left #mojo
17:38 stephen joined #mojo
17:41 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/svdzzs Hatena Diary" (ja) --xga http://twitter.com/xga/status/27054867033
17:46 avkhozov joined #mojo
17:49 spleenjack1 joined #mojo
18:00 avkhozov left #mojo
18:18 kvorg hi room
18:19 kvorg hmm: i don't know: it seemed logical to me that if I break the application horribly enough, reloading will fail. mostly the errors were strange enough to point to that, and I think reloading is totally worth it even with that limitation.
18:20 kvorg having some syntax checking, such as flymake in emacs, helps here a lot, since it shows perl syntax errors even before the file is saved. and this usually happens only with nasty syntax errors (paren/brace mismatches early in the app file, for example), but not with interesting erros (~bugs)
18:21 kvorg so if users totally insisted, we could have something like "Reloading will fail when gross syntax errors are encountered, and you will have to restart the server." in the help for the daemon command. but no rush here, methinks.
18:37 kvorg Rhaen: regarding http://github.com/kraih/mojo​/wiki/Recipies-for-templates, if you started writing about that, it would be worth mentioning that you can also pass them directly to the renderer/templating engine via $c->render(), as in http://github.com/kraih/mojo/blob/m​aster/lib/Mojolicious/Lite.pm#L435 (i can't find that in the rendering guide, strangely enough), and how you can pass them to layouts, includes etc ...
18:42 spleenjack1 left #mojo
19:24 sri wow, new riak release has fulltext search built in
19:28 marcus_ but is it WEB SCALE?
19:28 sri IT IS WEB SCALE!
19:28 forwardever added some stuff to "Routes for non lite apps", feel free to find typos and make things clearer :)
19:28 marcus_ sri: THEN I WANT IT!
19:30 sri forwardever: oh, thats a lot to read, gonna need some sleep first :)
19:30 sri but looks good
19:30 forwardever hope it helps other users, contains lots of our irc talks :)
19:31 sri i've seen an old style form_for though :o
19:31 sri begin/end!
19:34 forwardever probably have to look in test files for this, as there is no documentation, right?
19:34 sri everything now uses the new syntax
19:35 sri old block syntax is entirely gone from documentation
19:36 forwardever can you point me to a link where to read more about it?
19:37 sri http://github.com/kraih/mojo/blob​/master/lib/Mojo/Template.pm#L600
19:39 forwardever okay, will try to fix it, but need a break now :)
19:39 GitHub56 joined #mojo
19:39 GitHub56 mojo: master Sebastian Riedel * 0b80fc4 (2 files in 2 dirs): pod cleanup - http://bit.ly/cTnVMs
19:39 GitHub56 left #mojo
19:40 sri ah, now that looks much better
19:43 rhaen_ joined #mojo
19:48 Rhaen left #mojo
19:48 rhaen_ is now known as Rhaen
19:56 Htbaa left #mojo
20:00 DaTa forwardever: podded the routes thing (basically at least) :)
20:01 forwardever cool :)
20:02 forwardever sri: have modified the form example, begin blocks are much clearer now
20:11 GabrielVieira2 left #mojo
20:16 perlrocks Twitter: "#Mojolicious and #Lighttpd are not working well together. Has anyone a working config?" --c1t http://twitter.com/c1t/status/27065539296
20:24 achromic ugh, this just got interpreted as season 1 episode 1: Come.Dine.With.Me.S06.Warwick.Part1.WS.PDTV.XviD-TV
20:25 achromic sorry, wrong channel
20:46 gabb any idea how I could grab only the first x bytes off a file and not download it completely?
20:47 kvorg forwardever++
20:47 kvorg forwardever: nice work
20:47 forwardever thanks :)
20:50 forwardever does anyone knows how to correctly give a name to routes, has a name to be unique per app, or per controller?
20:51 sri why do you keep making connections between routes and controllers?
20:52 gabb routes dont have anything to do with controllers per se
20:52 sri routes are an entirely different entity, they have no connection to the controller
20:52 gabb routes = your dispatching, controllers = your business logic
20:52 * sri nods
20:52 gabb and as such named routes has the scope of the app
20:52 gabb as for how, append ->name() to route
20:54 sri forwardever: i think you really shouldn't be starting with a mojolicious app
20:54 sri new users are meant to learn lite first
20:54 sri to get a feel for everything
20:55 sri pretty much always when someone has problems starting out it is because he skipped the lite part :S
20:55 sri maybe i need to add a warning label or so :)
20:56 forwardever will try to understand non lite apps, whether you like it or not :)
20:57 sri -.-
20:59 forwardever you wrote: routes don't have anything to do with controllers, as far as I get it, every route dispatches exactly to one controller...
20:59 sri no
20:59 sri please reade the guides
20:59 sri *=e
20:59 sri argh
21:00 sri *-e
21:00 sri everything is dynamic
21:01 ltriant joined #mojo
21:01 forwardever yea, I understand that, if you use :controller as a placeholder, it's different
21:01 sri conditions can change the controller too
21:02 sri the controller can also be inherited from parent routes
21:03 forwardever okay, so routes and controllers have nothing to do with each other, I got it :)
21:03 sri routes don't even need controllers, they can also capture embedded apps and callbacks
21:03 sri it's all dynamic
21:04 forwardever so if I give names to routes, they have to be unique enough to not get in conflict with outer routes in the same application (this was what I originaly wanted to know)
21:04 forwardever * other
21:05 sri names always have to be unique
21:05 sri otherwise there would be no point to a name
21:07 forwardever yea, but this is important, regardless of lite or non lite, if you start to give names to routes, "create_form" could be to general as there might be lots of forms that allow to create something, just thinking about general design issues
21:07 sri the lite tutorial mentions it i think
21:08 sri this is one of the things that best taught in a lite context
21:10 sri time to sleep
21:10 sri nn
21:12 forwardever good night
21:13 zakame left #mojo
21:15 zakame joined #mojo
21:30 hoelzro left #mojo
21:36 zakame left #mojo
21:37 zakame joined #mojo
21:45 zakame left #mojo
21:45 zakame joined #mojo
21:54 zakame left #mojo
22:06 zakame joined #mojo
22:09 Rhaen this mojo is so f*cking cool
22:20 Rhaen http://www.facebook.com/pages/Moj​olicious/154900231216597?ref=sgm
22:20 zamolxes sri: http://paste.scsys.co.uk/52980
22:21 zamolxes sri: going through the debugger to see why _connect fails, but just thought I'd report that thing first
22:33 zamolxes sri: ook, also found the cause. some applications don't put a real URL in the Location field, just /blaahlfwe
22:33 zamolxes sri: and the cliennt tries to connect to an undef host
22:37 forwardever added a further section to "routes for non lite apps" in the wiki named "Routes and names", please feel free to fix bugs
22:51 zamolxes sri: ok, fixed by : unless (location absolute) { set location proto/domain/port from old->req->url ). how does it sound?
22:51 zamolxes the code looks a bit retarded but meh
23:07 forwardever left #mojo
23:18 perlrocks Twitter: "Mojolicious:: Lite to make chat with at WebSocket - naoya http://htn.to/Fx5KvY Hatena Diary" (ja) --hogem http://twitter.com/hogem/status/27078084425
23:25 Kulag sri: Translation underway.
23:37 und3f is now known as und3f[A]

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