Monday, February 21, 2011

Android SDK tools update failure: solved

While updating through Eclipse, if you get error:
Installing Android SDK Platform-tools, revision 9
Failed to rename directory
and warning:
-= warning! =- A folder failed to be renamed or moved. On Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software. Please also close any running programs that may be accessing the android-installation-path/tools directory, 


follow these steps:
  • Close Eclipse and close all instances of windows explorer in which the\android-sdk-windows\tools folder was opened.
  • Copy tools directory to some other tools_copy directory.
  • Run android.bat from there.
  • After update is over delete temp_tools directory (kill adb.exe if not able to delete the folder)
you can also try these (didn't work for me:()
  • Close Eclipse and close all instances of windows explorer in which the\android-sdk-windows\tools folder was opened 
  • Now run the AVD Manager independently as follows: 
  • Open a command prompt 
  • Go to the directory where android SDK is installed at, and then its tools subdirectory 
  • Run android.bat 
  • At this point, update just as you would if you were running the AVD Manager from within Eclipse (make sure the proxy settings are mentioned if you are behind the proxy). 


            Tuesday, December 7, 2010

            VLC player on Fedora: solved

            While installing VLC player on Fedora 10 I ran into following error:
            rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
            Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
            warning: /var/tmp/rpm-tmp.mBuC1o: Header V3 RSA/SHA256 signature: NOKEY, key ID 16ca1a56
            error: Failed dependencies:
                system-release >= 12 is needed by rpmfusion-free-release-12-3.noarch

            I got over it by changing into this:
            rpm -ivh http://download1.rpmfusion.org/free/fedora/releases/10/Everything/x86_64/os/rpmfusion-free-release-10-1.noarch.rpm

            if it is other than x86_64, replace it with either of i386, ppc or ppc64 depending on your system architecture.To check your system architecture, run this:
            #arch

            The problem here was probably 'coz latest release of rpmfusion does not support pre versions of Fedora 12.

            Saturday, October 2, 2010

            wifi on linux : solved


            Finally got wifi up on linux.. Have been trying from 2 days reading tutorials and downloading drivers.. All you guys trying the same on FC distributions(I'm using FC10), on Dell(dual  boot),
            follow these steps[...]
            Errors welcome:) 

            Friday, February 12, 2010

            Blogger Static Home page



            To make a static start page add this code just after <body> tag n before main-wrapper



            <b:if cond='data:blog.url == data:blog.homepageUrl'> 
            
               <div id='startpage'>
            
                <!-- Start Page-->
            
                </div>
            
            <b:else/> 
            
                 <div id='main-wrapper'>
            
                    <b:section class='main' id='main' showaddelement='no'>
            
                    <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
            
                    </b:section>
            
                  </div>
            
            </b:if>
            

            Tuesday, February 2, 2010

            Oracle thin driver on Eclipse

            1.      Add jar files
            In Eclipse, after creating a new project -> right click on projname-> properties -> select Java Buildpath-> Add External Jars-> jar file path -> Ok
            Jar file pathàC:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
            2.      Start adding new class file
            To use the DriverManager class to create connection objects, you need to know how to make a connection URL that provides access information to the Oracle server. The Oracle connection URL for the thin client-side driver ojdbc14.jar has the following format:
            jdbc:oracle:thin:[user/password]@[host][:port]:SID
            jdbc:oracle:thin:[user/password]@//[host][:port]/SID

              user - The login user name defined in the Oracle server.

              password - The password for the login user.

              host - The host name where Oracle server is running.
                     Default is 127.0.0.1 - the IP address of localhost.

              port - The port number where Oracle is listening for connection.
                     Default is 1521.

              SID  - System ID of the Oracle server database instance.
            By default, Oracle Database 10g Express Edition creates one database instance called XE.

            Ex:       try {
                                                  Connection con=null;
                                                  Class.forName("oracle.jdbc.driver.OracleDriver");
                                                  con=DriverManager.getConnection(
                                                    "jdbc:oracle:thin:@localhost:1521:XE",
                                                    "system",
                                                    "password");
                                                  Statement s=con.createStatement();
                                                  s.execute("insert into emp values('attr1')");
                                                  s.close();
                                                  con.close();
                               } catch(Exception e){e.printStackTrace();}