October 2005 - Posts

Microsoft Max - a WinFX enabled software

You need to have WinFX Runtime September CTP running before installing Microsoft Max.
Below is how Microsoft Max looks like?
http://community.sgdotnet.org/photos/chuawenching/category1167/picture22339.aspx
Then you can select the type of view you want to see the pictures. Below is an example of Mantle view.
http://community.sgdotnet.org/photos/chuawenching/category1167/picture22340.aspx
You need to sign in to your passport account within Microsoft Max as below.
http://community.sgdotnet.org/photos/chuawenching/category1167/picture22341.aspx
Microsoft Max is a software that enables you to share your picture galleries to people around you. 
In each of the created list, you can set the email address of your friends to download your photos. 
However, your pictures are not sent to your email. Your friends still need to have Microsoft Max and 
connect to your PC to access it.
http://community.sgdotnet.org/photos/chuawenching/category1167/picture22342.aspx
Cheers.
Posted by chuawenching with no comments

WinFX September CTP is not WinFX Beta 2.0

For your information, don't get mix up between WinFX September CTP with WinFX Beta 2.0. I heard it 
was completely different.
Cheers.
Posted by chuawenching with no comments

I had a honors degree now and seeking for new job

"No one is going to use this "no degree" phrase on me anymore.
No one is going to look down on me anymore. 
No one is going to push my salary down anymore."
I felt less stress with a degree right now. The degree results were not so good, Second Lower, but 
it is a honors degree from University of Staffordshire. Fortunately my degree project saved me a 
lot - "Needs of Obfuscation".
I was glad and relieved that I had finished this finally.
Additionally, I had informed Sapura that I would not continue my contract anymore which will end by 
December 20++ 2005. I am looking for new job opportunities that targets on Microsoft .NET Development 
(hopefully .NET 2.0). I will not work on something non related to Microsoft .NET. I will get myself
focussed this time.
However, I am quite weak in ASP.NET and Database. I will have to brush up this skills to be ready for 
the coming job and to be able to contribute in the team. 
Hope I can join a good company (Multi National Companies) this time. I will have to be patience and 
decide properly before joining the new company. Learned a lesson :) 
Cheers.
Posted by chuawenching with no comments
Filed under:

ASP.NET 2.0 Atlas - Getting Started

Cool. I just realized about the existence of Microsoft Atlas. Well I knew about it, but I did 
not expect, there were a hands-on lab for that.
You can check it here http://beta.asp.net/default.aspx?tabindex=7&tabid=47
For the website template, download it here 
http://msdn.microsoft.com/asp.net/future/atlastemplate/default.aspx
For the hands-on-lab, download it here 
http://msdn.microsoft.com/asp.net/future/atlashol/default.aspx
You might be curious about the VSI file extension. It does not have an icon, something like those 
software with missing icons. Look below:
http://community.sgdotnet.org/photos/chuawenching/category1106/picture22297.aspx
I initially thought I needed to have Visual Studio Installer 1.1 in order to install it. After 
getting that software installed, it still did not make any difference. 
However, a small tip for you. Just double click on that VSI setup files. You will see as below:
http://community.sgdotnet.org/photos/chuawenching/category1106/picture22298.aspx. Easy right?
To get started, open up your VS 2005 Beta 2 or RTM and select File - New - Website - My Templates.
Finally, I can't wait to try out the hands-on-lab. Check out my blog for more updates on Atlas.
Posted by chuawenching with no comments
Filed under:

WPF - Problems with XAMLPAD and my view on Avalon

