Thursday, December 17, 2009

Hathway issues

Few tips and solutions to hathway users:
1) Internet stops working if you change machine.
If you have configured internet to work with one PC/laptop. and its working fine.
and One fine day, you got extra laptop or some friends comes and wants to connect to
internet using his laptop. internet stops working. Sometime if you reboot router,
internet will stop working on either of machine.
This is big headache.
Solution: Call hathway CC, tell them clearly that internet is not working as you changed your laptop. then they will do some reset from their side, and It works like magic, thing starts working on new laptop.

2) Configuring Router:
Better solution is get LinkSys Router and configure it. even if before configuring it, you need to ask hathway people to reset your connection.
There is no direct way to check if router is connected to internet or not, but it should set it as DHCP. it will pick up IP address and status will show UP(DHCP) under WAN.
if its not working after acquiring ip address. go to advance setup->advance routing , select Current mode as Gateway.

feel free to ask if its not working for you.

Wednesday, December 02, 2009

Automating MS Word

I was trying to fix a bug related to handling a windows document from ASP.net/C#/Windows Server 2003 program.
Some things I had issues and resolved.
1) Access Denied: Microsoft.Office.Interop.Word
Give access to Network Service to refered dll which should be Microsoft.Office.Interop.Word.dll
2) Removing existing watermark from file programmatically.
doc.ActiveWindow.ActivePane.View.SeekView = Word.WdSeekView.wdSeekCurrentPageHeader;

foreach(Word.Shape s in doc.Application.Selection.HeaderFooter.Shapes ){
Logger.Write(s.Name);
if (s.Name.Length > 24 && s.Name.Substring(0, 24) == "PowerPlusWaterMarkObject") {
s.Delete();
}
}
doc.ActiveWindow.ActivePane.View.SeekView = Word.WdSeekView.wdSeekMainDocument;


3) Memory issues
You will notice Winword.exe in TaskManager. which opens after each operation.
better refer following discussion at Stackoverflow.
ASP.net C# - WINWORD.exe

Sunday, November 22, 2009

Running with Gazelles, Eating with Lions

Why this writeup?

ans: To tell the others (excluding bolt), that they should read this wonderful book.



African proverb from The world is flat by T.L.Friedman.


Every morning in Africa, a gazelle wakes up.
It knows it must run faster than the fastest lion or it will be killed.
Every mornning a lion wakes up.
It knows it must outrun the slowest gazelle or it will starve to death.
It doesnt matter whether you are a lion or a gazelle.
When the sun comes up, you better start running.


I think, It is right time I am reading this book.

Sunday, November 01, 2009

Kukudtadao

Why is this writeup?
wrote this golden words in victorious mood, on March 20, 2008.

So We celebrated Holi at talentica with full enthusiasm yesterday. So it started with Tug of war competition,
which definitely we won without any serious competition as being strongest team, with Major, Ryan, Nitin on our side, We were predicted to be winners of competition
and we came true to prediction, defeating oppositions in few seconds. though you might be thinking sandip more and tug-of-war..something is wrong? no man yes I was right there though I didnt play any significant role other than providing some entertainment to spectators when Major was giving fundaes to me about how to stand and how should I pull...it was fun in the end...Winning or loosing doesnt matter in such kind of events. but you should assure that you win :)

Elements of Sustainable Companies

Why you want to read this?
Well because, I didnt write this.

