|
Mirrored Weblogs
-
In this post I would like to talk about a new security enhancement that was introduced in SQL Server 2012,user defined server roles.As we all know we had (and still have in SQL Server 2012) user defined database roles for database level permissions.In the latest version of SQL Server we can have custom – user defined server roles for server level permissions.Basically for a server-level principal we can grant server-level permissions with a mix of GRANT and DENY permissions. ( read more )...
|
-
In this post I would like to demonstrate with a hands-on example how to backup and restore the tail of the transaction log.In this post I will also demonstrate how to take full and differential backups and how to restore them. I will also talk about the various SQL Server backup types, recovery models and how these models affect our backup and restore strategy. ( read more )...
|
-
During the development of ClipFlair (currently at Alpha1-internal version), I’ve been doing lots of research, hunting for information (documentation, related discussion threads, useful download links) needed when writing and refactoring source code etc. I have tried to organize these links as (Windows) Internet shortcut files into folders. They do need some further restructuring, but they [...]...
|
-
Following up on my last post: http://zoomicon.wordpress.com/2012/07/04/how-to-compile-code-that-uses-wpf-decorator-type-in-silverlight/ I’m copying from a mental note I added to: http://stackoverflow.com/questions/4936941/using-a-using-alias-class-with-generic-types/11334359: As shown at: http://msdn.microsoft.com/en-us/library/sf0df423.aspx and http://msdn.microsoft.com/en-us/library/c3ay4x3d%28VS.80%29.aspx you can do: using gen = System.Collections.Generic; using GenList = System.Collections.Generic.List<int>; and then use gen::List<int> x = new gen::List<int>; or GenList x = new GenList(); However: you have to replicate those using [...]...
|
-
At ClipFlair I’m using a modified version of FloatingWindow control, where I try to make the WPF and Silverlight flavours of the original control share as much code as possible (this is work in progress currently, hoping to eventually have the WPF and Silverlight projects both link to the same source files [this is currently [...]...
|
-
A couple of weeks back I had the chance to speak at a Microsoft Dev Day event about all the cool new features announced for windows azure June release and especially those that had to do with IaaS. The room was packed and everyone seemed very interested on these long awaited new features. I had [...]...
|
-
I was hoping C# would someday add static extension support for constructors too (apart from classic methods), that would help a lot in source-level compatibility layers (for example at my WPF_Compatibility project for WPF syntax in Silverlight, which one can find under the ClipFlair source base). However, according to : http://mrpmorris.blogspot.gr/2007/01/net-calling-base-constructors-in-c.html Anders Hejlsberg (father of [...]...
|
-
I just had some big trouble troubleshooting the Visual Studio / XAML compiler error message: The tag XXX does not exist in XML namespace ‘clr-namespace:YYY’ It turned out this occurred because I had a Silverlight library with Assembly name X and default namespace X (at properties pane), but was using it from a demo project [...]...
|
-
In the previous post we have seen how we create scheduled and periodic tile notifications with Javascript for metro applications. In this post we will cover push notifications . Push notifications do not require from your app to tell the OS that it has to query a service at specific time intervals as periodic notifications do. They rely on the fact that an external service can actually change the tile when it sees fit (hence the “push” name). Such notifications cover scenarios like having an application that monitors stock prices and the user specifying that he wants to be informed when the price of a stock falls under a specific value. The push notification will change the tile’s appearance when the premise is fulfilled. Note that a periodic notification would not suit in this case unless the user could accept a possible maximum half hour delay of the delivery of the notification. Push notifications work as follows: Your metro app requests from the device a specific URI which uniquely defines the combination...
|
-
This post will cover the main aspects of using Tile Notifications in a Metro-Style application. The only topic that will not be covered is “Push Notifications” since those deserve a post on their own and will follow in the near future. So what are “Tile Notifications”? Well as you already know, each Metro-Style application has its own tile which appears in the start screen. This tile is either a “square” or a “wide” one as depicted in the following figure: The user gets to choose from the “start menu” application bar which one of the two will be shown. You specify in your application that you support both by providing in the package.appxmanifest file (Application UI tab) a image for both the Logo and the Wide logo property: It is important that you provide the wide version of the logo cause otherwise your application will not be able to appear as “wide” in the start menu and that option will not exist for the user in the application bar. Having done this, you may use the tile to make...
|
-
In this post I would like to demonstrate with a hands-on example that is not always possible to restore a database to any Edition of SQL Server.We assume of course that the version of SQL Server remains the same. In my machine I have various instances of SQL Server running.I have an instance of SQL Server 2008 R2 Developer Edition and an instance of SQL Server 2008 R2 Standard edition.( read more )...
|
-
In this post I would like to talk about a common issue that confuses SQL Server DBAs and developers.RecentlyI had to deploy an ASP.Net web site from the development server to the live production server.The database server on the deployment server was SQL Server 2008 R2.The hosting provider could only provide us with a SQL Server 2008 database server.Most of my colleagues thought there was no problem with that.I had a different opinion.Ι know that this is not possible. ( read more )...
|
-
At LvS (the opensource application of LeViS), I’ve been using this (VB.net) code to set the UI language (for example to Greek): Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("el") Others seem to have been using (C# – that’s why there is a trailing semicolon): Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("el"); assuming System.Globalization and System.Threading namespaces have been imported. However, now that I’m [...]...
|
-
I’ve managed to combine http://www.codeproject.com/Articles/85603/A-WPF-custom-control-for-zooming-and-panning and a cut-down version of it for Silverlight that was out there: http://www.codeproject.com/Articles/167453/A-Silverlight-custom-control-for-zooming-and-panni I did it in a way that the Silverlight version is source-code compatible with the WPF version (via a WPF compatibility layer that even implements value coercion), so that both the WPF and the Silverlight projects share [...]...
|
-
If you get an error like: Unhandled Error in Silverlight Application Code: 2153 Category: InitializeError Message: Failed to load a platform extension. Possibly corrupt or invalid file: … when you try to launch your Silverlight application (especially if you have the project set to use an autogenerated test page), you should read: http://forums.silverlight.net/t/185747.aspx/1 In my [...]...
|
-
System.IO.IsolatedStorageSettings doesn’t exist in WPF (only in Silverlight) but can easily be ported from Mono project’s Moonlight implementation (the Moonlight project home is at http://www.mono-project.com/Moonlight), as suggested at: http://groups.google.com/group/wpf-disciples/browse_thread/thread/4ed6c009f3fb7d69 I found that implementation at the following URL: http://vega.frugalware.org/tmpgit/moon/class/System.Windows/System.IO.IsolatedStorage/IsolatedStorageSettings.cs Did some modifications to IsolatedStorageSettings.cs to make it work with WPF (whether the application is deployed via [...]...
|
-
Copying here my answer at: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/11a42336-8d87-4656-91a3-275413d3cc19 What seems to work for me is the following (copying from the source code of http://ClipFlair.codeplex.com [currently under development]) note I’m using Build Action = "Page" and Custom Tool="MSBuild:Compile" at the properties of Themes\DropDownTheme.xml and Themes\RotateHorizontalTheme.xaml, as was for Themes\Generic.xaml. Seems to work OK (probably this is faster at [...]...
|
-
Just came across http://wangmo.wordpress.com/2007/09/27/themesgenericxaml/ which gave me a hint on why a WPF control wasn’t getting instantiated correctly when loaded from an external assembly (dll): to load generic.xaml for WPF, at the start of Properties\AssemblyInfo.cs you need (note this isn’t used/needed in Silverlight): using System.Windows; and at the end of Properties\AssemblyInfo.cs you need: [assembly: ThemeInfo( [...]...
|
-
Just added an issue to CSpeex project – http://cspeex.codeplex.com/workitem/18209 – with some fixes to make it compile for Silverlight 4 RC and higher (was for Silverlight 4 Beta), however still have issues with it not working correctly. Tagged: Audio, Capture, Codec, Demo, Silverlight, Speex, Webcam...
|
-
In this post I would like to about a new feature in SQL Server 2008, namely Policy-Based Management.With this new feature DBAs can enforce policies to an instance of SQL Server or many instances of SQL Server they are responsible for. Most DBAs have to administer many SQL Server instances.It is not efficient to configure and manage them separately.DBAs try to enforce standards (e.g naming standards) on the instances they manage but it is very difficult to enforce them. ( read more )...
|
-
I was watching once again The zen of async: Best practices for best performance talk of Stephen Toub ’s on //Build and I decided I should blog about how easy is to end up with a deadlock while writing asynchronous code with new C# 5.0 language features (AKA async/await). Here is the quick background first which I was aware of before I watch this talk. The talk that Toub has given was mostly about how you create better reusable libraries with asynchronous language features but there are lots of great information concerning application level code. When you are awaiting on a method with await keyword, compile generates bunch of code in behalf you. One of the purposes of this is to handle synchronization with the UI thread. The key component of this feature is the SynchronizationContext.Current which gets the synchronization context for the current thread. SynchronizationContext.Current is populated depending on the environment you are in. For example, if you are on a WPF application, SynchronizationContext.Current...
|
-
To sum up the discussion at http://stackoverflow.com/questions/1360113/is-java-regex-thread-safe/, you can reuse (keep in static variables) the compiled Pattern(s) and tell them to give you new Matchers when needed to validate those regex pattens against some string: import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Validation helpers */ public final class Validators { private static final String EMAIL_PATTERN = [...]...
|
-
Using Microsoft Web Platform Installer (aka WebPI), one can easily install WordPress on IIS (together with PHP and MySQL database engine. Btw, better install the latest PHP version from there and remove any older ones. Also do install from there the Windows Cache Extension for PHP for the version of PHP you’re using. Windows Cache [...]...
|
-
In this post I would like to demonstrate with hands-on examples how to use automation (jobs,alerts,operators,notifications) in SQL Server to automate SQL Server administration tasks. The importance of automating tasks is profound.The following tasks could be automated Backing up the database Checking data integrity Dropping and re-creating indexes Transferring data (read more )...
|
-
April was devoted to improving our continuous integration process. I am happy to announce that eXpand now has a dedicated build server. Many of you already notice its availability in our main download page, the rest are welcome to explore it and get access to all our builds and tests! Teamcity is a great integration platform and for sure will make our dev life easier. Please do not forget to say a big thanks to Dima Janzen since he is our CI guru! Latest Collaborations Import wizard It is now fully localized! (Big thanks one more time to Martynas Dauciunas ) Master Detail Controls Disappearing (see http://goo.gl/M9s2g ) Modifications in logic module To avoid exceptions when view is dashboard (see http://goo.gl/dL8kZ ) Modification in core web module GridViewOptionsModelSynchronizer incorrectly clears the grid's StatusBar template (see http://goo.gl/eev8H ) As always big thanks for raising your questions and reporting bugs!...
|
|
|
|