Pages

My Humble Words..!

Here It goes..

Sunday, May 11, 2014

Trip To The Marvellous Taj Mahal.... Some points to learn and some to ponder...

My mom had always wanted to see the Taj and have a snap there in front of it. And for me, it has been one of those good-son's dream to make it happen for her. 
So came the golden chance to fulfil that when mom and dad came to Delhi last week. 
Well, its sunny May, the heat is scorching here, thinking of which I was worried ,if it was gonna make it difficult for them. But then, I had this opportunity and I didn't want it go by and we decided to go there on Thursday, 8th of May,2014. 

The journey didn't began on expected lines. We couldn't take breakfast and we had to hurry down the elevator when the travel agent called up like we were actually missing the bus(Actually here starts the great trick of fooling people by the Miscreants Of Delhi).
The Bus looked good from outside, inside it looked like a modified WWII German Bus. As soon as we were about to board, the agent locked it and asked us money-we paid. But this was a trick- there were only 2 seats left and the third one was at the back. So he fooled us and I had to sit at the back seat(You would understand if you have travelled on Indian Roads).
Now, came the journey down the road, and at this time, my only thought was to reach there as soon as possible. 
Some time later, the idiot conductor came in the passenger cabin and shouted like a General of The East Army Division, giving instructions about getting breakfast. 
They took us to a roadside restaurant, that looked like a human abattoir. It served us some dishes having South Indian dishes, but ...... I have no words to speak of it except that it provided me with some relief and especially for my parents. 
Here I learnt that those peoples who would take us there would get commissions...and we had to pay for them too.. pretty horrendous...right? paying and suffering at the same time..nonsense..

Then, It seemed like we'd reached Agra. Soon enough a man came who claimed to be our guide and who would later give many false facts just to complete his job.
We went first to the magnificent Agra Fort. It was one kind of thing that I had always wanted to see. I saw all the important places. Only dissatisfaction here I had was that, the visitors would dirty the fort, while the ASI cared only for the exterior polish, and the green gardens. It war really saddening.  
Then we were taken to the UP handicrafts, saw some good items but the price was really overwhelming. Tricking was still practised here, we were continuously told about the AC inside the building and to enjoy it. 
(what kinda marketing was that??, it was neither emotional nor assertive, but rather spuriously persuasive.)
We were also told, not to buy sweets(or the famous Petha) from others but from the place where the guide would take us( seriously he was on roll to make money on commission). And on the way, the guide would take money for various reasons, shoe-cover, taxi,etc.

Then we went to The Destination. 
The Taj Mahal, built by Shah Jahan, I saw it and I touched it. Until this part,  I would say, I came, I saw, But not yet conquered.
It was really a piece of wonder. No amount of photography can replace its beauty seen with real eyes.We took some snaps(Please try to  take your own camera), went inside the mausoleum and offered janaza prayer for the Emperor and the Empress.
Here too, the inside of the Taj is really becoming chaotic.Too much crowd and noise is a real threat to the structure. The constant dirtying done by the visitors is a real concern and since its a mausoleum, it deserves peace and silence, which was not the case and the security did not attend to it.

I sincerely hope that the ASI authorities will take a responsible call to this.

Then it was time to bid adieu to it. I was not so satisfied by this journey, so I prayed that, I may have another chance to  bring my mummy and daddy here again.
Then we came back and reached Delhi at around 3:00 in the morning. 

For all those who are planning to go, I'd just say the following few words.
*Never believe in the travel agents.They only care for money.
*Please don't dirty the structures. And Please don't make noise inside the mausoleum.
*Agra has  many other places. Besides the tomb of Shah Jahan, There is also tomb of Akbar the Great, and others, so plan for it.
*Beware of the pick pockets.
................................................................
 I end with the message of love having seen the building of love.
Adios..



Saturday, June 15, 2013

Erlang on Linux: Configuration and Installation

Erlang is a fast growing language and is used in many key applications. Being concurrent and fast..it is used in many applications where multiple service are required simultaneously. 
It can be installed on linux via it package 
or 
simply from the terminal using : sudo apt-get install erlang

I did using the source file from the erlang site.
The following steps made me complete the installation:

1>download the tar file.
2> cd to the folder and unzip it.
3> go the unzipped folder.
4> Now, Erlang needs some other files to fully complete installations and generate documentations.
  So the following steps needs to be done:
  • sudo apt­-get install fop 
  • sudo apt­-get install libncurses-5­-dev
  • sudo apt­-get install openjdk­6­-jdk
  • sudo apt­-get install unixodbc-­dev
  • sudo apt­-get install g++
  • sudo apt­-get install libssl­-dev
