Tuesday, December 25, 2007

Tuesday, December 11, 2007

Wednesday, November 28, 2007

Chanakya's Quotes ...... Worth Reading a Million Times.

"A person should not be too honest.
Straight trees are cut first
and Honest people are victimised first."

Chanakya quotes (Indian politician, strategist and writer, 350 BC 75 BC)


***************************************************


"Even if a snake is not poisonous,
it should pretend to be venomous."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)


***************************************************


"The biggest guru-mantra is: Never share your secrets with anybody. ! It will destroy you."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)


***************************************************


"There is some self-interest behind every friendship.
There is no Friendship without self-interests.
This is a bitter truth."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)


***************************************************


"Before you start some work, always ask yourself three questions - Why am I doing it, What the results might be and Will I be successful. Only when you think deeply
and find satisfactory answers to these questions, go ahead."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)


***************************************************


"As soon as the fear approaches near, attack and destroy it."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275 BC)


***************************************************


"Once you start working on something,
don't be afraid of failure and
don't abandon it.
People who work sincerely are the happiest."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)


***************************************************


"The fragrance of flowers spreads
only in the direction of the wind.
But the goodness of a person spreads in all direction."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)


***************************************************


"A man is great by deeds, not by birth."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)


***************************************************


"Treat your kid like a darling for the first five years.
For the next five years, scold them.
By the time they turn sixteen, treat them like a friend.
Your grown up children are your best friends."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)


***************************************************


"Books are as useful to a stupid person
as a mirror is useful to a blind person."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)


***************************************************


"Education is the best friend.
An educated person is respected everywhere.
Education beats the beauty and the youth."

Chanakya quotes (Indian politician, strategist and writer, 350 BC-275BC)

***************************************************

Thursday, November 22, 2007

Barcamp 5 @ IIM Bangalore on 17,18th nov 07

BarCamp is an ad-hoc gathering born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos, and interaction from participants

Here are some of photos of IIMB & Barcamp..

this was my first barcamp.. i enjoyed collectives.. ,food.. and lot more..











Tuesday, November 20, 2007

Kya tu bhi Soft Engg hai MAMUUU

appun jaise tappori s/w Engg. ko kya maalum...
saala programming kis chidiya kaa naam hai...

copy paste kaa kaam miltaa hai bass appun khush...!!!

fir yeh coding kaa lafdaa locha kaiko?

are kaiko ?

arre kaiko re?

fir ek din boleto appun ko project mila.....

ya haaaaaaaaaa!!!!

saala appun ka khopdi chakkar kha gaya .....

computer ke saath dil saala takkar kha gayaa...!!!

din bhar appun computer ke aagge...

koi lafdaa nahi kuch nahi...

Boss bola kya be munna saala tu bhi programmer bann gaya...!!!

ye munnabhai kya coding bana rela hai baap...!!!

(fir ...? fir kya huwa..?)

fir ek din appun ne coding poora kar diya...

form poora karke appun ne testing ko bhej diya...!!!

lagataa tha ab appun kaa kaam khatam ho gaya .....!!!

par module me issues dekhake sala appun darr gaya ....!!!

appun ke saamne tester ne mere coding me ki galtiyaa nikali... aapun
ke coding ki poori waat laga di.... appun udharich khadaa thaa... par
appun kuch nahi bola... kaiko bolega? kaiko...?

saala ek, ek kaam kiya thaa... usme bhi itne bugs...

par appun ek aansu nahi roya...

kaiko royega...?

kaiko..?

saala appunich yedaa thaa naa...!!!

agale din se phir wohi life chalu...

wohi mails forward karnaa, wohi messages, wohi template, wohi
assignments... saala itnaa mails forward kiya...itnaa mails forward
kiya... log samze mail server down hoyega... bhoolneka hai bhoolneka
hai par kya karega...!!!

training milke bhi jab kaam nahi miltaa hai...

haa thoda bore huwa par chaltaa hai...

(phir ...? phir kya huwa..?)

fir ...?

fir kya...?

fir agale din appun ko aur ek project mila...!!!

shaappak...

saala appun ka khopdi phir chakkar kha gaya ......

computer ke saath dil saala phir takkar kha gayaa...!!!

ho ho ho hoooooooooooooooooooooooooooooo

Sunday, November 18, 2007

Children days @ GarudaMall

n India Children's Day day is celebrated on November 14 every year. This date the marks the birth anniversary of independent India’s first Prime Minister, Pandit Jawaharlal Nehru. Children's day is celebrated on this day in recognition of his lifelong passion and work for the welfare, education and development of children and young people.

this Nov 14 2007 i spent my time @ garuda mall ..

below are few of the snaps..

there were lots of cultural activities done by childrens.like Solo Singing, Playing piano ,Magik show , Dance Sequences by Mangalore's Group & Fashion Show By Body Craft.






Tuesday, November 13, 2007

My New Year Trip to Mysore

This diwali & new Year i had celebrated with my parents @ mysore.
here are few snaps of my 2 days most enjoying journey.



for more photos see http://www.flickr.com/photos/chin2prajapati

Thursday, October 25, 2007

Firebug For IE realesed bye DebugBar

good news for all web developers is that now thay can debug javascript with a tool
called Companion.JS
Developed by http://www.debugbar.com Download executable @
http://www.my-debugbar.com/wiki/CompanionJS/HomePage


Companion.JS
(pronounced Companion dot JS
or CJS) is a Javascript debugger for IE. The current version is 0.2, adding the
following features to IE :


* Detailled javascript error reporting (call stack and real
file name where the error occured).

* "Firebug"-like
Console API feature.

* Javascript console feature useful to inspect javascript objects at runtime.

* A toolbar icon to open the Companion.JS panel.

Here are some screenshots :



Detailled Error reporting


In the top-left corner the notifying panel which pops-up when an error occurs in
the current page if the Companion.JS panel is not open. At the bottom of the page...




Console API feature

Thursday, October 4, 2007

Vinod's Reception

