Camelia, the Perl 6 bug

IRC log for #mojo, 2012-02-03

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

All times shown according to UTC.

Time Nick Message
00:02 vel joined #mojo
00:16 jwang joined #mojo
01:05 omf_ joined #mojo
01:13 sri think i'm an Inconsolata convert :o
01:17 DaTa i've left inconsolata today :)
01:20 DaTa at least for my terminals, using a bitmap font again there
01:51 sri oh my
01:51 sri Consolas is a beauty
01:59 jnap joined #mojo
02:02 sri hmm
03:07 hshong joined #mojo
03:46 D4RK-PH0ENiX joined #mojo
04:35 * tempire waits for sri to choose a font, then tries it
04:36 lukep joined #mojo
04:47 lukep joined #mojo
04:58 sri tempire: it's Consolas
05:04 sri http://www.wezm.net/technical/2​009/06/programming-fonts-recap/ # just found pictures of the top contenders
05:06 sri there are soooo many vera sans mono forks
05:09 sri i also like droid sans mono
05:09 sri but Consolas and Menlo are my favorites
05:27 tempire I did like menlo
05:27 tempire but I've reverted to the classiness of monaco
05:29 * tempire doesn't have consolas
05:29 tempire :(
05:32 tempire hmm
05:32 * tempire examines Inconsolata and monaco side by side
05:33 tempire the space between characters is a bit too much for me
05:35 tempire inconsolita definitely looks better at smaller points
06:13 Vandal joined #mojo
06:14 bobkare joined #mojo
06:32 d4rkie joined #mojo
07:01 dpetrov_ joined #mojo
07:16 marcus don't like Monaco.
07:18 marcus Consolas looks nice, but I think I'll stick to Menlo for now. It's nice, *and* shipped with my OS.
07:19 marcus in practice I think all of those fonts look good ,tho.
07:24 mattastrophe joined #mojo
08:10 spleenjack joined #mojo
08:13 mattastrophe joined #mojo
08:24 ver joined #mojo
08:38 melmothX joined #mojo
08:41 mattastrophe joined #mojo
08:43 xaka joined #mojo
08:46 cosmincx joined #mojo
08:53 berov joined #mojo
08:55 judofyr joined #mojo
09:20 mattastrophe joined #mojo
09:21 ki0 joined #mojo
09:24 cosmincx joined #mojo
09:42 cosmincx joined #mojo
09:54 gabriel joined #mojo
10:24 oxxi joined #mojo
10:24 oxxi hi!
10:24 oxxi is there a way to use __DATA__ templates in a non-lite app?
11:03 trone hi there. ask here to confirm... Mojolicious user agent support all HTTP Method  (GET, PUT, DELETE, so on)
11:03 trone LWP (and HTTP::Request) seem support only GET, PUT, POST, HEAD. someone can confirm?
11:04 trone I don't know if someone (sri?) have seen LWP code when wrote Mojo::UA.
11:05 trone In every case, Mojo++ # but if Mojo::UA is so good, the ++ count more. :D
11:05 trone currently I'm appreciating it for DOM support indeed.
11:11 DaTa trone: perl -MHTTP::Request -E 'say HTTP::Request->new("DELETE", "/foo")->as_string' looks fine to me
11:13 oxxi found it. inline templates need to be in __DATA__ of main. :)
11:13 trone DaTa: ohi. right. thanks.
11:15 trone DaTa: lwp-request -u -m DELETE 'http://www.google.it' works indeed. :) Thanks.
11:31 cosmincx joined #mojo
11:47 briang joined #mojo
12:07 cosmincx joined #mojo
12:15 marcus sri: any way to get hypnotoad to write an access log
12:15 marcus ?
12:17 gabriel joined #mojo
13:02 olav joined #mojo
13:06 Akron joined #mojo
13:06 black joined #mojo
13:08 Akron oxxi: You can also define $c->render(template_class => __PACKAGE__, ...) to make Data-section anywhere else available (in Controllers or plugins or so).
13:09 noganex_ joined #mojo
13:21 r0b3rt joined #mojo
13:45 inokenty joined #mojo
13:53 amoore joined #mojo
14:02 mire joined #mojo
14:13 berov joined #mojo
14:32 anparker Hi. I have block that need to be on different pages. Template for that block can be included as partial, but where to put code for it?
14:33 berov joined #mojo
14:34 judofyr anparker: helper?
14:34 purl helper is a thin wrapper for Schema::Loader
14:41 grim_fandango joined #mojo
14:46 anparker heh, it was stupid question with obvious answer
14:46 anparker thanks
14:51 sri marcus: sure, you start logging access information
14:54 jnap joined #mojo
14:55 sestegra joined #mojo
15:04 sri tempire: btw. you can download consolas from the microsoft website, many of the free utilities there have it bundled
15:05 marcus Sri: it can't log to more than one log file tho, right?
15:05 sri not on its own
15:06 sri you want a plugin and a second logger i suppose
15:06 * marcus is ircing while driving. Maybe not smart.
15:06 sri "not smart" is quite an understatement ;p
15:06 marcus Rush hour in Oslo
15:08 judofyr sri/marcus: btw, I did some work on getting Perl working on Travis-CI: https://github.com/travis-ci/travis-ci/issues/224
15:08 judofyr (see the two pull reqs at the bottom)
15:09 judofyr I don't think there's so much more to do
15:09 sri judofyr++
15:10 judofyr sri: what do you think of using "cpanm . -v --no-interactive" as the default "run tests"-script?
15:10 judofyr it seems to be the most portable one…
15:10 judofyr without being too long
15:10 judofyr (projects can override it in .travis.yml for specific stuff)
15:11 sri seems ok
15:14 marcus Travis for president.
15:15 olav Hi gyus. Why Travis rather than ... say Jenkins?
15:16 judofyr olav: Travis is a service; Jenkins is software
15:16 judofyr the travis guys runs their own servers
15:16 judofyr and maintains everything
15:16 olav jodufyr: Ah, nice :)
15:20 alnewkirk joined #mojo
15:26 gtsafas joined #mojo
15:26 gtsafas so im doing my @tr = $dom->find('tr')->map(sub { $_->all_text })->each;
15:27 gtsafas but I really want the first td
15:27 gtsafas after finding tr
15:27 gtsafas is there a way to do that easily?
15:27 berov joined #mojo
15:29 judofyr elb0w: hm? do you want the first td inside a tr?
15:30 elb0w yeah
15:30 judofyr elb0w: $dom->at('tr td') ?
15:31 elb0w thats M::D::CSS?
15:31 judofyr 'tr td' is in M::D::CSS
15:31 judofyr ->at is in M::D
15:31 judofyr IIRC
15:35 elb0w hmm this may work
15:35 elb0w checking now
15:35 elb0w I think thats giving me every td though
15:35 judofyr elb0w: you want the tr?
15:36 elb0w I just care about the first element in the table
15:36 elb0w its ok I can make this work
15:36 judofyr :)
15:43 elb0w man I dont get these dom modules
15:52 elb0w need to use them more I guess
15:54 ki0 joined #mojo
16:16 elb0w I guess mainly its how do I go from Mojo::DOM to Mojo::CSS?
16:16 Akron joined #mojo
16:16 elb0w do a $dom->tree?
16:16 judofyr elb0w: you don't "go from DOM to CSS". ->search and ->at searches using CSS
16:17 elb0w I can use select?
16:17 Akron elb0w: at() gives you only the first occurrence - find() returns a collection.
16:17 sri s/search/find/
16:17 elb0w I want to find something by its class name
16:17 elb0w sorry for dumb questions
16:17 elb0w ill figure it out
16:17 judofyr ->search(".hello")
16:17 judofyr err
16:17 judofyr ->find
16:17 judofyr sorry
16:17 Akron ->find('.class')
16:18 sri you should invest a few minuts into reading the whole Mojo::DOM pod
16:18 elb0w yeah
16:18 elb0w I agree
16:18 sri the examples are pretty good
16:19 elb0w Mojo docs are normally very clear to me, im not sure why this one gives me such issues. I have used it in a couple modules now
16:19 sri http://mojolicio.us/perldoc/Mojo/DOM#find
16:19 elb0w I always end up getting it to work just enough that I dont read docs
16:23 GitHub21 joined #mojo
16:23 GitHub21 [mojo] kraih pushed 1 new commit to master: http://git.io/R_AQQg
16:23 GitHub21 [mojo/master] fixed small typo in Mojo::DOM::CSS - Sebastian Riedel
16:23 GitHub21 left #mojo
16:24 sri tempire/marcus: here's how you get consolas for os x http://www.wezm.net/technical/2010/​08/howto-install-consolas-font-mac/
16:25 sri microsoft installer, perfectly legal
16:26 sri you actually get all the good windows fonts
16:27 sri it was actually made by lucas de groot for microsoft, one of my favorite type designers
16:31 inokenty http://ranger.nongnu.org/  Amazing file manager for vim-lovers =)
16:31 inokenty I am happy
16:33 sri i still like the macvim sidebar more ;p
16:40 sri interesting, BBEdit actually licensed Consolas and uses it as default font these days
16:46 jwang joined #mojo
16:46 kaare joined #mojo
16:56 abra__ joined #mojo
17:01 baton8 joined #mojo
17:27 xaka joined #mojo
17:37 ZadYree Greetings mojowz
17:47 ZadYree I'm looking for a Mojolicious code example of a file download using Content-Disposition. This does not seem to work: $app->headers->parse("Content-Disposition: attachment; filename=" . $file);
17:50 r0b3rt $self->res->headers->conten​t_disposition('attachment; filename=" . $file);
17:51 ZadYree ah let's try
17:53 ZadYree well, no error, but bothing happens :(
17:53 ZadYree nothing
17:55 r0b3rt I call $self->render_data() with contents of download after call to content_disposition()
17:56 ZadYree oh
18:01 ZadYree does render_data have to countain a filehandler or the file content itself?
18:01 ZadYree contain
18:04 r0b3rt I used file contents and not file handle.
18:09 ZadYree yeah same here, but meh, noting, pastebinng that
18:10 ZadYree http://pastie.org/private/djs6jeemd9ewrsxpqxcgnw
18:13 ZadYree btw forgot <> on do{$fh} statement
18:13 ZadYree but nothing changes
18:13 GitHub107 joined #mojo
18:13 GitHub107 [mojo] kraih pushed 1 new commit to master: http://git.io/grHbdw
18:13 GitHub107 [mojo/master] made built-in templates more pretty on Windows - Sebastian Riedel
18:13 GitHub107 left #mojo
18:16 sri is helvetica neue available by default on windows these days?
18:19 ZadYree r0b3rt, i'm getting this error: readline() on closed filehandle $fh at ..   while I am not even using close()
18:19 ZadYree blast that, let's use File::Slurp
18:20 r0b3rt Use Mojo::Asset::File
18:20 ZadYree aaaah didn't know this one!
18:23 sri don't slurp static files...
18:23 ZadYree okay
18:23 elb0w isnt there a way to do async with UA?
18:23 ZadYree the most esthetic the best, but as my knowledges are weak...
18:23 sri http://mojolicio.us/perldoc/Mo​jolicious/Controller#rendered
18:24 * ZadYree likes.
18:27 sri not to mention http://mojolicio.us/perldoc/Mojo​licious/Controller#render_static
18:32 ZadYree Yeah I saw this one also
18:32 ZadYree It workd fine, obviously ;)
18:35 elb0w sri: what is !!$result do, isnt that just a double negative or does it do something special. I've never used it
18:36 sri !!1 and !!0 are booleans
18:37 elb0w interesting, never seen that before
18:37 sri sadly you can't test for them
18:37 elb0w What does it change from just using 1,0?
18:39 elb0w ah found a perl monks article
18:39 elb0w nvm
18:44 black joined #mojo
18:54 xaka elb0w: can you share the link please?
18:56 Mad_Dud Hey guys. so i managed to add mysql handling to mojo project following github.com/tempire/empire as an example. i dont know, where to put ->disconnect function. It wont work, when i put it in has schema  => sub { (controller file)...
19:32 lukep joined #mojo
20:02 gabriel_ joined #mojo
20:04 jnap_ joined #mojo
20:18 tempire Mad_Dud: how are you going to deploy?
20:18 tempire If it's something like hypnotoad, the disconnect will happen when the process exits
20:22 tempire boo
20:22 tempire consolas fails installation
20:23 sri tempire: just extract the ttf files
20:23 sri you can open the package and unzip them
20:25 tempire guess I just don't have the right package
20:25 d4rkie joined #mojo
20:26 tempire looked in all the packages that have "font" in them
20:26 tempire sees nothing
20:26 * tempire loses motivation
20:26 sri took me like 2 minutes
20:27 tempire oh
20:27 sri open package two times and then find a gz file that contains teh fonts
20:27 tempire I downloaded the wrong thing
20:27 Mad_Dud tempire: fastcgi on lighttpd
20:28 * tempire reads the words
20:30 tempire I've never used fastcgi, but I'm pretty sure the process exits after every request
20:30 sri nope
20:31 sri fastcgi is persistent
20:31 tempire I never understood how fastcgi was different from a mod_perl assisted serve
20:32 sri it doesn't run inside apache, it's separate processes that are talked to with a binary protocol
20:32 sri those fastcgi processes can even be on a separate server
20:33 tempire same idea, where it shares memory via a fork/cow?
20:33 sri it's more of a reverse proxy + cgi mix
20:33 mire joined #mojo
20:33 sri if the server controls the fastcgi processes there's no CoW
20:33 Mad_Dud so i dont need to worry about disconnect thing..
20:33 Netfeed stupid ubuntu lts, old packages :/
20:35 sri the fastcgi protocol is actually quite clever and supports a lot of stuff web servers never implemented, like multiplexing
20:35 tempire hmm
20:35 tempire that's pretty hip
20:36 jnap joined #mojo
20:38 tempire consoles is nearly indistinguishable from menlo
20:38 tempire *consolas
20:38 sri you're crazy
20:38 sri it's very very different
20:39 sri just look at the "g"
20:40 tempire ok.  menlo is taller.
20:40 tempire also g
20:41 sri use size 13 instead of 12
20:42 sri almost every character looks different
20:42 sri compare "->"
20:43 tempire ok
20:43 tempire you win
20:43 sri \o/
20:43 tempire the -> alone defeats menlo
20:54 GitHub129 joined #mojo
20:54 GitHub129 [mojo] kraih pushed 1 new commit to master: http://git.io/ZHCM1A
20:54 GitHub129 [mojo/master] small CSS tweaks - Sebastian Riedel
20:54 GitHub129 left #mojo
20:58 ki0_ joined #mojo
20:59 d4rkie joined #mojo
22:56 ashleydev joined #mojo
23:05 GitHub58 joined #mojo
23:05 GitHub58 [mojo] kraih pushed 1 new commit to master: http://git.io/H_AYFw
23:05 GitHub58 [mojo/master] split up embedding recipe - Sebastian Riedel
23:05 GitHub58 left #mojo
23:22 GitHub61 joined #mojo
23:22 GitHub61 [mojo] kraih pushed 1 new commit to master: http://git.io/XduPIg
23:22 GitHub61 [mojo/master] better Mojo::IOWatcher tests - Sebastian Riedel
23:22 GitHub61 left #mojo

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