Tuesday, March 31, 2009

Cookie issue

The problem i am running into now is absolute timing of cookie...
How to renew cookie each time the user refresh the page or submit the request.

Microsoft SilverLight tools....

Right now i am working on microsoft silverlight toolkit examples...

Sunday, March 29, 2009

@INC in perl

@INC is location of all library modules....
Perl's use and require statements reads this array variable to find the location of all the library modules...

Traceroute

The good sight to obtain traceroute on the network...
http://tracert.com/trace_exe.html

Traceroute gateway is some piece of software which one can install in order to access the traceroute stats of that machine from a remote location.
POP vs IMAP vs SMTP

POP is protocol for downloading the files from ISP or email provider
SMTP is way of sending/uploading mail to email provider....
IMAP is also for downloading the files but it leaves a copy of message on the server so mail can be accessed from multiple machines.

All of them application layer protocol...

ISP POP is point of presence... Internet big picture is explained on this page... wonderful... http://navigators.com/internet_architecture.html

Saturday, March 28, 2009

http://www.inetdaemon.com/tutorials/internet/ip/routing/interior_vs_exterior.shtml

Interior routing protocol:
OSPF or RIP...
Generally OSPF as it multicast only the change in routing table unlike RIP where whole table is sent periodically in the network.

OSPF also allows to add extra cost parameters to routing table entries or paths.
we can use link state or distance vector approach for generating routing table.

Thursday, March 26, 2009

preventing memory leak in c++

http://www.ehow.com/how_2190610_prevent-memory-leaks-c.html

THis should help a lot./..

Tuesday, March 24, 2009

Recently while drawing graphs for my research results, i came across problem of drawing confidence interval graphs and excel sheet references from other documents.

For confidence interval graphs --> i watched two you tube videos whose link i have posted earlier.

For fetching data from different excel workbook sheet to current one, i used referencing approach...

=[pathto workbook]sheetno!cellnumber

Thursday, March 19, 2009

perl CGI coookies

http://www.devdaily.com/perl/edu/articles/pl010012/

This is the link which helped me in reading cookies using perl CGI

Wednesday, March 18, 2009

General C++ errors

1. Request member non-class type… C++

use -> instead of .
It also occurs when u call a non-const method using a const object.

2. error: expected primary-expression before '.' token

You have not created the object of class and you must be trying to access some member of class.

3. Use smart pointers from STL if you wanna avoid the headache of deallocating the pointer.

4. Use clear() to call deconstructor of all the object of a vector class.

Will post other later/....

Tuesday, March 17, 2009

Book and examples for better understanding of CGI.PM module

http://www.wiley.com/legacy/compbooks/stein/source.html

Try to run and read all the source code given on this page.
This will give a better view of CGI.PM

Monday, March 16, 2009

Confidence interva graph

http://www.mste.uiuc.edu/courses/ci407su02/students/mckechni/TermProject/ConfidenceInt/Teacher.html

Look here to draw a confidence interval graph

Saturday, March 14, 2009

C++ exercises and book concept

http://gd.tuwien.ac.at/languages/c/c++oop-pmueller/

Read it sometime.

Thursday, March 12, 2009

Client side validation

A good tutorial and way of doing client side validation
http://www.xs4all.nl/~sbpoley/webmatters/formval.html

Tuesday, March 10, 2009

Quote .. a Wonderful quote

"Individual who does not know how to die, does not know how to live"
--Emerson {quoted in Discovery of India}

"We are what we repeatedly do. Excellence then, is not an act, but a habit"
--Aristotle the great


"A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty."


"The acquisition of knowledge, or any achievement,
requires restraint, self-suffering, self-sacrifice."
--Hindu UPNISHADS


"If you're walking down the right path and you're willing to keep walking, eventually you'll make progress."
States President Obama


"Those who aim high, have to learn to walk alone too"
Dr. A.P.J. Abdul Kalam {India 2020}

"Life is action
and passion."

Oliver Wendell Holmes Jr. (1841–1935)
U.S. Supreme Court judge


It's kind of fun to
do the impossible."

Walt Disney (1901–1966)
Entrepreneur, movie producer and showman

"The key to success is for you to make a habit throughout your life of doing the things you fear.“

Vincent Van Gogh (1853-1890)
Dutch painter
first career: art salesman

"If we wait until we've satisfied all the uncertainties, it may be too late."

