Friday, November 5, 2021

Installing Oracle 21c Express Edition on CentOS 7

Features of Oracle 21c:-
  1. Multi-tenant: Get isolation, agility, and economies of scale by managing multiple Pluggable Databases inside your Oracle Multi-tenant Container Database
  2. In-Memory: Support real-time analytics, business intelligence, and reports by keeping your important data in the Oracle Database In-Memory column store
  3. Partitioning: Enhance performance, availability, and manageability of your database with data partitioning that meets diverse business requirements
  4. Advanced Analytics: Get valuable insights and deliver predictions from your data using Data Mining SQL, R programming, and the Oracle Data Miner UI
  5. Advanced Security: Protect your sensitive data at the source and build end-to-end encrypted apps with layers of security including Oracle Transparent Data Encryption and Data Redaction

Limitations of Oracle 21c XE:-
  1. The Installer released by Oracle is only meant for 64-bit (x86_64) systems.
  2. It will consume, at most, processing resources equivalent to two CPUs.
  3. Only one installation of Oracle Database XE can be performed on a single computer.
  4. The maximum amount of user data in an Oracle Database XE database cannot exceed 12 GB.
  5. The maximum amount of RAM that Oracle XE uses cannot exceed 2 GB, even if more is available.

Now the steps for Installation for Oracle 21c XE:

1) Download the installer file named as "Oracle Database 21c Express Edition for Linux x64 (OL7)" (Size : approximate 2.2 GB) from the Oracle Website link given below:
https://www.oracle.com/database/technologies/xe-downloads.html

2) Switch to root user

sudo -s

3) Install the Database Preinstallation RPM . The Database Preinstallation RPM automatically creates Oracle installation owner and groups and sets up other kernel configuration settings as required for Oracle installations.

curl -o oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
yum -y localinstall oracle-database-preinstall-21c-1.0-1.el7.x86_64.rpm
4) Install the Database software
yum -y localinstall oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm

5) Check your machine name
hostname
6) Edit the /etc/hosts file to include entry for your machine using the output of previous command

Sample File (before editing) :-
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1            localhost localhost.localdomain localhost6 localhost6.localdomain6

Sample File (after editing):- here "mymachine" is your machine name
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 mymachine
::1            localhost localhost.localdomain localhost6 localhost6.localdomain6
7) Configure the Oracle 21c XE installation
/etc/init.d/oracle-xe-21c configure

At the prompt, specify a single password for the SYS, SYSTEM, and PDBADMIN administrative user accounts. The same password will be used for these accounts.  Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].

After the configuration completes, the database and listener are started. 

8) add your user to oinstall group (here username is your user ID)

usermod -aG oinstall username

9) Exit from root shell 
exit

and then run below commands one by one to set environment variables for your username

echo 'export ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE' >> .bashrc

echo 'export PATH=$PATH:$ORACLE_HOME/bin' >> .bashrc

echo 'export ORACLE_SID=XE' >> .bashrc

echo 'export ORACLE_BASE=/opt/oracle' >> .bashrc

echo 'export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH' >> .bashrc

10) Logout and login again to make environment variables active. That's all and you are ready to begin your journey with Oracle 21c XE database.

Wednesday, October 20, 2021

Installing a 1 GB swap in Ubuntu without partitioning

Some software that you install e.g. oracle database XE requires you to have greater than one GB swap space. So, if you have not created a swap partition of greater than 1GB just because you have lot of RAM, you may land in a fix so as what do now . Although  , in ubuntu , you can easily use GParted to create a new swap space but some times you don't have enough free space or don't want to take risk of using GParted . Also , GParted is not installed by default ( u can get it from Ubuntu Live Disk ). So, we need some process by which we can have some extra swap space without using GParted.


To install a 1 GB swapfile named swapfile in /  ( root directory) , use the following steps in the terminal :

1) sudo -s 
   ( to gain root privilage, its optional , but if you don't do this then you have to append sudo to each of the following commands )

2) dd if=/dev/zero of=/swapfile bs=1024 count=1048576  
   (this may take a while)  ( 1048576 == 1 x 1024 x 1024 , 1GB == 1048576 KB)

3) mkswap /swapfile
    ( ignore any error )

4) swapon /swapfile
     ( to turn on the swap )
 
5) cp /etc/fstab /etc/fstab.orig
    ( back-up the fstab before editing )

6) echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
    ( adds the entry of  new swap to fstab for mounting the file at boot time )

7) To  Verify:

   swapon -a ; swapon -s

If at anytime u want to delete the swap then :

   sudo swapoff -a
   sudo rm /swapfile
   sudo cp /etc/fstab /etc/fstab.changed ; sudo cp /etc/fstab.orig /etc/fstab
   sudo swapon -a ; swapon -s

Saturday, July 10, 2021

Windows 11 - How to adjust Taskbar position

Hi Friends,

In the new edition of Microsoft Windows i.e. Windows 11, the taskbar along with start menu and search button has a new position i.e. in middle of the screen.

Taskbar in center

As per your preference, this might not be most desirable setting. However, Windows 11 currently provides you with choice to change it to left align or keeping it in centre.  

To do so, you can right click on the taskbar and select Taskbar settings.

Image showing the option to open Taskbar settings after right click on the taskbar

Clicking on the Taskbar settings opens corresponding Personalization settings in the settings app.

Image showing the Taskbar settings

Now scroll all the way down and expand the "Taskbar behaviours" setting by clicking on it. This has an option named as "Taskbar alignment" which comes with a drop-down menu.

