Top Blog Posts For Today - Latest post from each of our Top Blogs
|< << 2 3 4 5 6 >> >|
|
|
[[Getting Started]]
Can't get MediaPlayer to play
|
|
Brand new to Silverlight... I've loading Silverlight3 Toolkit and am using VS2008. Just trying to test out playing a simple .wmv file but when I run the app it never displays. There is a Script Manager in the Masterpage. Am I missing something? <%@ Page Language="vb" MasterPageFile="~/SGConnect.Master" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="SGConnect.test" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<br />
<asp:MediaPlayer ID="mp1" runat="server" MediaSource="~/port_fwd.wmv" PlaceholderSource="3.gif"></asp:MediaPlayer>
</asp:Content> |
|
|
[[Video and Media]]
Webcam Capture to Avi or Quicktime file
|
|
Hi all, I've been looking for a solution to record the uncompressed webcam video stream directly to a file. This is not a problem if someone has a fast machine and RAIDED their boot drives, especially for the MyVideos folder. There has been good attempts by Mike Taulty, but the file that is written isn't properly formatted. http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/02/24/mef-silverlight-and-the-deploymentcatalog.aspx Has anyone been able to get this working at all? In my mind, I imagine that it's best to write in Quicktime Uncompressed format as all platforms can play it back. Obviously I don't know much about this field, but that's why I'm asking here: Cheers Clinton |
|
|
[[First Floor Software: Blog]]
How can we improve Silverlight Spy?
|
|
We've set up a feedback forum for Silverlight Spy so you can tell us what's on your mind. When you navigate the Silverlight Spy pages on the First Floor Software website, you'll notice a red feedback widget on the left of the page. Selecting it will display a feedback dialog and allows you to share your ideas about Silverlight Spy.
Please go there and be heard! Your feedback is highly appreciated.
The Silverlight Spy feedback forum is powered by uservoice.
|
|
|
|
|
[[Silverlight Playground]]
A generic enum converter to map values...
|
|
Many times I have to deal with enumerated values with databinding, and often this requires the writing of a converter to map the enum to something else. As an example you can have a Status enum and you need to transform it to a color (or a brush) in the UI, or you have a series of values from the enumerator and need to change it to an image when it is presented to the user. Finally these days I found a generic solution to these problems that let me create a mapping from a value (an enumerator, a series of integers, of also a boolean) to an instance of another object. To give you an example think at having this enumerator: 1: public enum MessageType
2: {
3: Normal,
4: Urgent,
5: Critical
6: }
We want to map the values to a series of colors having White for Normal, Orange for Urgent and Red for Critical. Since usually you can override IValueConverter and write a specific converter that handles this enum I found useful to create a parametric value converter that lets me write the code below:
1: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5: xmlns:cv="clr-namespace:SilverlightPlayground.Converters;assembly=SilverlightPlayground"
6: mc:Ignorable="d" x:Class="SilverlightPlayground.MyApplication.Shell" d:DesignWidth="456">
7: <UserControl.Resources>
8: <cv:EnumConverter x:Key="mapTypeToBrush">
9: <cv:EnumConverter.Items>
10: <SolidColorBrush Color="#00000000" />
11: <SolidColorBrush Color="#FFFF9900" />
12: <SolidColorBrush Color="#FFFF0000" />
13: </cv:EnumConverter.Items>
14: </cv:EnumConverter>
15: </UserControl.Resources>
16: <Grid x:Name="LayoutRoot">
17: <Rectangle Fill="{Binding ReveivedMessageType, Converter={StaticResource mapTypeToBrush}}" Width="100" Height="100" />
18: </Grid>
19: </UserControl>
The beautiful of this converter is that with a single converter you can create a series of mappings in the App.xaml resources and share them across all the applications and centralize the conversion of application wide enums in a single position. The code of the converter is really simple and straightforward:
1: public class EnumConverter : IValueConverter
2: {
3: private List<object> items;
4:
5: public List<object> Items
6: {
7: get
8: {
9: if (items == null)
10: items = new List<object>();
11:
12: return items;
13: }
14: }
15:
16: public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
17: {
18: if (value == null)
19: throw new ArgumentNullException("value");
20: else if (value is bool)
21: return this.Items.ElementAtOrDefault(System.Convert.ToByte(value));
22: else if (value is byte)
23: return this.Items.ElementAtOrDefault(System.Convert.ToByte(value));
24: else if (value is short)
25: return this.Items.ElementAtOrDefault(System.Convert.ToInt16(value));
26: else if (value is int)
27: return this.Items.ElementAtOrDefault(System.Convert.ToInt32(value));
28: else if (value is long)
29: return this.Items.ElementAtOrDefault(System.Convert.ToInt32(value));
30: else if (value is Enum)
31: return this.Items.ElementAtOrDefault(System.Convert.ToInt32(value));
32:
33: throw new InvalidOperationException(string.Format("Invalid input value of type '{0}'", value.GetType()));
34: }
35:
36: public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
37: {
38: if (value == null)
39: throw new ArgumentNullException("value");
40:
41: return this.Items.Where(b => b.Equals(value)).Select((a, b) => b);
42: }
43: }
The converter has a list of items it use to make the conversion of integer values. It maps the integer to the index of the list and returns the n-th element found in the array. I didn't handled the out of bounds exception just because the errore returned to the user by the converter is already good to understand what it happen. The converter itself can handle both the directions if the Equals method is correctly overrided.
Finally, I supported boolean values so it is possible to pass to the converter true/false and having it select the items from a list of two elements. This let me also map the Visibility to boolean values (that is a pretty frequent situation):
1: <cv:EnumConverter x:Key="bool2Visibility">
2: <cv:EnumConverter.Items>
3: <Visibility>Collapsed</Visibility>
4: <Visibility>Visible</Visibility>
5: </cv:EnumConverter.Items>
6: </cv:EnumConverter>
As you can see the trick is really simple but as usual simple things are the most beautiful and useful. I hope someone can judge this tip good to spare time. It has been very great for me. |
|
|
[[Rockford Lhotka]]
Want to work at Magenic?
|
|
I really enjoy working at Magenic – and that’s true even after 10 years.
We employ some really smart people, every one with passion for technology. Mostly
.NET development of course, but also SharePoint, SQL Server, BizTalk Server and related
technologies. And our Magenic Studios group has design skills (graphic, html/css and
XAML), and a focus on usability, navigation and related skills.
We are hiring, especially in San Francisco and Boston, but also in Minneapolis, Chicago
and Atlanta.
Are you a .NET developer? A XAML designer? An html/css designer? How about SharePoint
development?
Consider applying for a consultant position
at Magenic – it is a fun place to work with great people, often using cool technologies.
|
|
|
[[VolkerW's WebLog]]
Windows HPC Server 2008 R2 Cmdlet Reference
|
|
Available for download from the Microsoft website. The help file contains cmdlet descriptions, syntax, examples, and additional information for all HPC cluster-specific cmdlets that are available in Windows® HPC Server 2008 R2. The HPC cmdlets provide an alternative to most actions that users and administrators of HPC clusters would otherwise perform with command-line commands, HPC Cluster Manager, or HPC Job Manager. Download this item to have this reference documentation available even when you are not connected to the Internet. You may have to unblock the file after downloading. To unblock the CHM file, first save the file to your computer, right-click the file, click Properties, and then click Unblock. Download the reference file here.
|
|
|
[[WPF and SilverLight]]
Best Windows Phone 7 Apps and Games in Development (Aside from Mine, of course) ;)
|
|
One of the hurdles Microsoft has to overcome in order for Windows Phone 7 to be successful is a variety of high quality software available for the device. There’s certainly a lot of compelling content for the other two major platforms and for Microsoft to be a serious contender, there has to be a a lot of great apps available for it. Based on this list Pocket Lint has compiled, it looks like WP7 is well on its way to a great selection of cool apps and games. Here’s the list: - Seesmic for Windows Phone 7 This will bring the Seesmic experience on Windows Phone 7 and lets you gather in your Twitter, Facebook, and the thousand other social networks into one application. You'll be able to do all the usual things, plus it will work seamlessly with the Windows 7 and Mac versions of the software. Where it takes things one step further is full integration of other services in the phone like Bing maps.
- Twozaic for Windows Phone 7There isn't an integrated Twitter support in Windows Phone 7 from day 1, but that doesn't mean that there won't be Twitter apps to tweet from. If Seesmic isn't your cup of tea, one alternative will be Twozaic that offers a more simplified Twitter experience judging from the demo pictures. The most interesting element to the app will be the "Cloud view" that shows 20 tweets in a mosaic layout, with 3 levels of importance, currently based on the number of followers and favourites.
- Foursquare on Windows Phone 7There might be plenty of talk about Facebook Places, but Foursquare is still popular, and still getting plenty of check-ins. Come Windows Phone 7 launch day you'll be able to check-in via your Windows Phone 7 phone thanks to the Foursquare Windows Phone 7 app. It will come with Bing maps integration, all the usual Foursquare features and make checking-in something pretty easy to do. You'll even get directions of how to find your friends nearby.
- Graphic.ly for Windows Phone 7How much do you like comic books? If it's a lot then this is going to be the app that you'll want to look out for come launch day. Graphic.ly lets you carry your favourite comics, buy comics and of course read comics on your new phone. The interface is all very Windows Phone 7, but also very comic book friendly allowing you to select your comic, and touch to read swiping through the pages. You'll be able to deep zoom into the images, and even comment on individual images to share with other Graphic.ly friends.
- Netflix for Windows Phone 7 One for our American friends, but Netflix will let you stream movies and television shows over the air directly to your Windows Phone 7 handset to watch, as long as you've got Wi-Fi access. If you're a member, that means never having nothing to watch on the go. That's pretty impressive.
- Shazam for Windows Phone 7We know you like a good music track as much as the rest of us, and have no doubt seen Shazam working on an iPhone, BlackBerry or Android device. Thankfully Shazam is in development for Windows Phone 7, meaning if you switch to the new Microsoft mobile OS you'll still be able to find out what that track is in the background.
- Flickr Uploader for Windows Phone 7Judging by most of the leaked hardware doing the rounds on the Internet at the moment, all the launch phones are going to come with 8-megapixel cameras. That means plenty of potential when it comes to snapping shots on the go. But what do you do when it comes to sharing those images. One Windows Phone 7 app in development is the Flickr Uploader that will let you upload images directly to Flickr to share with your friends. It's simple, but will it let you share that picture of the weird dude sitting opposite you in the restaurant wearing a tea cosy on his head?
- USGA Golf for Windows Phone 7Do you play golf? Thought you did. Then you'll probably want to get the USGA golf app for Windows Phone 7, if it makes it to the App store. Created by Microsoft's Jeff Arnold, Lead motion designer for Windows Phone 7, the app shows what is possible for golfers who've got a Windows Phone 7 phone. The app lists virtually all the golf courses of America and then based on that choice will give you all the details of the course you are about to play. This isn't a game mind you, but an aid to the course you are about to play in real life. The app tracks players you've played against in the past, lets you step up new players and basically track all your shots, how you did, what your scorecard looks like out on the course using the phone, data in the app, and your GPS location. It will be time to ditch the pencil.
- TouchCall for Windows Phone 7An incredibly simple app that will let you create shortcuts to six phone numbers on a single screen, allowing you to touch the relating button to phone them. If it sounds simple, that's because it is, but who said apps had to be confusing.
- Halo Waypoint for Windows Phone 7There are over 63 games available for Windows Phone 7, and the Halo Waypoint Windows Phone 7 app will act as a hub for all things Halo on your phone. According to Microsoft, Halo fans will want it because you'll be able to get videos, comics, news, and plenty of other stuff on your phone on the go.
- Crackdown 2 for Windows Phone 7Set in the world of Crackdown 2, you've got to fight off zombies using towers to defend your pile. The interesting thing here is that you can use Bing maps to actually defend certain places in particular; like your house, your office, or your favourite pub.
- Wall street for Windows Phone 7This look like one for the Gordon Gekko fans of this world, bringing you all the stock market data that you could want using the Yahoo's Stock tracker service. The app will let you drill down to get more information, graphs and company news while also giving you an overview on the world's biggest markets while you're at the country club sipping a gin and tonic.
- Marathon for Windows Phone 7If you're training for a marathon or just like running this is going to be an app to put on your list. Using the GPS on board in the camera, it will help track your run so you can keep an eye on your training. The software lets you set goals, will map your course and give you announcements to whether you are ahead or behind your target time. You'll even be able to run against yourself thanks to a ghost mode.
Technorati Tags: WP7,WP7Dev,Windows Phone 7 |
|
|
|
|
[[Dave Burke]]
Tags Everywhere! Sueetie Wiki Page Tagging Now Online
|
|
Sueetie Wiki Pages now support tagging and are fully integrated in Sueetie's Global Tagging Architecture and Sueetie Search. Wiki Page Tagging is another example of how the Sueetie Framework adds functionality to an application not available out-of-the-box. This was the case with Gallery Server Pro Tagging and is now the case with ScrewTurn Wiki. ScrewTurn is the best .NET-based Wiki available anywhere, but it does not have a tagging feature. That said, I need to point out that ScrewTurn has a robust Categorization feature (which I use all the time) and natively supports Keyword searching, so it’s more accurate to say that Sueetie is supplementing already rich taxonomic functions in ScrewTurn Wiki with a more traditional tagging function. Managing Wiki Page Tags Since we are using the Sueetie Global Tag Control that can be dropped onto any site page, I decided to add tag management on the wiki page itself rather than place it on the Wiki Page Editor. A user with the ability to edit wiki page tags will see the Tag Edit Icon shown below. (For the initial Version 1.4 release, membership in the "ContentAdministrator" group enables Tag Editor status on Wiki Pages unless Roles are explictly added using the Tag Control’s Roles property.) Using Wiki Page Tags Wiki Page Tags are integrated with Sueetie Global Tagging and Sueetie Search so that not only wiki page content for that tag is displayed, but tagged content from all applications is displayed. The tagged content can be filtered using the Search Area Filter. That’s about it for Wiki Page Tagging. For those of you following the Tags Everywhere! series, yes, there’s more to come. This subject is…to be continued. |
|
|
|< << 2 3 4 5 6 >> >|
|
|