Lee Iacocca (1924 – )
Businessman and industrialist

"An investment in knowledge pays the best interest."

Benjamin Franklin (1706-1790)
American statesman, writer & scientist

"I not only use all the brains I have but all that I can borrow."

Woodrow Wilson (1856-1924)
28th U.S. President from 1913-1921

"You don't need to push, they will recognize talent."

"There is no rocket science."

"Think twice before you speak."


"You can tell a man is clever by his answers. You can tell a man is wise by his questions."

Naguib Mahfouz (1911-2006)
Egyptian novelist, Nobel Prize Laureate

"You cannot create experience. You must undergo it.“

Albert Camus (1913-1960)
French writer

"You can't build a reputation on what you are going to do.“

Henry Ford (1863-1947)
American industrialist, inventor

“"Everything that irritates us about others can lead us to an understanding of ourselves."

Carl Jung (1875 - 1961)
Swiss psychiatrist

A business is in business to… “Maximize shareholder wealth"

Milton Friedman (1912 – 2006 )
Nobel Prize winner for Economics

"Don't let what you cannot do interfere with what you can do."
John Wooden (1910 – )
Hall of Fame basketball coach

"We are all faced with a series of great opportunities brilliantly disguised as insoluble problems."
John W. Gardner (1912–2002)
Government official and activist

"The man who removes a mountain begins by carrying away small stones."
Chinese proverb

"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein (1879-1955)
German physicist, Nobel Prize winner

"Only a mediocre person is always at his best."
W. Somerset Maugham (1874-1965)
British writer - highest paid author in the world during the 1930s

"Few things are impossible to diligence and skill. Great works are performed not by strength, but perseverance."

---Anonymous

Last impression is first reaction.
--Saurabh Jain

Smile :) and the world will smile back at you !
--Anonymous

Padinga likhiga baninga hoshiyaar.. kheligaa kudingaa baningaa gawar..
--Nanaji

Padoge to aapku, naa mai ku naa baap ku..
--Nanaji

"The excess of virtue is a vice." ~
--Aristotle

"A ship is safest at the shore but that is not what it is built for"
--taken from profile of someone

"To exist is to change, to change is to mature, to mature is to go on creating oneself endlessly."
-- Henri Bergson
French philosophers of the late 19th century-early 20th century

"BE KIND, FOR EVERYONE YOU MEET IS FIGHTING A HARD BATTLE"
--Plato

"Remember a correct decision need not be the best decision."

"If you are not ambitious, I will not be inspired by you."
--'Cho' Ramaswamy

"A good looks and sense of living gives an additional confidence to overall personality."
--'Neeraj Jain'

"The greatest mistake you can make in life is to be continually fearing you will make one."
--'Anonymous'

"Confidence is the key. One must be very confident about what one is doing."
--'Yusuf Pathan'

"If A equals success, then the formula is _ A = _ X + _ Y + _ Z. _ X is work. _ Y is play. _ Z is keep your mouth shut."
--'Albert Einstein'

"Dreams are not those which comes while you sleep...Dreams are those which dont let you sleep."
--'Kabir's Orkut profile'

"A promise is a debt unpaid"
--'Orkut'

"If you have never failed, you have never lived"
--'Vishesh's status'

"Success is not final, failure is not fatal: it is the courage to continue that counts"
--'Orkut profile'

"Every society is judged by how it treats it's least fortunate amongst them."
--'Email thread Ashish'

"The important thing is not winning, but taking part; the important thing in life is not conquering, but fighting."
--'Lawyer Nariman'

"Great man never look at person's exterior, they think of his heart"
--'Narayan Hemchandra'

Monday, March 9, 2009

Real Technology Day

This was the easiest class for me. Almost all the topic which were discussed are listed somewhere in my profile.
Autonomic Computing: My intern in IBM Extreme Blue program. This was exhilarating experience and here i realized how big organization works and what it takes to lead these Organization. I am lucky that i started my Career with something like Extreme Blue IBM.

Grid Computing: My immediate next work after internship. My undergraduate senior year thesis was on this topic. Though in lack of guidance i could not learn much but i still managed to understand the basic theory and concepts of Grid Computing.

Virtualization: My first experience after coming here. I started my class project on this theme. Though technological aspects changed later but theoretically i worked on the same.

Cloud Computing: Read a number of papers on this last semester. My present work largely targets cloud services in the network.

