Camelia, the Perl 6 bug

IRC log for #mojo, 2012-02-15

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

All times shown according to UTC.

Time Nick Message
00:03 tempire concatenative programming FTW!
00:58 scott joined #mojo
01:01 d4rkie joined #mojo
01:03 hshong joined #mojo
01:08 bird joined #mojo
01:15 omf_ left #mojo
01:37 abra_ joined #mojo
02:20 jnap joined #mojo
02:50 xaka joined #mojo
04:01 D4RK-PH0ENiX joined #mojo
04:08 scott_ joined #mojo
04:12 kitt_vl joined #mojo
04:18 mire joined #mojo
04:35 mateu joined #mojo
05:34 ver joined #mojo
06:12 Foxcool joined #mojo
06:46 d4rkie joined #mojo
06:48 batman joined #mojo
06:49 batman left #mojo
06:55 hshong joined #mojo
06:56 alnewkirk i having a time programmatically running Hypnotoad
06:57 alnewkirk ... it seems to only want a file, .. app file, config file, etc
06:57 alnewkirk I think most of the servers are setup this way
07:04 hshong joined #mojo
07:04 Vandal joined #mojo
07:11 tempire are you saying you're having a hard time?
07:11 tempire or just a time?
07:13 spleenjack joined #mojo
07:26 alnewkirk a hard time
07:33 marcus alnewkirk: Can you please explain further?
07:34 tempire If you're having an issue setting the hypnotoad parameters, you might want the config plugin: http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Hypnotoad
07:34 tempire assuming you *don't* want to use a config file
07:39 alnewkirk marcus: tempire: hey gus
07:39 alnewkirk guys*, I stepped away for a moment
07:39 scott joined #mojo
07:40 alnewkirk ... so I'm creating this mega-cli to control various sub-systems of a larger application, .. the web interface being just one sub-system
07:40 marcus alnewkirk: sorry, got distracted.
07:40 marcus alnewkirk: yes?
07:40 purl yes is the answer to the latest question
07:41 alnewkirk think App::Cmd where one of my commands launches Hypnotoad
07:42 alnewkirk now because my app (we'll call it mega-app) already has a config file and an executable, it really doesn't make sense to require a seperate exe and config just for one subset of the app
07:43 marcus alnewkirk: so you probably want to use Mojo::Server::Hypnotoad directly.
07:43 alnewkirk I am
07:43 alnewkirk thankfully most stuff can be set via %ENV
07:44 marcus alnewkirk: config is just a hash for hypnotoad settings?
07:44 marcus ->run takes $app and $config
07:45 alnewkirk yes I know, and $config must be a file
07:45 alnewkirk as does app actually
07:45 alnewkirk which is my point
07:45 alnewkirk see Hypnotoad line 129 as a ref
07:46 marcus heh, hypntoad.conf is actually deprecated
07:53 marcus alnewkirk: I see $app needs to be a script because of the way the restarter works.
07:54 marcus alnewkirk: it does an exec on the script to restart it
07:56 alnewkirk I noticed that also so I wasn't as appalled :)
07:57 ki0 joined #mojo
07:57 marcus alnewkirk: so note that you can just ignore config, and use $app->config->{hypnotoad}
07:58 alnewkirk the sane alternative would be to generate a temp script and execute that base on the namespace in $app
07:58 alnewkirk ... just a suggestion
07:59 alnewkirk marcus: I don't think that'll work due to line 144
07:59 alnewkirk $self->{config} = $c;
07:59 alnewkirk ^ run() executes this
07:59 marcus alnewkirk: you could generate a temp script, look at hypnotoad.t
07:59 marcus it does this
08:00 marcus alnewkirk: I don't think you are looking at a recent release
08:00 marcus line 144 of Hypnotoad.pm in master is blank
08:00 alnewkirk marcus: noted, I have done my workaround but I think consideration for this should taken towards making it part of the codebase
08:01 marcus alnewkirk: yours seems to be a very special case.
08:01 alnewkirk can you paste the link
08:02 marcus alnewkirk: https://github.com/kraih/mojo/blob/mas​ter/lib/Mojo/Server/Hypnotoad.pm#L144
08:02 marcus alnewkirk: not sure why you couldn't just keep an app script for your app even tho it's part of a larger system.
08:02 alnewkirk special-case, maybe, ... although arguably a programmatic API should exist
08:03 alnewkirk master, line 146, $self->{config} = $c;
08:03 marcus alnewkirk: and $c is $app->config->{hypnotoad} || {}
08:03 alnewkirk ... means your $app->config->{hypnotoad} gets overridden
08:03 alnewkirk lol
08:03 marcus alnewkirk: only if you provide a hypnotoad.conf, which is deprecated/
08:04 alnewkirk it seems we're back at the beginning ...
08:04 alnewkirk why am I locked into the mojo config file, why can't I just supply $config a hash
08:05 alnewkirk same question with regards to the script
08:05 marcus alnewkirk: you can supply a hash to your mojo app config?
08:05 marcus alnewkirk: mojo doesn't have a config file, you configure $app->config any way you like
08:05 marcus for instance by using a configloader, or your bigger app's config.
08:06 alnewkirk ?
08:06 marcus for instance one of my client's apps has a MyApp::Config class which reads their config files and configures $app->config
08:06 marcus alnewkirk: sub startup { my $self=shift; $self->config=MyApp::Config->load_config; }
08:07 alnewkirk marcus: $app->config doesn't exist (i dont think)
08:07 marcus alnewkirk: yes it does
08:07 marcus my $c = $app->config('hypnotoad') || {};
08:07 marcus how would that work if $app didn't have config?
08:08 alnewkirk so $app = Mojo::Server::Hypnotoad->new; $app->config is what you mean?
08:08 marcus alnewkirk: no. $app is your app
08:09 marcus alnewkirk: https://github.com/kraih/mojo/blob/ma​ster/lib/Mojo/Server/Hypnotoad.pm#L72
08:09 alnewkirk okay, right, but at this point my app isn't loaded
08:09 marcus alnewkirk: yes it is, see the line above
08:09 marcus I have to go to work now, hope this helps a bit.
08:09 marcus ttyl :)
08:10 alnewkirk no it doesn't, ... okay cya
08:11 marcus alnewkirk: load_app loads your app, promise. upgrade to latest cpan version and test it
08:12 alnewkirk marcus: yes, but this all happens automatically, theres nowhere for you to hook into it before the server is run
08:12 alnewkirk run calls config and load_app automatically, then execute the server
08:13 alnewkirk when do i get to mod the config? after it already running?
08:14 ki0 joined #mojo
08:15 alnewkirk ... fyi, I really posted all this not so much as to get help but so that if anyone working on the codebase wants to update or fix it, they'll know
08:15 batman joined #mojo
08:26 melmothX joined #mojo
08:26 ki0 joined #mojo
08:27 sri there is nothing to fix, restarting is an extremely hrd problem to solve, it doesn't work with a more verbose api
08:28 sri hypnotoad env vars are undocumented, and therefore considered an implementation detail, you can't depend on it
08:30 sri the simple truth is that the only way to pass information along between restarts is %ENV (besides a few file descriptors)
08:32 judofyr joined #mojo
08:32 berov joined #mojo
08:34 alnewkirk sri: I'm all for freezing/thawing small bits
08:34 sri ?
08:35 alnewkirk ... but I was talking more about the fact that currently you can't supply a hash to run()
08:35 alnewkirk it wants a mojo confi file, I think it should consider both
08:36 sri config file is dead, as marcus said
08:36 black joined #mojo
08:37 alnewkirk then I not sure how to config hypnotoad, if I call run($app) I get an error, ... what if I don't have a config file?
08:37 sri just don't consider hypnotoad a perl api, handle it just like you would Nginx
08:37 alnewkirk this is my current mutation https://gist.github.com/1834477
08:38 alnewkirk okay
08:38 sri that's going to break
08:38 sri liek i said, env vars are internal
08:40 alnewkirk dang it
08:40 alnewkirk okay
08:40 judofyr MOJO MOJO
08:40 purl MOJO MOJO is goliath
08:40 * alnewkirk is off to bed
08:40 judofyr (as in Mojo * 2, not MojoMojo)
08:47 judofyr btw, Ruby has the best (read: the worst) trolls ever: http://www.ruby-forum.com/topic/1970910
08:48 judofyr although, he was in comp.lang.lisp before… http://www.tfeb.org/lisp/mad-people.html
08:54 marcus judofyr: dunno, old school perlers are pretty bad ass too
08:55 marcus judofyr: try reading the comment thread on the 'why I left Perl' thread.
09:05 melmothX hello all. Is it safe/reccomended to run the app as a different user than the one that owns the code?
09:06 melmothX i don't recall anything about this topic on the doc
09:25 GitHub35 joined #mojo
09:25 GitHub35 [mojo] kraih pushed 1 new commit to master: http://git.io/agQhHg
09:25 GitHub35 [mojo/master] cleaned up scripts a bit - Sebastian Riedel
09:25 GitHub35 left #mojo
09:27 marcus melmothX: it should be safe as long as the user can read the files. It might also be a good idea, but slightly paranoid.
09:27 melmothX marcus: thanks. I am paranoid.
09:35 marcus http://stackoverflow.com/questions/6503946/​shorthand-http-as-for-script-and-link-tags-​anyone-see-use-this-before/6503964#6503964 # didn't know that.
09:57 daxim joined #mojo
10:03 sri marcus: https://github.com/kraih/mojo/​blob/master/t/mojo/url.t#L619
10:03 sri :)
10:04 cosmincx joined #mojo
10:05 marcus sri: neat.
10:11 hshong joined #mojo
10:22 black joined #mojo
10:25 Quai_ slashdot.org has been using that since forever
10:47 melmothX joined #mojo
11:05 D4RK-PH0ENiX joined #mojo
11:14 judofyr sri: have you seen Celluoid btw? https://github.com/tarcieri/celluloid-io
11:14 judofyr someone is re-implementing Erlang on top of Ruby
11:15 judofyr there's even an distributed version built on top of ZeroMQ: https://github.com/tarcieri/dcell
11:18 sri judofyr: nope, but i like the actor pattern a lot
11:24 sri although, a ruby with GIL seems to make that a little underwhelming
11:25 judofyr it works on JRuby and Rubinius too
11:27 sri how much marketshare have those two these days?
11:27 briang joined #mojo
11:28 judofyr Rubinius: not much
11:28 purl same here, dude
11:28 judofyr JRuby: way more
11:28 sri i don't quite get why pypy and rubinius don't become the main implementations
11:43 judofyr rbx isn't quite compatible with 1.9 though
11:45 judofyr as for JRuby, they're having big problems showing people that "Java may suck, but the JVM rocks"
11:46 sri well, that's never gonna work out for jruby
11:47 sri trusting in oracle to do the right thing? ;p
11:48 judofyr there's always OpenJDK
11:48 sri but openjdk sucks i keep hearing
11:49 sri http://hg.openjdk.java.net/hsx/ho​tspot-rt/hotspot/rev/763f01599ff4
11:49 sri reminds me of this commit :)
11:49 judofyr heh, this just popped up on Twitter: https://lists.ubuntu.com/archives/ubuntu-s​ecurity-announce/2012-January/001554.html
11:50 judofyr "we no longer have permission to redistribute newJava packages as Oracle has retired the “Operating System DistributorLicense for Java”
11:50 sri yea, oracle makes people use their own installer now
11:50 sri (their own = oracles)
11:51 judofyr sri: not sure about current status of OpenJDK; I asked @headius on Twitter  right now…
11:53 judofyr "It can't run Minecraft or BrowserStack is all I know :P" — @jcoglan
11:54 sri DEALBREAKER!
11:57 noganex joined #mojo
12:00 judofyr sri: it would be interesting to try to implement something like Mojo on top of Cellouid
12:01 sri i think Lift was pretty big on actors
12:03 marcus oracle soo evil :-/
12:03 marcus did IBM retire their JVM?
12:03 marcus http://www.ibm.com/developerworks/java/jdk/
12:05 sri pretty sure they have
12:06 marcus found a bugfix from 2009 for running jruby under the IBM JVM
12:08 judofyr joined #mojo
12:16 cosmincx joined #mojo
12:27 marcus judofyr: mojo on top of cullouid seems like a great idea.
12:41 marcus hmm, sublime text 2 fixed their icon. Considering buying it now.
12:57 sri oh my
12:58 sri from the iconfactory, not bad
13:01 judofyr link?
13:01 purl i heard link was awesome.
13:01 marcus judofyr: I just tweeted a screenshot link
13:01 sri i've seen better ones from the iconfactory though
13:01 judofyr nice
13:03 sri https://img.skitch.com/20120215​-kdp1mqjfkurpkwbqwmwrbtuxct.png # hahahaha
13:09 marcus :D
13:09 marcus it's NOT comic sans.
13:09 vervain I'm sensing some hostility towards the Sublime project? ;-)
13:11 sri multi column view is pretty gret
13:11 sri great
13:12 cosmincx joined #mojo
13:12 d4rkie joined #mojo
13:13 sri editor without momentum scrolling feels weird :o
13:16 sri the fact that the unregistered version has no deadline is very very sympathetic
13:20 judofyr sri: any limitations at all?
13:21 sri don't think so
13:21 judofyr nice
13:21 sri just a big UNREGISTERED in next to the fullscreen arrows
13:21 judofyr YOU ARE A PIRATE
13:21 purl somebody said YOU ARE A PIRATE was http://img.sheezyart.com/art/swf/82/821125.swf
13:22 sri i would buy it in a heartbeat if bundle editing was easier
13:23 judofyr sri: what editor do you use now?
13:23 sri textmate still
13:24 Netfeed there's an annoying popup once in a while too in sublime
13:25 Netfeed based on number of saves or something
13:25 judofyr not a vim guy? :(
13:26 Netfeed vim is nice, but it doesn't work that well in osx imho
13:26 marcus agree
13:27 sri sublime also has vi keybinds btw
13:27 Foxcool joined #mojo
13:27 judofyr how "doesn't work well"? vim is vim…
13:27 sri first thing you should install is package control
13:27 marcus I didn't like the project search in sublime
13:27 marcus feels hackish
13:27 baton8 joined #mojo
13:27 sri i actually like project search :)
13:28 Netfeed judofyr: well, you kinda have to use gvim, and imho i think that vim works best in some linux term instead, i don't like gvim
13:28 vervain judofyr: A friend's vim on OSX keeps crashing... which I've never heard of in any other *nix. <shrug>
13:28 sri working with two columns, one for search results other for editing
13:28 judofyr Netfeed: just use Vim in Terminal.app then?
13:28 Netfeed no, i rather not, the keybindings feels wrong there
13:29 Netfeed using vim daily at work in linux though
13:35 jnap joined #mojo
13:37 vervain Netfeed: Keybindings are keybindings... they are what they are... if they 'feel' different then you are using different rc files... and you could fix that.
13:38 Netfeed yeah i know, but i'm using the stock version now in linux and it works great, but the stock version in osx seems to work in a different way
13:38 Netfeed moving with ctrl+arrows for example
13:39 vervain Surely moving with hjkl works as it's supposed to... as soon as you go to things like arrow keys you expect your OS to be throwing you a curve ball.
13:40 vervain But I hear what you are saying... back when I was on Linux, Solaris, Irix in equal measures I felt what you're feeling.
13:41 Netfeed yeah, hjkl works, but i'm so used to use ctrl+arrows that it's hard to change it to hjkl
13:41 vervain Do it... do it now... hate arrows as much if not more than your mouse... it's the path to enlightenment. :-)
13:41 vervain Make me move from my home keys will you... aargghh :-)
13:42 Netfeed heh, you sound like a dvorak user, "everything is typed with the home row"
13:51 sri reminds me to check out chocolatapp again
13:53 Netfeed i kinda like the looks of chocolateapp more then sublime, seems so clean
13:53 inokenty joined #mojo
13:55 sri it's gorgeous
13:55 sri but syntax highlighting doesn't work :S
13:55 sri (still)
13:55 sri symbol list bar on the right is genius
13:59 sri much less usuable than the TM2 alpha
14:00 Netfeed there's an alpha?
14:01 Netfeed well, he has had a while on his hands to make tm2 so it kinda has to be pretty good oob
14:01 judofyr unusable or usable?
14:02 sri unusable
14:02 sri wait
14:02 sri chocolatapp *is* unusable
14:02 sri :)
14:02 judofyr more or less than the TM2 alpha?
14:02 * judofyr is still confused
14:02 Netfeed this makes my head hurt
14:02 sri TM2 is more usable
14:02 sri much
14:03 sri maybe it's better for ruby
14:03 sri i've only tested perl… that didn't work at all
14:03 judofyr | uselessness  ---- Chocolat ------------------ TM 2 ------- usefulness |
14:03 judofyr I think I got it now
14:04 sri chocolat > tm2 > sublime2 > macvim > tm1
14:05 judofyr wait, what
14:05 purl yeah, seriously
14:05 judofyr didn't you just say that tm2 > chocolat?
14:06 sri tm1 > macvim > sublime2 > tm2 > chocolat
14:06 judofyr oh
14:06 judofyr that makes more sense
14:06 sri first is how pretty they are, second how usable
14:06 sri ;p
14:06 sri kinda sad how that correlates :(
14:08 Netfeed sublime2 is neither pretty or usuable?
14:08 Netfeed useable
14:08 sri it's the most balanced
14:09 Netfeed kinda black
14:44 vel joined #mojo
15:05 tempire "hjkl" keybindings are not enough.  that's like trying to satiate a wild animal by giving it tofurkey
15:05 tempire "it looks like meat!"
15:06 sri i really want to love vim
15:06 sri but details like no smooth scolling make my eyes hurt
15:06 sri scrolling
15:06 purl i think scrolling is fairly egalitarian, the stratum is the importance.
15:06 vervain I don't have a choice... overcoming muscle memory at this point would be like unlearning touch typing.
15:07 judofyr who scrolls in vim?
15:07 tempire the only time I ever missed smooth scrolling was while doing a screen cast
15:07 tempire sri is a chronic mouser
15:07 sri scrolling through code and browsing through a project is part of my workflow
15:08 * tempire does not judge those who choose to use a mouse, but does not understand their strange ways
15:08 Mad_Dud joined #mojo
15:08 judofyr yeah, actually, I realize that I do scroll through code
15:08 sri programming is more like drawing a picture than writing a story for me
15:09 tempire this feels like a good moment for marcus to say a mildly inappropriate sarcastic comment.
15:10 sri marcus is a mouser too
15:10 tempire now that's just begging for a sarcastic comment :)
15:10 tempire best pickup line, ever: http://imgur.com/gallery/Kfcui
15:12 tempire I found a bug
15:13 tempire ./a_lite_app generate makefile
15:13 tempire https://gist.github.com/1836540
15:14 sri yes, bug
15:14 judofyr what you mean? that's not the standard convention for naming lite apps?
15:16 sri but can you fix it without adding another line of code? :)
15:16 tempire where are the tests for the generate command?
15:17 tempire I see no tests.
15:17 tempire !!
15:17 Netfeed dun dun dun
15:18 tempire easy fix…but…tests…
15:18 sri tempire: commands have no tests
15:19 tempire that's it.  I quit.  moving to russia.
15:20 judofyr in russia, tests have no commands
15:20 sri in soviet russia glitter sprinkles tempire
15:20 tempire unpossible
15:20 purl me fail english? that's unpossible!
15:21 judofyr great, the test server to our payment provider is down…
15:22 tempire hackers!
15:22 purl hackers is mostly about teenage punks fighting authority, AFAICT.
15:22 tempire does it make sense to test the commands?
15:23 tempire at least the generate ones
15:23 tempire it's almost redundant
15:23 sri if you can do it portably, please do!
15:24 sri not to mention all command line switches
15:25 * tempire wishes there was an easy way to download all the pod docs for perldoc.perl.org
15:28 vervain You mean the source pods?
15:29 tempire this interface or something close to it: http://empireenterprises.com/skitch//Core_module​s_%28O%29_-_perldoc.perl.org-20120215-072942.png
15:29 vervain And why does FEATURE BUNDLE still claim :5.10 is the only one.
15:31 amoore joined #mojo
15:34 vervain tempire:  I just downloaded the perldoc Lite version, link on perldoc.perl.org... seems to have what you want.
15:35 vervain http://perldoc.perl.org/perldoc-html.tar.gz
15:35 tempire oh hey.
15:35 tempire I had not noticed that before.
15:35 tempire :)
15:35 judofyr is there any reason to use ->waypoint over ->bride + ->route('/') ?
15:36 judofyr wait, hm
15:36 judofyr nested vs waypoints vs bridges are confusing :(
15:40 tempire sri: I'll fix the makefile bug, and think about tests.
15:44 sri tempire: ok
15:45 sri tempire: but fix it first and *then* think about tests
15:45 tempire was planning on it.  it's necessary for deploy heroku to work.
15:47 cosmincx1 joined #mojo
15:50 sri create a branch for tests, they need to be "tested" for portability before going into core
15:52 judofyr tempire: I'm still not quite sure how to do Perloku properly though…
15:52 judofyr re: dependencies
15:52 purl dependencies are hard.
15:52 judofyr and avoiding to re-install everything
15:54 judofyr sri: from headius: "OpenJDK and Oracle Java are, and have always been, the same codebase"
15:55 sri i suppose that's why the oracle commercial stuff was committed into the openjdk repo
15:57 sri judofyr: but the problem is actually not the code
15:57 sri oracle doesn't have to keep anything closed source
15:57 sri see the dalvik situation
15:58 sri if oracle wanted they could crush anything java related they don't like
15:58 judofyr didn't Google pretty win that thing, or am I completely wrong?
15:59 sri i think that case is not closed yet
16:00 sri now imagine that happening to someone smaller than google :)
16:04 judofyr :)
16:05 abra joined #mojo
16:08 cosmincx joined #mojo
16:09 jr joined #mojo
16:15 KayT3 joined #mojo
16:16 KayT3 joined #mojo
16:18 tempire judofyr: what's the problem exactly?
16:19 tempire does the fs not stay consistent across pushes?
16:19 judofyr tempire: nope. but there's a cache-dir that's persistent
16:24 tempire ok…how does that cause everything to be reinstalled?
16:24 judofyr tempire: we need to clear the cache every once in a while (probably if the Makefile.PL has changed)
16:25 tempire is cache-dir not accessible by regular bash commands?
16:26 judofyr sure
16:27 * tempire is missing something
16:36 jnap_ joined #mojo
16:37 judofyr tempire: choice (1) don't cache anything. (2) clear cache when Makefile.PL changes. (3) clear cache every nth day.
16:37 judofyr (3) gives faster deployments
16:37 judofyr but you might end up with not up-to-date versions
16:37 judofyr and multiple versions of the same package
16:38 judofyr also, it might be an idea to have some sort of bundling support (as we discussed earlier)
16:39 sri make caching configurable and default to (2)?
16:40 sri PERLOKU_CACHE=0
16:41 sri http://static.fjcdn.com/pic​tures/I_5e5ac3_2480125.jpg
16:42 sri (disclaimer)
16:50 ilyuhan joined #mojo
16:52 ilyuhan left #mojo
16:54 sri it's weird, during the last week i heard from multiple people that they want to use mojolicious but can't because they are trapped with some ancient perl
16:55 sri havn't had one of those during the last few months since the switch
16:56 sri the situation kinda sucks, now there are people intentionally using pre-2.0 versions
16:57 judofyr when was 5.8 dropped?
16:57 judofyr 2.0?
16:57 purl 2.0 is probably not yet dead or there or (: esther dyson, where)
16:57 sri 2011-10-17
16:57 purl 1984
16:59 judofyr purl: you're so helpful…
16:59 purl judofyr: huh?
16:59 judofyr exactly
17:03 sri oh well, not like we could do anything different
17:05 jwang sri: were they using RHEL/CentOS? last time I checked (last Nov), hosting providers were still using RHEL/CentOS5 since 6 is/was only certified on Dell servers.
17:05 sri i don't know
17:07 sri one thing i noticed is that catalyst for example are even trying to lower the required perl version
17:07 sri such moves worry me
17:07 jnap joined #mojo
17:07 judofyr that's bad…
17:08 judofyr I like how Rails is constantly pushing the required Ruby version higher
17:08 sri it starts to look like a competitive disadvantage again
17:08 judofyr e.g. Rails 4 will require Ruby 1.9
17:08 sri (us requiring 5.10.1)
17:09 xaka joined #mojo
17:21 melmothX what's the preferred way to validate forms?
17:22 kaare joined #mojo
17:32 vervain Is there anything like Template::TT2Site for ep?
17:47 d4rkie joined #mojo
17:48 mercutioviz joined #mojo
17:53 black joined #mojo
18:53 melmothX well, people, thanks for the mojocasts. Really clear and useful
19:00 mercutioviz just curious - anyone here ever use this? http://amplifyjs.com/
19:07 jnap joined #mojo
19:14 baton8 joined #mojo
19:14 * sri wonders why tempire hasn't committed a fix yet
19:27 jnap joined #mojo
19:32 GitHub23 joined #mojo
19:32 GitHub23 [mojo] kraih pushed 1 new commit to master: http://git.io/znR_UA
19:32 GitHub23 [mojo/master] fixed small bug in makefile command - Sebastian Riedel
19:32 GitHub23 left #mojo
19:32 sri so it doesn't get forgotten
19:35 jwang joined #mojo
19:37 batman joined #mojo
19:42 noganex_ joined #mojo
19:43 sri marcus: did you buy sublime2 or not?
19:44 sri make sure to try the soda theme, looks amazing
19:44 sri https://github.com/buymeasoda/soda-theme
20:09 netfeed joined #mojo
20:30 marcus sri: no, I can't make up my mind. Staying with TM2 for now.
20:30 marcus sublime 2 has some neat ideas, but I can't really get comfortable
20:33 marcus sri: I also noticed someone writing in the reddit post that they're using pre-2.0 because of 5.10 requirement. makes me sad.
20:41 jnap joined #mojo
20:44 sri marcus: but what can we do?
20:45 marcus sri: stalk hosting providers and threaten to hunt them down?
20:45 * marcus ponders doing some research of hosting provider perl versions.
20:46 marcus if we could make it a competitive advantage for them to run a modern perl version, it would help.
20:46 lukep joined #mojo
20:46 sri or we push heroku as the one and only cheap hosting provider :o
20:46 marcus and ec2
20:46 sri tempires commands should make that pretty easy
20:47 marcus 'why run some crappy shared hosting if you can get a server with ec2 or heroku for free?'
20:47 * sri nods
20:47 sri while we are at it, found an alternative to textual yet?
20:48 marcus not yet.
20:48 sri let me know if you find something
20:49 marcus maybe go back to limechat
20:49 marcus at least it has regular releases.
20:50 sri you gave up tm1?
20:52 marcus yeah
20:52 marcus I don't edit bundles, so tm2 works well for me.
20:53 sri tm2 bundle editor is actually pretty good
20:53 marcus I had some slowness issues with some of my repos tho
20:53 sri i just hate the quirks, like closing last file closing the window
20:56 marcus I thought there was a setting for that.
20:58 sri not that i know of
20:58 marcus hmmm
20:58 marcus ok, back on limechat now.
21:01 marcus missed the little window at the bottom that shows what goes on everywhere
21:01 marcus also it seems a lot snappier than textual now
21:05 mattastrophe joined #mojo
21:13 * marcus is making a limechat theme.
21:13 * sri giggles
21:14 sri kinda like limechat, but it's still lacking a few features
21:15 marcus like what?
21:16 sri different colors for nicks, banlist...
21:16 sri i would have to google how to ban/unban someone :)
21:18 sri also inline images
21:19 sri http://static.fjcdn.com/pic​tures/I_5e5ac3_2480125.jpg
21:19 sri oh wait
21:19 marcus that works
21:19 marcus :)
21:19 sri limechat does that now :)
21:19 marcus luckily
21:19 marcus that's something I would have missed
21:19 marcus I'm able to set a ban using /mode
21:20 marcus It's not like I remember the last time I kickbanned someone :)
21:21 sri i've banned the irc web client
21:22 marcus miss the topic at the top
21:28 ki0 joined #mojo
21:28 marcus sri: Seems you can have different colors for nicks too, it's a theme setting.
21:29 marcus http://nordaaker.com/docs/skitch/%28marcus%​29_%40%23mojo_%28109%2C%2Bn%29_Mojolicious_​real-time_web%E2%80%A6-20120215-222856.jpg
21:29 marcus http://nordaaker.com/docs/skitch/m​inimalist.css-20120215-222918.jpg
21:29 sri interesting
21:29 marcus need to make the channel list wider too
21:42 marcus oh, I can just drag it.
21:42 marcus wonder if it will remember that.
21:49 briang joined #mojo
22:04 marcus a bunch of limechat themes at https://github.com/jschoolcraft/Limechat-Themes
22:04 marcus starting to be pretty happy about mine tho - http://nordaaker.com/docs/skitch/%28marcus%​29_%40%23mojo_%28108%2C%2Bn%29_Mojolicious_​real-time_web%E2%80%A6-20120215-230427.jpg
22:29 sri hmm
22:38 * sri starts by hacking the Limelight theme
22:39 sri Consolas for sidebars makes a *huge* difference
22:41 sri i love that font
22:42 sri or actually, i love the whole typeface
22:44 marcus 23:43 <omf_> Do any of these perl web servers have selinux policies already written?
22:45 * marcus wonders what that involves
22:46 sri tinfoil
22:46 jnap joined #mojo
22:47 marcus \o/
22:48 marcus really like how I muted all the joins and quits and such by making it #999
22:48 marcus instead of the extremely annoying green default.
22:48 marcus seems latest moose breaks catalyst.
22:48 briang joined #mojo
22:48 sri can't you just deactivate them?
22:49 marcus guess I could do display:none
22:50 sri Preferences/Log/Show join/leave
22:51 marcus ooh, much better
22:51 marcus thanks
22:54 omf_ joined #mojo
22:55 omf_ marcus, I just dug up some data about my mojo setup
22:55 marcus omf_: great.
22:55 omf_ okay
22:55 omf_ let me paste my sample app into no paste
22:56 marcus omf_: this is the app you're trying to run as cgi and not getting ajax to work on?
22:56 omf_ yes
22:56 marcus sure, please paste.
22:56 marcus I mean nopaste :)
23:00 omf_ http://paste.scsys.co.uk/182116
23:00 omf_ so with plackup it works great
23:00 omf_ apache cgi the ajax response fails
23:03 marcus omf_: works fine here.
23:03 marcus omf_: just tested it with apache.
23:03 omf_ not fastcgi
23:03 marcus no, cgi
23:03 marcus you said cgi
23:03 omf_ so you just proved it is a config thing
23:04 marcus heh
23:04 omf_ could I take peek at your vhosts
23:04 omf_ or are you doing the setup in httpd.conf or .htaccess?
23:04 marcus omf_: http://paste.scsys.co.uk/182117
23:04 marcus omf_: this is on my local mac.
23:05 marcus never mind the eventsource name, I just stuffed your file into a cgi script I was already testing.
23:06 marcus (of course, the eventsource example would not work on cgi, since it requires a running ioloop).
23:10 omf_ no joy
23:10 omf_ and this was in a fresh installed virtual machine
23:10 marcus http://nordaaker.com/docs/skitch/​localhost_%23-20120216-001031.jpg hmm, 200ms is really not bad response time for a cgi script.
23:11 marcus omf_: do you like get some error? :)
23:11 marcus purl: does not work?
23:11 purl marcus: wish i knew
23:11 * marcus stabs purl
23:11 purl Connection refused on port stab
23:12 omf_ I get this in the error_log which makes me thing there is a missing rewrite rule
23:12 omf_ [error] [client ::1] script not found or unable to stat: /srv/www/cgi-bin/demo.plajax
23:12 marcus omf_: looks like you're missing the trailing / after demopl
23:13 omf_ yep
23:13 omf_ I fixed it
23:13 marcus \o/
23:13 omf_ indeed
23:13 omf_ now for fastcgi
23:13 omf_ and then mod_perl
23:13 purl then mod_perl is like the worst possible idea.
23:14 * marcus hugs purl
23:14 purl marcus: bathe first
23:14 marcus omf_: I recommend doing those through psgi
23:14 omf_ that is what I tried the first time
23:14 omf_ now I am going to look at that old config again
23:15 marcus omf_: http://search.cpan.org/~miyagawa/Plac​k-0.9985/lib/Plack/Handler/Apache2.pm
23:15 marcus omf_: http://search.cpan.org/~miyagawa/Pla​ck-0.9985/lib/Plack/Handler/FCGI.pm
23:16 marcus omf_: if you have trouble, there§s a #plack on this network. configuring those is not really related to mojo
23:16 marcus it would be the same for dancer as well.
23:16 marcus given that plackup works.
23:17 * marcus has to crash now.
23:17 omf_ thanks for the help marcus
23:17 marcus you're welcome. ttyl.
23:20 sri my theme slowly starts to look like twilight :)
23:24 sri could someone please mention my nick
23:24 sri sri sri sri
23:24 sri nope, doesn't work for myself :/
23:24 omf_ sri test that twilight
23:24 sri \o/
23:24 sri omf_++
23:24 omf_ it looks the way you want?
23:25 sri perfect
23:27 sri http://twitpic.com/8kfvhc/full # still tweaking, but that's what i got so far
23:29 sri much fewer colors than limelight, and more blue than yellow
23:29 omf_ that is a good scheme
23:30 sri highlighting could still be better
23:30 omf_ what is the procedure for submitting a documentation patch
23:31 sri depends, if it's a typo then a pull request is fine, if it's a content change discussing it first is preferred
23:32 omf_ okay I am referring to https://metacpan.org/module/Mojoli​cious::Guides::Cookbook#Apache-CGI which is just these two lines
23:32 omf_ CGI is supported out of the box and your Mojolicious application will automatically detect that it is executed as a CGI script.
23:32 omf_ ScriptAlias / /home/sri/myapp/script/myapp/
23:32 purl Hmm.  No matches for that, omf_.
23:33 omf_ As someone familiar with apache that is easy to understand
23:33 omf_ I would add
23:34 omf_ Add the following line to your httpd.conf or virtualhost file:
23:35 marcus maybe also 'Please note the trailing slash after the script name.' ;-)
23:35 omf_ yes
23:35 omf_ also:
23:35 omf_ Make sure that no other rewrite directives are enabled in your httpd.conf or virtualhost file.
23:35 omf_ This can lead to unexpected behavior.
23:37 sri "Just add a line like this to your C<httpd.conf>, the trailing slash is intentional."?
23:38 omf_ yeah but it is not necessary to be in httpd.conf. I always place it in a separate virtual host file. It seems to be a trend on certain linux distros
23:38 sri on the other hand, we already have other apache recipes without such details
23:38 omf_ I guess my question is
23:39 sri i'd rather have details in the wiki
23:39 omf_ Who is the intended audience for this doc? A mojolicious beginner or better sure. But is it expected that the user has already mastered the web server they plan to deploy on?
23:40 sri second, for sure
23:40 sri it's meant as a hint in the right direction
23:40 omf_ okay then the wiki is the place
23:44 * sri yawns

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