Detecting Memory Leaks in C/C++

On Linux valgrind is about as good as it gets. The program runs your application with overridden allocation methods and will alert you to any memory that is allocated and not freed:

$ > valgrind --tool=memcheck -v --track-origins=yes ./yourApp [params] 

On windows you can leverage the crtdbg.h functions, which basically do the same as above, but require you to call _CrtDumpMemoryLeaks() when you are ready to see the report of any memory you did not dump.

Detected memory leaks!
Dumping objects ->
{18} normal block at 0x00780E80, 64 bytes long.
 Data: <                > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.

My evening in telecom – BSA Post-Mortem

The term Post-Mortem is typically used to describe the process of evaluating a body, after it has been disconnected from whatever it is that causes life to function, or a project once it has come to its end. Today is no different, and it feels like a bit of both.

Over the last decade I have been involved in a shit ton of projects, most of which are no longer even able to be pulled up on the way back machine, or were kept under the radar and never released. I tend to land a lead type position, not because I am the most knowledgeable or skilled, but because I am a no nonsense guy who wants little more than to solve problems. Don’t let me sugar coat it, I am a muckraker; when I see process or flow problems I attack them, and I have learned to do that ruthlessly. This energy tends to be accepted by people I’m fighting for and for those I’m fighting with, it is… well.. a mess.

One project that ended up being a thorn in my side was World at War, primarily because of personality conflicts and an all around unwillingness to solve problems with process and flow, but also because of a lack of planning. In the end I offended a huge swath of our “community” because I suggested that developers should be held to a higher standard, which led to a ton of infighting and further personality conflicts.

The reason I am telling you this is that I was just released from my duties as a Business Systems Analyst in the telecom industry, where I have just worked for 12 days. The following are the cleaned up and truncated notes for my experiences. Enjoy your look behind the curtain.

Continue reading

There’s a quiet storm

As long as I have had a blog I have struggled to ride the fine line between sharing too much and not exposing too much. On one side of the line stories are boring, lack interesting tid bits and tend to just become fodder for spam bots to agree with my message. But the other side is far more difficult to manage.

People are far more likely to respond to sensational and inane profundity, but it requires that I share my day to day in a way that causes others not to trust me. I am struggling with just such an event right now. My intelligence, experience and will power are being tested in a way that makes me incredibly uncomfortable. I am being pulled in three different directions, carried by three different ambitions, and all I’m actually managing to do is let one side down, irritate the other to the point that they are “unwilling to work with [me],” and worst of all, I am fighting a losing battle for my self-respect.

As much as I love the act of building, planning and executing amazing things I have never had to deal with such amazing politics, in the workplace, before in my life. I am only hoping that things settle down shortly so I can get to work, solve some problems and make some people’s lives a bit better.

Ultimately, we all want to have more time to spend with our friends and families at home, right?

 

Funny Story – Llllllllllll!

Yes, those are all Ls, I’ll come back to that at the end, though.

When I was younger I thought It would be fun from time to time to make up a hypothetical situation that would surely never come to pass, but it allowed me to take the time to think up the most effective, correct and or hilarious response to that given situation and laugh about it with a group of friends. “What would you do if…” would be followed with some crazy bullshit that only ever happened to anyone in their dreams, or in a horror film.

One such example: What would you do if someone came into your apartment or home in the middle of the night? Surely some of you are pushing your chins out and flexing your pectorals in some fashion and thinking, well I would shoot that son of a bitch or I’d grab my bat and beat that person senseless, both of which are quite common responses. The only thing is, the middle of the night is commonly sleepy time and let’s mix it up a bit, you have no weapons. You have your wife lying next to you and your dog at the foot of your bed.

What do you do?

Continue reading

I Don’t Care

Yesterday I was involved in a discussion of monumental proportions. Alex Jones has gone on CNN to yell, scream and threaten the world, but primarily those of us with a reasonable understanding of what the second amendment actually guarantees, “1776 will commence again, if you try to take our firearms.”

Alex Jones perfectly reasonable position on Gun Rights.

Alex is right! The second amendment does absolutely say “A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed,” and since the constitution is absolutely clear in its explanation of what an arm is and who a regulated militia…

Continue reading

Effective UnrealScript – An Introduction

When I first started out programming the problems I faced were monumental:

  • What is a variable?
  • Why do I need a pointer?
  • For the life of christ, who cares about the differences between stacks and queues!?

Well, here I am some many (many, many) years later and it occurred to me an hour ago that the quality of my complication has increased so much that I don’t even know how to answer those questions well any longer, at least not without drawing. I am about to set out on a new side project to help build upon the concepts that many of us take for granted, hopefully delving into something a bit more involved – what to do once you understand these concepts.

Continue reading

It is called democracy, deal with it. I had to.

295881_554598034569654_1609123923_nDo you remember a recent election, where the red states took the country into a roller coaster of bullshit and tears… the greatest part of which was the fact that I was right about WMDs not being “[…] in the area around Tikrit and Baghdad and east, west, south and north somewhat”? [defense.gov] Well I sure as fuck do. A pretty clear case can be made for such a travesty of an election leading to me not wanting to ever vote again, but I stuck it through and have voted in the 2004, 2008 and now in the 2012 elections.

Continue reading