Thursday, August 28, 2008

Colors of the Day 1


 #FF8D50




 #7AB8DD




 #715995




 #7fdf55

5 Reasons to Use CSS based Layouts

1. Reduced Bandwidth costs due to less data exchange
2. Higher Search Engine Ranking beacuse of cleaner code
3. Faster Download Speed due to less size
4. Increased Reach due to compatibility with many gadgets
5. Easier to Maintain the HTML

Wednesday, August 13, 2008

90% done syndrom

Couple of hours ago i read a very interesting post related to Software Project Management on Coding Horror.

The 90% done sysndrom can be stated like this: The first 90% if the project takes 90% of the time & the last 10% takes the other 90%.

Spiderman

And Lord knows,kids like Henry need a hero.

Courageous, self-sacrificing people......setting examples for all of us.

Everybody loves a hero.

People line up for them.Cheer them. Scream their names.And years later, they'll tell how
they stood in the rain for hours... ...just to get a glimpse of the one......who taught them to hold on
a second longer.

I believe there's a hero in all of us......that keeps us honest......gives us strength......makes us noble......and finally allows us to die with pride.

Even though sometimes we have to be steady......and give up the thing we want the most.Even our dreams. Spider-Man did that for Henry......and he wonders where he's gone. He needs him.

Tuesday, August 12, 2008

Protocols of matrix : 1st on Scour

Recently i got many invitation to join the scour ( social search engine), i was curious to check the results and i submitted my result,bingo, my blog came at the top indicating that my blog is at 1st position on Google, Yahoo, MSN Live search engine results. Take a look at it below & here is the search result .

Friday, August 08, 2008

Rules : It is simple to follow rules some times

Today i had a verbal fight with BMTC Pusphak bus driver. I was going to my office and boarded a bus, when i was getting into bus, at the entrance the driver asked me where i want to go, i said Richmond Circle.He said he will not stop bus at richmond circle and he was forcing me to board another bus. I said, why can't you stop the bus at richmond circle as there is a bus stop.and he was scolding me, then i said you are not doing your job & not following the rules.And also i mentioned to him that, i am telling him the rules designed by the BMTC Authorities and i am not creating something new to defend myself. When i was telling these things no body was concerned and not speaking a word, all kept quit seeing the drama. I don't understand what's wrong with people, they doesn't care about others.One more thing may know is, in Spiderman movie, a boy says to his mom that "everybody likes a hero",a hero who can stand for other's cause,but they them self don't want to do it. One more analogy is from Steave Job's speech, he tells that, "Everybody likes to go to heaven after death, but no body really want to die, even those who
want to go to heaven".

As the bus was full i was also thinking to board another bus, but when the driver said he will not stop at richmond,then i thought of stiking to it until the end. I think only by sticking to something till the end makes the difference. after a while a lady got into bus and she said she want to get down at corporation.Again the driver started telling that he will not stop the bus at coporation circle told her to get down at richmond.i kept quit so that he can cool down and think clearly (when people are angry don't speak much at that time, let them cool down so that they can think clearly) & thought that once the stop comes up i can again tell him to stop.

At last without my intervention he stopped at both the bus stops, great. Some times it is easier to follow the rules.

Monday, July 28, 2008

Africa: Wonderful Idea to get Pure Water

Watch this Video......really Inspiring.........you can do any thing...........

Tuesday, July 22, 2008

Online SQL Formatter Tool

I came across a wonderful online tool from my Team Lead,which helps to format the SQL queries. Its very handy and very useful.

http://www.sqlinform.com

Difference Between normal XML & config(ASP.NET web.config, machine.config) files

  • Both are XML files
  • *.xml Files can be rendered on browser i.e, if u know the path of XML you can access it and see the contents on Browser.
  • *.config file can't be rendered on browser i.e, even if u know the path of XML(*.config) file you can't access it and see the contents on Browser so it is secured.
Thanks to my TL Jeebu.

Tuesday, July 15, 2008

Protecting your Enterprise databases

SQL Server has a SQL Profiler tool, which helps Security Administrators to have a complete view of users who have logged in or out of the server.This information can be used for legal purposes to document activity & for technical purposes to track security policy violations.

For more information please go through the documentation provided with your SQL Server.

Wednesday, June 04, 2008

CSS Hacks: DIV Height Problem and Solution

If you set height in css for a div and check it in IE and Firefox you will get two different heights.

Empty divs in IE have a minimum height, more or less equal to the current line-height.

The way to solve this is:

1) Put a comment inside the div: <div style="height: 10px;"><!-- --></div>
2) Put a inside the div and add this to its style: font-size:1px; line-height:0.

Friday, May 30, 2008

Inflation is 8.1% in India

All are aware of the recent inflation thats happening in India, but one thing i have observed is, whenever prices go high and come down after some days or months the people who increased the prices of the goods carry the same high prices. Government must take action and it should avoid problems happening due to this issue.

What are your opinions?

Friday, May 02, 2008

Sequence Generator Function in SQL

