error

php parse error

hi guys, this was working for me for the last couple of days until this morning when I must have changed something by accident. I thought I changed back everything but it's still not working. This is the error I'm getting Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\xxxxx\reg.php on...

Javascript Syntax Error

Can anyone figure out why this is throwing a syntax error? All of the code looks correct to me. <script type="text/javascript"> var rootdomain="http://"+window.location.hostname; function ajaxinclude(url) { var pagerequest = false; if (window.XMLHttpRequest) // if Mozilla, Safari etc pagerequest = new XMLHttpRequest(...

JQuery does not work in IE

Hello, I looking more for 'how to troubleshoot' rather than.. the answer is this. Though I obviously wouldn't mind an answer. Here is my JS. function listFiles(path) { document.path = 'dir='+path; $.ajax({ url: "<?php echo site_url("admin/media/get_folder");?>", //data: document.path, ...

cakephp-mssql integration:how does it works

I am newbie in cakephp world when i am trying to configure cakephp with ms-sql, I am not able to connect to database. php-mssql configuration is working fine for me( though for that i uses ADODB connection ) . But nothing worked for cakephp. I searched a lot on google but none of the ways are working for me. Thanks, Ankur ...

Why should I check that an array key exists before trying to access it?

I have turned on error_reporting(E_ALL) and run this code: $topic_id = (int) safe_query($_GET['top_id']); if($topic_id > 0) include("topic.php"); And get this error: Notice: Undefined index: top_id. Is it that bad what I do? If yes then why? Should I check if $_GET['top_id'] isn't empty before I give its value to $topic_id? Why? ...

How best to store VERY large 2D list of floats in c++? Error-handling?

I'm migrating some code from c to c++. I've changed some malloc calls for structure memory allocation to new calls. Basically before the code I'm porting was malloc'ing arrays that contain multiple sets of frame coords, each a couple hundred thousand floats in length -- so the total array length could be in the tens of millions of co...

Bundler can't find Ruby gem that appears on website

I installed Bundler on a pre-Rails 3 application and am trying to use it to install gems. My Gemfile contains the following lines: source :rubygems [...] gem "RubyInline", "3.8.1" However, when I run bundle install I get this error: Fetching source index for http://rubygems.org/ Could not find gem 'RubyInline', required by 'memcache-...

App stalls - no crash, no error

It is worth noting that this part of the app (this option from the main menu) was working perfectly before. I then programmed the next option from the main menu, and now this one is not working anymore. I know the code I've written works, but there is something wrong with either the class or the xib, because it worked when I switched it...

php memcached error

Every time I try to use the add() function for memcached, I get the following error: A PHP Error was encountered Severity: Warning Message: MemcachePool::add(): The lowest two bytes of the flags array is reserved for pecl/memcache internal use Filename: libraries/memcached_library.php Line Number: 92 What could be wrong? I'm using...

Is there an error in this jquery file?

$(document).ready(function(){ /* fetch elements and stop form event */ var submitData = $("form.follow-form").submit(function (e) { /* stop event */ e.preventDefault(); /* "on request" */ $(this).find('i').addClass('active'); /* send ajax request */ $.ajax({ type: "...

includes inside a namespace

Hi All Is the following approach correct? Well i get a compilation error. a.hpp is #include <iostream> class a { public: void classa_f(); }; a.cpp is #include "a.hpp" void a::classa_f() { std::cout<< "a::classa_f\n"; } main.cpp #include <iostream> namespace myname { #include "a.hpp" } int main () { myname::a ...

How to test the throwing of errors in racket?

Hi Everyone, I'm currently working in some racket programs, specifically in the PLAI's language of the Programming Languages: Application and Interpretation Book, and there is a function called test, i was wondering how to test the error throwing in racket? Does anyone knows how to do this? Greetings (I'm not a native english speaker,...

python's mechanize wont properly parse a form

I'm trying to submit a form using python's mechanize but it wont properly parse the form in question. There are 4 other forms, which are parsed correctly except for this one form. The form is properly parsed in perl's www::mechanize though but i'd like to stick with python. Is there anyway of retrieving the html of the page and editing...

C++ LNK2019 ( between project classes )

Hi, I have an very strange error : When i want to use the SocialServer::Client class from my SocialServer::Server class the linker threw me 2 LNK2019 errors : Error 1 error LNK2019: unresolved external symbol "public: void __thiscall SocialServer::Client::Handle(void)" (?Handle@Client@SocialServer@@QAEXXZ) referenced in function "priva...

Jruby socket error

Hi all! I'm useing netbeans and Jruby. When I want to build a project I got the following message: SEVERE: library `socket' could not be loaded: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jruby/ext/socket/RubySocket" Can anybody help to me what could be th...

How to define error bar in Matlab

Hi, I would like to define error bars on both ends for matlab. Usually, the example of matlab would be http://matlab.izmiran.ru/help/techdoc/ref/errorbar.html where the error bar would take the standard deviation (E) and make it equal(symmetric) on both ends. I would like to define two points specifically apart from plotting the exact...

What's this Spring error and how to fix it

Sep 17, 2010 3:32:50 PM com.springsource.tcserver.security.PropertyDecoder <init> INFO: tcServer property decoder has been initialized. Sep 17, 2010 3:32:51 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:t...

SQL data is not stored on iphone

Hey, I have been following this tutorial on embedding SQLITE in my iPhone App. The thing is, when adding a new object into the SQL DB everything is fine, but, as soon as i change anything (e.g.) the name of the entry, and then restart my app, the new name is not saved. Since I couldn't find a similar issue nor have I been working with ...

Web page does not open

Sep 20, 2010 11:22:43 AM com.springsource.tcserver.security.PropertyDecoder <init> INFO: tcServer property decoder has been initialized. Sep 20, 2010 11:22:43 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server...

Why can't I build Perl modules that load Socket.so on Solaris 10?

I am trying to build Convert::ASN1 module but I get an error in the process. I am using Perl 5.12.0 on Solaris 10. perl Makefile.PL runs without trouble, same for make, but 'make test' throws this error: MOST CRUCIAL PART OF IT IMO: t/00prim.t ....... Can't load '/usr/local/lib/perl5/5.12.0/sun4-solari +s/auto/Socket /Socket.so' for mo...