I just noticed a number of disadvantages of using XAMLPAD.
1. First, whenever you type a markup like
<StackPanel> // you have to manually end </StackPanel> by yourself instead of the visual 
editor automatically does it for you.
2. No intellisense. :( However, you can write XAML in Visual Studio 2005, but you cannot see the output
on the fly except you press CTRL + F5 in the IDE.
I was hoping to leverage both software at the same time, say:
a) Write xaml markup in the XAMLPAD.
b) Once I am comfortable with the UI, since I can the UI generated on the fly.
c) I will copy this xaml and be used directly in my Avalon or WPF project in VS 2005.
3. It just does not understand Class attribute. Below is the syntax, and you will expect an error.
Snippets extracted from 
http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wcp_
conceptual/html/521071e7-9081-4705-8b1c-57df963dcaa7.asp
<Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
      xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
      x:Class="QuickStart_4.Page1">
  <StackPanel>
    <Button HorizontalAlignment="Left"
            Width="100"
            Margin="10,10,10,10"
            Click="HandleClick"
            Name="Button1">Click Me</Button>
  </StackPanel>
</Page>
Error:
The 'http://schemas.microsoft.com/winfx/xaml/2005' namespace attribute named 'Class' is not 
valid when loading a Xaml file. Try compiling your Xaml. Line 3 Position 7
3. It does not understand events except it is compiled.
Error:
Events cannot be specified in a Xaml file unless it is to be compiled. Line 5 Position 13
4. Writing XAML code is pretty tiring. It is not an easy job. But I believe the new product by 
Microsoft; Sparkle will solve this issue. I saw a number of Sparkle demos in Zam3d website (check 
www.erain.com) 
IMHO, I believe in future software development, the graphic designers will use Microsoft Expression 
product to develop the User Interface, while the developer will just focus on the logic. 
Cheers.
Posted by chuawenching with no comments

Recruiter != Human Resources

Sometimes I do wonder,
a) Is recruiter equivalent to Human Resources?
or
b) Does a recruiter works under the Human Resources?
or
c) Recruiter is just for hiring and is different from Human Resources
or
d) None of the above
Hmm... then what does each of this role play in an organization?
i) Recruiter
ii) Human Resources
???
Posted by chuawenching with no comments
Filed under:

Getting started - Visual Studio 2005 Extensions for Windows Workflow Foundation

Take note, you have to install the Visual Studio 2005 extensions for Windows Workflow Foundation 
in order to get started working with it in VS 2005. No wonder, I could not get it working yesterday. 
You can download it here: 
http://www.microsoft.com/downloads/details.aspx?familyid=7096d039-2638-4f63-8654-d2e5d98fa417&displaylang=en
Seriously, I am quite interested with Windows Workflow Foundation and other WinFX components. I will 
write more about it later. I never enjoyed a technology as much as WinFX. Cool!
Probably will enjoy my weekend without looking at my laptop. Hehe.
Posted by chuawenching with no comments

WinFx WPF or Avalon - WindowsUIAutomation reference not found