Image showing "Taskbar alignment" options
Using this drop-down menu you can toggle between Left and Centre position of the Taskbar .
Image showing "Taskbar alignment" options

Once you select the "Left" position, the Taskbar will move to left position.

Image showing "Taskbar alignment" options with left selected

In case you want to revert back the Taskbar position back to centre, you can simply follow-up the same steps shown above to toggle to "Centre" position.

Please note that currently although it is not possible to move the taskbar to top or to left/right of screen, the feature is in high demand among the people who are testing the developer build of the Insider Preview of Windows 11. So, in future, we might be able to switch it to more locations.


Friday, July 9, 2021

Enabling TPM for Windows 11 on Dell laptop

Hello Friends,

As you all might be aware that Microsoft has announced its latest version of Windows i.e. Windows 11 during their recent event of 24th June,2021. 

This new version of Windows comes with lot of changes including a new look, a redesigned start menu, an easy to use settings app and new icons as well. 
Most importantly, Microsoft has build this new version with a focus on securing the Windows Platform. They have done this by introducing a mandatory requirement of having TPM 2.0 chip. Although, this could come as a setback for many of you, this has to be the way forward keeping in mind the recent exponential increase in cyber attacks. Specially, with a lot of people opting to "work from home" due to the covid-19 pandemic, this move of Microsoft is definitely going a lot of way towards building a secure environment.

So, how you can check if you are compatible with this new requirement from Microsoft for Windows 11 ? The easiest way to check it will be to open the run command by pressing the Windows button along with R ( Win + r ) and running the command tpm.msc. Please do note that executing this command would require elevated administrator rights.
Once, you run the command it will open the TPM module section of Windows management console and their you can easily see if the TPM chip is enabled or not along with the TPM version. 
In case, it shows a TPM module not detected screen, then also all hope is not lost as the TPM module could be set disabled via the BIOS or UEFI settings. To check this, simply reboot your laptop and press F2 function key to.enter the UEFI settings. From there look for either TPM or PTT in security settings, PTT is the intel format for the TPM. As per Dell knowledge base article , "Some Dell systems do not ship with a TPM(Trusted Platform Module) module, and instead, use PTT (Platform Trust Technology). PTT is a lower-cost solution that supports the same functions of the TPM. From an OS perspective, there is very little difference between how TPM and PTT interact with bit locker."
Under the PTT security settings,you can check if it is enabled or not. In case it is enabled, you will see the check box✅ against the PTT on.
If it is not selected then please do so to enable the TPM/PTT module .

Once, you have done this,once you login back to Windows 10, you can check the version of the TPM chip by re-running the tpm.msc command.

Once this is done, you have moved ahead one step towards installing/upgrading the Windows 11 on your machine.
 
Further reading ( External website Links ) :

Saturday, June 12, 2021

How to Recover admin password of Splunk

Case 1 (If you are on Splunk 7.1 or prior) :-

  1. Rename the file passwd in directory $SPLUNK_HOME/etc to passwd.bkp
  2. Restart the splunk service
  3. Login using username "admin" and password "changeme"

 Case 2 (If you are on Splunk 7.1+) :-

  1. Rename the file passwd in directory $SPLUNK_HOME/etc to passwd.bkp
  2. Create a file $SPLUNK_HOME/etc/system/local/user-seed.conf.
  3. Sample content :
    [user_info]
    USERNAME = admin
    PASSWORD =P@ssw0rd
      

  4. Restart the splunk service. This will generate a new passwd file.
  5. Now login using username "admin" and password "P@ssw0rd"
Note:- $SPLUNK_HOME is usually you splunk installation directory . For windows, it could be "C:\Program File\Splunk" and for linux , it could be in "/opt/splunk" .
 
Reference :- https://community.splunk.com/t5/Security/Splunk-Admin-Password/m-p/326020 

Friday, September 8, 2017

A quick guide for Installing Arch Linux in virtualbox

Hello friends,

There are several guides for installing Arch linux (a very popular linux distribution) including Arch's own Guide.

So, why write another one ??

Reason is simple... none of them worked 100% for me. So, I thought why not share with you a process or method that worked for me.

Majority of what I have written below is taken from this blog . However, even this one was not full-proof and I have to install-remove-reinstall several time.

I just hope that my method will work 100% for you as well.

So, let's begin ..

1) Download the image file from Arch Linux website . You can use this link.

2) Create a virtual machine of your choice of configuration. Please remember to select the Arch Linux (64-bit) as the Operating system choice.

3) Attach the image file to the virtual-machine that you just created.

4) Start the machine and choose to boot the x86_64 version. This will take you to a shell console prompt instead of the usual graphical interface everyone is so familiar using with other linux distribution. But, my friends , this is "Arch Linux" . So, it does everything in "arch" way.

5) Start the Arch partition editor to create a file-system to install our OS.

           gdisk /dev/sda

6) Type ‘p’ at the prompt and hit ‘Return’ to see an initial summary of your system vitals. To create the partition, do the following

a. Type ‘n’ at the prompt and hit ‘Return’ to tell gdisk you want to create a new partition.
b. Then just go through and hit ‘Return’ repeatedly to accept the default partition number, first sector, last sector, partition size, and hex code. This will create a final partition with a Linux filetype that fills the remainder of our virtual hard drive.
Now type ‘p’ and hit ‘Return’ to see the finished partition scheme showing a single partition as you have entered. 
Please Note that :- here we are skipping several things to make things simpler. e.g. we have skipped swap for two reasons , one being arch is low on resource requirement and two now a days RAM is available in plenty to all users. Another thing that we skipped here is creating seperate boot / root / home partition because of simple reason that this is installation on a virtualbox. This is not going to be your primary OS. Anything goes wrong, just wipe clean and start-over. It is the most beneficial part of using a virtualbox .

