Tuesday, August 16, 2011

Compact Disc


A Compact Disc (CD) is an optical disc used to store digital data. CD-ROMs and CD-Rs remain widely used technologies in the computer industry.CD-ROM drives employ a near-infrared 780 nm laser diode. The laser beam is directed onto the disc via an opto-electronic tracking module, which then detects whether the beam has been reflected or scattered.

A CD is made from 1.2 mm thick, almost-pure polycarbonate plastic and weighs 15–20 grams. From the center outward components are at the center (spindle) hole, the first-transition area (clamping ring), the clamping area (stacking ring), the second-transition area (mirror band), the information (data) area, and the rim. Standard CDs have a diameter of 120 mm and can hold up to 80 minutes of uncompressed audio (700 MB of data). The Mini CD has various diameters ranging from 60 to 80 mm; they are sometimes used for CD singles or device drivers, storing up to 24 minutes of audio.

What makes a CD?

A CD is made up of a polycarbonate plastic known as Polymethyle Meta acrylic.
The surface of the CD is coated with a thin layer of aluminium to make it reflective, and is protected by a film of lacquer that is normally spin coated directly on top of the reflective layer, upon which the label print is applied.

Data Storage

CD data are stored as a series of tiny indentations known as “pits”, encoded in a spiral track molded into the top of the polycarbonate layer. The areas between pits are known as “lands”. Each pit is approximately 100 nm deep by 500 nm wide, and varies from 850 nm to 3.5 µm in length. CD-ROM capacities are normally expressed with binary prefixes, subtracting the space used for error correction data. A standard 120 mm, 700 MB CD-ROM can actually hold about 737 M. In comparison, a single-layer DVD-ROM can hold 4.7 GB of error-protected data.

CD parameters

• Scanning velocity: 1.2–1.4 m/s (constant linear velocity) – equivalent to approximately 500 rpm at the inside of the disc, and approximately 200 rpm at the outside edge. (A disc played from beginning to end slows down during playback.)
• Track pitch: 1.6 µm
• Disc diameter 120 mm
• Disc thickness: 1.2 mm
• Inner radius program area: 25 mm
• Outer radius program area: 58 mm
• Center spindle hole diameter: 15 mm
How CD Retrieve data?
CD players use laser technology to read the optically recorded data in the form of Bits and Pits on a CD. About 20000 or more tracks are found in a CD’s recording surface. The distance between the tracks, the pitch, is 1.6 µm. A CD is read by focusing a 780 nm wavelength (near infrared) semiconductor laser through the bottom of the polycarbonate layer. The change in height between pits and lands results in a difference in intensity in the light reflected. By measuring the intensity change with a photodiode, the data can be read from the disc. The digital information is defined as the length of pits and distance between them. The pits and reflective surface represents logic 0 and logic 1. The pits and lands themselves do not directly represent the zeros and ones of binary data. Instead, Non-return-to-zero, inverted (NRZI) encoding is used: a change from pit to land or land to pit indicates a one, while no change indicates a series of zeros. There must be at least two and no more than ten zeros between each one, which is defined by the length of the pit.

Optical Lens System
The laser diode- lens assembly forms the optical system of the CD player. The laser diode- lens assembly is generally known as ‘Eye of CD player”. The lens system focuses the laser beam reflected onto the CD and reflected back light is collected by the objective lens and transmitted to the detector system. When a Laser beam is focused on to the CD, because of a difference between the depth of pits and wavelength of the laser beam, a phase difference develops between the light reflected from pits and the reflecting surface. The reflected light is then modulated by the receiver system. Before passing to the detector, the reflected laser beam is polarized and aligned to 90 degrees. The detector is a photo sensor that produces corresponding electrical signals which are then amplified and separated into corresponding video and audio signals.

Recordable CD
Recordable compact discs, CD-Rs, are injection molded with a “blank” data spiral. A photosensitive dye is then applied, after which the discs are metalized and lacquer-coated. The write laser of the CD recorder changes the color of the dye to allow the read laser of a standard CD player to see the data, just as it would with a standard stamped disc. The resulting discs can be read by most CD-ROM drives and played in most audio CD players.