How do you see whether you have a failed WindowsUIAutomation reference in an Avalon project? 
Easy, just open up your VS 2005 and create a new Avalon application. You will notice 2 things.
1. Your application cannot compiled.
2. There is an error on refering WindowsUIAutomation
As far I understand, WindowsUIAutomation had been renamed to something else in the latest sdk. I can't be
that specific on the new name, as I still pretty new to Avalon or Windows Presentation Foundation.
So what does this mean? Does it mean you use the wrong version of VS 2005 Beta 2? Not actually...
Basically, I was quite confuse with WinFX SDK installation at first. In order to solve this thing, 
I will recommend 2 links as below, as well as extract the necessary information into here:
Extracted from  [1] http://www.longhornblogs.com/rrelyea/archive/2005/09/16/PDC2005Software.aspx
Uninstallation
"Uninstalling old builds of WinFX or Avalon/Indigo (Added this section in Update #4)
Before installing a new build of WinFX, you should generally remove all the pieces of the last 
one you installed.
Generally, uninstalling in reverse order is the way to do it.
If the visual studio build didn't change since the last release, you don't need to uninstall it, but
you should still uninstall VS Extensions for WinFX then WinFX SDK then WinFX." [1]
Okay, once you are done. From the website above, you are recommended to download a javascript file 
that helps you to clean the left out avalon references and registry keys. 
First download the file from http://www.sneath.org/tim/cleanupSharedFiles.js
Then load up your command prompt in Windows XP, and type cscript cleanupSharedFiles.js. 
Thrust me, you need to wait for some time. It took me around 3 -5 minutes. So be patient.
For more information, check out the original blog here 
http://blogs.msdn.com/tims/archive/2005/09/20/471815.aspx
Installation
"Off the web - How to get a WPF development box going (order matters) if you are downloading 
everything from the web.
1. Operating System Required - Windows XP SP2 or Windows Vista 5219 (not Windows Vista beta1!)
UPDATE3: Another important issue that Gerald Beuchelt ran into: When trying to install the 
VS2005 Beta 2 on Vista, it constantly failed and the installation stopped with an error when 
trying to install the MSXML 6.0 component. The solution is to install the MSXML 6.0 parser 
before you install VS 2005 Beta 2. The installer can be found in the VS directory in the 
subfolder wcu\msxml.
2. WinFx CTP installation
http://www.microsoft.com/downloads/details.aspx?familyid=ffd636f0-86e9-41e8-9e1c-100a4cc4888f&displaylang=en
This installs WinFX on the machine...end users will need this done.
WPF (fka "Avalon"), WCF (fka "Indigo"), and .NET Framework 2.0 all get installed with an integrated setup.
3. Visual Studio (Beta 2!!!)  (or you can also install Visual Basic Express  or VC# Express - just make 
sure it is "Beta 2"!)  Sorry, there is currently no build of WinFX that is compatible with RC or RTM 
builds of VS!
Once the install is done, make sure you do step 2 of the VS setup...install Help content - use it
offline if you want it to work its best with WinFX SDK content to come later.
4. Windows WinFX SDK
http://www.microsoft.com/downloads/details.aspx?familyid=C20CC6C8-1F4E-4A5C-BC79-C2FE9ABE69AA&displaylang=en
This installs a ton of help content (samples, documentation) and some great tools (xamlpad, etc...)
5. VS Extensions for WinFx
http://www.microsoft.com/downloads/details.aspx?familyid=EDE1A645-2A53-42E1-8482-3BF1FADADE06&displaylang=en
This installs Project Templates and Item Templates for Visual Studio."
Hope you find this compilation easier, even though you can read it from the URLs above, as it covered 
other areas as well. Hope you can get started with it.
Thanks.
Posted by chuawenching with no comments

Windows Workflow Foundation - Looking at WFPad

People have been talking about Windows Workflow Foundation for some time. I got to know this directly
from Serena. However, I was not able to try it as I seemed to fail to install WinFX on my laptop. 
While googling, I found an open source tool out there, WFPad, that allows you to view and edit 
workflows in XML format.
You can download it here
http://blogs.msdn.com/markhsch/archive/2005/10/06/478042.aspx
or view it here
http://community.sgdotnet.org/photos/chuawenching/category1167/picture22104.aspx
I had looked into the program and it was quite complicated. Maybe it was not the software, it was 
the workflow. Therefore, I will be looking at Windows Workflow Foundation deeper tomorrow and understand
the strength behind workflows. Why people should use workflow foundation at the first place? 
Curious, curious and curious.
Posted by chuawenching with no comments

LINQ Adventure 2 - Standard Query Operators - OfType Operator

Now I am moving towards the Standard Query Operators in LINQ programming. Things are getting 
more interesting this time. 
Question: What is OfType Operator?
Answer: OfType operator enables you to restrict or focus on a specific result set, say you only 
want all the possible integers which are available in a particular array of object.
Example:
object[] arrValues = {1, 2, 8, 1.1, 5.9001, "chua", 'z', 'r', true, 4, false, "ching"};
// Defines a list of possible formats to be displayed at end results
// expecting strings only
var strResults = arrValues.OfType<string>();
// expecting integer only
var intResults = arrValues.OfType<int>();
// expecting double only
var doubleResults = arrValues.OfType<double>();
// expecting characters only
var charResults = arrValues.OfType<char>();
// expecting boolean values
var boolResults = arrValues.OfType<bool>();
// display the bool values
foreach (var result in boolResults)
{
Console.WriteLine(result);
}
Cheers.
Posted by chuawenching with no comments
Filed under:

