Camelia, the Perl 6 bug

IRC log for #mojo, 2012-09-30

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

All times shown according to UTC.

Time Nick Message
00:11 tempire 1<<1
00:17 Britzel +1-1
00:17 purl 0
00:18 * dross yawns
00:18 dross :|
00:18 Britzel man, that's contagious... :o
00:37 xaka joined #mojo
00:58 xaka joined #mojo
01:26 xaka joined #mojo
01:29 buu How do I define which class mojo appends to controller names when I'm routing as: ('foo#bar')?
01:30 buu And why isn't this documentioned in Mojolicious::Routes
01:31 buu Oh, it is, I was just expecting to find it using the term 'default', which finds it under the guide
01:31 buu Where it's also documented.
01:32 buu I blame the media.
01:51 buu So uh, next question, is there some way to configure where static content is served from?
02:29 noganex_ joined #mojo
02:33 macae joined #mojo
02:35 Foxcool_ joined #mojo
02:37 tempire new flowplayer is hot
02:37 tempire buu: http://mojolicio.us/perldoc/Mojolicious#static
02:41 buu OH
02:41 buu I see
02:44 macae joined #mojo
03:19 memowe_ joined #mojo
04:21 * tempire enqueues
04:32 ryozi joined #mojo
04:58 * dross ponders how flowplayer evaluates how the GPL affects sites
04:59 dross people like ExtJS will say the whole site and backend code is required to be opensourced
04:59 dross though ExtJS and everyone associated with the team are just assholes (the license drama)
05:28 tempire I find Sencha's information management to be horrid.
05:29 tempire Why spend time on consistent docs when you can just dump it in a slow interface?
05:29 tempire old information?  no problem.  if they really want to use the product, they'll work for it.
05:29 tempire though I'm not a paying customer.
05:29 tempire maybe it's strategy.
05:45 venomo joined #mojo
06:42 dross wish I could sleep... guess I'll just work more on my Mojo+Mongo based CMS :3
06:49 Adura Mojgo.
06:51 dross :3
06:52 dross *should totally use that*
06:52 dross though I tend to name things after animals
06:52 dross I'll call it... kiti
06:52 dross Kangaroos In The Internet
06:52 dross (watches English majors explode at the invalid abbreviation)
07:00 dross as much systems programming as I've done, I've a lack of application programming for my portfolio :( I want to start doing applications so I can work from home more and do more interesting projects other than infrastructure engineering
07:08 rem_lex|pivo joined #mojo
07:14 Vandal joined #mojo
07:56 marcus sri: do you know how you can import vectors into sketch?
08:25 * dross sighs
08:27 davido joined #mojo
08:31 nic joined #mojo
08:35 Britzel joined #mojo
09:01 marcus dross: apps dev not as fun as you were hoping? ;-)
09:01 marcus or just wishing for sleep still?
09:02 rhaen moin
09:05 marcus hey, rhaen
09:06 marcus holy crap batman
09:07 rhaen hej marcus!
09:07 dross marcus: it's okay I guess :)
09:07 dross marcus: I'm big on web interfaces, been doing web stuff on and off for years, including fixing exploitation issues. Making something from scratch though, is tedious :)
09:08 marcus dross: I recommend bootstrappin'
09:08 dross marcus: Saying I made a CMS using a nosql database is something to brag about than saying, "I made my own blog in django"
09:08 marcus specially if you have users :)
09:08 dross marcus: I'm also being smart and making designs before I progress further.
09:09 * marcus is getting closer to having a working IRC proxy in mojo.
09:09 dross last job I took part in java app programming, it was a mess since one guy designed everything.
09:10 dross that guy was definitely not a DBA, I design better databases
09:11 dross I've always seemed to be the devops guy which is hired for cleaning up projects
09:11 dross and have to deal with stupid software developers who give me shit because "you're just a sys admin" Which is funny since I make more than them :)
09:12 dross </rant> People irritate me, I'm a natural born scholar. Learning doesn't end when you get out of school.
09:13 marcus I completely agree
09:14 marcus devs who don't do systems are worse for it.
09:14 dross it's not just systems though
09:14 dross CS people don't understand servers/networks/etc are not an all you can eat buffet.
09:15 marcus I like that Heinlein quote 'Specialization is for insects'.
09:15 dross CS is supposed to be about conceptualizing computational algorithms. I've yet to see a decent developer who takes bottlenecks in to consideration places where I've worked.
09:15 marcus http://www.elise.com/quotes/heinle​in_-_specialization_is_for_insects
09:16 dross :3 nice quote
09:16 * dross just posted the quote to linkedin
09:22 Adura Bang on code till it works.
09:26 dross I tend to be in line with google developers, do it right the first time and you won't pay for it later :)
10:05 xaka joined #mojo
10:22 marcus I like iterating.
10:26 ObseLeTe joined #mojo
10:27 ObseLeTe Hi
10:31 nicolas joined #mojo
10:32 nicolas hello .. I have a problem with the "Mojo::Command" package .. was it removed ?
10:33 marcus nicolas: renamed to Mojolicious::Command
10:33 marcus in 3.0
10:34 nicolas ah yes
10:34 nicolas i used to call it like " use Mojo::Base 'Mojo::Command'; "
10:34 nicolas but "use Mojo::Base 'Mojolicious::Command';" doesn't work as expected ..
10:34 nicolas should i do "use Mojolicious::Command';
10:35 nicolas instead ?
10:35 marcus nicolas: https://metacpan.org/source/​SRI/Mojolicious-3.44/Changes is your friend in such cases.
10:35 marcus nicolas: the built in commands do use Mojo::Base 'Mojolicious::Command';
10:36 marcus https://metacpan.org/source/SRI/Mojolici​ous-3.44/lib/Mojolicious/Command/eval.pm
10:39 nicolas i see .. i actually did changed my code for it to use Mojolicious::Command as i saw Mojo::Command disappeared .. but some functions disappeared too, like "class_to_file" and other stuff
10:39 nicolas ok it's in util now
10:39 nicolas Mojo::Util
10:40 nicolas sorry, but thank you for putting me on the good way !
10:40 mire_ joined #mojo
10:40 nicolas marcus: aren't you the one who is a father since a few months ?
10:41 marcus nicolas: sorry for changing things sometimes :)
10:41 marcus nicolas: yeah
10:41 marcus nicolas: #2 actually :)
10:41 nicolas how is the brand new one ? :)
10:42 marcus she just woke up :)
10:42 marcus so quite happy right now
10:43 nicolas oh I didn't even know she was a she !
10:43 nicolas lucky you
10:44 marcus nicolas: I have two girls now :)
10:47 marcus it's comfortable for the first 14 years at least :-p
10:48 nicolas haha .. might be way less than 14
10:49 marcus my 3year old has started training tae kwon do now.
10:49 crab how did the 3 year old react to the 0 year old?
10:49 nicolas run for your life
10:51 marcus crab: she really likes to hug and kiss her.
10:52 marcus crab: but I think she's secretly worried the 0 year old might steal her things.
10:58 batman joined #mojo
11:18 marcus typester++ # http://search.cpan.org/~typester/UV-0.1/
11:20 henq joined #mojo
11:27 Britzel_ joined #mojo
11:39 henq hello newby here. I want some generic routes for crud-ing multiple tables without specifying routes for each class/table.
11:40 henq something like $r->('/crud/:controller/:action) -> to (controller => $controller, action => $action);
11:42 henq The above does not work, as I get the error message that $controller requires an explicit package name.
11:42 henq TIA
11:46 batman henq: i don't think you need to() at all
11:46 batman or just $r->route('/crud/:controller/:action)->to();
11:52 henq thx, but /foo/bar does not match /:controller/:action/ route, the error page says. oh all, i'll keep trying , thx again
11:53 batman that's because you got /crud infront
11:53 batman /crud/foo/bar => Foo.pm, sub bar()
11:53 henq no:) already removed that ...
11:54 marcus nananananana BATMAN
11:54 batman :)
11:54 batman $r->route('/:controller/:action')->to(controller => 'foo', action => 'bar'); # should work....
11:54 marcus batman: I made progress on Proxy.pm, but now I'm distracted by Reactor::UV
11:54 batman henq: look here https://metacpan.org/module/​Mojolicious::Guides::Routin
11:54 batman oops
11:54 batman henq: look here https://metacpan.org/module/​Mojolicious::Guides::Routing
11:55 batman scroll down half way or search for ":controller"
11:55 batman marcus: that is awesome! please stay distracted :)
11:55 batman i want UV :)
11:55 marcus good times.
11:55 purl DON'T OPEN IT!  IT'LL CRASH AOL!
11:59 venomo joined #mojo
12:00 pertze joined #mojo
12:12 henq batman: thx, had read that, but get it not to work.  well, probably something stupid I keep overlooking, thx.
12:13 batman can you pastebin your code?
12:13 batman does it compile at all?
12:45 henq batman: ah… it was my misunderstanding of the error message; it says: non of these routes matched your request….   but actually the url did match the route, but an error down the road caused the error; all well know, thx again.
12:46 batman cool
13:04 henq batman: fyi, I am new to mojo and my first pet project will be crud app , with setup as in pastebin.com/xnGq8E13
13:32 Coff joined #mojo
13:33 Coff So does session have another context when called from templates rather than a controller?
13:36 Coff I have a helper I call from various places (both in controllers and templates) and this method return a value based on something set in a session. When called from templates the session appears empty, but when called from a controller it holds all the values I expect.
13:41 asarch joined #mojo
13:56 pertze_ joined #mojo
13:56 Coff joined #mojo
14:07 Foxcool joined #mojo
14:21 Foxcool_ joined #mojo
14:37 abra joined #mojo
14:42 asarch joined #mojo
15:12 nic joined #mojo
15:30 ladnaV joined #mojo
15:30 HtbaaPi in the to() part of declaring a route, is it not possible to combine the parameters cb, controller and action? When provided they work, but the callback behaves strange
15:31 HtbaaPi in a callback, if it does a return 0; shouldn't that route become invalid and thus move on to another possible route in the list?
15:31 HtbaaPi instead, it just goes to the controller and executes the defined action
15:33 HtbaaPi or maybe I should put the logic of my callback into a condition?
15:38 HtbaaPi all it does is fetch some data from the database and decide if it should be shown, if so, it's stored inside the stash
15:38 nic how does it make the decision?  based on privs?
15:40 HtbaaPi yeah, it just checks if the selected profile has a valid subscription
15:40 nic HtbaaPi: are you on a pi right now?
15:40 HtbaaPi nic: yes
15:40 nic :)
15:40 nic santa is bringing me one for Christmas
15:41 HtbaaPi have been using it mostly as a irssi client :P
15:41 HtbaaPi ah cool, it's a fun device
15:41 kenjiskywalker joined #mojo
15:41 nic mine is going to control the central heating (running mojolicious of course)
15:41 HtbaaPi the latest Rasbian distro is a lot faster as well
15:41 HtbaaPi cool
15:41 nic yeah, saw that
15:42 nic HtbaaPi: Is the decision one you could make inside your authentication bridge?
15:43 HtbaaPi ah it doesn't have anything to do with authentication
15:43 nic k
15:44 HtbaaPi visitors visit a profile, and depending on its subscription the route should be valid or not
15:44 HtbaaPi it's a productpage from a profile/vendor actually
15:44 nic oh, i see
15:45 HtbaaPi I need the callback logic for 2 routes which point to different controllers and actions, so it's not really something that should be inside any action
15:45 HtbaaPi the route should just be invalid if the requirements aren't met
15:45 nic so it falls through to... ?
15:45 HtbaaPi yes
15:45 nic do they get a 404 or does another route pick it up?
15:46 HtbaaPi the callback returns 0, so I expect it to pick up the next route to validate. But it should 404 eventually
15:47 rem_lex joined #mojo
15:47 nic I haven't used a condition, but it sounds logical
15:49 HtbaaPi it seems I've got access to all the captures, so that shouldn't be a problem
15:49 HtbaaPi gonna try it out
15:56 marcus HtbaaPi: yeah, you'd want to use a bridge for that, not a cb *and* a controller/action.
16:06 HtbaaPi marcus: I decided to go with a condition instead. Thing is that the routes are different so chaining them wasn't going to work
16:06 HtbaaPi it was the last part of the route, not the beginning
16:09 marcus HtbaaPi: condition is probably even better then
16:09 HtbaaPi or there must be a way to assemble a route in a more flexible way I'm not aware of?
16:10 HtbaaPi at first I had done it with a bridge actually, but soon I came to the realization I needed different routes with the same logic
16:11 HtbaaPi with the chained routes in Catalyst that wouldn't have been any problem I think
16:12 HtbaaPi not sure if a condition is really the nicest way as I expect a certain capture to exist. With a bridge you can require it.
16:13 mire_ joined #mojo
16:14 HtbaaPi ugh, past 6pm already, time to make dinner
16:15 HtbaaPi thanks for the help nic and marcus
16:18 marcus HtbaaPi: you can have an empty bridge..
16:18 marcus HtbaaPi: like my $b=$r->bridge('/' ...
16:21 HtbaaPi marcus: but I still need the placeholder that maps to my product id/slug
16:24 marcus HtbaaPi: guess conditions is the way to go then.
16:25 HtbaaPi marcus: I think so too. Because for the 2 routes I needed it on one chaines from other bridges, and the other one was a new route/starting point, so that wouldn't have worked out
16:25 * marcus returns to the UV reactor
16:25 HtbaaPi now I really should start making some dinner :)
16:25 HtbaaPi later
16:30 andrefs joined #mojo
16:34 jzawodn joined #mojo
16:36 heytrav joined #mojo
16:46 Adurah joined #mojo
17:39 SirG joined #mojo
17:45 ghandi joined #mojo
17:53 batman joined #mojo
18:28 tempire joined #mojo
18:37 abra joined #mojo
18:55 batman joined #mojo
18:56 xaka joined #mojo
18:58 ObseLeTe joined #mojo
19:08 andrefs joined #mojo
19:14 batman joined #mojo
20:58 zivester joined #mojo
21:02 asarch joined #mojo
21:16 baton8 joined #mojo
21:31 lukep joined #mojo
21:48 zivester joined #mojo
22:08 buu Is there some way to prevent Mojo::UserAgent from translating unicode type characters into hex escapes?
22:14 jzawodn joined #mojo
22:16 vishwanathms joined #mojo
22:16 vishwanathms_ joined #mojo
22:28 vishwanathms_ joined #mojo
22:28 vishwanathms joined #mojo
22:44 asarch joined #mojo
22:57 jzawodn joined #mojo
23:47 gryphon joined #mojo
23:47 asarch joined #mojo
23:54 diegok nic: I am now :)
23:54 nic :P

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