Categories
Life

Wondering

We have all been there. Wondering. Usually wondering when we are going to see someone again, if at all. Well, here is, Wondering. Song I wrote. Its the first take, just like 2 minutes after I wrote it. If you listen, I screw it up a few times before actually starting, and I didn’t edit it out. It probably could about 100 times better, so maybe one day I’ll record it again. Yeah, I haven’t stopped playing, just stopped putting stuff up for a while, and this is the first time I’ve put anything I’ve written up, so it’s different. Friends and such know that I wrote stuff, and they want to hear it, or at least have something to make fun of me of :), so here it is:
Wondering

Categories
Geeky/Programming

VS2005 C++ Unit Tests – System.AccessViolationException: Attempted to read or write protected memory.

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..

If you have VS2005 C++ Unit Tests, written in managed C++ as they should be, and you are calling native code from them, and you see that error when running your unit tests – I have found it to mean that you are using insecure versions of methods (strcpy, etc). If you change the method calls to the secure versions, you should see your tests pass!

Categories
Geeky/Programming

SSRS – Get TOP N Items – Filter with MDX

In your Query Builder, you can filter a dimension using MDX, here is how you get the TOP N

TOPCOUNT({Dimension Member},N,{Measure.Value})

Comes in pretty handy for building reports.

Categories
Geeky/Programming

VS2005 LNK1104 Error – cannot open file

If you are referncing another lib in a project and you goto build and get

fatal error LNK1104: cannot open file ‘C:MyProjectDebug.obj’

Do a double check in the project you are referencing configuration. If you have a space in the name (Say “Debug Test”) you might see this error and scratch your head. If the project you are referencing outputs to $(ConfigurationName), then the output directory will have a space. Seems that when you reference that project or lib, it doesn’t like it with a space in the path name, doh! 🙂

Categories
Geeky/Programming

HowTo: Make a Win32 DLL without MFC and ATL

Vs2005->New->Project

Win32->Win32 Project

On the Wizard, Application Settings, choose DLL radio box, hit finish.

This is all great, except when you build it, you just end up with a dll. How do you use the dll in another project?

Add a Module-Definition File (.def) – call it Export.def

next time you build, there will be a “.lib” file avail so you can link in the dll with another project.

You can add a EXPORTS section to export functions. The LIBRARY secion is added for you automatically. Have Fun with your new Win32 dll!

Categories
Product Reviews

View Hard Disk Usage

A good tool to view files on your hard disk and see where you are using up space – SequoiaView. Gives a graphical representation of where files are and how big they are. Most other apps you find are going to be shareware or cost 20-30$. Using this tool I have found things I have forgotten about that were taking up GB’s on my hard drive, and made it easy, I didn’t have to search around in every folder. Pretty good util.

Categories
Geeky/Programming

SSRS, SSAS – Auto Pick Yesterday

If you ever have written any Reporting Services reports off a cube (Analysis Services), and want to have a drop down that auto picks a day, this is for you. There is probably a more elegant way to do this, but it works.

=”[Time].[Calendar Date].&[“& Year(DateAdd(“D”,-1,DateTime.Now())) &”-“& IIf(Len(Month(DateAdd(“D”,-1,DateTime.Now()))) < 2,Month(DateAdd("D",-1,DateTime.Now())),"0"&Month(DateAdd("D",-1,DateTime.Now()))) &"-"& IIf(Len(Day(DateAdd("D",-1,DateTime.Now()))) < 2,"0"&Day(DateAdd("D",-1,DateTime.Now())),Day(DateAdd("D",-1,DateTime.Now()))) &"T00:00:00]"

Remember, months and days need to have a zero in the front of them.

Categories
Life

SxSw

I so want to goto this – South By Southwest

It is in Austin, TX, and its like a geek and artist fest – Music, Film, Technology. Its close enough to South Padre that I could go visit my grandparents too. We will see whats up in March.

Categories
Life

Holiday Party

Well, I promised a blog on the 2006 Holiday Party. Good times – as usual. Pre-party at Brye’s, playing Wii and listening to Best of Bootie 2006 – which I think I need to burn about 5 copies of for all the people that want it. Headed down to the hotel, pimped out room for sure, double suite. On to the party, open bar, which is always good. Awards, prizes, hypnotist, karoke/DJ. Fun stuff. I won a 23 inch LCD HD TV – which is really cool. I have it hooked up, but need to get my 360 hooked up, but I need to get a HD cable first I think. We also got bobble heads of ourselves, which I didn’t know what they would look like, but they turned out pretty cool. And, the reason I’m blogging this in the first place, I won the “Tech Dood” of the year award, so instead of a speech, a blog is fitting 🙂 – we will see if next year can top this year~

Categories
Ramblings

Backwards Logic..

What do you do when your house is on fire? You throw more gas on it and point a flamethrower at it of course!