I loved the "did you know?" Video. It was excellent class. I hope this class extends to whole semester because it was always relieving for me after those technology and Computer science boring classes to attend this one.

Saurabh

Excellent quoes

All the great things are simple, and many can be expressed in a single word: freedom, justice, honor, duty, mercy, hope.
__Winston Churchill


Attitude is a little thing that makes a big difference.
__Winston Churchill

Continuous effort - not strength or intelligence - is the key to unlocking our potential
__Winston Churchill


If you are going through hell, keep going.
__Winston Churchill


In war, you can only be killed once, but in politics, many times.
__Winston Churchill

Best link i found:
http://www.brainyquote.com/quotes/authors/w/winston_churchill.html

OMNET++

Problem in tutorial is that deprecated function are used. Correct function are getName and getIndex which do not conflict with C++ string header file. Try with this and see it'll work.
Also simulation terminated 139 error suddenly disappeared. I have no idea how it happened but overall it might be due to cleaning project again and again and running project after doing some changes.

Virtual methods in C++ cause more RAM consumption WHY??

http://www.alexandersandler.net/how-inheritance-encapsulation-and-polymorphism-work-in-cpp

The reason is when you use virtual method in class then compiler puts a "virtualmethodtable" at the beginning of each instance of class. This leads to increase in size for each instance by 4-8 bytes and hence overall size increases largely.

Sunday, March 8, 2009

Trying hand on OMNET++

Problem: C++ files were not recognized.
Solution: Created a project OMNET++ with C++ support.
Corrected the name of network in .ned file and it worked successfully.

Saturday, March 7, 2009

Model view Controller architecture

model view controller architecture
In the model view controller architecture:

Controller: java servlets
Model; businessLogic + database
view: JSP

Java servlets can also be used as a view component but their are inherent complexities in writing web based code in java servlets.

Wednesday, March 4, 2009

Lock Down

Class was wonderful. Presentation by Oscar helped in understanding SOA's practical aspects which i hope would help me in visualizing things in my SOA assignment for one other class.
I liked the exercise using threads which shows how complex things get when there is no order or standards defined but i felt like its all matter of visibility. SOA is no magic stick which rooted out all complex interfaces or business intricacies. It just helped managerial people to focus on what they are supposed to do... Manage...
All the complexity and problem is passed to the Technology guys who will have to think harder on defining appropriate interfaces between different modules to create a generic String/ Bus/ stabdard/ application/service using which a other business component can process data.
SOA just provide a unified view of whole organisation.
As usual .. i liked the discussion section and i agree with the supreme court that closing down the website because it should not be allowed to interfere other businesses.
I liked message lab article and i have a detailed stats on it. I'll post it from later. Right now i have bus in 7 min. and i have to pack my laptop, all stuff and run to bus stop. Note it .. this is the last bus and if i miss this then i wont be able to reach home tonight...\
c ya later

Monday, March 2, 2009

Second Life vs. Play Station virtual world
After watching a fair number of video and reading online reviews of both the product, i prepared a list of similarities, differences and business opportunity in both the media applications.

Second life:
1. User driven community, more freedom to users.
2. Larger audience as it is intended to all ages and not limited to gaming and social networking.
3. Sex and violence sales.
4. Attractive to real-world companies. Some holds their meetings and bought lands as well.
5. Robust economy model. Users can earn money as well.
6. Better replica of real world then virtual world. Almost every activity can be monetized. Example: advertising, gaming, clubbing, real-estate.
7. 15 million accounts but large scale user registration decline seen in recent quarters.
8. Bit tedious and crowded.

Virtual World
1. Less freedom to user.
2. Originally intended for play stations user community but may adapt second life model in future.
3. No sex, no violence. Mainly for Sony and it's trade partners.
4. Main economy model revolves around gaming and advertising.
5. User looking for psychological relief of being oppressed or pursuing something which they can not pursue in real world would not prefer virtual world.
7. Already having a established user base of PS3.
8. More attractive and easy to use.

Business Model:
SL:
1. Better economy model as countless number of ways to make money. Better replica of real world and more freedom to user enables a better economy model.
2. Larger audience. Nudity, sex makes it attractive to many.
VW:
1. Limited view of real world. More inclined to Sony music and advertising business. Sometimes viewed as a side product to support PS3 community.
2. Limited audience.No nudity, no Violence. Less options for customizing.
3. Potential to leverage established user base of 102 million PS3 users.