Still, Erlang requires wx libraries so we will do the following:
  • sudo apt­-get install libwxbase2.8
  • sudo apt­-get install libwxgtk2.8­dev
  • sudo apt­-get install libqt4­opengl­dev
  • sudo apt­-get install libgtk2.0­dev
Now, we are ready to go...
  1. cd to unzipped folder.
  2. Type: ./configure
  3. Type: make
  4. Type: sudo make install
And there it will be....your Erlang ready to goo....
Test it by typing in the terminal..
erl
2+9.
It will print: 11
or 
which erl
This is supposed to give : /usr/local/bin/erl
....So happy coding...Cheers...

...If there is any problem...let me know.. lets solve it together...

Friday, June 14, 2013

Boot problem in Ubuntu dual boot os: Solved

I had been using Ubuntu for quite a long time. Sometimes, problems arise as such like:
  •  Windows cannot boot.
  • or Ubuntu cannot boot.
Solving this problem is easy: however it requires you to have:
  • Internet connection.
  • Ubuntu live cd or bootable pendrive.
Now lets go through how we could solve this using a software:
  1. Boot from the pendrive or cd.
  2. Use the Try Ubuntu mode on first page.
  3. Connect to the net
  4. Open the terminal using ctrl+alt+t and do the following steps:
  • sudo add-apt-repository ppa:yannubuntu/boot-repair
  • sudo apt-get update
  • sudo apt-get install -y boot-repair && (boot-repair &)
Now a window will pop up after installation and it will give you the options. Choose whichever is appropriate and it will solve the problem.
It also provides link to the error log file from where you can know more of the problem or ask the community about it.

.......So don't worry next time...just do the steps listed above...If it does not solve ...leave a comment here..lets see to it..
/>...Cheers..

How to create a bootable USB pendrive in Linux

If it was windows, it would be much easier ...for we have the universal USB installer. In Linux, we can't use that: however, we need not worry, guys have done a great job by creating a much easier tool to do the work.

The tool is called gparted. It is a nice GUI tool to do our work. So lets see how we shall do it.

>Open the terminal .

>Now type: sudo apt-get install gparted
......This will install the tool ...well and good if you had it from before.

>Now type: sudo apt-get install-3g( gparted installed this as default for me...just see if it did for you).


>Now open the tool via: System>Administration>Gparted Partition Tool

>Now you are almost done....Click the File and choose the drive for the particular USB.

>Right click on the drive when it is enlisted. See Manage Flag menu and click to enable boot.

>Now go to Partition menu at the top panel and format the drive as ntfs . This will keep the work as pending operation ...click the correct sign above to start the operation...It will be done in a moment..

>Just  unplug and plug in the pendrive once and do the last step.

> Now you can just decompress the win7.iso file to your pendrive ...and it is bootable right away..

Wednesday, June 5, 2013

How to find the difference between two files from windows shell


Well I was just wondering how could I see the difference between two files in windows.
Searching the net, I saw some softwares  that would do the job for me..But I wanted simple and fast not so sophisticated ...

I found out we could do using a simple tool...fc..from the DOS prompt.
FC is a command to view the difference of two files or set of files..
So the steps are:
1> go the directory where the files are..
2>type
 fc first-filename second-filename
....and there you go..You will get the result each different section divided by line of stars..
...Its simple ...right??
I love it....The following explains the full usage method
-------------------------------------------------------------------------------------------
Syntax:

FC [d:][path]filename [d:][path]filename [/A][/C][/L][/Lb n] [/N][/T][/W][/(number)]

for binary comparisons
FC [d:][path]filename [d:][path]filename [/B][/number] 


FC reports differences between the two files you specify. FC first displays the name of the first file to compare. Next, it displays the lines that differ between the two files. Next, it displays the first line that matches in the two files. FC next displays the name of the second file, followed by the lines that are different followed by the first line that matches.
Caution:

The FC command requires enough system memory (RAM) to compare 100 lines. If system memory is limited, FC will make comparisons between the number of lines that can fit into available memory. Be careful of this!.

Options

/A
- Instead of displaying all the lines that do not match (in an ASCII comparison), the program displays only the lines that begin and end each set of differences.

/B - Used for a binary comparison of files. The files are compared byte-by-byte. Mismatches are displayed as a relative address from the beginning of the file. Unless you specify the /L switch, the program will automatically assume you want to use this type of comparison when the compared files have a .COM, .EXE, .SYS, .BIN, .OBJ, or .LIB filename extension.

/C - Ignores the case of letters in the compared files. All letters are considered as upper case.

