Friday, September 19, 2008

The Last Lecture - Randy Pausch

At Carnegie Mellon University professors are asked to give lecture on what wisdom they could give when they know that this is going to be their Last Lecture.

Had you been a professor what would you do given this kind of opportunity, well you would try to give your best!!!!!.
However no one would ever be able to deliver the best they could, unless and otherwise they knew that this is really going to be their Last Lecture, and how do any one know that this is going to be their Last Lecture unless they could peep into future and see why they wont be able to do this.

But there are exceptions like Dr.Randy Pausch. Dr. Pausch took the podium just months after receiving a diagnosis of terminal pancreatic cancer in August 2006, he passed away on July 26, 2008 at his home surrounded by his wife and three children.

When he was requested for the Last Lecture. He hesitated, then went ahead with the lecture, on Sept. 18, 2007, he learned he had months to live. Have a look what he did in his Last Lecture on youtube
here... which got record number of hits from all over the globe.

He spoke about:
1) His childhood dreams and how he achieved them
2) Helping other achieve their childhood dreams
3) He spoke of his love for his wife whom he noted would soon be his widow and had a birthday
cake for her wheeled on stage as last day it was her birthday and he could not do any thing as
he was busy preparing for this lecture, so he decided to celebrate her birthday along with the
huge crowd on the next. His wife broke into tears on the state as it was a surprise for her.
4) He spoke of their three young children, saying he had made his decision to speak mostly to
leave them a video memory

Few statements he made:
1) You cannot change the cards you are dealt. Just how you play the hand.
2) Don't complain. Just work harder.
3) Luck is truly where preparation meets opportunity.
4) Experience is what you get when you didn't get what you wanted.
5) The brick walls are there for a reason. The brick walls are not there to keep us out; the brick
walls are there to give us a chance to show how badly we want something. The brick walls are
there to stop the people who don't want it badly enough.

His last statement :
"Did you figure out the head fake? It's not about how to achieve your dreams. It's about how to lead your life. If you lead your life the right way ... the dreams will come to you. Did you figure out the second head fake? The talk's not for you. It's for my kids."


Randy's Diary :
Have a look at Randy's diary here...

-sun

Thursday, September 18, 2008

Lost your laptop? Here's help...

The answer is - Adeona!!!!! named after the Roman goddess of safe returns.

Adeona is the first open source laptop tracking system and very easy to use. The user has to install the free software which is available below and save the credential key some where either in a thumb drive or mail it to self. The credential key can be used with the tracking client which is bundled with Adeona to track the laptop. The software uses many methods for laptop tracking for e.g. It can note the IP address where the computer is used, It directs the inbuilt camera (if present) to take pictures every half a minute and send it to a remotely administered repository. Adeona uses Open Source
OpenDHT distributed storage service to store location updates sent by a small software client installed on an owner's laptop.

Read more
here...

DOWNLOAD ADEONA
Linux :
* click
here
Windows :
* click
here
Mac :
*
disk 1
*
disk 2

-sun

Thursday, September 11, 2008

CMTS

CMTS (Cable modem termination system check more about it in about CMTS part of the blog down below) this was the project on which I worked almost 2 years, amazing device taught me so many things on technical as well as managerial aspects.

Before getting into development I tested this device on many aspects like - performance, features etc... While I was testing I did not like my job and always cursed to be a part of testing team, but later when I was moved into development team only then I realized the benefit what I gained during testing, yes the domain and the product expertize which was very helpful during development.
I forgot to tell you I work for the II'nd biggest global company in India, I guess you can guess it easily :).

About CMTS :
A cable modem termination system or CMTS is equipment typically found in a cable company's headend, or at cable company hubsite and is used to provide high speed data services, such as cable internet or Voice over IP, to cable subscribers.
In order to provide these high speed data services, a cable company will connect its headend to the Internet via very high capacity data links to a network service provider. On the subscriber side of the headend, the CMTS enables the communication with subscribers' cable modems. Different CMTSs are capable of serving different cable modem population sizes - ranging from 4,000 cable modems to 150,000 or more, depending in part on traffic. A given headend may have between half a dozen to a dozen or more CMTSs to service the cable modem population served by that headend or HFC hub.
One way to think of a CMTS is to imagine a router with Ethernet interfaces (connections) on one side and coax RF interfaces on the other side. The RF/coax interfaces carry RF signals to and from the subscriber's cable modem.
In fact, most CMTSs have both Ethernet interfaces (or other more traditional high-speed data interfaces) as well as RF interfaces. In this way, traffic that is coming from the Internet can be routed (or bridged) through the Ethernet interface, through the CMTS and then onto the RF interfaces that are connected to the cable company's hybrid fiber coax (HFC). The traffic winds its way through the HFC to end up at the cable modem in the subscriber's home. Traffic going from a subscriber's home systems go through the cable modem and out to the Internet in the opposite direction.
CMTSs typically carry only IP traffic. Traffic destined for the cable modem from the Internet, known as downstream traffic, is carried in IP packets encapsulated in MPEG transport stream packets. These MPEG packets are carried on data streams that are typically modulated onto a TV channel using Quadrature Amplitude Modulation.
Upstream data (data from cable modems to the headend or Internet) is carried in Ethernet frames modulated with QPSK, 16-QAM, 32-QAM, 64-QAM, or S-CDMA. This is done at the "subband" portion of the cable TV spectrum (also known as the "T" channels), a much lower part of the frequency spectrum than the downstream signal.
A typical CMTS allows a subscriber's computer to obtain an IP address by forwarding DHCP requests to the relevant servers. This DHCP server returns, for the most part, what looks like a typical response including an assigned IP address for the computer, gateway/router addresses to use, DNS servers, etc.
The CMTS may also implement some basic filtering to protect against unauthorized users and various attacks. Traffic shaping is sometimes performed to prioritize application traffic, perhaps based upon subscribed plan or download usage. However, the function of traffic shaping is more likely done by a Policy Traffic Switch. A CMTS may also act as a bridge or router.
A customer's cable modem cannot communicate directly with other modems on the line. In general, cable modem traffic is routed to other cable modems or to the Internet through a series of CMTSs and traditional routers. A route could conceivably pass through a single CMTS


