POP3: unable to scan $HOME/Maildir?

Ok I run qmail here and funny thing was outlook wasnt logging into it. Thought I had been hacked or something. To see what the problem was I telnetted into my qmail box using

telnet mail.farrowcomputing.com 110

port 110 is the port designated to pop3, then put in your username

user  “username”

then password

pass “password”

and on my system was then seeing “Unable to scan $HOME/Maildir” looked into it and had 6000 spam messages, now the limit I have for mails is quite low so you either need to up it or delete some of the messages from the linux box running qmail or you will need to put the softlimit up, ie.

Try to increase the softlimit for pop3d which is found in your pop3d run script such as /var/qmail/service/pop3d/run (for e.g.): 

blah blah… softlimit -m 2000000 to higher value.

 

Using WinCVS and Integrating Visual Studio .NET with CVS over SSH

Recently I have had to use CVS rather than source safe as the repository for my latest project.  I have used CVS with visual studio 6 using the  igloo toolset, now I cant remember if that was over SSH but it did work very well and CVS is far superior than source safe.

The project that I am now on is a visual studio .net one with the cvs repository having access over ssh.  Firstly I wanted to set up wincvs as this tool is rather good, now to use ssh on windows you either go down the putty route or the cgywin route.  I personally quite like putty and that is what I did.  I used the latest beta version of wincvs 1.3.17.2.  I then followed this doc to get the basics going. 

Things I fell fowl of :

  • Wincvs always gave “Putty Internal Error” – “invalid port number” error when trying to connect.  I had the ssh client in preferences, ssh as putty.exe rather than plink.exe once changed, no more errors.
  • I couldnt get wincvs to prompt for a password and then it always gave a password error as it was prefilling it with empty string.  I then moved to set up a private public key so I didnt have to put in the password.
  • Couldnt recognise the public key, I wasnt sure if I had to have a file called authorization_keys2 or not with ssh2, or whether I had to have a .ssh2 directory.  On the clients box in the end I just saved the public key in the file authorization_keys in .ssh under the home directory of the account I was trying to login as and resolved the keys no problem.
  • Under the options controlling ssh authentication I had to uncheck attempt keyboard-interactive auth (SSH2) for it all to work as it would always fail to authenticate if this was checked.
  • Plus when I copied and pasted the public key from putty’s key gen I noticed in vi it didnt always paste the full key, just check that you have the full key when pasting it into your authorization_keys file. 
  • The key in authorization_keys must NOT have returns / line breaks in it, some editors may attempt to put line breaks in it.

One other thing when setting up your putty preferences in wincvs make sure you reference the saved session rather than the actual box / ip address your going to, the preferences do ask for this but you should use a saved session ie: paulfarrow@cvssavedsession:/home/cvs

Also you should run pageant.exe in the putty suite of programs, this will save you typing in the private key phrase each time you login.

Once all these things are in place, wincvs worked a treat for me and its a great program.

Secondly integration with Visual Studio .Net and CVS, well as I said before I used to use the igloo program but in this instance couldnt get ssh or ext protocol working with it, reading along the lines I dont think it can.  I then stumbled over this program which I have been using under evaluation.  It is created by pushok and seems to work no problem with ssh or ext.  It took me a little time to get it working, infact I went away from it but then I stumbled on what I have to do to get it going which wasnt that clear.

For ssh/ext protocol you must add the following environment variable CVS_RSH=plink.exe, once I had done this it worked fine.

The full faq about how to do that for proxyok can be read here.   The product appears to integrate with visual studio no problem, the only thing you must do is get into the right mind set to use CVS (as you probably are aware), as with CVS you take a snapshot of the whole module rather than just checkout what you want to work on.

 

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.

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.

Added About Me Static Page to the blog

Right have now added a static page called About Me on the site.

It was quite easy to do and just followed the instructions from the additional controls by Bill Nalen.

I will go through the steps below …. 

As Bill says there are three changes that need to be made.

  1. Create a new control, I called mine AboutMe.ascx.  This file goes in your skin controls directory.  The contents of the file should look like this (without the spaces in the tags):   < % @ Control Language="c#" AutoEventWireup="false" Inherits="Dottext.Web.UI.Controls.BaseControl" % > < P >All about me.< / P >
  2. Register your page name in the http handlers in the Web.Config file. This entry will look different depending on which defaul configuration you started with. The easiest way to make this change is to look for the Contact.aspx entry and copy it. Replace Contact.aspx with About.aspx and Contact.ascx with About.ascx. .Text will now know to put your about.ascx content into the main content section of the page.
  3. Add a link to your new page. This would usually be in the MyLink.ascx file in the skin controls directory. Again, just copy the entry for Contact and replace the contact info with the appropriate About entries.

Samba 3.0.6

Ran the up2date on one of my Fedora 2 hosting machines and saw that samba has a new release 3.0.6.

Upgraded without any problem and also the throughput from the windows machines to this little box seemed to be faster or it could just be me imagining it.

I did have an odd problem where from time to time the windows drives mounted on the linux boxes seemed to hang.  This appears at first look to have now gone away.  Also the memory seemed to clock up really fast on the older version of Samba 3.0.5 and this doesnt seem to be happening, the memory is going up like there is a leak but much slower.

My linux machine is a mini-itx v800.

 

background on Feedback and contact us

Right changed the background color on the contact and feedback boxes.

Light grey now, what do people think??  Better than the white.

Becoming quite a css wizz… 

One thing I would like is to limit the pictures in the post and gallerys to a width of 450 but if I set this via css all the images will be 450 and if they are smaller than that then they will be stretched.  Is there a trick out there to set the width if its above a certain size??

Any help is appreciated !!

My Wiki and Subtext

After much playing around I decided not use the Wiki at this point.  Its very good and I could see a use for it, if and when I start a new project it would be like a living notepad.

My initial thoughts were to have the Wiki as the main home page and the blog off of that but what I hadnt figured is the security point of view.  I noticed that Scott Water has a login page to change the stuff which doesnt seem to be there as standard in the flexwiki package, I guess once I have more time (which is never) I will investigate to see what I can do.

I also put this LuxInteriorDark skin on the site.  Looks quite nice, the links for the rss feeds werent quite right so had to sought that out, not sure if the author realises that problem or not.  That was the little xml images had the wrong links out of the install zip.

Would be interested to know what people think, perhaps some feedback on this please.

One thing I dont like is the white background’s in the contact/feedback control so will be addressing that shortly.