error

Strange GCC 'expected primary expression...' error

Possible Duplicate: Templates: template function not playing well with classs template member function template <typename T> struct A { template <int I> void f(); }; template <typename T> void F(A<T> &a) { a.f<0>(); // expected primary-expression before ‘)’ token } int main() { A<int> a; a.f<0>(); // Thi...

Do I have to bind an UDP socket in my client program, to receive data? (I always get WASEINVAL)...

Hey There, I have the following problem: I am starting WSA, then I am creating a UDP socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP) and try to recvfrom on this socket, but it always returns -1 and I get WSAEINVAL (10022)... I don´t know why?... When I bind the port, that does not happen... But it is very lame to bind the clients socket......

Imagemagick mogrify stopped working on Cygwin

I've been using Imagemagick's mogrify on Cygwin, but at some point it stopped working. I've tried uninstalling / reinstalling, but still no go. When I try to run mogrify it trows this error : /usr/bin/mogrify.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory Anyone have any hints ...

errors when trying to delete a key in the registry

i'm trying to delete a registry from the Local_Machine\Software in the registry i made a key titles "DeleteMe" as a test to try it out but i cant get it to work iv tried multiple options and they all say that the "subkey" "subkeytree" and "value" do not exist BUT IT DOES! and i hope i'm using the right terminology here to its HKEY_LOCAL_...

Cryptic Erlang Errors

Okay so I started learning erlang recently but am baffled by the errors it keeps returning. I made a bunch of changes but I keep getting errors. The syntax is correct as far as I can tell but clearly I'm doing something wrong. Have a look... -module(pidprint). -export([start/0]). dostuff([]) -> receive begin -> io:form...

Error when using axis with xpath query in IE

Hi, When using XPath expression "descendant::div" with selectNodes in IE i am getting an error "Expected token 'eof' found ':'". Is there something i am missing here, please help me get around this issue. Best Regards, Keshav ...

not in gzip format error

while installing any Gem or doing any listing of gem gzip related error comes as shown below:- C:\Documents and Settings\gangunra>gem install rhosync -v 2.0.0.beta7 --pre ERROR: While executing gem ... (Zlib::GzipFile::Error) not in gzip format C:\Documents and Settings\gangunra>gem list rails -r * REMOTE GEMS * ERROR: While ex...

mysql - offset problem

Hi, I recently posted a question about getting last 3 results in table in the correct order. I now want the get all comments apart from the last 3 in the correct order. Here is my syntax; SELECT * FROM (SELECT * FROM $table ORDER BY ID DESC OFFSET 3) AS T ORDER BY TIME_STAMP The error I am receiving is: You ...

PHP script cannot be read in PLESK

Dear All, Any help would be appreciated since I really can't figure out what happen. I made some PHP scripts that are working normal locally, but when I upload into PLESK suddenly the code inside the tag is not being read and the same goes to the HTML code below it (only the html code that is above the php tag is being read). Thanks ...

Connect to a MySQL database and count the number of rows.

Hi there! I need to connect to a MySQL database and then show the number of rows. This is what I've got so far; <?php include "connect.php"; db_connect(); $result = mysql_query("SELECT * FROM hacker"); $num_rows = mysql_num_rows($result); echo $num_rows; ?> When I use that code I end up with this error; Warning: mysq...

vector holding read-only matrices?

I want to use a vector to hold read-only integer-matrices of the size 5x5 vector<const int[5][5]> startingPieces; But this declaration causes a bunch of weird errors I've never ever seen before. error C2535: 'const int (*std::allocator<_Ty>::address(const int (&)[5][5]) const)[5][5]' : member function already defined or declared 1> ...

What kind of good approaches do C++ programmers use for storing error messages?

Say I have a huge amount of code and have different kinds of error messages. For these, I want to have a separate place where I store error codes and error messages. For example, for an error that occured because the program could not open a file I store: F001 "Can not open a file." "The same error message in another language" "The s...

javascript error: variable is not defined

to is not defined [Break on this error] setTimeout('updateChat(from, to)', 1); I'm getting this error... I'm using Firebug to test and this comes up in the Console. The error corresponds to line 71 of chat.js and the whole function that wraps this line is: function updateChat(from, to) { $.ajax({ type: "POST", ur...

appcfg.py: error: no such option: --dump on google-app-engine

i follow this article :http://code.google.com/intl/en/appengine/docs/python/tools/uploadingdata.html and want to download all data from my app , but when i use the next code,it show error: D:\zjm_demo\app>appcfg.py --dump --app_id=zjm1126 --url=http://zjm1126.appspot.c om/remote_api --filename=a.csv Usage: appcfg.py [options] <action>...

PhysX SDK - error LNK2019: unresolved external symbol when compiling "wavefront.cpp"

Hi all, I'm using the PhysX SDK and I'm trying to load an .obj file with the WavefrontObj object which is defined by the files "wavefront.h/.cpp", localized in the samples directory. When I'm compiling my project, I got this error: 1>Linking... 1>wavefront.obj : error LNK2019: unresolved external symbol "char * __cdecl FindMed...

Has anyone else experienced keyboard errors with VS 2010?

Here's the situation: I'll be coding away in VS 2010, when all of a sudden the keyboard starts acting flaky. The up/down arrows will stop working, cut and paste keys will stop working, etc. The only way to fix it is to exit out of the IDE and then restart it (which is a pain). This will happen several times a day. I know the problem is ...

Fixing warning from git

I've been doing a workflow of making a git repository on a remote central repository, cloning that repo on my local dev machine, doing some work, and then pushing the changes back to the same repo on the remote server. However, and I believe this was after an update I did to git recently, after pushing up a change, I'm getting the follo...

javascript - dom searching for id returns an error - how to handle?

for (i=1; i<=4; i++) { try { timer = document.getElementById("timer"+i).parentNode.parentNode.parentNode.childNodes[1].childNodes[0].childNodes[0].className; } catch(e) { FM_log("aguardaReforcos()", "ERRO - timer"+i); } ... I have to it this way with try because otherwise I get...

Nhibernate Linq Error on Single or Default

I'm pulling my hair out over here and I'm not sure what's causing it. I have the following LINQ query: return Session.Linq<CandidateAccountEntity>().SingleOrDefault(p => p.UserName.ToLower().Equals(userName.ToLower())); and its throwing the following error: Index was out of range. Must be non-negative and less than the size of...

Python Nose Import Error

I can't seem to get the nose testing framework to recognize modules beneath my test script in the file structure. I've set up the simplest example that demonstrates the problem. I'll explain it below. Here's the the package file structure: ./__init__.py ./foo.py ./tests ./__init__.py ./test_foo.py foo.py contains: def dumb_tr...