7) Now that we’ve drafted our partition, type ‘w’ at the gdisk prompt and hit ‘Return’ to write the partition scheme to the disk. When gdisk asks whether you’re sure you want to do this, type ‘Y’ and hit ‘Return’ to say yes. Gdisk will implement your partition table and then quit, leaving you back at the shell console prompt.

8) Next, back at the command line, we’re going to format our new disk partition so that we can begin using them. This is not unlike formatting any other disk, except perhaps that you may be used to doing this with a mouse and a desktop GUI. We’ll be doing the same thing from the command line.

So, run the following commands :-

a. Create a file-system.

         mkfs -t ext4 /dev/sda1

b. Convert the filesystem to 32-bit .

         resize2fs -s /dev/sda1

This may sounds odd to you as we are installing here a 64-bit OS but syslinux website states this :-
As of Syslinux 6.03, "pure 64-bits", compression and/or encryption are not supported.
Quoting part of the release notes of version 1.43 of e2fsprogs (May 17, 2016):
        Mke2fs will now create file systems with the metadata_csum and 64bit features enabled by default.
Users should rather (manually) disable the 64bit feature in the mke2fs command when creating / formatting a boot volume with ext2/3/4; otherwise, the bootloader (as of version 6.03) will fail.
So, we have to apply the work-around. ( reference link ). This helps us to avoid "Syslinux Failed to load ldlinux.c32" error in post-installation boot.

9) Next we will mount our newly created file-system

               mount /dev/sda1 /mnt

10) Before we proceed further, we need to check our internet connection as the Arch linux installer need an active internet connection to install it properly.

Now, you all might be thinking

"oh God ! I just downloaded 500 MB odd stuff and that too for a shell prompt based installer and it again need internet connection !!! Why ?  Why ? Why ?".

So, let me be frank with you that I simply have no idea for why :D . But, it simply doesn't work without internet connection. You will be left with a totally unusable environment.

So, ping google's IP .

             ping 8.8.8.8

If you receive a response then very good . Else please check if the network icon iin virtualbox indicator is greyed or blue. Once you make it blue i.e. connected the network adopter , run the below command twice (it doesn't work for me at first go..running twice will do no harm anyways) then recheck the ping response.

            dhcpcd

11) Now we can start installing Arch Linux.

To install the ‘base’ and ‘base-devel’ packages to the root partition, run the following command:
    pacstrap /mnt base base-devel
Since we’re currently installing the whole operating system, this command may take a few minutes to download (approx. 300 MB) and execute. You can stick around and watch the progress bars if this sort of thing fascinates you, or you can go get a cup of coffee and come back when it’s finished.

12) Next we have to do some miscellaneous setup before rebooting. To generate your system’s fstab file, run the following command:
   genfstab -p /mnt >> /mnt/etc/fstab
Next, install syslinux :

            arch-chroot /mnt /bin/bash
            
            pacman -S syslinux

            exit 

            syslinux-install_update -i -a -m -c /mnt/

Next, edit the syslinux configuration file located at /boot/syslinux/syslinux.cfg using below two commands.

a.  cp -p /mnt/boot/syslinux/syslinux.cfg /mnt/boot/syslinux/syslinux.cfg.bak
b.  sed 's/sda3/sda1/g'  /mnt/boot/syslinux/syslinux.cfg.bak > /mnt/boot/syslinux/syslinux.cfg

This step is required as the automated installation script that we used above sets the configuration to sda3 whereas in our installation we have just one partition and that is sda1.

13) a . Next, chroot to the installation to setup it further.

              arch-chroot /mnt /bin/bash

b. Setup the locale setting:

          echo LANG="en_US.UTF-8" > /etc/locale.conf

c. Open the file /etc/locale.gen and uncomment these two lines :-

          #en_US.UTF-8 UTF-8
          #en_US ISO-8859-1

d. Implement the locale change :

          locale-gen

e. Set the time-zone (default setting is at UTC) :

         rm /etc/localtime

         ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

f. Set the hostname :

         echo "Arch Linux" >  /etc/hostname

g. Create the initial RAM disk :

          mkinitcpio -p linux

h. Set the root password to avoid system unauthorized access :

          passwd

i. Create a user for your use (here foo is the user)

           useradd --home-dir /home/foo --create-home foo

j. set a password for new user

         passwd foo


k. install sudo package. (test your internet connection by ping to 8.8.8.8, if the command doesn't work. Also run dhcpcd command to establish internet connection as in step 10 stated above )

         pacman -S sudo

l. edit the file /etc/sudoers to add the new user. Add the "foo ALL=(ALL) ALL" below the line "root ALL=(ALL) ALL" in the file.

m. make the dhcp service a default at startup :

         systemctl enable dhcpcd@enp0s3.service


n. install the virtualbox related packages

           pacman -S virtualbox-guest-utils virtualbox-guest-modules-arch

o. instruct the system to load virtualbox modules at startup

           echo -e "vboxguest\nvboxsf\nvboxvideo" > /etc/modules-load.d/virtualbox.conf

p. Enable the virtualbox service

          systemctl enable vboxservice.service

q. install the xserver packages for basic GUI setup

          pacman -S xorg-server xorg-xinit xorg-twm xorg-xclock xterm

r. Next install GUI environment of your choice ( I will use mate as example )

          pacman -S mate mate-extra

s. enable the display manager

          systemctl enable gdm

That's it for installing our Arch linux environment. We can quit it by issuing exit command.

14) Next we have to unmount our partition

                        cd / && umount /mnt

