error

More professional error handling.

I have a contact form and I handle errors by checking each field one-by-one with an "if" statement. I find this hard and I can't seem to find a better/more productive way to get them working. I would also like a heading saying "Error" if one (or more) is true. But I cant get them to work with the separate "if" statements. Here is my cod...

Problem with cell logical indexing in Matlab

I am reading data in from a url, parsing it, and then attempting to format the data further: year = 2008; month = 9; day = 30; raw = urlread(sprintf('http://www.wunderground.com/history/airport/KCVS/%i/%i/%i/DailyHistory.html?HideSpecis=0&theprefset=SHOWMETAR&theprefvalue=0&format=1',year,month,day)); data = textscan(raw,'%...

Newbie cant see why code is erroring, but knows where it is erroring

I have a problem with my code, good news is I actually pinpointed the problem, bad news is I do not understand why it is a problem. Also should this be return or exit? This is my getNums() function,...so far. first my code calls getLine() which gets the line and returns its character length. Then get nums is given, the line, length o...

How do I output error for DNS resolve in Perl?

I have currently a DNS Reverse lookup script which works however there is a small little issue of the script being able to output the DNS system errors. The problems goes like this: User keys in false/wrong internet address name etc. "www.whyisthednsnothappening.com" The script would then clear the screen using system(clear) The scrip...

Encountering ORA-00979: not a GROUP BY expression when using CASE - IN statements in sql

This works: SELECT (CASE WHEN x = 'value' THEN a.col1 ELSE nvl(a.col1, a.col2) END) FROM table1 a WHERE a.this = 'that' GROUP BY (CASE WHEN x = 'value' THEN a.col1 ELSE nvl(a.col1, a.col2) ...

Why won't PHP 5.2.14 display any errors (even from the command line)?

I have PHP 5.2.10 and PHP 5.2.14 (x86 non-threadsafe Win32 builds) installed on a Windows 2008 R2 server and on Windows 7 64 bit. For some reason PHP 5.2.14 refuses to show error messages. Even when I set the following settings in php.ini I don't get any errors reported if I use 5.2.14: error_reporting = E_ALL display_errors = On Th...

big problem with libraries and X after texmaker install

Hello... I just had a big problem after installing tekmaker in Debian testing via apt-get. It was suspicious already that it wad re-installing a lot of libraries and even removing packages (!) When I restarted the machine, X windows not working.... Have you any idea of what happened? I googled for a solution but it really seems that i...

Compilation error: `Class' does not name a type

Hi, I have a pretty simple class called simulator in simulator.h #include <iostream.h> #include <stdlib.h> Class Simulator { private: short int startFloor; short int destFloor; public: void setFloors(); void getFloors(short int &, short int &); }; Now when I compile it, I get this error: ...

twisted: no exception trace if error from a callback

Consider the following code: df = defer.Deferred() def hah(_): raise ValueError("4") df.addCallback(hah) df.callback(hah) When it runs, that exception just gets eaten. Where did it go? How can I get it to be displayed? Doing defer.setDebugging(True) has no effect. I ask this because other times, I get a printout saying "Unhandled err...

Playing with Scrapi in Rails 3.. getting Segmentation Fault error / Abort Trap

What I've done so far.. sudo gem install scrapi sudo gem install tidy This didn't work because it didn't have the libtidy.dylib So I did this : sudo port install tidy sudo cp libtidy.dylib /Library/Ruby/Gems/1.8/gems/scrapi-1.2.0/lib/tidy/libtidy.dylib Then I started following the simple railscast at : http://media.railscasts.co...

MySQL error: Can't find symbol '_mysql_plugin_interface_version_' in library

The boring, necessary details: I'm on Snow Leopard running MySQL locally. I'm trying to install the Sphinx engine for MySQL like so: mysql> install plugin sphinx soname 'sphinx.so'; ERROR 1127 (HY000): Can't find symbol '_mysql_plugin_interface_version_' in library I've Googled everywhere and can't seem to find an actual solution to ...

Assigning Task.Duration to an already added Task in VBA Microsoft Project

I'm currently working on a VBA macro importing product-requirements into Microsoft Project. I use the following code for adding/updating a task: Function AddTask(strText As String, lngDuration As Long, taskParent As Task) Dim oldTask As Task Set oldTask = taskParent.OutlineChildren(strText) If oldTask Is Nothing Then ...

SQLite Query in Android Application giving error

Hey all one of my friend suggested me this (Tony), am I going wrong anywhere here ? because this is giving runtime error. application stopped unexpectedly. I may b wrong in syntax. just help me out, thanks in advance. I am gratefull for your response. public boolean checkData(String task1, String dte1, String startTime1) { SQLiteQuer...

C# project error:"An item with the same key has already been added"

I had a project using C#(visual studio 2008) and sql server 2000.I installed this projects setup at three computer. İt works in two of them(xp sp3) rightly but doesnt work other(xp ultimate). İt give errors when just one form opening :"An item with the same key has already been added" How can I fix this problem?? source code: DBCl...

DNN Error when loading a specific skin (GeneralContentPage)

I get this error when I load a page that uses a specific skin (GeneralContentPage). I have deleted the ascx page and parsed the skins again but still have the same error. Would appreciate any input! An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: input ---> System.ArgumentN...

Styling the Validation Error on WPF DataGridCell

I'm trying to change the way a DataGridCell appears when it has error content. By default, it has a white background and a red border when it encounters an error. However, it seems that my attempts to set the Validation.ErrorTemplate of this class are being ignored, as are my Triggers on the Validation.HasError property. All of the co...

Image overlay showing IDs and not text

In the post editor when you click on an image that has already been inserted an overlay pops up allowing you to edit the image. This overlay is displaying things like {#cancel} instead of the word Cancel. All text on this overlay has been changed in a similar way. Screenshot: http://awesomescreenshot.com/0151v82eb I have disabled all ...

Troubleshooting Internal Error in the .NET Runtime

Several weeks ago, my company laptop started having some strange problems. I could no longer launch the Microsoft Developer Web Server (via Visual Studio->Debug). I later figured out that I couldn't execute any .NET application. In speaking with Microsoft CLR specialist after reviewing my dmp files, he said When loaded into yo...

Virtual method & this pointer

Hi. I'm just beginning to learn C++ and I'm trying to make Thread class that that has the basic functionality of the Java Thread class. What I'm trying to do is make a class which you subclass, write a Run method (which is pure virtual in the base class) create an object of the subclass call the start method on it and you have thread. T...

Vector insert crashes program.

Can anyone tell me why this crashes my program? It's suppose to make it so order has all the elements in the t vector situated by (y + height). Edit: crashes on the lines with "insert" in them. void createDrawOrder(vector<Thing*> t, vector<int> *order) { int min = t[0]->y + t[0]->height; int max = t[0]->y + t[0]->heigh...