Stop the Hollyweb! No DRM in HTML5.

Tuesday, July 29, 2014

Genymotion, the fastest Android emulator for app testing and presentation

Install Genymotion

Application requirements:
    Oracle VirtualBox >= 4.2.12 (greater is better)
    Ubuntu 12.04

** To download ``Oracle VirtualBox`` visit https://www.virtualbox.org/wiki/Downloads

Download Genymotion from this link.

How to install
  #. In a terminal, run the following commands: 
      ``cd <path-to-install-Genymotion folder>``
      ``sudo chmod +x ./genymotion.sh``
  #. It will Launch genymotion and the main window appears.
  #. And immediately, a pop-up appears and invites you to add your first virtual device.
  #. Click the "Yes" button, the creation window appears.
  #. Click the "Connect" button.
  #. Fill the authentication window with your Genymotion Cloud username/email address and password
     **Note: Deafult username is ``aakashabt`` and password is ``aakashtest1``.
  #. Then click the "Connect" button.
  #. Once connected, you will see all the available virtual devices.
  #. Select a virtual device  ``Custom Phone 7 - 4.2.2 - API 17 - 1024x600`` in the list.
  #. click the "Next" button.
  #. Choose a new name for your virtual device and click the "Next" button.
  #. Your virtual device will now be downloaded and deployed.
  #. Click the "Finish" button to close the deployment window.
  #. Click the "Play" button to start your newly created virtual device.

** Important Note **
  #. If you close genymotion and want to use it again then just run following command:
     ``cd <path-to-install-Genymotion folder>``

Saturday, April 26, 2014

sudo: must be setuid root error

Open terminal and do, 
su -
su  - root

Next, type:

chmod 4755 /usr/bin/sudo
That's it!!! 

Scrape files from Browser with perl script

my (@arg) = @ARGV;
#perl script to scrape the slides from browser all at once
if (!@arg){
    print "USAGE: \n
       First arg : SEMISTER Number
       Second Arg: Semister Subject
       Third arg : UNIT Number
       Fourth Arg : Number of Pages
       IMAGE TYPE : JPG or PNG 
       Example: perl $0 3 DIF233 UNIT2 49 jpg\n";
    #print "$arg[0]==$arg[1] === $arg[2]==$arg[3]\n";
    system("mkdir -p $arg[1]/$arg[2]"); #creates directory where you want to store the slides
    system("cd  $arg[1]/$arg[2];"); #path to that directory
    #my $val="(?:jpg|png)";
    my $val = $arg[3];
      for(my $i=0;$i<=$val;$i++){ #from 0 to the number of slides the ppt has
     my $val1= "wget http://media.msconline.au-kbc.org.in/slides/semester$arg[0]/$arg[1]/$arg[2]/slides/complete/img$i.jpg"; #scrapes the slides from browser
      my $val2= "convert img$i.jpg slide.pdf"; #converts all slides to one pdf
     my $val3= "mv slide.pdf '$arg[1]/$arg[2]/'"; #moves the pdf to the directory created
    for(my $i=0;$i<=$val;$i++){
        $c = `pwd`; #the directory is from your present working directory
        $aa = "$c/$arg[1]/$arg[2]/";
        #print "cp img$i.png $aa\n";
    system ("mv img$i.jpg  $aa"); #moves the slides to the directory created


#run as perl down.pl 4 DIF%20004 unit1 63

Wednesday, April 23, 2014

Sources error during update

There are chances that while installing any package you might get sources error and update wont happen. Don't worry at all.
Just do,
sudo rm /etc/apt/sources.list.d/<name.list>

Wednesday, January 8, 2014

Techfest 2014

Pranav Mistry @IIT Bombay Techfest talking about his sixth sense technology. The enhancement of this sixth sense technology now is useful for any deaf person to interact with anyone. A deaf person will do sign languages. Those sign languages are recorded by this sixth sense technology http://www.slideshare.net/atinav242/the-sixth-sense-technology-complete-ppt . The gestures are processed into words which are then transmitted to a speaker which has words to speech software. The speaker will then speak out the words which the person actually means. Finally talking about open sourcing his technologies.

Monday, January 6, 2014

Saturday, January 4, 2014

The system network service is not compatible with this version ...Error solution(Ubuntu)

Check out by the command ifconfig whether what output you get.
If you are facing the problem there are chances you might not get the ip address in the output. For the naive people, in simpler words the output will be just one para and not 2 as it should be.
Try this link

For me this link didn't work but for many the above link worked so try that out first.

My experiment:
1. sudo  vi /etc/network/interfaces
you will see the lines:
auto eth0
iface eth0 inet dhcp

instead type:
auto eth0
iface eth0 inet static


Now do:
2. sudo nano /etc/resolv.conf
Paste below lines:

now restart your network with:
3.sudo /etc/init.d/networking restart

now check

5.ping joindiaspora.com
If this gives response, your net is working ....Hurray!

6.sudo service network-manager restart

This is basically called static ip.

Let me know whether it works or else what error u get take a screenshot and mail me.