Once this has been done, we’ve only one last command to run before rebooting into our new system. Before rebooting, run this command from the installer disk’s command prompt, which will set the our partition’s BIOS flag to “bootable”—basically, tell the computer’s lizard brain which partition to boot—and allow your new system to boot on restart:

                       sgdisk /dev/sda --attributes=1:set:2

That's it !! Now reboot by entering following command

                       reboot

Now, remove the iso disk from the virtual drive and power-it off. Next time when you start your virtual machine, you will be presented with the "Arch Linux" boot menu which you can use to boot into the OS.

Any issue !!! Simply, post in the comment and I will look it up for you !!

Enjoy !!!


Tuesday, September 25, 2012

Finding software add-ons using terminal in ubuntu

          You can install any program/software/package via Terminal with the following command "sudo apt-get install <program/software/package name>". It will always work. But,if you install it via Ubuntu Software Center, it also suggest for a few add-ons which are many times useful.

            Now, the question is : When we try to install a software via Terminal and this software has add-ons, how do we know that? And how do we install the add-ons via Terminal?

         One of the way is that we have to know the names of the add-ons first, and then install them one by one, once the main software has already been installed. But how do we get to know those names via Terminal? Using the Software Center is cool because it shows the add-ons, a brief description for each one and their names in brackets, right? How about doing the same via Terminal?

           These add-ons are suggested packages which are meant to enhance your experience with the program/software/package . But those are not essentials for the program/software/package to work properly.
           In terminal, you can know the add-on names (at least some of those) by using apt-cache depends <program/software/package name> command. The add-on names will be shown under "Suggests:" section. For example:

apt-cache depends k3b | grep Suggests

k3b

  Suggests: k3b-extrathemes

  Suggests: normalize-audio

  Suggests: sox

  Suggests: movixmaker-2

  Suggests: libk3b6-extracodecs

  Suggests: vcdimager
 
           Please note that, suggested packages are not essentials. Also note, apt-get will install packages which are essential to run the program/software/package (called dependency) and those packages which are recommended.

Therfore,
  • A depends packages in one, which is required to run the software.
  • A recommended package in one, which is required for the software to be functional.
  • A suggested package in one, which can enhance the usability of the software.
        Please note that , Ubuntu install first two category of the software by default from both Software Center and from terminal. So, you are not loosing anything essential. But still you can install them. Also note, Software Center does not install them automatically.

            If you want to install suggested packages from terminal, you can use this command 

sudo apt-get --install-suggests install k3b 

      This command will install all the suggested packages as well as dependency and recommended packages.

           If you want to configure apt-get permanently to automatically install suggested packages also, You can do this:
  • Create a file in /etc/apt/apt.conf.d with name 99mysettings
  • Open the file in gedit 
               gksu gedit /etc/apt/apt.conf.d/99mysettings
  • Then add the configuration option in that file
              APT::Install-Suggests "true";
  • Then save the file and exit gedit.
         From now, the suggested packages will also get installed automatically by apt-get. Please note that, apt-get will only install those packages if it finds them in any repositories, Otherwise, it simply ignores them and proceed with installation.

Technical difference between daemon, service and process

Technical difference between daemon, service and process

Daemons :-  They are the processes which run in the background and are not interactive. They have no controlling terminal. 
                 They perform certain actions at predefined times or in response to certain events. In *nix, the names of daemons end in d.
 
Services - In Windows, daemons are called services.
                   If you're wondering why *nix has a command named service, it is just used to run init scripts (shorthand for initialization scriptrunlevel).

Process - Process is a running program. At a particular instant of time, it can be either running, sleeping, or zombie (completed process, but waiting for it's parent process to pick up the return value).

 

Friday, May 11, 2012

Basic Unix Commands

1) Command : man
Use : This command is used for getting help about UNIX commands.
Syntax : man <command name>

2) Command : grep
Use : This command is used to search for a particular expression in the given input.
Syntax : grep [OPTION]... PATTERN [FILE]...
e.g. : grep <pattern> <file> ---> It can be used to search from lines matching pattern from file.
grep -v <pattern> <file> --> It can be used to search for lines not matching pattern from file.

3) Command : ps
Use : This command is used to see the processes running on the system.
Syntax : ps [options]
e.g. : ps -ef ---> It can used to see the all processes from all users.
ps -ef | grep <process_name> | grep -v grep ---> It can be used to check whether a particular process is running or not.
ps -fu <user_name> ---> It can be used to see all processes started by a particular user.

4) Command : uptime
Use :This command is used check the server/system run duration and number of users currently logged on.
Syntax : uptime
e.g. : user@machine :~$ uptime
17:16:31 up 7:34, 1 user, load average: 0.83, 0.87, 1.03

5) Command : whatis
Use : This command displays manual page descriptions.
Syntax : whatis <command_name>
e.g. : user@machine :~$ whatis firefox
firefox (1) - a free and open source web browser from Mozilla

6) Command : kill
Use : This command send a signal ( default SIGTERM ) to a process.
Syntax : kill <process_id>
e.g. : kill 123 543 2341 3453 ---> Send the default signal, SIGTERM, to all those processes.

7) Command : ls
Use : This command is used to list directory contents.
Syntax : ls [OPTION]... [FILE]...
e.g. : ls -l ---> It shows a log list of all files in the current directory.

