Hello Everybody, I've got a problem:
I'm writing a new WebApp without a Framework.
In my index.php im using: require_once('load.php');
and in * load.php* I'm using require_once('class.php'); to load my class.php.
In my class.php I've got this error:
Fatal error: Using $this when not in object context in class.php on line ... (in t...
The topic of mine is face recognition using artificial neural networks using MATLAB code.
I tried my work by taking the images from web and started implementing the program by using neural networks.
By typing nprtool command in MATLAB ,i started training, testing and validating the images from database.
When i started to calculate the...
After asking this question:
how I can read the following files
using the for loop: (can the loop
ignore the characters in filenames?)
abc-1.TXT cde-2.TXT ser-3.TXT
wsz-4.TXT aqz-5.TXT iop-6.TXT
...
(In fact, I have 500 files)
What do I have to add at the beginning
of this loop ??
for i = 1:1:50...
When I run my program core.py (http://pastebin.com/kbzbBUYd) it returns:
File "core.py", line 47, in texto
core.mail(numbersendlist, messagetext)
NameError: global name 'core' is not defined
Can anyone tell me what is going on and how I can stop this error?
If it helps, the "import carrier" line in core.py refers to carrier.py (ht...
Why do i get an error when I try using _ instead of using a named identifier?
scala> res0
res25: List[Int] = List(1, 2, 3, 4, 5)
scala> res0.map(_=>"item "+_.toString)
<console>:6: error: missing parameter type for expanded function ((x$2) => "item
".$plus(x$2.toString))
res0.map(_=>"item "+_.toString)
...
Sometimes, while coding in PHP we get parse or syntax errors like those:
Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /var/www/example/index.php on line 4
I would like to know, if there is a list of all possible errors that PHP interpreter can output. I've searched php.net, but couldn't find such thing. I need...
I am trying to open excel 2003 workbook and save it as something else, for example excel 95.
I use the following code:
XLSApp:=TExcelApplication.Create(Self);
XLSApp.Workbooks.Open(SomeFileName,NULL,false,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,defaultlcid);
XLSWB:=TExcelWorkbook.Create(XLSApp);
XLSWB.ConnectTo(XLSAp...
check the database-generating sql (looks fine):
CREATE TABLE `HourOfDay` (
`id` int(11) NOT NULL,
`hourString` varchar(2) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
check the file system (it's there):
# ls -al Mycomp_test | grep -i hour
-rw-rw---- 1 _mysql wheel 0 Mar 1 08:13 HourOfDay.MYD
-r...
Hi all,
I'm developing a simple auxiliary class to send requests using XmlHttpRequest (code below). But I cant make it work. At google chrome, for example, I get the error INVALID_STATE_ERR: DOM Exception 11 and at the other browsers I get a status == 0
Thanks
//@method XRequest: Object constructor. As this implements a singleton, t...
http://joe-riggs.com/chip/
I'm working on the links at the very top - when a link is clicked I change the class so that it is evident which page you're on. I'm pretty sure it's the side and top borders that are causing this - to see it click on the 'contact' link and the links in between shift a few pixels to the side. Also the select...
I'm trying to expect an error in an rspec test.
lambda {Participant.create!({:user_id => three.id, :match_id => match.id, :team => 1})}.should raise_error StandardError
For now I'm just using StandardError to make sure it's working.
1)
StandardError in 'Participant should never allow more participants than players'
This game is alrea...
This is the page I'm working on... http://schnell.dreamhosters.com/folio/earthquake.html
Its purpose is explained via the instructions on the left. I'm finding that after doing so many searches and clicking so many of the links in the list on the right that the page freezes up, the Google Map stops working and Firebug tells me of an err...
The scala docs say that Enumeration.Val is ordered, however I get inconsistent behavior when when I try to enforce type restrictions on enumeration values requiring them to support ordering:
object Dogs extends Enumeration {
val Sam, Tom, Rover = Value
}
def doSomething[A <% Ordered[A]](a : List[A]) : Unit = {
println(a.sortWit...
While executing one of my C++ Application, I am getting a weird message on one of my Cento x64 box where at the same time another machine with similar configuration is perfectly running the Application.
Error message is:
/myapp: error while loading shared libraries: /myapp: wrong ELF class: ELFCLASS64
N.B: 'myapp' is not some shared ...
I deployed an asp.net website to a shared server.....
I got the error
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It coul...
We're using the Maven exec:java goal to run a custom java application that configures a database for use with our integration tests. We want to use exec:java over exec:exec to be able to use the project dependencies in the classpath of the main class to be used.
A few times the application has failed for valid reasons, but the Maven buil...
Hi
I am having a problem when using the ajax function in jquery. The ajax call seems to be running fine, i.e. the code that is returning an xmldocument runs without errors. Here is that code.
Jquery code:
function LoadWeekDays(){
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML("<data...
This is probably very simple but I can't figure out why I get no error pages.
First off, I'm using Heroku for hosting, so it's definitely in production mode.
If I set the line "config.action_controller.consider_all_requests_local" set to true, I get a detailed error message but otherwise, I get a completely 100% blank screen. If I vie...
The debugger threw me this error
UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
this is my code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = nil;
NSString *text = nil;
NSInteger secti...
I have a few functions like this:
$(this).find('.subnav').fadeIn(200, buttonHide );
Now, buttonHide, in this case, is a function I've declared elsewhere. Once the 200ms fadeIn is complete, I want to call that function.
Great. Works in FF and Safari. In IE, though, it returns an error as undefined. In fact, I experienced the SAME prob...