Saturday, November 29, 2008

Terror attacks on Mumbai : India’s 9/11

This blog post is tribute to those 14-15 Brave Mumbai Police Cops, NSG Commandos, Army personals and Staff of Taj and Oberoi Hotel,Nariman House who lost their life, who got very deadly injuries and who lost their friends and family members in a brutal and dirty attack by Terrorist on India’s biggest Metro and Capital of Maharashtra “Mumbai”.

This I personally think was most deadly attack ever happen anywhere in the world, more worst than 9/11 happen in US.160 innocents Dead and more than 300+ injured badly, more than 50 hours of gun and grenade battle at 10 different places of Mumbai.

1 INDIA-MUMBAI/SHOOTINGS
2 4

[Photos from various Blogs and News updates on Internet]

Big loss to our nation, but Indian and local government fight it out very well and finally able to wipeout terror out of Mumbai finally on early morning today along with unforgettable contribution of Police and Army of India.

I Pray to God for all those who lost their lives to protect us,protect nation, I pray for those who lost their love ones..May God Bless !

Vikram.

Monday, November 24, 2008

DeepZoom with PhotoZoom and Silverlight.live.com

I have already wrote article on How to build DeepZoom with DeepZoom Composer, I know after that another version of DeepZoom came up, but changes are not that much to discuss,still you can see old one for reference, This is now the depolyment part or you can say extension to my old article at :

http://pendsevikram.blogspot.com/2008/07/deep-zoom-with-silverlight-2.html

First thing to note that, we are discussing first "PhotoZoom" which practically don't require any DeepZoom Composer and even those users who are not aware of DeepZoom, now even they are getting empower with PhotoZoom, so they will be also now able to create DeepZoom on fly.

What is PhotoZoom??

"PhotoZoom makes it easy for anyone to create zooming albums from their uploaded photos. It is an experimental site, developed at Microsoft, that uses the Deep Zoom technology in Silverlight 2."

PhotoZoom is FREE !! :)

Step 1: Visit http://photozoom.mslivelabs.com/ ,hope you already have Live ID, if not please get one, its worth doing so.

Step 2: Once you sign-in with your Live ID, you will get :

zoom1

Step 3: Upload Snaps/Photos using Browse button,Note on thing over here that You may need Silverlight Runtime, since I saw that Once you click on "Browse" button,it loads Silverlight File Upload app, so you may need runtime here if you don't have it.

Also PhotoZoom have provided facility to get snaps from RSS feeds/Atom, you can also Email or even Delete Album.

zoom2

Step 4: Upload all the snaps, if you wish to give title to each snap, you can simply click on any of the snap and give caption/details over there like :

zoom3

One thing to note here which I have highlighted in Red box, Can you see it creates what?? ..yes DeepZoom Image file. see extention  is 1.xml, so each images goes to collection like we have it in DeepZoom [ I don't mind to say this PhotoZoom is nothing but Web Version of DeepZoom Composer ;-) , Great job Microsoft !! :-) ] 

Step 5 : You are ready with DeepZoom, can't see that? ok, then just you need to click on "View Zooming Album" option on right side of the template and you are totally ready with DeepZoom!!

zoom4

You can see output instantly on the same page :

zoom5

This is how it looks like, Observe topmost section with "+ -"  sign for zooming and it also shows how much it has zoom with third button next to "-", If you observe bottom most red block, Yes ! you get <iframe> so you can plug and play it anywhere you want, isn't this much simpler and friendly? do let me know your feedback !

[Between, snaps which you looking at in above snaps are from my 1st Session on Silverlight at Pune Developer Conference 2008 :) ]

DeepZoom with Silverlight.live.com

Now in second section of this article as we started with Silverlight streaming and DeepZoom, so with referecne to that,here I assume that you have already followed all steps of my previous article at :

http://pendsevikram.blogspot.com/2008/07/deep-zoom-with-silverlight-2.html