8) Command : rm
Use : This command is used to remove files or directories.
Syntax : rm [OPTION]... [FILE]...
e.g. : rm <file_name> ---> It removes the <file_name> .
rm -r <directory_name> --> It removes <directory_name> and all the files/directory inside it.

9) Command : xargs
Use : This command build and execute command lines from standard input.
Syntax : <some_command> | xargs <another_command >
e.g. : ls <file_name_pattern> | xargs rm ---> It is used to delete all files as shown by  output of ls <file_name_pattern> .

Monday, April 26, 2010

Fun Act 1 Rupee= 45 $ ???

Here is an old imagination.... but renewed now..
      What will happens if ONE INDIAN RUPEE = FORTY-FIVE AMERICAN DOLLARS !!!
      There's tremendous improvement in the economy of India. India's exports increase, imports decrease.
      India becomes a super power as Economy is Power.
      That is this.
      Yes. From today on,
      "ONE INDIAN RUPEE = FORTY-FIVE AMERICAN DOLLARS"
      Imagine... from then, this may happen...

      SCENE 1
      Venue : Microsoft Corporation, New York, US
      Some s/w engineers are seeing some photographs.
      s/w engg 1 : What's that?
      s/w engg 2 : Bob's photographs from India.
      s/w engg 1 : Wow. Let me see. Which is this place?
      s/w engg 3 : (Sees the photo) This is Ramanthapur, Hyderabad. 
      s/w engg 1 : Fundoo yaar! And what is this? He's got an TVS 50 also.
      s/w engg 2 : Let me see (sees). Sexy yaar. This guy enjoys life man...
      s/w engg 3 : You know how much a TVS 50 costs? Nearly 200K. Say it in
      dollars...
      s/w engg 2: Oops. We can't dream of such a thing here.
      s/w engg 1 : Let's go to India & try for a job.
      [Everybody excited.]

      SCENE 2
      Venue: Sun Microsystems, SanFrancisco, California, US
      s/w engg 1: I'm with you man. My Visa is expected
      anytime. Soon I will fly to India
      s/w engg 2 : Ohhh.... When is the party?
      s/w engg 1: When I get it on hand.
      s/w engg 2: Where will you be working?
      s/w engg 1 : I'll be working in Madhapur.
      s/w engg 2 : Oh! Madhapur. Great yaar. where it is...
      s/w engg 1 : It is in Hyderabad.
      s/w engg 3 : Fundoo place yaar. Nice climate Not like
      California. You’ll love the weather yaar. One of my
      friends is in Jaipur,Rajasthan...He says it's the
      ultimate place to live in. Cool maan.
      s/w engg 2 : Who is the client yaar?
      s/w engg 1: You know  Municipal Corporation of Hyderabad?
      s/w engg 3 : Yeah. MCH. One of my friends is there in the Road Cleaning
      Division. Most challenging job yaar. People are working in the cutting
      edge of technology there.
      s/w engg 1 : I'll be writing software for the accounts department of the
      GCU.
      s/w engg 2: GCU? what it means...?
      s/w engg 1 : that is Garbage Collecting Unit.
      s/w engg 3 : : Great yaar. That's what I like about that country. You can
      get a job which requires all your skill. Not like here. See I'm writing
      software for the space shuttle remote control.I hate this.
      s/w engg 1 : Don't worry guys. I'll give you my Hotmail id. You can send
      your resume to me and I'll forward it to the HRD.
      [Everybody takes down his Hotmail id.]

      SCENE 3
      Venue: IBM, New York, US
      (Conversation between a Male s/w engg. and Female s/w engg.)
      Male : Hi!
      Female: Hi. You know. I'm planning to settle in India soon.
      Male : What??
      Female : Yeah. My marriage will be here in America
      only. He is doing his Ph.D in Miyapur College and he's coming here for a
      month. His study will be over in 2 months. He's already got a job in MEB
      (Miyapur Electricity Board). We planned to settle in Miyapur itself... I'm
      also planning to work there. Let's see...
      Male: Good luck... dont forget us & US...

      SCENE 4
      Venue: Intel Corp. US
      s/w engg 1: Great news guys. Our George has got admission in the Nizam
      College in Hyd with scholarship for B.A History. A great new field 
      yaar...
      All are excited...
      George : Got my Visa yesterday. It's all finalized now.
      s/w engg 2 : Congrats yaar. So you are out of this country.
      S/w engg 1 : B.A in Histroy...ohh...man, enjoy your life there?
      s/w engg 2 : : Got full aid, eh?
      George : Yeah. Got the UGC scholarship That will be 1200 Rupees per Year.
      s/w engg 1 : Great. Enjoy.
      s/w engg 2 : (Thinking loud): 1200 Indian Rupees...!
      that means 1200 * 45 = 54000 Dollars... with that
      amount I can buy a three bed-room flat & a Mercedes here...!!!
      

Sunday, April 25, 2010

How to disable and re-enable hibernation on a computer that is running Windows Vista

                 The Hiberfil.sys hidden system file is located in the root folder of the drive where the operating system is installed. The Windows Kernel Power Manager reserves this file when you install Microsoft Windows. The size of this file is approximately equal to the amount of random access memory (RAM) that is installed on the computer.
                 The computer uses the Hiberfil.sys file to store a copy of the system memory on the hard disk when the hybrid sleep setting is turned on. If this file is not present, the computer cannot hibernate.
                 Hibernation is made unavailable when you set the value of the Hibernate after setting to Never by using the Power Options item in Control Panel.
                 To make hibernation unavailable, follow these steps:
