user-avatar
Today is Sunday
April 20, 2025

Category: Uncategorized

June 5, 2008

just thinking

by viggy — Categories: Uncategorized — Tags: Leave a comment

I just completed watching all 3 parts of Godfather. No doubt they are counted in the list of best movies ever made. Wonderful story and so well directed and acted. Over all a very good movie. I was just thinking about the way it ended. Michael lost his daughter whom he had always thought of protecting. I am going to describe about some roles in the movie and how i understood them.

I think about the 3 gangsters, Vito Corleone, Santino Corleone and Micheal Coleone. Vito Corleone was a very good person by heart and i liked the way he ruled. His decision to go against supporting Drug dealing was right but as we know it had very bad consequences on him and his family. This again raises an importent moral question. Can a person try to be good while working along with bad persons? This is a very importent question and i am sure you would agree with me if i say that a definite yes or no for this question cannot be given. Santino, on the other hand,was a person who loved his family very much, but he was a person who had power but not the patience to think before useing it which ultimately made him loose his life.

Now the main character, Micheal Corleone, a gangster who never wanted to be a gangster, but had to become a gangster to protect his family. He liked his father very much but didnt like his father’s work. But still he got involved when his father needed him. So now let me share with you the moral question that i have always been thinking about. What do you do when someone whom you like very much but is superior to you (in some or other way) is doing wrong? You have only 2 option, either support him in whatever wrong deed he is doing or leave him and try to lead your own life leaving all concerns about the person. Micheal’s daughter choose the first option and was killed whereas his son choose the second option and became a good musician. Both loved their father very much but choose different way to show their love. So which is right? What would his son do if Micheal was shot instead of his daughter and was badly injured?

We find similar examples in both Ramayan and Mahabharta. In Ramayan, we see how Bharath cuts off all his relationship with his mother for being so unjust to his brother Ram. Where as in Mahabharta, due to the support Dhritarastra gives to his son, Duryodhana, he loses not only all his sons but also his dynasty is washed off completely. So history and also as in Godfather suggests that, it is always good for you to leave a person who is very much involved in his bad deeds.

June 5, 2008

Wonderful Divisibility Rule

by viggy — Categories: Uncategorized — Tags: Leave a comment

I had always appreciated the orderness of decimal number system. And that is why i always believed that even number 7 should have a divisibility rule. And with this belief, i had tried many times to find it. Well i had actually never tried seriously, i spent time thinking on it only when i had nothing else to do like when i was travelling on the train or on the bus or when i was sitting idle in my village. However I never succeeded in getting any closer to a solution.
But still i maintained my belief. And i was awarded for it when i was once looking into tutorial for programming in basic c++ in topcoder here. After going through the tutorial, i looked into the sample programming problems . That is when i found this problem statement and the wonderful theory about decimal number system. The theory stated that, for a ‘n’-digit number,x, to be divisble by a number ‘p’, there should exist a set of numbers a={a1,a2,a3…,an; a1=1, ai<=p}

y=(X1.a1)+(X2.a2)+(X3.a3)+….+(Xn.an),

is divisible by p where X1,X2,X3 are the n digits of the number x. For example, in case of 7, a1=1,a2=3,a3=2,a4=6,a5=4,a6=5…. Consider X=357, so X1=7,X2=5,X3=3. So

y = (X1.a1) +(X2.a2)+(X3.a3)
= (7.1)+(5.3)+(3.2)
= 7+15+6
= 28 which is divisble by 7.
Hence X=357 is divisible by 7.