it was wonderful experience of attaining Reception of Vinod's marriage.
Vinod is our dance class's (Body Kraft) Choreographer.
first time i attained pure south Indian marriage. Food was mouth watering and Overall
Arrangement of was very nice.

below is my dance class Group.

Storrz.com Online shopping goes mad :)

Storrz.com is offering 50Rs off for first time purchase

read more | digg story

Sunday, September 30, 2007

Storrz.com Welcome to Online Shopping Mall

I think its the First Online Shopping Mall where you can shop for Groceries Online.They deliver the order within 24 hrs.Thats pretty cool!! I had ordered for Cookie Man's Choc Chip cookies in the morning and I received it in the evening They have lotz of good brands like MTR, Mars (snickers,twix, bounty), Namdharis Fresh groceries, Pedigree et al..

read more | digg story

Friday, August 17, 2007

Nothing Fails Like Success

The More successful you and your organization become, the more humble and devoted to your customers you need to be.The More committed to efficiency and relentless improvement you need to be. The Faster you need to Play.The more value you need to add. Because the moment you stop doing very things that got you to the top of mountain is the very moment you begin the slide down to the valley

From
THE GREATNESS GUIDE - ROBIN SHARMA

Thursday, August 16, 2007

Narayana Murthy's views on staying late in the office

It's half past 8 in the office
but the lights are still on...
PCs still running,
coffee machines still buzzing...
and who's at work?
Most of them??? Take a closer look...
All or most specimens are ??-something male species of the human race...
Look closer... again all or most of them are bachelors...
and why are they sitting late? Working hard? No way!!!
Any guesses???
Let's ask one of them...
Here's what he says... "What's there 2 do after going home... here we get to surf, AC, phone, food, coffee.. that is why I am working late... importantly no bossssssss!!!!!!!!!!!
This is the scene in most research centers and software companies and other off-shore offices.
Bachelors "time-passing" during late hours in the office just bcoz they say they've nothing else to do...
Now what r the consequences... read on...
"Working"(for the record only) late hours soon becomes part of the institute or company culture.
With bosses more than eager to provide support to those "working" late in the form of taxi vouchers, food vouchers and of course good feedback,(oh, he's a hard worker... goes home only to change..!!).They aren't helping things too... To hell with bosses who don't understand the difference between "sitting" late and "working" late!!!
Very soon, the boss start expecting all employees to put in extra working hours.
So, My dear Bachelors let me tell you, life changes when u get married and start having a family... office is no longer a priority, family is... and that's when the problem starts... becoz u start having commitments at home too.
For your boss, the earlier "hardworking" guy suddenly seems to become a "early leaver" even if u leave an hour after regulartime... after doing the same amount of work.
People leaving on time after doing their tasks for the day are labeled as work-shirkers...
Girls who thankfully always (its changing nowadays... though) leave on time are labeled as "not up to it". All the while, the bachelors pat their own backs and carry on "working" not realizing that they r spoiling the work culture at their own place and never realize that they wuld have to regret at one point of time.
*So what's the moral of the story?? *
* Very clear, LEAVE ON TIME!!!
* Never put in extra time " *unless really needed *"
* Don't stay back un-necessarily and spoil your company work culture which will in turn cause inconvenience to you and your colleagues. There are hundred other things to do in the evening..
Learn music...
Learn a foreign language...
try a sport... TT, cricket.........
* And for heaven's sake net cafe rates have dropped to an all-time low (plus, no fire-walls) and try cooking for a change.
Take a tip from the Smirnoff ad: *"Life's calling, where are you??"*

Please pass on this message to all those colleagues And please do it before leaving time, don't stay back till midnight to
forward this!!!

Wednesday, August 15, 2007

A Friendship Poem by Shakti

Hello friends One of my best friend Shakti Parmar wrote a poem.Actually he published his poem on the friendship day 05th August 2007.
He wants to dedicated his poem to all dear Friends…


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

Dost jab dil k pass
Hota hai tab us se pyar hota hai,

Lekin jab VO dost dur
Hota hai tab us pyar ka ehsas hota hai…


Dost jab dil k pass
Hota hai tab pyar ki yade banti hai,

Lekin jab VO dost dur
Hota hai tab VO yade hi sanse banti hai, hai…


Dost jab dil k pass
Hota hai tab jindgi rahe banati hai,

Lekin jab VO dost dur
Hota hai tab jindgi khud rahe dhundati hai…

Dost jab dil k pass
Hota hai tab sub kuch POSSIBLE lagta hai,

Lekin jab VO dost dur
Hota hai tab sub kuch IMPOSSIBLE lagta hai…

Dost jab dil k pass
Hota hai tab KISMAT sath deti hai,

Lekin jab VO dost dur
Hota hai tab KISMAT bhi dur rehti hai…


Dost jab dil k pass
Hota hai tab sub sundar lagte hai,

Lekin jab VO dost dur
Hota hai tab khud bhi bud-surat lagte hai…


Dost jab dil k pass
Hota hai tab mot bhi jivan lagta hai,

Lekin jab VO dost dur
Hota hai tab ye jivan hi mot banta hai…


Dost jab dil k pass
Hota hai tab har pal jivan lagta hai,

Lekin jab VO dost dur
Hota hai tab har pal mot lagta hai…




Dost jab dil k pass
Hota hai tab dil hum KO pagal karta hai,

Lekin jab VO dost dur
Hota hai tab ye dil hum KO ghayal karta hai…


Dost jab dil k pass
Hota hai tab hum unhe PROMISE karta hai,

Lekin jab VO dost dur
Hota hai tab hum unhe MISS karta hai…


Dost jab dil k pass
Hota hai tab hum unhe satate hai,

Lekin jab VO dost dur
Hota hai tab VO hame satate hai…

Dost jab dil k pass
Hota hai tab VO hume hasate hai,

Lekin jab VO dost dur
Hota hai tab VO hame rulate hai…

Dost jab dil k pass
Hota hai tab hum FRIENDSHIPDAY manate hai,

Lekin jab VO dost dur
Hota hai tab VO FRIENDSHIPBELT hame satate hai…

Dost jab dil k pass
Hota hai tab hum UN par marte hai,

Lekin jab VO dost dur
Hota hai tab hum unke liye hi jite hai…

Dost jab dil k pass
Hota hai tab VO hame khuda lagte hai,

Lekin jab VO dost dur
Hota hai tab khuda hi hamare dost bante hai…
Written by: Shakti Parmar
shaktisinh_ldce@yahoo.com
shaktimails4u@gmail.com

Please fill free to give comments on poem..
How is it ?

©2007 Shakti Parmar.

Friday, August 10, 2007

Top 10 Tips for Computer Science Students

1.) Math is More Important Than You Think
Math is all over Computer Science in many different ways. Software Engineers will use discrete math when working out algorithm complexity and efficiency, in graph theory, and recursion. People who work more directly with hardware will use discrete math in designing logical circuits and use automata theory for making finite state machines. At that level you are also working with the large amount of math inherent with electrical engineering. In research aspects you will be using probability and statistics for performance measurements and comparisons. Even game programmers use a lot of math when creating 3D environments.