-sun

Monday, September 8, 2008

java.sql.SQLException: [Microsoft][SQLServer 2000 Dri ver for JDBC]Error establishing socket.

Few days back I was writing a client server Java application using MS SQL server as back end. I built n tested the application and sent it to my client and the application did not started which was very much expected, but I never thought that debugging this will eat my one full F***ing week. Today I debugged it successfully after week longs effort, so I thought let me post it here so that some one else may not waste his/her time on such an issue, even though there are many solutions over internet, none are confident. So here it goes :

There are many reasons behind this error which are as follows :

1) URL string is not correct

2) Port which you specified is not the one at which the server is listening.

3) Your machine is not connected to network (sounds weired, yes SQL server needs the TCP stack to be installed, so either connect the machine to the network or configure a loopback interface if you want your application to run as stand alone)

4) Check your service pack (this was my problem)

5) Firewall is preventing it to connect

Follow this Approach to solve this exception


The first thing one should check when u get this problem is "the URL string" in your server.xml file for the IP address/name of the SQL server is correct and it is reachable - confirm this by pinging the server.

if URL is correct

Check "the port which you specified" in the URL string, default is 1433 check this against the server configuration. Server port configuration can be checked by opening server network utility from - start->All programs->MS SQL server -> server network utility. In this you will find the disabled protocols and the enabled protocols. In enabled protocols list Named pipes and TCP should be listed. Select TCP and click on properties it will show the port number the server is listening on. Repeat this to confirm Client network utility also - start->All programs->MS SQL server -> Client network utility

if port is also matching

Check if the server is listening on that port which is shown in the server network utility. Follow this procedure to check this.
Go to command prompt and give following command :
telnet localhost or IP address (of the server if it is on the network) port number
eg. : telnet localhost 1433
When this command is issued a blank screen should come, if you get a message like "Could not open connection > to the host, on port > 1433" then it is confirmed that the server is not listening on the specified port number.

You can also confirm this from the SQL server logs go to program files->MS sql server-> MSSQL -> LOG -> and open the most recent errorlog file. If it shows a log as follows :
SQL server listening on Shared Memory, Named Pipes
that means it is not listening on TCP, when it is listening on TCP the log will be as follows:
SQL server listening on TCP, Shared Memory, Named Pipes
But this log is not very consistent so don't depend on this the Telnet method is the best.

if server is not listening on port which it shows in server network utility

Check your service pack. If you are running SP2 or SP3 then what ever you do the server will not listen on that because of the some weired security vulnerabilities, So either have SP1 or SP4(recommended)you can find the SP4 at
Microsoft site install all the exe's listed at this site.

If you already have SP4 or installed and is still not working

Check your firewall either turn it off or create an exception for this port.

This should solve most of the problems if any one still have issues refer to the
Microsoft Site or post a mail to me - sun.1601@gmail.com
Hope this would help a few

-sun

Wednesday, September 3, 2008

Bug on Flickr

BUG description : When you delete a set (Album), it pops up this
message box saying "Really delete this set?
(Deleting the set will NOT delete any of the
content inside it.)". And if we select "OK" even
then all pictures are deleted from that set (Album).

Dont know what do they mean by deleting set(Album) will not delete content inside it. After all Album is the super set of pictures(content) in it.

Any ways Flickr guys do take care of it if u can.

-sun

Tuesday, September 2, 2008

Google Chrome highlights

* Streamlined and simple
* Clean and fast
* Runs all complex web applications much better.
* Each tab is an isolated "sandbox" that means (one tab wont crash another unlike IE [:(])
* Improved speed and responsiveness
* Powerful JavaScript engine (to power the next generation of web applications that aren't even possible in today's browsers)


What else is required from a browser, poor Microsoft will never learn.

read more
here...

-sun