Wednesday, June 22, 2011

PDF Splitter

Many a times we need to split PDF files. We don’t have adobe full version to work with.

There are two ways we can do this.

a. Install and PDF printer and then print page by page. This is tedious but still workable.

b. A better solution is to download PDFSam. Please goto this site.

The beauty of this solution is as follows

1. It is free and open source

2. It promises what it does with no hidden catches.

So next time you want to split (or merge PDF’s) do use this. You may want to get some pages from a manual and send to a customer. You may want to split a huge book into chapters so that they consume less RAM while opening or less space on mobile devices.

Wednesday, May 18, 2011

Installing Apache and Perl. The easy way.

Below are the steps to get Apache and Perl running in simple steps. I am running all commands with root access. (sudo bash). In real life it is recommended that use sudo. So preceede all commands with sudo.

1. install apache-2

apt-get install apache2

2. start the apache server

/etc/init.d/apache2 start

3. In case you make changes you can either restart or just reload the apache2 server

/etc/init.d/apache2 stop

/etc/init.d/apache2 restart

/etc/init.d/apache2 reload

4. To remove apache2. Do not remove the /etc/apache2 folder

apt-get remove apache2

5. In case you remove the /etc/apache2 folder, you may not be able to reinstall the apache server. In that case do the following.

apt-get remove --purge apache2

apt-get remove --purge apache2.2

apt-get remove --purge apache2.2-common

6. Perl is already installed by default. You can do the following to do a test.

perl -h

7. You will need libraries for perl to work with apache2.

apt-get install libapache2-mod-perl2

8. Important Locations

   a.  /var/www is the default folder for apache.

   b.  /etc/apache2/apache2.conf  is the configuration file.

   c.  /etc/apache2/ports.conf  is the file which talks which port apache2 listens. By default it is 80.

   d.  /etc/apache2/sites-available  is the folder where you put the sites available.

9. Open a browser and enter http://127.0.0.1/   and if you see It Works. Apache is installed successfully.

10. You need a FQDN (a domain name). Let us say for testing you are using the domain skranga.test.com Then do the following

    in the /etc/hosts file.

127.0.1.1 ubuntu

192.168.101.133  skranga.test.com   myserver

How does Apache know that you want to use your hostname as skranga.test.com (in the above example).

To do this. Open the /etc/apache2/apache2.conf and add the following line anywhere.

ServerName  "skranga.test.com"

11. Goto the /etc/apache2/sites-available  folder

    Open the file default

-------------------------------------------------------------------------

ScriptAlias /cgi-bin/ /var/www/cgi-bin/

<Directory "/var/www/cgi-bin">

AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

AddHandler cgi-script cgi pl

Order allow,deny

Allow from all

</Directory>

------------------------------------------------------------------------

Note :  Edit the ScriptAlias so that you give the folder where you will have your scripts.

        In the above case it is /var/www/cgi-bin. You have to create the cgi-bin folder.

mkdir /var/www/cgi-bin

        Add the line, AddHandler  cgi-scripts  cgi pl

        (this tells apache to execute the files with extention cgi or pl)

         Also if you read the full file, you will see a line like this.

        DocumentRoot /var/www

       This means all your html files will be in this directory.

12. Now to test everything is running, do the following.

a. goto the /var/www folder. Edit the index.html file. You can use test code like this.

---------------------------------------------------------------------

<html>

<body>

<h1>Welcome to Apache2</h1>

<p>---------------------------------------------</p>

<p></p>

<br>

Click <a href="http://skranga.test.com/cgi-bin/test.pl">Here </a>

</body>

</html>   

----------------------------------------------------------------------

In the /var/www/cgi-bin folder, add the file test.pl, with the following contents

#!/usr/bin/perl

print "Content-type: text/plain\n\n";

print "testing...\n";

Save it. and give it execute permissions.

chmod a+x test.pl

13. Now open a browser and enter http://skranga.test.com/  and you should see the page ("Welcome to Apache2")

    And when you click on the link, it should execute your script.

=========================================================

Comments/Suggestions/Errors. Please write to .

Suresh Ranga

skranga2011@gmail.com

8th May 2011.

(No Copyrights on this document, Please use freely)

=========================================================

Saturday, May 07, 2011

Apache on Ubuntu. Install/Uninstall

=> i like to change to root, though this is not recommended. please use sudo.

skranga@ubuntu:~$ sudo bash

[sudo] password for skranga:

=> get the version of ubuntu

root@ubuntu:~# cat /etc/issue

Ubuntu 10.10 \n \l

