*** tpb has joined #timvideos | 00:00 | |
*** aps-sids_ has joined #timvideos | 01:50 | |
*** aps-sids has quit IRC | 01:58 | |
*** aps-sids_ is now known as aps-sids | 01:58 | |
*** CarlFK has joined #timvideos | 02:46 | |
*** ChanServ sets mode: +v CarlFK | 02:46 | |
*** leon_w has joined #timvideos | 04:28 | |
*** leon_w has quit IRC | 04:29 | |
*** leon_w has joined #timvideos | 04:29 | |
*** leon_w has quit IRC | 04:31 | |
*** techman83 has quit IRC | 04:31 | |
*** techman83 has joined #timvideos | 04:32 | |
*** ChanServ sets mode: +v techman83 | 04:32 | |
*** aps-sids has quit IRC | 04:52 | |
mithro | shenki: you see this? http://lwn.net/Articles/599231/ ? - Makes me think of Rusty's kernel tutorials at LCA | 05:31 |
---|---|---|
shenki | mithro: yeah, i signed up for it and got started, but didn't get to submitting the first challenge | 05:38 |
shenki | I should go back to it | 05:38 |
shenki | I wonder who it is that is running it | 05:38 |
*** Niharika has joined #timvideos | 05:44 | |
mithro | shenki: http://google-opensource.blogspot.com.au/2014/05/google-summer-of-code-2014-by-numbers.html - No Australian's this year it seems? | 05:59 |
tpb | Title: Google Open Source Blog: Google Summer of Code 2014 by the numbers: Part one (at google-opensource.blogspot.com.au) | 05:59 |
mithro | mparuszewski: http://googledevelopers.blogspot.com.au/2014/05/making-your-site-more-mobile-friendly.html | 06:01 |
tpb | Title: Google Developers Blog: Making your site more mobile-friendly with PageSpeed Insights (at googledevelopers.blogspot.com.au) | 06:01 |
mithro | shenki: My group launched a thing! -> http://blog.chromium.org/2014/05/chrome-36-beta-elementanimate-html.html :) | 06:03 |
tpb | Title: Chromium Blog: Chrome 36 Beta: element.animate(), HTML Imports, and Object.observe() (at blog.chromium.org) | 06:03 |
*** aps-sids has joined #timvideos | 06:04 | |
mithro | hi aps-sids! | 06:05 |
aps-sids | hey | 06:05 |
mithro | aps-sids: just posted on your blog | 06:05 |
aps-sids | replying | 06:06 |
aps-sids | mithro: this is the twisted gtk2reactor module being imported - http://pastebin.com/jb7jktgm If you see line 22, it should not import the module in first place and give a warning. But it doesn't. I even tried importing using ipython. gi is there in sys.modules, still this module is imported. Any ideas? | 06:22 |
tpb | Title: [Python] # -*- test-case-name: twisted.internet.test -*- # Copyright (c) Twisted Matrix - Pastebin.com (at pastebin.com) | 06:22 |
mithro | aps-sids: ordering matters here | 06:23 |
mithro | aps-sids: I'm guessing that gtk2reactor is getting imported before you import gi | 06:23 |
aps-sids | ah | 06:23 |
mithro | gtk2reactor is not compatible with the newer gi based bindings | 06:24 |
mithro | But I think twisted now has gtk3reactor which is compatible? | 06:25 |
shenki | mithro: bummer about no aussies. i wonder what the cause is. it would be interesting to see the trend of southern hemisphere over time | 06:29 |
shenki | mithro: your group is the web animations stuff? | 06:30 |
shenki | congrats! | 06:30 |
mithro | shenki: yeah | 06:30 |
*** slomo has joined #timvideos | 06:35 | |
shenki | mithro: so is there more to be done? or do you have new shinyness to work on now? | 06:35 |
mithro | shenki: *a lot* more to be done | 06:36 |
shenki | ok | 06:38 |
shenki | this stuff is being done to repalce flash? | 06:38 |
mithro | I wouldn't pitch it that way, but it does have that side effect | 06:50 |
shenki | ok | 06:51 |
shenki | do you have any cool demos to show off? | 06:51 |
*** Niharika has left #timvideos | 08:32 | |
*** Niharika has quit IRC | 08:32 | |
*** tija has joined #timvideos | 09:20 | |
*** tija has quit IRC | 09:30 | |
*** Niharika has joined #timvideos | 12:04 | |
aps-sids | mithro: I strongly suspect that we need to port all the modules before creating a successful stream | 12:10 |
aps-sids | the tests for gstreamer.py module now pass (which were failing last year) | 12:12 |
aps-sids | this was required for that since things were different for gst and gi https://github.com/aps-sids/flumotion-orig/commit/15b14eb40b08025743b8e652bf9dab806f2e1416#diff-14112d732533b8b3c4872badf1f9e116L37 | 12:16 |
tpb | Title: gstreamer.py ported · 15b14eb · aps-sids/flumotion-orig · GitHub (at github.com) | 12:16 |
aps-sids | CarlFK: ping? | 12:17 |
*** slomo has quit IRC | 12:26 | |
*** slomo has joined #timvideos | 12:43 | |
*** tija has joined #timvideos | 13:01 | |
mithro | aps-sids: Y | 13:02 |
mithro | aps-sids: you should be able to start at a producer element and drop a null sink temporarily on the end of the pipeline | 13:03 |
mithro | aps-sids: and slowly work you way forward | 13:03 |
*** tija has quit IRC | 13:05 | |
*** tija has joined #timvideos | 13:07 | |
*** FeltonChris has quit IRC | 13:10 | |
CarlFK | aps-sids: pong | 13:28 |
aps-sids | hi CarlFK , had some doubt, found it online. Did you see my blog post? | 13:35 |
CarlFK | yep - it's good | 13:45 |
* CarlFK running around packing up to go work at a coffee shop | 13:45 | |
mithro | aps-sids: you about? | 13:49 |
mithro | aps-sids: a really good tool for helping with debugging is the "q" module -- https://pypi.python.org/pypi/q | 13:51 |
tpb | Title: q 2.4 : Python Package Index (at pypi.python.org) | 13:51 |
mithro | aps-sids: it's really great when you can't use print statements or are deep inside the stack and don't know what is happening | 13:52 |
mithro | aps-sids: I also recommend strace and ltrace as very useful tool | 13:52 |
*** CarlFK has quit IRC | 14:04 | |
*** slomo_ has joined #timvideos | 14:15 | |
*** slomo_ has joined #timvideos | 14:15 | |
*** slomo has quit IRC | 14:17 | |
tija | Can anyone suggest me a way to measure the FPS of video streaming from HDMI2USB? | 14:20 |
*** CarlFK has joined #timvideos | 14:20 | |
*** ChanServ sets mode: +v CarlFK | 14:20 | |
*** tija has quit IRC | 14:30 | |
aps-sids | thanks a lot mithro :) | 14:49 |
*** tija has joined #timvideos | 14:49 | |
mithro | aps-sids: strace is really useful for trying to figure out where python is searching for modules and such | 14:49 |
mithro | aps-sids: I remeber the other student having issues with the gi import too | 14:49 |
aps-sids | mithro: I tried strace already but the output was quite over whelming | 14:50 |
mithro | aps-sids: you can tune what straces output | 14:50 |
aps-sids | yeah, I am trying that | 14:51 |
mithro | I think "-e trace=file" should help | 14:51 |
skay | mithro: I'm still wrapping up my last week (and a day!) at my job, and I haven't had a chance to review all of the frontend for the site. so could you give a quick pointer for Niharika on how one adds a new url that will resolve, to a template? we were thinking it is something that would get added to config. I'm more used to doing something like {% url | 14:52 |
skay | arg | 14:52 |
mithro | http://portingflumotion.blogspot.com.au/2013/07/mithro-i-know-which-one-im-executing.html | 14:52 |
tpb | Title: GSoC2013: Not finding gi (at portingflumotion.blogspot.com.au) | 14:52 |
skay | {% url 'somenamefromurlspy' %} | 14:52 |
skay | looks like you are doing {{ avarfromconfig }}restofurl | 14:53 |
mithro | skay: check what the other templates are using? | 14:53 |
skay | yeah, I did, but wanted to verify that is what was going on | 14:53 |
mithro | skay: I'm no django expert, so there could be a better way :) | 14:53 |
skay | Niharika had some trouble getting her url to resolve | 14:53 |
skay | and she had added it to config already | 14:53 |
skay | mithro: oh sure... she suggested upgrading (and refactoring) but I was worried that we'd end up getting derailed by that and not finishing the main goal | 14:54 |
skay | it's very easy to go down a rabbit hole refactoring things | 14:54 |
mithro | skay: agreed | 14:54 |
mithro | skay: it's been quite a while since I looked at the code | 14:55 |
mithro | can she go to the url directly? | 14:55 |
skay | mithro: no worries, just wanted to see if you recalled | 14:55 |
mithro | aps-sids: the solution is at http://portingflumotion.blogspot.com.au/2013/07/mithro-i-know-which-one-im-executing.html | 14:55 |
tpb | Title: GSoC2013: Not finding gi (at portingflumotion.blogspot.com.au) | 14:55 |
skay | I haven't checked. I was spending time on work | 14:55 |
mithro | opps | 14:55 |
mithro | I mean | 14:55 |
mithro | http://portingflumotion.blogspot.com.au/2013/07/some-progress-and-lot-more-to-do.html | 14:56 |
tpb | Title: GSoC2013: Some progress and a lot more to do (at portingflumotion.blogspot.com.au) | 14:56 |
skay | it will be okay, I think she will figure it out before I get to it, or I will be able to go through the code to help depending on if I get to it soon | 14:56 |
skay | I'm looking forward to the week after next when I'm done with my jobjob | 14:56 |
aps-sids | mithro: blog says the problem lies in "sys.modules['gi'] = None". This is executed when gtk2reactor is imported which should not be imported in first place as gi is already present in sys.modules (I don't know reason for this yet). Also, since I have commented this gtk2reactor importing code, and still getting the error, I suspect that problem lies elsewhere | 15:07 |
aps-sids | (as well). | 15:07 |
mithro | aps-sids: I think you'll find that gtk2reactor is still being imported | 15:13 |
mithro | aps-sids: any module you import could import another module which could import gtk2reactor | 15:13 |
mithro | aps-sids: etc | 15:13 |
Niharika | skay: mithro: Sorry, I was at dinner. I´m still trying to figure it out, but hopefully I´ll be able to do it over the weekend. | 15:14 |
mithro | Niharika: what happens when you just go to the URL? | 15:14 |
mithro | make sure you have debugging turned on | 15:14 |
skay | Niharika: I apologize for not getting to the code sooner | 15:14 |
Niharika | mithro: It opens the streaming system page only. At that url. | 15:14 |
Niharika | mithro: It basically creates a new page identical to example page. | 15:15 |
mithro | Niharika: open up dev tools or firebug and watch what happens | 15:15 |
mithro | Niharika: my guess is you are getting redirected? | 15:15 |
mithro | there is a catchall that redirects you back IIRC | 15:15 |
Niharika | mithro: Alright. No, I am not getting redirected. It´s the new page only, but at that url. I want to direct it to a blank new page. I´m not an ace with django either, so having trouble. | 15:16 |
Niharika | skay: It´s alright. I know you´ve been occupied. :) | 15:16 |
mithro | you know about the urls.py file right? | 15:16 |
Niharika | mithro: Yep. | 15:16 |
CarlFK | what is "blank" page? | 15:16 |
Niharika | CarlFK: Just a new html page. | 15:17 |
CarlFK | does it have <html>... ? | 15:17 |
mithro | so which urls.py did you add it too? | 15:17 |
skay | mithro: the way the site is configured it seems like you could get away with not using hte urls.py but dynamically have new links by configuring an instance via the config files | 15:17 |
mithro | the root urls.py imports the urls.py from both the frontend and the tracker | 15:18 |
CarlFK | sounds like "I want a 404" which leads to "(10:15:47 AM) mithro: there is a catchall that redirects you back IIRC" | 15:18 |
Niharika | CarlFK: It does. But that page doesnt open. It creates a page identical to example page and I see that. | 15:18 |
skay | CarlFK: shouldn't you get a 404? | 15:18 |
mithro | skay: the urls.py uses a regex to match patterns | 15:18 |
mithro | https://github.com/timvideos/streaming-system/blob/master/website/frontend/urls.py | 15:18 |
tpb | Title: streaming-system/website/frontend/urls.py at master · timvideos/streaming-system · GitHub (at github.com) | 15:18 |
mithro | Niharika: I'm still not clear what you are actually trying to do | 15:19 |
Niharika | mithro: I only added my page to config.json. | 15:19 |
mithro | config.json doesn't have anything to do with urls | 15:19 |
skay | mithro: thank you, I was asking this before! | 15:20 |
mithro | config.json defines a bunch of data about rooms | 15:20 |
Niharika | mithro: I am trying to direct the user to a new page where I will create the report bug form. The actual thing will use AJAX but I am not sure how to do that as yet, so doing it this way for now. | 15:20 |
mithro | this data is used in a bunch of places | 15:20 |
Niharika | On clicking a button in the footer of the streaming page. | 15:20 |
skay | mithro: are you certain? because I saw some a href="{{ a var defined in config? }}rest of path">foo</a> | 15:20 |
mithro | skay: the data is used by the app | 15:21 |
Niharika | mithro: Okay. I got confused because I saw example page listed in config.json. | 15:21 |
mithro | https://github.com/timvideos/streaming-system/blob/master/website/frontend/urls.py#L15 | 15:21 |
tpb | Title: streaming-system/website/frontend/urls.py at master · timvideos/streaming-system · GitHub (at github.com) | 15:21 |
mithro | that maps anything of | 15:21 |
mithro | to views.group | 15:22 |
skay | Niharika: so, on a general topic. I was thinking you might want to have a service endpoint in django, and then some javascript functionality on the streaming landing page that collects the client side data you want, and then its submit will send an http request to the django service endpoint | 15:23 |
mithro | See https://docs.djangoproject.com/en/dev/topics/http/urls/ for more information | 15:23 |
tpb | Title: URL dispatcher | Django documentation | Django (at docs.djangoproject.com) | 15:23 |
Niharika | Okay. | 15:23 |
skay | so you would want to have a view for the service endpoint, but it wouldn't necessarily be the same view that is forming the landing page you say | 15:23 |
skay | Niharika: but actually I would like you to explore how you want to do it | 15:24 |
skay | I have some forms on a site I made that use the normal kind of django forms thing, but I also have some javascript code that talks to a view made that is called from a page | 15:24 |
skay | I don't want to dump all of these ideas on you at once | 15:25 |
skay | going through the normal form/view functionality is fine | 15:25 |
Niharika | skay: Okay. I´ll try to understand the existing code and then explore my options. | 15:26 |
mithro | If you want to add a new page, you'll have to follow the "overall_stats_graphs" page example | 15:26 |
Niharika | mithro: Okay. | 15:27 |
aps-sids | Niharika: if you can tell me exactly what you are trying to accomplish, I might suggest something. I have a decent amount of experience with django. | 15:35 |
aps-sids | btw are you running it locally or over the web? | 15:37 |
Niharika | aps-sids: Locally. | 15:38 |
Niharika | aps-sids: I am trying to direct the user to a new blank html page (which I will populate later) when he clicks a button on the footer of the streaming page. | 15:38 |
Niharika | aps-sids: I created the page and placed it in frontend/templates | 15:39 |
Niharika | I inserted the link(button) in the base.html file. | 15:40 |
Niharika | But cant get it to direct to the new page. | 15:40 |
aps-sids | Niharika: give href to this button, something like href="/reportbug/" add this url in urls.py.. then create a view that executes when this url is visited.. in that view "render" the template | 15:40 |
aps-sids | is this code on github? link? | 15:41 |
Niharika | aps-sids: Nope, not yet on github. I´ll put it up. Thanks, let me try that. | 15:41 |
mithro | mparuszewski: there are a lot of tools that Google provides for things like that | 16:06 |
mithro | mparuszewski: as I think I mentioned, we probably want to use something like Analytics to help guide our decisions | 16:06 |
mithro | anyway I should be asleep | 16:06 |
mithro | gnight | 16:07 |
mparuszewski | good night :) I will take a look on Google Analytics. I have used it about 2 years ago, currently I am monitoring my applications on New Relic. :) | 16:08 |
*** tija has quit IRC | 17:49 | |
Niharika | aps-sids: Got a moment? | 18:10 |
aps-sids | yup | 18:10 |
Niharika | Here is the base.html: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/templates/base.html#L30 | 18:10 |
tpb | Title: streaming-system/website/frontend/templates/base.html at master · Niharika29/streaming-system · GitHub (at github.com) | 18:10 |
Niharika | I added it to urls.py: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/urls.py | 18:11 |
tpb | Title: streaming-system/website/frontend/urls.py at master · Niharika29/streaming-system · GitHub (at github.com) | 18:11 |
Niharika | And created a view: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/views.py#L129 | 18:11 |
tpb | Title: streaming-system/website/frontend/views.py at master · Niharika29/streaming-system · GitHub (at github.com) | 18:11 |
aps-sids | hmm, go on | 18:12 |
Niharika | Right now, it does not recognize my URL. It is comparing it with views.groups | 18:12 |
Niharika | views.group* | 18:12 |
Niharika | Have I made some error in the syntax? | 18:12 |
aps-sids | syntax looks ok | 18:14 |
aps-sids | is it easy for me to run this on my machine fast? | 18:14 |
Niharika | Yep. Nothing much I added except this. | 18:14 |
aps-sids | yeah, but i don't have streaming-system instance right now | 18:15 |
Niharika | Okay, then chuck. | 18:15 |
Niharika | I´ll poke around. | 18:15 |
aps-sids | url(r'^reportbug/$', views.reportbug), I think you need to remove the "/" | 18:15 |
Niharika | Okay. | 18:16 |
aps-sids | just try, maybe I'm wrong | 18:16 |
Niharika | I need to restart the server everytime I make a change in these files. :-/ | 18:16 |
Niharika | Wonder why. | 18:16 |
aps-sids | there is a django setting for auto refresh the server upon file change | 18:17 |
Niharika | aps-sids: Worked. Now it gives me: name Error: global name template not defined. | 18:18 |
Niharika | But for the view above this, it doesn´t complain. Why so? | 18:18 |
aps-sids | Niharika: you mean graphs view? | 18:20 |
Niharika | Yep. | 18:20 |
Niharika | Anything to do with locals() ? | 18:20 |
aps-sids | Shouldn't context_instance=template.RequestContext() be context_instance=template.RequestContext(request) ? | 18:21 |
Niharika | Yes. Sorry. Fixed that. Still doesn´t recognize template. | 18:21 |
Niharika | aps-sids: It was giving me same error for ´render´, as used in graphs view That´s why I changed it to render_to_response. | 18:22 |
Niharika | I am using Django 1.5 only. As mentioned in docs. | 18:22 |
aps-sids | locals() is just a replacement for template var dict | 18:24 |
Niharika | I should include it in my view? | 18:25 |
aps-sids | its not necessary | 18:25 |
Niharika | Okay. | 18:25 |
aps-sids | btw how is render working for graphs? | 18:25 |
aps-sids | its not imported anywhere? | 18:25 |
Niharika | It´s definitely not imported in the view anywhere. Outside of it, it should work for my view too.. Checking. | 18:26 |
Niharika | aps-sids: Wait, maybe it isn´t working for graphs too. I am not accessing the graphs page. It won´t check the code until it is accessed, correct? | 18:27 |
aps-sids | yes | 18:28 |
Niharika | Thanks for your help, aps-sids. I´ll try and figure this out tomorrow. | 18:33 |
aps-sids | Niharika: Do you actually understand how context_instance=template.RequestContext works? cause I don't :P | 18:34 |
aps-sids | I never used it. | 18:34 |
Niharika | aps-sids: Nope. But if I don´t include that, I get a hundred more errors. :P I googled it, nothing useful came up. | 18:34 |
Niharika | aps-sids: The request parameter that is supplied to the view..what is it and who supplies it? | 18:35 |
Niharika | I tried excluding that too, it gave me an error again. | 18:35 |
aps-sids | the http request (GET or POST or etc) sent by browser | 18:35 |
aps-sids | that is a must | 18:35 |
Niharika | Okay. | 18:35 |
Niharika | My brain is wired to work with PHP lately. This is so confusing. But thanks for the help, makes more sense now somewhat. | 18:36 |
*** Niharika has left #timvideos | 18:40 | |
*** slomo__ has joined #timvideos | 19:11 | |
*** slomo_ has quit IRC | 19:14 | |
*** CarlFK has quit IRC | 19:42 | |
*** CarlFK has joined #timvideos | 20:21 | |
*** ChanServ sets mode: +v CarlFK | 20:21 | |
*** CarlFK has quit IRC | 21:10 | |
*** slomo__ has quit IRC | 21:47 | |
*** CarlFK has joined #timvideos | 21:55 | |
*** ChanServ sets mode: +v CarlFK | 21:55 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!