Start-ups with these characteristics often foretells the success of a business and the likelihood of it becoming a sustainable, enduring company. We like to partner with companies that have:
Clarity of Purpose
Summarize the company's business on the back of a business card.
Large Markets
Address existing markets poised for rapid growth or change. A market on the path to a $1B potential allows for error and time for real margins to develop.
Rich Customers
Target customers who will move fast and pay a premium for a unique offering.
Focus
Customers will only buy a simple product with a singular value proposition.
Pain Killers
Pick the one thing that is of burning importance to the customer then delight them with a compelling solution.
Think Differently
Constantly challenge conventional wisdom. Take the contrarian route. Create novel solutions. Outwit the competition.
Team DNA
A company's DNA is set in the first 90 days. All team members are the smartest or most clever in their domain. "A" level founders attract an "A" level team.
Agility
Stealth and speed will usually help beat-out large companies.
Frugality
Focus spending on what's critical. Spend only on the priorities and maximize profitability.
Inferno
Start with only a little money. It forces discipline and focus. A huge market with customers yearning for a product developed by great engineers requires very little firepower.
Writing A Business Plan
We like business plans that present a lot of information in as few words as possible. The following format, within 15-20 slides, is all that's needed:
Company Purpose
Define the company/business in a single declarative sentence.
Problem
Describe the pain of the customer (or the customer's customer).
Outline how the customer addresses the issue today.
Solution
Demonstrate your company's value proposition to make the customer's life better.
Show where your product physically sits.
Provide use cases.
Why Now
Set-up the historical evolution of your category.
Define recent trends that make your solution possible.
Market Size
Identify/profile the customer you cater to.
Calculate the TAM (top down), SAM (bottoms up) and SOM.
Competition
List competitors
List competitive advantages
Product
Product line-up (form factor, functionality, features, architecture, intellectual property).
Development roadmap.
Business Model
Revenue model
Pricing
Average account size and/or lifetime value
Sales & distribution model
Customer/pipeline list
Team
Founders & Management
Board of Directors/Board of Advisors
Financials
P&L
Balance sheet
Cash flow
Cap table
The deal

Serenity in Pandemonium

He said, "he wants to go to himalaya leaving everything behind to search for peace"
His friend told him, (tapping index finger on his left ): "man..........peace is here, you dont need to go to anywhere"

This conversation was enough to start one thinking about inner peace, I read somewhere that introvert people get their energy from silence, from being silent,being alone.

Actually I dont know but if you ask me which place, (to clear the air, I think I am an introvert person). I like to go some place most when I am confused, I am unsure about future, I am damn upset due to someone or about something. or one want to get free.....

I love crowded city bus stops. you just go there sit there. The best thing about it is that you are alone with so much things happening around, you can spend any number of hours you want to sit there or stand there, no one will ask you question that why are you sitting/standing there. may be someone can ask about time, if you have wrist watch, or about some X bus going to Y place has came in last Yhrs/minutes. you can ignore him (but not her as abla nari ko help karna chahiye), or you can say you dont know. so apart from this disturbance you would be left alone. so what you do there..then I try to see in people's faces, in their eyes. if some good girl (well you cant stare at her just like that, atleast I cant ) is there I look around to see how many passer-bys who stare at her...I try to read their eyes. and also the passer-bys who ignore her due to their ego or worries..I look at her expressions. though I dont get anything.but just trying to understand things. then everything will leave, catching there buses, and when only 1-2 people remaining there..you know that its time for you to leave as by the time like outside chaos getting vanished, you will find your mind becoming calmer.

If someone is waiting there for long, I try to guess what that person might be thinking..

Serenity in Pandemonium...wordweb zindabad. "Peace in Chaos" was not bad title too..
Its like chaos inside you trying to compete with chaos in outside world, and you try to find meanings of many meaningless things going on outside and may be at that time you find out that same thing is happening inside you the chaos is temporary it will callm down after some time as the chaos outside just be with it.

this is quite old post I wrote it on private blog, just republishing it here.

The story of accident

I thought he was taking right to enter BRT lane,
then I thought left in same lane.

then realized he hadnt seen it,
but he was driving it straight.
it was deja vu.
There was panic I shouted then in a moment we were in the air
and in the next moment, on the road in the pain surrounded by public.
It was like stunt in movie, only difference was we were part of that.

Sometime u know it is going to happen and it happens.

now recovering from accident with bedrest, direct fall on back is so painful.
he was soumya and date was 3rd aug 08

Thursday, October 29, 2009

Log4net

Why is this writeup?
brother, to tell you that this is not that difficult and its good thing to have in your code.

Log4net package is used for logging in ASP.net. for more you read wiki.

1) Download Zip file using Wget. there would be good chance that it will unzip. Got this after downloading using Firefox/IE/Safari on Mac. downloaded zip file was corrupted always. finally downloading using wget worked on mac and windows both.


2) log4net usage.
its quite simple and standard
things to checkout before you get frustrate and giveup.
a) Download zip using wget and get proper dll file and add it as a reference.
b) Add line in assemblyinfo file which tells that configuration for log4net is stored in Web.config
c) add proper config info in Web.config file which you can find easily on internet.

Yes+

Why is this writeup?
Brother, to tell you something abt art of living, Jai gurudev :)

Did YES+ course in bangalore koramangala...
Talk by Rashmin was quite funny...they created big excitement around bawa but he didnt come...many heart-breaks..
banni hundaga and hundagis and vellaya..added words to kannada vocab...

thanks to kaykay and suman and volunteers...
to clear your mind...

And not to forget...
Dont get high on your own supply!!!

Sunday, October 25, 2009

Halwe pe blog to banta hai...

This blog is especially written for people who has tested tasty Suzee ka halwa at our place (list is bit long even we dont know names of people whom we served this delicious dish). if you find it crazy, then its Crazy, To understand this crazyness, you need to eat Halwa at our house, And you are welcome to our house anytime, Any one from us can make Halwa in just 5 minutes.