So once you have set of images ready, go to Silverlight.live.com site to host that DeepZoom and to stream it across.

If you are not aware of Silverlight.live.com, you can read my old article at :

http://pendsevikram.blogspot.com/2008/10/silverlight-live-streaming.html

Here you need to follow same procedure, but this time with xap, you need to also copy "GeneratedImages" folder from DeepZoom along with one Manifest.xml file whose contents are like :

<SilverlightApp>
  <version>2.0</version>
  <source>VikramDeepZoom.xap</source>
  <width>400</width>
  <height>400</height>
  <background>gray</background>
  <isWindowless>false</isWindowless>
</SilverlightApp>

Zip this xap,xml file and GeneratedImages folder and directly upload it as Application on Silverlight.live.com, then follow the same old procedure of editing it there, again you will get scripts and iframe code generated over there, so you can plug that and you are ready with your DeepZoom Streaming application.

Hope this will be useful for you and encourage you to convert all your photos which you store on drive to a classy Online DeepZoom Album !!

Vikram.

Wednesday, November 19, 2008

Silverlight 2 : Master Pages implementation in Silverlight 2

The title of the post may be sound funny, and it was fun since many arguments did happen while whole process of this implementation.

There are several post made by several expertise and enthus on the same, Basically a big question is do we need this?? since all Silverlight application however powerful they are, they are still run under umbrella of ASP.NET. I agree on this !

But there might be some business scenarios, if not now then might be in future, so keeping this vision in mind, here I am showing you a very easy way to implement Master Page concept in Silverlight, It is not difficult code and neither we need to touch App.xaml file..here I go :

SLMasters1

This is what I want to build, You can see header part "Explore .NET with Vikram Pendse" followed by buttons [Third Party Silverlight Control may provide you good Menu bar too] and footer as "Microsoft .NET for everyone !!".

Now once I click on Home or RSS or any other button, Idea is to keep header and footer as it is and load other page contents in middle blank portion as content if we assume this page as Master page. so the required XAML code is,

XAML Code :

<Grid x:Name="LayoutRoot" Background="AliceBlue">
        <Button x:Name="btnBlog" Height="22" Width="67" Content="Blog" Margin="161.5,36,171.5,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Click="btnBlog_Click"/>
        <Button x:Name="btnRSS" Height="22" Width="67" Content="RSS" HorizontalAlignment="Left" Margin="94,36,0,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Click="btnRSS_Click"/>
        <Button x:Name="btnHome" Height="22" Width="67" Content="Home" HorizontalAlignment="Left" Margin="27,36,0,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Click="btnHome_Click"/>
        <Button x:Name="btnDownload" Height="22" Width="67" Content="Download" Margin="0,36,104,0" VerticalAlignment="Top" HorizontalAlignment="Right" d:LayoutOverrides="Width, Height" Click="btnDownload_Click"/>
        <Button x:Name="btnAbtus" Height="22" Width="67" Content="About Us" Margin="0,36,37,0" VerticalAlignment="Top" HorizontalAlignment="Right" d:LayoutOverrides="Width, Height" Click="btnAbtus_Click"/>
        <TextBlock Height="23" Margin="94,8,116,0" VerticalAlignment="Top" Text="Explore .NET with Vikram Pendse" TextWrapping="Wrap" Foreground="#FF000000"/>
        <StackPanel x:Name="stk" Width="400" Margin="0,66,0,30"/>

        <TextBlock Height="23" Margin="106,0,104,3" VerticalAlignment="Bottom" Text="Microsoft .NET for everyone!!" TextWrapping="Wrap" Foreground="#FF000000"/>
    </Grid>

Here you can see that I am using "stk" as my contentplace holder stack where I will load the other pages on each corresponding button clicks, rest of the code is just routine design.

C# Code :

namespace SL_MasterPages
{
    public partial class Page : UserControl
    {
        int var = 0;

