Apr182011

X Conference 2011

X Conference 2011 will be held April 30, 2011 at the Kalamazoo Valley Community College Center for New Media in beautiful downtown Kalamazoo.

Apr072011

April 2011.Net Developer Events

The next South West Michigan Developers Group meeting will be held on April 19, 2011 and is titled, “jQuery Onramp.” Rich Dudley is giving the presentation and it is scheduled to last approximately one hour.

If 50,000,000 Elvis fans can’t be wrong, then 19,000,000 websites are pretty close to a sure thing. Since its release in 2006, jQuery has gained a tremendous following–so much so that in 2008, Microsoft made the decision to replace its then 20-month old ASP.NET Ajax framework with jQuery for all future client side programming libraries. In this session, we’ll review some JavaScript fundamentals to see how jQuery is built and how to use jQuery. We’ll then spin up a simple sample application and see what jQuery can do for our applications. Whether you develop in WebForms, MVC or PHP, there’s something in this session to be learned.

More info at the Southwest Michigan Developers Group website.


The next West Michigan .NET User Group meeting will be held on April 27, 2011 and is titled, “Cross Training in Silverlight and Flex.” Brian Genisio is the speaker.

Silverlight and Flex developers unite! Let us learn each others’ technologies. Be fluent in both! This session will compare and contrast the differences between Silverlight and Flex. You might be surprised to learn how similar the two environments are. This open-minded, code-focused session will help you understand enough to get started with Silverlight or Flex through examples and comparisons.

More info at the West Michigan .NET Users Group website.

Sep072010

MSDN Events Presents: Windows Phone 7 Boot Camp

Coming to Grand Rapids: Tuesday, September 14, 2010 8:00 AM – 5:00 PM Standard Eastern Time.

Windows 7 Boot Camp

There has been a tremendous amount of buzz and excitement in the developer community as we get ready to launch Windows Phone 7. There have been over 300,000+ downloads of the Windows Phone 7 developer tools as developers are eager to take advantage of this next wave of computing. To help you along the way, my team is sponsoring a number of *free* Windows Phone 7 Boot Camp training events across the area. The purpose of these boot camps is to provide guidance around building apps and games that target Windows Phone 7 and lead you down the path to start earning money in the Windows Marketplace.

I am going to this event so if you are from the Three Rivers, MI area and want ride along just leave a comment or send me an email at Buck at BuckHicks Dot Net.

Aug262010

The Ultimate C# / VB Scratchpad

LINQPad is a great tool for writing Linq queries but it also makes an excellent scratch pad for writing C# and VB bits. I am currently learning C# and I use it all the time to test out sample code.

linq

You can also see your code in IL, which has been an interesting exercise for me.

linqil

Oh and you can query SQL Server, Entity Framework, Odata, and other data stores with it. Check it out and download it from here

Jul062010

Grand Rapids Barcamp August 20 & 21

BarCamp is an ad-hoc gathering born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos, and interaction from attendees, usually centered around design & technology topics. Read more and register here.

Mar082010

Kalamazoo X Conference April 2010

The Kalamazoo X Conference 2010 will be held April 10, 2010.

The X Conference is a one-day software development conference hosted in beautiful Southwest Michigan. While there are many great technical conferences in the region, their focus tends toward new technologies and programming languages. The Kalamazoo X Conference intends to uniquely complement those conferences by enabling attendees to boost their process, design, and communication skills in the following areas:

  • Human interaction, including social, personal, and career development.
  • Interface and graphic design.
  • Development processes and best practices.
  • Requirements analysis, architecture, design, and modeling.

I went to this last year and it was one of the best conferences that I have ever attended. If you are even remotely interested in a career in technology I would recommend that you try and make it to this one.

Details here.

Jan262010

West Michigan SQL Server Users Group Meeting

