Tag | Search Posts

Motivation During programming suddenly this error (“Failure has occurred while loading a type”) was thrown by accessing a artifact of a referenced library. In such cases I take the assembly fusion logger fuslogvw to search for problems of loading assemblies. Sometimes an old version from a not expected folder is binded. But all bindings were correct. Problem After several hour I got the right hint. Because the assembly is a COM+ one, there are some registration things in die background – and I don’t ...
The much ballyhooed release of Nokia’s first Windows Phone handsets finally took place Wednesday at the Nokia World event in London. There had been a lot of anticipation building up to this “reveal,” and it is genuinely a watershed moment for the Windows Phone platform. That’s because Nokia’s adoption of Windows Phone brings several firsts: For the first time, a major mobile phone player has standardized on Windows Phone as its exclusive smartphone platform. For the first time (apparently) an OEM ...
I recently had a need to create a send port that could output a flat file but I could not determine which flat file schema to use at design time. Or at least I didn’t want to. I wanted to process multiple flat file formats with the same orchestration process and output with the same send port. I have my orchestration dynamically mapping the document to the appropriate flat file document schema. The generated orchestration message type is set to System.XmlDocument so the orchestration can handle the ...
1: var daysOfWeek = new[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; 2: var workDays = daysOfWeek.Except( new []{ "SUNDAY", "SaTURdaY"}); // Performs a case sensitive search and yields Sunday,Monday - Saturday. 3: workDays = daysOfWeek.Except(new[] { "SUNDAY", "SaTURdaY" },StringComparer.OrdinalIgn... // Performs a case insensitive search and yields Monday-Friday The except operator takes a comparer that tells it how to evaluate the two lists. Nice one ...
Today's 50% off deal from O'Reilly at http://shop.oreilly.com/pro... is Coding Faster: Getting More Productive with Microsoft® Visual Studio® "Expert advice to help you work smarter and increase your productivity with Visual Studio. Take a detailed look into Visual Studio—and learn practical techniques to help you work more efficiently. This fully revised and expanded version of Visual Studio Tips: 251 Ways to Improve Your Productivity includes a comprehensive collection of tips ...
During code analysis my favorite key is Shift-F12 to show usage of method/variable. And after this I needed to expand the list to show each line of usage. Recently my collegue showed me that the results may be expended by default, which is very convenient. To set it select Resharper menu->Options->Search & Navigation->Expand search Results Tree by Default. I wourd suggest to Resharper to enable this setting by default ...
Although the collections classes introduced in .NET 2, 3.5 and 4 cover most scenarios, there are still some .NET 1 collections that don't have generic counterparts. In this post, I'll be examining what they do, why you might use them, and some things you'll need to bear in mind when doing so. BitArray System.Collections.BitArray is conceptually the same as a List<bool>, but whereas List<bool> stores each boolean in a single byte (as that's what the backing bool[] does), BitArray uses ...
When you work with SQL Server, you regularly want to know when an object is last executed, last modified, etc.. Well, at least I do! In most cases you need to use the sys.objects to obtain this information, join it with other sys tables, search for your information, and so on. But there is an easier way. The script below will get you the latest information of any object in your database. USE SandBox SELECT DB_NAME(Txt.dbid) AS DatabaseName, OBJECT_NAME(Txt.objectid, Txt.dbid) AS ProcedureName, Objects.create_date ...

Came across this pretty big listing of tools that help improve a sites performance: http://code.google.com/speed/tools.html

Home page: http://code.google.com/speed

 

And an article from Google: http://googlewebmastercentral.blogspot.com/2010/04/using-site-speed-in-web-search-ranking.html

