Make an image
[root]# mkisofs -J -r -T -o newcd.iso /home/myfiles
Mount the ISO image file
[root]# mount -t iso9660 -o loop newcd.iso /mnt/test-cd
Burn CD image
[root]# cdrecord -v speed=2 dev='/dev/scd0' newcd.iso
Burn DVD image
[root]# dvdrecord -v speed=1 -dao dev=0,1,0 newcd.iso
Mount the CD-ROM
[root]# mount -t iso9660 -o loop /dev/hdc /mnt/cdrom
Tuesday, February 22, 2011
Sunday, February 20, 2011
Using Text in formula by using the INDIRECT function
Using Text in formula by using the INDIRECT function in OpenOffice Calc
Additional Link
C7=1
D7="Sheet1"
E1=2
Reference Sheet Name="Sheet1"
Current Sheet Name="Summary"
Formula:
=VLOOKUP($C7; INDIRECT(CONCATENATE($D7;".$B$3:$I$21")); E$1; 0)
Additional Link
C7=1
D7="Sheet1"
E1=2
Reference Sheet Name="Sheet1"
Current Sheet Name="Summary"
Formula:
=VLOOKUP($C7; INDIRECT(CONCATENATE($D7;".$B$3:$I$21")); E$1; 0)
Tuesday, September 21, 2010
How to export Address Book from Blackberry to Samsung Vibrant
How to export Address Book from Blackberry to Yahoo Contacts
Using the Blackberry Desktop Manager, I connected my phone to the computer. Once the connection has been established, here's how to do it. I'm not sure if this is the quickest way, but it doesn't take that long and is very easy to do:
Open up a Yahoo account if you don't already have one (it is free). Open up desktop manager, connect to your Blackberry and double click on "Synchronize." Go to the "Configuration" tab, and click on "Configure synch." Click on "Address Book" and then the "Choose" button. Select "Yahoo" and "Export," then back to the main Syncrhonize window. Click the "Syncrhonize" tab, make sure "Syncrhonize Organizer Data" is on, then press "Synchronize now." Now go to address. yahoo. com. In the upper right corner, click "Import/Export." Under Export, click the button next to "vCard, Zip of .VCF files," and save the .zip file. Now save the file into your computer's hard disk. Create a folder in the SD card of the Samsung Vibrant and unzip all the vCard files contained in the zip file into the folder you have created. Now you are set to import the vCards into your Samsung Vibrant.
(URL: http://forums.crackberry.com/f52/how-export-address-book-blackberry-windows-contacts-vista-10566/)
Importing contacts to Vibrant
In Contacts, go to Settings>More>Import/Export
Export the contacts to SD.
Then go Import/Export
and Import them from SD to phone.
Wait for the phone to read the vCards from the SD card. Follow screen instructions.
Then, when you select a Contact, and choose edit, you will see 2 tabs at the top; Your Gmail syncs and Phone. Choose the Phone tab, and you'll see all of the contacts. Then when you choose to edit one, the option to choose a ringtone, group, etc. for each contact will be available to you.
Then, if you so choose, you can choose the View option under settings, and uncheck the gmail contacts, and leave only the Phone contacts viewable (unless you also have facebook, etc. contacts you wish to be viewable as well).
In any case, I think this should work well for you.
(URL: http://androidcommunity.com/forums/f76/importing-contacts-to-vibrant-38552/)
Using the Blackberry Desktop Manager, I connected my phone to the computer. Once the connection has been established, here's how to do it. I'm not sure if this is the quickest way, but it doesn't take that long and is very easy to do:
Open up a Yahoo account if you don't already have one (it is free). Open up desktop manager, connect to your Blackberry and double click on "Synchronize." Go to the "Configuration" tab, and click on "Configure synch." Click on "Address Book" and then the "Choose" button. Select "Yahoo" and "Export," then back to the main Syncrhonize window. Click the "Syncrhonize" tab, make sure "Syncrhonize Organizer Data" is on, then press "Synchronize now." Now go to address. yahoo. com. In the upper right corner, click "Import/Export." Under Export, click the button next to "vCard, Zip of .VCF files," and save the .zip file. Now save the file into your computer's hard disk. Create a folder in the SD card of the Samsung Vibrant and unzip all the vCard files contained in the zip file into the folder you have created. Now you are set to import the vCards into your Samsung Vibrant.
(URL: http://forums.crackberry.com/f52/how-export-address-book-blackberry-windows-contacts-vista-10566/)
Importing contacts to Vibrant
In Contacts, go to Settings>More>Import/Export
Export the contacts to SD.
Then go Import/Export
and Import them from SD to phone.
Wait for the phone to read the vCards from the SD card. Follow screen instructions.
Then, when you select a Contact, and choose edit, you will see 2 tabs at the top; Your Gmail syncs and Phone. Choose the Phone tab, and you'll see all of the contacts. Then when you choose to edit one, the option to choose a ringtone, group, etc. for each contact will be available to you.
Then, if you so choose, you can choose the View option under settings, and uncheck the gmail contacts, and leave only the Phone contacts viewable (unless you also have facebook, etc. contacts you wish to be viewable as well).
In any case, I think this should work well for you.
(URL: http://androidcommunity.com/forums/f76/importing-contacts-to-vibrant-38552/)
Monday, September 6, 2010
Error: Can't load netbeans when Java after jdk change
If you can not load Netbeans because it can not find Java, just edit this file and put the correct path of java
# ${HOME} will be replaced by JVM user.hit ome system property
netbeans_default_userdir="${HOME}/.netbeans/6.8"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-Dorg.glassfish.v3ee6.installRoot=\"C:\Program Files (x86)\sges-v3\" -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using --jdkhome:
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_21"
# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.
# ${HOME} will be replaced by JVM user.hit ome system property
netbeans_default_userdir="${HOME}/.netbeans/6.8"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-Dorg.glassfish.v3ee6.installRoot=\"C:\Program Files (x86)\sges-v3\" -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using --jdkhome
netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_21"
# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.
Wednesday, September 1, 2010
Apache HTTPD daemon script
#!/bin/bash
#
# /etc/rc.d/init.d/apached
# Startup script for the Apache web server
#
# chkconfig: - 85 15
# description: Start up the Apache web server.
# processname: apached
# pidfile: /var/run/apached.pid
# config:
#
# Source function library.
. /etc/init.d/functions
RETVAL=$?
APACHE_HOME="/usr/local/apache"
case "$1" in
start)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Starting Apache"
$APACHE_HOME/bin/apachectl start
fi
;;
stop)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Stopping Apache"
$APACHE_HOME/bin/apachectl stop
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
#
# /etc/rc.d/init.d/apached
# Startup script for the Apache web server
#
# chkconfig: - 85 15
# description: Start up the Apache web server.
# processname: apached
# pidfile: /var/run/apached.pid
# config:
#
# Source function library.
. /etc/init.d/functions
RETVAL=$?
APACHE_HOME="/usr/local/apache"
case "$1" in
start)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Starting Apache"
$APACHE_HOME/bin/apachectl start
fi
;;
stop)
if [ -f $APACHE_HOME/bin/apachectl ]; then
echo $"Stopping Apache"
$APACHE_HOME/bin/apachectl stop
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
Profiles for java, ant, tomcat, apache
1. For Java
#!/bin/bash
#
# /etc/profile.d/jdk.sh
#
PATH=/usr/local/java/bin:$PATH
JAVA_HOME=/usr/local/java
export JAVA_HOME PATH
2. For Ant
#!/bin/bash
#
# /etc/profile.d/ant.sh
#
PATH=/usr/local/ant/bin:$PATH
ANT_HOME=/usr/local/ant
export ANT_HOME PATH
3. For Apache Tomcat Servlet Container
#!/bin/bash
#
# /etc/profile.d/tomcat.sh
#
PATH=/usr/local/tomcat/bin:$PATH
TOMCAT_HOME=/usr/local/tomcat
CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME TOMCAT_HOME PATH
4. For Apache HTTP Server
#!/bin/bash
#
# /etc/profile.d/apache.sh
#
PATH=/usr/local/ant/bin:$PATH
APACHE_HOME=/usr/local/apache
export APACHE_HOME PATH
#!/bin/bash
#
# /etc/profile.d/jdk.sh
#
PATH=/usr/local/java/bin:$PATH
JAVA_HOME=/usr/local/java
export JAVA_HOME PATH
2. For Ant
#!/bin/bash
#
# /etc/profile.d/ant.sh
#
PATH=/usr/local/ant/bin:$PATH
ANT_HOME=/usr/local/ant
export ANT_HOME PATH
3. For Apache Tomcat Servlet Container
#!/bin/bash
#
# /etc/profile.d/tomcat.sh
#
PATH=/usr/local/tomcat/bin:$PATH
TOMCAT_HOME=/usr/local/tomcat
CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME TOMCAT_HOME PATH
4. For Apache HTTP Server
#!/bin/bash
#
# /etc/profile.d/apache.sh
#
PATH=/usr/local/ant/bin:$PATH
APACHE_HOME=/usr/local/apache
export APACHE_HOME PATH
Tomcat daemon script for chkconfig
#!/bin/sh
#
# Startup script for the Jakarta Tomcat Java Servlets and JSP server
#
# chkconfig: - 85 15
# description: Jakarta Tomcat Java Servlets and JSP server
# processname: tomcat
# pidfile: /var/run/tomcat.pid
# config:
#
# Source function library.
. /etc/init.d/functions
RETVAL=$?
CATALINA_HOME="/usr/local/tomcat"
case "$1" in
start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
then
echo $"Starting Tomcat"
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
then
echo $"Stopping Tomcat"
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
#
# Startup script for the Jakarta Tomcat Java Servlets and JSP server
#
# chkconfig: - 85 15
# description: Jakarta Tomcat Java Servlets and JSP server
# processname: tomcat
# pidfile: /var/run/tomcat.pid
# config:
#
# Source function library.
. /etc/init.d/functions
RETVAL=$?
CATALINA_HOME="/usr/local/tomcat"
case "$1" in
start)
if [ -f $CATALINA_HOME/bin/startup.sh ];
then
echo $"Starting Tomcat"
/bin/su tomcat $CATALINA_HOME/bin/startup.sh
fi
;;
stop)
if [ -f $CATALINA_HOME/bin/shutdown.sh ];
then
echo $"Stopping Tomcat"
/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
fi
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
Saturday, February 6, 2010
How to unlock Sample HR database in oracle
How to unlock Sample HR database in oracle
For working with tutorial of oracle Introduaction to oracle/sql you need to work on the tables which is locked in oracle. for Unlocking these tables you have to follow these steps
1. Login in sqlplus or sqlplus or isqlplus as a user “system” with respective password.
2. Execute the following command
ALTER USER HR IDENTIFIED BY password ACCOUNT UNLOCK;
here password is your passord which you want to use for your account remember this password for further use.
3. Login in with user HR with password specified above
Now you can use all tables specified in tutorial.
Please leave your comment If you encounter any problem…
For working with tutorial of oracle Introduaction to oracle/sql you need to work on the tables which is locked in oracle. for Unlocking these tables you have to follow these steps
1. Login in sqlplus or sqlplus or isqlplus as a user “system” with respective password.
2. Execute the following command
ALTER USER HR IDENTIFIED BY password ACCOUNT UNLOCK;
here password is your passord which you want to use for your account remember this password for further use.
3. Login in with user HR with password specified above
Now you can use all tables specified in tutorial.
Please leave your comment If you encounter any problem…
Tuesday, December 8, 2009
Fix / Restore Fedora 15 GRUB Boot Loader
Unfortunately, maintaining a multi-boot configuration like this can be a pain, especially if you later install an operating system which overwrites the GRUB boot loader you had in place (such as a version of Windows). If your boot loader is overwritten, you could be left with no choice but to boot the most recently installed OS.
In this tutorial, I will show you how to restore an overwritten copy of the GRUB boot loader by using a Linux live CD. In this example, my master GRUB installation is on a Fedora 15 installation, and I’m using a Fedora 15 Live CD to boot the system.
Start the Live CD up as normal. Don’t choose to install the OS if prompted, you want to come to a full live desktop to run the specific commands we need.
1. Identify your Partitions
Open a Terminal program and use the following command:
[alexm@localhost ~]$ su
[root@localhost /]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4b474b47
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 91394047 45593600 7 HPFS/NTFS/exFAT
/dev/sda3 91394048 402077695 155341824 83 Linux
/dev/sda4 402077696 976771071 287346688 f W95 Ext'd (LBA)
/dev/sda5 402079744 976771071 287345664 7 HPFS/NTFS/exFAT
[root@localhost /]#
If you can work out where your Linux is from this, note down the information under ‘Device’.
In this tutorial, Fedora 15 is installed in /dev/sda3
2. Run grub-install
[root@localhost ]# sudo -i
[root@localhost ~]# mount /dev/sda3 /mnt
[root@localhost ~]# grub-install --root-directory=/mnt/ /dev/sda
Installation finished. No error reported.
This is the contents of the device map /mnt//boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
# this device map was generated by anaconda
(hd0) /dev/sda
[root@localhost mnt]#
In this tutorial, I will show you how to restore an overwritten copy of the GRUB boot loader by using a Linux live CD. In this example, my master GRUB installation is on a Fedora 15 installation, and I’m using a Fedora 15 Live CD to boot the system.
Start the Live CD up as normal. Don’t choose to install the OS if prompted, you want to come to a full live desktop to run the specific commands we need.
1. Identify your Partitions
Open a Terminal program and use the following command:
[alexm@localhost ~]$ su
[root@localhost /]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4b474b47
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 91394047 45593600 7 HPFS/NTFS/exFAT
/dev/sda3 91394048 402077695 155341824 83 Linux
/dev/sda4 402077696 976771071 287346688 f W95 Ext'd (LBA)
/dev/sda5 402079744 976771071 287345664 7 HPFS/NTFS/exFAT
[root@localhost /]#
If you can work out where your Linux is from this, note down the information under ‘Device’.
In this tutorial, Fedora 15 is installed in /dev/sda3
2. Run grub-install
[root@localhost ]# sudo -i
[root@localhost ~]# mount /dev/sda3 /mnt
[root@localhost ~]# grub-install --root-directory=/mnt/ /dev/sda
Installation finished. No error reported.
This is the contents of the device map /mnt//boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
# this device map was generated by anaconda
(hd0) /dev/sda
[root@localhost mnt]#
Monday, July 6, 2009
Installed PC Linux 2009.2
Today, I deleted the whole Fedora partitions and install PC Linux 2009. Works fine and can install the USB wifi
How to check kernel if 32 or 64 bit
[alex@localhost ~]$ uname -m
i686
[alex@localhost ~]$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[alex@localhost ~]$
i686
[alex@localhost ~]$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[alex@localhost ~]$
Subscribe to:
Posts (Atom)