error

Using Passenger 2.2.5, why am I getting the following error on my Ruby on Rails page about an unreferenced "/" ?

Running: Apache 2.2.3 Ruby 1.8.7 Rails 2.3.4 Passenger 2.2.5 Error message: /var/www/derscheidfamily/app/controllers/greetings_controller.rb:14: syntax error, unexpected '/', expecting '\n' or ';' def app/controllers ^ /var/www/derscheidfamily/app/controllers/greetings_controller.rb:20: syntax error, unexpected '/', expecti...

iphone sdk - XML parseErrorOccurred: how to get rid of the illegal charaters when parsing in XML?

When pasrsing XML using NSXMLParser, I encountered this problem when the parser received some characters that it couldn't take such as: the auto-correct "..." or "--" in MSWord. My app reads XML which is exported out of my database from a PHP file. I wonder if I should handle this on the server side or on the iPhone SDK and How? any he...

variable-size type declared outside of any function

when declaring the two dimensional array int random[height][width]; and then using it in a function void populate(int random[height][width], int x, int y) gives the error variable-size type declared outside of any function. I know I'm doing something wrong, and that its something small. I just have a bad memory... ...

Error on creating connection to PDO in PHP.

Today, I removed and reinstalled the latest version of lampp in order to move to php 5.30, and suddenly a very simple app is failing to connect to the mysql database. I'm using PDO to connect, and receiving the following error: Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) in /h...

LSOpenURLSpec error

Hi, I have created a minimal OS X boot stick (basically the Snow Leopard DVD with all the packages and installer stripped out). I've written a basic Cocoa app launcher to launch other apps that I put in the Applications folder (the minimal install lacks Dock and Finder). When I try to launch an app I get this error: LSOpenFromURLSpec(...

How can I tell if I'm running on x64?

I just got a bug report for an issue that only occurs when the program is running "on a 64-bit machine." Now, Delphi doesn't produce 64-bit code, so theoretically that shouldn't matter, but apparently it does in this case. I think I have a workaround, but it will break things on 32-bit Windows, so I need some way to tell: If I'm runn...

cmath Errors when using FLTK

For some reason, whenever I add the FLTK directory to my include path, I get a bunch of errors from cmath. I am using GCC version 4.2. Here is a sample program and the build output: main.cpp #include <cmath> int main() { return 0; } **** Build of configuration Debug for project CMath Test **** make -k all Building file: .....

Test Projects Won't Load in VS08

When I try to load a solution, I get the following error: The project file [filepath] cannot be opened. The project type is not supported by this installation. After hitting OK twice, my solution loads fine except for the two test projects (the [filepath] above references these two test projects), which are greyed out. When I try t...

What is Error#1221 in Mysql and is basic problem in this SqlQuery?

I am using MYSQL5.1,Though I tried to find documentation for this but was unsuccessful,secondly I wanted to know logical error in the following query.. SQL QUERY SELECT date , month , Sum(fact_1) , ( 2 / Sum(fact_2) ) , 2 FROM( SELECT time.date, time.month, time.year, MAX(sales_fact.sell_out_value) as fact_1, 0 as fact_2 ...

ORA-12406: unauthorized SQL statement for policy

I am receiving the following error: ORA-12406: unauthorized SQL statement for policy I am executing a stored procedure that executes the following two Oracle Label Security stored procedures: SA_COMPONENTS.CREATE_GROUP SA_LABEL_ADMIN.CREATE_LABEL In the same transaction, but not the same procedure, I am trying to insert into a tabl...

Jquery Thumbnail Scroller IE Issue

Hey. I am needing to get a thumbnail scroller to use for a project. I am unsure how to do this myself but feel what I want is basic. I am looking to simply have a div with left and right arrows that scroll through an array of images. I am trying to use prettyGallery (http://www.no-margin-for-errors.com/projects/prettyGallery/) and I ...

SQL database interaction

Hello everyone, I am making a database, which will interact with a SQL table. What I have achieved so far: Add rows to the table. Delete rows from the table. Search rows from the table. Paginate the results. What I need to achieve: A log in prompt when a guest tries to access the page. In fact, I have successfully installed a ...

Significance of 'pagerror.gif'?

I'm getting strange hits to a non-existant file on my site called 'pagerror.gif'. From some basic Googling it appears to be a file that Internet Explorer looks for in certain situations. Can anyone verify that, and perhaps provide some additional information about when IE would look for that file? ...

Microsoft JScript runtime error: 'Sys.Mvc.AsyncHyperlink' is null or not an object

Hi I'm working on an asp.net ajax mvc application I used Ajax.ActionLink method to add a link for updating span context using ajax, here is some part of my code : ... <span id="status">No Status</span> <%=Ajax.ActionLink("Update Status", "GetStatus", new AjaxOptions { UpdateTargetId = "status" })%> ... but when I run application & c...

How can I get the call stack from a Fatal Error?

I'm getting a fatal "Call to a member function on a non-object" error in a PHP script, but I'm unable to track down exactly where this is happening, or why. The error message is pretty-much useless, as the line it describes works 99.9% of the time. Is there a way I can get the current call stack, trace what calls are being made before t...

Error with UIImageView

I have a compiler error and I just can't work out what is wrong. I am new to this so stuggling to decipher the error. In my .h I have... @interface LongViewController : UIViewController { IBOutlet UIImageView *loadImageInto; IBOutlet UIImageView *loadedInto; } -(void)fadeIt:(UIImageView*)imgNamed; And in my .m... -(voi...

Asynchronous callback "Async End called with an IAsyncResult from a different Begin method. Parameter name: result"

I can't figure out why this is. I have a connect method that works fine: public void Connect() { _client.BeginConnect(new AsyncCallback(this.ConnectCallback), _client); } public void ConnectCallback(IAsyncResult asyncResult) { ServerClient callback = null; callback = (ServerClient)asyncResult.AsyncState; callb...

Why does my Perl program complain about needing explicit package names?

I have a module Routines.pm: package Routines; use strict; use Exporter; sub load_shortest_path_matrices { my %predecessor_matrix = shift; my %shortestpath_matrix = shift; ... } From another script I call the the sub in the module, passing in arguments which happen to have the same name: use Routines; use strict; my %predeces...

[HAML] if else error

This is my code. I have a problem with spaces. I can not get the proper generation - if @lastday.nil? && @lastday != item.created_at.strftime("%d %b %Y") .daily-entry %h1.date =h item.created_at.strftime("%d") %span =h item.created_at.strftime("%b, %Y") -else .entry %h1 = link_to item.title, "/i...

ImageMagick OSX Snow Leopard bad CPU type

Installing imagemagick works. But when I try to run a command it says bad cpu type. What is this and how do I get rid of it so that it works right? N.b. I'm 'behind the times' and only using a core solo (if that helps) ...