This divisbility rule can be applied to any number and is very useful if to find whether a big number is divisible by a another big prime number. I still have not understood the rule completely like what is the reason behind it and whether there exist a proof for such rule. But,really, I was very happy to know this proof. It just requires that you know the number set, a.
Also finding the number set,a, is very easy. For Example, consider that we have to find the number set,a, for p=13. We know that,always, a1=1. Also for any n-digit number, p, ai=pow(10,i), where i<=n. Hence in this case, a1=1,a2=10. To find a3, consider a 3-digit number which is divisible by 13, like 117. So X1=7,X2=1,X3=1. Hence y=(1.a3)+(1.10)+(7.1). So now solve the above Equation by substituting values for a3 which are less than 13, such that y is divisible by 13. We find a unique solution, which is, 9. Following the same method, we find for p=13, a1=1,a2=10,a3=9,a4=12,a5=3.

June 3, 2008

wget: wonderful utility to download web-pages to surf offline

by viggy — Categories: Uncategorized — Tags: Leave a comment

wget is a nice tool for downloading resources from the internet. The basic usage is wget url:

wget http://linuxreviews.org/

Therefore, wget (manual page) + less (manual page) is all you need to surf the internet. The power of wget is that you may download sites recursive, meaning you also get all pages (and images and other data) linked on the front page:

wget -r http://linuxreviews.org/

But many sites do not want you to download their entire site. To prevent this, they check how browsers identify. Many sites refuses you to connect or sends a blank page if they detect you are not using a web-browser. You might get a message like:

Sorry, but the download manager you are using to view this site is not supported. We do not support use of such download managers as flashget, go!zilla, or getright

Wget has a very handy -U option for sites like this. Use -U My-browser to tell the site you are using some commonly accepted browser:

  wget  -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html

The most important command line options are --limit-rate= and --wait=. You should add –wait=20 to pause 20 seconds between retrievals, this makes sure you are not manually added to a blacklist. –limit-rate defaults to bytes, add K to set KB/s. Example:

wget --wait=20 --limit-rate=20K -r -p -U Mozilla http://www.stupidsite.com/restricedplace.html

A web-site owner will probably get upset if you attempt to download his entire site using a simple wget http://foo.bar command. However, the web-site owner will not even notice you if you limit the download transfer rate and pause between fetching files.

Use –no-parent

--no-parent is a very handy option that guarantees wget will not download anything from the folders beneath the folder you want to acquire. Use this to make sure wget does not fetch more than it needs to if just just want to download the files in a folder.


Copyright (c) 2000-2004 Øyvind Sæther. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.

courtsey::http://linuxreviews.org/quicktips/wget/

May 19, 2008

(no title)

by viggy — Categories: Uncategorized — Tags: Leave a comment

got it from www.iqleague.com what a joke :):):)

May 19, 2008

Fund system followed in my village to share money among businessmen

by viggy — Categories: Uncategorized — Tags: Leave a comment

I came to know about this when i had gone along with my cousin-brother, Charan, for collection of money from his clients to whom he supplies banana as a wholesale dealer. After collecting money from some of his clients, he parked the bike near a hardware store. I went along with him inside the store which was packed with all sorts of electrical appliances. After looking around for a while, I saw that 2 men were sitting in a corner and another person was standing beside them. After listening to them for a while, i came to know that they were bidding on something and one of the person sitting was the auctioneer. He was increasing the amount as either the other person sitting or the person standing would make some indication. The bid amount had reached around Rs. 7500. The bidding process was going on very quietly and only the auctioneer was mentioning the amount very slowly. This made me very suspicious as to what they were bidding for. However Charan called me and said that we had to go to one more of his clients. I asked him what the 2 persons were bidding for. He told me that they were bidding for Rs. 1 lakh. He explained to me that the system is called FUND SYSTEM. A group of people, exactly 40, who are basically businessmen and who know each other very well, together make the fund system. Each one of them agrees to deposit Rs. 2500 every week which totals up into Rs. 1 lakh. So now anyone of them can borrow that money and use it for his business. He has to return it compulsorily after a stipulated time. All this happens on the basis of trust on each other. However if there are more than one person who wants that money for that week,which always happens(any businessman would want more money in his pocket), a bidding process takes place where both of them can bid for it in front of some other member of group who volenteers to become the auctioneer and the maximum bidder wins. For example, if a person bids at Rs.7500, it means that he is going to get only Rs. 92500, and still payback Rs. 1 lakh after the stipulated time. Charan told me that he also was a member of that fund sytem and he had actually gone to that store to pay his weekly dues, Rs. 2500. I asked him if he also takes out money from the Fund. He told me that he normally takes the money only when the bid price is very low. He added that the maximum bid varies from Rs. 800 – Rs. 8000. And then we reached one of his client’s shop and so he stopped the bike and he went to the store to collect money.
I still have lots of doubts about the Fund system like:

  1. What happens to Bid price?
  2. What is the stipulated time?
  3. When does he get back the money he has invested?