/L - Used for an ASCII comparison of files. Unless you specify the /B switch, the program will automatically assume you want to use this type of comparison for all files that do not have a .COM, .EXE, .SYS, .BIN, .OBJ, or .LIB filename extension.

 
/Lbn - Sets the line buffer to n number of lines. The amount of memory used for holding lines being compared is normally enough to store about 100 lines. Use this option to reset the buffer (memory space) to n lines. If more than this number of consecutive lines is found to differ, the program will terminate the comparison and display an error message.

/N - Used to turn on the display of line numbers while carrying out an ASCII comparison.

/T - Turn off the display of tabs as spaces in an eight column display format.

/W - Compresses tabs and spaces during the comparison.

/(number) - The number of lines that must match after the program finds a difference between the compared files (if fewer lines match, the matching lines are displayed as differences). If you do not use this option, the number of lines to match between the files is two.

Example

To compare the text file A.html with the file B.html on drive D 

 type and press return key the following..

fc /l A.html D:B.html
for binary comparison of the files A.EXE and B.EXE, enter
fc /b B.exe A.exe

.....................................I hope this helps..
way to gooo...

GIT : Terminal Shortcuts..to help you..and us..


SHORTCUTS

Key/CommandDescription
Ctrl + AGo to the beginning of the line you are currently typing on
Ctrl + EGo to the end of the line you are currently typing on
Ctrl + LClears the Screen
Command + KClears the Screen
Ctrl + UClears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + HSame as backspace
Ctrl + RLets you search through previously used commands
Ctrl + CKill whatever you are running
Ctrl + DExit the current shell
Ctrl + ZPuts whatever you are running into a suspended background process. fg restores it.
Ctrl + WDelete the word before the cursor
Ctrl + KClear the line after the cursor
Ctrl + TSwap the last two characters before the cursor
Esc + TSwap the last two words before the cursor
Alt + FMove cursor forward one word on the current line
Alt + BMove cursor backward one word on the current line
TabAuto-complete files and folder names

CORE COMMANDS

cdHome directory
cd [folder]Change directory
cd ~Home directory, e.g. ‘cd ~/folder/’
cd /Root of drive
lsShort listing
ls -lLong listing
ls -aListing incl. hidden files
ls -lhLong listing with Human readable file sizes
ls -REntire content of folder recursively
sudo [command]Run command with the security privileges of the superuser (Super User DO)
open [file]Opens a file ( as if you double clicked it )
topDisplays active processes. Press q to quit
nano [file]Opens the Terminal it’s editor
pico [file]Opens the Terminal it’s editor
qExit
clearClear screen

COMMAND HISTORY

history nShows the stuff typed – add a number to limit the last n items
ctrl-rInteractively search through previously typed commands
![value]Execute the last command typed that starts with ‘value’
!!Execute the last command typed

FILE MANAGEMENT

touch [file]Create new file
pwdFull path to working directory
..Parent/enclosing directory, e.g.
‘ls -l ..’ = Long listing of parent directory
‘cd ../../’ = Move 2 levels up
.Current folder
catConcatenate to screen
rm [file]Remove a file, e.g. rm [file] [file]
rm -i [file]Remove with confirmation
rm -r [dir]Remove a directory and contents
rm -f [file]Force removal without confirmation
rm -i [file]Will display prompt before
cp [file] [newfile]Copy file to file
cp [file] [dir]Copy file to directory
mv [file] [new filename]Move/Rename, e.g. mv -v [file] [dir]

DIRECTORY MANAGEMENT

mkdir [dir]Create new directory
mkdir -p [dir]/[dir]Create nested directories
rmdir [dir]Remove directory ( only operates on empty directories )
rm -R [dir]Remove directory and contents

PIPES – Allows to combine multiple commands that generate output

moreOutput content delivered in screensize chunks
> [file]Push output to file, keep in mind it will get overwritten
>> [file]Append output to existing file
<Tell command to read content from a fi

HELP

[command] -hOffers help
[command] —helpOffers help
[command] helpOffers help
resetResets the terminal display
man [command]Show the help for ‘command’
whatis [command]Gives a one-line description of ‘command’

Macbuntu theme destroyed my Ubuntu

I have been using Linux on my PC using dual boot. This time I was using Ubuntu 11.10 ultimate edition. 
As like many windows users ..I have been tempted my Mac-OS..and I have been using Mac theme for my PC too..
Recently I got too ambitious and I went on to install Macbuntu theme for my Linux ...(I thought I could be satisfied than I did on my windows)...Lo....During installation ...It got too complex...many downloads...and that too ...unverified.....
After it was half way through ..the system tray could be seen...but it was not functioning at all...
.....It was going too frustrating ...so I did a force shut down...(It was the last time I could see my GUI ...)...After this, I could never go back to the gui...All it was left was the tty..(and what much could we do in there..??)..
I am careful now..I won't install any theme again...  
 

Blogroll

About