Who We Are : dhan ten nan
Our Place: HSR, Bangalore


Title Song:
Halwa yeh Halwa..
Suzee ka hai yeh halwa
Breakfast me khate hia halwa
Dinner me khate hai halwa
Subah sham khate hia hum yeh halwa..
Shudh Desi ghee se banta hai yeaaaaaaaahhhhhh...
(on tunes of Jalwa song from Fashion, courtesy Narayan (Nari))

It only takes 2 things to serve a Halwa...a Big Heart and a Halwa...

You can not eat your halwa and keep it too.

You can not eat your halwa yourself.

You can not eat your halwa in others plate.

Halwe ki nadiyan bahegi ab...Nana patekar style

Pyar nahin kiya aur Halwa nahin khaya/khilya to kya kiya jindagi me..

At Resto: Do you want any deserts?
SPSingh: Hum Hamara desert khud banake khate hia... aap bhi aa jao halwa khane gharpe..

There are 2 kinds of people in this world: One who eat halwa and others who dont...

Tuesday, October 20, 2009

Installing Microsoft visual studio 2005 for ASP.NET

Why is this writeup?
- Brother, it will save you lot of time.

Microsoft visual studio 2005 setup on Windows Server 2003
Step 1. first install MVS 2005 - 8.0
Step 2. install hotfix to let service pack install properly
WindowsServer2003-KB925336-x86-ENU.exe
Step 3. download service pack and install it - VS80sp1-KB926601-X86-ENU.exe
Step 4. “c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe /Setup”.

Step 2 is required for Service Pack 1 to install properly.
Step 3 is to get ASP.Net web application template to be installed and other things. which is needed to create ASP.NET website project.
Step 4.
This command will flush the Visual Studio template cache and ensure that the projects work correctly.

Love

I was puzzled as to what I would say to you about love. Love is so difficult to describe.
I could just come and sit - if it could be glimpsed in my eyes perhaps that would be it, or if it could be felt in the gestures of my hands, you could have seen it and I could say: This is love.

But what is love?

If it is not seen in my eyes, if it is not felt in the movements of my hands, then what it is can certainly never be felt through my words.

-- Osho
excerpts "From Sex to Superconsciousness"

Friday, September 25, 2009

Story starts and ends

Gentleman never asks and Lady never tells..
and nothing ever happens

Thursday, September 03, 2009

Wednesday, September 02, 2009

#fountainhead

The only thing that matters, "my goal, my reward, my beginning, my end" is the work itself, my work done my way. Peter there is nothing in the world that you can offer me, except this, offer me this and you can have anything I'have got to give. My work done My way.

Thursday, August 27, 2009

Nice marathi song

Bhatukalichy khela madhali raja anik rani
ardhyawarati dav modila adhuri ek kahani

raja wadala mala samjali shabdawachun bhasha
mazya naseebasave bolati tuzya hatachya resha
ka ranichya dola tenva datuni aale pani?

rani wadli baghat ektak doorachya tara
udya pahate dusrya wata dujya gavacha wara
pan rajala ushira kalali gudh atal hi wani

tila vichari jara ka he jeev ase jodave?
Ka daivane fulnya adhi ful ase todave?
Ya prashnala uttar navate rani kevilwani

ka ranine mitale dole door door jatana?
Ka rajacha swash kondala geet tiche gatana
Waryawarti virun geli ek udhas virani



Click to hear this song

Thursday, August 13, 2009

22

People who are 22s are said to find themselves feeling as if they live in 2 worlds, one which is overwhelmed by the mundane and the other by the fantastic.

Saturday, April 11, 2009

Nano space

Well, Talentica readers, your first guess will be wrong as this is not about our funky, new cool office but but but, your second guess should and must be right..Yes!!
its about India's dream 1L car - Tata Nano.

Kahani me thoda twist to hona hi chahiye...yach sathi kela hota ha attahas...

Today we went to croma showroom at Nana-space in aundh. Many spaces here and there...because Nano is small but quite spacious inside and I wanted to make title interesting for some peope.

I didnt get chance to drive but just experience of seating in car was good. I was quite impressed. "Go Fida" punch line should be taken away from Ford cars and should be awarded to Nano.

Tata engineers has done wonders, Congrats Ratan Tata, the visionary and his Nano team. Just waiting for the day, when Tata's avails this Dream for test drive and let our dream come true to drive this car.

Sunday, March 22, 2009

The great gatsby

Gatsby believed in the green light, the orgastic future that year by year recedes before us. It eluded us then, but that's no matter -

tomorrow we will run faster, stretch out our arms farther. . . .

And then one fine morning - So we beat on, boats against the current, borne back ceaselessly into the past.

