error

python "'NoneType' object has no attribute 'encode'"

I wrote this tiny Python snippet that scrapes a feed and prints it out. When I run the code, something in the feed triggers the error message you see here as my question. Here's the complete console output on error: > Traceback (most recent call last): > File "/home/vijay/ffour/ffour5.py", > line 20, in <module> > myfeed() File ...

Access.Application.CurrentDb is Nothing?

I'm at a loss to explain this one: I'm getting an error "91" (Object or With block not set) on the second line below: Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("SELECT * FROM employees") The following also causes it: Set rs = CurrentDb.OpenRecordset("employees") Executing ?CurrentDb.Name alone in the immediate w...

What's wrong with my MySQL query?

I'm not getting any errors as such just a minor performance issue. EXPLAIN SELECT a.nid, a.title, a.uid, b.parent, b.weight, c.name, d.value FROM table1 AS a INNER JOIN table2 AS b ON a.vid = b.vid AND a.status = 1 INNER JOIN table3 AS c ON c.uid = a.uid INNER JOIN table4 AS d ON d.content_id = a.nid AND d.value_type = 'percent' AND d.f...

"No such file to load" error when running Rspec

Mac OS 10.4 rspec (1.1.11, 1.1.4, 1.1.3, 0.5.15) rspec-rails (1.1.11) rspec_generator (0.5.15) rails 2.2.2 ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] Created a new project... $ rails myproject Installed rspec into the project... $ script/generate rspec Generated a resource... $ script/generate rspec_scaffold myre...

"The parameter is incorrect" when setting Unicode as console encoding

I get the following error: Unhandled Exception: System.IO.IOException: The parameter is incorrect. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.__Error.WinIOError() at System.Console.set_OutputEncoding(Encoding value) at (my program) when I run the following line of code: Console.OutputEnco...

How is it possible to resolve unresolved symbols (LNK2001) for _RTC_InitData and _RTC_Shutdown

I am building an x64 lib in Visual Studio 2008, and separately linking it into an x64 DLL (specifically using the WDK Build.exe toolchain in this case). Most general C runtime symbols link fine, indicating that the library versions are sufficiently well-matched, but these two RTC_* symbols specifically fail. Forcing different runtime lib...

Failure of server APACHE bridge with Weblogic Server

Hi all, I am getting the following error when I am trying to upload the file using IE7: Failure of server APACHE bridge: No Backend Sever available for connections": timed out after 10 seconds or idempotent is set to off I looked at the Weblogic 10 threads info on console and everything seems ok (no deadlocks etc) Has anyone had this...

error: macro names must be identifiers using #ifdef 0

Hello, I have the source code of an application written in C++ and I just want to comment something using: #ifdef 0 ... #endif And I get this error error: macro names must be identifiers Why is this happening this?. Thanks ...

Why are my units "compiled with a different version" of my own files?

I'm building a program that uses plugins. Unfortunately, the plugin framework's dynamic linking forces the RTL and VCL out of my project EXE and into the BPL versions, and they don't have debug info enabled. So I built a testing framework that links to my plugins statically so I can actually see what I'm doing while tracing through the...

Error highlighting in Visual C++

When using Eclipse or NetBeans IDE on a Java project I get to see where errors in my code are, before and after compiling. The line causing the issue is shown. I remember that back in the old days, the Visual C++ 98' edition did do underlining of errors in the code. Is there a way to enable this in Visual C++ 2005? Or is there a 3rd part...

MySQL error when deploying .NET application

I'm attempting to install a MYSQL driven .net application to a Windows XP sp2 machine. The development machine is the same OS. The application and all connectivity work fine on my machine (the developers mantra), but I receive the following error on the installation machine when attempting to connect to the database. As a side note, I ...

Objects and error handling in PHP

What's the best practice to handle errors if using objects? A) Before the method of object is called and not even getting to execute method if there's some error, or B) Just pass parameters and perform error checking in method itself, returning error code or something. Please pick your option and short description, why? Thanks orland...

"Operation not supported" and "Printer selected is not valid" errors while printing

Hello, Hopefully somebody will be able to help. In my Delphi 7 application small percentage of users report errors when printing and I'm trying to resolve this with last of them. I'm slightly limited when it comes to testing (as user is physically distant and we are working it out via e-mail), but I get some additional information from ...

Session Problem in Rails 2.2 "ActionController::InvalidAuthenticityToken in User#register"

Hi everyone, I am reading and learning from this very cool book Railspace - Building Social Networking sites. I understand everything but i am stuck with the sessions section. Its something i would really like to get under my belt and would appreciate any help! Ok so here is the error i get: ActionController::InvalidAuthenticityTo...

Where is the right place parametric type checking in dynamic languages?

Consider the following. (in pseudocode). Class { hello world public constructor(hello, world) { if (hello is not String) { throw Exception() } if (world is not Array) { throw Exception() } this.setHello(hello) this.setWorld(wor...

illegal command error code 127 in php exec function

I am using this php code: exec("unrar e file.rar",$ret,$code); and getting an error code of illegal command ie 127 ... but when I am using this command through ssh its working ... because unrar is installed on the server ... so can anyone guess why exec is not doing the right stuff? ...

The macros in this project have been disabled

When opening a word document a macro should start and it did for a while. But the I save the document when the macro was activated and after that I get the error message "The macros in this project have been disabled" when I open the document. I have tried different security settings but without success. Does anybody have any idea what...

What would cause Perl to dump core?

What are the most common reasons that I would be getting this error from running a Perl script: Memory fault(coredump) I am running two SQL commands beforehand that only store ~1500 rows each with 6 fields. The SQL works fine out of the script, so I don't think I'm getting the error from that. And half of my code runs before it takes ...

How do I avoid run-time error when a worksheet is protected in MS-Excel?

The code snippet below changes the data validation state of a cell and runs when the Excel-2003 worksheet is unprotected. However, when I protect the work sheet the macro doesn't run and raises a run-time error Run-time error '-2147417848 (80010108)': Method 'Add' of object 'Validation' failed I have tried wrapping the code wi...

Ftp GetFileSize randomly throws FTP error 503 (Bad Sequence of Commands)

To get the file size for every file in a list of files, I'm using the following code: foreach (String f in files) { UriBuilder ftpUri = new UriBuilder("ftp", ftpServer, -1, ftpPfadZuLogDateien + "/" + f); FtpWebRequest ftpclientRequest1 = (FtpWebRequest)WebRequest.Create(ftpUri.Uri); ftpclientRequest1.Method = WebRequestMethods.Ft...