        public Page()
        {
            InitializeComponent();
        }

        private void NavigateRequest(int w)
        {
            if(w>0)
            {
                switch(w)
                {
                    case 1:  stk.Children.Add(new RSS());
                             break;
                    case 2:  stk.Children.Add(new Home());
                             break;
                    default: this.Content = new Page();
                             break;
                }
            }
        }

     private void btnRSS_Click(object sender, RoutedEventArgs e)
        {
            stk.Children.Clear();
            var = 1;
            NavigateRequest(var);
        }

        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            stk.Children.Clear();
            var = 2;
            NavigateRequest(var);
        }
   }
}

Here I have implemented for first two buttons, I am setting and resetting flag values for each button with a global variable as "var", and I am clearing stack in each click so as to keep contents dynamic in nature.

I have written a "NavigateRequest" sub proc which takes integer value just for switching between two pages. So this is very simple way to switch between the pages from one to anothet and result will be like..

SLMasters2

SLMaster3

Now you can see messages like "You are on Home Page", "You are on RSS Page", these you will get once you click on corresponding button on Main Header and you also have observed now that header and footer are constant in all case like Master Pages in ASP.NET

Hope this will encourage you to go ahead and explore it more and apply the same in all possible business scenarios which need this kind of implementation.

Feedback and suggestions for this are most welcome, I will be more than happy to know if there are any more simple and good way to implement such things.

Vikram.

Ultimate Windows Tweaker is here : Great job by Pune MVP !!

Another landmark is set in Indian IT and a proud moment for Pune City.

City based MVP Anand Khanse did a wonderful job. A free Ultimate Windows Tweaker which is a Tweak UI Utility for tweaking and optimizing Windows Vista, 32-bit & 64-bit is now available to whole world !!

It can simply be downloaded and used as a portable application to customize your Windows Vista to meet your requirements.

This was made public in recent South Asia MVP Open Day 2008 in Goa,India in presence of 60+ MVPs across Asia and  It was made public by Howard Lo, Microsoft's Regional Team Manager (APAC), in the prescense of Abhishek Kant, South Asia – MVP Lead and Abhishek Baxi, MVP Program Specialist.

You can check here for more details and download :

http://www.winvistaclub.com/Ultimate_Windows_Tweaker.html

It is very well design,developed and tested tool, if you have Windows Vista and If you don't have this tool, then you are missing something big thing !! so don't waste time..go there and download it..convey this to your other friends in communities and Vista buddies !!

Note : WinVistaClub is simply amazing portal for all kind of information on Windows Vista and its services, so do check that portal, for this, I have already added a WinVistaClub Link/Button on right side of my blog.

Vikram.

Wednesday, November 12, 2008

Windows 7 : Lap around new version of Windows

Windows 7 finally come to meet all of us in great event PDC2008, There is always lot of excitement when something new is getting launched. Why so..simple reason is people now a days are prefer more customize things and personal things which runs under their local language settings.

Well, I am here going to share my hands on experience with Windows 7, I humbly request my readers that, this build of Windows 7 is a testing build and pre-release beta, so whatever features which I am going to mention right now may be get change or even removed in coming builds, since its totally not our policy.

So lets go ahead and see what's new in Windows 7, This is I am planning to share in two sets of article, so may be I will again write one article if I found any more stuff to show you.

Windows 7

Installation :

IMAGE_038

It took around 18-20 minutes to install total build of pre-release of Windows 7, I tested it on 1 GB RAM, 80GB HDD,Intel Centrino Processor, worked very smoothly and yes most of the installation options are similar to Windows Vista.

Welcome to Windows 7 :

screen4

Very friendly and customizable UI is for Windows 7, First time even I was in surprise mode, I found many of the functional and UI part very much inline with Windows Vista Ultimate which is I work with everyday.

"Start" button I found very glowing one when I mouse hover it.

No Sidebar :

