[00:33] anyone know how to use libapache2-mod_uwsgi ? === waf is now known as Guest15236 === Guest15236 is now known as waf [13:28] Good morning [13:29] yes [13:44] what is good about it? [13:45] Nice weather. Friday. [13:46] oh yeah! [13:46] good morning [14:08] 'morning [14:08] morning [14:09] did anyone see my 20:33edt question last night? [14:09] jrwren: maybe, maybe not. [14:09] libapache2-mod_uwsgi how in the world to use it? [14:10] i eventually gave up, used proxypass to nginx to uwsgi [14:10] ah, yea saw that and never used it [14:10] gave up on wsgi + apache long ago [14:10] i dno't think it actually works. there is zero docs, what docs do exist are incorrect. [14:10] mod_wsgi+apache works ok, we use it in prod [14:11] oh hey, I use Magento, I'm used to that kind of documentation [14:11] but mod_uwsgi not so much [14:11] wtf is magento? [14:12] PHP e-commerce thing, horribly documented [14:12] ah, yuk. [14:12] for what are you using it? [14:12] you 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] sellin' stuff. [14:12] https://commerce.wayne.edu/wsupjournals [14:12] e.g. [14:15] I got 'endorsed' for php last night... [14:17] linked-in sucks. [14:17] i'm going to endorse you for wood working now [14:18] ColonelPanic001: no engineering pubs? [14:18] not that I know of. I wouldn't know know, though. I just keep the site from asploding. [14:19] and answer dumb questions like "omg how do i set a price" [14:31] rick_h_: I get a lot of Ruby and Rails endorsements [14:32] I got a java endorsement from my boss. I laughed [14:32] I just fumble through doing android stuff a bit. I hate Java [14:33] Greetings from the Eye Docs. [14:33] <_stink_> i cannot express my sadness that you can't endorse someone for an arbitrary string you type in [14:33] (JoDee's dad) [14:33] rick_h_: you have a second? I have a small vim question, so naturally I thought of you. [14:33] ColonelPanic001: Kivy! [14:33] ColonelPanic001: maybe [14:33] :P [14:33] _stink_: I endorsed Arslan for "working at heights" [14:33] you just have to be creative [14:33] <_stink_> hahaha [14:34] rick_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:10S [14:35] I'm going to endorse you all for having LinkedIN Accounts [14:35] other commands, like doing `:r !w`, work as expected. what have I done stupidly? [14:35] ColonelPanic001: in shell you grouped your command with `, I'd guess it's splitting things apart [14:35] sorry, should have specified - I'm not using ` in the commands, that was just for in here [14:36] nmap a=strftime("%T: ") [14:36] Use strftime instead of you can get away with it [14:36] +'%H:%M:%S' [14:36] errr let me try that again [14:36] cmaloney: 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 it [14:36] ColonelPanic001: need to escape the % [14:37] didn't mean to use anyone as a human google, though [14:37] THat's fine [14:37] hm [14:37] I don't mind [14:37] I like seeing activity in the channel. :) [14:38] ColonelPanic001: so if I do :!date +'\%H:\%M:\%S' [14:38] I get the right output [14:38] dumb. 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 me [14:38] thanks [14:38] ColonelPanic001: I didnt' use with !r, but just ! so maybe there's another diff, but give it a go [14:39] It's not like we've ever run into that. :) [14:39] cmaloney: just curious, why strftime instead of date? any particular reason? [14:41] doesn't require a shell-out [14:41] ah, makes sense [14:41] Anytime I can avoid making a shell I try to take it [14:42] unless the alternative doesn't make sense [14:42] or it's Java. ;) [15:48] ColonelPanic001: I have a snippet that does `system("date +%Y.%m.%d-%H:%M")`.. not sure if that's where you ended up [16:39] ah, thanks [16:39] I just did what cmaloney said. [16:39] That's usually what I do [17:53] path of least resistance [17:53] ;) [18:07] ok, otterbox arrived well before Nov. Like it except for the port covers to razor bladed those off and yay [18:24] <_stink_> man i cannot get celery task logging to work. rick_h_, have you ever had trouble with this? [18:25] _stink_: yea, it's a pita [18:25] _stink_: so I do it on the server doing something, sec [18:26] _stink_: so I do http://paste.mitechie.com/show/1029/ to log to a file at INFO level for the production daemon [18:26] _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 me [18:27] _stink_: and then when I dev, well it just logs to console and I run with it [18:27] <_stink_> ok, cool. makes sense. the docs seem to claim that it'll "set up everything for you" which seems, uh, wrong [18:27] <_stink_> and that it'll redirect stdout/stderr to the right place [18:28] <_stink_> but uh nope, not seeing it. [18:28] well you get the logger from the task [18:28] but it's got to be setup initially somehow someway [18:28] <_stink_> yeah, i grab it with get_task_logger() at module top level [18:28] no, you have to grab it in each task [18:28] <_stink_> ah man [18:28] <_stink_> that was unclear [18:28] https://github.com/mitechie/Bookie/blob/develop/bookie/bcelery/tasks.py#L65 [18:29] you have to get the logger from the task because the logger is running per worker and aggregated and such [18:29] everything is async, so if they all shared the one logger they'd block each other/etc [18:58] anyone know the kernel really well? [18:59] the 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 kernels [19:00] out of my leauge :/ [19:00] err league [19:04] correction: chroot syscall succeeds, execve fails with ENOENT [19:58] <_stink_> rick_h_: thanks for the help, got it working. [20:00] _stink_: awesome [22:50] anyone using vagrant for anything? [23:00] i used it for viget.org [23:01] hold on, need to reboot [23:10] rick_h_: Did you have a vagrant question? [23:10] 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 up [23:10] brousch: https://github.com/fitztrev/bookie-vagrant [23:11] cone would be to get the VagrantFile [23:11] clone [23:11] no I mean step #2 [23:12] looks like the vagrantfile will clone if you don't, so I guess it's a chance to use your own fork [23:12] ok, so it's not a required step then. That's how I read it as well [23:13] anyway, I ended up installing vagrant and trying it out now. I got impatient for someone else to [23:17] hmmm, seems to work but I can't access it from outside of the vm [23:17] I can links2 it inside the vm though [23:18] hm, it's not happy [23:18] vagrant errors [23:18] oh, worked here [23:19] that's usually due to a port forward problem. you have to make sure the vm and your computer have the same version of virtualbox [23:19] tools installed in the vm are same version as your virtualbox [23:21] heh, well that made it unhappy. I changed the vm network to bridged in virtualebox and my whole desktop is frozen and network died [23:22] 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 ok [23:23] probably a tools mismatch [23:23] yea, now that I've rebooted errors [23:23] your win VM has tools matching your installed virtualbox [23:23] I downloaded the latest vagrant from the website which probably wasn't a good idea [23:24] anyway, cool stuff from trev and would be cool to get it solid up some to open up some hacking for people [23:24] my notes from viget http://pastebin.com/R7JQKMJY [23:25] interesting, needed for basic linux box? strange [23:25] I think my vagrant is old and maybe doesn't support the :s [23:25] I only thought I used guest additions because of video driver support [23:25] well it gets the port forward working [23:25] interesting, good to know I guess. [23:25] and the shared folders too [23:25] if trevlar comes back online we should work on the docs for it a bit [23:26] So you can link to a bookie repo on your host and edit with your preferred tools instead of sshing into the guest and editing [23:27] right, work on it with osx and such I guess [23:27] More of a problem for people who like big editors, I guess