I will ask him when i next go to village and clear all the doubts. This surely looks like a very system where local businessmen can help each other but as i had mentioned earlier a lot depends on trust on each other.

May 16, 2008

re-installed suse, due to some bonobo-slay problem

by viggy — Categories: Uncategorized — Tags: Leave a comment

Well the problem i faced is exactly the same as descibed here.
Of course, the only difference was that i use opensuse10.3 distro and gnome as my desktop manager.

it all started when i tried to upgrade “Evolution” manually. But it had some dependencies missing, one of which was some bonobo file. i found it thru google and tried to manually install it also. however again i got some missing dependencies. and so i left it thinking i will try it later.
however when i started my laptop the next day, it worked perfectly well till the login screen. after i logged in as user, i got a pop-up message same as described in above link. unfortunate as i was, i didnt have internet connection that time and so couldnt search about it on the net. however i tried few things like the command bonobo-slay which was suggested in the pop-up message. however it didnt help. so then i thought of using the second suggestion mentioned in the pop-up which was to re-install “Nautilus”(it is a file manager, similar to explorer in windows). now since i had no idea how to reinstall a software in linux thru a terminal, so i tried experimenting with zypper command. i tried the command “zypper install nautilus” which gave the result as nautilus was already installed which was obvious. then i read the manual of zypper, in which it was mentioned that to remove a software i could use rm command. and what i did next costed me about 2 days and due to which i had to reinstall suse. i tried the command “zypper rm nautilus which asked me to confirm and also mentioned that it would free about 500mb of space. i should have cancelled the command as it was obvious that it would remove many more files but in my haste, i confirmed it and slowly i saw as many files related to gnome was removed. i then knew that i will have to re-install suse very soon. that was when i realized something else. i had not brought the opensuse10.3 dvd while coming back home. well i knew, i was in a very bad situation. so immediately i called my bro and asked if he could arrange a suse dvd from his friends. he told me that his friends had only Fedora8 dvd and i might get it after a week. well i accepted it as my worst case.
so again i started experimenting. in the evening, as soon as it was 9pm, i started my bro’s desktop which is in a very bad shape as it gets shut down automatically without any warning(sometimes doesnt even allow me to complete a single AOE match), i searched about the problem in google and that is when i found the above link. i tried as was told in the link. however i didnt know how to re-install nautilus-data, so i then logged in IRC. to my despair, kushal wasnt in #dgplug that day and so i couldnt expect any help from him. so i join #suse and #opensuse-gnome. when i asked my doubt in #suse, i got replies but they were unable to help as most of them used KDE as desktop manager. However i got a reply from a guy named hpj in #opensuse-gnome. and then for next about 5 hours, he tried to help me correct nautilus. it was really nice to see how a guy whom i barely knew spend so much time helping me, which made me understand why Open Source is going to rule the future. Everyone wants to learn and an easy way to learn is by teaching others. however geting back to my topic, even after spending so much time i wasnt able to repair my damaged system and i knew i will have to wait till i get fedora8 dvd.
however next morning i called up my school mate manu who is presently studying in NIT-K, and asked if he could arrange a opensuse dvd from his friends. well he surprised me by saying that he himself had the dvd which he had got along with Digit magazine. so i went to his house immediately and brought it and re-installed opensuse10.3.