Location: Blue Granite Corporate Offices (directions)  Also to be broadcast via Microsoft Live Meeting.  Call Information listed below if attending via Livemeeting. Date: Tuesday 1/26/2010 Time: 6:00pm – 8:00pm

  • 6:00pm – 6:30pm Welcome Mixer / Pizza / Beverages
  • 6:30pm – 6:45pm General Announcements / WMSSUG Business
  • 6:45pm – 7:45pm Presentation and Q&A
  • 7:45pm – 8:00pm Closing remarks / Giveaways

View Map here.

Jan042010

Windows “God” mode

SQL Dennis points out that Windows 7 as well as Vista has a god mode.

Basically you add a new folder to your desktop and name it GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}. After that is done you will see a new icon on your desktop, which gives you access to most, if not all, Windows settings in one place.

See this for details and comments.

Dec312009

Create a CSV file from Dataset

First Declare a form level Dataset

Public Class frmCSV
    Dim ds As New DataSet

Next connect to your data source and build your dataset. In this case I am going to build one on the fly with this

Private Sub BuildDS()
     Dim dt As New DataTable
     Dim dr As DataRow
     Dim idColumn As DataColumn = _
         New DataColumn("ID", Type.GetType("System.Int32"))
     Dim FNColumn As DataColumn = _
         New DataColumn("FirstName", Type.GetType("System.String"))
     Dim LNColumn As DataColumn = _
         New DataColumn("LastName", Type.GetType("System.String"))

     dt.Columns.Add(idColumn)
     dt.Columns.Add(FNColumn)
     dt.Columns.Add(LNColumn)

     dr = dt.NewRow()
     dr("ID") = 1
     dr("FirstName") = "Randy"
     dr("LastName") = "Flag"
     dt.Rows.Add(dr)

     dr = dt.NewRow()
     dr("ID") = 2
     dr("FirstName") = "Tom"
     dr("LastName") = "Servo"
     dt.Rows.Add(dr)

     ds.Tables.Add(dt)

 End Sub

Now the code to loop trough your dataset and write the results to a file.

Private Sub WriteDS2CSV(ByVal ds As DataSet, ByVal FilePath As String)
    Dim str As New System.Text.StringBuilder
    For Each dr As DataRow In ds.Tables(0).Rows
        For Each field As Object In dr.ItemArray
            str.Append(field.ToString & ",")
        Next
        str.Replace(",", vbNewLine, str.Length - 1, 1)
    Next
    Try
        My.Computer.FileSystem.WriteAllText(FilePath, str.ToString, False)
        MessageBox.Show("File Created", "Success", MessageBoxButtons.OK)
    Catch ex As Exception
        MessageBox.Show(ex.Message, "Write Error", MessageBoxButtons.OK)
    End Try
End Sub

All that is left is to actually build the dataset and then pass it as well as the file name and path to the WriteDS2CSV sub.

 

Private Sub btnWriteCSV_Click( _
    ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles btnWriteCSV.Click

    BuildDS()
    WriteDS2CSV(ds, "C:\dsExport.csv")

End Sub

Oct272009

A Function to extract the "name part" of an email

A handy little function to remove the name part of an email address.

Public Class Form1
    Public Function getNameFromEmail(ByVal strEmail As String) As String
        ' This purpose of this function is to return the
        ' name part of an email address. For instance
        ' joe@somewhere.com would return just joe.

        ' Use the IndexOf to find out how many characters
        ' in the @ sign is so I can use that number later
        ' to determine the amount of characters to select
        ' in the substring. 

        Dim i As Integer = strEmail.IndexOf("@")
        Dim newstring As String = strEmail.Substring(0, i)
        Return newstring
    End Function

    Private Sub Button1_Click( _
        ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles Button1.Click

        Dim emailArray() As String = { _
            "me@somewhere.com", _
            "you@anywhere.com", _
            "them@nowhere.com"}

        For Each emailName As String In emailArray
            Dim strMess As String = CStr(getNameFromEmail(emailName))
            MessageBox.Show(strMess, "Email Name Test", _
            MessageBoxButtons.OK)
        Next
    End Sub
End Class