You must have observe that there is now no such compulsory Sidebar which is getting popped up on Windows start in Vista which also sometime becomes heavy due to Gadgets loaded on it.

From screen above you can see that, Now I can drag and drop gadgets and put them anywhere I want, This is new feature provided by Windows 7.

Right Click Menu :

SL7

Now you can see the "Gadgets" option which I was talking about.

New Improved Taskbar :

There was lot of demand from public to have good customizable and stable Taskbar, so here it is, with reference to first screen and rest :

SL5

SL6

One more thing I would like to mention that, there is not such "Quick Launch" stuff now, whatever Items you feel good you can drag drop those on taskbar to made them Quick .

You still have Thumbnail preview in Taskbar like Vista where you can see a simple snapshot of application which is active.

Now with Windows 7 , more spice is added to it, now you can see a small "Cross" red button on Thumbnail preview also where you can close certain application from preview itself.

Also a small up arrow now pops up with the recent files which have been open using that particular application.

To make certain application as "Quick" in Taskbar,now you have a option of "Pin this program to Taskbar".

Built in XPS Viewer :

XPS Viewer is now built-in with Windows 7

Clock and Show Desktop and Tray for rest of Icons :

SL8

You can see a small Tray with "Customize" option, now rest of all icons which are now "Quick" now sits over here in this small tray, which I personally feel a damm good feature !

No need to wild guess, yes the small Rectangle next to clock is now a "Show Desktop" button.[ I spend around 2 hrs then after wild clicking here and there I found this out, but its fun!!]

Improved UAC :

There was only two states in Vista as Turn on or Turn off UAC, something interesting and different here, see this :

SL10

Now it comes with various states starting from "Always Notify" to "Never Notify" and you can adjust these with scroll bar, it do shows description of each level in right side yellowish box.

Screen Resolution Settings :

On similar lines of UAC, they are now giving Scroll Bar for adjusting the screen resolutions, see this :

SL9

That's all for me about Windows 7, offcourse this was just Lap around, I will be covering more Tips,Tricks and new stuff in and about Windows 7, Hope this post will give you vision about what is coming to you in coming days in terms of "Windows 7" 

So get ready for long ride !! Windows 7 is here..

Vikram.

Tuesday, November 11, 2008

South Asia MVP Open Day '08, Goa ,India

After last meet of all India UG Leads at Bangalore, Another Big event I am attending, In Bagalore meet all UG MVPs were there, we had a great time and great inputs to each other about how we can improve community and implement new things, Also about how things can be done together on India level etc.

Now this time, beside UG MVPs, all Top site owners, Blogger MVPs, Book writers etc. now going to be together at one HOT and FUN place..none other than...GOA !!

So, To all my Blog readers..!! I am going to take break from Friday 14th Nov. 2008 to 18th Nov. 2008 since I will be in summit at Goa.

Offcourse once I come back, I will share all the fun and thrill along with Photos !! :)

MVP Open Day 2008 Badge

Saturday, November 8, 2008

Migrate DataSet to List<Type> for Data Binding for Silverlight 2 Grid.

I have wrote 2 article on Data binding in Silverlight 2, one with normal traditional “asmx” web services and another with WCF services. you can check them at :

http://pendsevikram.blogspot.com/2008/10/silverlight-2-grid-linq-to-sql.html

http://pendsevikram.blogspot.com/2008/10/silverlight-2-grid-with-silverlight.html

There was very well response to both articles..I got lots of mails from many..But the feedback is how one can do it with DataSet [Traditional Data Container] and pass it over service, without using LINQ or migrating to LINQ.