Here is the sequence generator function written in SQL, which when passed starting and end numbers will generate the rest sequence automatically.

CREATE FUNCTION fn_p(    @exp  int)
RETURNS @result TABLE (id int)
AS
BEGIN
DECLARE @pow int
SET @pow = POWER(10, @exp)
INSERT @result SELECT 0 id UNION ALL SELECT 1 * @pow UNION ALL SELECT 2 * @pow UNION ALL SELECT 3 * @pow UNION ALL SELECT 4 * @pow UNION ALL SELECT 5 * @pow UNION ALL SELECT 6 * @pow UNION ALL SELECT 7 * @pow UNION ALL SELECT 8 * @pow UNION ALL SELECT 9 * @pow RETURNENDGO

CREATE FUNCTION fn_sequence
(
@start int,
@end int
)
RETURNS @result TABLE(id int)
AS
BEGIN
IF @start > @end
RETURN
IF @end < 10
INSERT @result SELECT id FROM ( SELECT a0.id id FROM fn_p(0) a0 ) d WHERE id BETWEEN @start AND @end ELSE
IF @end < 100 INSERT @result SELECT id FROM ( SELECT (a1.id + a0.id) id FROM fn_p(1) a1 CROSS JOIN fn_p(0) a0 ) d WHERE id BETWEEN @start AND @end ELSE
IF @end < 1000 INSERT @result SELECT id FROM ( SELECT (a2.id + a1.id + a0.id) id FROM fn_p(2) a2 CROSS JOIN fn_p(1) a1 CROSS JOIN fn_p(0) a0 ) d WHERE id BETWEEN @start AND @end ELSE
IF @end < 10000 INSERT @result SELECT id FROM ( SELECT (a3.id + a2.id + a1.id + a0.id) id FROM fn_p(3) a3 CROSS JOIN fn_p(2) a2 CROSS JOIN fn_p(1) a1 CROSS JOIN fn_p(0) a0 ) d WHERE id BETWEEN @start AND @end
RETURNENDGO

Friday, April 11, 2008

Classic: Algebraic Proof of 1=2

Thursday, March 27, 2008

Tuesday, March 25, 2008

Nanotechnology: The Future

See the below video by Nokia, which shows the future based on Nanotechnology. It's pretty impressive to see such things which are futuristic. I think we are living in wonderful era with so many inventions.


Here goes the explanation given for it on you tube. And Find out more from Nokia .

Morph is a concept demonstrating some of the possibilities nanotechnologies might enable in future communication devices. Morph can sense its environment, is energy harvesting and self cleaning .
Morph is a flexible two-piece device that can adapt its shape to different use modes. Nanotechnology enables to have adaptive materials yet rigid forms on demand.
It is also featured in the MoMA online exhibition "Design and the Elastic Mind". It has been a collaboration project of Nokia Research Center and Cambridge Nanoscience Center.

Recapturing the milestones of Networking and Internet

It's really exciting to see the developments that lead to current situations. The way we communicate and collaborate,do business and every thing else has been revolutionized by the Internet.

Networking has changed our world…
Email, the web, peer-to-peer networks, blogging …
State of the art is changing fast…
Just in the last 10 years
Maturation of web 1.0 (NCSA Mosaic, Netscape, IE, firefox)
Internet searching (Google) and online Ads Market
Deployment / popularization of VoIP
Broadband
Wireless LANs (and NATs)
Peer-to-peer systems and multimedia
From illegal music (Napster/Kazaa) to legal (iTunes) to illegal movies (BitTorrent) and Video Sharing
Cheap web servers
Blogging
Social Networking
Wikis …
And much more is coming…

Monday, March 24, 2008

C# Code for measuring application performance

The DateTime class is not very exact and only can measure in milliseconds. When doing performance measuring on an application you most certainly need to be able to measure with smaller time units than that. High-resolution timers are supported in the Win32 API so following code wraps it up in a simple class:

public class PerformanceTimer
{
[DllImport("Kernel32.dll")]
public static extern void QueryPerformanceCounter(ref long ticks);

long startTime = 0;
long stopTime = 0;

public void Start()
{
QueryPerformanceCounter(ref startTime);
}

public void Stop()
{
QueryPerformanceCounter(ref stopTime);
}

public long Time
{
get
{
return stopTime - startTime;
}
}
}

I’m sure the code is easy to understand. Here is the sample code to show how to use it.

PerformanceTimer perfoTimer = new PerformanceTimer();
perfTimer.Start();

// Do something

perfTimer.Stop();
System.Diagnostics.Trace.WriteLine(perfoTimer.Time);

Number 1 on Google

If you search on my name Kiran Tikare on Google.com, then this blog is displayed as the number one choice.

To see which Google servers you are currently hooked up to, open a command window and enter "nslookup google.com" which should list a couple of IP addresses. McDar.net has a handy Google Watch Tool which does a web search on all known Google servers for you so you don’t manually have to try different IP addresses.

So it took me some time to reach Google fame. I started this blog in March 2006 and was working on SEO. Finally i reached the desired destination with respect to my blog.