Getting back into the code

Assembly is allowing my favorite activity to take place, and leveling me off quite well. Efficiency is something that is highly important to me, so when i am given a lab that is about algorithms i become giddy! Todays lab is about calculating the dot product of a multiple dimensioned vector, lets walk through this.

Continue reading “Getting back into the code”

Code Example

I was doing some thinking the last month or so about how I didnt appreciate the tools and freedoms that Half-Life 2 provided me with. Something about working in CPP made my abilites as a coder quite free and open. I felt so much more challenged and thus motivated to push through and achieve things that were seemingly impossible. 

This last week we had a challenge, write an application that uses as few variables as possible in MASM Assembly that is able to calculate the day of the week that we were born, and as such, allow us to calculate the day of the week that any date provided is. 

Below you will find my solution…

Continue reading “Code Example”

Code Example #6 – UT3 Logging Essentials

Below is the library that my team and I use for our UT3 Development. Please feel free to enjoy as well.

All you have to do is include the uci file

`include ({PackageName}/Classes/LibraryMessage.uci)

LibraryMessage.uci

// Macros for easy calling of Library_Message functions.

`define GetObjectMethodPrefix() self $ "." $ GetFuncName() $ ": "

`define ClientMessage(message) class'LibraryMessage'.static.ClientMessage(self, `message)
`define DebugMessage(message) class'LibraryMessage'.static.DebugMessage(self, `GetObjectMethodPrefix() $ `message)
`define LogMessage(message) class'LibraryMessage'.static.LogMessage(`GetObjectMethodPrefix() $ `message)

Continue reading “Code Example #6 – UT3 Logging Essentials”

Code Example #4 – MSSQL Tests

This week I am working on extending an application that takes advantage of the MSSQL servers that proliferate my company. I am writing a number of changes, altering, creating and dropping tables, and unfortunately – the scripts have to be executed a number of times. This poses a simple challenge. I don’t want to be executing SQL that has already been executed on a previous run, so I have had to get creative in my queries in order to avoid this overlap. Below are a few of the tests that I am using.

Does a table exist?
Does a table not exist?
Does a stored procedure exist?
Does a table have a field already?

This week I am working on extending an application that takes advantage of the MSSQL servers that proliferate my company. I am writing a number of changes, altering, creating and dropping tables, and unfortunately – the scripts have to be executed a number of times. This poses a simple challenge. I don’t want to be executing SQL that has already been executed on a previous run, so I have had to get creative in my queries in order to avoid this overlap. Below are a few of the tests that I am using.

Continue reading “Code Example #4 – MSSQL Tests”