Moved to WordPress

I moved my blog from BlogFile to WordPress.  I couldn’t do everything I wanted in BlogFile, neat as it is.  So WordPress it is…  Drupal would have been overkill.  Wordpress probably is.

If you got here from a “blog.php” link well, all the old content is here, but you might have to search for it sorry!

All the content is crap anyway…

grsecurity RBAC system

A few notes I wrote down about enabling the (very intense) grsecuriy RBAC system on micro.

  1. If you have role_allow_ip defined and you try and “do something” from an IP not in that allowed list – you’ll end up in the default role.  That can be hard to figure out at first, you know you have a role setup for the user, but you’re not ending up in it.  That’s why.
  2. A subject in a less specific policy with an “i” will override a more specific subject.i.e.This “/” subject:subject / o {    /bin        rxi}will win over this:subject /bin/bash o {}/bin/bash will use the polices from the first subject, not the second.
  3. To be able to unlink (delete!) a file, you need both d and the w subject flags.  d alone isn’t enough.
  4. Be VERY careful with the C subject flag.  It will kill everything with the same IP address, silently.  Your MYSQL server might be dead and you won’t know it.
  5. Shared Libraries (.so) need the rx flag, x alone isn’t enough.
    subject /bin/bash {    

    /     
    /lib            rx
    }
  6. The -V flag to gradm -E will give some useful information!

Building MPD

micro:~/mpd-0.18.7> make distclean ; ./configure --disable-dependency-tracking --enable-libmpdclient --enable-alsa --enable-bzip2 --enable-curl --enable-ao --enable-ffmpeg --enable-flac --enable-httpd-output --enable-id3 --disable-ipv6 --enable-lame-encoder --enable-lsr --enable-mad --enable-mikmod --enable-mms --enable-modplug --enable-mpg123 --enable-pipe-output --enable-recorder-output --enable-shout --enable-vorbis --enable-vorbis-encoder --enable-zzip --prefix=/usr/local/mpd ; make

Viber = Android Battery Issue

I figured out what was totally fscked my phone. Making contacts unusable, the CPU was ticking over all the time stealing battery.

FUCKING VIBER.

I’d ticked “Sync Viber with Contacts” or some bullshit. Unticked that, lo and behold, battery life is awesome. I can get up at 6am and go to bed at 9pm with still 30%.

It used to die around 6pm before, flat. Now it still has 40%

Fuck you, Viber!

Chicken Costumes

From: Tim Harman [mailto:tim@muppetz.com]
Sent: Sunday, 10 August 2014 9:37 p.m.
To: Info
Subject: Winning Wheel Question

Hello There!

I have a question which I am hoping you can answer for me.

Tonight my wife and I were discussing what is/isn’t allowed when it comes to being
on the “Winning Wheel” segment. The conversation arose because I expressed my
desire to wear a large chicken costume and do nothing but cluck through the whole
segment, if we were so lucky as to win a spot on the segment.

My wife, being the smarter of the two of us, said that there’s no way she’d let me
wear a chicken costume and/or cluck, and that NZ Lotto almost certainly wouldn’t
allow someone to dress up as a chicken anyway.

So my question is: What are “the rules” around the Winning Wheel segment?
Can a contestant wear a large chicken suit if they so desire?

Many Thanks,

Tim Harman
———————————————————————————–
Hi Tim,

Thank you for your enquiry.

While we have guidelines we follow during filming to ensure the integrity of our
products, we remain flexible as each winner’s story is very different.

There is no current ruling on wearing chicken suits.

Thanks for taking the time to write to us and good luck with your tickets.

Best regards,
<name removed>
Corporate Communications Advisor

PO Box 8929, Symonds Street, Auckland 1150
73 Remuera Road, Remuera, Auckland 1050, New Zealand

lottonz.co.nz

Dell XPS m1330 with Windows 8.1 – DPC Latency Issues

Finally upgraded my ageing XPS m1330 from Windows XP (32 Bit), which of course worked perfectly, to Windows 8.1 (64 Bit), which of course initially didn’t.

The major problem that I encountered was major latency when playing audio. The DPC latency would cause the music to stutter and jerk and basically be unlistenable. A major pain in the arse for someone who likes to listen to streaming audio while they work.

After doing a bit of reading and research, I thought it was the NVIDIA driver that was causing the problem, PowerMizer was flagged as being the culprit. But adding the “correct” flags to the registry didn’t fix the problem, music was still impossible to listen to and the DPC Latency tool showed me major spikes.

Some more testing and research lead me to find the Intel Wifi card I have, a Intel PRO Wireless 3945ABG as the cause of the problems. The issue was there is no later driver for it, indeed Intel haven’t officially released any driver for it, but Windows 8.1 seems to have a driver built in.

The fix was to download the Windows Vista x64 driver from <a href=”http://ftp.dell.com/FOLDER95945M/2/Intel_multi-device_A06_R171132.exe”>here</a> and to force Windows 8.1 to install it as the driver. Which takes a few options because it’s an older version of the driver than the one Windows 8.1 comes with.

But once the “new” old driver was installed, all DPC latency issues dissappeared. Music can be listened to without stuttering and jerking.

I’ve still got three items in Device Manger under “Other devices” all called “Data Interface” that don’t have a driver, but I expect that’s something to do with the 3G Modem this laptop has installed (the official Dell one)

Tim