The adventures of Superman and Jerry Seinfeld
Update 2008-11-01: link is dead. I think this YouTube link is like the original but it has subtitles in Spanish. O tempore! O mores!
The adventures of Superman and Jerry Seinfeld
Update 2008-11-01: link is dead. I think this YouTube link is like the original but it has subtitles in Spanish. O tempore! O mores!
Maybe I should hire myself out to bidders at Rent-a-Coder. Maybe one day I'll be able to move up into the big leagues where I can make $500 for two months of work.
Strong names
Generating drawings/views of C++ code
Vital .NET development tools
Libraries we use and like enough to recommend to others:
Applications
Practical Eye for the .NET Guy: Introduction to NAnt
Running multiple IE versions side by side
Client/Server Rendezvous: services advertise their presence, and how clients discover them
Microsoft app updater
C++ code to do some sort of low-level memory operation in Windows.
{
MEMORYSTATUS stat = {0};
GlobalMemoryStatus (&stat);
VOID* mem = VirtualAlloc (0,stat.dwAvailPhys,
MEM_COMMIT,
PAGE_READWRITE);
// req to really alloc the pages
memset (mem,0,stat.dwAvailPhys);
VirtualFree (mem,0,MEM_RELEASE);
}
Signing a DLL
AL /link:ClassLibrary1.dll /keyf:keyfile.snk /out:signedlibrary.dll
RunAs
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "runas /user:Serdar ""e:test.bat"""
WScript.Sleep 100
WshShell.Sendkeys "password~"
Neo (open source code generator)
Neo generates entity classes and database tables (only SQL Server as yet) from an XML schema, and provides typed collections, factories, query objects.
OLAP services (Microsoft SQL Server Analysis Services)
Administering and scheduling Analysis Services tasks
1. Create a DTS package that processes objects in Analysis Services. a. Create an Analysis Services processing task. b. (Optional.) Add connections and other tasks to the package. c. Save the package. 2. Schedule and execute the package.
.NET Remoting Services are the recommended solution for interprocess communications in .NET, but there are many scenarios where .NET Remoting won't work. Shawn shows how to get simple, intrasession IPC messaging in .NET by creating a managed library for good old Dynamic Data Exchange (DDE).
[Download]
intraVnews is a state of the art news aggregator that turns Microsoft Outlook into a news reader. With intraVnews you can subscribe to any of 1000's of syndicated feeds from personal weblogs (Blogs) to mainstream news sources to specialist publications. You never have to leave Outlook again to keep up with changes on the web or your intranet. Best of all, it's Free for personal use.
DTS bug fixes
CRC in .NET
Measuring memory in a .NET app
GC.Collect();
GC.WaitForPendingFinalizers();
Console.WriteLine("Mem=" + System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize.ToString());
Sending email from a WinForms app
This will pop open a new message for their default mail client.
System.Diagnostics.Process.Start("Mailto:");
Keyboard accelerators
CTRL+* = Expand ListView columns to proper width
CTRL+SHIFT+ESC = Task Manager
URLs and IE/mail readers
Writing hostname in C#
static void Main(string[] args)
{
String s = System.Net.Dns.GetHostName ();
Console.WriteLine (s);
}
COM ATL header I use:
//>>> These are required for creating // com components, CComPtr, CComBSTR, CComPtr and CComQIPtr. #includeextern CComModule _Module; #include #include #include //<<< #import "msxml.dll" \ rename_namespace( "MSXML" ) \ named_guids no_implementation \ raw_interfaces_only \ raw_native_types using namespace MSXML;
Some sort of javascript for loading XML and applying an XSL style.
<title>Test of XML/XSL</title>
<script language="jscript">
function setInnerHTML ()
{
var XMLDoc = new ActiveXObject('Microsoft.XMLDOM');
XMLDoc.async = false;
XMLDoc.load ('av.xml');
var XSLDoc = new ActiveXObject('Microsoft.XMLDOM');
XSLDoc.async = false;
XSLDoc.load ('av.xsl');
var result;
try
{
var doc = XSLDoc.documentElement;
result = XMLDoc
.documentElement.transformNode(doc);
}
catch (err)
{
window.alert (err.description);
}
//window.alert (result);
insertHTML.innerHTML = result;
}
</script>
<div id="insertHTML"></div>
C# code to get .config settings into in-memory data structure.
// Gather .config settings
NameValueCollection settings =
ConfigurationSettings.AppSettings;
string user = settings["user"];
string password = settings["password"];
string nickname = settings["nickname"];
The matching XML data
<configuration>
<appsettings>
<add key="user" value="user@server.com">
<add key="password" value="password">
<add key="nickname" value="Sells Brothers IM client">
</add>
</add>
Windows hotkeys
seoconsultants TechTVWindows: Display Start menu. Windows + D: Minimize or restore all Windows. Windows + E: Display Windows Explorer. Windows + Tab: Cycle through buttons on taskbar. Windows + F: Display find: all files. Windows + Ctrl + F: Display find: computer. Windows + F1: Display Help. Windows + R: Display Run command. Windows + break: Display system properties dialog box. Windows + shift + M: Undo minimize all windows.
Advanced WinForms layout
User picker
The Google PageRank Report will check the Google PageRank values for the list of URLs you enter into the form below.
[Google page rank]Two links from yourdictionary.com:
Assoc and ftype
C:\>assoc .txt=Wordpad.Document.1 C:\>ftype txtfile="%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE" "%1" C:\>ftype txtfile txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1 C:\>assoc .txt .txt=txtfile C:\>assoc txtfile txtfile=Text Document
WsContractFirst
VS addin for developing Web Services