error

Ruby/Rails/PostgreSQL PGError: syntax error at or near

I'm getting the error in the title when trying to select a cookie value from a table in a postgresql database, and I've no idea why. Selecting other fields in this table work fine. Here's the line where it is breaking: user=UniqueUser.find(:all, :select => 'DISTINCT visitor_id', :conditions=> "visitor_id=#{visitorid}") The column is...

Android App Launch Creates Blank xml File

I launch my app from Eclipse on an emulator and Eclipse creates a new blank file called main.out.xml then refuses to launch because this new file is blank. What is causing this? What do I do about it? ...

Unable to connect to SQL Server 2005

I am trying to connect to SQL Server 2005 express edition from SQL Server Management. From the server configuration manager, I found the SQL Server Service to be running and within bracket, it's written(SQLEXPRESS). I understand SQLEXPRESS is the instance name, therefore I have to use following string for server name: \SQLEXPRESS. I am...

Equivalent to Windows Error Codes in .NET

Microsoft provides a bunch of standardized error codes for Windows (http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx). When applicable I find them useful to reference in my own applications, instead of creating my own. Is there something similar but specific to .NET? ...

DOjo custom cross-domain build does not work

I am trying to use a custom build of DOJO, and deploy it on a web-server, so that applications running on an app server may be able to access and use it. - The cross-domain build does not seem to work right for me, however, if I run a similar static page deployed on the web-server, it runs just fine. - Tried using both, get the same pr...

NSSpeechSynthesizer delegate method always reports an error, but which one?

I have the following delegate method for NSSpeechSynthesizer: - (void) speechSynthesizer:(NSSpeechSynthesizer *)sender didFinishSpeaking:(BOOL) success { NSLog(@"Finished correctly = %d", success); [startButton setEnabled:YES]; [stopButton setEnabled:NO]; } The parameter "success" is always NO, even though I heard everyth...

Python "Value Error: cannot delete array elements" -- Why am I getting this?

Hi Everyone, I would really appreciate some help on this issue, I haven't been able to find anything about this value error online and I am at a complete loss as to why my code is illiciting this response. I have a large dictionary of something like 50 keys. The value associated with each key is a 2D array of many elements of the form...

File upload issue MVC - assembly reference

I'm trying to put together a page whereby a user can upload a file, and it goes to a database. I'm following a tutorial, and my controller method so far looks like this: public ActionResult Index() { ViewData["Message"] = "File Upload"; foreach (string upload in Request.Files) { if (!Request.Files[upload].HasFile()...

PHP - MySQL error "Error: Query was empty" when someone tries to sign up with a username that is already taken

Hi, I've got a signup/login system on my site, and I've made it so that if someone tries to sign up with a username that is already in use, it posts an error underneath the form. However, instead of posting the error message that I created, it returns a MySQL error "Error: Query was empty". Here is the code that I am trying to use to do...

PHP: Maximum execution time of 30 seconds exceeded

Hi, I have a php app that calls a class called Client. Every so often I get a sort of time out error. I thought it was SQL at first but it turns its pointing to the class itself. Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ClientPortal\classes\Conn...

Servlet exception in java

I imported a java project(war file) to eclipse. When I tried to run it , I got following error : java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments <User> Syntax error, parameterized types are only available if source level is 5.0 I tried to google it. I found tha...

Error: foreach statement cannot operate on variables of type IENumerable

Hi guys, I'm following the sportsStore tutorial from the Apress Pro Mvc 2 Framework book. It's been a while since I touched .net, and I'm completely new to Mvc and I've fallen at the first stumbling block! I have the following error: foreach statement cannot operate on variables of type 'IENumerable' because 'IENumerable...

wGet problem windows command line

Hi everyone, Basically I'm trying to download images from a website using the following command (SwiftIRC is an easy example to use): wget.exe -r -l1 -A.png --no-parent www.swiftirc.net/index.php This command works fine, however one of the ways I am trying to do it isn't working. When I fire up an elevated command prompt, default to ...

Need help with KeyError when building epydoc files for project

I have a pylons project with an extensive set of functional tests that I want my manual QA's to be able to read from time to time, so I'm using epydoc to build out the html pydocs on the functional test modules. It seems to be working fine. It generates the docs, and I can navigate through them without any apparent problems. However, ...

Socket Error using localhost

Hello I am using xampp & i wnat to mail form localhost . so for that i confige PHP.ini & sendemail.ini all time in bowser so nothing in error but in mail debug file show me Socket Error # 10049 how can fix thsi issue. i try a lot. in my machine i have Windows 7. Kindly help me ...

How to find the line number of an error in a Makefile?

I am running the following command: make -f makefile.gcc And the output is: make: -c: Command not found How can I find out which line is causing the error? The makefile is hundreds of lines long and there's no way of figuring it out otherwise. I tried the -d switch, but that didn't print any useful information. ...

Visual C++ 2010 Underline errors in NEW files with #define not working?

Hi. Im having problems with the visual studio 2010 editor. Since today, visual studio wont underline errors anymore if i use #define like so: #ifndef TEST_H #define TEST_H class foo{ blabla } #endif If i remove the defining commands, the errors show up. The wierd thing is, i have other files in my project with the exact same setup an...

Qt: Qmake does not support build directories below the source directory

Heyo, Qt Newbie here. I have created an application that compiles and runs like a charm on OS-X. I would now like to start getting it to work on Windows. To start, I copied the project to a windows machine and just tried to compile, but got this error: :: warning: Qmake does not support build directories below the source directory...

[.net] Application.Exit raises `FormClosed` for all open forms from calling thread, generating invalid thread accesses

Hi all! My routine to check for updates is run as a separate process. Exiting the application is required to update, so a dialog asks the user, when an update is found, if they want to exit now. f they do, the code (from the update thread) calls Application.Exit(). However, if the FormClosed event of any form that needs to be closed ne...

Latex: problem with foreign characters

I am writing a report in Latex from a latex template given in my university. The text is in English but I need to have some Swedish characters there was well like ä, ö, å etc. Now the problem is that I was initially writing the whole report in one single .tex file. But now I have decided that it'll be more manageable to have separate fi...