CD damage
CDs are susceptible to damage from both daily use and environmental exposure. Pits are much closer to the label side of a disc, so that defects and dirt on the clear side can be out of focus during playback. Consequently, CDs suffer more scratch damage on the label side whereas scratches on the clear side can be repaired by refilling them with similar refractive plastic, or by careful polishing.
CD-R recordings are designed to be permanent. Over time the dye’s physical characteristics may change, however, causing read errors and data loss until the reading device cannot recover with error correction methods. The design life is from 20 to 100 years, depending on the quality of the discs, the quality of the writing drive, and storage conditions.

Love Story of Graham Bell . . .


Got it in mail so..
When you call someone and they answer the call... why do we say "HELLO..."...????

Do you know what is the real origin of using the word 'Hello' as the conversation starter in a phone call..???
It is the name of a GIRL..!!!

YES...!!!!!!!!!!!
And do you know who is that girl..??


Margaret Hello.....
She was the girlfriend of Graham Bell... the man who invented the telephone....
His first 2 instruments were at his and her place... and the first call he made to commercially test the phones was to his girlfriend..!!!!


One may forget the name of Graham Bell... but we will never be able to forget his girlfriend's name....!!!!


Now that my friend... is true LOVE..!!!!!

Sunday, August 14, 2011

Google Merge Facility


This new version of Gmail Mail Merge program offers support for rich-text (HTML) email templates, you may add file attachments with the outgoing messages, there’s an option to BCC emails to yourself and better overall usability. Let’s get started:
Step 1: Open this Google spreadsheet and create a copy of the same in your Google Docs account (File –> Make a Copy).
Step 2: Under the new “Mail Merge” menu, click on “Reset” to clear the canvas and alsoauthorize Google Docs to access your Gmail and Google Contacts.
Step 3: Open Google Contacts and create a new Group with all the contacts who you would like to send a personalized email. Alternatively, you may simply add the recipient’s name and email addresses manually in the Google Sheet.
Step 4: Click Mail Merge –> Import Google Contacts and type the name of the Google Contacts group that you created in Step 3. Google Docs will now automatically import all the relevant Gmail contacts into the spreadsheet.
Step 5: Fill the various fields of the email template (highlighted in white).
5a. You can compose an email template in rich text using the HTML Mail tool and then copy-paste the generated HTML code into the message body field of the Google Sheet.
5b. If you would like to add an attachment to your email messages – say a PDF file or an Office document – just upload that file to Google Docs and copy-paste the ID of the file into the Attachment ID field. You can find the ID of a Google Docs file in its URL.

mail merge
Step 6: Go to the Mail Merge menu again and click “Start Mail Merge” – the status against the names of your Gmail contacts will change to “OK” for all email messages that were successfully delivered through Google Docs.
That’s it! You’ve just completed your first mail merge through Gmail and Google Docs.
Please note that Gmail has a daily sending limit and any messages that are dispatched using the Gmail Mail Merge program also count in that limit. You can send a maximum of 500 messages in a day and if you exceed that number, Google can temporarily lock your Gmail account.

Saturday, August 13, 2011

રાષ્ટ્રઘ્વજ ફરકાવવાના નિયમો




– રાષ્ટ્રઘ્વજ નું માપ ૩;૨ ના પ્રમાણ માં હોવુ જોઇએ.

– રાષ્ટ્રઘ્વજ ની લંબાઇ કરતા ૧૦ ગણો મોટો ઘ્વજ-સ્તંભ હોવો જોઇએ.

– રાષ્ટ્રઘ્વજ સુર્યોદય પછી ફરકાવવો તથા સુર્યાસ્ત પહેલા ઉતારી લેવો જોઇએ.

– રાષ્ટ્રઘ્વજ ફરકાવવા માં ઉતાવળ કરવી જોઇએ જ્યારે ઉતારતી વખતે ઘીમે ઘીમે

શિષ્ટાચાર પુર્વક ઉતારવો જોઇએ.

– રાષ્ટ્રઘ્વજને સલામી હંમેશા ટોપી, યા હેટ પહેરેલ હોય તો જ આપી શકાય નહિતર