Well Big thanks to Mr. Mahesh Sabnis who is one of my mentor at consulting department where I am working right now, We did it together and came up with this simple code snippet which is self explanatory and you just need to plug it in your service logic and rest will work fine as it was with LINQ to SQL.

       public List<clsEmployee> GetAllEmployee()

       {

           SqlConnection Conn = new SqlConnection("Data Source=.;Initial
Catalog=Company;Integrated Security=SSPI");

           SqlDataAdapter AdEmp = new SqlDataAdapter("Select * from
Employee",Conn);

           DataSet Ds = new DataSet();

           AdEmp.Fill(Ds,"Employee");

           DataTable DtEmp = Ds.Tables["Employee"];

           List<clsEmployee> listEmp = new List<clsEmployee>();

           foreach (DataRow dr in DtEmp.Rows)

           {

               clsEmployee objEmp = new clsEmployee();

               objEmp.EmpNo = Convert.ToInt32(dr["EmpNo"]);

               objEmp.EmpName = dr["EmpName"].ToString();

               objEmp.Salary= Convert.ToInt32(dr["Salary"]);

               objEmp.DeptNo = Convert.ToInt32(dr["DeptNo"]);

               listEmp.Add(objEmp);

           }

            return listEmp;

      }

Let me know your feedback, I would glad to explore if you have any problem areas specific..will be nice to try it !

Vikram.

Friday, November 7, 2008

Bill Gates Visit to my city “Pune” and DreamSpark is here now !!

Bill Gates visit to Pune :

Kindly read more about Bill Gates Visit to Pune on 6th Nov. 2008 at :

News in my regional language [Marathi] :

http://www.esakal.com/esakal/11072008/PuneF5E7103B0D.htm

Photos :

http://www.esakal.com/features/071108/pune_gats/index.htm

DreamSpark :

Microsoft announced a remarkable program for Students all over the world. Now its in India !! :)

There are millions of student across the globe who are seeking a bright career in field of Information Technology and Services.

For doing such courses in IT, lot of money is spend by the Universities and college authorities across globe. This is because Software/Programs/Applications which are involved in it for educating students are normally very high in cost.

Microsoft came with a revolution program as “DreamSpark”
This is I should say a big revolution..

DSPK

For more information on DreamSpark do visit to Indian Version of the DreamSpark Portal at :

http://www.dreamsparkindia.com/dreamspark/

BizSpark :

Microsoft has already a very successful program for IT companies across the world, known as Microsoft Certified Partner program

Now on similar lines of DreamSpark, now they have came up with BizSpark.

BSPK

For more information on BizSpark do visit to the BizSpark Portal at :

http://www.microsoft.com/bizspark/

 

Vikram.

Thursday, November 6, 2008

Silverlight 2 : Theming from Silverlight 2 Toolkit

It’s now time to put on some cool Themes to your Silverlight 2 Controls.

I have already talked about Silverlight toolkit in my last post, This is add-on to my last post on control toolkit.

There are few built-in themes you will get as control in form of DLL in toolkit setup, see this :

  • Expression Dark
  • Expression Light
  • Rainier Orange
  • Rainier Purple
  • ShinyBlue
  • ShinyRed

DLLS

Here is the sample code for one theme,same is for rest :

<Grid x:Name="LayoutRoot" Background="White">
       <shinyRed:ShinyRedTheme>
             <StackPanel Margin="10">
                <Button Margin="5" Height="28" HorizontalAlignment="Left" Width="86" Content="Vikram"/>
                <ComboBox Margin="5">
                    <ComboBoxItem Content="Vikram Pendse" IsSelected="true"/>
                </ComboBox>
                <CheckBox Content="Ready to Rock??" IsChecked="true" Margin="5"/>
        </StackPanel>
    </shinyRed:ShinyRedTheme>

 

Outputs for various Themes given in list above :

ExpressionDarkTheme

ExpressionLightTheme

RainierOrange  

RainierPurpleTheme

ShinyBlueTheme

ShinyRedTheme

For more in-depth reading visit following interesting article :

http://www.codeplex.com/Silverlight/Wiki/View.aspx?title=Silverlight%20Toolkit%20Overview%20Part%203&referringTitle=Home

Vikram.