LINQ Adventure 1 - Playing with XLINQ

Another new Wow from me on this topic. It was getting more fun and interesting on LINQ 
programming. However, most of the things here can be learned from the hands on lab. I am 
trying to grasp the idea behind LINQ by blogging it. 
1)
Below is how you can create a simple xml document and display it on the standard output.
/// <summary>
/// Create a new Sample XML Document
/// </summary>
/// <returns></returns>
public static XDocument CreateDocument()
{
return new XDocument(
new XDeclaration("1.0", null, null),
new XElement("communities",
new XElement("community",
new XElement("SgDotNet", new XAttribute("scope", ".NET Technologies"),
new XElement("Member", "Kit Kai"),
new XElement("Member", "Justin Lee")),
new XElement("SgDotNet", new XAttribute("scope", "MS Vista Technologies"),
new XElement("Member", "Someone I know"),
new XElement("Member", "Someone you know")),
new XElement("MIND", new XAttribute("scope", "Microsoft Technologies"),
new XElement("Member", "DirectX"),
new XElement("Member", "SomeUser")) 
)
)
);
}
/// <summary>
/// Display the new XML Document in standard output / console
/// </summary>
public static void DisplayXmlDocument()
{
XDocument document = CreateDocument();
Console.WriteLine(document);
Console.ReadLine();
}
2)
I will perform a basic query expression on getting SgDotNet members who are interested or 
specialices in .NET Technologies.
/// <summary>
/// Retrieve SgDotNet Members which specializes in .NET Technologies
/// </summary>
public static void GetSgDotNetMembers()
{
XDocument document = CreateDocument();
// Find through the SgDotNet element, and select only the scope specified here
var members = 
from c in document.Descendants("SgDotNet")
where (string)c.Attribute("scope") == ".NET Technologies"
select c;
Console.WriteLine("Expecting Output:");
foreach (var member in members)
{
Console.WriteLine(member);
}
Console.ReadLine();
}
3)
However, you can retrieve a record from an existing XML file, and then pass this values to a 
new set of XML. 
Assuming you have called SaveXmlFile method in the Main() method or somewhere else. Take note, there 
is a bug in this code below. I am not really aware of the LINQ syntax for time being, so do forgive me.
/// <summary>
/// Save the expected xml into the hard drive
/// </summary>
private static void SaveXmlFile()
{
XDocument document = CreateDocument();
document.Save("Communities.xml");
}
/// <summary>
/// Query the existing xml, get and store into a new set of xml
/// - Contains a bug in this code!
/// </summary>
public static void CreateNewSetOfXml()
{
// Load from the xml file
XDocument document = XDocument.Load("Communities.xml");
XElement newDocument = null;
// Find through the SgDotNet element, and select only the scope specified here
var members = 
from c in document.Descendants("SgDotNet")
where (string)c.Attribute("scope") == ".NET Technologies"
select c;
//BUG: Suppose to be print 2 xml nodes, but only 1 - how come?
foreach (var member in members)
{
newDocument =
new XElement("Communities",
new XElement("Community", 
new XAttribute("Member", (string)member)));
Console.WriteLine(newDocument);
}
Console.ReadLine(); 
}
Conclusion:
Well even though it is quite fun to work with LINQ, but it is hard to code it in vs 2005 without 
proper intellisense. You can't really debug the codes in VS 2005 (mine is August edition).
Cheers.
Posted by chuawenching with no comments
Filed under:

LINQ; DLING; XLING; TO THE FUTURE - YODA

