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.