error

Error when creating database in MySQL using Netbeans 6.8

I am trying to create a database using MySQL statements in NetBeans 6.8. However, I keep getting Error code 1064. I don't know what the problem is really since the same statements work in NetBeans 6.0. Here is the error: Error code 1064, SQL state 42000: You have an error in your SQL syntax; check the manual that corresponds to your MyS...

Cannot add App_Data SQL Server database

Hello, Using Visual Studio 2010 10.0.20319.1 RTMRel and SQL Server Express 10.50.1600.1 I'm trying to add a new SQL Server Database .mdf, however, I receive the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. ...

Heroku Rails Internal Server Error

Hello. I got a 500 Internal Sever error when I try to deploy my rails app on heroku. It works fine on my local machine, so i'm not sure what's wrong here. Seems to be something with the "sessions" on the home controller. Here is my log: ==> production.log <== # Logfile created on Sun May 09 17:35:59 -0700 2010 Processing HomeContro...

Notify by email when passenger error occurs

Hello, is it possible to send notification emails when passenger error occurs? Something similar to the email sending by exception notifier when there is an error in Rails app. I wonder because now we have no way to find out if someone hits an unexpected app spawner or other error (like memory limit etc.). Thank you! ...

PHP Codeigniter Undefined Offset Error

Hello, I am building a Codeigniter shopping cart. On the cart details page I have a form input field allowing the user to type in the quantity required of a product, and a submit button to post the information to the update function. When there is just one item in the cart, when updating the quantity everything works as it should. Ho...

When my UIViewController accesses an NSArray in my AppDelegate from an IBAction it crashes the program

I have a couple UIViewControllers that I am trying to access an array inside my AppDelegate. When I use an IBAction UIButton and in that method I access my AppDelegate my program dies silently. Nothing in output or the debugger, it just stops. If I run it several times I can see that it is failing to access the array properly. To invest...

C# string to combobox issues

What i'm trying to do is read in a header row of a file to a combobox. Here is my code: private void button4_Click(object sender, EventArgs e) { string[] startdelim = File.ReadAllLines(textBox1.Text); int counter = 1; foreach (string delim in startdelim) { if (counter == 1) { string removed...

Why i get everytime the error-message that i've already sent the headers

Hey, i've another question about web-programming. I programmed a login script, but everytime when i try to login it says that i've send the header informations already. Here are the 2 files: <?php if($_GET['logout'] == 1) { setcookie('authorized', 1, time()-3600); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...

Getting the error "Unexpected $end" in my class file

I'm writing a php library that handles different products, somewhere in my class I must have a missing curly brace or something but I can't find it. Does someone with a debugger or keen eyes see anything wrong with this code? http://pastie.org/953994 Thanks in advance! Edit: I think it's something with the query in the EquipmentData...

Could not determine the size of this expression.

Hi, I have resently started to use MATLAB Simulink, and my problem is that i can't implement an AMDF function, because simulink compiler cannot determine the lengths. Simulink errors: |--------------------------------------------------------------------------------------- Could not determine the size of this expression. Function 'Embe...

Android: DOM-Model to XML

Hey Guys, analogue to this one (http://stackoverflow.com/questions/2788345/replacing-xml-in-file-from-document-in-java or http://www.exampledepot.com/egs/javax.xml.transform/WriteDom.html) I try to use it under Android... The problem is, that I can't use the suggested solution under android, because it throws java.lang.verifyError... ...

PHP when display_errors set to 0 500 in AJAX response

Hello All, I have a wired problem. When I set display_errors to 0 on production enviroment then AJAX request to some PHP script returns apache server error 500 and nothing works. When I set it to 1 then response is 200 and everything seems to be fine. Question is what is the connection between display_errors and server error number. I ...

Facebook Social Plugins Like button returns "Website Inaccessible"

We've just added Facebook like button to http://www.willyoung.co.uk/global/songs-and-lyrics/releases/the_hits?page=1, however the json returned by facebook is for (;;);{"error":0,"errorSummary":"","errorDescription":"","errorIsWarning":false,"silentError":0,"payload":{"requires_login":false,"success":false,"already_connected":false,"is...

Model Django Poll

I am working through the Django tutorials, and now I am at creating a poll. The code below works fine until I want to create choices, where for some reason I always get this error message: line 22, in __unicode__ return self.question AttributeError: 'Choice' object has no attribute 'question' What am I doing wrong? Here's my code...

C++ MTL Library dimension.h bug?

I've installed MTL on my Fedora Core 12 x64 system, but when building an application I get the following error: In file included from /usr/local/include/mtl/matrix.h:41, from /usr/local/include/mtl/mtl.h:40, from ltiSystem.hxx:4, from strTools.hxx:4, from ff.cxx:3: /usr...

iPhone App Crash - Error ?

Hi there.. Im new im making in making iPhone apps so i have no idea what this error means ? I saw another post with this error but i couldn't figure out how to get it right.. i get this error: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-c...

How should I handle expected errors? eg. "username already exists"

I am struggling to understand how I should design the error handling parts of my code. I recently asked a similar question about how I should go about returning server error codes to the user, eg. 404 errors. I learnt that I should handle the error from within the current part of the application; seem's simple enough. However, what shou...

Assembly not referenced error with Interactive Brokes ActiveX API

I'm attempting to use the Interactive Brokers ActiveX API, but I'm having a little trouble: error CS0012: The type 'System.Windows.Forms.AxHost' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. ...

CppCodeProvider assembly not found error in Visual Web Developer 2010

I opened a website in Visual Web Developer 2010 and at the top of the page there is an error squiggle on the master page declaration: <%@ Master Language="C#" AutoEventWireup="true" etc... The error is "Could not load file or assembly 'CppCodeProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its d...

remsh rsh error redirect problem

I'm using the following command on HP-UX: remsh opera -l myuser crontab -l > /opt1/exp_opera_crontab 2>/opt/a.log and when I echo $? I get 0 because it's executing crontab -l on the remote machine. But I don't have opt1 directory so export won't be copied to my local machine in /opt1/exp_opera_crontab I don't get any error about thi...