however i learnt a lot of things by this venture.

  1. Never try to install files randomly, use yast. also i learnt that you can use yast thru terminal also.
  2. Also i learnt after i re-installed suse that my other drive which was also in ext3 format had all the data intact and i could easily access it. this gave me the idea that if i kept all my importent files in this drive i wouldnt loose it even if i had fucked my drive in which suse was installed. this actually is a very obvious thing and many of linux users might have known it right in their beginning days of using linux. however it took me about 8 months(during which i have installed suse around 8 times) to realize this.
  3. Everytime i re-installed suse, i had audio problem as my sound card was not recognized and some default card was used. however after some googling, i found here that apart from Alsa, i also needed to install Alsa-firmware which was needed for some older sound cards. I did as was told on the site and i got the audio working properly.

this was what i experienced in last 2 days. please note that i am still a noob at using linux, so please dont laugh at my silly but costly ventures. Also i would like to mention that i am also a noob at maintaing a blog, so please ignore any mistakes as a blogger i might have made.

March 22, 2008

webpages and blogs with importent information about linux

by viggy — Categories: Uncategorized — Tags: Leave a comment

configuring evolution——-http://gopalkoduri.wordpress.com/2006/06/23/configuring-evolution-mail-to-work-with/

how to install .tar.gz files——— http://www.linuxforums.org/forum/linux-applications/3868-download-but-how-do-i-install-tar-gz-files.html

how to create patches in linux————http://dapissarenko.com/resources/2004_05_04_patches/references/CompaqServersAndLinux2003.pdf

January 22, 2008

SOME VERY IMPORTENT SITES

by viggy — Categories: Uncategorized — Tags: Leave a comment
  • www.flazx.com (very good site for free ebooks)
  • www.sourceforge.net (good site to get linux softwares)
  • www.webpin.com (site for opensuse softwares)
  • www.bugzilla.org (site where we can report the bus found in linux)

networking related sites::

  • ipmango.com(site to know the details of a domain name)
  • http://web.archive.org/web/*/http://nettech.in (shows the web-site updates of any particular domain name)

January 3, 2008

some photos of idols of mangalore temples

by viggy — Categories: Uncategorized — Tags: Leave a comment

Lord Venkatramna, Karkala

Veer Venkatesh, Car Street, Mangalore

Venkatramna Temple,Mulki

December 31, 2007

My business plans

by viggy — Categories: Uncategorized — Tags: 1 Comment

Wholesale dealer::::

Well my constant thoughts about coming out of software industry made me think of another oppurtunity which i can harness. In our village, a general store owner buys the goods from different ‘line sellers’.That is,
there are different line sellers who buy goods from the distributors and then they distribute it to different general stores in the village and the neighboring villages. This system increases the number of people in between the customer and company due to which the customer has to pay more as the line seller will add his own profit.
But what i thought was what if this line sellers could be eliminated by one person getting all the goods from the distributors(or company) and directly sell it to the general store owners.
This has many advantages:
1) The shop owner will not have to deal with many line sellers, instead he only has to deal with one single distributor who will deliver all the goods ordered by him to his shop.
2) The shop owner can also be given debt by the distributor which the line seller could not provide as line seller himself had to make payments to the distributor.
3) The cost of the product becomes less as the distributor will be buying goods in much more quantity from the company then the line seller as his market is more bigger and not restricted to some villages.
This has some disadvantages or problems to overcome also:
1) Many line sellers will become unemployed which is matter of concern as line selling is usually their only means of earning. Though the wholesale dealer can employ them but he wont be able to give them the same salary as much they earned during line selling but he can assure them guaranteed salary as against the profit which was very much depended on season and the market.
2) Huge capital is required. As a big place is required to store the goods and it should be in a very strategic place, so that it is comfortable to go to all the villages from there. A truck is also required to deliver the goods.
3) Loyal and efficient man power is required which is very rare in India.