2.) You'll Need To Write More Than Just Code
At the base level you will be writing comments in your code. Those are there for others to comprehend what you are trying to do, so explain what you are doing well. In software engineering you may be writing requirements, specifications, test plans, and more. There may be a time later in your CS career where you may need to write a research paper, that may get peer reviewed. Good writing skills will help you. Pay attention in your business writing classes and learn good technical writing skills now.

3) Don't Procrastinate
We know you've heard it a million times, but this is the worst possible thing you can do in a programming class. When you get an assignment, look it over and start on it right away. In the likely chance that you can't work through an error or figure out the logic, you'll have time to contact your instructor or use other available resources to solve the problem.

4) Don't Overcomplicate Things
The smaller a block of code is, without being redundant of other code, the better. When you break down algorithms which have nothing in common, often there is a loop or operation which is not unique, other than the parameters involved. A single method/function should not be longer, or wider than a standard 800x600 monitor view. If you comment well, a little larger is acceptable.

6) Impress Your Instructors, But Not Too Much
Your instructor can be your best friend, but don't be a suck up. Ask questions and show your instructor you're interested but don't annoy the rest of the class with constant questions and meaningless comments. If you can get to know your instructor, you may be able to leverage that relationship in the future for internships and recommendations.

7) Flowcharting Early and Often
Any good programmer will tell you planning is the most important part of any project. You'll have to flowchart when you get a real job, so get good at it now. Planning a project out before you start, even if it's just good pseudocode, can save you hours of frustration. Don't start your project in the compiler, instead sit down with a piece of paper and plan out your program.

8) Make Sure This is What You Want to Do
Many computer science students get into CS because they like games. Now there are a lot of positions in Computer Game Design that do not require you to be a programmer, so if you are not interested in the coding aspect talk to someone who might direct you to a better path. Areas such as Technical writing, Dramatic Writing, graphic arts, business management, and many more might be better places to go. Use your minor/electives to take computer oriented classes and get to know the CS majors.

9) Use All Your Resources
Don't hit a road block and then panic. There are thousands of resources online to help you work through a problem. From tutorials, to forums (like http://www.dreamincode.net), to live help, you should be able to find the help you need. Just remember it can take more than a few minutes for someone to help solve your problem so don't wait till the last minute. Google is definitley your friend and don't feel embarassed if you have to search for your problem. Don't expect people to do the work for you though, you'll still have to put forth some effort.

10) Become a Well Rounded Programmer
Programming is more than just C++ or Java. If you plan on programming for a living, you'll need to learn the business side of programming. This includes things like systems analysis, databases, security, and documentation. Also realize that C++ isn't the only language out there, you should be able to jump fairly quickly from language to language. Don't get stuck in one language. Learn the basics of other languages including web based. In addition to code, focus on your humanities. Nobody wants to interact with a dull uncultured nerd. Take classes that interest you and will provide you with a good non-technical education as well.

hay say chees...


hay say chees...
Originally uploaded by chin2prajapati
Vipul's Birthday Celebration ..
We enjoyed a lot..
For More Detail..check http://wordpress.vipullimbachiya.com/?p=31

Saturday, July 28, 2007

Photo blog

Hi all this is my photo blog

Thursday, July 26, 2007

Diffrence Between Parse vs. TryParse vs. ConvertTo

When programming in .Net you are presented with several different ways to extract a numerical value (I’m using an Int32 for my example) from a string. Recently I was looking at the differences between Parse, TryParse and ConvertTo. So I figured that I would use the new performance profiler included with Visual Studio Team System 2005 to figure out the performance differences between these three functions.



The first of these functions, Parse, is one that should be familiar to any .Net developer. This function will take a string and attempt to extract an integer out of it and then return the integer. If it runs into something that it can’t parse then it throws a FormatException or if the number is too large an OverflowException. Also, it can throw an ArgumentException if you pass it a null value.



TryParse is a new addition to the new .Net 2.0 framework that addresses some issues with the original Parse function. The main difference is that exception handling is very slow, so if TryParse is unable to parse the string it does not throw an exception like Parse does. Instead, it returns a Boolean indicating if it was able to successfully parse a number. So you have to pass into TryParse both the string to be parsed and an Int32 out parameter to fill in. We will use the profiler to examine the speed difference between TryParse and Parse in both cases where the string can be correctly parsed and in cases where the string cannot be correctly parsed.



The Convert class contains a series of functions to convert one base class into another. I believe that Convert.ToInt32(string) just checks for a null string (if the string is null it returns zero unlike the Parse) then just calls Int32.Parse(string). I’ll use the profiler to confirm this and to see if using Convert as opposed to Parse has any real effect on performance.

Via

Wednesday, July 25, 2007

Want To Create ur Own opinion Poll?