સાવધાન સ્થિતિ માં રહેવું.

રાષ્ટ્રઘ્વજ અંગે ઘ્યાનમાં રાખવા જેવી બાબતો :-

– રાષ્ટ્રઘ્વજ સ્વચ્છ હોવો જોઇએ.

– અન્ય કોઇ ઘ્વજ રાષ્ટ્રઘ્વ ની જમણી બાજુ એ તેનાથી ઉંચાઇ એ ફરકાવી શકાય નહિં

– રેલી કે પરેડ વખતે રાષ્ટ્રઘ્વ કુચ કરનારની જમણી બાજુ એ રહે તેમ રાખવો.

– મિલિટરી ગ્રુપમાં રાષ્ટ્રઘ્વ હંમેશા વચ્ચે રહે છે અને તેનાથી બે ડગલા આગળ રહી પરેડ

થાય છે.

– રાષ્ટ્રઘ્વજને બીજા, કોઇ ઘ્વજ સાથે એકજ સ્તંભ પર ફરકાવી શકાય નહિ.

– રાષ્ટ્રઘ્વજ ઉપર કોઇ પણ પ્રકારનું લખાણ લખી શકાય નહિં.

– ઘ્વજ નો ઉપયોગ અઘ્યક્ષની પાટલી કે અધ્યક્ષના, મંચ ને ઢાકવાં માટે થઇ શકે નહી.

– ઘ્વજ નો કઇ પણ મેળવવા, આપવા, ઘરાવવા અથવા લઇ જવા માટે કાંઇ પાત્ર તરીકે

ઉપયોગ થઇ શકે નહી.

– ખાનગી અત્યેષ્ટિ સમય ઘ્વજ નો ઉપયોગ શબને ઢાકવા માટે થઇ શકે નહી.

– રાજ્ય રાષ્ટ્ર, લશ્કર અને કેન્દ્ર સરકારની અર્ધ લશ્કરી દળો તરફ થી થતી અત્યેષ્ટિ

માં ઘ્વજ શબ પર ઢાંકવા માં આવે ત્યારે કેસરી રંગ માથા તરફ રાખવામાં આવશે.

–અગ્નિ સંસ્કાર કબર માં દફન કરતા પહેલા શબ ઉપરથી ઘ્વજ સન્માન થી ખસેડી લેવામાં

આવશે. ઘ્વજ ને ઇરાદાપુર્વક જમીન, અથવા ભોંયતળીયે અડકવા દઇ શકાય નહી.

– અગત્ય ના રાષ્ટ્રીય પ્રસંગો, સાંસ્ક્રુતીક અને ખેલકુદ નાં પ્રસંગો એ જાહેર જનતા

કાગળ/પ્લાસ્ટીક ના બનેલ ઘ્વજ ફરકાવી શકશે પરંતુ પ્રસંગ પુરો થતાં આવા ઘ્વજ જમીન

ઉપર ફેકી દેવાને બદલે ઘ્વજ નાં સન્માન ને ઘ્યાન લઇ ખાનગી રાહે નિકાલ કરવો જોઇએ.

– દરેક ભારતીય નાગરીકે રાષ્ટ્રઘ્વજ નું સન્માન કરવું એ તેની ફરજ અને કર્તવ્ય છે.

ત્રિરંગા ની આન, બાન અને શાન જાળવવા ની તમામ ની ફરજ છે.

– રાષ્ટ્રઘ્વજનું ઇરાદાપુર્વક સન્માન નહી કરનાર ને દંડ અને ત્રણ વર્ષ સુધી ની કેદ ની

જોગવાઇ છે.

–સરકારે બહાર પાડેલ સુચના અનુસાર ઘ્વજ મકાનો, અન્ય સ્થળે અર્ધી કાઠી એ ફરકાવી

લહેરાતો હોય તે સિવાય ઘ્વજ અર્ધી કાઠી એ લહેરાવી શકાય

નહી.

Thursday, August 11, 2011

Creating Custom Ubuntu Live-CD With Remastersys

