Niharika Kohli

Page 4


14 June ‘14

Done with the form today. Only styling remains. Data being computed in JS and saved to database.

Here’s a screenshot for the form: link

Screenshot of the database table: link

The following parameters will be fetched from stream: Video Quality, Video Format and Frame Rate. It needs to be seen how I will fetch those.

Tasks for tomorrow:

  • Create Admin frontend

View →


12 June ‘14

What I did today:

  • Created models and views for django based form, removed the HTML one
  • Database connectivity to save form data to database
  • Tested the form

What I left with, in the big picture:

  • Saving JS fetched data to database
  • Styling the form
  • Saving the screenshots
  • Creating the admin end

View →


8 June ‘14

  • I implemented location detection in my app today using pygeoip.
  • I detected user network bandwidth by downloading an image at a URL using JS and timing it. This method gives network speed fairly close to as measured by other online speedtests.
  • I toyed with html2canvas and implemented a dummy.
  • I was wondering about the possible options we have for storing the generated client-end screenshots. I talked to skay and we came up with the following:
    • Use a web service like s3 (AWS)
    • Use Imgur API. It offers a limit of 1250 uploads per day, according to docs. We can also apply for getting our app white-listed because it’s free for all.
    • Save them locally on our server.

Thought for the day

“Never let the perfect be the enemy of the good”: Don’t delay something in order to make it perfect when it already is good enough.

Continue reading →


8 June ‘14

Did a good amount of progress today.

  • Created form
  • Progressed on the user side data collection in JS (browser, OS, net speed, load time etc.)

Tasks for tomorrow:

  • GeoIP
  • Screenshot of client side page
  • Save data to DB

View →


6 June ‘14

I initialized a new git repo from the 2-scoops-of-django template. Messed with the javascript and templates a bit. Got a feel of the environment. Also got to learn more about virtualenv and usage. The repo is initialized with Django 1.6.5.

View →


1 June ‘14

Skay told me that a Django-based form would be preferable to an HTML one, so today I’m going to make the form properly, in Django.

Done with the form but I’m facing a weird error: ´A server error occurred. Please contact the administrator´ on accessing some specific URLs in the project site. Like this. No idea what’s going on.

The complete stack trace from doing the make serve can be found here.
My code can be found here.

PS: I’ll be a little less available over the next few days because of exam on Wednesday and Friday.

View →


31 May ‘14

  • Managed to link my Report Bug button to a new page.
  • Created a PostgreSQL database and did a syncdb with website folder
  • Investigated django directory structure. Thinking of the possibility to make this into a new app, like website, tracker…note- Ask skay
  • Very strangely, after a 3 hour break or so, when I tried to get the server running again, I get the error:

    ImportError: No module named psycopg2.extensions

Whereas pip tells me I have psycopg2 and it’s up-to-date.
Advice from Django: “just make sure you installed it inside your virtual env or that your virtual env takes the system site packages” for Psycopg2. Okay, linovia on Django helped me. I had to install psycopg2 AFTER activating the virtual env.

To activate virtualenv: “. bin/activate”;
To deactivate it: “deactivate”

Created a dummy HTML form on new page, trying to fetch data using Django now.

Continue reading →


30 May ‘14

Had an exam. Got caught up in a terrible storm afterwards. Barely made it home in one piece. Will begin work tomorrow on project.

View →


29 May ‘14

Spent the day studying for my Computer Networks exam. Protocols, DNS, logical & physical addressing, error correction & detection, multiplexing and stuff. Makes me appreciate the hardware projects being done by my fellow GSoC interns more.

View →


26 May ‘14

This week my final exams at university begin. They’ll last till 10th, but I hope to find some time in-between the exam days to work on my project. Over the past week I have gathered better command over Django and, in turn, the streaming system. I’ll be able to focus more after the exams, but will keep getting used to it whenever time permits.

As of now, I am focusing on how I can fetch the system information using JavaScript and how I can create the form using Django.

View →