error-message

NSRunLoop is receiving a strange selector; possible race condition tomfoolery?

I've got some threads doing heavy work while my main thread handles the UI stuff. The threads callback to the main thread at times to update a progress bar. All in all, it's not that stable. I've fixed problems relating to the logic, but one in particular persists. I've got some code that acts like a stop button, meaning that the thread...

ODBC error in PHP: "No tuples available at this result index"

Been looking for this on Google for a while, but still looking. Couldn't turn up anything on it. Using PHP to query MS SQL Server via ODBC. Code is below: (I've watered it down to bare-bones as I've tried to debug this) $SQL=<<<HEREDOC DECLARE @weekStart SMALLDATETIME; SET @weekStart = DATEADD(d,0, DATEDIFF(d,0,GETDATE())); S...

Display error messages containing variables when validating forms in CakePHP

I have the $validate variable in my model which contains: var $validate=array( "username" => array( "usernameValid" => array( "rule" => "__alphaNumericDashUnderscore", "message" => "The username you entered is not valid!" ) ) ); The question is: how do I return an error message from the __alphaNumericDashUnderscore...

Can't locate object method "add" via package "Heap"

I'm not sure why perl isn't recognizing the Heap's method add. Getting message given in question title. Here are the most relevant files. #!/usr/bin/perl -w use strict; use Util; use Heap; use HuffTree; my $heap = Heap->new; my $test = 3; $heap->add($test); # <--------ERROR HERE----------- package Heap; use strict; use warnings; ...

Tooltip baloon display position (for error notification)

I asked a question closely related to this awhile ago: http://stackoverflow.com/questions/2878043/alternative-way-to-notify-the-user-of-an-error In short, i was trying to find a quick and easy way to notify the user of errors without using popups. Now i have implemented this using tooltip baloons. The problem is that even if i give it ...

Error message: 'OfType' is not a member of 'System.Text.....

Well the full error is Error 3 'OfType' is not a member of 'System.Text.RegularExpressions.MatchCollection' in the following lines of code, (curly braces in regex.Matches(input).OfType) For Each group As Object In regex.Matches(input).OfType(Of Match)().Select(Function(c) c.Value.ToLowerInvariant()).Where(Function(c) Not keywords.Con...

C2065 identifier undeclared

Hi, In my Service.h I have: #include "Configuration.h" and in my class: private: ConfigurationInterface* configuration_; Then, in my Service.cpp: Service::Service(Foundation::Framework* framework) : framework_(framework) { configuration_ = new Configuration(); } and later... const Info GetInfo() { retur...

Error "HRESULT E_FAIL has been returned from a call to a COM component" when adding a reference to a .Net 4 project in Visual Studio 2010

Hi, I get an Error "HRESULT E_FAIL has been returned from a call to a COM component" when adding a .dll reference to a project in Visual Studio 2010. The weird thing is, if I make a local copy of the .dll, and reference it locally it's fine. However, if I try and reference it from our shared resources server (\server\release\Common\Pa...

Heroku gem not working with RVM

I'm following the Ruby on Rails tutorial at http://railstutorial.org/chapters/beginning#sec:1.4.1, and all is going well until I tried to get my app going on Heroku. I installed heroku, that worked fine, but now when I run heroku keys:add or any other heroku command, I get the following error: /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rail...

What headers should be set for Redirect on Post?

I'm researching the Redirect on Post method and it seems that there are a few different opinions on how to approach the problem. I'll highlight what I've found and take your advice on what is truely the best practice: Redirection: Should you use Javascript, or HTTP to redirect the page? If you redirect using HTTP, what type of redire...

Custom Error Message to show current function

In my current error handling, I specify the Form, function and error message in a messagebox similar to the following. try { //Some code here } catch(Exception ex) { MessageBox.Show("Form Title : " + this.Title + "\nFunction : CurrentFunction \nError : " + ex.Message); return; } This works for me, but was curious if I can ...

WebSite Started to throw error : System resource exceeded. (Access DB)

I have a webpage that is giving me this error on a couple of pages -------------------------------------------------------------------------------- Microsoft OLE DB Provider for ODBC Drivers error '8007000e' [Microsoft][ODBC Microsoft Access Driver] System resource exceeded. -----------------------------------------------------------...

ActiveRecord doesn't work on one table

I have a Rails Model: ruby-1.9.2-p0 > NavItem => NavItem(id: integer, item_identifier: string, description: string, description2: string, packing_unit: string, sales_unit_of_measure: string, ean_code: string, evp_price: string, item_category_code: string, class: string, product_group_code: string, maintenance_status: string) If I wa...

How can I include rails code inside a validation message?

validates_presence_of :match, :message => "for your name and password could not be found. Did you #{link_to "forget your password", help_person_path}?" That's what I want to do. I can interpolate variables that are set in the model, but using simple Rails code like "link_to" doesn't seem to work. Which is a bummer. ...

How to setup custom error messages for my php application?

I want to make an application in php where users can run their php files. In that application I want to show more simple error messages to the user. Is there any procedure in php to edit default error messages? ...

Possible JavaScript Error?

My QA specialist is getting this following bug: Opening & closing the Country dropdown along with other dropdowns: Toggle opening Country & Phone Type drops. Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. Is this an issue with the JavaScript. And if so I have ...

ObC : app crashes after returning NSMutableArray ??

Hi, I am new to ObC and have a problem that i just cant fix. There may be other issues as well but the main issue is this: Starting the app Press button = load new view In the new viewDidLoad i call another object/function and send a NSMutableArray Process data and send back a NSMutableArray App crash, see comment where. Most often wh...

Parsing error message to Django template?

Hello, I am a newbie in Django. I am writing a sample application that has a form, submit that form then saving the data into the database. My form need to be validated before allowing to save data. So my question is how can I pass the error messages (that generated by validation) to the view? Any suggestion are welcome. Thanks! ...

How to see the reason for "could not connect to the web server" running Rails project in Netbeans 6.7/6.8?

I have a legacy Rails project (2.4) that used to work in Netbeans. But I just tried running it and got the message "could not connect to the web server http://localhost:3000" How do I get a more detailed explanation from Netbeans? I don't see any other error information. ...

How to read c++ errors involving templates.

I'm learning C++. I regularly get errors that look like this /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/basic_string.h:1458: instantiated from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const Alloc&, std::_false_type) [with _InIterator = std::istream_iterator, std...