1) Click Start, and then type cmd in the Start Search box.
2) In the search results list, right-click Command Prompt, and then click Run as Administrator.
3) When you are prompted by User Account Control, click Continue.
4) At the command prompt, type powercfg.exe /hibernate off, and then press ENTER.
5) Type exit, and then press ENTER.
                 To make hibernation available, follow these steps:
1) Click Start, and then type cmd in the Start Search box.
2) In the search results list, right-click Command Prompt, and then click Run as Administrator.
3) When you are prompted by User Account Control, click Continue.
4) At the command prompt, type powercfg.exe /hibernate on, and then press ENTER.
5) Type exit, and then press ENTER to close the Command Prompt window. 

Note:- The same process should also work for Windows 7.

Source: Microsoft site

Your computer needs more memory????

                           There comes a time when you just don't have enough memory. In the very beginning, everything was perfectly fine. Then after a few years of use, your desktop or laptop computer starts running slower and slower. Sometimes you are simply surfing the Internet, doing word processing, or listening to your music collection while running other applications, and suddenly your computer can’t keep up.
                          If your hard drive's activity light is blinking furiously, it means the drive is way too busy and, it is about time to install more memory (RAM). To understand why, just think of the computer's CPU as a chef, its hard drive as a refrigerator, and the RAM as a kitchen countertop. To cook a meal, the chef (CPU) has to take out the necessary ingredients (data) from the refrigerator (hard drive), and works with cooking gadgets on the countertop (RAM). As orders (applications) increase, more working space is therefore required.
                          So what takes up the most countertop space (memory) on your computer? Take Windows XP for example. Entering the desktop will take up 300 to 500 MB of memory, while opening a popular Flash game on FACEBOOK will need at least 250MB more. Even two Flash games can eat up 1GB of precious memory! It's lucky that you don't have to upgrade your whole computer to get more space, though. Instead, adding more RAM to your computer is much easier and more cost effective.
                          Usually a desktop computer has two to four memory slots, and a laptop has two. For most of users, 1.5GB to 2GB of memory will be sufficient. Before you install extra RAM, make sure that the memory you add is identical to that already in your computer. Lastly, be smart and choose a trustworthy brand.

(source: Transcend ePaper)

Five Reasons Why Solid State Drives (SSDs) Are Right for You

                        It is a well known fact that solid state drives are an emerging technology that has huge market potential. But how do SSDs differ from regular hard disk drives (HDD), and why do they deserve a place in your notebook or desktop PC?

Reason # 1: Lightning-fast data transfer
Speed matters when it comes to business and entertainment. With virtually instant access times of less than one millisecond, SSDs enable operating systems and commonly used software applications like web browsers to open faster and run more smoothly, thus creating an overall more enjoyable and lag-free computing experience.

Reason # 2: Lower system temperatures
Imaging working on your laptop in comfort, without the heat. In contrast to regular hard disk drives that are constantly in motion within the drive, which creates plenty of heat, SSD's cool-running stable operation equates to lower temperatures within the computer.

Reason # 3: Longer battery run-time
Still carrying a laptop AC adapter around in case your notebook battery runs out unexpectedly? Now you don’t have to. Compared to old-fashioned hard drives, SSDs consume roughly much less power when transferring data, and require less than 1W when idle. In short, an SSD will make your computer consume less power overall, which can significantly improve battery life when used in a notebook computer.

Reason # 4: Resistant to shock and vibration
Never underestimate the potential data corruption caused from excessive vibration, shock, or impact. Unlike regular hard drives, SSDs contain no spinning disks, spindles or any other fragile mechanical components. Therefore, there is nothing to break loose, get misaligned or become unreadable in case the drive is accidentally bumped or dropped. Your files will finally get the thorough protection they deserve.

Reason # 5: No more annoying hard drive noise
Sometimes you just need a quiet place to concentrate on your work. At times like these, any possible tiny noise will drive you crazy. While traditional hard drives tend to make a buzzing sound because of the vibrations when the spinning disks resonate through the case of your computer, SSDs can be 100% noise free since there are no mechanical moving parts inside.

(source: Transcend ePaper)

Installing Windows xP after Windows Vista / 7

Requirements before proceeding:-
1) Installtion CD (and CD key/ serial number) of Windows xP.
2) Installtion DVD (and DVD key / serial number) of Winows vista.
3) Make sure that AC power supply is continuously available during the process.
4) Print the instructions if you feel it necessary.

Step 1:- Create a back-up of your all data (e.g. documents,pictures,software installers (installers not installed files!!!), etc.) whatever you don't want to loose in case of a problem. You can do it by just copy and paste operation to any external hard-disk or you can even burn them into DVDs or CDs.

Step 2:-Install xp as usual (preferably install it in the drive-partition other than that with vista or 7. For knowing how to create drive partitions, refer to Help and Support in Control panel. I hope there you should get enough information.)

Step 3:- When you will reboot the system after finishing the xP installation, you will see only xP and no trace of Vista. You don't need to worry at all if this occurs. Actually, this occurs because the boot-loader of xP does not recognise Vista (as it is a new Operating system which is a succesor to xP.). But Vista's boot-loader can recognize xP and we will make use of this fact in our process.

Step 4:- Insert the vista DVD and reboot. When asked for pressing any key to boot from CD or DVD... do it. In the window where it asks for installing vista, in the same window in lower side there is an option of correcting/reapiring the problems. When ypu find it , click to access it. It will automatically find your vista installation. Select you vista partition and continue. In the next window you will see an option of Reapairing start-up problems automatically. Select it and reboot after the process finishes when it asks so (In the log window you should see some repair has taken place).

