Camelia, the Perl 6 bug

IRC log for #mojo, 2012-06-24

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

All times shown according to UTC.

Time Nick Message
00:06 sri ok, wiki looks a lot better with the worst pages removed :)
00:08 sri seems to be a pattern that all pages that haven't been edited in 6 months are usually bad
01:21 gryphon joined #mojo
01:45 CromeDome joined #mojo
02:35 BaggioKwok joined #mojo
02:35 GitHub28 joined #mojo
02:35 GitHub28 [mojo] kraih pushed 1 new commit to master: http://git.io/uT9V9w
02:35 GitHub28 [mojo/master] improved Mojo::IOLoop::Server to prioritize RC4 cipher, which mitigates the BEAST attack - Sebastian Riedel
02:35 GitHub28 left #mojo
02:46 GitHub191 joined #mojo
02:46 GitHub191 [mojo] kraih pushed 1 new commit to master: http://git.io/pEMxGQ
02:46 GitHub191 [mojo/master] fixed Changes file - Sebastian Riedel
02:46 GitHub191 left #mojo
02:59 noganex_ joined #mojo
03:12 CromeDome joined #mojo
03:29 dog_chocolate joined #mojo
03:53 russum joined #mojo
03:55 BaggioKwok joined #mojo
04:25 jamadam joined #mojo
04:48 tempire joined #mojo
04:49 sri tempire++
05:07 tempire what's the deal with purl
05:07 tempire is she gone forever?
05:11 * tempire pats purl
06:05 Annihitek joined #mojo
06:33 d4rkie joined #mojo
06:58 crab purl is gone? wow, cool.
06:59 Vandal joined #mojo
07:09 vishwanathms joined #mojo
07:10 vishwanathms_ joined #mojo
07:19 vishwanathms joined #mojo
07:24 dbr joined #mojo
07:33 xaka joined #mojo
07:53 Leandr joined #mojo
07:59 BaggioKwok joined #mojo
08:56 laouji joined #mojo
09:17 ladnaV joined #mojo
09:17 marcus Tempire: tried prodding hachi, but no response.
09:18 marcus Akron: i will try updating it sometime this week.
09:39 memowe o/
09:42 mire joined #mojo
10:11 batman joined #mojo
10:16 batman joined #mojo
10:16 batman joined #mojo
10:19 mire joined #mojo
10:30 vishwanathms joined #mojo
10:30 vishwanathms_ joined #mojo
10:38 dog_chocolate joined #mojo
10:40 batman any ideas on what i can use for a button which connects to facebook? I got "Register", "Login", "Connect" or simply put the official fb connect button there
10:40 batman Register is no good, for it's confusing for existing users (imo)
10:43 laouji http://developers.facebook.com​/docs/reference/plugins/login/
10:43 laouji You should probably use this
10:45 batman ok
10:45 laouji If you use anything but official facebook buttons it looks suspicious and users have trouble knowing that it is really connecting to facebook
10:45 batman good point
11:58 GabrielVieira joined #mojo
12:48 batman if i have a cache infront of my mojo app, will the cache also cache Set-Cookie ?
12:50 Akron joined #mojo
13:01 GabrielVieira joined #mojo
13:10 Psyche^ joined #mojo
13:15 d4rkie joined #mojo
13:32 GabrielVieira joined #mojo
14:17 * marcus has spawned more overlords...
14:23 batman awesome!
14:23 batman everything good marcus?
14:30 sri marcus: grats!
14:31 marcus Batman: yepp!
14:32 marcus Sri: thanks. :)
14:32 batman guess you wouldn't be in irc if not :)
14:32 marcus She's feeding.
14:32 marty Congratulations, Marcus!
14:32 Akron joined #mojo
14:33 Akron marcus: Congratulations!
15:06 sri Akron++ # i like what you did with the wiki
15:09 gryphon joined #mojo
15:12 sri and IO::Socket::IP 0.16 is out, so we could release Mojolicious 3.0 now
15:12 sri \o/
15:16 Vandal perl version?
15:18 Akron sri: Thanks. I will resurrect some of the pages you've deleted and update them. I think some were quite helpful, but not really well placed in the Wiki.
15:22 marty 3.0 party dance.
15:22 marty /o/
15:22 marty ~o~
15:28 laouji joined #mojo
15:32 Leandr joined #mojo
16:04 sri ~o~
16:08 sri Akron: sounds good
16:14 Mad_Dud hi guys, how can i define hashref, which can be accessible globally?
16:17 inokenty For what?
16:17 inokenty Maybe you need Config plugin?
16:17 Mad_Dud it looks like i'm going to use list of countries and their ltd qiute often and in many places of the app
16:17 Mad_Dud it => 'italy'
16:18 Mad_Dud so i don't want to copy-paste this hashref to each lib/ file or templates file..
16:19 crab what does IO::Socket::IP 0.16 do?
16:23 sri crab: work :)
16:24 crab :-)
16:24 sri 0.14 was not bad, but in 0.15 a lot broke
16:25 sri i had to rewrite the whole non-blocking connect code
16:26 sri https://github.com/kraih/mojo/commit/f9​25dbd30785359e60c5b13d7020971331f67f84
16:26 marty Mad_Dud:  Something like $self->plugin('JSONConfig', { file => 'lib/countries.json', stash_key => 'countries' }); in your startup sub
16:26 Mad_Dud okey, so syntax for mojo plugin config would not be: countries => { 'it','de','es' },
16:27 Mad_Dud oh, okey marty. thanks. i will try that one.
16:28 crab countries => { 'it', 'de', 'es' } isn't the syntax for anything
16:29 marty no problem.  I imagine that countries.json would look something like { "id" : "italy", "us" : "United States"}
16:29 Mad_Dud yeah.. i know it wont work
16:29 marty s/id/it/
16:29 * marty has been typing "id" toooo much in his own code.  :)
16:31 Mad_Dud but is it possible to put an array into $plugins->load_plugin('Config'); ?
16:32 sri the config plugin is specifically for external config files
16:32 sri you might want app->defaults(countries => {it => 'Italy', ...});
16:33 sri (if you insist on hardcoding countries)
16:33 Mad_Dud i might end up using Locale::Country for translating it to Italy.
16:34 Mad_Dud how would you keep a list of codes considering the specific list of countries?
16:35 Mad_Dud you would later use this lisf for building forms (select/option) and such
16:36 inokenty http://pastebin.com/r2zTPrZ5 (but I'm not sure I'm right)
16:38 Mad_Dud nice. thanks
16:59 spaceships joined #mojo
17:57 mire joined #mojo
18:03 tempire joined #mojo
18:04 tempire I for one welcome our new miniature overload
18:34 sri hmmm
18:34 sri perl -Ilib -Mojo -E 'say g("mojolicio.us")->dom->find("div")->attrs("id")'
18:35 sri that does seem like a sensible use case for a Mojo::DOM specific collection class
18:36 sri perl -Ilib -Mojo -E 'say g("mojolicio.us")->dom->find("div")->map(sub { $_->{id} })'
18:36 sri that's what you currently have to write
18:48 xaka joined #mojo
18:57 sri just ten more use cases to go :)
19:06 Leandr joined #mojo
19:45 rem_lex| joined #mojo
19:45 espent joined #mojo
19:54 asarch joined #mojo
20:09 andrefs joined #mojo
21:06 mire joined #mojo
21:10 gryphon joined #mojo
21:12 rem_lex|pivo joined #mojo
21:27 nic IO::Socket::IP 0.16 fails its test 5 in my env
21:28 nic ...of the file...t/21nonblocking-connect-internet.t (Wstat: 256 Tests: 11 Failed: 1)
21:44 lukep joined #mojo
21:53 memowe joined #mojo
21:58 murray joined #mojo
21:58 memowe_ joined #mojo
22:00 murray hi, my google-foo is failing me … if I want to return static js in ~/public/ gzip'd like Apache's mod_defalate might do for me … is there a way?  Namely, that'll do the gzip on the fly if the request indicates the client supports gzip'd responses.  I'm using morbo atm … is this perhaps a function of the psgi layer? Pointers?
22:20 GitHub3 joined #mojo
22:20 GitHub3 [mojo] kraih pushed 1 new commit to master: http://git.io/NKIG6w
22:20 GitHub3 [mojo/master] simplify charset handling a little - Sebastian Riedel
22:20 GitHub3 left #mojo
22:21 sri nic: open an RT ticket please
22:32 batman so i changed from mongodb to postgresql now... but of course unicode is making my life suck :P
22:32 * batman is asking google for help
22:33 batman any idea if i should set pg_utf8_strings => 1 ?
22:33 batman ...or fix it in postgres?
22:33 GitHub175 joined #mojo
22:33 GitHub175 [mojo] kraih pushed 1 new commit to master: http://git.io/giudXg
22:33 GitHub175 [mojo/master] removed qp_decode and qp_encode - Sebastian Riedel
22:33 GitHub175 left #mojo
22:37 tm joined #mojo
22:41 tm hmmm is there any way to call functions across controllers without making them helpers or full modules not based on Mojolicious::Controllers?
22:42 batman Foo->new->bar; ?
22:44 tm most likely you'll be right batman, sorry for n00b question
22:44 batman :)
22:48 tm I guess I'll better turn this part of logic into standalone module where more than one controller will be able to import :D
22:50 sri $self->Foo::bar :)
22:52 batman tm: that's where the "model" part in "mvc" comes in... extract everything that is not web-related into standalone modules
22:53 tm batman: yes, I have that, just decided to add api now and looks like I'm chasing my own tail now, refactoring - didn't plan for it initially and have a bit of mess here
22:53 batman hehe... i know the feeling :)
22:53 batman i changed from mongodb to postgresql tonight :P
22:53 batman it was quite a mess
22:53 tm brave :D
22:54 batman hehe. it works!
22:54 tm I run on Redis for the moment but will add second layer later, so archived data will be in normal sql (easier on RAM)
22:54 batman but i have no idea how it works. good thing i got dbic
22:54 batman ok
22:54 tm sri: thank you - need to clean up my mess first :D
23:40 GitHub85 joined #mojo
23:40 GitHub85 [mojo] kraih pushed 1 new commit to master: http://git.io/ErhXyw
23:40 GitHub85 [mojo/master] removed render_to_file and render_file_to_file methods from Mojo::Template - Sebastian Riedel
23:40 GitHub85 left #mojo
23:53 rwstauner joined #mojo

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