June 25, 2012

Create Hyperlink to the part of the image in HTML using AREA tag

Hi everyone,

Its been a long time that I have been posted a new one. This time I would like share with you the information to create or make some part of the image as hyperlink.

Source:
<img src="image.jpg" usemap="#areal" />
<map name="areal">
<area shape="rect" coords="0,0,50,50" href="http://www.pillisureshraju.info/" target="_blank"></area>
</map>

Important values to observe:
image.jpg -- Image name
areal -- map area name
rect -- Shape type
0,0,50,50 -- x1,y1,x2,y2 coordinates of the shape
href -- hyperlink reference

Now, the hyperlink is been created for your image with the specified coordinates.

Please send your comments and feedback to psrdotcom@gmail.com

June 07, 2012

Ubuntu Linux Free and Best Audio (MP3, Ogg, etc.) and Video (AVI, MP4, etc.) Editors, Cutter, Joiner

Hi folks,

I would like share some best audio and video editors in Ubuntu Linux. Install common-codecs to use these Audio/Video editors.

In Ubuntu Software Center, search for Ubuntu restricted extras and install.

Audio Editors:
  • Audacity
  • Command Tools for MP3 Cutter and Joiner: mp3split, mp3wrap
  • Jokosher
  • Grip
  • Hydrogen
  • Sound Converter (Extract Audio from a Video File)
  • Muse
  • RoseGarden
  • Ardour
  • SoundKonverter
  • StreamRipper
  • LLMS

