Archive for March, 2007

Making gFTP not Time Out

Wednesday, March 28th, 2007

gFTP has always given me a bear of time with disconnecting itself at every opportunity. Stop uploading to answer an email? Bam, your FTP session is disconnected and not only do you have to reconnect but also navigate through all those directories to get back to whatever you were doing!

I always thought it was a server thing, but changing this setting in gFTP seems to help for me.

You just open up gFTP, go to the FTP menu, then options. Then on the network tab change the Network timeout field to something high like 1200:
Make gftp not timeout so soon
Of course for the longest time I didn’t even try changing this field because when you hover the mouse over it, it says “This is NOT an idle timeout”. Well whatever the field does, it certainly makes my connection not time out so soon when I’m idle, so I’d say it IS an idle timeout. Oh well.

Mini Searches with Answers

Monday, March 26th, 2007

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but you may still find them useful.

activeCollab – open source project management and collaboration tool.
A free clone of Basecamp (I think, I haven’t tried it yet), A search for “Why is Basecamp so expensive” led me to this site.

QuickBooks Network Installation Guides
Here is your one-stop support resource to help you find the information you need to successfully install QuickBooks 2007 or QuickBooks 2006 on a Network. Check back often to get the most up-to-date information.

QuickBooks Enterprise Solutions Installation and Users Guide
This appears on Answer My Searches because system documentation is listed under the “White Papers” category, yes, it’s obvious to look for documentation under white papers!

Main Page – IEs4Linux
Putting IE on Linux? This would be useful. Does it work?

fabFORCE.net – DBDesigner 4
A free database design software. I think it would be really cool if someone made a web-based one of these.

HTML – Handling Tabs in Textareas i.e., tab inserts tab
The example in the comments claims to be cross browser. This will be useful for an upcoming project of mine.

Digg – search for “addictive”
Here’s what you do when you’re really bored, search Digg.com for “addictive”. It turns out everyone uses that word in their titles for well, addictive games which is exactly what you need when you’re bored.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

Fixing – Cannot change thread mode after it is set

Thursday, March 22nd, 2007

Life is hard when you don’t understand all this Windows com stuff. Well life with Windows and Python is hard at least.

Here’s one of the weirdest errors I ever got and how at least I was able to fix it.

My code just started raising this error one day:
‘Cannot change thread mode after it is set.’
(I believe it had this number associated with the error: -2147417850)

The weirdest thing is the the error was raised from whatever statement followed the Pythoncom dispatch thing:
self._qbxmlrp = win32com.client.DispatchEx("QbXMLRP2e.RequestProcessor")
Even if the statement was something mundane like print 'hi'.

I’ve found the only way to debug this sort of thing when there’s no help to be found on the internet is to create what I call a mimimum failing example. Make a seperate copy of your code and tear things out until it starts working again.

Following this process I saw that my code only raised this error when another module (a little feller’ to talk to SQL Server) called the following function more than once (just once was ok though):
pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED)

The first solution I tried was calling pythoncom.CoUninitialize() after every time pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED) was called. I don’t know what I’m doing but the names make it sound like the right thing to do, right?

But that didn’t work. So I ended up refactoring the module using a singleton type of deal so that pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED) is only called once.

That fixed the issue, though it’s quite a hollow victory since I still don’t know what’s going on. This must be how the guy in the Chinese room feels.

Update:
After a second look, all that was required was to stop using this code I’ve previously posted on here. Are you using anything like that, dealing file I/O or STOUT?
I can’t image why that would have helped but it does.

Quick Searches and Answers

Friday, March 16th, 2007

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but you may still find them useful.

Slashdot | Which VNC Software Is Best?
Slashdot covers which VNC software is best. I didn’t get past the first 20 innane comments, but perhaps there are a few jewels in there somewhere?

How Do Coupon Barcodes Work? -UCC/EAN-128 Coupon Extended Codes
Ever wondered what information the barcodes on a coupon encode? Well this site has a good explanation. I’m still not sure how the store knows which product a coupons goes with?

ASPN : Python Cookbook : Converting OLE datetime values into Python datetime objects
How to convert a pyTime type into a datetime object in Python. Useful if you’re using the ADODB stuff.

Netflix Fee Calculator
What is the maximum number of Netflix you can get in a month? This calculator tries to answer that question. Keep in mind it doesn’t seem to understand Netflix throttling nor the fact that you’ll keep the movies for a few days. But play with the number

YouTube – Ostrich Ride
Can one really ride an Ostrich? Yes, yes you can. That guy looks like he weighs no more than 160 though, I’m not sure if they could hold a grown American.

Tags: , , , , , , , , , , , , , , ,

Snapstream – Beyond TV – Video Not Showing on TV Out

Sunday, March 11th, 2007

I installed Snapstream Beyond TV on my new Vista (sorry world) computer and even though TV out is working, and video works on the main monitor, I only see black where the video should be on the TV.

Turns out the weird fix at least for me is to tell Beyond TV not to disable Aero.

To do this, you go to Beyond TV’s web interface: http://localhost:8129/SetupInterface.aspx and go down to the option that says “disable Aero” and select No. Click save changes and restart beyond TV (click close (the x) on its window, don’t turn off via system tray).
It should work now.

Another annoyance is that I have to redo this every time I restart my computer! I’m so tempted to install Windows XP on here …