At work today I had to disable replication to one of our 3 DCs. Unfortunately the internet wasn’t very forthcoming with such information, so after much scrabbling around and some google-fu I arrived at the following.
This guide continues on from my previous guide on installing CentOS 5.5 on Hyper-V. Despite being based on CentOS, it should work on Red Hat Enterprise Linux, and principles will apply to many other Linux distributions as well.
Most of this is taken from the official OSQA documentation and modified slightly to fix a few problems I encountered along the way.
This guide will take you through the process of creating a Linux virtual machine on a Hyper-V host. It is assumed that you have Hyper-V setup already, and you know how to create VMs.
This guide will use a CentOS 5.5 netinstall, however the principle is the same for Red Hat Enterprise Linux 5.5, and any other form of install.
This is a problem I ran into at YSTV recently. We run a Samba 3 domain and have recently upgraded our Edit PCs to use Windows 7. Unfortunately Windows 7 out of the box will not join a Samba domain, saying that the “Domain does not exist or could not be contacted” after asking you for login credentials (so it must have contacted the domain controller already, right?!).
Fortunately though, the fix is quite simple. There are two things you need to do:
Install at least samba 3.2.14. This was the oldest version I got to work under Gentoo, but at the time of writing it’s still masked in portage.
Modify a few registry keys on your Windows 7 machines:
HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD DomainCompatibilityMode = 1
DWORD DNSNameResolutionRequired = 0
Some places will tell you to set the second two values to 0, however I’ve found this not to be necessary – you can just leave them to their defaults of ‘1’. If you run into problems, you can try switching to 0. Otherwise, it might be time to check server logs and make sure that NetBios is working correctly to resolve the Domain name to a Domain Controller.
It’s also worth pointing out, that after the “Welcome to the DOMAIN domain” message, you may get a DNS error popup. You can safely ignore this, and all seems to work fine (and it doesn’t bother you again).
It has been an interesting year, and those of you who know me should certainly agree. This last year has been my Industrial placement year as part of my Degree – All fun and games you might think. Mostly, you’d be right – aside from the daily struggle of commuting to Leeds every day.
It’s been a busy year in YSTV too. This time a year ago I had just rolled out a bunch of new servers, setup a new flash streaming solution and generally made life more difficult for myself (but better for everyone else, i hope!). A year later, and I’m at it again. This time I’ve rolled out some new high spec Edit PCs, complete with Windows 7. On top of that, myself and several others completely rewired and re-organised the Control Room.
However, what this post is all about is how my outlook on a certain few big corporations has changed – Microsoft and Apple.
This weekend saw a sudden surge of spam comments coming my way. Strangely though, the comments seem legit. No links to various websites, not random text – nothing. Just a few sentances that are so generic they seem relevant.
I let the first couple through – It wasn’t until I noticed i had comments from several different ‘people’ all from the same IP that I started to question it. Further investigation reveals a peculiar email address and that every ‘person’ has google as their website address.
I recently had a need to display the current svn revision of a php based website on the home page. This is particularly useful when working on a website as part of group and you have a central dev server than runs a copy of the latest code. It allows you to quickly and easily see which revision is being run on that server.
Anyway, on to the doing part.
There are a number of different ways to achieve this, some more complicated and tedious then others.
The simplest method I found was to parse the .svn/entries file. This, of course, relies on the fact that the code you run is based on a checkout of the repo, rather than an export. This probably isn’t a good idea in a production environment, unless you setup your sever to prevent access to the .svn folder.
The code looks like this:
$svn=File('.svn/entries');$svnrev=$svn[3];
You can now print the contents of $svnrev wherever you want and you should get the revision number dispalyed.
Note that the 3 indicates the 4th line in the file. If you get unexpected results, check the .svn/entries file and adjust the index on $svn[] as required.
The other methods of doing this are discussed here
I’ve recently been doing some research in the area of producing High Quality MP4 files with the h264 codec. Of course, my program of choice for encoding to this format was ffmpeg with the libx264 codec. I just wanted to share some of my findings, in particular a few example commands for creating these videos.
If like me you learnt SQL using MySQL, and then gone into a job and found yourself using Microsoft’s SQL Server, you’ll probably be as irritated as me to find that Transact-SQL does not feature the ‘AUTO INCREMENT’ keyword that MySQL provides. Fortunately, the solution is far easier here than it is in PostgreSQL.
All you need is to add IDENTITY(1,1) in your column definition. I’m not going to pretend to understand exactly what this does, only that it will Automatically increment and ID field for you. If anyone wants to enlighten me on exactly what it does, then feel free :)