Thursday, February 26, 2009

Art at Talentica

not able to participate in clay competition but looks like there are talented artists are here.




Friday, January 30, 2009

Tshirt design competition at talentica



designed tshirt for team with swati. I think it was not the best but I say, was good try..

Monday, January 19, 2009

mysql - copying data to other db using sqlyog

Sqlyog is pretty good client to access mysql and doing various operation on MySQL. I wanted to make copy of full DB for backup purpose. I took dump using sqlyog (structure+ data). then I was going to create new DB by running this script but noticed
functionality of copying db to other DB in sqlyog. I thought that would be safe. but it turned out that it was taking lots of time. so I suggest its better to copy data using taking dump of db and run those script to create fresh db. wat do you think?

Tuesday, January 13, 2009

Google Chart api issues

While working out graphs with Google chart api, We couldnt find ways render some of things properly, we used workaround in some cases.

1) Legends positioning
We couldnt find a parameter using which we can specify distance between legend and x-axis.



workarounds we used:
rendering legends using html


2) Legends ordering

Google is not rendering the legends as per order we give in url. looks like it orders
them alphabetically.



workaround we used:
rendering legends using html

3) Labeling issues
2 issues here
a) when bar is of full lenth, label overlaps bar
b) how to specify space between label and bar.




No workaround

4) length of Y axis
y-axis in not inheriting length of graph.



workaround we used:
use different margins as per number of bars. chbh=25,10,30
using 300 instead of 30 works.

Sunday, January 11, 2009

Configuring virtual host on windows in Apache 2

I am running two different apps on my localhost. one is in python and other in php.
I also want to learn how to configure virtual host so that 2 different domain names can point to same ip. it turned out to be quite simple. at first it was not working
because I was writing extra slash at end of documentroot, instead of "C:\work\SandipProject1\trunk\Website", I was "C:\work\SandipProject1\trunk\Website\" and getting permission denied.


in your httpd conf,

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot C:\work\SandipProject1
ServerName sandipProject1.com
</VirtualHost>


<VirtualHost *:80>
DocumentRoot C:\work\sandipProject2
ServerName sandipProject2.com
</VirtualHost>

<Directory C:\work\SandipProject1\>
Order Deny,Allow
Allow from all
SetHandler mod_python
PythonHandler index
OPTIONS -Indexes
</Directory>

<Directory C:\work\sandipProject2\>
Order Deny,Allow
Allow from all
DirectoryIndex index.php
</Directory>

Tuesday, January 06, 2009

New year change

changed punch line of my blog which I wrote on last new year. which was
Journey
till I cease the walk of life.

Monday, January 05, 2009

excellent and simlpe way to format html email

and it works beautifully across ms outlook, outlook express and gmail.

actually I was having problem in formatting email correct way. original code used inline css styles which was not working, so I changed styles but didnt work so I changed content-transfer-encoding from quoted-printable to 7bit and as always in programmers life, this hack worked for my outlook express. but failed to work on gmail. so on the way to give up, i found following page and tried the way they have asked to format email and it worked!!! woohoo..

see examples inside it

http://www.w3.org/TR/1998/NOTE-HTMLThreading-0105#Appendix%20B


one example for reference

From: Yogi Beera
To: Boo Booz
Message-ID: FD1D3K3KASDDFD17C00805FD459C86BB2BF@POPDOG
Subject: Joke
MIME-Version: 1.0
Content-Type: text/html;

<HTML>
<HEAD>
<STYLE TYPE="text/css">
<!--
.yogi--picnic-com {
color: black;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
-->
</STYLE>
</head>
<BODY bgcolor="#FFFFFF">
<P CLASS=yogi--picnic-com>Konck Knock</p>
</body>
</html>

enjoy!!

jquery tooltip bug - IE7 bigger fonts - hack

if you are using jquery tooltip plugin to show pop up. you will notice that on IE7, its showing much bigger font size. reason for this internally its using h3 tag which is not changed if you set font-size of overall div on IE7. so you need to explicitly overwrite the h3 style and set the smaller font-size, it works beautifully for both firefox and ie7.
actually this solution is given on following page but its at bottom. one might miss this so trying to give it more focus through my blog.

http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
by
Monkeytail
31. January 2008 |23:37 @ Jorn

following is the code.

#tooltip {
font-size:10px;
}

add this in your css
#tooltip.pretty h3 {
font-size:8pt;
}

btw above mentioned code didnt worked for me. i took out pretty and it worked well.

#tooltip h3 {
font-size:8pt;
}

I added font-weight:normal to make it look better. so it becomes

#tooltip h3 {
font-size:8pt;
font-weight:normal;
}

Thanks