December 2006 - Posts
Libur niy, rencananya mo install ulang PC kayaknya udah kepenuhan Package guidance and Component, kayaknya ide bagus reconfigure Vista..ups..bakalan sibuk niy nginstall ulang..
Met Liburan all INDC member J
Vista might be your OS today below is something you might need to know about Vista before you install it.
- Don's install if you have RAM less than 512 MB. If you still want a taste of Vista (just like me who limited in RAM) try Home Basic (but no AERO L)
- Perpare 20 GB for new installation or more for upgrade (damn)
- Wait the driver if you have not usual hardware configuration. If you have SLI (Scalable Link Interface) in your VGA, or you have 6 channel sound card based be pattient till the hardware vendor wake up and release the driver. Driver will highly improve your Windows Experience index
- It's directX 10, until now there are few Game that run in DirectX 10 (or still in development!). However many of my fav game such as Splinter Cells Double Agents will run smoothly in Vista and the rest you can achive it using Compatibility (Right Click à Properrties) mode be sure to run it in XP SP2 (many of game running in here OS) disable Visual Themes, Desktop composition, and High DPI)
- Be sure to chaneg the antivirus into the new one. Some API for anti virus had been blocked in Vista so be sure to upgrade your antivirus intoi the new version
Hope you enjoy your's Vista
http://ridilabs.net
- If you have Reporting Services running please be patient to upgrade it until Sql Server 2005 release the SP2. SQL Server 2005 won't detect your IIS 7 (even though you have install IIS6 metabase in the machine). Some hack can be done but I don't advised it
- If you develop mobile device you have to know that there are no Active Sync. Vista have included that own active sync BUT its ONLY SIMPLE RNDIS driver you can't sync with outlook or debug your WM5 apps. Be sure to visit Windows mobile center and download "Windows Mobile Device Center" (whoa this apps build using WPF J) to update the rndis driver for sync support in outlook. Install this drive before you install WM5 SDK
- Yup there is WinFX in Vista so before install Windows SDK for Vista is sure to enable it in Program and Features in Windows feature task.
- Some Issue VS 2005 in Vista had been solved in their first services pack be sure to install it J
- If you VSTO developer please update your VSTO into VSTO SE for sake of compatibility and support for Office 2007
Best Regards
Ridi
http://ridilabs.net
You might be known the WinFX (WPF, WCF, WF, InfoCard) have been RTM recently just like what Microsoft said in the term of WPF (to build great software with great UX). Said user experience is not just about eye catching (just like what AERO did), User Experience need a many approach to make human computer interaction much better. In WPF Microsoft have provided us managed API to handle rich multimedia (whoa managed api?).
Back in the last year, to enable good experience for the user I'm use Microsoft Agents SDK, You might be sometimes use it when typing in 2000-2003 Office, or XP search assistant. A character like Rocky, Clip, Marlin, and Robot give us more way to communicate to our user more friendly using animated character. However to use that, we need to download the sdk and add a reference using COM interop J. (btw I use the Microsoft Agent for a software that build to kindergarten student, or elementary student since this Microsoft Agents is funny for them, in a real LOB application I'm afraid client will blame us to see Rocky or Marlin in their software he8x)
For LOB application or similar software rather than use Microsoft Agent SDK we can use speech namespace in WPF (hurray). Below is a sample code to enable your XAML application speech
// for speech synt don't forget to add System.speech using add reference
using System.Speech.Synthesis;
// in example i want to read a richtexbox called rtbEmail (wpf control richtextbox not the net 2.0 control) so i can do this
SpeechSynthesizer _speechSynthesizer = new SpeechSynthesizer();
TextRange textRange = new TextRange(rtbEmail.Document.ContentStart,rtbEmail.Document.ContentEnd);
_speechSynthesizer.SpeakAsync(textRange.Text);
// yeah that's all you have to do to make yopu application speech
Regards Guys
Ridi Ferdiana
http://ridilabs.net
First we would to thank you for all of isv that had come in the pas t six month. Share the idea, share the opinion, and share the spirit to build your own product. We know that your time is limited, but we really surprised that many of you can join the event ISV Accelerator (a.k.a Bina ISV) and spend your time to talk and learn about Microsoft empowered technology. Now we go in the second part of Bina ISV (we can said second year). We know building product is hard and make the product is reach to the market is harder. Now ISV have great place to share your product in http://hanomanonline.com
We know we need improvement all day long and thanks for December batch who getting hand to help us make a new approach of Bina ISV training. Below is change that we have expected to run in 2007
- Change the rule, As we know Bina ISV is use 60:40 composition so it's mean 60% for lab and 40% for presentation. Many participant based on feedback form need practical resources. Yup you want it we give it we change the composition of this workshop into 80:20 so we use 80% of lab and 20% of presentation (exception for the last day).
- We want to talk use case study, Rather than simple demo and simple sample, in the second year of bina isv we want to rise a real problem and make a real POC for the problem (sorry still not the real solution since we have limited time). In Example in December batch we build a mini Amazon web services and possible smart clients to consume the services. In second day we build Transfer Trackers build by three web services (one using standard asp.net model, one using standards soap authentication model, and one using Web Services Software Factory) and one Smart client that easily work with Microsoft Excel. In day three build a widget like digital clock using XAML, Speech Synthesizer (you can read how easy to use speech synthesizer in Vista in the next article), and make it pretty by using the damn Good Microsoft Expression product.
- We want to hear you. We have allocated a time in the last day of event to hear your product. For December batch we really thank you for KIOSS Project that have show us good product called SIMBANGDA
Hope we can still get in touch in the next year
Regards
Ridi
Many of you maybe have playing around with Vista Development when the sdk become RTM. As we know Vista becoming more and more aware of security, doesn't thinking Vista will give you administrator right for every action that you take? Vista thinks sandbox is better for security, and .NET is even better. When we build the windows form application, the application store user setting in local user storage and store application setting in machine storage (app.config where the application installation directory located). It would be nice to have a place to store information that was safe to use without having to test whether the application has enough rights to save data to the hard drive. That solution is what isolated storage is designed to provide.
Before Vista released with so many stuff in security, Visual Studio 2005 have provided us a good deployment solution called COD (Click Once Deployment) (some people said it's Smart Client Application...but for sure Smart Client Application is NOT JUST Click Once Deployment). If you want playing around with application configuration use ConfigurationManager class (just like before and it's seemly work in Vista). But if you want to store another things outside the configuration (although in many cases Configuration object is enough) you can store in isolated storage rather than save it in hardwire manner (i.e. C:\\UserFile.txt).
Isolated storage is handled by IsolatedStorageFile family (there are some of them you can refer into MSDN). However to create Isolated storage is not more than fun, below is snippet code that show 101 operation about Isolated storage
// it's better approach to save the file in user store location some location in C:\\User\NameUSer if in Vista
// another option is in GetMachineStoreForAssembly(); it will save into machine level
IsolatedStorageFile userStore =
IsolatedStorageFile.GetUserStoreForAssembly();
// name file, mode creation, and reference object
IsolatedStorageFileStream userStream =
new IsolatedStorageFileStream("isolated.rf",
FileMode.Create,
userStore);
// C# let's write something, use another File IO class for alternative writing mechanishm
StreamWriter userWriter = new StreamWriter(userStream);
userWriter.WriteLine("Hello from Vista");
userWriter.Close();
// let's read it
string[] files = userStore.GetFileNames("isolated.rf");
if (files.Length == 0)
{
Console.WriteLine("ora ono datane dab piye ki");
}
else
{
// ...
}
You can also create directory by using CreateDirectory() or GetDirectoryNames(), furthermore you can set quota policy and access permisiion in this isolated storage by using atribute in the method body.
// need security action in code, with 2048 K data
[IsolatedStorageFilePermission(SecurityAction.Demand,
UserQuota=2048,
UsageAllowed=IsolatedStorageContainment.AssemblyIsolationByUser)]
class HelloVista
{
// ...
}
But be careful this atribute need some of code acess security to perform it, so be sure you have configure it in caspol using costum action in MSI installer or publishing option in Clik Once
Happy Coding with Vista J
Best Regards,
Ridi Ferdiana
A sort report from ISV Accelerator in November. U can join this event again in 18 December (in Yogyakarta) just drop your request participation in ridi@janganspam.mti.ugm.ac.id (without janganspam of course) be sure be there and hope we can share the experience in .NET worlds, se ya
Best Regards
Ridi Ferdiana
Don't be fooled around because of the topic, lately SUN realeased NET BEAN IDE with support of C++/C, it's not a surprise since as we know java have a known limition in access native application. Good approach from SUN so we as VC++ developer have more alternative IDE on developing native application, more info about this can be read over here
Hemm...sleepy when i type this blog, still wake up in this night, well Z give me a bunch of code for tomorrow workshop since He will go to Makasar tomorrow morning..and now i remake the code and the code doesnt't compile..hiks..i have created 5 document for five labs session..and little bit tired with curly braces huahhhhh ..plus my hard drive is crash and there are NO data that can be saved (everything is gone) ..well tomorrow might be better