DRM

Stop the Hollyweb! No DRM in HTML5.

Saturday, April 26, 2014

sudo: must be setuid root error

Open terminal and do, 
su -
or
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";
     exit;   
}else{
    #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
      system("$val1");
     system("$val2");
      system("$val3");
    }
    for(my $i=0;$i<=$val;$i++){
        $c = `pwd`; #the directory is from your present working directory
        chomp($c);
        $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

    }

#http://media.msconline.au-kbc.org.in/slides/semester3/DIF233/unit1/slides/complete/img{0..63}.png
#http://media.msconline.au-kbc.org.in/slides/semester3/DIF233/combined/img0.jpg   
#http://media.msconline.au-kbc.org.in/slides/semester3/DIF232/unit2/slides/complete/img8.html
#http://media.msconline.au-kbc.org.in/slides/semester3/DIF232/unit2/slides/complete/img8.png
#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
http://pratiklahoti.wordpress.com/2012/06/26/ubuntu-12-04-the-system-network-services-are-not-compatible-with-this-version/



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

address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1

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

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

now check
4.ifconfig


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.

Sunday, December 29, 2013

Login with 2 users in one terminal

Requirements : Ubuntu OS

1. Open terminal

2. Set root password incase you dont know
sudo passwd root

3. Create another user, say alice
sudo useradd alice

4. Assign password to alice
sudo passwd alice

5. Open another tab in the same terminal and type
su - alice

6. Likewise you can add as many users you wish on the terminal and make users interact with each other simultaneously.

7. But if you try to do any sudo command then it will give you an error
alice is not in the sudoers file.  This incident will be reported.

8. Exit alice user
ctrl c

9.  For that, open a file
sudo gedit /etc/sudoers

10. Add line in the file
alice ALL=(ALL:ALL) ALL

11. Close the file

DONE!!!