Friday, 2014-05-23

*** tpb has joined #timvideos00:00
*** aps-sids_ has joined #timvideos01:50
*** aps-sids has quit IRC01:58
*** aps-sids_ is now known as aps-sids01:58
*** CarlFK has joined #timvideos02:46
*** ChanServ sets mode: +v CarlFK02:46
*** leon_w has joined #timvideos04:28
*** leon_w has quit IRC04:29
*** leon_w has joined #timvideos04:29
*** leon_w has quit IRC04:31
*** techman83 has quit IRC04:31
*** techman83 has joined #timvideos04:32
*** ChanServ sets mode: +v techman8304:32
*** aps-sids has quit IRC04:52
mithroshenki: you see this? http://lwn.net/Articles/599231/ ? - Makes me think of Rusty's kernel tutorials at LCA05:31
shenkimithro: yeah, i signed up for it and got started, but didn't get to submitting the first challenge05:38
shenkiI should go back to it05:38
shenkiI wonder who it is that is running it05:38
*** Niharika has joined #timvideos05:44
mithroshenki: 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
tpbTitle: Google Open Source Blog: Google Summer of Code 2014 by the numbers: Part one (at google-opensource.blogspot.com.au)05:59
mithromparuszewski: http://googledevelopers.blogspot.com.au/2014/05/making-your-site-more-mobile-friendly.html06:01
tpbTitle: Google Developers Blog: Making your site more mobile-friendly with PageSpeed Insights (at googledevelopers.blogspot.com.au)06:01
mithroshenki: My group launched a thing! -> http://blog.chromium.org/2014/05/chrome-36-beta-elementanimate-html.html :)06:03
tpbTitle: Chromium Blog: Chrome 36 Beta: element.animate(), HTML Imports, and Object.observe() (at blog.chromium.org)06:03
*** aps-sids has joined #timvideos06:04
mithrohi aps-sids!06:05
aps-sidshey06:05
mithroaps-sids: just posted on your blog06:05
aps-sidsreplying06:06
aps-sidsmithro: 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
tpbTitle: [Python] # -*- test-case-name: twisted.internet.test -*- # Copyright (c) Twisted Matrix - Pastebin.com (at pastebin.com)06:22
mithroaps-sids: ordering matters here06:23
mithroaps-sids: I'm guessing that gtk2reactor is getting imported before you import gi06:23
aps-sidsah06:23
mithrogtk2reactor is not compatible with the newer gi based bindings06:24
mithroBut I think twisted now has gtk3reactor which is compatible?06:25
shenkimithro: bummer about no aussies. i wonder what the cause is. it would be interesting to see the trend of southern hemisphere over time06:29
shenkimithro: your group is the web animations stuff?06:30
shenkicongrats!06:30
mithroshenki: yeah06:30
*** slomo has joined #timvideos06:35
shenkimithro: so is there more to be done? or do you have new shinyness to work on now?06:35
mithroshenki: *a lot* more to be done06:36
shenkiok06:38
shenkithis stuff is being done to repalce flash?06:38
mithroI wouldn't pitch it that way, but it does have that side effect06:50
shenkiok06:51
shenkido you have any cool demos to show off?06:51
*** Niharika has left #timvideos08:32
*** Niharika has quit IRC08:32
*** tija has joined #timvideos09:20
*** tija has quit IRC09:30
*** Niharika has joined #timvideos12:04
aps-sidsmithro: I strongly suspect that we need to port all the modules before creating a successful stream12:10
aps-sidsthe tests for gstreamer.py module now pass (which were failing last year)12:12
aps-sidsthis was required for that since things were different for gst and gi   https://github.com/aps-sids/flumotion-orig/commit/15b14eb40b08025743b8e652bf9dab806f2e1416#diff-14112d732533b8b3c4872badf1f9e116L3712:16
tpbTitle: gstreamer.py ported · 15b14eb · aps-sids/flumotion-orig · GitHub (at github.com)12:16
aps-sidsCarlFK: ping?12:17
*** slomo has quit IRC12:26
*** slomo has joined #timvideos12:43
*** tija has joined #timvideos13:01
mithroaps-sids: Y13:02
mithroaps-sids: you should be able to start at a producer element and drop a null sink temporarily on the end of the pipeline13:03
mithroaps-sids: and slowly work you way forward13:03
*** tija has quit IRC13:05
*** tija has joined #timvideos13:07
*** FeltonChris has quit IRC13:10
CarlFKaps-sids: pong13:28
aps-sidshi CarlFK , had some doubt, found it online. Did you see my blog post?13:35
CarlFKyep - it's good13:45
* CarlFK running around packing up to go work at a coffee shop 13:45
mithroaps-sids: you about?13:49
mithroaps-sids: a really good tool for helping with debugging is the "q" module -- https://pypi.python.org/pypi/q13:51
tpbTitle: q 2.4 : Python Package Index (at pypi.python.org)13:51
mithroaps-sids: it's really great when you can't use print statements or are deep inside the stack and don't know what is happening13:52
mithroaps-sids: I also recommend strace and ltrace as very useful tool13:52
*** CarlFK has quit IRC14:04
*** slomo_ has joined #timvideos14:15
*** slomo_ has joined #timvideos14:15
*** slomo has quit IRC14:17
tijaCan anyone suggest me a way to measure the FPS of video streaming from HDMI2USB?14:20
*** CarlFK has joined #timvideos14:20
*** ChanServ sets mode: +v CarlFK14:20
*** tija has quit IRC14:30
aps-sidsthanks a lot mithro  :)14:49
*** tija has joined #timvideos14:49
mithroaps-sids: strace is really useful for trying to figure out where python is searching for modules and such14:49
mithroaps-sids: I remeber the other student having issues with the gi import too14:49
aps-sidsmithro: I tried strace already but the output was quite over whelming14:50
mithroaps-sids: you can tune what straces output14:50
aps-sidsyeah, I am trying that14:51
mithroI think "-e trace=file" should help14:51
skaymithro: 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 {% url14:52
skayarg14:52
mithrohttp://portingflumotion.blogspot.com.au/2013/07/mithro-i-know-which-one-im-executing.html14:52
tpbTitle: GSoC2013: Not finding gi (at portingflumotion.blogspot.com.au)14:52
skay{% url 'somenamefromurlspy' %}14:52
skaylooks like you are doing {{ avarfromconfig }}restofurl14:53
mithroskay: check what the other templates are using?14:53
skayyeah, I did, but wanted to verify that is what was going on14:53
mithroskay: I'm no django expert, so there could be a better way :)14:53
skayNiharika had some trouble getting her url to resolve14:53
skayand she had added it to config already14:53
skaymithro: 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 goal14:54
skayit's very easy to go down a rabbit hole refactoring things14:54
mithroskay: agreed14:54
mithroskay: it's been quite a while since I looked at the code14:55
mithrocan she go to the url directly?14:55
skaymithro: no worries, just wanted to see if you recalled14:55
mithroaps-sids: the solution is at http://portingflumotion.blogspot.com.au/2013/07/mithro-i-know-which-one-im-executing.html14:55
tpbTitle: GSoC2013: Not finding gi (at portingflumotion.blogspot.com.au)14:55
skayI haven't checked. I was spending time on work14:55
mithroopps14:55
mithroI mean14:55
mithrohttp://portingflumotion.blogspot.com.au/2013/07/some-progress-and-lot-more-to-do.html14:56
tpbTitle: GSoC2013: Some progress and a lot more to do (at portingflumotion.blogspot.com.au)14:56
skayit 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 soon14:56
skayI'm looking forward to the week after next when I'm done with my jobjob14:56
aps-sidsmithro: 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 elsewhere15:07
aps-sids(as well).15:07
mithroaps-sids: I think you'll find that gtk2reactor is still being imported15:13
mithroaps-sids: any module you import could import another module which could import gtk2reactor15:13
mithroaps-sids: etc15:13
Niharikaskay: 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
mithroNiharika: what happens when you just go to the URL?15:14
mithromake sure you have debugging turned on15:14
skayNiharika: I apologize for not getting to the code sooner15:14
Niharikamithro: It opens the streaming system page only. At that url.15:14
Niharikamithro: It basically creates a new page identical to example page.15:15
mithroNiharika: open up dev tools or firebug and watch what happens15:15
mithroNiharika: my guess is you are getting redirected?15:15
mithrothere is a catchall that redirects you back IIRC15:15
Niharikamithro: 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
Niharikaskay: It´s alright. I know you´ve been occupied. :)15:16
mithroyou know about the urls.py file right?15:16
Niharikamithro: Yep.15:16
CarlFKwhat is "blank" page?15:16
NiharikaCarlFK: Just a new html page.15:17
CarlFKdoes it have <html>... ?15:17
mithroso which urls.py did you add it too?15:17
skaymithro: 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 files15:17
mithrothe root urls.py imports the urls.py from both the frontend and the tracker15:18
CarlFKsounds like "I want a 404" which leads to "(10:15:47 AM) mithro: there is a catchall that redirects you back IIRC"15:18
NiharikaCarlFK: It does. But that page doesnt open. It creates a page identical to example page and I see that.15:18
skayCarlFK: shouldn't you get a 404?15:18
mithroskay: the urls.py uses a regex to match patterns15:18
mithrohttps://github.com/timvideos/streaming-system/blob/master/website/frontend/urls.py15:18
tpbTitle: streaming-system/website/frontend/urls.py at master · timvideos/streaming-system · GitHub (at github.com)15:18
mithroNiharika: I'm still not clear what you are actually trying to do15:19
Niharikamithro: I only added my page to config.json.15:19
mithroconfig.json doesn't have anything to do with urls15:19
skaymithro: thank you, I was asking this before!15:20
mithroconfig.json defines a bunch of data about rooms15:20
Niharikamithro: 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
mithrothis data is used in a bunch of places15:20
NiharikaOn clicking a button in the footer of the streaming page.15:20
skaymithro: are you certain? because I saw some a href="{{ a var defined in config? }}rest of path">foo</a>15:20
mithroskay: the data is used by the app15:21
Niharikamithro: Okay. I got confused because I saw example page listed in config.json.15:21
mithrohttps://github.com/timvideos/streaming-system/blob/master/website/frontend/urls.py#L1515:21
tpbTitle: streaming-system/website/frontend/urls.py at master · timvideos/streaming-system · GitHub (at github.com)15:21
mithrothat maps anything of15:21
mithroto views.group15:22
skayNiharika: 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 endpoint15:23
mithroSee https://docs.djangoproject.com/en/dev/topics/http/urls/ for more information15:23
tpbTitle: URL dispatcher | Django documentation | Django (at docs.djangoproject.com)15:23
NiharikaOkay.15:23
skayso 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 say15:23
skayNiharika: but actually I would like you to explore how you want to do it15:24
skayI 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 page15:24
skayI don't want to dump all of these ideas on you at once15:25
skaygoing through the normal form/view functionality is fine15:25
Niharikaskay: Okay. I´ll try to understand the existing code and then explore my options.15:26
mithroIf you want to add a new page, you'll have to follow the "overall_stats_graphs" page example15:26
Niharikamithro: Okay.15:27
aps-sidsNiharika: 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-sidsbtw are you running it locally or over the web?15:37
Niharikaaps-sids: Locally.15:38
Niharikaaps-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
Niharikaaps-sids: I created the page and placed it in frontend/templates15:39
NiharikaI inserted the link(button) in the base.html file.15:40
NiharikaBut cant get it to direct to the new page.15:40
aps-sidsNiharika: 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 template15:40
aps-sidsis this code on github? link?15:41
Niharikaaps-sids: Nope, not yet on github. I´ll put it up. Thanks, let me try that.15:41
mithromparuszewski: there are a lot of tools that Google provides for things like that16:06
mithromparuszewski: as I think I mentioned, we probably want to use something like Analytics to help guide our decisions16:06
mithroanyway I should be asleep16:06
mithrognight16:07
mparuszewskigood 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 IRC17:49
Niharikaaps-sids: Got a moment?18:10
aps-sidsyup18:10
NiharikaHere is the base.html: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/templates/base.html#L3018:10
tpbTitle: streaming-system/website/frontend/templates/base.html at master · Niharika29/streaming-system · GitHub (at github.com)18:10
NiharikaI added it to urls.py: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/urls.py18:11
tpbTitle: streaming-system/website/frontend/urls.py at master · Niharika29/streaming-system · GitHub (at github.com)18:11
NiharikaAnd created a view: https://github.com/Niharika29/streaming-system/blob/master/website/frontend/views.py#L12918:11
tpbTitle: streaming-system/website/frontend/views.py at master · Niharika29/streaming-system · GitHub (at github.com)18:11
aps-sidshmm, go on18:12
NiharikaRight now, it does not recognize my URL. It is comparing it with views.groups18:12
Niharikaviews.group*18:12
NiharikaHave I made some error in the syntax?18:12
aps-sidssyntax looks ok18:14
aps-sidsis it easy for me to run this on my machine fast?18:14
NiharikaYep. Nothing much I added except this.18:14
aps-sidsyeah, but i don't have streaming-system instance right now18:15
NiharikaOkay, then chuck.18:15
NiharikaI´ll poke around.18:15
aps-sidsurl(r'^reportbug/$', views.reportbug),  I think you need to remove the "/"18:15
NiharikaOkay.18:16
aps-sidsjust try, maybe I'm wrong18:16
NiharikaI need to restart the server everytime I make a change in these files. :-/18:16
NiharikaWonder why.18:16
aps-sidsthere is a django setting for auto refresh the server upon file change18:17
Niharikaaps-sids: Worked. Now it gives me: name Error: global name template not defined.18:18
NiharikaBut for the view above this, it doesn´t complain. Why so?18:18
aps-sidsNiharika: you mean graphs view?18:20
NiharikaYep.18:20
NiharikaAnything to do with locals() ?18:20
aps-sidsShouldn't context_instance=template.RequestContext() be   context_instance=template.RequestContext(request) ?18:21
NiharikaYes. Sorry. Fixed that. Still doesn´t recognize template.18:21
Niharikaaps-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
NiharikaI am using Django 1.5 only. As mentioned in docs.18:22
aps-sidslocals() is just a replacement for template var dict18:24
NiharikaI should include it in my view?18:25
aps-sidsits not necessary18:25
NiharikaOkay.18:25
aps-sidsbtw how is render working for graphs?18:25
aps-sidsits not imported anywhere?18:25
NiharikaIt´s definitely not imported in the view anywhere. Outside of it, it should work for my view too.. Checking.18:26
Niharikaaps-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-sidsyes18:28
NiharikaThanks for your help, aps-sids. I´ll try and figure this out tomorrow.18:33
aps-sidsNiharika: Do you actually understand how context_instance=template.RequestContext works? cause I don't :P18:34
aps-sidsI never used it.18:34
Niharikaaps-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
Niharikaaps-sids: The request parameter that is supplied to the view..what is it and who supplies it?18:35
NiharikaI tried excluding that too, it gave me an error again.18:35
aps-sidsthe http request (GET or POST or etc) sent by browser18:35
aps-sidsthat is a must18:35
NiharikaOkay.18:35
NiharikaMy 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 #timvideos18:40
*** slomo__ has joined #timvideos19:11
*** slomo_ has quit IRC19:14
*** CarlFK has quit IRC19:42
*** CarlFK has joined #timvideos20:21
*** ChanServ sets mode: +v CarlFK20:21
*** CarlFK has quit IRC21:10
*** slomo__ has quit IRC21:47
*** CarlFK has joined #timvideos21:55
*** ChanServ sets mode: +v CarlFK21:55

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