The image “http://www.polldaddy.com/Images/Polls/TM_logo.gif” cannot be displayed, because it contains errors.
PollDaddy is an online tool, which allows you to create free polls and
place them on your website, blog, MySpace, hi5, Friendster or Xanga
account or anywhere online that you can paste a bit of JavaScript or
Flash!




























What is PollDaddy?

PollDaddy
is an online tool, which allows you to create free polls and place them
on your website, blog, MySpace, hi5, Friendster or Xanga account or
anywhere online that you can paste a bit of JavaScript or Flash!












Polldaddy Features

PollDaddy
is simple and flexible, allowing you to customize our styles to match
your website or email campaign. Deliver your poll through JavaScript,
flash, direct link, widget or RSS to survey your user's opinions.








100% Free polls!

PollDaddy is free for you to use and enjoy, we hope that while using PollDaddy, you might take the time to check out our other products too.



There is no advertising on any of our polls, and we never redirect your
users away from your website or blog, so if you want to start using our
free polls today, then its time to sign up!

Tuesday, July 24, 2007

Jog Falls Tour

From Many Day we were feeling tired..so we decided to go some cool place to watch. finally we came out with JOG Fall.Our journey include Vipul (My Besti), Manoj (Our Operations Manager) and myself.We went to jog falls through Karnataka Tourism(KSTDC).it was Wonderful experience. we enjoyed a lot. I will not bore u much more..(bcz i know my power in..) So better u see Photos of jog Fall.

Jog Falls (Kannada ) is the highest untiered waterfalls in India, located in Shimoga District of Karnataka state. Created by Sharavathi River falling from a height of 253 meters (829 ft), Jog Falls is one of the major attractions in Karnataka tourism. It is also called by alternative names of Gerusoppe falls, Gersoppa Falls and Jogada Gundi

My photos.. http://flickr.com/photos/chin2prajapati

You can watch small clip of jog fall

Microsoft Silverlight "Light Up The Web"

Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation of Microsoft .NET–based media experiences and rich interactive applications for the Web.

  • "WPF/E" is Codename of SilverLight.
  • Silverlight is a part of .net Framework 3.0
There is a lot of discussion emerging comparing MS's Silverlight and Adobe's Flash.because silverlight have almost all capability which Flash Provides.
like u can embed movie in silverlight easily & do animation , Effects.. etc.