Hani Amr Normal Hani Amr 1 4 2011-10-12T15:22:00Z 2011-10-12T15:26:00Z 1 91 525 Microsoft Corporation 4 1 615 14.00 Clean Clean false false false false EN-US X-NONE AR-SA /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; ...
It looks like Silverlight 5's ComboBox is more restrictive. In Silverlight 4 I could change the ItemsSource of a ComboBox that had a SelectedItem != null, while in Silverlight 5 I have to set SelectedItem to null before I assign a new ItemsSource. Why even mention this? Isn't this obvious? Well, the Silverlight 4 ComboBox simply ignored the SelectedItem and did not complain about the new ItemsSource, so moving to Silverlight 5 may cause some (unexpected) pain. But the real reason for this post is ...
I am very glad when I used Microsoft new Operation System. Following are the screens shots that I captured from Windows 8. Figure 1: New Windows 8 Metro Style Figure 2: New Microsoft IE 10 in Windows 8 Metro Style I am searching my blog on "google" :) Figure 3: New Metro Style Control Panel Figure 4: Weather Reporting Application in Metro Style View Figure 5: All Time Favorite MS Paint in Windows 8 I will share more experiences of Windows 8 in future so keep catching me guys ...
One tries to be a responsible citizen and report malicious behavior to the “appropriate authorities.” Of course, in the end, it’s really about filling out forms and being told to go fuck yourself. After filling out their forms, they said: The Microsoft Malware Protection Center (MMPC) strives to keep you informed about the status of your submission. This email communicates what we currently know about the file(s) you submitted. You can view your submission online at http://www.microsoft.com/se... ...
Downloaded YouTube Downloader from: http://download.cnet.com/Yo... “CNET EDITOR'S NOTE YouTube Downloader includes optional bundled software that may trigger alerts from security software. YouTube Downloader has been tested for malware by the CNET Download.com team and meets our security requirements.” I guess their “standards” don’t include the installer installing SearchSettings.exe from the wunderkinds at Spigot. Once on your system, this little gem will ...
Apart from Dictionary<TKey, TValue>, there's two other dictionaries in the BCL - SortedDictionary<TKey, TValue> and SortedList<TKey, TValue>. On the face of it, these two classes do the same thing - provide an IDictionary<TKey, TValue> interface where the iterator returns the items sorted by the key. So what's the difference between them, and when should you use one rather than the other? (as in my previous post, I'll assume you have some basic algorithm & datastructure ...
Before I begin with the Milestone 1 recap, I have a few things I need to announce. To begin with, we need to help some kids! Every year, I participate in Extra Life. It's a charity that raises money for hospitals that are members of the Children's Miracle Network. I'm looking for sponsors. You can visit my donation page at http://www.extra-life.org/i... If you feel funny about not giving to your local CMN hospital, then ...
Today, we reached a new milestone of Microsoft All-In-One Code Framework. It gives me great pleasure to announce our newest Microsoft All-In-One Code Framework Sample Browser - v4 available to the globe. With this release, we embrace the hope of giving global developers a completely new and amazing experience to enjoy over 700 Microsoft code samples. Compared with the previous version, this new version of Sample Browser is completely redesigned from tip to toe. We heard lots of users’ voices about ...
I’ve been a bookworm for years and have amassed a significant volume of books of all kinds. Most of my collection is technology related, but volumes of Conan, manga, astronomy, philosophy, genetics, personal productivity, science fiction, fantasy, and just about everything else abound. After getting my Kindle Christmas before last, and later, my iPad, I’ve grown steadily more comfortable with reading and utilizing digital printed media. This comfort level, coupled with my semi-new found desire to ...
Hello everyone, I've faced a weird problem when I was deploying FAST for Sharepoint, is that when I search, the results URL is not mapping correctly to the AAMs that I've defined for it. So, When I opened the event viewer, I've found 2 critical errors that keep on occuring every fixed time interval which were: The Execute method of job definition Microsoft.Office.Server.Sea... (ID 75aabb8d-11c6-4d32-9d0d-ec6... threw an exception. More information ...
Over the past eight years I have been trying to make the switch to Apple from a PC for knowledge and education. I still feel Mac OS X is severely lacking when it comes to actual business or server computing needs, but as a home platform for base operations to the laymen it is a viable option. Recently I upgraded may Apple hardware to a new I 7 Macbook Pro from my Dual Core Mac mini. Boy has this turned out to be a less than just merely frustrating experience. For all the Apple fanatics who claim ...
In this Issue: Colin Eberhardt, Dennis Doomen, Lazar Nikolov, András Velvárt, Rudi Grobler, Jeremy Likness, Derik Whittaker, Morten Nielsen, Sumit Dutta, Asim Sajjad, Ollie Riches, Kunal Chowdhury, and Beth Massi. Above the Fold: Silverlight: "Simulating rain in Silverlight Part 3 - Adding wind effect" Lazar Nikolov WP7: "Developing Windows Phone 7 HTML5 apps with PhoneGap" Colin Eberhardt LightSwitch: "LightSwitch Community & Content Rollup–September" Beth Massi Metro: "Lighting up your C# Metro ...
I was experiencing the below error message. While searching the internet and poking around on my SharePoint farm for a possible solution to the error i was able to find the below solution. Error: The mount operation for the gatherer application [GUID] -crawl-0 has failed because the schema version of the search gatherer database is less than the minimum backwards compatibility schema version supported for this gatherer application. The database might not have been upgraded. Solution: Go to the Central ...
In this Issue: Pete Brown, Derik Whittaker, Morten Nielsen, Sumit Dutta, Asim Sajjad, Ollie Riches, Kunal Chowdhury, Alexandra Rusina, Mohamed Mosallem, and Stephen Forte. Above the Fold: Silverlight: "pInvoke in Silverlight5 and .NET Framework" Alexandra Rusina WP7: "Geo-location on WP7 - don't trust the first value returned" Ollie Riches Metro: "Day 2: Building a Metro App with Visual Studio 11 Express" Stephen Forte Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Michael Washington's ...
In this Issue: Nguyen Pham, Nigel Sampson, Jesse Liberty, Derik Whittaker, Morten Nielsen, Sumit Dutta, Asim Sajjad, Peter Kuhn, Kunal Chowdhury, Beth Massi, Joost van Shaik, and Andrea Boschin. Above the Fold: Silverlight: "Setting SelectedValue for ComboBox" Asim Sajjad WP7: "Mango ‘Augmented Reality’ 101: showing a video background" Joost van Shaik Windows8: "Lighting up your C# Metro apps by Enabling Search–Part 1" Derik Whittaker LightSwitch: "Fun with the Office Integration Pack Extension for ...
The nice thing about unintended changes is that you never think it could happen until you get bitten by a nasty change. Microsoft did publish a complete list of breaking changes here which is complete to my knowledge. But although the intentional changes are listed there are side effects which can cause you to search for hours your (non) fault. One change was to create a new GAC for .NET 4 assemblies to prevent breaking applications which rely on the structure of the GAC introduced with .NET 2.0. ...

At http://www.dr-mikes-maths.com/esearch.html  and http://www.dr-mikes-maths.com/pisearch.html you can find your name in e and pi expressed in base-27.

(It helps if you name is short!)

A colleague asked me if it’s possible to set the parameters of a Report in the URL, so that he could send it to an end-user. I didn’t know the answer, and after some research I came to the conclusion that it’s possible. Just like your used to, you pass parameters into the Report by modifying the URL. An example of a normal Report URL looks like this: http://<ServerName>/R... In order to use parameters in the URL, you need to use the Service URL. The Service URL has the possibility to add ...
I may be a bit slow on the uptake here, but I'm not sure how excited to get about my social networks influencing my search results? I think it's good that you can indicate you like something on Facebook as your friends can have a look at the item or choose to ignore it, and I guess it makes sense that if you like something, then some of your friends will like the same thing. But when I do a Google search, do I *really* want it to show bias towards things my friends have liked? Also, how many clicks ...
For more formatted view .. Goto http://ankitagrawal57.blogs... any web application, performance is basic necessity. Earlier internet speed used to be limited thus users got inclined to pages which load within 3-4 secs. But now the internet speed is no more a constraint but still time does remain a constraint. Imagine yourself visiting a website which takes a lot of time (30 – 60 secs) just to load the page. You would not like to go to that site again.To mitigate this issue, developers and ...
So someone moved your Silverlight cheese? Go and get some HTML5 cheese! Before WPF/E & Avalon were anything more than vapourware, W3C had the SVG standard(Scallable Vector Graphics) for 2D vector graphics over the web. Using Javascript, you could manipulate 2D animations & tranforms. You can embed SVG in HTML5 today. Yeah, its like going back to Silverlight 1.0, but you just have to deal with it! Embrace change. SVG Features · Designed for 2D graphics - display vector graphics & text ...
In this Issue: Eric Jensen, Andrea Boschin, Gill Cleeren, Rene Schulte, Colin Eberhardt(-2-), Mark Tucker(-2-), Mark Monster, Walter Ferrari, and Michael Washington(-2-). Above the Fold: Silverlight: "Welcome to Zombieland, the Metro Style Land of WinRT and the Undead" Rene Schulte WP7: "Adding Tactile Feedback to your app the easy way" Mark Monster LightSwitch: "A Random Walk Through The LightSwitch Data Model" Michael Washington Windows8: "TweetSearch – A Cross platform Metro UI WinRT and Silverlight ...
I had dinner the other night with my good friend Josh Smith, and of course we started talking about Windows 8. Something he said was pretty much spot on: He said that Windows 8 feels as if it has split personalities. There are the WinRT “Metro-style” apps and there is the “classic” Desktop, which looks and feels like Windows 7++ (optimized for touch, and actually a real delight to use with my fat greasy fingers). Read the rest of this entry » ...
Do you know what happens when you create a new instance of a class? Why do we need a value type and a reference type? Do you know what is meant when the .NET framework is referred to as a “managed” platform? What is managed versus unmanaged code? Why do we need a .NET runtime? What is a memory leak; is that like an oil leak? All of these are questions that you should be able to answer as a Microsoft developer. If you can’t answer them all, then keep reading as the next series of research blogs that ...
We have a requirement for a list of itineraries with multple itinerary items show only single itinerary in the list with details of one of the items selected based on some custom sorting logic. So I needed to group by itinerary ID and sort by custom Comparison and select the first in each group. Below is a LinqPad file that I've used for testing: void Main() { // http://smehrozalam.wordpres... // http://stackoverflow.com/qu... ...
A few weeks ago I ran into an error while setting up our test farm. I was creating the service applications and when I got to PowerPivot, I got the following error: I was able to work around this error by using PowerShell to create the service application. Background First, some details of our installation: two web front ends, two application servers, and one SQL server. All are running Windows Server 2008 R2 x64 with Service Pack1. The SQL Server is 2008 R2 with SP1. The SharePoint servers are SharePoint ...
To many people, System.Collections.Generic.... is just a useful collection. In this post, I'll be looking inside that collection and see how it really works. Dictionary is based on a hashtable; for the rest of this post, I'll assume you know roughly how a hashtable works. The Wikipedia article, as the source of all knowledge algorithmical, provides a good overview. It will also help if you've got the class open in Reflector so you can see what's going on yourself. The basics ...
We recently implemented an email archiving solution at work. One of the requirements was that we configure automatic purging of messages older than 6 months in Exchange. One of our IT managers spent the better part of a month moving items out of the only copy of his PST into his mailbox so that they could be captured by the archive system and free him from his PST. For whatever reason none of these messages were captured by the archive system and were purged by Exchange as per the items older than ...
Programming for Metro Metro is the future http://zd.net/rnT9VZ .NET is for old apps. WinRT replaces WPF & WCF. XAML is big. There were no Silverlight sessions. HTML 5 and Javascript ( Blend for HTML) are back in fashion – I wont dwell on this because web apps are (inconsistently) simplistic in concept and over-complex in development. Yes, all those XAML skills are portable, Silverlight (RIP) apps can run as Metro apps with a bit of fidgeting with namespaces – you just need to know what controls ...
I've just installed the Windows 8 Developer Preview. These are some first impressions: Installation of the preview was quite smooth and didn't take too long. It took a few minutes to extract the files onto a virtual image, but feature installation then seemed to happen almost instantaneously (according to the feedback on the screen). The installation routine then went into a preparation cycle that took two or three minutes. Then the virtual machine rebooted and after a couple of minutes more preparation, ...
I kept getting this error whenever I try and do a Windows Update. This used to happen, particularly if I haven’t done a WU for a very long time. The usual suspects are anti-virus, firewall and sometimes, pending windows updates which would get resolved when I do a restart of the machine. I am running a Windows 7 SP1 64 Bit OS. This time, I connected a machine after almost 6 months and had a truck load of windows updates to be done. I tried restarting multiple times but every time, I run the WU wizard, ...
Fantastic afternoon session by Jensen Harris on how to create a successful metro app. One of the big pushes will be the Windows 8 marketplace. Part of having a successful app is ensuring it adheres to best practices on design and usability to ensure a fantastic user experience. Because Windows 8 will have such a different approach to UX, including touch-first, its important that considerations are made up front. Here are my notes. Metro Style Design Use the Templates and Guidelines Templates will ...
Our engine is written in almost pure C++ with some part in C# that run on Mono. The code base is huge which mans that we’re primarily looking for platforms that support C++ development. Looking at the current set of platforms on the market this is really not a big issue with Windows Phone being the only platform that does currently not support native development. Sadly this means that we’re currently not planning a Windows Phone release in the near future. Looking at other platforms, about a year ...
Introduction · CQL is a SQL-like language (SELECT..FROM..WHERE) for static analysis of .NET code. · It is a nice complement to code contracts, & is usable in unit tests. If you've ever looked at creating custom FxCop rules using the archaic and undocumented Introspection API (see http://www.binarycoder.net/... ), then you will appreciate the elegant CQL syntax for static analysis! · supported by NDepend http://www.NDepend.com How It Works · Lets dive into a contrived example ...
The world of Bash is new to me so for those going through the same experience I thought I would list a few things to save time. Some of these are specific to me, while others may have general use. Useful Commands Open root folder - This opens up windows explorer at the root location. explorer . Create a folder mkdir foldername Get a directory listing ls Execute a script without specifying the .sh file extension Once you have written your script files it can get annoying to have to keep specifying ...
In the world of custom web application development a critical component of our success is the hosting environment and services. We can choose to deploy our web applications using 3rd party hosting providers such as GoDaddy.com, Rackspace, DiscountASP.NET, or another provider, or we can choose to deploy to on premise servers either virtual or physical. In either case the web application must be serviced up to consumers by a web server software such as Internet Information Service (IIS), which is included ...
This post is going to be the shortest of my all. Recently, to my surprise, I found myself developing quite a lot with PowerShell, it is not that I have never written scripts, but those mostly were VBScripts. To start off I can tell that there is a ton of examples on the World Wide Web, and I know of nine free PowerShell books, alas I had no time to read any due to very short project deadlines and when I needed a specific example the search results returned were exhaustive too often, yet incomplete. ...
Back in 1980 or so, I attended the Naval Nuclear Propulsion Training and in January, after nearly two years of training, I was stationed on the USS Bremerton (SSN 698) and after another year of training finally got my dolphins. During the course of training, one would be frequently asked seemingly inane questions about some trivial feature or object on the system that you were studying. One example asked of me while I was studying at S1W in INEL was “Where is the red, white and blue valve?”. After ...
In the previous post I droned on about how to apply the AsyncOperationService to an API conforming to the .NET Asynchronous pattern. In this post I’ll be building a more real world example. Well I say “real world” please don’t confuse that with something actually useful. Its still a little contrived and is not an example of best practice but it is something you could actually build and test. What are we going to build? We are going to build an ambitious ground breaking Silverlight app that allows ...
I'm working on a mobile location search app, and needed a way to find addresses within a certain radius of the device's current position. A little Googling found a simple function that will return the distance in miles: CREATE FUNCTION dbo.Distance( @lat1 float , @long1 float , @lat2 float , @long2 float) RETURNS float AS BEGIN DECLARE @DegToRad float = 57.29577951 DECLARE @Ans float = 0 DECLARE @Miles float = 0 SET @Ans = SIN(@lat1 / @DegToRad) * SIN(@lat2 / @DegToRad) + COS(@lat1 / @DegToRad ) ...
I have to say that it has been awhile (just over a year actually) since I've updated my blog. I feel embarassed. On the other hand, I have been quite busy - so it's not like I don't do it because I am lazy (well I am somewhat lazy), but it's because time is somewhat a scarce resource. But... I will try to see if I can muster up some moments to be active with my blog. With that said, last month (August 5th and 6th) St. Louis held the 4th annual conference of the St. Louis Day of .NET. It was a rousing ...