benninger.ca

Personal site of Christopher Benninger
June 12th, 2013 by Chris

Force Snow Leopard+ to consider a shell script safe.

You can tell OSX Snow Leopard to consider shell scripts safe to execute without a user prompt. This is useful for automation of certain tasks.

Read the rest of this entry »

May 7th, 2013 by Chris

Virtualizing OSX: Nic card setup

If you are automating anything with virtual machines, you likely will be automatically assigning MAC addresses to Nic cards. If you are using any OSX guests, you may have issues around new Nic cards being assigned and having them come up without human interaction. To force OSX to register and bring up new Nics, run the following:

networksetup -detectnewhardware

Applying that to the virtualization case, you can use Automator to create and Application that runs an AppleScript with the above command, and set it to run on login.

April 26th, 2013 by Chris

Akka+Scala: Deploying an actor remotely

In my use case, I have a variable number of independent ActorSystems. As a new system starts up, it initiates a simple Syn/Ack procedure with the command and control system, allowing the C&C to deploy remote actors. Just for fun, here is some example code.

Read the rest of this entry »

November 14th, 2012 by Chris

Creating an Akka actor from a dynamically loaded Jar file in Scala

Creating actors in Akka is generally pretty straight forward. If using the general use-case, there are two slightly different methods to use depending on whether or not your Actor has any parameters in it’s constructor.
Read the rest of this entry »

August 7th, 2012 by Chris

Cloud 2012 and SophosLabs and Scala, Oh my!

It’s been a long while since I last posted anything, I thought I would summarize a few of the things that have occurred lately. The first of which is that the research paper based on my graduate research was presented at the IEEE Cloud 2012 conference in Hawaii in June. Dr. Onat Yazir presented the work for me as I wasn’t able to attend. For anyone interested, the paper can be found here.

In addition to this news, I have accepted an R&D/Development position at Sophos (SophosLabs) in Vancouver BC. I have been there for about a month now and am having a lot of fun. In particular, I’ve been playing a lot with the Scala programming language. In combination with the 3rd-party Akka library, Scala provides an extremely powerful set of tools for building distributed systems using the Actor model. I must admit, I originally resisted many of the changes in thinking required for effective use of the Actor model and Scala, especially coming from my favouritism towards C and Python. Scala actors however, have begun to restore my faith in the JVM (what’s that you say?). I suggest you give it a shot, I think you’ll be pleasantly surprised.

May 29th, 2012 by Chris

Graduation, Maitland and career seeking.

Well it’s done, I am finished all the requirements for my MSc. and have now been approved for graduation.

My thesis, entitled Maitland: Analysis of Packed and Encrypted Malware via Paravirtualization Extensions can be found here if anyone is interested. In addition, a few months ago we began working on a conference paper version of my thesis work. It was recently accepted to the IEEE Cloud 2012 conference and I am very excited about it. I will post some paper details and a citation once the conference is over (late June).

Now that my MSc. is finished, I’ll be investigating some career opportunities both here in Vancouver and abroad.

November 12th, 2011 by Chris

How to get answers on a developer or help IRC channel.

I’ve spent the better part of two years working on a very technical project. I don’t personally know many people who are able to really help me with the technical side of things. As my environment has little solid documentation, I had nowhere to turn but the developer community’s IRC channel and mailing list.
Read the rest of this entry »

August 6th, 2011 by Chris

Converting those pesky .m4a files to .mp3 on Linux

Here is a nice one-liner to convert a .m4a audio file to a .mp3 file:

$ faad -o - input_file.m4a | lame - output_file.mp3

Note: Make sure you have lame and faad installed. In debian they are just ‘faad’ and ‘lame’ packages.

July 19th, 2011 by Chris

Vim: Use selected text as input to a shell command


This is most likely common knowledge but I keep forgetting how to do it. If you want to run shell command on a small section of text in file you have open in vim, here is how.
Read the rest of this entry »

April 22nd, 2011 by Chris

Workviz

Workviz is a prototype tool I built for viewing live server metadata in a compact way. The original intention was not to create an admin tool but rather a way for human’s to use their natural pattern recognition to identify properties in a server cluster. Written in python, using NumPy and VPython, Workviz displays a 3d representation of user-selected metrics about any number of physical machines. It also supports simulations by creating alternate “Workload Generators” and inserting them on the fly.

Here is the Project Page.