=> install apache now (please add sudo before the command if you are running as root. Please be patient it can take time to install the software, on a slow connection.

root@ubuntu:~# apt-get install apache2

Reading package lists... Done

* Starting web server apache2 [ OK ]

Setting up apache2 (2.2.16-1ubuntu3.1) ...

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

=> Open a browser and enter http://localhost

If Apache is installed successfully you should see something like this

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

=> How to start, stop and check status of the Apache Server.

root@ubuntu:~# /etc/init.d/apache2 status

Apache2 is running (pid 13872).

root@ubuntu:~# /etc/init.d/apache2 stop

* Stopping web server apache2 ... waiting [ OK ]

root@ubuntu:~# /etc/init.d/apache2 start

* Starting web server apache2 [ OK ]

root@ubuntu:~#

=> How to uninstall Apache. I selected no in the below example. You should select Yes if you wish to uninstall it.

root@ubuntu:~# apt-get remove apache2

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

apache2-mpm-worker libapr1 libaprutil1-ldap apache2-utils apache2.2-common libaprutil1-dbd-sqlite3

apache2.2-bin libaprutil1

Use 'apt-get autoremove' to remove them.

The following packages will be REMOVED:

apache2

0 upgraded, 0 newly installed, 1 to remove and 323 not upgraded.

After this operation, 36.9kB disk space will be freed.

Do you want to continue [Y/n]? n

Abort.

Saturday, April 16, 2011

Prince of Persia

I am not talking about the movie. I am talking of the game that we used to play on DOS. Some of us still like to play this game. But unfortunately our Mac’s and Windows would not run it for us. So how do we do it?

There are two ways.

1. If you are using VMWare then you need to download a VMAppliance, called Nostalgic and run. Your favourite games are all there. Now click here to know more about the appliance.

2. But for lesser mortals there is another way if you are not running VMWare. You need a DOS emulator. DOSbox is the solution. Go to this place and download the DOSBOX. 0.74 is the latest stable version. Next download your game, in our case Prince of Persia from here. With a little effort you can locate more games.

So it’s time you need to rush and rescue the princess.

image

Thursday, April 07, 2011

E-Books Converter

Many of us like to collect e-books. Most of them are in PDF format. But if you are the person who like to read the e-books on other devices like, iphone, android phones, tablets, nokia phones etc, then you might want to convert the books to a format that is friendly with the form factor (screen dimensions) of the device.

There is one excellent software, I recommend highly, called calibre.

image

So what to do now?

a. download the software from here.

b. Install and run it.

c. Select a PDF. Convert it to epub format. Use iTunes, and bring the epub to iphone, and read it there.

A good place to start is with the hundreds of manuals in PDF format that we read everyday.

Tuesday, April 05, 2011

Browsers maturing.

So finally customers are having an upper hand while surfing internet. All these years, we had no choice. The browsers were driven by companies needs and less by privacy. It was not un common for sites to collect information with or without our consent. And the list of browsers was very much limited.

Firefox 4 and IE 9 have finally passed the control to us. The basic question is now like this.

a. Do we want sites to collect information on what we are doing on the net? Obviously the answer is NO. These two browsers allow us to browse freely. At least we are not bothered on who is tracking our movement.

b. Do we want Ads to keep coming up when and where we like? Definitely NO again. These two browsers let us do this. Try surfing any site, news paper, blogs, e-commerce and a host of sites with videos come up and running. And you are in a meeting, and this video starts to play with audio.

What about other browsers? Safari, Chrome etc etc. They are not yet there. So what should you do next.

a. Update your browsers if you are using IE or Firefox.

b. Move to these browsers if you are using others.

And drill down and make your settings. If you want to know how, then I will post that too.

Monday, January 10, 2011

Manoj Purohit - Rest In Peace

It has been an extremely sad today today. My cousin brother and a dear friend, Manoj Purohit passed away. We stayed together in 1994. I stayed at their place when I had shifted to Mumbai looking for a job. We used to go together to the town. And then for the next couple of years, I stayed a stone's throw from his house. We spend quite a time together.

And he got married, got a son. And all the time we were together. I left Mumbai in 1998 and then it was a touch and go meeting. The last time we met together was in 2010. That time I had been to his place, and we had dinner together.

He never expressed any feeling outside. He took everything to his heart. After my Aunty passed away in 2003 he took the loss to his heart. He did his business. He achieved a lot of success and made a lot of money as well.

I pray for his soul. And God give strength to his immediate family on this great loss. Bye Manoj.


Thursday, December 23, 2010

Analysis 2010

2010 had lots of surprises. I have written this to let you know what has affected me. There were lots of things that I liked to include here, but then on a second thought I decided to leave them aside. The list is not in any order.

1. My friend Vivek Kalla interest in music really surprised me. I used to think he was a part time singer. But seeing him as a  judge and mentor in the Marwar ki Awaj, really impressed me. I have given links to some of the you tube videos at the end of the article.  Vivek Kalla is very knowledgeable man. He is down to earth, and means what he says. You don’t see him using foul language. With a great sense of humor a gift of gab, he is no wonder famous.

2. VSP or Virtual Storage Platform, is a new Storage Box, released by Hitachi Data Systems. The box got released at the end of Sept this year. It has not only changed the rules of Enterprise Storage, but also put some freshness in the Enterprise Storage Market. Forward thinking, the product will be a milestone when history of Storage will be written.

3. iPAD brought a lot of changes this year. My kids moved over to it. The laptop lost respect. Tablet became the new darling. Many times in our life and our career things become so much routine, that we false assume we have reached the peak. And then there is a iPAD and suddenly all our whitepapers, best practices, notes, become outdated.

4. This year I delved into the depths of photography. It was a touch and go relation all these years. This year was when I started to understand and analyze photos. Buying equipment is easy, getting out a piece of art from it is difficult, but comparing two pieces of art is the climax.

5. Though being an Apple fan, I started to code in Android. Vikram should be thanked for the interest. As Android apps started to be developed and ported to the device, and they started to run gave an immense sense of satisfaction.

6. At the personal front with families and friends, this year had nothing to offer. Relations went bad, friends got lost, trusts eroded and loneliness crept in some times. At this time it is difficult to say whether the pit has reached and more has to be travelled.

7. Pokharan, Ramdeora, Bhadariyaji, Tinwari, Jodhpur, Bikaner and Phalodi were a dream come true.

8. Loss of Atmandaji was deeply felt. One more link to my Grandfather and Grandmother has been lost. But meeting both my Nanaji, Bachraji took back to the golden days.

 

There ends this year.

 

Links.

1. Kallaji.

 

 

 

3. iPAD

 

 

4. Photography.

http://itunes.apple.com/us/podcast/the-art-of-photography/id294540619

5. Android.

image

 

8 Atmanandji.

image

Sunday, October 03, 2010

Common Wealth Games 2010



The Commonwealth games start today. This is the 19th edition of the games.
The last time I attended the games was in 1998 when they were held in 1998.
It was in Kuala Lumpur and I had gone to see the Hockey Match at Bukit Jalil.

Even though there have been stories of all wrong reasons in the media regarding
the games, but still I feel it is a reason to be proud of. The main reasons are
- no country has withdrawn
- the games have not been delayed.

Now the games have to be conducted well. It would help for a few things.
- be a test if we can go ahead and conduct the olympics.
- new infra would help young players to have world class amenities.
- we will be known in the world, that other than IT we can do many more things.

We have already seen a lot of improvements in terms of
- T3 at Delhi Airport.
- Wider highways
- Green Busses etc.

So let us enjoy the spirit, love the games, and hope for the best.


Tuesday, September 28, 2010

Virtual Storage Platform

Hitachi Data Systems (HDS) announced the Virtual Storage Platform (VSP) today.
It is an important event in the storage industry as a whole.
There are lots of new features, both in terms of hardware and software.

Wishing all the best of the success of the box. Please see the link.

Read More here

Friday, September 24, 2010

Swami Atmandji Amar Rahe

I am posting this email, I received today. It is a sad news. I knew Swami Atmanandji from my school days. I have some photos of him, that I will post. I met him last on 4th Sept 2010. He was frail. He had not been keeping well for quite some time. My father has been very close to him for long. He will miss him more than I do. But then that is the truth of life. Atmanandji is now back with his Gurudev. Swami Hariharji Maharaj.

We can take solace in Gita Ch2 Verse 23

नैनं छिन्दन्ति शस्त्राणि नैनं दहति पावकः।
न चैनं क्लेदयन्त्यापो न शोषयति मारुतः।।
nainam chindanti śastrāNi nainam dahati pāvakah.
na cainam kledayantyāpo na śoshayati mārutah..


---------------------------------------- email contents here--------------------

23-9-2010

VERY VERY URGENT

(BY EMAIL)



IMPORTANT SAD COMMUNICATION TO ALL THE HON’BLE TRUSTEES OF GEETA DHAM TRUST AND THE HON’BLE MEMBERS OF GEETA ASHRAMS AND BLESSED DEVOTEES LOCATED IN INDIA AND ABROAD.



Dear Hon’ble Trustees and Hon’ble Members and Blessed Devotees,



JAI SHRI KRISHAN JAI GURUDEV



We are extremely sorry to convey very sad news to you regarding the unfortunate sad and sudden demise of Most Respected and Revered Swami Atmanand ji Maharaj, a Senior Disciple of His Holiness Gurudev Maharaj Shree and Hon’ble Trustee of Geeta Dham Trust, and accredited Hon’ble Member of Geeta Ashram, Headquarters, Delhi Cantt, and Geeta Dham who had been very ill for quite some-time, and who has very unfortunately passed away this evening in Jodhpur Hospital. Any further programme in this connection will be conveyed to you soon.



Whereas, we are very sorry to convey this sad news to you at this hour, we thought it necessary to apprise you with the latest situation about Revered Swami Atmanand ji Maharaj’s health as he was very unwell for quite some-time. We all pray for peace to his departed Soul and pray to His Holiness Gurudev Maharaj Shree to give him shelter and take him under His Holy Lotus Feet and render to him Divine Place in the Heavens.





Yours in the Service of

Guru, Geeta and Gopal



(G.K. Wattal)

Hony. General Secretary




Geeta Ashram
New Delhi
India

-----------------------------------------Hari Om Tatsat---------------------------

Saturday, July 17, 2010

No Blogging for a while

For almost two months I have not posted any thing.
I was thinking on some projects.

But sure enough some things of interest managed to do.
I had a old laptop. Old means almost 6 years old. It
is a pentium with 256MB of RAM and 40 GB of HDD. But yes
there is wifi. I had purchased this laptop when I was in
Malaysia. Brand is no brand. It looks like a Taiwanese Brand.

So did not know what to do with it? Tried OpenSolaris with
a bit of tweaking but it refused to go beyond the live cd.
Reason, not enough resources. Tried Ubuntu 10.04, but some
how it failed to get in all the drivers.

Finally managed to make it work with ubuntu 09.04. It has
gone with 0 issues. Works fine.

What do I use it for?

Currently I have downloaded the GNU compilers for C. So good
for doing some old stuff.

Wednesday, May 12, 2010

T20 World Cup

We are out of T20 World Cup.

It is so pathetic that we are not able to reach the top 8.

We have an IPL. We play so much cricket yet somehow are not able to reach the Top 8.

I think some of the reasons are as follows.

- you don’t see the players motivation to win. I am sure in IPL itself they would have plenty of money, got a lot of name and fame. So the driving force is missing.

- Too much of cricket is killing the sport. It is more of a commercial rather than sport.

We played three games and lost all three.

 

What happens next?

There will be press conferences. People will blame each other. News papers will print, what they understand and what they like. And the game, people behind it, players all remains the same.

Alas………….

Saturday, March 27, 2010

Kavi Sammelan in Singapore

Tommorow there is a Hasya Kavi Sammelan in Singapore. Sh.Surendra Sharma will be coming. Any one interested please see this site. http://www.charkula.com/

Tuesday, March 16, 2010

Friday, February 19, 2010

Eden Gardens : India is back at No.1

India return SA with the same coin by defeating them with an Innings and 54 runs to spare. In my previous post I wrote that it is not win or loss but the margin that counts.

In this test, Indians came out hard on SA, knowing that a loss would bring them to No.2 in tests. It is good to rise in rankings in your home country, but to come down is definitely not encouraging.

 

Any way this has been a encouraging news this week after all the sad news of loss of life of Jawans and Villagers in naxal hit violence.

Just like cricket in all aspects of life, we need confidence.

Wednesday, February 10, 2010

Nagpur Test. What a defeat.

South Africa Beat India in the Cricket test at Nagpur by an innings and 6 runs.

It is not the matter of win or loss, each game has it. It is the margin that counts.

1. South Africa had just two bats men who scored almost all the runs.

2. India had 22 players who could not score that many runs.

3. And we have the best batting line up. :(

4. No comments by the players after the loss.

5. We lost in four days on a batting pitch.

So let us rethink next time on cricket and our players who cannot deliver when it is needed most.

Friday, January 29, 2010

Oracle completes SUN Acquisition.

Jan 27th 2010.

Oracle completed the acquisition of SUN.

We need to see in future how Oracle goes around deciding on the vast technology and portfolio resources that are with SUN. Which products are prioritized, which products are going to be dropped, which will be re-bundled. It will be difficult to satisfy everyone, customers, employees and itself. The next few months will be news for the technical prints and journals around, speculating and analyzing.

 

But somewhere deep in heart you feel that if a giant like Sun, that drove technology for so many years, not being there gives you the sense of how technology companies are so un sure. What about the small companies? You are everything today and nothing the next day. An important lesson to be learnt. University scientists create technology and the universities are there long after the scientists have left. Scientists in the Companies create technologies and the companies are long gone before the Scientists leave.

       image