Skip to content

Instantly share code, notes, and snippets.

View thapar's full-sized avatar

Raj Thapar thapar

View GitHub Profile
@thapar
thapar / pyramid_sockjs_chatapp_session_manager_issue.py
Created December 5, 2012 03:16
Single file chat app showing an issue when including a custom session_manager in pyramid_sockjs
# -*- coding: utf-8 -*-
import sys
from pyramid_sockjs.session import Session, SessionManager
class EchoSession(Session):
def __init__(self):
self.details = 'abcd'
@thapar
thapar / snapshot.py
Created March 17, 2013 19:31
This video is not seeking
#!/usr/bin/env python
#import pygst
#pygst.require('0.10')
from gi.repository import Gtk
Gtk.init(None)
from gi.repository import Gst, GstVideo
Gst.init(None)
#import pygtk
@thapar
thapar / snapshot.py
Created March 17, 2013 19:34
The video is not seeking
(py2envsitepack)[raj@raj-arch tools]$ python snapshot.py
** (snapshot.py:23866): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (snapshot.py:23866): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
0:00:00.065787263 23866 0x24ce520 INFO GST_PIPELINE gstparse.c:322:gst_parse_launch_full: parsing pipeline description 'uridecodebin uri=file:///home/raj/vbox_shared/rajbday.mpg ! videoconvert ! videoscale ! gdkpixbufsink name=sink'
0:00:00.066094575 23866 0x24ce520 DEBUG GST_PIPELINE parse.l:107:priv_gst_parse_yylex: flex: IDENTIFIER: uridecodebin
0:00:00.066173560 23866 0x24ce520 LOG GST_ELEMENT_FACTORY gstelementfactory.c:439:gst_element_factory_make: gstelementfactory: make "uridecodebin" "(NULL)"
0:00:00.066253295 23866 0x24ce520 LOG GST_ELEMENT_FACTORY gstelementfactory.c:445:gst_element
@thapar
thapar / debugger_log.c
Created March 17, 2013 19:37
This video is not seeking...
This file has been truncated, but you can view the full file.
(py2envsitepack)[raj@raj-arch tools]$ python snapshot.py
** (snapshot.py:23866): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (snapshot.py:23866): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
0:00:00.065787263 23866 0x24ce520 INFO GST_PIPELINE gstparse.c:322:gst_parse_launch_full: parsing pipeline description 'uridecodebin uri=file:///home/raj/vbox_shared/rajbday.mpg ! videoconvert ! videoscale ! gdkpixbufsink name=sink'
0:00:00.066094575 23866 0x24ce520 DEBUG GST_PIPELINE parse.l:107:priv_gst_parse_yylex: flex: IDENTIFIER: uridecodebin
0:00:00.066173560 23866 0x24ce520 LOG GST_ELEMENT_FACTORY gstelementfactory.c:439:gst_element_factory_make: gstelementfactory: make "uridecodebin" "(NULL)"
0:00:00.066253295 23866 0x24ce520 LOG GST_ELEMENT_FACTORY gstelementfactory.c:445:gst_element
This file has been truncated, but you can view the full file.
(py2envsitepack)[raj@raj-arch tools]$ python snapshot.py
** (snapshot.py:23890): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (snapshot.py:23890): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
0:00:00.066134181 23890 0x2567d20 INFO GST_PIPELINE gstparse.c:322:gst_parse_launch_full: parsing pipeline description 'uridecodebin uri=file:///home/raj/vbox_shared/rajbday.mpg ! videoconvert ! videoscale ! gdkpixbufsink name=sink'
0:00:00.066382599 23890 0x2567d20 DEBUG GST_PIPELINE parse.l:107:priv_gst_parse_yylex: flex: IDENTIFIER: uridecodebin
0:00:00.066456234 23890 0x2567d20 LOG GST_ELEMENT_FACTORY gstelementfactory.c:439:gst_element_factory_make: gstelementfactory: make "uridecodebin" "(NULL)"
0:00:00.066530488 23890 0x2567d20 LOG GST_ELEMENT_FACTORY gstelementfactory.c:445:gst_element
#!/usr/bin/env python
#import pygst
#pygst.require('0.10')
from gi.repository import Gtk
Gtk.init(None)
from gi.repository import Gst, GstVideo
Gst.init(None)
#import pygtk
#!/usr/bin/env python
#import pygst
#pygst.require('0.10')
from gi.repository import Gtk
Gtk.init(None)
from gi.repository import Gst, GstVideo
Gst.init(None)
#import pygtk
from pyramid.response import Response
from pyramid.config import Configurator
from pyramid.view import view_config
from wsgiref.simple_server import make_server
#from pyramid.session import UnencryptedCookieSessionFactoryConfig
#from pyramid.authentication import AuthTktAuthenticationPolicy
#from pyramid.authorization import ACLAuthorizationPolicy
@view_config(route_name='home')
import pdb
import os
import zipfile
import tempfile
from pyramid.response import FileIter
from pyramid.response import Response
from pyramid.config import Configurator
from pyramid.view import view_config
from wsgiref.simple_server import make_server