Tuesday, January 12, 2010

Comparing software engineer and drug dealer

Source from Threeheadeddragon.

Drug Dealers

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

  • Refer to their clients as "users".
  • "The first one's free!"
  • Have important Asian connections.
  • Strange jargon:

    "Stick"

    "Rock"

    "Wrap"

    "E"

    "Stash"

    "Drive-by"

    "Hit (LSD)"

    "Source"

    "The Pigs"
  • Realize that there's tons of cash in the 14- to 25-year-old market.
  • Clients really like your stuff when it works.When it doesn't work they want to kill you.
  • Job is assisted by the industry's producing newer, more potent product.
  • Often seen in the company of pimps, hustlers and low-lifes
  • When things go wrong, a "fix" is just a phone call away, but may be expensive
  • A lot of people are getting rich while still teenagers.
  • Product causes unhealthy addictions.
  • Do your job well and you can sleep with sexy movie stars who depend on you.

Software Developers

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

  • Refer to their clients as "users".
  • "Download a free trial version..."
  • Have important Asian connections.
  • Strange jargon:

           "SCSI"

           "RTFM"

           "Packet"

            "C"

          "Cache"

         "CTRL ALT DEL"

         "Hit (WWW)"
 
         "Source-code"

         "Microsoft"

  • Realize that there's tons of cash in the 14- to 25-year-old market.
  • Clients really like your stuff when it works.When it doesn't work they want to kill you.
  • Job is assisted by the industry's producing newer, more potent products.
  • Often seen in the company of marketing people, venture capitalists and fund managers.
  • When things go wrong, a "fix" is just a phone call away, but may be expensive
  • A lot of people are getting rich while still teenagers.
  • DOOM, Quake, SimCity, Duke Nukem 3D...
  • Damn! DAMN!!!





Tuesday, December 22, 2009

The Ephemeral Ports

Ephemeral Ports: I picked it up on wikipedia, The definiton goes as this -
"An ephemeral (short-lived) port is a transport protocol port for Internet Protocol (IP) communications allocated automatically from a predefined range by the TCP/IP stack software. It is typically used by the Transmission Control Protocol (TCP), User Datagram Protocol (UDP), or the Stream Control Transmission Protocol (SCTP) as port for the client end of a client-server communication when the application doesn't bind the socket to a specific port number, or by a server application to free up a service's well-known listening port and establish a service connection to the client host. The allocations are temporary and only valid for the duration of the connection. After completion of the communication session the ports become available for reuse, although most implementations simply increment the last used port number until the ephemeral port range is exhausted."

"Ephemeral port range gets exhausted -- > " This is one of the problems I faced during the performance and scalability testing of one of our product services. A very common mistake that caused it but took us a lot to figure out what was happening actually.

The error message said
"java.net.SocketException: No buffer space available (maximum connections reached?): listen failedjava.net.SocketException: No buffer space available (maximum connections reached?): listen failed"
We were really clueless as on a windows machine it took more then 3days of running the test case that this error would arise and on a Linux machine it would come back within an hour.
But thanks to the Linux machine settings we could nail this problem down.
So here is the list of suggested ideas that you can ponder on when you face such a problem

Some suggested ideas

1. The buffer the error message is talking about refers to the TCP/IP stack's buffers. The error you're seeing can be caused by multiple things: too much data queued up for send viaTCP/IP or you're out of ephemeral sockets. The big problem is that the number of available ephmeral sockets doesn't change just because you have a massive amount of RAM.

Download tcpview.exe from sysinternals.com: when the problem occurs, fire it up and see what process has the greatest number of sockets out there. You'll probably see a bunch of sockets associated with one or a few processes (and they'll probably be in the TIME_WAIT state...)



2. This can mean that you have run out of local TCP ports to use for outgoing connections at the applet host(s). I believe Windows client platforms limit these to ports 1024-5000. In turn this seems to mean that you aren't closing old connections (or that you really need this many outgoing connections at the same time, which seems hard to believe). See.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;196271

3. If an exception occurs while a binded socket tries to make a connection to a machine, the socket does not get unbounded and closed. Try adding a java try catch block to ensure all sockets get unbounded and closed if an exception is thrown while either
i) trying to establish a connection to the machine or
ii) performing file transfer.

4. A memory or file handle leak can also be the source of the problem. When a program opens up too many handles rapidly, it exhausts the system resources - hence throwing the "No Buffer Space" error. In our case, we are opening up too many handles for each request. To check and see how many handles the processes on your computer has opened up, look at your Task Manager and click View -> Select Columns -> Handle Count.


Saturday, November 21, 2009

A reason to speed

I Picked it up from a blog, really nice one

A senior citizen drove his brand new Corvette convertible out of the dealership and past the Tim Horton's. Taking off down the Trans Canada, he floored it to 120 kph, enjoying the wind blowing through what little hair he had left."Amazing!" he thought as he flew down the 401, pushing the pedal to the metal even more. Looking in his rear view mirror, he saw the RCMP behind him, red and blue lights flashing and siren blaring."I can get away from him - no problem!" thought the elderly nut case as he floored it to 130 kph, then 140, then 150 kph. Suddenly, he thought, "What on earth am I doing? I'm too old for this nonsense!", pulled over to the side of the road and waited for the Mountie to catch up with him.Pulling in behind him, the officer walked up to the driver's side of the Corvette, looked at his watch and said, "Sir, my shift ends in 30 minutes. Today is Friday. If you can give me a reason why you were speeding that I've never heard before, I'll let you go."The man, looking very seriously at the Mountie, said, "Years ago, my wife ran off with an RCMP officer. I thought you were bringing her back."Have a good day, Sir," said the Mountie.

LBS - Augmented reality

Characteroke is a portable AR display costume, whereby the head and neck are concealed behind an active flat panel display.

Wikitude is an AR application for Google Android-based phones such as T-Mobile's HTC G1, HTC myTouch, Motorola Cliq, and Samsung Behold2, Sprint's HTC Hero, Verizon's Motorola Droid and ATT's Apple iPhone. The actual camera view is overlaid with geo tags from [1]. The application was developed by the Austrian-based company Mobilizy. Mobilizy also developed an app for ING locating the nearest ATM see Springwise for more info.

Layar is an application for the Android Phone similar to Wikitude, but allows third party content providers to define own "layers", that users can select for display.

Nokia Point & Find is a service for the Nokia smartphones (S60) that lets consumer discover context-aware information and services using advanced technologies such as real-time image recognition. The Nokia Point & Find Management Portal lets everyone create their own experience on top of the P&F platform.

Monocle is an iPhone application developed by Yelp, Inc. that overlays Yelp member reviews onto buildings as seen through the eyes of the iPhone camera. It is the second iPhone application to utilize augmented reality,[5] with first-mover kudos to the Metro Paris.[

Thursday, July 19, 2007

Everything just stopped...

SUDDEN PAUSE.. Hmm.. Well some name for a blog huh!

I was looking at a graph my friend sent me that said balance sheet of life.. Actually the longest period of ones life seems to be the time one spends between end of collage days and the time one gets married.. Out of collage you already feel the blue.. Friends seems to busy with there job and life.. The best days of the week is the day spent in office surrounded by people.. Weekends goes in sleeping and the usual late night movies and parties.. How can I get so boring all of a sudden.. School was real cool, collage was the cool age but then what..

That's when idea for this blog came up.. Though I don't have any idea how to continue on but whats the harm in trying..