Month: October 2011

@priley86 : Young Developer to Watch

Ah yes, I know…a little corny but every so often at events I run into some interesting people and I actually try to look up almost everyone that I meet in order to see what they are about. So I have decided to start a little Young Developer / Young DBA to Watch track here and put together some quick shout outs to those young individuals that I meet that I think might just be motivated enough to do some great things in the future…. Criteria is as Follows… Younger than me … <28 years old(Cough,Cough) Needs to do cool things based upon an arbitrary scale determined by a point in time of my choosing. Needs to be .NET developer or SQL Server DBA ….cause seriously why would anyone use anything else? Prizes: Admiration of your fellow Developers/DBAs Maybe one day I will make a cool logo or something This last weekend while at SQL Saturday 87 in Louisville, I ran into a Patrick Riley ( @priley86 | blog )  after my SQL Azure talk. An interesting conversation ensued regarding sharding and the Enzo framework. So upon looking over his Twitter feed, I ran across some very interesting blog posts by Patrick that I think deserve a read. Fuzzy matching: a programmer’s view of the Damerau-Levenshtein algorithm and also SQL Azure Federations and Enzo Shard Demo So this week...

Read More

Simple WPF: ListBox Items Stretching To Fill Width

Here’s a fairly common question that can be solved fairly easily. Sometimes when you have a ListBox of Items you would like for those items to stretch the available width of the ListBox. Sounds pretty straightforward right? Given we have something similar to the below XAML : <ListBox x:Name="SearchResults" BorderBrush="{x:Null}" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectedItem="{Binding SearchResultsSelectedItem}"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="30" /> <ColumnDefinition Width="*"/> <ColumnDefinition Width="30" /> </Grid.ColumnDefinitions> <Button Grid.Column="0" Margin="0" Content="Press Me"/> <TextBlock Grid.Column="1" Text="Some Text"/> <Button Grid.Column="2" Margin="0" Content="No Press Me"/> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox> You would think that this would get the trick done right? After all I told the Grid in the DataTemplate that the second column needed to have a expansible width that would take up any of the left-over space from the button columns. Unfortunately this won’t work and the items will only be sized to the largest one in the set. So if you want it to stretch the entire width of the ListBox’s ItemPanel you need to use the following attribute in the ListBox itself:   HorizontalContentAlignment="Stretch" This will cause the contents to take up the entire width of the ListBox.   Cheers!...

Read More

#SQLSat87 Louisville Recap

Another SQL Saturday weekend has come and gone. This time it was SQL Saturday #87 in Louisville, KY . The event appeared to be pretty well packed,  Malathi Mahadevan ( @sqlmal | Malathi’s Blog )  and crew pulled off another awesome event! Hopefully most people around the area got to attend…if not then there is always next time. A couple of notes that I jotted down .. First Timers   We need to do a better job of maybe having a couple of the representatives of the local user groups give a short introduction and talk about their groups. Possibly also give a plug for other groups in the region. This is possibly the third event that I have had someone come up to me afterwards and said something similar to the following Attendee:  “Awesome presentation! This is my first event and WOW totally cool free training!” AJ: “So do you go to the monthly user group?” Attendee: “Whut? There’s a user group? “ …you get the picture. This time it was for someone whom travelled from Nashville (3+ HOURS) to attend….and Nashville just had their meeting like earlier in the week. At PASS, I was playing the role of Regional Mentor – Midwest and ran into a couple of people who were freaking attending PASS Summit but had not heard about the IndyPASS group until PASS. We need...

Read More