Video Editors:
  • Openshot
  • AvideMux
  • Cinelerra
  • Kino
  • Jahshakha
  • Pitvi
  • Lives
  • Vivia
  • FFMpeg
  • Handbreak
  • VLC Media Player (Don't get surprise, see the 4th Reference link)

Most of the above mentioned softwares can be downloaded from the Ubuntu Software Center/Synaptic Package Manager.

Download the editor(s) and, be creative in your own way.

References:

http://ubuntup.blogspot.in/2010/09/best-audio-mp3-cutter-converter-editor.html
http://techcityinc.com/2009/04/14/10-best-audio-editors-for-linux/
http://techcityinc.com/2009/02/04/top-10-free-video-editors-for-ubuntu-linux/
http://ubuntup.blogspot.in/2010/10/best-video-editor-converter-splitter.html

June 02, 2012

Live CD Ubuntu Customization Kit (UCK) without Internet

Hi friends,

As many of you know that, UCK (Ubuntu Customization Kit) requires Internet when customizing the Live CD.

Why we need Internet while customization?

  • To get the updates from the repositories we need the internet.
  • To install any software using apt-get/synaptic package manager.
Do we need Internet all the time?

According to me, We may not need the Internet for small updates.
So, I have modified the customization scripts to work without Internet.


Pre-requisites:

Please download the following files.

sources.gz: 
According the ubuntu distro, we need to get the sources.gz from the link
http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/dists/$DISTRO_CODENAME/main/source/Sources.gz

gfxboot-theme-ubuntu_x.x.x:
http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/pool/main/g/gfxboot-theme-ubuntu/

Please place these two files in ~/Softwares/UCK/ directory

Note: ~ is home directory of the user.

Apply Patches

If you installed UCK, you will having the /usr/lib/uck/customization-profiles/localized_cd/ directory
In that directory, you will be having customize and customize_iso scripts.

Those two scripts will be copies to /home//tmp folder while running the UCK.

So, please apply the following patches in /usr/lib/uck/customization-profiles/localized_cd/ 

Now apply the patch as shown below

$ patch -u customize customize.patch
$ patch -u customize_iso customize_iso.patch

customize.patch


--- customize 2012-06-01 21:47:31.905741928 +0530
+++ customize_old 2012-06-01 21:46:03.509742149 +0530
@@ -121,8 +121,7 @@
arch=`if [ -d /lib64 ]; then echo x86_64; else echo i586; fi`
echo ">> Customizing: $rel, $kernel $arch"

-# Commented by PSR
-#prepare_install || failure "Preparing installation failed, error=$?"
+prepare_install || failure "Preparing installation failed, error=$?"

# List of packages to install to support the selected languages:
PACKAGES_TO_INSTALL=""
@@ -153,16 +152,16 @@
fi
done

-# Commented by PSR
- #install_packages $PACKAGES_TO_INSTALL || failure "Installing language packs failed, error=$?"
+ install_packages $PACKAGES_TO_INSTALL ||
+ failure "Installing language packs failed, error=$?"

# NOTE: we first install selected language packs, then remove others as
# installing a language pack might pull in packages that were not
# previously present
echo "Removing unnecessary language packages..."
REMOVED_PACKAGES=`dpkg-query --show | cut -f1 | grep -E '^(language-pack|language-support|firefox-locale)' | grep -Ev "[-]($LANGPACKS_CONCATENATED)\>"`
-# Commented by PSR
-# remove_packages $REMOVED_PACKAGES || failure "Removing packages failed, error=$?"
+ remove_packages $REMOVED_PACKAGES ||
+ failure "Removing packages failed, error=$?"
fi

if [ "$RUN_MANUAL_CUSTOMIZATIONS" = "yes" ] ; then

customize_iso.patch


--- customize_iso 2012-06-01 21:47:38.369741917 +0530
+++customize_iso_old 2012-06-01 21:46:00.441742156 +0530
@@ -50,9 +50,6 @@
REMASTER_DIR="$REMASTER_HOME/remaster-root"
BOOT_LANG=`cat "$SCRIPT_DIR/livecd_locale"`

-# Added by PSR
-SOURCES_DIR="/home/user/Softwares/UCK"
-
function failure()
{
echo "$@"
@@ -83,21 +80,12 @@
DISTRO_CODENAME=`cd "$ISO_REMASTER_DIR"/dists && find . -maxdepth 1 -type d | grep '/' | cut -d '/' -f2` || failure "Unable to identify Ubuntu distro codename"
APT_SOURCES_TMP_DIR=`mktemp -d`
-# Commented by PSR
-# wget -c http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/dists/$DISTRO_CODENAME/main/source/Sources.gz -O "$APT_SOURCES_TMP_DIR"/Sources.gz
-
-# Added by PSR
- cp "$SOURCES_DIR"/"$DISTRO_CODENAME"_Sources.gz "$APT_SOURCES_TMP_DIR"/Sources.gz
-
-# Commented by PSR
-# GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE=http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/pool/main/g/gfxboot-theme-ubuntu/$(zgrep gz "$APT_SOURCES_TMP_DIR"/Sources.gz | grep gfxboot-theme-ubuntu | sed -n 1p | awk '{ print $3 }')
+ wget -c http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/dists/$DISTRO_CODENAME/main/source/Sources.gz -O "$APT_SOURCES_TMP_DIR"/Sources.gz
+ GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE=http://archive.ubuntu.com/ubuntu/ubuntu/ubuntu/pool/main/g/gfxboot-theme-ubuntu/$(zgrep gz "$APT_SOURCES_TMP_DIR"/Sources.gz | grep gfxboot-theme-ubuntu | sed -n 1p | awk '{ print $3 }')

-# Commented by PSR
-# wget $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE || -# failure "Unable to download gfxboot-theme-ubuntu source package from $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE"
+ wget $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE || + failure "Unable to download gfxboot-theme-ubuntu source package from $GFXBOOT_THEME_UBUNTU_SOURCE_PACKAGE"

-# Added by PSR
- cp "$SOURCES_DIR"/gfxboot-theme-ubuntu_0.14.2.tar.gz .
tar xfz *.tar.gz || failure "Unable to extract gfxboot-theme-ubuntu source package"
fi

Please apply the patch files and run the UCK without Internet.

Enjoy a quick Ubuntu Customization.

Please send you comments and feedback

June 01, 2012

Create and Apply Patch file in Linux using Diff command

Hi friends,

When I was updating one file, I have taken backup as filename_old.

After updating (adding and removing line) the current file, I thought let me see what are all the updates I have done to the current file. Then I thought, there is a concept call patch file.

Then I decided to create the patch file.

I have searched and surprised that "diff" command is able to do that.

Procedure:

Files: 1.txt (Original File), 2.txt (Modified File), diff.patch (Patch File)


1.txt 2.txt
a a
b b
c c
d e
e f
f g
1


Create Patch


Syntax: diff -Naur Original_File Modified_File > Patch_File

In terminal window, execute the following command

$ diff -Naur 1.txt 2.txt >> diff.patch


Output:

diff.patch


--- 1.txt 2012-06-01 23:25:02.713727335 +0530
+++ 2.txt 2012-06-01 23:25:09.833727317 +0530
@@ -1,7 +1,6 @@
 a
 b
 c
-d
 e
 f
-1
+g




Apply Patch

Syntax: patch -u Original_File Patch_File


$ patch -u 1.txt diff.patch


Output:



1.txt
a
b
c
e
f
g


Now, we have successfully applied the patch to the old (Original) file.

Please send your feedback to psrdotcom@gmail.com or write comments

May 31, 2012

Forgot your Windows password; Login without password using Kon-Boot Utility

Hi friends,

I am in a confusion whether to put this information in my blog or not. Because it can be used for both good and bad cause.

Promise me that, you will use it for good cause.

Backup files:

Whenever you forgot the admin password in Windows [XP, Vista, 7] any version, you can take backup of your files by using any of the Live CD/DVDs [Ex: Ubuntu Live CD, Which I always prefer to use].

Bypass Authentication:

Without using the Live CD/DVD and if you wants to login to your computer there is a possibility but for limited Operating Systems by using Kon-Boot.

As per Kon-boot free version, it will support only 32-bit edition operating systems (Windows XP,  Vista, Server 2003/08).

The free version doesn't support 64-bit versions and Windows 7 (32bit/64bit).

Procedure:
  1. Download the free version of Kon-Boot utility from here http://www.piotrbania.com/all/kon-boot/index2.html#free
  2. Direct Link: http://www.mediafire.com/?e51u3rce5a5c0mn
  3. Extract the zip file with the password kon-boot
  4. Extract the CD-konboot-v1.1-2in1 zip file
  5. Open the CD-konboot-v1.1-2in1 folder
  6. You will find the CD-konboot-v1.1-2in1.iso
  7. Make your Pendrive as bootable with this iso (or) burn the iso to a CD
  8. To make your pendrive as a bootable disk, please follow any one of the methods
  9. You can use the utilities unetbootin or any bootable utility for pendrive
  10. Follow this link for more details http://www.irongeek.com/i.php?page=security/kon-boot-from-usb
  11. Boot to your pendrive by adjusting the BIOS boot order settings or One time boot menu at the boot time
  12. It will show you the Kon-Boot screen
  13. Press any key to get out of the starting screen of Kon-Boot
  14. Now it will show you the Kryptos Logic Screen
  15. It will automatically bypasses the existing operating system
  16. In my system, it automatically booted to the harddisk partition
  17. If not, you please select the desired partition to boot for the next time
  18. Thats it, now you without entering the password you can login into your system
Note: Kon-Boot will not erases the password of your operating system. It just bypasses the OS authentication.

For further details, please comment here or mail to psrdotcom@gmail.com

May 26, 2012

Andhra Pradesh Public Service Commision (APPSC) Government Jobs Apllication Challan and Submit Application Online for various posts using APOnline Services

Dear friends,

Very useful information for those who wants to apply various posts in the Andhra Pradesh Public Service Commision (APPSC).

Procedure:
  1. Visit the APPSC website http://apspsc.gov.in/
  2. Browse the "Online Application Submission" section
  3. For any post, you need to fill the challan by clicking "Get Challan"
  4. Upon successfully filling the challan form, you will get the challan in PDF format.
  5. According to instructions, either you need to visit near SBI branch or APOnline center.
  6. But, you can pay the challan online using APOnline services.
  7. Just click on the link http://aponline.gov.in/apportal/index.asp
  8. Click on the "Citizen Login" on left side of the page
  9. Register/Sign in with your details.
  10. Click on "Adhoc Services"
  11. In the section of "Challan payments", choose "APPSC Challan Payment"
  12. Enter your challan number
  13. Your details gets appeared; Your name and other details.
  14. Click on "Submit"
  15. Now it will ask you to pay using any one of the bankers (SBI, HDFC, AXIS, IndianBank)
  16. After the payment, you will get the transaction acknowledgement along with your "Journal" number.
  17. Make a note of "Journal Number"
  18. The next day after 2:00 PM, visit APPSC website http://apspsc.gov.in/
  19. Click on the "Submit Application"
  20. Before you submitting the application, you need to have your scanned photograph and scanned signature.
  21. The dimensions of the photograph should be 3.5cm(Width) x 4.5cm(Height) [Around 276px * 354px]
  22. The dimensions of the signature should be 3.5cm(Width) x 1.5cm(Height) [Around 276px * 118px]
  23. Using any of the photo editors you can combine both the photograph and signature into one .jpeg image with the dimensions 3.5cm(Width) x 6cm(Height) [276cm * 472px]
  24. The image size must be less than 50KB
  25. Upload the image by clicking on browse option
  26. Click on "Preview" button
  27. Verify the photograph and signature in the page
  28. Click on "Submit" button
  29. You can download the submitted application form

All the very best for you exam.

For any queries, mail to psrdotcom@gmail.com

May 19, 2012

Java Virtual Machine (JVM) vs Kilobyte Virtual Machine (KVM) vs Dalvik Virtual Machine (DVM)

Hi friends,

Do you that the java program, when running on different architectures, it runs on different virtual machine (VM)?

Why it need different VM when running the similar syntactical code?

Let me take the opportunity to share and explain what I have gone through

I have been read about 3 main VMs.

Java Virtual Machine
Kilobyte Virtual Machine
Dalvik Virtual Machine

Java Virtual Machine:
JVM executes Java .class bytecode to run the Java applications. JVM with set of libraries form a JRE, which is installed on computer to execute any Java program.


Kilobyte Virtual Machine:
Java API contains large set of standard libraries. To use the same no.of libraries in Mobile is not possible due to memory constraint in the mobile. So, they have come up with an idea to take a subset of libraries and form a profile in Java 2 Platform Micro Edition (J2ME). So JVM is replaced with less memory running KVM. KVM is designed to run in kilobytes memory for small devices.

Dalvik Virtual Machine:
When it comes to Android Operating System, they don't want to either JVM or KVM. Because they want to run a virtual machine for every application. This concept can't be implemented with existing virtual machines. Due to this reason, this virtual machine is integral part of the Android Operating System. In Android, the java .class bytecode converted to dalvik compatible .dex which will be executed with Dalvik Virtual Machine (DVM). The set of .dex files forms an Android Package (.apk) file, which gets installed on the devices to install and run the applications.

Similarities:
All the virtual machines primary source is developed in java.

Dissimilarities:
Set of libraries have changed.
Memory allocation is different.


References:
http://docs.oracle.com/javase/specs/jvms/se7/html/index.html
http://java.sun.com/products/cldc/wp/
http://catazinelive.catreloaded.net/2012/02/08/dvm-dalvik-virtual-machine/

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com