Sunday, November 23, 2008
unicode character charts
http://www.unicode.org/charts/
Monday, November 10, 2008
How to install wmp firefox plugin on windows 2003 / 2008
http://arnoutboer.nl/weblog/?p=24
Friday, October 31, 2008
Get EventID (Event ID) from InstanceID (EventLogEntry Class)
"Two event log entries from the same source can have matching EventID values, but have different InstanceId values due to differences in the top two bits of the event identifier. "
The solution:
int EventID = (int) (Entry.InstanceID & 0x3fff)
Explanation
the EventID is stored in the 14 rightmost bits. '&' is a bitwise operation and 0x3fff is the hex representation of the binary sequence: 0011 (3) 1111 (f) 1111 (f) 1111 (f) this bitwise operation sets all bits other than the 14 rightmost bits to '0'. Et voila!
My rant: "top 2 bits." That's like losing something in a tetradecagon-shaped room and said it was placed in a corner. let me explain to you why:
EventID is an int (32 bits), InstanceID is a long(64 bits). So, is it the top 2 bits of the long or the int? answer: Neither -.-
In fact, EventID is 14 bits, 2 smaller than a short, hence the difference between an EventID and InstanceID is the top 2 bits of a short inside a long that is referenced as an int (what?). But that would mean that InstanceID is a short which it clearly isn't. The writer made a riddle out of a description attempt. When I go to a resource page, I'm looking for clear answers, not riddles.
Tuesday, October 14, 2008
Routines, Procedures, Functions and Methods (Mysql/SQL): What they are, and what they do
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0009145.htm
Saturday, September 27, 2008
c# add arguments to an executable
http://www.c-sharpcorner.com/UploadFile/mahesh/CmdLineArgs03212006232449PM/CmdLineArgs.aspx
Wednesday, September 17, 2008
C# regex class and regular expressions
http://www.radsoftware.com.au/articles/regexlearnsyntax.aspx
Thursday, September 4, 2008
Wednesday, September 3, 2008
EventLog field types and descriptions
EventLog = string logname
RecordNumber = int position
TimeGenerated = TimeStamp when the application sent the event
TimeWritten = TimeStamp when the eventlog processed the event
EventID = int Error number
EventType = int event type numerical ID{1 = Error event, 2 = Warning event, 4 = Information event}
EventTypeName = string event type
EventCategory = int application/source defined field usually for event organization
EventCategoryName =string application/source defined field
SourceName = string name of application/source
Strings = string application/source field
ComputerName = string name of computer error is coming from
SID = string Security Identifier
Message = string application/source field usually event description
Data = string application/source field usually Data relating to event
Tuesday, August 26, 2008
c# links
http://www.dotnetspider.com/resources/4634-Invoke-me-ods-dynamically-using-reflection.aspx
animated icon in tray:
http://blogs.msdn.com/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx
gif to bmp animation strip:
ImageForge Standard (Free):http://www.cursorarts.com/ca_imw_d.html
nested classes:
http://en.csharp-online.net/Nested_Classes
using a string as an object name to change its properties:
http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/ca5767bb-c3cd-47fb-acff-20129033b1ef/
how to send an email from your gmail account with C#:
http://foxsys.blogspot.com/2007/03/send-mail-in-your-net-application-using.html
what are delegates?
the basics:
http://www.c-sharpcorner.com/UploadFile/Ashush/Delegates02152008155757PM/Delegates.aspx
more advanced:
http://www.aspfree.com/c/a/C-Sharp/C-Sharp-Delegates-Explained/4/
Create a logtype (add a log to the eventviewer):
http://www.codeproject.com/KB/dotnet/evtvwr.aspx