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
HKLM\System\CCS\Services\Netlogon\Parameters
DWORD RequireSignOnSeal = 1
DWORD RequireStrongKey = 1
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).
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.
Continue reading 'High Quality h264 MP4 Videos with ffmpeg'»
Woodstock’s over :( It’s always the way with things like that – i spend ages looking forward to them, and then they come and go far too quickly for my liking. On the upside, it was very very fun. I’m pretty sure Woodstock was the most enjoyable OB i’ve done wit YSTV yet. It does require a lot of time and effort, but it really is worth it. I put in just over 31 hours over two days, and was ready to collapse by the time i got home, but it really was worth it.
I don’t think there’s anything more rewarding than working on an event like that and seeing it through form start to finish. Watching everyone arrive and slowly fill up the place and then seeing them leave when it’s all over – It’s something i think everyone should witness at least once.
Anyways, it was great fun – lots of pictures in the Gallery under the YSTV section. Go have a look >>
On a slightly less fun note, I’m supposed to be at home at the moment. However, because of all the rain we had on Monday the track between York and Doncaster (amongst other places) is completely flooded so i can’t get home :( A bit of a pain, but it does mean i save on a train fare. Meh.
BUT! on a more fun note, i move into my house for next year on Saturday :D Huzzah.
Ugh, just got in from Woodstock here on campus at 2am. An hour ahead of what I expected, but I’m still half dead…I really should go to bed instead of doing this….so that’s what I’m going to do….maybe a more meaningful update tomorrow or something….if I can be bothered.
Wooo! Looking forward to this. It’s happening on Vanbrugh Paradise and looks like it’ll be good fun. 12 Hours of Music all in aid of Charity :)
YSTV Will be covering the event so i’m going to be exceptionally busy from the beginning of week 9, but it’ll be great :D