Wow. I was impressed with LINQ strength. Basically you can write query expressions within 
your C# codes in near future. 
Sometimes I felt quite weird about query languages (say SQL). But I believe it will be handy for 
future software development using LINQ.
I believe LINQ will be supported during C# 3.0 days instead of now. 
You can download the technology preview here
http://msdn.microsoft.com/netframework/future/linq/default.aspx
Make sure you have at least VS 2005 Beta 2 or VS Express Beta 2. 
Below is a snippet code which I learn from the Hands on Labs. Much more to be learn on this.
/// 
/// New to LINQ 
/// Runs on top of C# 3.0, download the tecnology preview
/// 
static void RetrieveOddOrEvenNumbers()
{
// Left hand side does not explicitly defines the type.
// Available only for LINQ - the inference of type information
// directly from compiler.
// Right hand side, the type of numbers is inferred as int[].
var originalNumber = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
// Right hand side is the query expression
var evenNumbers = 
from p in originalNumber
where (p % 2) == 0
select p;
var oddNumbers =
from p in originalNumber
where (p % 2) != 0
select p;
Console.WriteLine("<>");
Console.WriteLine("<>");
// Display the even numbers
foreach (var evenValue in evenNumbers)
{
Console.WriteLine(evenValue);
}
Console.WriteLine("<>");
// Display the odd numbers
foreach (var oddValue in oddNumbers)
{
Console.WriteLine(oddValue);
}
// Do not close down the console window during debugging mode
Console.ReadLine();
}
Other than LINQ, there are also DLING and XLING too. In coming future, there might be even YODA. 
I am not suprised to hear this too. Haha!
http://blogs.msdn.com/mattwar/archive/2005/10/09/479008.aspx?CommentPosted=true#commentmessage
Cool :) 
Posted by chuawenching with no comments
Filed under:

Interoperability between Yahoo! and Microsoft

I just saw this news from Microsoft.com.
http://www.microsoft.com/presspass/press/2005/oct05/10-12MSNYahooMessengerPR.mspx
It seems that you can send messages from MSN to Yahoo messenger right now. I believe it 
will be a good feature for everyone. I have friends in Yahoo! who will never consider using 
MSN messenger and vice versa.
Posted by chuawenching with no comments
Filed under:

Office 12 UI really rocks

I hardly could believe my eyes over the new Office 12 User Interfaces. It was really impressive.
Extracted from Microsoft website:
Microsoft Word
http://www.microsoft.com/presspass/images/features/2005/09-13Office12-Word_lg.jpg 
Microsoft Powerpoint
http://www.microsoft.com/presspass/images/features/2005/09-13Office12-PPT_lg.jpg
Wow again. Microsoft Office 12 rocks.
Cheers.
Posted by chuawenching with no comments
Filed under:

Microsoft Phone Interview - Not successful

I had a phone interview with Microsoft Redmond last week. It was quite suprising to receive 
their phone call. But I tried my best to answer the questions early in the morning. 
They originally told me it would be around 5.15 p.m. in US, and should be after 17 hours which 
was 10.15 a.m. Malaysia time. They called me at 8.15 a.m. in Malaysia. So I was actually sleeping 
at that time.
Anyway I received an email today from them. I did not make it for further interviews.
It was a good try. Cool. I had been to a Microsoft Redmond email and phone interview before. 
I will never give up trying to join Microsoft in coming future.
My Phone Interview Questions:
Interviewer: SDET from Windows File Core System
1.           Do you have a full time 4 years degree? 
2.           Which university?
3.           From the website, 4 kinds of positions. What are your primary
      and secondary choices? (Program Manager, Software Design
Engineer, Software Design Engineer in Testing and Software Test
Engineer)
4.           Problem Solving: 2 strings.
String1 = “Hello”
String2 = “eo”
How to check the duplicate characters from string2 in string1 and
then remove it?
5.           Brain Teaser: You are in a room. You have 1 question to ask and
     need to know the way to heaven. There are 2 doors. A door to
     heaven and a door to hell. There are 2 people in the room. One
     will tell you the right door to heaven (if you ask where is
     heaven?) and one will always tell lie. 
6.           Test Cases: A new building with 2 elevators (lifts). How are you
     supposed to test these elevators? 
Cheers.
Posted by chuawenching with 1 comment(s)
Filed under:
More Posts Next page »