error

mysql 'Unknown column' error

What is wrong with this: SELECT *, GROUP_CONCAT(DISTINCT w.tag_word ORDER BY w.tag_word ASC SEPARATOR ' ') AS tags, MATCH (title, description, tags) AGAINST ('london') AS score FROM article G JOIN tag_index I ON G.article_id = I.tag_target_id JOIN tag_word W ON I.tag_word_id = W.tag_word_id WHERE I.tag_type_id = 1 AN...

firefox .pdf file opening error.

i have asp .net website where i open a .pdf file. it opens fine on IE but refuses to open on firefox or other browsers. why is that? Error - There was an error processing a page. There was a problem reading this document (109) ...

error handling with NSURLConnection sendSynchronousRequest

how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement - (void)connection:(NSURLConnection *)aConn didFailWithError:(NSError *)error i have a nsoperation queue which is getting data in background thats why i have sync request. and if i have to implement async request then how c...

Interbase: conversion error from string ""

I'm running IB2009 and I'm trying to count the number of records where a specific field is neither NULL nor empty: SELECT COUNT(A.ID) FROM MYVIEW A WHERE ((A.VARCHARFIELD1 IS NOT NULL) OR (A.VARCHARFIELD1 <> '')) where MYVIEW is a VIEW, and MYVIEW.ID is an INTEGER, while MYVIEW.VARCHARFIELD1 is a VARCHAR(18). I'm getting the error me...

my_thread_global_end threads didn't exit, error?

I am using MySQL c++ connector (1.0.5) , recently I moved get_driver_instance() and connect() methods to secondary thread then I am getting below error. Error in my_thread_global_end(): 1 threads didn't exit After googling I found that mysql thread isn't exiting. Is there a method in c++ wrapper to do cleanup? ...

Rails strange error => IndexError: string not matched

Hi everybody, I've got a very strange message error. I think it's not coming from Ruby but from the unix system. So, I have the following test file: require File.dirname(__FILE__) + '/../test_helper' class CatTest < ActiveSupport::TestCase def test_truth assert true end end So, nothing coming from YAML files in the Fixt...

Android SDK Error Upon Creating Emulator

I am running into a problem creating an android emulator from the command line. When I run the android command the messages below output. Starting Android SDK and AVD Manager SWT folder 'lib\x86_64' does not exist Please set ANDROID_SWT to point to the folder containing swt.jar for platform I've already: Execute SDK ...

C++ error LNK2019 && fatal error LNK1120: 1 unresolved externals

I am trying to work on a homework assignment for school and am going above what the teacher is asking for the assignment -> I have created a "list" class. I keep running into these two errors after adding the 'add()' method to the program - along with the 'newIncomeTax()' methods error LNK2019: unresolved external symbol "public: voi...

Android SDK Resource Transformation/Compilation Issue

Hi, I'm developing an Android app, and I am having an issue with a layout resource, failing. I'm new(ish) to Java, Android and Eclipse. Everytime I save the XML, Eclipse simply outputs the following: ... "Invalid file name: must contain only [a-z0-9_.]" I've checked there are not .out files kicking around. I've checked over the XML...

Cannot Add to generic list

Firstly I apologise for the oversimplification, but I have this issue which is driving me crazy. It should work - it's simple code, nothing fancy....... I have this object public class Stuff { private int intStuff; private string strStuff; public Stuff(int StuffID, string Stuff) { intStuff = StuffID; s...

UIApplication sharedAppication error: program seems to be accessing wrong file

in my MainViewController implementation, I need to access variables from two different classes. one of the classes is the AppDelegate and the other is the FlipsideViewController. the way I accessed these was through this code: -(void)someMethod { MyApplicationAppDelegate *appDelegate = (MyApplicationAppDelegate *)[[UIApplication sharedA...

Rails: Return a 401?

I'd like to return a HTTP 401 error as part of my permission_denied method for declarative_authorization. # triggered when a user accesses a page that they don't have access to def permission_denied # render my default 401 error page? end How would I do this? (Pardon the question if it's stupid... I know how to render the 401.html p...

Linq error generic parameter or the query must use a nullable type

I got this error when i use sum function in linq. The cast to value type 'Decimal' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type. GroupProduct.Where(a => a.Product.ProductID==1).Sum(Content => Content.Amount==null?0:Content.Amount), ...

MySql Sql MAX and SUM error

select sum(value) as 'Value',max(value) from table_name where sum(value)=max(sum(value)) group by id_name; The error is: Invalid use of group function (ErrorNr. 1111) Any idea? Thanks. ...

$_REQUEST not created when using variable variables?

Consider the following snippets of code: Exhibit A: $_REQUEST = json_decode(stripslashes(json_encode($_REQUEST, JSON_HEX_APOS)), true); Exhibit B: ${'_REQUEST'} = json_decode(stripslashes(json_encode(${'_REQUEST'}, JSON_HEX_APOS)), true); Exhibit C: ${'_' . 'REQUEST'} = json_decode(stripslashes(json_encode(${'_' . 'REQUEST'}, JSO...

PHP error Can't use method return > value in write context

I am getting this error in a PHP class... Fatal error: Can't use method return value in write context in C:\webserver\htdocs\friendproject2\includes\classes\User.class.php on line 35 Here is the troubled part. if(isset($this->session->get('user_id')) && $this->session->get('user_id') != ''){ //run code } This code is...

Why does my simple C++ GUI application show a message box in Chinese?

Oh as for the whole (LPCWSTR) casting thing: It wouldn't compile unless I put those in. It game me this error message: Error 1 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [22]' to 'LPCWSTR' ...

ruby/rails NoMethodError? when using custom validation method

hi all, i'v been new to ruby and rails and encountered a rather strange error: class Person < ActiveRecord::Base validates_presence_of :description, :if => require_description_presence? def require_description_presence? self.can_send_email end end raises NoMethodError in PeopleController#index undefined method ...

Very strange malloc error.

Ok. So I have this function, init(): void init() { fstream file; int index = 0; char temp_list[60000][15]; listlen = 0; current_index = 0; file.open("en_US.dic"); while(!file.eof()) { file >> temp_list[index]; index++; } listlen = index; file.close(); file.open("en_US.dic"); word_list = new char*[listlen]; int count = 0...

PHP errors shows orange table and 'call stack'

Recently, if I have PHP errors on my localhost, I'm seeing this layout of an orange table and call stack: Is this caused by something in particular, a PHP module maybe? Or is it now part of PHP by default? I'd like to go back to the simpler plain message. I'm running PHP on Apache 2 on my Ubuntu desktop. ...