Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-29

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

All times shown according to UTC.

Time Nick Message
00:10 GitHub11 joined #mojo
00:10 GitHub11 mojo: master Sebastian Riedel * 8660e24 (3 files in 3 dirs): added experimental direct hash access for attributes and child element accessor support to Mojo::DOM - http://bit.ly/mUvzTf
00:10 GitHub11 left #mojo
00:10 sri \o/
00:13 perlrocks Twitter: "Mojo::DOM just got a lot more magical, make sure to try it. ;) http://t.co/cHNoIXM #mojolicious #perl" --kraih http://twitter.com/kraih/status/74629382563569664
00:18 * sri is a little scared
00:19 sri oneliners should get a lot shorter
00:29 GitHub193 joined #mojo
00:29 GitHub193 mojo: master Sebastian Riedel * 085e229 (2 files in 2 dirs): updated some documentation - http://bit.ly/ioz4Lh
00:29 GitHub193 left #mojo
00:36 Drossel joined #mojo
00:38 sri perl -Mojo -E'say g("mojolicio.us")->dom->html->head->title->text'
00:38 sri :D
00:40 perlrocks Twitter: "#mojolicious hack of the day: "perl -Mojo -E'say g("mojolicio.us")->dom->html->head->title->text'" #perl" --kraih http://twitter.com/kraih/status/74636233036402688
00:42 Kulag left #mojo
00:44 GitHub0 joined #mojo
00:44 GitHub0 mojo: master Sebastian Riedel * 503cac0 (3 files in 3 dirs): use better examples - http://bit.ly/jU3f1a
00:44 GitHub0 left #mojo
01:00 sri tree walking doesn't seem that useful, but feels very very right somehow :)
01:07 perlrocks Twitter: "The #mojolicious #OpenBSD errata scraper gets a bit simpler after recent Mojo::Dom updates - http://t.co/9CXbPp3" --AFreshOne http://twitter.com/AFreshOn​e/status/74642881272483841
01:08 sri yea, i suppose direct hash access for attributes will be the more popular change :)
01:23 tempire indeed, and it's so simple, I'm surprised its taken this long
01:24 sri simple? :)
01:24 sri have you seen the hack?
01:25 sri $dom is now a blessed array and %{} has been overloaded ;p
01:26 tempire I saw the %{} overload
01:26 tempire didn't look past that
01:27 sri Mojo::DOM->new('<div>lalala</div>') is also new, should be convenient
01:30 * tempire wants june wwdc to hurry up and happen so he can order a new macbook pro in peace
01:30 sri i heard they will release lion at wwdc
01:31 sri can't wait
01:31 tempire I got the impression it would be another 6 months
01:31 sri no idea how they plan to sell it via appstore though
01:31 sri last i heard was that lion is already done
01:32 tempire I just want to make sure they're not going to update the hardware
01:32 tempire they probably won't, but I want to make sure
01:32 sri doubt that
01:32 purl well, doubt that is going to happen
01:32 sri didn't they just upgrade the macbook pros?
01:32 sri like a few months back?
01:32 tempire internals, yes
01:32 sri yea, thinderthingy port
01:33 sri s/i/u/
01:33 sri no way they upgrade them again this year
01:34 sri maybe a macbook air with ipad2 processor
01:34 tempire that doesn't make any sense to me
01:35 tempire I see all the rumors, but no ones talking about the fact that none of the current osx software would work
01:35 tempire not to mention windows
01:35 tempire it seems strange that they would further alienate the macbook air from a regular computer
01:35 tempire since it seems like that's what they want to move everything to
01:41 sri true
01:41 tempire I should be fine ordering a pro now
01:41 tempire but I'm too scared.
01:41 sri heh
01:41 tempire I'll be getting the ssd and the anti-glare, so it's going to cost mad $$$
01:42 tempire And I can't afford to not have the new hotness, emotionally
01:42 tempire I need ooohs and ahhs from all my friends to maintain my current level of self esteem
01:42 sri ssd is totally awesome, but i don't care about anti glare
01:43 tempire DON'T JUDGE ME
01:43 * tempire pets his macbook pro
01:46 sri only thing i'm scared of is sudden ssd death :S
01:46 tempire is that a danger?
01:46 tempire I guess there would be clicking
01:46 sri lol
01:46 tempire you're using time machine now, right?
01:46 sri yea
01:47 sri current generation has only 20000 writes or so before they die
01:47 tempire er, *no clicking
01:47 tempire I've read things like that, but I have no idea how many writes is 'normal'
01:48 sri hope it's not too soon, but i'm prepared to order a replacement with overnight shipping :)
01:55 zakame left #mojo
02:10 Kovensky left #mojo
02:49 GitHub175 joined #mojo
02:49 GitHub175 mojo: master Sebastian Riedel * 170b3bf (5 files in 4 dirs): fixed "Can't locate object method x via package y" error messages - http://bit.ly/j8sITq
02:49 GitHub175 left #mojo
03:25 crab that should be a simple patch: package y; sub x {}, right?
03:25 * crab whistles innocently
03:27 * sri throws crab into a kettle with water and turns on the heat
03:28 sri tree walking has one advantage i completely forgot
03:29 sri $dom->html->head->title is a lot faster than $dom->find('html > head > title')
03:31 sri the bigger the xml file the faster it gets
03:31 sri (in comparison)
03:34 crab "the tree who walks"
03:34 crab wait, that's not right.
03:34 * crab wonders if there are still phantom comics today
03:39 crab sri: i like this
03:47 alnewkirk joined #mojo
03:58 GitHub44 joined #mojo
03:58 GitHub44 mojo: master Sebastian Riedel * 8ac2983 (3 files in 3 dirs): added experimental support for collections to children method and element accessors in Mojo::DOM - http://bit.ly/jFftUd
03:58 GitHub44 left #mojo
03:58 sri this one is cool
03:59 sri $dom->html->body->div->each(sub {...})
04:03 sri that way you can walk until you hit alternatives, and then keep walking in both with the callback
04:05 sri or maybe just print all alternatives to make a decision
04:06 sri wonder if a collection should stringify to all elements it contains
04:09 sri perl -Mojo -E'say g("mojolicio.us")->dom->html->body->div'
04:09 sri the current result is not very useful
04:21 j3nnn1 left #mojo
04:21 GitHub188 joined #mojo
04:21 GitHub188 mojo: master Sebastian Riedel * 0b56c68 (3 files in 3 dirs): added experimental to_xml method to Mojo::DOM collections - http://bit.ly/m7svSE
04:21 GitHub188 left #mojo
04:22 sri ok, that's better :)
04:23 j3nnn1 joined #mojo
04:32 marty left #mojo
04:35 alnewkirk is there an easily way to prefix all route declarations?
04:37 alnewkirk .. im moving an app from development to production, and i want use the url scheme http://theapp/:username/ whereby each account gets their own url
04:41 mattastrophe joined #mojo
04:50 sri alnewkirk: lite or normal?
04:50 alnewkirk normal
04:51 sri my $prefix = $r->route('/:username');
04:51 sri http://mojolicio.us/perldoc?Mojoli​cious/Guides/Routing#Nested_Routes
04:51 sri and that's the explanation
04:56 alnewkirk awesome
04:57 * alnewkirk waits for mojolicious to get the recognition it deserves
05:27 crab mojocalypse?
05:38 alnewkirk yup
05:38 miyagawa left #mojo
05:40 miyagawa joined #mojo
05:43 alnewkirk how do I setup a conditional 404 page?
05:51 miyagawa left #mojo
05:52 miyagawa joined #mojo
05:59 D4RK-PH0ENiX joined #mojo
06:03 d4rkie left #mojo
06:10 GitHub32 joined #mojo
06:10 GitHub32 mojo: master Sebastian Riedel * b764b3a (6 files in 3 dirs): added experimental eval command - http://bit.ly/ikvXI9
06:10 GitHub32 left #mojo
06:10 sri that should be fun
06:24 GitHub23 joined #mojo
06:24 GitHub23 mojo: master Sebastian Riedel * 8b461ae (2 files in 1 dirs): fixed typo - http://bit.ly/jgNbIk
06:24 GitHub23 left #mojo
06:39 GitHub194 joined #mojo
06:39 GitHub194 mojo: master Sebastian Riedel * 250901c (3 files in 3 dirs): better readme example - http://bit.ly/ifVIpG
06:39 GitHub194 left #mojo
06:47 sri not sure how useful the eval command actually is, seemed like a good idea for quick testing
06:50 sri i've used it mostly to test my mongodb stuff
06:56 * marcus just made a ics file with mojolicious and TT
06:56 marcus and it even validates =)
06:57 marcus sri: eval looks cool, even tho rails' REPL is cooler.
06:58 sri i'm actually not a repl fan
06:58 sri they look nice, but i prefer oneliners for actual work
07:00 sri the last thing i would ever want to do is talk people through a repl session :)
07:02 marcus of course, with a 20 second startup time, you pretty much need a repl ;-)
07:02 sri lol
07:03 crab if you don't want to make repls, don't throw stones into the pond
07:03 sri 46 seconds with 1.9.3!
07:03 marcus sri: big catalyst apps take a looong time to start on 5.8 as well tho
07:07 marcus actually, fair less time than I thought
07:07 marcus maybe moose have improved on startup time lately
07:08 marcus or maybe it's just my l33t ssd drives. iusethis took 2 seconds to start.
07:12 sri ssd rocks for startup times
07:18 j3nnn1 left #mojo
07:19 Foxcool joined #mojo
07:49 alnewkirk sri, per our convo earlier about the nested routes, will that change the path t my templates?
07:50 alnewkirk my $nested = $r->route('/:username');
07:54 sh4 joined #mojo
07:55 crab no.
07:55 crab templates are found based on the controller and action that handle a request, not the request url.
08:23 alnewkirk thanx crab
09:45 espent left #mojo
11:46 Drossel left #mojo
11:47 Kulag joined #mojo
11:51 Kulag left #mojo
11:51 kaare joined #mojo
11:58 preflex left #mojo
12:02 * crab whistles happily
12:02 preflex joined #mojo
12:03 sugar joined #mojo
12:31 marty joined #mojo
12:32 * marcus has booked house boat in amsterdam for next weekend o/
12:42 Kulag joined #mojo
12:43 d4rkie joined #mojo
12:43 j3nnn1 joined #mojo
12:47 D4RK-PH0ENiX left #mojo
12:55 GabrielVieira2 joined #mojo
13:00 GabrielVieira left #mojo
13:54 GabrielVieira joined #mojo
14:00 GabrielVieira2 left #mojo
14:26 marty left #mojo
14:58 marty joined #mojo
15:01 marty left #mojo
15:04 GabrielVieira2 joined #mojo
15:09 GabrielVieira left #mojo
15:31 crab damn you, Spreadsheet::XLSX, damn you to hell.
15:49 marcus damn you excel....
15:49 marcus and pptx
15:57 crab marcus: srsly. (though i've never encountered pptx)
15:58 marcus I just got one in the mail
15:58 marcus google mangled it.
15:58 crab my problem was that i'm trying to parse a spreadsheet with 1059 columns. and Spreadsheet::XLSX supports only up to ZZ (702)
15:59 crab just stupidity. i've already patched it now.
16:05 marty joined #mojo
16:32 marcus crab++
16:33 marcus is there a way to easily load Plugin::Config configs from scripts?
16:40 sri be more specific
16:45 yko marcus, looks like http://mojolicio.us/perldoc?M​ojolicious/Plugin/Config#load is what you need
16:46 sh4 left #mojo
16:47 yko actually when i need app's config, i create app instance and use it's config
16:48 Akron joined #mojo
16:57 marcus yeah, I just have a scraper.pl which will run as a cron job
16:57 marcus and I need it to load the database config
16:57 marcus right now I just duplicated it...
16:57 sri load the app and get the config from there
16:58 sri http://mojolicio.us/perldoc?Mojo/Server#load_app
16:58 sri i've recently added this specifically for that use case
17:00 sri you just create a dummy server and get the exact same loading behaviour as hypnotoad
17:02 crab i just have a function which eval {}s my app.conf
17:03 GitHub93 joined #mojo
17:03 GitHub93 mojo: master Sebastian Riedel * 84c47f7 (1 files in 1 dirs): added load_app example - http://bit.ly/mEjkQs
17:03 GitHub93 left #mojo
17:03 yko sri++
17:04 sri perl config files are too powerful
17:04 yko i've been waiting fir something like that for a long time :)
17:04 sri they have access to app
17:04 marcus sri: Nice :)
17:04 sri actually, json config files have the same access
17:04 marcus I've been doing similar shit with catalyst, but the startup time kinda sucked
17:04 marcus so lately I've used config::jfdi
17:06 crab too powerful?
17:06 sri "they have access to app"
17:06 crab i don't see what's "too" about that.
17:07 sri good luck trying to load a config file without an app
17:07 crab oh, i see.
17:07 e40 joined #mojo
17:10 sri but yea, if you're sure you won't use app access you could just eval the config
17:10 sri it just won't work for everyone
17:11 e40 left #mojo
17:11 * yko loves power of mode-specific configs
17:12 yko testing became easier, separate development/testing/production environment and so
17:13 marcus \o/
17:13 * marcus has nachos in the oven.
17:13 sri \o/
17:13 * sri thinks about ordering pizza
17:14 Foxcool left #mojo
17:14 marcus meat, chilli beans, peppers, corn, mini-tomatos, apple, nachos, cheese.
17:18 * crab has no food, and it's too late to get any
17:24 Foxcool joined #mojo
17:24 baton8 joined #mojo
17:32 yko Господи! Я стараюсь быть терпимым к другим рассам, культурам, стилям... Но, Господи, почему когда ты уничтожал Соддом и Гомору ты не позаботился о PHP-программистах?
17:33 sugar =)) ты хотел написать в ru.pm? =))
17:34 yko damn
17:34 sugar say it in english, please =)
17:36 yko dear Lord! I try to be tolerant to other race, cultures, styles... But Lord! Why when you executed Soddom and Homora you forget about PHP-programmers?
17:36 sugar muhaha =))
17:37 sugar yko++
17:38 tabbi joined #mojo
17:39 tabbi left #mojo
17:44 sri heh
17:44 mattastrophe left #mojo
17:48 marcus damn, I overate
17:48 marcus sorry, crab.
17:49 marcus crab: what, no 7-11s where you live? :-/
18:01 crab nope.
18:02 crab pretty much everything shuts down somewhere between 2230-2300.
18:07 kaare left #mojo
18:07 marcus crab: How barbaric :)
18:08 marcus I mean quaint.
18:09 marcus sri: you live in the german forest right, is it the same thing?
18:11 sri yes and nope
18:14 marcus guess we can blame the english.
18:15 marcus I was in an english village for a wedding a few years back, and it was exactly the same
18:20 crab i'm just stupid. i meant to go out and buy eggs and stuff, but i got so involved fixing this spreadsheet parsing problem that i forgot.
18:20 crab i'd love to blame the british, though.
18:38 marcus they are a big target :)
18:46 GabrielVieira2 left #mojo
18:52 crab i think i'm going to sleep. i've already written more working code today than i planned to.
18:58 yko Jameson and somafm is my only friends for today
19:03 yko *are :-[
19:08 marcus alas poor jameson, I knew him well.
19:46 sri looks like we'll have another major release soon
19:46 sri gonna need a new code name
19:47 sri should be enough user visible new features to fill a blog post :)
19:48 Kulag left #mojo
19:48 Kulag joined #mojo
19:49 * marty suggest new code name "Cowabunga, Surfs up dude!" :)
19:50 sri which unicode character is that? Oo
19:50 * marty is seearching unicode characters...
19:51 sri "BLACK SUN WITH RAYS" would match the season
19:52 sri or just "SUN"
19:55 sri oh i know!
19:55 marty hmm damn.  I lost the link to my unicode charcter set.  what are you using, sri?
19:55 marty did you find one?
19:55 sri "SMILING FACE WITH SUNGLASSES"
19:56 marty That would work.
20:06 marty unicode 1F3C4
20:07 Drossel joined #mojo
20:07 marty 1F35E - "Best thing since sliced bread" code name.
20:08 Kulag left #mojo
20:09 sri SURFER is kinda neat
20:09 marty There are lots of good symbols to use.  Should be enough for many releases.
20:10 Akron Too late for "hot springs"?
20:10 marty 1F346 - "The new heart of the net"  ye!
20:13 Kulag joined #mojo
20:13 sri too late for HOT SPRINGS
20:13 Drossel left #mojo
20:22 mattastrophe joined #mojo
20:25 GitHub30 joined #mojo
20:25 GitHub30 mojo: master Sebastian Riedel * d1f870e (13 files in 8 dirs): Code name "Smiling Face With Sunglasses", this will be a major release - http://bit.ly/jkML98
20:25 GitHub30 left #mojo
20:25 sri all deprecations gone now \o/
20:26 sri even found some i forgot for half a year :S
20:26 marty sri++
20:32 perlrocks Twitter: "The next #mojolicious release should be a really good one. :) http://t.co/Eplz9Ic #perl" --kraih http://twitter.com/kraih/status/74936080096436225
20:34 Akron Wow - this optimized the working code lines / test code lines ratio a lot. ;)
20:34 Akron sri++
20:34 sri indeed :)
20:35 sri 11772 in lib/ and 12194 in t/
20:35 sri about 5500 unit tests
20:40 Akron left #mojo
20:41 Foxcool left #mojo
20:53 preflex left #mojo
20:56 preflex joined #mojo
20:57 D4RK-PH0ENiX joined #mojo
21:01 d4rkie left #mojo
21:08 sugar left #mojo
21:11 d4rkie joined #mojo
21:15 D4RK-PH0ENiX left #mojo
21:21 sri are the Mojo::DOM tests failing for someone?
21:28 sri some windows test runs for the latest github version would be appreciated
21:43 marcus sri: Does that mean client stuff will stop working on the next release?
21:44 marcus (Mojo::Client)
21:44 sri yes
21:44 sri considering it doesn't exist anymore ;p
21:45 marcus I guess I won't notice, as you won't remove the one I have installed :p
21:45 sri true
21:45 D4RK-PH0ENiX joined #mojo
21:45 marcus then be really confused when it breaks in prduction ;)
21:45 sri it could also break on your development machine
21:46 sri i would bet some other deprecation makes it break
21:49 d4rkie left #mojo
21:49 sri Mojo::Client was already depending on some longer deprecated features and got never updated i think
21:49 sri really glad the whole mess is finally gone :)
21:56 AigleNoir left #mojo
21:57 AigleNoir joined #mojo
22:21 AigleNoir left #mojo
22:21 AigleNoir joined #mojo
22:22 d4rkie joined #mojo
22:25 minimalist left #mojo
22:26 D4RK-PH0ENiX left #mojo
22:26 D4RK-PH0ENiX joined #mojo
22:30 d4rkie left #mojo
22:47 AigleNoir left #mojo
22:47 AigleNoir joined #mojo
22:48 AigleNoir left #mojo
22:52 mmcleric left #mojo
22:52 AigleNoir joined #mojo

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