Mavnn's blog

Stuff from my brain

Xkcd: Workaround

xkcd: Workaround

Just remember in applies to work colleges as well…

(Fortunately not in my immediate team at the moment)

What’s New in Python 2.7… Hurts My Brain.

PEP 3137: The memoryview Object

The memoryview object provides a view of another object’s memory content that matches the bytes type’s interface.

…snip example code…

The content of the view can be converted to a string of bytes or a list of integers:

…snip example code…

memoryview objects allow modifying the underlying object if it’s a mutable object.

See also

PEP 3137 - Immutable Bytes and Mutable Buffer
PEP written by Guido van Rossum. Implemented by Travis Oliphant, Antoine Pitrou and others. Backported to 2.7 by Antoine Pitrou; issue 2396.

This. This makes my brain hurt.

Public Sector Cuts

I'm not sure yet if I agree with the public sector cuts of the current government: after all, they haven't announced what they are yet.

But am I the only person who finds the current Union rhetoric insane?

There are already "Oppose the cuts!" posters up in my offices - do they really believe that no cuts at all are needed? That they should be opposed regardless of content? That the national deficit is some kind of made up problem that if it's ignored hard enough it will go away?

I love the idea of unions, but in practice I find them so amazingly short sighted as organizations that they just make me cringe.

Geek Tools in Use…

I'm getting a new desktop machine sometime today or tomorrow for work, and need to leave the old one in something close to "standard" condition. Given all of the work for the next couple of days is web based I've started the clear up now.

Mostly for my own records, stuff I consider worth reinstalling on the new machine (current job is doing Windows development):

* Firefox (standard image still carries IE 6 *shudder*)
* WinSplit Revolution
* Vim
* Powershell (needs to be installed *before* visual studio)
* Visual Studio 2010
* Executer (Nice little app launcher)
* "Command Here" XP Powertoy
* UK Dvorak keyboard layout
* Esc key registry hack (makes Caps Lock an extra Esc key, almost essential for Vim)

Python is still sitting on the USB stick as well, just in case.

A Test

A test

Testing pictures and posting from the mobile. Stack posts at lunch for
the win… Who knows, I might even start posting more often.