Fallout 4 Laggy Mouse

December 24th, 2015 No comments

Bought Fallout 4 and so far have lost hours on it.
There’s a number of peopel complaining that the PC version has serious mouse-lag issues -which I agree with.

It turns out I just had an old rubbish low resolution mouse -and stupidly I didn’t think hardware would make any difference. Big thanks to a friend for setting me straight on that.

If you’re having slow mouse issues in any modern game, then try spending £20 on a cheap high-resolution gaming mouse before suffering or complaining any longer. The TeckNet M008 is cheap and seems reasonable (if a little large)

Categories: Gaming, HardWare Tags:

raspberry pi gcc 4.6 bug

December 7th, 2015 No comments

spent a few hours compiling freeswitch on a raspberry pi, couldn’t get any calls to work -everything died with


The call would ring at both ends and die when answered.

turns out there’s a bug in gcc 4.6 which is the default on raspbian.

here’s instructions for installing newer gcc

# uname -a
Linux SkyPi 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l GNU/Linux
2015-12-07 22:43:57.513845 [INFO] switch_ivr_originate.c:1216 Sending early media
2015-12-07 22:43:57.513845 [ERR] mod_sofia.c:2309 CODEC NEGOTIATION ERROR. SDP:
o=sip:[email protected] 1 34 IN IP4
s=sip:[email protected]
c=IN IP4
t=0 0
m=audio 5004 RTP/AVP 0 8 18 110 120
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:110 G726-32/8000/1
a=rtpmap:120 telephone-event/8000/1