Step 5:- When you reboot your vista should boot normally and this time you will see no trace of xP.

Step 6:- Editing boot.ini.
In Vista, the boot.ini is not editable directly, as the file itself is hard to locate, so we will be modifying it through "Boot Configuration Data Store Editor" bcdedit.exe:
a) first open a command prompt with administrative privilages (right-click and choose "run as administrator")

*Note:- the following 2 answers from bcdedit for each item are acceptable:
"The Operation Completed Successfully"
"The Specified Entry Already Exists"

b) Be sure to type each line carefully (replace C in the first line with the drive containing your Vista installation) (Just as an explanation, the loader type for XP is an NT Loader, hence the use of ntldr) :
bcdedit –set {ntldr} device partition=C:
bcdedit –set {ntldr} path \ntldr
bcdedit –displayorder {ntldr} –addlast
bcdedit -set {ntldr} description "Microsoft Windows XP"

c) This will correctly add XP to your boot sequence, and even name it properly instead of "Earlier Version of Windows".

d) the displayorder line also allows the entry to be visible under the advanced settings of your computer properties.

e) Vista is the default boot, if you wish to change this to XP it can be done by setting {current} to addlast, or under the computer
-> properties -> advanced settings.

f) If all done properly, XP and Vista will dual boot properly!

enjoy!!!

Note:-The above process is tested well with vista and should also work for Windows 7.You have to just read Vista as 7 in above explanation.

Numerology

1. The Originator
1's are originals. Coming up with new ideas and executing them is natural. Having things their own way is another trait that gets them labeled as being stubborn and arrogant. 1's are extremely honest and do well to learn some diplomacy skills. They like to take the initiative and are often leaders or bosses, as they like to be the best. Being self-employed is definitely helpful for them. Lesson to learn: Others' ideas might be just as good or better and to stay open minded.

2. The Peacemaker
2's are the born diplomats. They are aware of others' needs and moods and often think of others before themselves. Naturally analytical and very intuitive they don't like to be alone. Friendship and companionship is very important and can lead them to be successful in life, but on the other hand they'd rather be alone than in an uncomfortable relationship. Being naturally shy they should learn to boost their self-esteem and express themselves freely and seize the moment and not put things off.

3. The Life of the Party
3's are idealists. They are very creative, social, charming, romantic, and easygoing. They start many things, but don't always see them through. They like others to be happy and go to great lengths to achieve it. They are very popular and idealistic. They should learn to see the world from a more realistic point of view.

4. The Conservative
4's are sensible and traditional. They like order and routine. They only act when they fully understand what they are expected to do. They like getting their hands dirty and working hard. They are attracted to the outdoors and feel an affinity with nature. They are prepared to wait and can be stubborn and persistent. They should learn to be more flexible and to be nice to themselves.

5. The Nonconformist
5's are the explorers. Their natural curiosity, risk taking, and enthusiasm often lands them in hot water. They need diversity, and don't like to be stuck in a rut. The whole world is their school and they see a learning possibility in every situation. The questions never stop. They are well advised to look before they take action and make sure they have all the facts before jumping to conclusions.

6. The Romantic
6's are idealistic and need to feel useful to be happy. A strong family connection is important to them. Their emotions influence their decisions. They have a strong urge to take care of others and to help. They are very loyal and make great teachers. They like art or music. They make loyal friends who take the friendship seriously. 6's should learn to differentiate between what they can change and what they cannot.

7. The Intellectual
7's are the searchers. Always probing for hidden information, they find it difficult to accept things at face value. Emotions don't sway their decisions. Questioning everything in life, they don't like to be questioned themselves. They're never off to a fast start, and their motto is slow and steady wins the race. They come across as philosophers and being very knowledgeable, and sometimes as loners. They are technically inclined and make great researchers uncovering information. They like secrets. They live in their own world and should learn what is acceptable and what not in the world at large.

8. The Big Shot
8's are the problem solvers. They are professional, blunt and to the point, have good judgment and are decisive. They have grandiose plans and like to live the good life. They are take charge people. They view people objectively. They let you know in no uncertain terms that they are the boss. They should learn to base their decisions on their own needs rather than on what others want.

9. The Performer
9's are natural entertainers. They are very caring and generous, giving away their last dollar to help. With their charm they have no problem making friends and nobody is a stranger to them. They have so many different personalities that people around them have a hard time understanding them. They are like chameleons, ever changing and blending in. They have tremendous luck, but also can suffer from extremes in fortune and mood. To be successful they need to build a loving foundation.

World's smallest superconductor found, and it's less than 1nm wide



Scientists at the University of Ohio have discovered what they claim to be the world’s smallest superconductor, which is less than 1nm in width. The superconductor works on a molecular scale and is formed by four pairs of molecules. The research was published in Nature’s Nanotechnology paper, and has been called a path-breaking idea in the field of nanoscale electronics.

In the past, interconnects of the modern chip fabrication process have always had problems with Joule heating and melting, as they traditionally have been built by metal, which conducts heat equally well as electricity. Interconnects on the nanoscale are called nanowires, whose electrical resistance unfortunately increases as they are made smaller.

  The 4 molecule chain that is the world's smallest superconductor
Figure:- The 4 molecule chain that is the world's smallest superconductor


However, using the new world’s smallest superconductor as the basis for a new-generation of nanowires might remove this problem altogether. Superconductors are so named because their electrical resistance tends towards zero, and will conduct electricity while only negligibly causing heat or power loss. The breakthrough comes with the fact that a certain superconductor is now known to be able to function on the molecular level, completely at odds with what scientists thought was a unshakeable truth, that superconductors only functioned on the macroscopic level.

