/srv/irclogs.ubuntu.com/2013/10/04/#ubuntu-us-mi.txt

jrwrenanyone know how to use libapache2-mod_uwsgi ?00:33
=== waf is now known as Guest15236
=== Guest15236 is now known as waf
cmaloneyGood morning13:28
brouschyes13:29
jrwrenwhat is good about it?13:44
brouschNice weather. Friday.13:45
jrwrenoh yeah!13:46
jrwrengood morning13:46
ColonelPanic001'morning14:08
rick_h_morning14:08
jrwrendid anyone see my 20:33edt question last night?14:09
rick_h_jrwren: maybe, maybe not.14:09
jrwrenlibapache2-mod_uwsgi how in the world to use it?14:09
jrwreni eventually gave up, used proxypass to nginx to uwsgi14:10
rick_h_ah, yea saw that and never used it14:10
rick_h_gave up on wsgi + apache long ago14:10
jrwreni dno't think it actually works. there is zero docs, what docs do exist are incorrect.14:10
jrwrenmod_wsgi+apache works ok, we use it in prod14:10
ColonelPanic001oh hey, I use Magento, I'm used to that kind of documentation14:11
jrwrenbut mod_uwsgi not so much14:11
jrwrenwtf is magento?14:11
ColonelPanic001PHP e-commerce thing, horribly documented14:12
jrwrenah, yuk.14:12
jrwrenfor what are you using it?14:12
ColonelPanic001you just reminded me because just a day or two ago I looked at docs for a method, none was listed. Then found out it was there.14:12
ColonelPanic001sellin' stuff.14:12
ColonelPanic001https://commerce.wayne.edu/wsupjournals14:12
ColonelPanic001e.g.14:12
rick_h_I got 'endorsed' for php last night...14:15
jrwrenlinked-in sucks.14:17
jrwreni'm going to endorse you for wood working now14:17
jrwrenColonelPanic001: no engineering pubs?14:18
ColonelPanic001not that I know of. I wouldn't know know, though. I just keep the site from asploding.14:18
ColonelPanic001and answer dumb questions like "omg how do i set a price"14:19
brouschrick_h_: I get a lot of Ruby and Rails endorsements14:31
ColonelPanic001I got a java endorsement from my boss. I laughed14:32
ColonelPanic001I just fumble through doing android stuff a bit. I hate Java14:32
cmaloneyGreetings from the Eye Docs.14:33
_stink_i cannot express my sadness that you can't endorse someone for an arbitrary string you type in14:33
cmaloney(JoDee's dad)14:33
ColonelPanic001rick_h_: you have a second? I have a small vim question, so naturally I thought of you.14:33
brouschColonelPanic001: Kivy!14:33
rick_h_ColonelPanic001: maybe14:33
rick_h_:P14:33
ColonelPanic001_stink_: I endorsed Arslan for "working at heights"14:33
ColonelPanic001you just have to be creative14:33
_stink_hahaha14:33
ColonelPanic001rick_h_: doing `date +'%H:%M:%S'` in shell works as expected, but `:r !date +'%H:%M:%S'` in vim does not, it inserts "10H:10M:10S14:34
cmaloneyI'm going to endorse you all for having LinkedIN Accounts14:35
ColonelPanic001other commands, like doing `:r !w`, work as expected. what have I done stupidly?14:35
rick_h_ColonelPanic001: in shell you grouped your command with `, I'd guess it's splitting things apart14:35
ColonelPanic001sorry, should have specified - I'm not using ` in the commands, that was just for in here14:35
cmaloneynmap <F3> a<C-R>=strftime("%T: ")<CR><Esc>14:36
cmaloneyUse strftime instead of you can get away with it14:36
rick_h_+'%H:%M:%S'14:36
rick_h_errr let me try that again14:36
ColonelPanic001cmaloney: cool, that probably does do exactly what I want (just to hit a key and have the time appear). Now I'm curious why this doesn't work though. I assume it's an escaping thing, I'll just mess with it14:36
rick_h_ColonelPanic001:  need to escape the %14:36
ColonelPanic001didn't mean to use anyone as a human google, though14:37
cmaloneyTHat's fine14:37
ColonelPanic001hm14:37
cmaloneyI don't mind14:37
cmaloneyI like seeing activity in the channel. :)14:37
rick_h_ColonelPanic001: so if I do :!date +'\%H:\%M:\%S'14:38
rick_h_I get the right output14:38
ColonelPanic001dumb. Of me, I mean. I didn't think vim would be interpolating, thought ! made it just pass directly. I rarely use ! though, so there's why it didn't occur to me14:38
ColonelPanic001thanks14:38
rick_h_ColonelPanic001: I didnt' use with !r, but just ! so maybe there's another diff, but give it a go14:38
cmaloneyIt's not like we've ever run into that. :)14:39
ColonelPanic001cmaloney: just curious, why strftime instead of date? any particular reason?14:39
cmaloneydoesn't require a shell-out14:41
ColonelPanic001ah, makes sense14:41
cmaloneyAnytime I can avoid making a shell I try to take it14:41
cmaloneyunless the alternative doesn't make sense14:42
cmaloneyor it's Java. ;)14:42
jsivakColonelPanic001: I have a snippet that does `system("date +%Y.%m.%d-%H:%M")`.. not sure if that's where you ended up15:48
ColonelPanic001ah, thanks16:39
ColonelPanic001I just did what cmaloney said.16:39
ColonelPanic001That's usually what I do16:39
cmaloneypath of least resistance17:53
cmaloney;)17:53
rick_h_ok, otterbox arrived well before Nov. Like it except for the port covers to razor bladed those off and yay18:07
_stink_man i cannot get celery task logging to work.  rick_h_, have you ever had trouble with this?18:24
rick_h__stink_: yea, it's a pita18:25
rick_h__stink_: so I do it on the server doing something, sec18:25
rick_h__stink_: so I do http://paste.mitechie.com/show/1029/ to log to a file at INFO level for the production daemon18:26
rick_h__stink_: I could never seem to get it right in programming through reading my app's ini file or whatever so doing it at the cli worked for me18:26
rick_h__stink_: and then when I dev, well it just logs to console and I run with it18:27
_stink_ok, cool.  makes sense.  the docs seem to claim that it'll "set up everything for you" which seems, uh, wrong18:27
_stink_and that it'll redirect stdout/stderr to the right place18:27
_stink_but uh nope, not seeing it.18:28
rick_h_well you get the logger from the task18:28
rick_h_but it's got to be setup initially somehow someway18:28
_stink_yeah, i grab it with get_task_logger() at module top level18:28
rick_h_no, you have to grab it in each task18:28
_stink_ah man18:28
_stink_that was unclear18:28
rick_h_https://github.com/mitechie/Bookie/blob/develop/bookie/bcelery/tasks.py#L6518:28
rick_h_you have to get the logger from the task because the logger is running per worker and aggregated and such18:29
rick_h_everything is async, so if they all shared the one logger they'd block each other/etc18:29
jrwrenanyone know the kernel really well?18:58
jrwrenthe chroot syscall fails if I chroot to a tree where bin/bash is a symlink, but works if it is not the symlink is to a place still in the tree. the exact same code works on other kernels18:59
rick_h_out of my leauge :/19:00
rick_h_err league19:00
jrwrencorrection: chroot syscall succeeds, execve fails with ENOENT19:04
_stink_rick_h_: thanks for the help, got it working.19:58
rick_h__stink_: awesome20:00
rick_h_anyone using vagrant for anything?22:50
brouschi used it for viget.org23:00
brouschhold on, need to reboot23:01
brouschrick_h_: Did you have a vagrant question?23:10
rick_h_brousch: well trevlar created a vagrant setup for bookie so was curious for someone to try it and curious about the whole reason to git clone before vagrant up23:10
rick_h_brousch: https://github.com/fitztrev/bookie-vagrant23:10
brouschcone would be to get the VagrantFile23:11
brouschclone23:11
rick_h_no I mean step #223:11
brouschlooks like the vagrantfile will clone if you don't, so I guess it's a chance to use your own fork23:12
rick_h_ok, so it's not a required step then. That's how I read it as well23:12
rick_h_anyway, I ended up installing vagrant and trying it out now. I got impatient for someone else to23:13
rick_h_hmmm, seems to work but I can't access it from outside of the vm23:17
rick_h_I can links2 it inside the vm though23:17
brouschhm, it's not happy23:18
brouschvagrant errors23:18
rick_h_oh, worked here23:18
brouschthat's usually due to a port forward problem. you have to make sure the vm and your computer have the same version of virtualbox23:19
brouschtools installed in the vm are same version as your virtualbox23:19
rick_h_heh, well that made it unhappy. I changed the vm network to bridged in virtualebox and my whole desktop is frozen and network died23:21
rick_h_but strange, in vbox my windows vm I can access automatically through NAT just fine. It actually accesses lxc networks in the desktop from the vbox windows side ok23:22
brouschprobably a tools mismatch23:23
rick_h_yea, now that I've rebooted errors23:23
brouschyour win VM has tools matching your installed virtualbox23:23
rick_h_I downloaded the latest vagrant from the website which probably wasn't a good idea23:23
rick_h_anyway, cool stuff from trev and would be cool to get it solid up some to open up some hacking for people23:24
brouschmy notes from viget http://pastebin.com/R7JQKMJY23:24
rick_h_interesting, needed for basic linux box? strange23:25
brouschI think my vagrant is old and maybe doesn't support the :s23:25
rick_h_I only thought I used guest additions because of video driver support23:25
brouschwell it gets the port forward working23:25
rick_h_interesting, good to know I guess.23:25
brouschand the shared folders too23:25
rick_h_if trevlar comes back online we should work on the docs for it a bit23:25
brouschSo you can link to a bookie repo on your host and edit with your preferred tools instead of sshing into the guest and editing23:26
rick_h_right, work on it with osx and such I guess23:27
brouschMore of a problem for people who like big editors, I guess23:27

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!