Monday, April 05, 2010

Quake on HTML5

I hate to say it, but Apple was right not to adopt flash on iPhone or iPad.

Looks like flash may become obsolete.

Especially since 90% of it's commercial appeal is (was) as a video player ui.

Thursday, October 01, 2009

Wednesday, September 30, 2009

Visual Studio: Focus on what TODO

I built this visual studio macro to help with developing large projects, where I add many TODO comments. It helps me by focusing only on the remaining todo items of any given project, closing all files without. Written for C# solutions only.

  1. Iterates through the current solution and sub-projects
  2. Opens files and looks for the string "// TODO" with RegEx
  3. Keeps files open with this string, closes files without
  4. opens and focuses the Task List, which then lists all TODO items

Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Imports System.Text.RegularExpressions

Public Module OpenAll

    Sub FocusOnTODO()
        Dim solution As Solution = DTE.Solution
        For Each prj As Project In solution.Projects
    End Sub

    Private Sub IterateProjectFiles(ByVal prjItms As ProjectItems)
        For Each file As ProjectItem In prjItms
            If file.IsOpen Then
            End If
            If file.SubProject IsNot Nothing Then
            ElseIf file.ProjectItems IsNot Nothing AndAlso file.ProjectItems.Count > 0 Then
            End If
    End Sub

    Private Sub TestFile(ByVal file As ProjectItem)
        If file.Name.EndsWith(".cs") OrElse file.Name.EndsWith(".aspx") OrElse file.Name.EndsWith(".ascx") OrElse file.Name.EndsWith(".js") Then
            Dim sel As TextSelection = DTE.ActiveDocument.Selection
            Dim documentText As String = sel.Text

            If (Not Regex.IsMatch(documentText, "//([ ]+)?TODO", RegexOptions.IgnoreCase)) Then
            End If

        End If
    End Sub

End Module

Tuesday, September 29, 2009

Sort programs by name

  1. Click Start, click All Programs, and then right-click any folder or icon.
  2. On the shortcut menu, click Sort by Name.

Tweak UI 64bit (Not Itanium)

Monday, August 24, 2009

How To Look Like A UNIX Guru

Wednesday, August 05, 2009

32-bit Websites on 64-bit Windows

Changing your debug browser to Firefox in Visual Studio

File >> Browse With
More Reading

ORCA Utility for Editing MSI files

Sometimes developers require Windows Vista for no other reason than 64bit compatibility. The ORCA utility allows you to edit the MSI file and remove the validation requirements for installation, allowing Vista-only applications to be installed on XP 64bit platforms.

iTunes on XP 64 bit

How to edit the iTunes 8 MSI files using ORCA to allow the iTunes Vista installer to run on any 64bit OS.

Thursday, May 07, 2009

Visual Studio: Debug in Firefox

  • Right click on the project
  • Select "browse with"
  • Choose "add" and browse to firefox.exe
  • Click OK
  • Click "Set as Default"