|
|
-
Over the years, I have used to putting Notepad in my list of Send To -targets. Since installing Windows 7, I have tried opening the SendTo folder multiple times but never found it (it used to be easy in Vista and earlier versions, just right-click on start menu and it is there somewhere.). Now I finally took the time (maybe 10 seconds.) to find it and here it is: The How-To Geek offers an easy way to customize the default choices. Simply type "shell:sendto" (without the quotes) in the location bar of a Windows Explorer window. You'll see the default choices here. Now you can pull any of the defaults out or you can add locations you want in the standard list with a simple drag-and-drop. http://jkontherun.com/2009/02/03/customize-the-windows-7-send-to-menu-option/
|
-
I have been playing around with Windows Azure and SQL Azure lately. Here are a few things that I have discovered along the way. SQL Azure has a firewall, that by default blocks all external access. This includes also Windows Azure, so the firewall rules need to be relaxed to do anything useful with it. There is a setting in SQL Azure management site called "Allow Microsoft Services access to this server" which adds a range 0.0.0.0-0.0.0.0, but that was not enough to allow access from code running in Windows Azure roles. I needed to manually add my role IP addresses to the rule list (found out the address range by using logging, explained below). Don't know if my affinity group settings has an effect to this or not. Note that it takes a few minutes for the firewall rules to become effective. Once you have loosened the firewall to allow traffic from your computer, you can use regular SQL Management Studio to query the SQL Azure databases. Note that you cannot connect to the database engine, only open a query window to a specific database. You cannot change active database either using use command inside query window so you need to pay attention to the options when opening a query connection! Azure has built in logging features nowadays that fully support System.Diagnostics trace/error logging. However, if you want to look at the traces etc in production, you will need to configure Azure Storage, since table storage is the place where the diagnostics info can be transferred for viewing. There is an excellent talk in PDC09 that explains all aspects here: http://microsoftpdc.com/Sessions/SVC15. I had some trouble getting the logs transferred until I realized that my storage account was created last spring and probably was somehow an outdated version. It started working once I created a new storage account. For viewing the logs I have used app called CloudStorageStudio from Cerebrata, but I am sure there are many alternatives (including building your own, of course).
|
-
I needed to parse RSS/Atom feeds and I was rather surprised to find that the standard .NET class libraries do not include a convenient way to successfully parse strings like "Tue, 01 Dec 2009 10:22:00 EST". The problem lies in the last part that says EST (or some other abbreviation). Based on my experiments, it is appearing in feed pubDate values every now and then. I don't know what the specs say about the time formats, but the dominant format seems to be like this: "Mon, 19 Mar 2007 23:48:18 -0700", which gets fortunately parsed correctly by DateTime.Parse(). So, I needed a way to parse the "incorrectly formatted" string. Another surprise was that .NET class libraries do not even seem to include those abbreviated timezones either (TimeZoneInfo class comes close though). So I ended up writing this to solve the problem: // Handles cases like "Tue, 01 Dec 2009 10:22:00 EST" which cannot be parsed by DateTime.TryParse() private static DateTime ParseSpecialDateTime(string datetimeString) { Dictionary<string, int> knownTimeZoneAbbreviations = new Dictionary<string, int>() { {"AST", -4}, {"ADT", -3}, {"EST", -5}, {"EDT", -4}, {"CST", -6}, {"CDT", -5}, {"MST", -7}, {"MDT", -6}, {"PST", -8}, {"PDT", -7}, {"AKST", -9}, {"AKDT", -8}, {"HAST", -10}, {"HADT", -9} }; foreach (String key in knownTimeZoneAbbreviations.Keys) { DateTime dt; if (datetimeString.Contains(key)) { string withoutAbbr = datetimeString.Replace(key, ""); if (DateTime.TryParse(withoutAbbr, out dt) == true) { dt = dt.AddHours(knownTimeZoneAbbreviations[key]); return dt; } else break; } } return DateTime.Now; } If anybody knows a better way to do this, feel free to write a comment or email me at aali.alikoski (at) avanade.com
|
-
-
-
From DouglasP blog (emphasis mine): The components of the SQL Server Modeling CTP are: - "M" is a highly productive, developer friendly, textual language for defining schemas, queries, values, functions and DSLs for SQL Server databases
- "Quadrant" is a customizable tool for interacting with large datasets stored in SQL Server databases
- "Repository" is a SQL Server role for the the secure sharing of models between applications and systems
We will announce the official names for these components as we land them, but the key thing is that all of these components are now part of SQL Server and will ship with a future release of that product.
|
-
-
Great, now there is an easy way to talk to Exchange over ws: managed API Wrote this in 5 minutes and it worked without a single bug: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredential("userid", "password", "domain"); service.Url = new Uri("https://servername/EWS/Exchange.asmx"); ItemView view = new ItemView(100); // Return only ten items. FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, view); foreach (Item i in findResults) { listBox1.Items.Add(i.Subject); }
|
-
-
I participated with a couple of other people to an effort to create a paper about cloud computing. The initiative was started by Pasi Mäkinen (architect evangelist at Microsoft Finland), and the paper is available via Pasi's skydrive here. Pasi wrote a small preface in his blog both in English and in Finnish:
|
-
I am color blind (red-green, the most popular type I guess). It makes many things more difficult that for the average person, and especially in computing there are many places where I have found out later that something was highlighted in red etc. Useful-looking web site to pay attention to the problem: http://wearecolorblind.com/, if you are NOT color blind please take a look at the site and learn from the bad examples!
|
-
-
Almost missed this: May CTP of the tools & SDK has been released. Most notable changes are added stability and integration to VS as well as Visual Studio 2010 beta support.
|
-
Maybe this should go to my photo blog, but since it has an interesting software development aspect, let's post it here:
SEAMonster is a .NET based implementation of a fairly recent idea presented in SIGGRAPH 2007 called seam carving. To put it short, it means resizing images in a way that preseves meaningful areas of the image while compressing/deleting the other parts as needed.
Have to download the code and play with it with my own images, putting it in codeplex is also a great idea :)
http://blogs.msdn.com/mswanson/archive/2007/10/23/seamonster-a-net-based-seam-carving-implementation.aspx
|
-
Recently released:
http://www.microsoft.com/downloads/details.aspx?FamilyID=5057e2b3-c8e5-4b26-a601-ff9621589ce3&DisplayLang=en
An Introduction to Microsoft .NET Services for Developers. This overview paper introduces Microsoft® .NET Services, each of its building block services, and how they fit together.
A Developer’s Guide to the Microsoft® .NET Access Control Service. This whitepaper shows developers how to use a claims-based identity model and the Microsoft® .NET Access Control Service – part of the Microsoft® .NET Services family – to implement single sign-on, federated identity, and role based access control in Web applications and services.
A Developer’s Guide to the Microsoft® .NET Service Bus. This whitepaper shows developers how to use the .NET Service Bus – part of the Microsoft® .NET Services family – to provide a secure, standards-based messaging fabric to connect applications across the Internet.
A Developer’s Guide to the Microsoft® .NET Workflow Service. This whitepaper provides details about the Microsoft® .NET Workflow Service, its relation to Windows Workflow Foundation, and what developers need to know to begin building workflows for the cloud. It not only explains the current tools and capabilities but also outlines the vision for future releases.
|
|
|