2015-12-07 22:43:57.513845 [NOTICE] switch_channel.c:3501 Hangup [email protected] [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2015-12-07 22:43:57.513845 [NOTICE] switch_ivr_originate.c:3841 Hangup [email protected]:5060 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2015-12-07 22:43:57.513845 [NOTICE] switch_ivr_originate.c:2763 Cannot create outgoing channel of type [user] cause: [ORIGINATOR_CANCEL]
2015-12-07 22:43:57.513845 [INFO] mod_dptools.c:3379 Originate Failed. Cause: ORIGINATOR_CANCEL

Categories: Uncategorized Tags:

CentOS 6 libevent multilib issues

June 24th, 2015 No comments

Trying to run a `yum update` on a CentOS 6.4 box was giving multilib errors and failing horribly (this is after sorting out the epel repo ssl problem). After much faffing I finally resolved it.

First, the error:

[[email protected]~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 21 kB 00:00
* epel: anorien.csc.warwick.ac.uk
* remi: remi.check-update.co.uk
* rpmforge: ftp.nluug.nl
epel | 4.4 kB 00:00
epel/primary_db | 6.6 MB 00:04
Setting up Update Process
Resolving Dependencies
–> Running transaction check

< -- Packages snipped for berevity, full output is at the bottom of the post -->

–> Finished Dependency Resolution
–> Running transaction check
—> Package kernel.x86_64 0:2.6.32-279.14.1.el6 will be erased
–> Finished Dependency Resolution
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

1. You have an upgrade for libevent-devel which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libevent-devel of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
–exclude libevent-devel.otherarch … this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of libevent-devel installed, but
yum can only see an upgrade for one of those arcitectures.
If you don’t want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.

3. You have duplicate versions of libevent-devel installed already.
You can use “yum check” to get yum show these errors.

…you can also use –setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).

Protected multilib versions: libevent-devel-2.0.19-1.rhel6.x86_64 != libevent-devel-1.4.13-4.el6.i686
Error: Protected multilib versions: libevent-1.4.13-4.el6.i686 != libevent-2.0.19-1.rhel6.x86_64
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
[[email protected]~]#

damn that libevent. This probably isn’t helped by the fact we’ve got a handful of 3rd party repos in use.
The PostgreSQL repo actually includes compat-libevent14 which seems to fulfil our needs, so here are the steps to sort everything out:

Read more…

Categories: CentOS & RHEL 6 Tags:

CentOS 6 EPEL & YUM issues

June 24th, 2015 No comments

when trying to update an older CentOS 6.4 box, I was getting hte following errors:

[[email protected]~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection
* epel: mirror.bytemark.co.uk
* remi: remi.check-update.co.uk
* rpmforge: ftp.nluug.nl

Other places in the internet have suggested editing /etc/yum.repos.d/epel.repo and changing the URL from https://…. to http:// (removing the SSL). This does actually work, but it doesn’t seem very clever.

After lots of going round in circles and then some more clever diffing (`curl -v` is your friend) I realised that the SSL CAs on the box were out of date so it fails to validate the mirror list. And there’s a very easy and correct fix:

yum update ca-certificates

After doing the above epel and everything else is much happier.

Note, on my box, the following deps are also updated:

 Package                            Arch                   Version                                 Repository               Size
 ca-certificates                    noarch                 2015.2.4-65.0.1.el6_6                   updates                 1.3 M
 nss                                x86_64                 3.18.0-5.3.el6_6                        updates                 856 k
Installing for dependencies:
 p11-kit                            x86_64                 0.18.5-2.el6_5.2                        base                     94 k
 p11-kit-trust                      x86_64                 0.18.5-2.el6_5.2                        base                     71 k
Updating for dependencies:
 nspr                               x86_64                 4.10.8-1.el6_6                          updates                 113 k
 nss-softokn                        x86_64                 3.14.3-22.el6_6                         updates                 262 k
 nss-softokn-freebl                 x86_64                 3.14.3-22.el6_6                         updates                 167 k
 nss-sysinit                        x86_64                 3.18.0-5.3.el6_6                        updates                  45 k
 nss-tools                          x86_64                 3.18.0-5.3.el6_6                        updates                 433 k
 nss-util                           x86_64                 3.18.0-1.el6_6                          updates                  66 k

Transaction Summary
Install       2 Package(s)
Upgrade       8 Package(s)

Total download size: 3.3 M
Is this ok [y/N]:

To finish off I then run

yum clean all
yum makecache
Categories: CentOS & RHEL 6 Tags: ,

How To Belay

June 5th, 2015 No comments

I’ve been climbing for a while now, but it wasn’t until I read this that I realised how badly I’ve been belaying.

In fact it’s such a useful piece (and I always loose bookmarks) that I felt the need to link to it here:


and some knots I should know

Categories: Belay, Climbing Tags:

Cisco PacketTracer install Linux

January 22nd, 2015 3 comments

Installing 32bit Cisco Packet Tracer 6 on 64bit ubuntu 14 causes headaches.
Here’s how to get it running -read more for the steps I went through to work this out and don’t just run commands blindly without understanding them.

# possibly magic quickfix

dpkg --add-architecture i386

apt-get update
apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libssl1.0.0:i386 libssl-dev:i386 libssl1.0.0 libssl-dev libx11-dev:i386 libxrender-dev:i386 libfreetype6-dev:i386 libfontconfig1-dev:i386 libglib2.0-dev:i386 libqtwebkit4:i386

At this point, if you try and launch /opt/pt/bin/PacketTracer6 directly you end up with missing ‘libQtWebKit.so.4’ errors. Launch `/usr/local/bin/packettracer` and it works (as the script sources the libraries it ships with).

On the flipside, linux mint (matte) runs it first time with no faffing about :)

Continue reading for why and how we got to this point.

Read more…

Regex golf with calibre

December 20th, 2014 No comments

I noticed one of my ebooks is a bit odd. It’s potentially a DRM issue as I’m converting it through formats to read on an old (and so far moderately indestructible) nook. Seems that speech marks and apostrophes have been converted to question marks, so you end up with:

?Have you seen the screwdriver?? ?Didn?t I already give you it? Sure it?s not with you?? ?It?s all right, I?m an idiot, it?s right here!?

Gets annoying pretty quickly, even with better dialogue, so regex to the rescue.

First the apostrophes. Now we need to just match question marks in the _middle_ of words, not at the end, so that’s nice and easy;

# Search:
# Replace:

So, \w we find a letter (or number, or hyphen, but not a space) followed by a question mark (escaped with the backslash because it has special meaning in regex world), followed by another letter (number…. not a space). We remember the letters in two separate match groups by sticking them in brackets.
We then replace the three characters with the original first letter we found (\1), overwrite the question mark with an apostrophe and then put the second letter back (\2). Boom -straight away I?s, I?m and what?s go back to being readable.

The next bit is more complicated, but thanks to me using calibre to convert it in the first place, it’s littered with calibre’s mad class formatting separating every paragraph or newline. It’s also badly documented as it’s 4am and I really should have gone to bed. Also, I realise this fails in a lot of cases, so part 2 to follow.

<span class="calibre6">?How long is it??</span>
Find: ()\?(.+?)\?() Replace:
Categories: Howto Tags: ,

12 Days of GSM Christmas

December 16th, 2014 No comments

On the first day of Christmas,
I cloned OpenBSC
Need an MNC and MCC.

On the second day of Christmas,
compiling Osmocom-BB
Need legit spectrum usage,
And an MNC, MCC.

On the third day of Christmas,
can’t start OpenBSC
Reading 3GPP standards,
Still need some spectrum,
And an MNC, MCC.

On the fourth day of Christmas,
recursive dependencies
BSC controlling,
3GPP hurting,
Haven’t got a license,
Still need an MNC, MCC.

On the fifth day of Christmas,
A radio just for me
BTS Transmitting,
BSC Controlling,
3GPP Headaches,
Dialledback the power,
And an MNC, MCC.

On the sixth day of Christmas,
Runs almost stably
An MSC switched for me!
BTS transmitting,
BSC controlling,
3GPP madness,
Hidden in a cupboard,
And an MNC, MCC.

On the seventh day of Christmas,
Sectets broken me
Seven bit encoding.
MSC for switching,
BTS Transmitting,
BSC Controlling,
Real attenuation,
And an MNC, MCC.

On the eighth day of Christmas,
battling radio frequencies
Eight are the timeslots,
Seven bit encoding,
MSC’s a-switching,
BTS transmitting,
BSC Controlling,
Two AR-FCNs,
And an MNC and MCC.

On the ninth day of Christmas,
No more ISDN for me;
A-BIS over IP,
Eight are the timeslots,
Seven bit encoding,
MSC’s a-switching,
BTS transmitting,
BSC controlling,
Two cells a-serving,
And an MNC & MCC.

On the tenth day of Christmas,
I need some sanity
Logging T-IMSI not the imsi IMSI
Um needs it’s A-BIS,
14 half-rate timeslots,
Seven bit encoding,
MSCs a-switching,
BTS unlocked!
BSC controls,
Handover fails,
And need an MNC & MCC.

On the eleventh day of Christmas,
Time for secur-ity
A5/1 encryption is key.
TIMSI not an IMSI,
ABIS over IP,
AMR just fails,
Seven bits for texting,
MSC is switching,
BTS transmitting,
BSC controlling,
30-gig of specs,
PCS is 1900,
And an MNC & MCC.

On the twelfth day of Christmas,
Need interoperability
SS7 MAP for me,
A5/3 encryption,
TIMSI not an IMSI,
ABIS over IP,
7 timeslots free,
PDUs encoded,
MSC’s a-switching,
MS won’t you answer?
BSC online,
3GPP – explains it to me,
Two serving cells,
And an MNC & MCC!


I suppose I’m left trying to implement data for lent.

Windows system repair files

November 29th, 2014 No comments
sfc /scannow There is a system repair pending which requires reboot to complete. Restart windows and run sfc again.
try (but fails)
dism.exe /image:C:\ /cleanup-image /revertpendingactions
del D:\Windows\winsxs\pending.xml del D:\Windows\winsxs\reboot.xml sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=d:\Windows
Categories: Microsoft, Windows Tags:


October 22nd, 2014 No comments

to Migrade:

Update the software and Migrate the hosting in one step.

Categories: Technology Tags: