Thursday, 15 March 2012

How to unlock user account in Oracle SQL Plus

1] Open SQL Plus

2] Login as SYSDBA
SQL> conn /as sysdba

3] Unlock the account
SQL> ALTER USER username ACCOUNT UNLOCK;


To lock the account

SQL> ALTER USER username ACCOUNT LOCK;

Thursday, 29 December 2011

Uninstalling Eclipse Plugins

Eclipse plugins can be removed(Uninstalled) using following steps

1] Open Eclipse
2] Go to Help > About and click on 'Installation Details' button.
3] Click on 'Installed Software' tab
4] Select the plugins you want to uninstall. (You can select multiple plugins)
5] Click on Uninstall button.
6] Eclipse will show the 'Uninstall Details' window. Click on the Finish button.
7] Restart Eclipse
8] Done. Plugin uninstalled.

Downloading Eclipse plugins from repository for offline use

We can download any eclipse plugin from repository and create its offline module by using a trick. To demonstrate, here we consider the ADT Plugin for eclipse. The repository URL to download the ADT Plugin is

https://dl-ssl.google.com/android/eclipse/

The repository url given above is used to download the plugin in ONLINE mode (via Eclipse >  Help > Install New Software > Add this url and download the plugin through internet)

Now THE TRICK for offline installation :

1] Append the repository URL with site.xml

The URL becomes : https://dl-ssl.google.com/android/eclipse/site.xml

2] Save the site.xml file on computer.

3] Open site.xml in the text editor.
It Looks like

<?xml version="1.0" encoding="UTF-8"?>
<site>
   <description url="https://dl-ssl.google.com/android/eclipse/">
      Update Site for Android Development Toolkit
   </description>
   <feature url="features/com.android.ide.eclipse.adt_16.0.1.v201112150204-238534.jar"
   id="com.android.ide.eclipse.adt" version="16.0.1.v201112150204-238534">
      <category name="developer"/>
   </feature>
   <feature url="features/com.android.ide.eclipse.ddms_16.0.1.v201112150204-238534.jar"
   id="com.android.ide.eclipse.ddms" version="16.0.1.v201112150204-238534">
      <category name="developer"/>
   </feature>
   <feature url="features/com.android.ide.eclipse.hierarchyviewer_16.0.1.v201112150204-238534.jar"
   id="com.android.ide.eclipse.hierarchyviewer" version="16.0.1.v201112150204-238534">
      <category name="developer"/>
   </feature>
   <feature url="features/com.android.ide.eclipse.traceview_16.0.1.v201112150204-238534.jar"
   id="com.android.ide.eclipse.traceview" version="16.0.1.v201112150204-238534">
      <category name="developer"/>
   </feature>
   <category-def name="developer" label="Developer Tools">
      <description>
         Features that add Android support to Eclipse for application developers.
      </description>
   </category-def>
</site>



4] Understanding what a feature is.
A plugin often refers to a feature, which may actually be a set of plugins. A feature provides certain functionality to end users and may technically consist of one or more plugins. Coming back to the site.xml, the interesting information is the url attribute of the feature tag. It points us to the feature jar in relation to the update site. This jar contains a feature.xml file carrying information about the feature, e.g. which plugins it consists of and where to find them.

5] Locating feature jars
By looking at the site.xml we can easily find the all the features, For example

   <feature url="features/com.android.ide.eclipse.adt_16.0.1.v201112150204-238534.jar"
   id="com.android.ide.eclipse.adt" version="16.0.1.v201112150204-238534">

Now, To download the particular feature we need to append the repository url with feature url.
So the modified url becomes

 https://dl-ssl.google.com/android/eclipse/features/com.android.ide.eclipse.adt_16.0.1.v201112150204-238534.jar

Go to this url and download the feature jar
Do the same to download all the features from the file.

Note: Create the directory 'features' and save all the downloaded features(jars) in it.

6] Locating plugin jars
Open each feature jar file in 7-zip. It contains a feature.xml file.
Open it and locate the plugin category. It is as shown bellow
      <plugin
         id="com.android.ide.eclipse.adt"
         download-size="0"
         install-size="0"
         version="16.0.1.v201112150204-238534"
         unpack="false"/>
Now we need to create the final plugin URL from above data.

 Building plugin URL.
  From above info. we can find
    a] Repository URL : https://dl-ssl.google.com/android/eclipse/

    b] Sub-directory : plugins (Standard for all plugins)

    c] plugin id : com.android.ide.eclipse.adt

    d] Separator : _ (underscore)[It is a standard separator for plugin id and version]

    e] plugin version : 16.0.1.v201112150204-238534

    f] Extension : .jar [standard extension]

  To create the final url append all the fields above in a] to f] order. We get

   https://dl-ssl.google.com/android/eclipse/plugins/com.android.ide.eclipse.adt_16.0.1.v201112150204-238534.jar

Download the plugin.
Similarly Download all plugin jars from all features.

Note : Create a 'plugins' folder and store all downloaded plugin jars in it.

7] Creating final zip module for offline installation.
Create a new zip file and plugin-name.zip and add following folders and file in it

a] Add the 'features' folder.

b] Add 'plugins' folder.

c] add 'site.xml'.

Done.
This plugin-name.zip module can be used to install plugin in eclipse.

8] Installing the Plugin in eclipse : Offline

Eclipse > Help > Install New Software > Click Add Button >

Name : Type ADT
Location : Click Archive

Go to the location where the plugin-name.zip is present and add it.
Follow the steps and complete installation in eclipse.
DONE.

*********

This trick can be applied to download any plugin from repository and installing it offline.

Wednesday, 30 November 2011

Fix Lagging of HD videos(720p,1080p) on your media player

When you are playing HD video file(mkv,mp4 etc) with the big resolution(720p,1080p etc) on your media player you may face some problems like :
  •  Lagging of Skipping of video
  •  Dropping of frames
  •  Slow speed video playback (looks like slow motion video).

These problems may cause due to :
Slow Computer, Low performance Graphics Processing Unit, or even slow Processor.


To Fix this problem for your media player follow the steps given bellow

Fix for VLC media player.
Step 1] Open VLC media player (version must be 1.1 or later)
Step 2] Go to Tools menu and click Preferences.
Step 3] Select the "Input & Codecs" tab.
step 4]  Enable "GPU acceleration (experimental)" checkbox.
step 5] Click on the Save button at the bottom.

Done. Now You can play HD videos in VLC media player without any lag.

Sunday, 20 November 2011

Download latest IDM add-on for Firefox from internetdownloadmanager.com

If the IDM(Internet Download Manager) add-on is not working with the latest version of Firefox then you can get the latest version of IDM add-on from the internetdownloadmanager.com. Follow the steps given bellow

1- Open Firefox
2- Go to http://www.internetdownloadmanager.com/idmmzcc/idmmzcc.xpi
3- Accept and install the add-on
4- Restart Firefox
5- Go to Tools > Add-ons and check that the add-on is installed successfully.
6- Done.
About Us | Site Map | Privacy Policy | Contact Us | Blog Design | 2007 Company Name