For more discussion on Silverlight & Flash u can check this (http://geekglue.blogspot.com/2007/04/silverlight-vs-flash.html) blog.

Official Wesite for Silverlight is http://www.microsoft.com/silverlight
&
http://silverlight.net/

and For material visit http://www.microsoft.com/presspass/presskits/silverlight/materials.mspx

Demo of Silverlight applications.

Very good collection of silverlight examples for new commers click here

To See all Example First you have to install .net Framework 3.0
  1. Great Visual Studio QuickStarts for Silverlight 1.0/1.1 New!
  2. Silverlight Ink Experiments New!
  3. Convert Text to Path New!
  4. HTML DOM Interop with Silverlight New!
  5. Drag and Drop in Silverlight 1.0 New!
  6. Game of Life in Silverlight and F# New!
  7. Virtual Earth and Silverlight New!
  8. Smalltalk based on Silverlight/DLR New!
  9. Silverlight and Google Gears New!
  10. Creating A Data-driven Control New!
  11. 3D in Silverlight 1.1 Alpha
  12. RadControls for Silverlight by Telerik
  13. Silverlight 1.1 2D Physics with Source Code
  14. Lutz's Digger, Monotone and Inplay; see also .NET Reflector Plugin for Silverlight
  15. DLR Console
  16. Silverlight Chess (JavaScript vs. C#)
  17. SWF2XAML: A Slightly better Flash to XAML Conversion
  18. Scott Guthrie's blog posts tagged with Silverlight
  19. Silverlight Toolbar
  20. Use File Open Dialog with Silverlight
  21. Microsoft PopFly
  22. Microsoft Silverlight 1.1 Alpha Developer Reference Poster
  23. How-to videos
  24. Silverlight Surface Demo (with simple video support)
  25. Silverlight XPS Viewer
  26. Miguel de Icaza about Silverlight, DLR and OpenSource
  27. Eyeblaster Rich Media Silverlight AD
  28. SilverNibbles - Converting a Windows Forms Game to Silverlight
  29. Silverlight Controls and LINQ
  30. Silverlight Games 101 (Silverlight Rocks!)
  31. DLR & IconPython at Codeplex
  32. Silverlight Pad
  33. Video support with Silverlight Fox Example
  34. AOL Social Mail Gadget
  35. Silverlight Screencasts (more than 20 videos!!)
  36. Silverlight Disco Dance Floor
  37. Silverlights Out 2.0 and older version 1.1
  38. Silverlight GardientBrush Demo
  39. Silverlight and the Compact Framework (Mix 07 demo video)
  40. Dr. Popper Silverlight Edition
  41. Bryant's Silverlight Examples
  42. Asteroids Clone
  43. Binary Clock
  44. Silverlight Scribbler
  45. Silverlight and Security (.NET Security Blog)
  46. Keyboard Input
  47. Silverlight Glass Button (from WPF Glass demo)
  48. Silverlight 1.1 Layout System and Controls Framework
  49. Full Screen Mode with Silverlight
  50. Early version of Snoop for Silverlight
  51. New York Times Reader in Silverlight (video)
  52. The basics of a Silverlight Control
  53. Convert SWF to WPF and Silverlight
  54. Test with Silverlight/CoreCLR (TestDriven.NET)
  55. Fantasy Baseball
  56. Using Playlists in Silverlight
  57. Silverlight Pad to Test XAML Content
  58. Animation Using Keyframes and Splines
  59. Handling Runtime Error Messages in IE and Mozilla
  60. Downloading Fonts Using the Downloader Object
  61. Converting a WPF/E Application to a Silverlight Scripting Application
  62. VB on Silverlight
  63. Great Silverlight Introduction for JavaScript Developers
  64. Silverlight C# 3.0 Features



Tuesday, July 10, 2007

A new tool to check Redundancy in CSS called "css-redundancy-checker"

There comes a point in every developer’s life when your realise the problem isn’t your work, but the tools you’ve got to hand. Toolsmithery is an important part of the job, and so I spent a few hours yesterday crafting a tool useful to any front-end developer.


The result is the CSS Redundancy Checker.


When you’re writing HTML, over time, your CSS files begin to fill up
a lot. If you’re working on a large project, you might even end up with
several people contributing to the CSS file, not to mention refactoring
each other’s work. The result is a directory full of HTML files, and a
very large CSS file.


What tends to happen is that not ever selector in the CSS file
actually applies to your HTML; many are rendered redundant by
refactoring, or by changes in HTML. But when you’ve got a 70k+ CSS
file, it’s not easy to check precisely which selectors aren’t in use
any more.


Enter the CSS Redundancy Checker.
It’s a very simple tool, really. You pass in a single css file, and
either a directory of HTML files, or a .txt file listing URLs (one to a
line). It then proceeds to look at each file in turn, and at the end,
list all the selectors in your css file that aren’t used by any of the HTML files.


That’s it. I’m pretty sure it’s accurate, and it should work with
most CSS files. Most of the magic isn’t down to me, but down to _why the lucky stiff’s marvelous Hpricot
HTML parser. The script itself is about 50 lines of reasonably tidy
Ruby. You’ll need Ruby, and Hpricot, in order to run it. There’s more
full documentation over at the Google Code site where I’m hosting it. Please add any issues there, or get in touch if you want to contribute.


Things it doesn’t do: listing line numbers of where the selectors
are. I wrote that functionality on the train this morning, but I can’t
find a way to make it 100% accurate, so thought it best to leave it out
- inaccurate line numbers are of no use to anyone. If you can come up
with a way that works, let me know. Also, at some point I might turn it
into a Textmate command. All in good time, though.


The need for the tool came out of a large project we’re working on at NPG,
but I felt it would be useful to pretty much any HTML developer. So
I’ve released it to the world. Let me know what you think, and do
spread the word. You can get it via svn checkout, for now:


svn checkout http://css-redundancy-checker.googlecode.com/svn/trunk/ css-redundancy-checker

ASP.NET AJAX Repeater

Demonstrates how to how to develop a Data Bound Templated Control with ASP.NET AJAX.

click here

Thursday, July 5, 2007

There Ain’t no Flies on Us

What a Photo.. with Extreme Clerity...
What it in maximum resolution

How to use .Browser file in ASP.net

ASP.NET Browser Registration Tool (Aspnet_regbrowsers.exe)The ASP.NET Browser Registration tool parses and compiles all system-wide browser definitions into an assembly and installs the assembly into the global assembly cache. The tool uses the browser definition files (.BROWSER files) from the .NET Framework Browsers subdirectory. The tool can be found in the %SystemRoot%\Microsoft.NET\Framework\version\ directory.

In ASP.NET version 1.1, the Machine.config file contained a section called <browserCaps>. This section contained a series of XML entries that defined the configurations for various browsers based on a regular expression. For ASP.NET version 2.0, a new .BROWSER file defines the parameters of a particular browser using XML entries. You add information on a new browser by adding a new .BROWSER file to the folder located at %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers on your system.

Because an application is not reading a .config file every time it requires browser information, you can create a new .BROWSER file and run Aspnet_regbrowsers.exe to add the required changes to the assembly. This allows the server to access the new browser information immediately so you do not have to shut down any of your applications to pick up the information. An application can access browser capabilities through the Browser property of the current HttpRequest.

Syntax

aspnet_regbrowsers.exe <options>

Options



Option

Description

-?

Displays the Aspnet_regbbrowsers.exe Help text in the command window.

-i

Creates the runtime browser capabilities assembly and installs it in the global assembly cache.

-u

Uninstalls the runtime browser capabilities assembly from the global assembly cache.

Remarks

Browser definition files can be either system-wide or application-specific, and each type is stored in a different location. System-wide browser definition files are stored in the %SystemRoot%\Microsoft.NET\Framework\version\CONFIG\Browsers directory. This directory contains predefined browser definition files that shipped with the corresponding version of the .NET Framework and any additional browser definition files copied there from software updates or service packs. Do not change the predefined browser definition files that come with ASP.NET, because service packs might update those files and overwrite your changes.

Application-specific browser definition files can be placed in the application's App_Browsers directory. In both locations, browser definition files must have a .BROWSER file name extension. Using the ASP.NET Browser Registration tool has no effect on application-specific browser definition files stored in an application's App_Browsers directory.

When browser definition files at the system level are modified, they do not automatically cause an update of browser capabilities for all applications. You must run the ASP.NET Browser Registration tool to update the browser capabilities assembly.

NoteNote

The ASP.NET Browser Registration tool compiles browser definitions in the Browsers directory of the version of the .NET Framework that corresponds to the tool version. Each version of the .NET Framework has its own copy of the tool.

The ASP.NET Browser Registration tool parses and compiles all system-wide browser definitions into an assembly and installs the assembly in the global assembly cache. If there are errors in the system-wide browser definitions, the tool reports those errors. The browser capabilities assembly is used by all Web applications on the system. Note that you can also programmatically recompile system-wide browser definition files by using the BrowserCapabilitiesCodeGenerator class.

Behavior

When the ASP.NET Browser Registration tool runs, a new assembly is created and the effect on all Web applications is the same as if the Machine.config file was changed: All running Web applications are recycled and Microsoft Internet Information Services (IIS) is restarted. The tool also generates a random private token file, and creates a key file to sign the assembly so the assembly can be installed in the global assembly cache. The key file is removed when the tool is finished, leaving only the public key.

At run time, browser definition file information is merged into a collection of known browsers in a BrowserCapabilitiesFactory object. When a request is made, ASP.NET identifies the requesting browser by the request header, and compiles an HttpBrowserCapabilities object that corresponds to the type of the requested browser.

Using the <browserCaps> element in the Web.config file to define browsers is deprecated in the .NET Framework version 2.0, but is still supported. The data in this element is merged with the information from the browser definition files.

By contrast, browser definition files at the application level are automatically parsed and compiled on demand when the application is started. If any changes are made to the application's Browsers directory, the application is automatically recompiled. The ASP.NET Browser Registration tool has no effect on application-level browser information files.

Examples

To parse and compile all system-wide browser definitions into an assembly and install the assembly into the global assembly cache, run Aspnet_regbrowsers.exe. The following command creates and installs the assembly:

C:\WINDOWS\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe -i

You can also use the tool to remove the browser definition assembly from the global assembly cache. The following command removes the browser definitions assembly from the global assembly cache:

aspnet_regsql.exe -u

To get help on using the ASP.NET Browser Registration tool, use the following command:

aspnet_regsql.exe -?


Powered by ScribeFire.

Monday, July 2, 2007

Top 10 CSS image gallery

There are many tutorials out there on how to create your own image gallery. There are simple ones made from pure CSS, and there are complex ones using css and javascript. By the end of this article you will have the information necessary to start building your own photo gallery.

http://youneed2see.com/web/99/Top_10_CSS_image_gallery_tutorials

Powered by ScribeFire.

Friday, June 29, 2007

Is there a way to find out when a stored procedure was last updated?

Simple answer is 'No'. The crdate column in the sysobjects table always contains the stored procedure create date, not the last updated date. You can use Profiler to trace ALTER PROC calls to the database, but you can't really afford to run a trace for ever, as it's resource intensive. Here is a simple idea! Whenever you have to alter your stored procedure, first drop it, then recreate it with the updated code. This resets the crdate column of sysobjects table. If you can make sure your developers always follow this plan, then the crdate column of sysobjects will always reflect the last updated date of the stored procedure. For example, if I have to modify a procedure named MyProc, instead of doing "ALTER PROC MyProc", here's what I would do:

- Use sp_helptext to get the current code of MyProc.
- Change the code as needed.
- Run the following code to drop the existing version of MyProc:

IF EXISTS(SELECT 1 FROM sysobjects WHERE name = 'MyProc' AND type = 'P' AND USER_NAME(uid) = 'dbo')
BEGIN
DROP PROC dbo.MyProc
END


- Run the updated code to recreate MyProc

There is a much more powerful way out, if you can use Visual Source Safe (VSS). VSS is a version control software, that lets you manage your code. With VSS in place, you will have to maintain all your object creation scripts as script files and check them into VSS. When you have to modify a particular stored procedure, check out that script from VSS, modify it, test it, create the stored procedure, and check the script back into VSS. VSS can show you when a script got modified, by who and a whole lot of other information.

Advantages of using VSS
- You can version control your software, as VSS maintains all your changes as different versions
- You can go back to a previous known good version of your stored procedure, if a developer makes a mistake
- Using the labelling feature, you can revert back to an entire set of scripts at a particular point in time
- You can control access to your source code by configuring permissions to your developers
- By maintaining backups of VSS database, you can secure all your code centrally, instead of worrying about individual script files

For more information on VSS, visit
Microsoft VSS website.

read More..


Powered by ScribeFire.

Thursday, June 28, 2007

Google Desktop for Linux!

Yesterday, Google released a (beta) version of Google Desktop for Linux. Check out their blog for the announcement! It includes indexing for PDF, PS, text files and source code, HTML, OpenOffice documents, Thunderbird email, Gmail, web history, man pages, images, music, and it also includes the Quick Search box. It doesn’t (yet) include the sidebar or support for any gadgets.

Screenshot from Google:

Google Desktop for Linux


This is hopefully the first of many “significant accomplishments/releases” for Linux this year from Google, according to their presentation at the Linux Foundation Collaboration Summit a couple weeks back, which was actually hosted at Google’s Mountain View Campus. Google already has official Linux versions of some of it’s popular applications, such as Google Earth and Google Picasa (though Picasa uses WINE).



Here’s to hoping that Google Talk is next!


On a side note, Google Docs & Spreadsheets also recently unveiled new changes to their user interface, which also benefit Linux in the sense that it is a web-based (i.e. cross-platform) option for basic office applications.



Powered by ScribeFire.

Google Docs and Spreadsheets Updated

Ron Schneider announced a new look for Google Docs and Spreadsheets today.


This
is a good example of changing the feel for an app that you use daily,
and adding some nice Ajax effects and features, such as the good 'ole
left side folder list. I wonder if anyone will be confused that these
folders map to tags, and there is a difference (think 'delete').


What's new


  • Looking pretty - The entire document list has
    been given a complete visual overhaul - new icons, more content, and
    better organizational controls. We know users spend a lot of time here
    and we aim to make it feel more like home.
  • Getting organized
    - Almost from the day we launched people have been clamoring for
    folders. They're here! Even cooler, our new folders continue to work
    like the tags they've replaced - your old tags are automatically
    converted to folders and documents can live in more than one folder at
    a time. Organizing your documents is as easy as dragging and dropping a
    document to a folder. We've also included special controls for seeing
    only those documents created by you or shared with a particular person.
  • Search that thinks ahead - If you've ever tried Google Suggest,
    you know how cool it is when a search engine offer suggestions as you
    type. Google Docs & Spreadsheets now works the same way - we offer
    dynamically filtered results from your document list as you type,
    saving you time and getting you to your documents more quickly.

New Google Docs







Powered by ScribeFire.

Monday, June 25, 2007

Could AJAX Replace Flash?

In at least some applications I think the answer is yes.



The animation control included with the ASP.Net AJAX Control Toolkit is pretty impressive. Animate OnMouseOver, OnMouseOut, OnClick, OnDoubleClick and more. Transition effects, movement, visibility screening and the whole thing is controlled by an XML document.



Here's a 20 minute video (unfortunately only available in .wmv) on using the Animation Control packaged with the Toolkit.





I'm going to try using it in place of Flash in my next application.





Powered by ScribeFire.

Popfly is top website to watch!

PCWorld named Popfly as one of it's top 25 websites to watch and I guess is #1 as it's right at the top of the list!

popflylogo

Here's the blurb on what PCWorld have to say:

"If you haven't already discovered the world of mashups, Microsoft's Popfly is a good place to start. Mashups combine multiple Web-based sites or applications to produce all sorts of useful things, such as an overlay of traffic information over Google Maps. With Popfly, you can create your own mashups--and you don't have to know a lick of code to do it. Just drag prefab building blocks, connect them, and you have an instant mashup that you can add to an existing Web page or turn into its own site. For example, you can easily produce a mashup that grabs pictures from a site like Flickr and then displays them in a rotating cube"

This is great news as the site has been built on Silverlight but even more than that for me is that a very good friend Andy Sterland is one of the Program Managers on the team. I'd like to say I had a small part to play in the success of Popfly as I recommended Andy to his boss John Montgomery after knowing and working with Andy here in the UK. With people like Andy on board I know the Popfly service is going to rock!

I wrote an article on Popfly for our MSDN Flash (go sign up if you are a professional developer, it's getting even better!) - Popfly: the mash-up revolution

Congrats to the Popfly team!

 





Powered by ScribeFire.

Learn how to build an Ajax Chat in 5 minutes

This is a small video tutorial from ideAjax.com on how to build an Ajax chat with Prototype, Java, and HTML. High res video is available here: http://ideajax.com/blog/?p=25


Powered by ScribeFire.

How Do I: Add ASP.NET AJAX Features to an Existing Web Application?

Learn how easily you add Microsoft ASP.NET AJAX functionality to an
existing ASP.NET application. This video shows that there is no need to
change your server controls or data access code — just add and
configure a few ASP.NET AJAX controls. Simple!

Presented by Joe Stagner

Duration: 7 minutes, 20 seconds



Link : http://asp.net/learn/videos/default.aspx?tabid=63





Powered by ScribeFire.

Friday, June 15, 2007

eBay Week: Titanium rings

Now here's a smart eBay seller. Meet Titanium Knights, a husband and wife team that has been making and selling beautiful titanium rings and wedding bands for 5 years.

Their lens doesn't just try to sell you a bill of goods... instead the Titanium Knights take the time to provide you with historical background and information (and even a video!) on how these rings are made. They dispell popular myths about titanium rings and share their favorite feedback and testimonials from buyers. Putting so much context around the items they're selling establishes trust, and gives potential new customers enough information to comfortable take action...and buy!

Making of a titanium ring
This video clip shows my husband programming the computer on the lathe for the specific ring style he is making. Each ring style/size/width has a different program in order to let the machine know how to cut the ring to the correct specifications. Next, he sets the titanium bar in the machine.





Powered by ScribeFire.

Windows users download 1 million copies of Safari


Safari was an early hit with Windows
users, who have downloaded 1 million copies of the browser since
Monday, according to Apple.

One million copies of Safari have been downloaded for Windows since Monday.

(Credit: Apple)


CEO Steve Jobs unveiled the Windows version of the browser
as a beta release Monday during his keynote speech at the Worldwide
Developers Conference. Safari makes up around 5 percent of the browser
market, trailing Internet Explorer and Firefox with its 18.6 million
users, a figure Jobs used in his speech Monday.


Cynical colleagues at CNET wonder how many of those downloads were
started by hackers and security professionals probing for weaknesses,
which is probably a fair point. Nine security vulnerabilities have already been discovered in the Windows beta, and Apple released an updated version of the browser in the wee hours of Thursday morning to plug some of the flaws.


Still, there had to be more than a few downloads from outside the
security community. The 1 million copies are of the initial beta
release, tagged 3.0.

U Can Download it From http://safariforwindows.net/


Powered by ScribeFire.

Wednesday, May 30, 2007

Could not load file or assembly 'Assembly Name' or one of its dependencies. The system cannot find the path specified.



One Way to solve this Error is

  1. Go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  2. Here You can find Folder named Your Application name e.g. "MyWeb"
  3. So first Stop ISS Web server.
  4. and Close Visual Studio 2005.
  5. Now Try to remove Folder "MyWeb" 
  6. After Deleting this folder  again open  Visual  Studio.. and
  7. Do Rebuild Website /Project


Wooppieie Error Gone...











Powered by ScribeFire.

Friday, May 25, 2007

How to select all Table Fields or Table Column Names in Asp.net & Sql Server 2000/2005

From many days i was Searching for A Source Code Which can return a Column Name of Selected Table. So Finally After a little bit of Effort i did it.



Here is Code To do it.



Before Using Code please Change Connection String and Give Respactive TableName in CommandText.



VB

Dim dr As SqlDataReader

Dim cmd As SqlCommand = New SqlCommand

Dim conn As SqlConnection = New SqlConnection("Server=Server\sqlexpress;Database=PragatiDataServer;Uid=dev_user;Pwd=password;")

conn.Open

cmd.Connection = conn

cmd.CommandType = CommandType.Text

cmd.CommandText = "select * from table_ads"

dr = cmd.ExecuteReader(CommandBehavior.SchemaOnly)

dr.Read

Dim dt As DataTable = dr.GetSchemaTable

Dim i As Integer = 0

While i < dt.Rows.Count

 Response.Write(dt.Rows(i).ItemArray(0) + "<br>")

 System.Math.Min(System.Threading.Interlocked.Increment(i),i-1)

End While

dr.Close

conn.Close




C#





SqlDataReader dr;

SqlCommand cmd = new SqlCommand();

SqlConnection conn = new
                  SqlConnection("Server=Server\\sqlexpress;Database=PragatiDataServer;Uid=dev_user;Pwd=password;");


conn.Open();

cmd.Connection = conn;

cmd.CommandType = CommandType.Text;

cmd.CommandText = "select * from table_ads";

dr = cmd.ExecuteReader(CommandBehavior.SchemaOnly);

dr.Read();

DataTable dt = dr.GetSchemaTable();

for (int i = 0; i < dt.Rows.Count; i++)

    {


         Response.Write(dt.Rows[i].ItemArray[0] + "<br>");



    }


dr.Close();

conn.Close();









Powered by ScribeFire.

Monday, April 9, 2007

Example of Sql Server 2005 Symmetric Encription Using DESX algorithm

Run Below Query in Your Sql Server 2005 Query Analyzer



USE master;



--CREATE SYMMETRIC KEY SecureSymmetricKey

--        WITH ALGORITHM = DESX

--        ENCRYPTION BY PASSWORD = N'StrongPassword';



--SELECT * FROM sys.symmetric_keys;



OPEN SYMMETRIC KEY SecureSymmetricKey

    DECRYPTION BY PASSWORD = N'StrongPassword';





-- declare and set varible @str to store plaintext

DECLARE  @str NVARCHAR(100)

SET @str = N'Hello World';



-- declare and set varible @encrypted_str to store

-- ciphertext

DECLARE @encrypted_str VARBINARY(MAX)

SET @encrypted_str =

          EncryptByKey(Key_GUID('SecureSymmetricKey'), @str);





-- display ciphertext

SELECT @encrypted_str AS CipherText;



-- declare and set varible @decrypted_str to store

-- decrypted ciphertext

DECLARE @decrypted_str VARBINARY(MAX)

SET @decrypted_str = DecryptByKey(@encrypted_str);



-- display decrypted text

SELECT CONVERT(NVARCHAR(100), @decrypted_str) AS PlainText;



-- close and drop the key

CLOSE SYMMETRIC KEY SecureSymmetricKey;

--DROP SYMMETRIC KEY SecureSymmetricKey;






Powered by ScribeFire.

Friday, April 6, 2007

How to Access Sql Server 2005 Remotely

If enabled, the default instance of the Microsoft SQL Server Database Engine

listens on TCP port 1433. Named instances of the SQL Server Database Engine and

SQL Server Mobile are configured for dynamic ports, which means they select an

available port when the SQL Server service is started. When connecting to a

named instance through a firewall, configure the Database Engine to listen on a

specific port, so that the appropriate port can be opened in the firewall.

To

assign a TCP/IP port number to the SQL Server Database Engine

  1. In SQL Server Configuration Manager, in the console pane, expand

    SQL Server 2005 Network Configuration, expand Protocols for

    , and then double-click TCP/IP.





  2. In the TCP/IP Properties dialog box, on the IP Addresses tab,

    several IP addresses appear, in the format IP1, IP2, up to

    IPAll. One of these are for the IP address of the loopback adapter,

    127.0.0.1. Additional IP addresses appear for each IP Address on the computer.

    Right-click each address, and then click Properties to identify the IP

    address that you wish to configure.





  3. If the TCP Dynamic Ports dialog box contains 0,

    indicating the Database Engine is listening on dynamic ports, delete the

    0.





  4. In the IPn Properties area box, in the TCP

    Port
    box, type the port number you wish this IP address to listen on, and

    then click OK.





  5. In the console pane, click SQL Server 2005

    Services
    .





  6. In the details pane, right-click SQL Server (

    name>) and then click restart, to stop and restart SQL

    Server.



After you have configured SQL Server to listen on a specific port

there are three ways to connect to a specific port with a client

application:



  • Run the SQL Server Browser service on the server to connect to the Database

    Engine instance by name.





  • Create an alias on the client, specifying the port number.





  • Program the client to connect using a custom connection string.



Powered by ScribeFire.

Monday, April 2, 2007

Webpages to compete for keyword "Shopping"

Symbol Definition
BLD Backlinks to the domain in Yahoo.
BLP Backlinks to the webpage in Yahoo.
PRD Pages Rank of domain.
PRP Pages Rank of webpage.
Count Keyword/Keyphrase occurrences on webpage.
Pages Pages indexed of domain in Yahoo.
Anchor All in Anchor Rank of domain in Google.
Title All in Title Rank of domain in Google.
Text All in Text Rank of domain in Google.
NA Result is not available
- Not Found
No. Address BLD BLP PRD PRP Count Pages Anchor Title Text
1 www.shopping.com 7860000 - 8 - 122 22300000 1 1 1
2 shopping.yahoo.com 7210000 - 8 - 188 161000000 2 2 3
3 www.bizrate.com 11000000 - 8 - 6 13400000 3 3 5
4 dmoz.org 7770000 31800 8 7 61 3160000 4 4 7
5 froogle.google.com 23400000 - 8 - 3 133000 5 99 9
6 shopping.msn.com 2990000 - 8 - 113 2890000 6 6 11
7 www.google.com 161000000 474 10 7 16 3090000 9 9 13
8 www.startribune.com 710000 44400 7 7 318 104000 10 10 15
9 dir.yahoo.com 42800000 1120 8 6 24 14700000 11 11 -
10 www.nwsource.com 1600000 252000 8 7 108 22700 12 12 16
11 www.qvc.com 91600 - 6 - 15 125000 13 - -
12 www.chicagotribune.com 1620000 20400 8 7 76 711000 14 13 18
13 www.chicagotribune.com 1620000 32300 8 6 76 711000 14 13 18
14 www.sacbee.com 553000 33800 7 7 66 209000 16 15 -
15 www.sacbee.com 553000 4620 7 7 66 209000 16 15 -
16 shopping.rediff.com 584000 - 6 - 2 40300 17 - -
17 www.shopping.indiatimes.com 3580 - 0 - 83 1620 18 - -
18 www.nwsource.com 1600000 235000 8 6 108 22700 12 12 16
19 www.pricegrabber.com 1980000 - 8 - 5 26200000 23 19 21
20 shopping.tbo.com 125000 - 6 - 43 15 20 17 -