These findings will have tremendous applications in nanoscale electronics, most notably in microprocessor design and fabrication.

Source: Think Digit

"Mind-reading" brain-scan software showcased in NY

Mind-reading brain-scan software showcased in NY


NEW YORK — Mind reading may no longer be the domain of psychics and fortune tellers — now some computers can do it, too.

                    Software that uses brain scans to determine what items people are thinking about was among the technological innovations showcased Wednesday by Intel Corp., which drew back the curtain on a number of projects that are still under development.
The software analyzes functional MRI scans to determine what parts of a person's brain is being activated as he or she thinks. In tests, it guessed with 90 percent accuracy which of two words a person was thinking about, said Intel Labs researcher Dean Pomerleau.
Eventually, the technology could help the severely physically disabled to communicate. And Pomerleau sees it as an early step toward one day being able to control technology with our minds.
                        "The vision is being able to interface to information, to your devices and to other people without having an intermediary device," he said.
                         For now, the project's accomplishments are far more modest — it can only be used with prohibitively expensive and bulky fMRI equipment and hasn't yet been adapted to analyze abstract thoughts.
                        The system works best when a person is first scanned while thinking of dozens of different concrete nouns — words like "bear" or "hammer." When test subjects are then asked to pick one of two new terms and think about it, the software uses the earlier results as a baseline to determine what the person is thinking.
The software works by analyzing the shared attributes of different words. For example, a person who is thinking of a bear uses the same parts of the brain that light up when he or she thinks of a puppy or something else furry. A person thinking of a bear also shows activity in the amygdala — home of the fight-or-flight response.
                         While Intel primarily makes computer processors and other hardware, it often works to develop and demonstrate new technologies in an effort to stimulate the market and advance its reputation.

Music reduces stress in heart disease patients

        Washington, April 13 (IANS): Listening to music may benefit patients who suffer severe stress and anxiety associated with having and undergoing treatment for coronary heart disease (CHD).

            A study found that listening to music could decrease blood pressure, heart rate and levels of anxiety in heart patients.

             Living with heart disease is extremely stressful. The uncertainties and anxieties surrounding diagnosis and the various medical procedures involved in treatment can significantly worsen the condition.

             For example, stress can increase blood pressure, leading to increased risk of complications. Music listening may help to alleviate stress and therefore reduce this risk.
'Our findings suggest music listening may be beneficial for heart disease patients,' says Joke Bradt, who works at the Arts and Quality of Life Research Centre at Temple University, Philadelphia.

              The researchers reviewed data from 23 studies which together included 1,461 patients. Two studies focused on patients treated by trained music therapists, but most did not, using instead interventions where patients listened to pre-recorded music on CDs offered by healthcare professionals.

             Listening to music provided some relief for CHD patients suffering from anxiety, by reducing heart rate and blood pressure.

              There was also some indication that music listening improved mood, although no improvement was seen for patients suffering from depression due to the disease, said a Temple University release.

             'We all know that music can impact on our emotions, our physiological responses, as well as our outlook on life, and this early research shows that it is well worth finding out more about how it could help heart disease patients.'

These findings were published in Cochrane Systematic Review.
Indo Asian News Service

Top 6 ways to beat computer viruses

Computer viruses


They’ve been around for years, and they aren’t going away. And they continue to proliferate and cause major damage, with the “Gumblar” or “Geno” virus as the latest high-profile virus to infect computers.

This virus is a particularly insidious one, with a multi-phased attack. After infecting a machine, Gumblar installs a series of malware programs, including a small application capable of stealing FTP credentials. It can gain control of an entire website and freely operate it.

Gumblar also monitors the infected user’s online activity, and waits for the user to conduct Google searches. The malware hijacks the search results, replacing them with any link of its choice and further infecting the computer with malware. The virus also installs a fake antivirus program known as System Security 2009, and disables any legitimate security software.

So what can you do to avoid becoming a victim of this and other viruses? Here are the top strategies to follow:

1. Be sure to install updates for Microsoft® products
Using Microsoft Update with automatic updating is a strong – and simple to implement – first line of defence against security threats. The Microsoft Update site scans your computer and gives you a list of updates that are relevant to your computer and its configuration.

 2. Install the latest versions of Adobe Reader and Flash Player
The Gumblar virus takes advantage of common Adobe Reader, Adobe Acrobat, and Adobe Shockwave Flash Player vulnerabilities, which lead to the download of additional malicious files. Keeping these programs up-to-date can help ensure you’ve got the latest and most secure versions available.

3. Create and maintain strong passwords
Keeping and using strong passwords, and changing them regularly, is a very important step in keeping your online accounts, computer files and personal information secure.  Ideally, passwords should be long and use the entire keyboard, not just the letters and characters you use or see most often.

4. Invest in quality antivirus and antispyware protection
While it isn’t a 100% guarantee of security, your risk of virus infection is significantly lower when you use a comprehensive antivirus protection program. Without some sort of protection, you are virtually guaranteed to become a victim of viruses, spyware and spam.

5. Don’t click on unknown links or attachments
Never click on any unfamiliar links embedded in an e-mail, or open attachments from unknown senders. And check for anything unusual even in links you do recognise; slightly altered domain names could indicate that a site has been hijacked.

6.  Download files only from trusted sites
You should only download files from known, well-established sources. Never download anything if you’re not certain what it is. When in doubt, don't download the file to your computer at all: download it onto an external drive or USB stick, and then check the files with antivirus scanning software.