Did you know - There is a method called Lorem that gives you a bunch of text

by rahul 7/17/2010 6:53:33 AM
Today, while working with one of my colleagues, Chetan… I found a pretty neat trick to get some junk text in MS Word or Outlook. Just type something like =Lorem(5, 2) and hit enter. Basically, you are telling to create 5 paragraphs of 2 lines each and so on… I just tried with =Lorem(3, 10) and I got the following. Not bad! Having it in English would have been better I guess Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pul... [More]


Did you know - You can use ItemTemplate to create bindings with visual representation

by rahul 7/9/2010 10:10:00 AM
In this post find out how easily you can use databinding to create a listbox which gives visual data representation. First up, create a class [Student.cs] like as follows… Notice the Students class below is an ObservableCollection.  using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.W... [More]


Did you know - There is an icon called Outline in VS2010 that helps in selecting control

by Rahul 7/7/2010 10:40:00 AM
This is another cool thing in VS2010 which goes unnoticed. In any Silverlight project, drag and drop a StackPanel. With the StackPanel selected, Double-Click Button control multiple times, to get 4 different button controls. Something like this… You can add a lot of controls in different layers (like a Tab control). Let's say you want to select all button controls and give them an equal size. How do you do it?Did you know that there is a an icon called Outline, that looks like this&he... [More]


Did you know - VS 2010 gives you an option of Auto while working with the Grid in Silverlight

by Rahul 7/5/2010 10:33:00 AM
In any Silverlight project you can hover your mouse over the edges of the Grid and click it. You can drag and drop multiple controls inside this Row or Column. Let's say, you get a grid split something like this… If you like you can resize the cell size. But, it can be a good idea to go "Auto". if you hover your mouse near the cell's left edge, you will get a choice like the following… (for fixed, proportion and Auto). If you click Auto, you will find t... [More]


Did you know - You can set the Resource for any control directly from VS2010 designer

by rahul 7/2/2010 10:49:00 AM
In a Silverlight application, Create a resource in App.xaml. Something like this… <Application.Resources> <RadialGradientBrush x:Key="GreenRadialBrush" > <GradientStop Color="DarkGreen" Offset="0" /> <GradientStop Color="White" Offset="1" /> </RadialGradientBrush> <LinearGradientBrush x:Key="SampleLinearBrush" > <GradientStop Co... [More]


Did you know - Windows Key + X shows a pretty useful screen

by Rahul 6/30/2010 10:49:00 AM
I never saw this before, and today I have hit this by accident. Windows + X key brings up the following screen on Windows 7. I found it pretty useful! For ex… you can change your presentation settings in just a couple of clicks! Cheers, Rahul Quote of the day: A lifetime of happiness! No man alive could bear it: it would be hell on earth. - George Bernard Shaw


Did you know - In Silverlight stretch doesn't work if you have width/height set explicitly

by rahul 6/28/2010 10:49:00 AM
In a Silverlight application, drag a border control, and inside the border drop a rectangle. Somewhat like the image below. The question here is… Horizontal Alignment setting has a default value Stretch. How come it is behaving as if it is Center? <Rectangle Height="71" Name="rectangle2" Stroke="Black" StrokeThickness="1" Width="101" /> In the code above, you can see I haven't specified Horizontal Alignment. Hence, it should be Stre... [More]


Did you know: How to recreate “Default Web Site” in IIS 7 / 7.5

by vivek 5/26/2010 9:15:30 PM
Many a times you will find people delete the “Default Web Site” and then they install some application which require “Default Web Site”. Now, once you have deleted the Web Site how can you recreate or undelete the Web Site. Not possible unless you have a backup. Fortunately, there are workarounds in IIS 6 / 7 / 7.5 through which you can recreate the deleted “Default Web Site”. Does that mean you accidentally deleted a working Web Site and you can recreate it, the answer is “NO”. You can only re... [More]


Did you know: How IIS 6.0 handles Custom Errors when aspnet_isapi.dll is mapped as a wildcard extension?

by vivek 3/23/2010 12:21:34 AM
Sometime back I came across a very good question on ServerFault and I thought of doing some research to understand how IIS handles Custom Errors setting when all requests are passed through aspnet_isapi.dll. Here is a brief background: Scenario 1: We have a Wildcard mapping configured for aspnet_isapi.dll with “Verify that file exists” unchecked. We also have Custom Errors configured for 404. We have configured it as a URL and the path is /404/. Remember the path 404 does not exists in ww... [More]


Did you know: Configure Client Certificate Mapping in FTP 7.5 - Part 4

by Vivek 3/5/2010 1:57:00 AM
In this post, we will install a User Certificate, enable Named Mapping and test FTPS using a tool.Install User Certificate: Open Internet Explorer, and open the website https://server1/certsrv Click Request a Certificate Click User Certificate Click Yes on Web Access Confirmation (if it prompts) Click Submit Click Install this certificate You will get a confirmation that a user Certificate has been installed Confirm Client Certificate has been installed: Open Internet Explorer ... [More]


Search


Tags



Categories

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0