Remastersys is a tool that can be used to do 2 things with an existing Klikit or Ubuntu or derivative installation.It can make a full system backup including personal data to a live cd or dvd that you can use anywhere and install. It can make a distributable copy you can share with friends. This will not have any of your personal user data in it.
Install Remastersys in Ubuntu
The Remastersys repository needs to be added to your /etc/apt/sources.list
sudo vi /etc/apt/sources.list
Paste the following into the sources.list:
# Remastersys
deb http://www.remastersys.klikit-linux.com/repository remastersys/
Save and exit the file.
Update the source list using the following command
sudo apt-get update
Install remastersys using the following command
sudo apt-get install remastersys
This will complete the installation
Using Remastersys
In order to learn how you can use remastersys, run
sudo remastersys
remastersys Syntax
sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]
remastersys Examples
1) to make a livecd/dvd backup of your system
sudo remastersys backup
2) to make a livecd/dvd backup and call the iso custom.iso
sudo remastersys backup custom.iso
3) to clean up temporary files of remastersys
sudo remastersys clean
4) to make a distributable livecd/dvd of your system
sudo remastersys dist
5) to make a distributable livecd/dvd filesystem only
sudo remastersys dist cdfs
6) to make a distributable iso named custom.iso but only if the cdfs is already present
sudo remastersys dist iso custom.iso
cdfs and iso options should only be used if you wish to modify something on the cd before the iso is created. An example of this would be to modify the isolinux portion of the livecd/dvd
Creating An ISO Image
To create an iso image of your installation, simply run
sudo remastersys dist
This will create an iso image called customdist.iso in the /home/remastersys directory. The dist option makes that your personal folder (e.g. /home/ruchi) will not be included in the iso image. You might have to insert your Ubuntu installation CD during the process.
This is how the end of the process looks:
[...]
92.16% done, estimate finish Wed DEC 28 15:31:25 2007
93.39% done, estimate finish Wed DEC 28 15:31:25 2007
94.62% done, estimate finish Wed DEC 28 15:31:24 2007
95.85% done, estimate finish Wed DEC 28 15:31:24 2007
97.08% done, estimate finish Wed DEC 28 15:31:25 2007
98.31% done, estimate finish Wed DEC 28 15:31:25 2007
99.54% done, estimate finish Wed DEC 28 15:31:25 2007
Total translation table size: 2048
Total rockridge attributes bytes: 3950
Total directory bytes: 9094
Path table size(bytes): 54
Max brk space used 0
406890 extents written (794 MB)
/home/remastersys/customdist.iso is ready to be burned or tested in a virtual machine.
Check the size and if it is larger than 700MB you will need to burn it to a dvd
796M /home/remastersys/customdist.iso
Clean Up
After you’ve burnt the iso image onto a CD/DVD, you can run
sudo remastersys clean
to remove all temporary file created during the iso generation as well as the /home/remastersys directory.

10 Short Cuts for Excel


1. CTRL+1 – Format

Oh CTRL+1, if I get an ear, every-time I press you, I would be a millionear by now.
I use this all the time, to format cells, charts, text boxes – you name it.

2. CTRL+SHIFT+L – Turn on/ off filters

Most of the time, I use filters to do ad-hoc analysis of my data. So, Once I set a couple of filters, If I want to revert back to full data, I find clearing each filter a pain. So I just turn-off and turn-on the filters, by pressing CTRL+SHIFT+L twice.

3. CTRL+Arrow keys – Navigate around the workbook

When it comes to dealing with data, navigate, you must. So I rely on CTRL+arrow key combinations all the time. Also, I use CTRL+SHIFT+arrow keys to select a group of cells

4. ALT+ES – Paste Special > Values

Paste Special - Paste Values only - MS ExcelCopying and Pasting is another must if you deal with data. Often, I have to get data from other workbooks or clean the formatting of existing tables. So I use ALT+ES (press E then leave the key and press S) to paste special. Works like a charm! [more: 16 more paste special tricks]

5. F4 – Change cell reference style while editing formulas

