tag:blogger.com,1999:blog-37362909981590124212024-03-04T12:23:20.787-08:00Captain's BlogProgramming tips and tricks, other misc stuff I find interesting, personal project updates, entertainment reviews, and so on.Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3736290998159012421.post-28380460921935355882011-05-16T06:54:00.000-07:002011-05-16T06:54:58.247-07:00Switching gearsIn 2 weeks, I will be switching gears. C# using LINQ to Entities will be my main focus. More to come as time goes on. Books I have found useful on this topic are C# in a Nutshell and LINQ Pocket Reference.Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.com1tag:blogger.com,1999:blog-3736290998159012421.post-69880389781545593992011-01-31T12:14:00.000-08:002011-01-31T12:14:07.776-08:00Macro recording in PowerPoint 2007Apparently in PowerPoint 2007, Microsoft decided to remove the ability to record macros easily. You can still reach the functionality using accelerator keystrokes, however.<br />
<br />
To start recording a macro: Alt + T, M, R<br />
To stop recording: Alt + T, M, R<br />
To view the macro: Alt + F11Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.com0tag:blogger.com,1999:blog-3736290998159012421.post-39178066014029453122011-01-26T08:09:00.000-08:002011-01-26T08:09:18.596-08:00Upcoming projectLooking for some ideas on projects that I could work on during my free time. Kicking around several ideas at the moment. The goal is to create a complete game that is interesting enough for young children and adults. Ideas and pictures to come.Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.com0tag:blogger.com,1999:blog-3736290998159012421.post-57038368570466355252011-01-25T12:29:00.000-08:002011-01-26T08:06:42.968-08:00Microsoft Office - Disabling AutoFormat "Internet and network paths with hyperlinks" option through the registry.<style>
.codesample {
background-color : #FFF8B0;
border-width : 4px;
border-color : #C0AE00;
border-style : double;
width : 400px;
padding : 5px;
font-family : monospace;
font-size : 10pt;
font-weight : bold;
}
</style><br />
<br />
Recently, at my place of business, I had to find an automatic way of disabling the "Internet and network paths with hyperlinks" option in Outlook 2007. I wish it was as simple as setting a registry setting from "1" to "0" but it was a little beyond that. The following vbscript is what was written and pushed out to our users through group policy:<br />
<br />
<div style="background-color:#FFF8B0; border-width:4px; border-color:#C0AE00; border-style:double; padding:5px; font-family:monospace; font-size:10pt; font-weight:bold; ">' Constants used in this script<br />
Const HKCU = &H80000001 'HKEY_CURRENT_USER<br />
Const ToggleAutoFormat = &H00000010 ' Auto Format flag<br />
Const ToggleAutoFormatInv = &H11111101 ' Auto Format flag inverse<br />
strComputer = "."<br />
Set StdOut = WScript.StdOut<br />
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ <br />
strComputer & "\root\default:StdRegProv")<br />
strKeyPath = "Software\Microsoft\Office\12.0\Word\Data"<br />
strValueName = "SettingsWordMail"<br />
' Get the binary value in question<br />
oReg.GetBinaryValue HKCU, strKeyPath, strValueName, strValue<br />
bitLocation = -1<br />
' If this setting was not found, early out<br />
if IsNull( strValue ) then <br />
WScript.Quit<br />
end if<br />
' go through the binary data and find our current setting<br />
For i = lBound(strValue) to uBound(strValue) - 4<br />
'StdOut.Write "(" & i & ")" & strValue(i) & "|"<br />
'StdOut.Write strValue(i) & "|"<br />
if strValue(i) = 135 and strValue(i + 1) = 255 and strValue(i + 2) = 255 then<br />
'StdOut.Write "Found the troubled bit at " & (i + 3) & ": " & strValue(i + 3)<br />
bitLocation = i + 3<br />
end if<br />
Next<br />
' Did not find the bit we are looking for, early out<br />
if bitLocation = -1 then<br />
WScript.Quit<br />
end if<br />
' Set the bit to off<br />
newBit = strValue(bitLocation) And ToggleAutoFormatInv<br />
' Write the new value into the registry only if this setting is toggled on<br />
if newBit <> strValue(bitLocation) then<br />
strValue(bitLocation) = newBit<br />
<br />
' Write the value back to the registry<br />
oReg.SetBinaryValue HKCU, strKeyPath, strValueName, strValue<br />
end if<br />
</DIV>Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.com5tag:blogger.com,1999:blog-3736290998159012421.post-22074945189001581842011-01-25T12:23:00.000-08:002011-01-26T07:50:56.538-08:00Long time reader, first time blogger...Who knew that I would be a blogger...anyways time to let the blogging begin!Nickhttp://www.blogger.com/profile/13763329610596856697noreply@blogger.com