Samba and a Windows 2003 domain

If you were getting permission denied while mounting a w2k3 share onto a linux box then here is a suggestion to get around that

• On the Win2K3 server select Domain Controller Security Policy from the Administrative Tools menu
• Navigate to Local Policies|Security Options
• Disable “Microsoft network server: Digitally sign communications (always)”
• Since FC2 you will also need to disable “Microsoft network server: Digitally sign communications (if client agrees)”
• You can wait for the policy to propagate or run gpupdate from a command line

 

🙂

Fixed Subtext View Picture Size Problem

Right I have fixed the view picture size problem in subtext as it was really bugging me.  I have removed the width and height settings so that it either defaults to the size of the picture, or you can override the settings using css now.

The new binaries with the change in are located here 

 http://www.paulfarrow.com/download/dottextpicupdate.zip.

You will then need to override the css in your options css override as follows:

.imageFrame img { width: 505px; height: 480px }

It does make the picture look a bit squashed but its in the correct place, play around with the sizes until you have what you want…..

Let me know of any problems that I have overlooked.  Take a look at the viewer here http://www.paulfarrow.com/gallery/2.aspx

 

javascript error in postback on ASP.net 1.1

Normal story, deploy code and what you think is live isnt actually live.  In this case I am talking about the ASP.net 1.1 Service pack 1.

And low and behold get a lovely javascript error when you have added controls to pages etc etc.

So after much digging around I found a solution to the problem (that is rather than deploying the service pack due to restrictions on the live server), which works lovely.  The solution …

You can override the render method in your pages or base classes depending on what your doing, like so

// Override the render method for all those machines
// without ASP.net 1.1 service pack 1

protected override voidRender(HtmlTextWriter writer)
{
StringBuilder stringBuilder = new StringBuilder();
StringWriter stringWriter = new
StringWriter(stringBuilder);
HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
base.Render(htmlWriter);
string html = stringBuilder.ToString();
int start = html.IndexOf(”

int end = html.IndexOf(“\””, start);
string formID = html.Substring(start, end – start);
string replace = formID.Replace(“:”, “_”);
html = html.Replace(“document.” + formID, “document.” + replace);
writer.Write(html);
}  

This will only work if you have a form tag in your page, I guess we could adapt it so if the page doesnt have a form then dont do the replace, ie no postback needed.

Printing on Glossy Paper using a HP Deskjet 5850

Any tips guys for printing on glossy brochure paper using the HP Deskjet 5850???

I have been tasked by the wife to print a message on the back of a glossy brochure and wasnt having a lot of luck.

Basically the best quality was to set to print on brochure matt finish (although it was gloss) and to use maximum dpi (so the printing was fairly slow allowing the ink to dry) and to put the ink volume on its lowest, this then gave its best results.

Any other settings just smudged all the time.  Any one else have any tips for this printer.  Photos, and all other types of printing seemed to have been fine, perhaps its the dodgy brochure paper.  Its a rather good network (wired and wireless) printer would recommend it all be it for this little mishap.

 

Up2Date – changing it so that it picks up from a local mirror site

Lots of people ask me how do I change the Up2date program on either redhat or Fedora?

So basically you edit the file called sources which is in /etc/sysconfig/rhn

There is a list of local sites for the UK which carry mirrors but the one I use is zeniiia

Just add the entries in the file above like so….

yum fedora-core-2

 http://zeniiia.linux.org.uk/pub/distributions/fedora/linux/core/2/i386/os/

 http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/

 http://mirrors.kernel.org/fedora/core/2/i386/os/

 

yum updates-released-fc2

 

 http://zeniiia.linux.org.uk/pub/distributions/fedora

/linux/core/updates/2/i386

 http://download.fedora.redhat.com/pub/fedora

/linux/core/updates/2/i386/

 http://mirrors.kernel.org/fedora/core/updates/2/i386

this will then look at the site in the uk first rather than trying to go to the main redhat site.

Hope that helps you out.

NB: without the line breaks, had to do that to fit the urls on the blog page.