fail

php smarty not passing to browser unless logged in.

I'm not the best at understanding these things with php and smarty, but this is really annoying. On: http://www.euroworker.no/order, there is meant to be a display of the amount of tax included in the price like: Tax (25%): 772,- Totalt: 3861,- But unless the user has logged in or created a new account, the tax doesn't displa...

How can I do such a typical unittest?

This is a simple structure in my project: MyAPP--- note--- __init__.py views.py urls.py test.py models.py auth-- ... template--- auth--- login.html regist...

CSS Graph- Bars not showing correctly

I'm trying to create a CSS/HTML based graph using this tutorial here. However instead of putting the data directly into the html code I'm importing it from a CSV file using PHP with the following code. <?PHP /* Open CSV file */ $handle = fopen("defects.csv", "r"); $c = 0; /* gets data from csv file */ while (($data = fgetcsv($hand...

jquery: is there a fail handler for $.post in Jquery?

When $.post succeeds, there is a success handler for it. What happens if it fails? Is there a similar handler that we can use for this case, so that we can inform the user that something is not happening right? ...

PayPal IPN "FAIL"

Hey all... I'm trying to figure out how to use PayPal's IPN and I've run into a wall. I want a buyer to be forwarded to a success page after making a purchase, and I want that page to show the details of their transaction. I choose IPN instead of the PDT because I also want to do some other behind the scenes stuff with their data. Any...

Prolog, fail and do not backtrack.

Is there any build-in predicate in SWI-Prolog that will always fail AND prevent machine from backtracking - it is stop the program from executing immediately (this is not what fail/0 does)? I could use cuts, but I don't like them. Doing something like !, fail is not a problem for me, but in order to accomplish what I want, I would hav...

Execute a default task in ANT in case of failure

Hi, I'm currently using ANT for building my Java project on a Windows XP machine. In my build.xml file I've defined 3 task and I would like that,in case of fail,a default task be executed before closing the building and exiting (like a recovery procedure). I would like to know if it's possible. thanks ...

PHP doesn't run through Snow Leopard Web Sharing

I've followed all the tutorials and uncommented the relevant lines in httpd.conf, but PHP files do not render under Web Sharing. The server just serves up the source code instead of running it. I know that PHP works, because I can run it straight from the Terminal using the "php" command. What is happening here? ...

problem starting with zend framework

Hi guys, I downloaded the zend framework 1.10 full. Unzipped, rename this folder to zf. I am going to use zend framework as independent, will only call loader and include libraries when needed. I put the unzipped zend framework into http://localhost/r/zf Then from r/test2.php I put these code to do test call, but it fail. Anything I ...

[php] get socket error string when async connect fails

hi all anybody knows if its possible to retrieve some error info (like getsockopt SO_ERROR in C) if an async connect like the following fails btw: im not using the socket extension cause streams provide an ssl wrapper <?php $ctx = stream_context_create(); stream_context_set_params($ctx, array("notification" => "stream_notification_call...

actionscript 3: Loaders silently fail on error prone connections

Hello, Our Flash app has to load 50 or so files from a remote destination. Under normal network conditions, this is no problem. However some of our users started to report that the application "stopped working" during the loading phase. After some tests where we decreased the network quality to a point where 1 out of 3 packets were dr...

(hibernate) table altered after failed commit

I'm new to hibernate. I have a transaction that fails with a HibernateException, yet the table is altered after the commit. Here is the code: public StoreResult store(Entry entry) { Session session = HibernateUtility.getSessionFactory().openSession(); Transaction transaction = session.beginTransaction(); try { ...

TypeError: unbound method __init__() .... during unit tests after re-packaging

I've just repackaged my program. Previously all modules lived under the "whyteboard" package, with a "fakewidgets" package containing a bunch of dummy GUI test objects. Now, all my modules are in packages, e.g. whyteboard.gui, whyteboard.misc, whyteboard.test - which is where fakewidgets now lives. Now, when running my tests, I get an ...

Android temperature conversion force close

I have an app which has a section that needs to convert the temperature from Celsius to Fahrenheit, but for some reason on only a couple phone models (like the htc desire and Sony Ericsson X10) it crashes at this part, but I have no idea why. can anyone help? double cel = x/10; finalTFF = 9.0f/5.0f * cel + 32.0; DecimalFormat twoD...

Legal implication in exploiting a security hole

Please refer to the answer provided here. Just wanted to understand what are the legal implication if someone really exploited such a security hole to disrupt the system. Will he be legally charged for such act, and what kind of punishment / penalty will be levied. As Cyber laws differ from country to country, please refer to the loca...

OpenID : fail Yadis discovery on Yahoo.com with Janrain

Hello all, I have the latest version of Janrain's library (v2.2.2) for OpenID. The following endpoints will work : https:// me.yahoo. com/user http:// www.google .com/accounts/o8/id http:// user.myopenid. com But if I only use "yahoo.com", it will fail. The example given with the library also fails. Does anyone have the same issue...

WebView Inside TabView fail.

I have been trying to add a WebView inside one of the tabs in TabView but it isn't working. When I go to the other tabs i just have TextViews and they work fine, but as soon as I click the tab with the web in it, error it closes unexpectedly. here is my search_result.java that has the tabview package supa.mack.doppler; import android.a...

How to check if iframe fails to load? jquery?

I have this jquery code right now and it's working fine. What it does it when a user clicks the submit button, it would hide the form, show the loader, then submit the data to a link and load the output in an iframe. $(document).ready(function() { $("#xxx_form").validate({ submitHandler: function() { $('#input_form').hide(...

Ajax requires user to submit information multiple times before it is recived and logged

Hi! I'm having a little problem getting my data to submit. I'm trying to make a simple chat box using PHP and Ajax, but whenever I try to submit data it will only post after it has been submitted several times. I'm hoping somebody could tell me the problem with me code. I'm a very novice coder and this is my first time using this site s...

Oracle scheduled job fails

Hi I am using Oracle 10g and using following script to create the job CREATE OR REPLACE PROCEDURE archtemp AS BEGIN UPDATE ARCH_TEMP SET ARCH_DATE = SYSDATE; COMMIT; END archtemp; VAR jobno NUMBER; BEGIN DBMS_JOB.SUBMIT(:jobno, 'archtemp;', SYSDATE, 'sysdate + 1/1440'); COMMIT; END; The job never executes automatically...