<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Old on Tony Andrew Meyer</title><link>https://tonyandrewmeyer.com/categories/old/</link><description>Recent content in Old on Tony Andrew Meyer</description><generator>Hugo</generator><language>en-nz</language><lastBuildDate>Tue, 03 Jan 2006 11:28:57 +1200</lastBuildDate><atom:link href="https://tonyandrewmeyer.com/categories/old/index.xml" rel="self" type="application/rss+xml"/><item><title>Tools</title><link>https://tonyandrewmeyer.com/2006/01/03/tools/</link><pubDate>Tue, 03 Jan 2006 11:28:57 +1200</pubDate><guid>https://tonyandrewmeyer.com/2006/01/03/tools/</guid><description>&lt;p>(Moved over from &lt;a href="http://www.massey.ac.nz/~tameyer">my Massey site&lt;/a>.
Future entries will be separate, but in the &lt;a href="http://tonyandrewmeyer.wordpress.com/tag/tools/">Tools&lt;/a> category).
These are the tools that I regularly use, and which I would obviously recommend:
&lt;strong>Coding&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;a href="http://python.org/">Python&lt;/a> is my preferred programming language.&lt;/li>
&lt;li>&lt;a href="http://starship.python.net/crew/mhammond/">Mark Hammond&amp;rsquo;s pywin32 extensions for Python&lt;/a> are invaluable, especially the PythonWin IDE.&lt;/li>
&lt;li>&lt;a href="http://py2exe.sf.net/">py2exe&lt;/a> is perfect for creating Python executables.&lt;/li>
&lt;li>&lt;a href="http://www.jrsoftware.org/">Inno Setup&lt;/a> is a great, free, installer builder for Windows.&lt;/li>
&lt;li>&lt;a href="http://spambayes.org/">SpamBayes&lt;/a> is the best spam filter there is .&lt;/li>
&lt;li>&lt;a href="http://kodos.sourceforge.net/">Kodos&lt;/a> is fantastic for testing/creating regular expressions (particularly ones to be used in Python). &lt;a href="http://www.massey.ac.nz/%7Etameyer/writing/tools.html#kodos">[more]&lt;/a>&lt;/li>
&lt;li>&lt;a href="http://www.wxpython.org/">wxPython&lt;/a> is my preferred Python GUI development library.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Editors&lt;/strong>
I&amp;rsquo;ve given up on the editors I was using, and for the moment, I&amp;rsquo;m just using &lt;a href="http://starship.python.net/crew/mhammond/">PythonWin&lt;/a> for everything. The search may resume&amp;hellip;
&lt;strong>PhD Research&lt;/strong>&lt;/p></description></item><item><title>Universal Student Allowances: A Better Solution</title><link>https://tonyandrewmeyer.com/2005/12/13/universal-student-allowances-a-better-solution/</link><pubDate>Tue, 13 Dec 2005 12:09:57 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/universal-student-allowances-a-better-solution/</guid><description>&lt;p>Students&amp;rsquo; Associations, like my own &lt;a href="http://www.asa.ac.nz">ASA&lt;/a> and the &lt;a href="http://www.students.org.nz/">NZUSA&lt;/a>, are continually pushing for a &amp;ldquo;universal student allowance&amp;rdquo;. This is quite clearly an unworkable solution - not even the &lt;a href="http://www.labour.org.nz">Labour Party&lt;/a> is in favour of it - and nor is it a desirable one.
[Note that throughout this document, student refers to tertiary students. Secondary, primary, and pre-primary students have other support mechanisms.]
Problems with a universal student allowance
The main problem is that it blindly encourages anyone to become a tertiary student, without any consideration of whether they should be, and whether they need help. It doesn&amp;rsquo;t even penalise for poor performance (unless you fail half your papers, you still get the allowance in the following year).&lt;/p></description></item><item><title>After Hours Sign-in Books</title><link>https://tonyandrewmeyer.com/2005/12/13/after-hours-sign-in-books/</link><pubDate>Tue, 13 Dec 2005 11:52:35 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/after-hours-sign-in-books/</guid><description>&lt;p>A recent &lt;a href="http://www.massey.ac.nz">Massey&lt;/a> &lt;a href="http://auckland.massey.ac.nz">Albany&lt;/a> announcement:&lt;/p>
&lt;p>As part of our Health &amp;amp; Safety requirement it has been necessary to provide after hour sign in books in all multi-storey buildings on campus.These have now been put in place and can be found either by the after hour entry doors or in the case of the Quad A and Atrium buildings close to the lift. Please make yourself familiar with the location of the books and ensure that all staff and visitors entering and leaving the building after hours sign the book.
Remember they are in place for your safety and in the unlikely event of an emergency they will assist security or emergency services in determining who is in the building.&lt;/p></description></item><item><title>Visiting Australia (Passport Requirements)</title><link>https://tonyandrewmeyer.com/2005/12/13/visiting-australia-passport-requirements/</link><pubDate>Tue, 13 Dec 2005 11:43:48 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/visiting-australia-passport-requirements/</guid><description>&lt;p>I&amp;rsquo;m visiting Australia (just for the day) next week, and realised last night that I foolishly have let my passport reach the stage where it expires in just over two months.  I know that many countries require the expiry to be a certain amount of time after arriving (e.g. six months) and wondered if I would have to speedily renew my passport (an extra $75 for the speed, and taking three days plus travel to and from the passports office, which would cut it close).&lt;/p></description></item><item><title>Stability of email addresses</title><link>https://tonyandrewmeyer.com/2005/12/13/stability-of-email-addresses/</link><pubDate>Tue, 13 Dec 2005 11:32:17 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/stability-of-email-addresses/</guid><description>&lt;p>&lt;a href="http://www.massey.ac.nz">Massey&lt;/a>&amp;rsquo;s &lt;a href="http://its.massey.ac.nz">ITS&lt;/a> department have been at it again (see also the &lt;a href="http://www.massey.ac.nz/%7Etameyer/writing/insecure.html">comments about their security blunder&lt;/a> earlier this year - somewhat patched up now).
Ever since &lt;a href="http://livinginternet.com/e/ei.htm">email began&lt;/a>, it has been customary for an email address to take the form username@domain - for example, I have a username &amp;ldquo;ta-meyer&amp;rdquo; with which I log into &lt;a href="http://www.ihug.co.nz">Ihug&lt;/a>, and so I have an email address &lt;a href="mailto:ta-meyer@ihug.co.nz">ta-meyer@ihug.co.nz&lt;/a>. Massey (staff) usernames typically come in the form initial(s)surname (e.g. my name is Tony Andrew Meyer, so my username is &amp;ldquo;tameyer&amp;rdquo;). As such, you would expect my Massey email address to be &lt;a href="mailto:tameyer@massey.ac.nz">tameyer@massey.ac.nz&lt;/a> (just as you find my web page by putting Massey&amp;rsquo;s address, then a tilde (for &amp;lsquo;home&amp;rsquo;) then my username, to get &lt;a href="http://www.massey.ac.nz/%7Etameyer">http://www.massey.ac.nz/~tameyer&lt;/a>).
Until some time in the last week, you would have been right. You could also have used &lt;a href="mailto:t.a.meyer@massey.ac.nz">t.a.meyer@massey.ac.nz&lt;/a> (note the dots), but it didn&amp;rsquo;t really make as much sense (&amp;ldquo;t.a.meyer&amp;rdquo; is no good as a username, anywhere at Massey), and is more difficult for people to remember. Just recently, however, mail to &lt;a href="mailto:username@massey.ac.nz">username@massey.ac.nz&lt;/a> (e.g. &lt;a href="mailto:tameyer@massey.ac.nz">tameyer@massey.ac.nz&lt;/a>) has started to bounce with an &amp;ldquo;unknown user&amp;rdquo; error.
So what?
At first glance, this isn&amp;rsquo;t too much of a problem. Some bureaucrat somewhere likes to have dots in their email (maybe their name is Sam Ted Upid or something &lt;wink>), and decides that it&amp;rsquo;s too confusing to have more than one valid way to do it (in some ways, a valid point). So we all start using dots more.
The problem is that this is not expected behaviour, and a change from what has worked in the past. As such, there are people who will be using the &lt;a href="mailto:username@massey.ac.nz">username@massey.ac.nz&lt;/a> form of address to contact people at Massey. All their mail will bounce.
And not just bounce. It will bounce with a &amp;ldquo;no such user&amp;rdquo; error, without any indication of why this might be. The thing about email addresses, at least today, is that they need to be stable. That&amp;rsquo;s why I&amp;rsquo;m still with &lt;a href="http://www.ihug.co.nz">Ihug&lt;/a> - because I can&amp;rsquo;t lose my &lt;a href="mailto:ta-meyer@ihug.co.nz">ta-meyer@ihug.co.nz&lt;/a> address. Clever people know that they could just do a search with (e.g.) &lt;a href="http://www.google.co.nz">Google&lt;/a> and find a valid address for me, but not all people are clever (and somewhat fewer than you might think in an university environment &amp;lt;0.5 wink&amp;gt;).
Worse is that to log in to the email (POP3) server, you need to use your username (i.e. no dots) - the dotted version does not work. This flies in the face of established practice. It&amp;rsquo;s not a problem for &lt;a href="http://www.microsoft.com/exchange">Exchange&lt;/a> users, because they authenticate in a whole different way, and that covers the majority of Massey staff, but it will be for others.
Worse, still, is that ITS&amp;rsquo;s own help pages give instructions for setting up your mail client (e.g. &lt;a href="http://eudora.com/">Eudora&lt;/a>) that are now just plain wrong! Since you have to log in with your username (no dots), you need to enter in a reply address (with dots) or your return address will just be (as you would expect) &lt;a href="mailto:username@massey.ac.nz">username@massey.ac.nz&lt;/a>.
The solution
The obvious solution is just to go back to how it was, when the system worked like to expected it to. However, if there&amp;rsquo;s too much red tape blocking the way (just like you would expect in an university environment), then there was a correct way to go about doing this:
Tell everyone that it&amp;rsquo;s going to happen, a long time (at least several months) in advance. Someone from the helpdesk told me that they thought that there was notification, and there&amp;rsquo;s a slim possibility that that&amp;rsquo;s true. However, I archive all my mail (for work with &lt;a href="http://spambayes.org">SpamBayes&lt;/a>), and there&amp;rsquo;s no sign of a message to massey-all or albany-all there. I read &lt;a href="http://masseynews.massey.ac.nz">Massey News&lt;/a>, too, and don&amp;rsquo;t recall seeing anything there. I even read the notices on the &lt;a href="http://staffroom.massey.ac.nz">staffroom&lt;/a> notice board, and saw nothing there either. Colleagues that I&amp;rsquo;ve mentioned it to aren&amp;rsquo;t aware of it either, so it&amp;rsquo;s not just me. If there was notificiation, it seems pretty likely that it was insufficient.
Enhance the bounce message. At the moment it looks the same as if you emailed &lt;a href="mailto:madeupaddress3467@massey.ac.nz">madeupaddress3467@massey.ac.nz&lt;/a>. The recipient has no idea that the reason their mail is no longer getting through is because of an internal change. All that is required is adding a little note to the bounce message (about 2 minutes work) that explains the situation, and suggests trying the address with dots added in the appropriate positions.
So what am I doing about it?
Well, the first thing that I&amp;rsquo;m doing is that I&amp;rsquo;m going to avoid using my Massey address wherever possible. Which means I trawl through all my web pages and change those, and so on. I&amp;rsquo;ll give out a good address (my gmail &lt;a href="mailto:tony.meyer@gmail.com">tony.meyer@gmail.com&lt;/a> address, I expect) to people at conferences, and so on. The Massey system has a not-particularly-good spam filter, so I get to be certain that I avoid that, and a doesn&amp;rsquo;t-actually-work message release system for blocked messages, and avoiding that will be nice, too. And when I leave Massey in a year and a half, as I almost certainly will, at least there isn&amp;rsquo;t much mail to follow me.
I contacted the helpdesk about this. I was told that all emails have to use the dotted version, and that someone would be in touch. There&amp;rsquo;s a slim chance that things might be resolved (as above). If not, then &lt;a href="http://www.massey.ac.nz/%7Etameyer/writing/insecure.html">last time&lt;/a> the director of ITS told me to take problems to the head of ITS at &lt;a href="http://auckland.massey.ac.nz">Albany&lt;/a>, so I&amp;rsquo;ll do that and see if it gets anywhere.
And I suppose I&amp;rsquo;ll just let those that I know know, so that they can also correct their email addresses, if possible.&lt;/p></description></item><item><title>Email Quoting</title><link>https://tonyandrewmeyer.com/2005/12/13/email-quoting/</link><pubDate>Tue, 13 Dec 2005 11:21:28 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/email-quoting/</guid><description>&lt;p>Like many people, I deal with a lot of email every day. Something that makes it much easier to deal with is when people quote properly. Here are some guidelines (originally prepared for 139.177 / 119.177) for effective email quoting.
Quoting works best if you work with plain text email and not HTML - many people prefer this, anyway, so it&amp;rsquo;s a good idea to stick with it unless you have a good reason not to. There are many varients of good quoting styles, only one of which is presented here. It doesn&amp;rsquo;t really matter which you use, as long as you use one.
Why you should quote properly
To put it most briefly, &lt;a href="http://www.faqs.org/rfcs/rfc1855.html">RFC1855 (Netiquette Guidelines)&lt;/a> states that:&lt;/p></description></item><item><title>Finding libstdc++.so.6</title><link>https://tonyandrewmeyer.com/2005/12/13/finding-libstdcso6/</link><pubDate>Tue, 13 Dec 2005 11:12:11 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/finding-libstdcso6/</guid><description>&lt;p>When I tried to build &lt;a href="http://python.org">Python&lt;/a> &lt;a href="http://python.org/2.4.1">2.4.1&lt;/a> on &lt;a href="http://doublehelix.massey.ac.nz">doublehelix&lt;/a> I ran into two problems:&lt;/p>
&lt;ul>
&lt;li>configure wouldn&amp;rsquo;t complete, saying that it couldn&amp;rsquo;t run compiled C programs.  I looked at the configure script and right before this it had something about not removing this section with autoconf 3.0:&lt;/li>
&lt;/ul>
&lt;h1 id="fixme-these-cross-compiler-hacks-should-be-removed-for-autoconf-30">FIXME: These cross compiler hacks should be removed for Autoconf 3.0&lt;/h1>
&lt;h1 id="if-not-cross-compiling-check-that-we-can-run-a-simple-program">If not cross compiling, check that we can run a simple program.&lt;/h1>
&lt;p>So I went ahead and commented out that section and it ran.  I suspect that this was actually caused by the second problem.&lt;/p></description></item><item><title>The importance of priority</title><link>https://tonyandrewmeyer.com/2005/12/13/untitled/</link><pubDate>Tue, 13 Dec 2005 11:01:46 +1200</pubDate><guid>https://tonyandrewmeyer.com/2005/12/13/untitled/</guid><description>&lt;p>As part of my &lt;a href="http://www.massey.ac.nz/%7Etameyer/research/computertheatre">PhD research&lt;/a>, I have to link together a lot of separate components, many of which are running on separate machines, as they&amp;rsquo;re too much for a single one. You&amp;rsquo;d think that this was relatively simple, given that a good non-blocking synchronous socket module is part of the standard &lt;a href="http://www.python.org">Python&lt;/a> library. Not so! Everything always runs too slowly, even when it&amp;rsquo;s the only thing running on the machine.
The first time I came across this problem, I was running the vision module and the speech module on the same machine, which communicated with the graphics module on a different one. The speech module just wouldn&amp;rsquo;t run nicely at all.
Sleep()ing
An obvious solution was to get the various processes to call time.sleep() every so often, so that the other processes would have a chance to do their work. This really didn&amp;rsquo;t work at all!
Shutting off background processes
My main machine runs a lot of stuff in the background, from my CVS server, to a &lt;a href="http://ultravnc.sf.net">VNC server&lt;/a>, to &lt;a href="http://www.apple.com/iTunes">iTunes&lt;/a>. I wondered if some of this was causing the problem, so I shut everything that wasn&amp;rsquo;t essential down. To my surprise, this made things worse!
The solution
Finally, I clicked on the solution - setting the thread/process priority. By setting the vision module to have a &amp;lsquo;below normal&amp;rsquo; thread priority, the speech module worked happily.
Part Two
Many months later, though, I ended up with the same problem - the speech module just wouldn&amp;rsquo;t work fast enough. Things were a little different, though - the speech module was the only one running on the machine, and synthesis worked ok (last time it stuttered), but the recognition was way slow. The speech module is a complex beast, because it doesn&amp;rsquo;t actually do the speech stuff itself, but uses COM to get the Microsoft Speech kit to do it.
Once again, I played around with time.sleep()ing, wondering if the network traffic was what was slowing it down (because without the network traffic, it worked nicely), and lots of other things. I even tried increasing the priority of the speech process, and that just made things worse.
Finally, though, I clicked to the actual problem - the speech process wasn&amp;rsquo;t the one that was doing the speech work, some other process was (accessed via COM), and that one wasn&amp;rsquo;t getting enough time. The network traffic probably made things worse because it mean that more time was allocated to the speech module process, which is the opposite of what needed to happen.
So I again dropped the priority - this time of the speech module, and lo-and-behold it worked like a charm.
The lesson? Be very careful to set the priorities carefully, and don&amp;rsquo;t always assume that you want a higher priority for your process. Remember that Windows will do a reasonable job of giving everyone enough time if the priorities are set right.
Note that to set the process priority, the win32process.SetPriorityClass function is used, with the first parameter equal to the result of win32api.GetCurrentProcess(), but the constants needed for the second parameter are missing, even though the win32 help says they are there (I&amp;rsquo;ll submit this as a pywin32 bug). The &amp;lsquo;below normal&amp;rsquo; constant is 16384. [Later: this is fixed in recent versions of pywin32]
technorati tags: &lt;a href="http://technorati.com/tag/Coding">Coding&lt;/a>, &lt;a href="http://technorati.com/tag/PhD">PhD&lt;/a>&lt;/p></description></item><item><title>Reply All</title><link>https://tonyandrewmeyer.com/2004/10/27/reply-all/</link><pubDate>Wed, 27 Oct 2004 10:47:42 +1200</pubDate><guid>https://tonyandrewmeyer.com/2004/10/27/reply-all/</guid><description>&lt;p>This is primarily intended for people corresponding with me via &lt;a href="http://mail.python.org/mailman/listinfo/spambayes">spambayes@python.org&lt;/a>.Those that have will have noticed my signature generally includes these lines:&lt;/p>
&lt;pre tabindex="0">&lt;code>--
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don&amp;#39;t send me personal mail about SpamBayes.
http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this.
&lt;/code>&lt;/pre>&lt;p>Here is an explanation of what that means, why I am asking you to do this, and how you can do it. If you don&amp;rsquo;t understand a term here, please check the list at the end for a definition, or use &lt;a href="http://www.google.com">Google&lt;/a>&amp;rsquo;s &amp;ldquo;define&amp;rdquo; facility to get a definition.
&lt;strong>What does this mean?&lt;/strong>
What this means is that I would like you to send your reply to the &lt;a href="http://mail.python.org/mailman/listinfo/spambayes">spambayes@python.org&lt;/a> address, rather than (or in addition to) &lt;a href="mailto:tony.meyer@gmail.com">my own address&lt;/a>. I would also like you to send any new queries in the future to that same &lt;a href="http://mail.python.org/mailman/listinfo/spambayes">spambayes@python.org&lt;/a> address, and not to me, even though I might have helped you in the past (unless I specifically ask/offer you to do so).
&lt;strong>Why should I do this?&lt;/strong>
There are four main reasons:&lt;/p></description></item></channel></rss>