Change cell referencing style - F4 - Excel
Excel runs a pretty tight mafia when it comes to cell references. You must pay it a couple of $s if you want to change the reference style from relative (A2) to absolute ($A$2). But whos got the time to carefully navigate between A and 2 and then type SHIFT+4? So I use F4 key and Excel changes the referencing style for me. [More: Relative vs. Absolute Cell References in Excel]

6. F2 – Edit a cell

As simple as that.

7. F3 – Show Names

For simple workbooks I do not use names. But if I am making a dashboard or Excel model, I define several names and use them all the time. This is where F3 comes in handy. Just press F3, no matter where you are (formula editing, conditional formatting, data validation etc.) and you get a list of all the defined names. Pick one and press ok to add it to the formula etc. you are typing.

8. CTRL+K – Add Hyperlink

Hyperlinks make your work book accessible & pretty. So I use them all the time, especially, if I have more than a couple of sheets. Select a cell or shape and press CTRL+K to launch hyperlink box. Type the destination URL or location and you are done.

9. CTRL+T – Insert Table

Excel Tables - Insert Table using CTRL+TEver since I learned how to use Tables feature, I have never looked back. Nowadays, anytime I need to use a bunch of data, I convert that to a table and then use. Tables are flexible, they can grow & shrink, they allow you to write readable formulas (structural references) and they are lovely. Just select any cell in a range of related data, and press CTRL+T to make it table.

10. CTRL+S – Save

There is no point making something elaborate in Excel if you forgot to save. So I press CTRL+S every now and then. You never know when aliens strike!

Saturday, August 6, 2011

Friday, August 5, 2011

Limited Shell


we want to limit the activities or command to run for specific user then, how to limit a shell? here are the steps to create limited shell.
Add a user who can execute some specific commands.
1. Create a link named ‘rbash’ from bash.
[root@divyajyot ~]# ln -s /bin/bash /opt/rbash
2. Add a user that his default shell is rbash and set he can execute only ‘ping’.
[root@divyajyot ~]# useradd lsuser -s /opt/rbash
[root@divyajyot ~]# passwd lsuser
[root@divyajyot ~]# mkdir /home/lsuser/bin
[root@divyajyot ~]# ln -s /bin/ping /home/lsuser/bin/ping
[root@divyajyot ~]# chown root. /home/lsuser/.bash_profile
[root@divyajyot ~]# chmod 755 /home/lsuser/.bash_profile
[root@divyajyot ~]# vi /home/lsuser/.bash_profile
  # change PATH like follows
  PATH= $HOME/bin
3. Login with the test user.
[lsuser@divyajyot ~]$ cd
-rbash: cd: restricted # denied
[lsuser@divyajyot ~]$ ls
-rbash: ls: command not found # none
[lsuser@divyajyot ~]$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.045 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.008 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.008 ms
— localhost ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2157ms
rtt min/avg/max/mdev = 0.008/0.020/0.045/0.017 ms  # executed

Connect to MySQL database from LibreOffice Base


LibreOffice’s Base program can provide a quick easy way to access a MySQL database and write some reports against data.  The following outlines how to easily setup LibreOffice Base to connect to MySQL.  It assumes that you already have LibreOffice Base installed.  It works just as easily for OpenOffice Base.First we need to install the JDBC driver for MySQL
sudo apt-get install libmysql-java
Next
  1. Open up any LibreOffice program and then click on Tools->Options.
  2. Expand LibreOffice option and then click on Java.
  3. Click on the Class Path button on the right followed by Add Archive.
  4. Browse to /usr/share/java/mysql-connector-java.jar
  5. Click Ok and choose to restart LibreOffice.
  6. Now open LibreOffice Base and choose to Connect to an existing database.
  7. In the drop-down menu choose MySQL, and connect using JDBC.
  8. Click on the Test class button to make sure the JDBC driver loads successfully.  If it doesn’t, then check that you followed the previous steps properly.  If it does load then simply enter the settings as it relates to your MySQL database.
  9. If you get the JDBC driver to load properly, but you cannot connect to your MySQL database,
  10. then I would recommend installing the mysql client and making sure you can connect from the MySQL client first.
  11. If the JDBC driver loads properly, and you can connect to your database with the MySQL database, then you should not have any problem connecting with LibreOffice.