Hello
I'm doing batch-testing on our win32 c++ programs. Some of them crash. What's the best way to catch those crash from the command line and report it?
thanks
Simple question but reading through documentation and configuration I can't quite seem to figure it out.
How do I A) know where hadoop is writing to on the local disk and B) change that
For initial testing I setup HDFS on a 20gb linux VM - to it we've added a 500gb networked drive for moving towards prototyping the full system. So now how do I point HDFS at that drive, or do I simply move the home directory/install with some slight change in setup and restart the process?
Guys i have developed a web application in jsp . I have many javscript validation for text validation in the jsp page.while during the testing , i enabled firebug in firefox and cleared a function that validates and submits to a servlet.The web application allows to submit garbage value of the textfiedl . how to overcome this ? any solutions?
I'm trying to compare two booleans :
(if (equal? #f (string->number "123b"))
"not a number"
"indeed a number")
When I run this in the command line of DrRacket I get "not a number" , however , when I
put that piece of code in my larger code , the function doesn't return that string ("not a number") , here's the code :
(define (testing x y z)
(define badInput "ERROR")
(if (equal? #f (string->number "123b"))
"not a number"
"indeed a number")
(display x))
And from command line : (testing "123" 1 2)
displays : 123
Why ?
Furthermore , how can I return a value , whenever I choose ?
Here is my "real" problem :
I want to do some input check to the input of the user , but the thing is , that I want to
return the error message if I need , before the code is executed , because if won't - then I would run the algorithm of my code for some incorrect input :
(define (convert originalNumber s_oldBase s_newBase)
(define badInput "ERROR")
; Input check - if one of the inputs is not a number then return ERROR
(if (equal? #f (string->number originalNumber))
badInput)
(if (equal? #f (string->number s_oldBase))
badInput)
(if (equal? #f (string->number s_newBase))
badInput)
(define oldBase (string->number s_oldBase))
(define newBase (string->number s_newBase))
(define outDecimal (convertIntoDecimal originalNumber oldBase))
(define result "") ; holds the new number
(define remainder 0) ; remainder for each iteration
(define whole 0) ; the whole number after dividing
(define temp 0)
(do()
((= outDecimal 0)) ; stop when the decimal value reaches 0
(set! whole (quotient outDecimal newBase)) ; calc the whole number
(set! temp (* whole newBase))
(set! remainder (- outDecimal temp)) ; calc the remainder
(set! result (appending result remainder)) ; append the result
(set! outDecimal (+ whole 0)) ; set outDecimal = whole
) ; end of do
(if (> 1 0)
(string->number (list->string(reverse (string->list result)))))
) ;end of method
This code won't work since it uses another method that I didn't attach to the post (but it's irrelevant to the problem . Please take a look at those three IF-s ... I want to return "ERROR" if the user put some incorrect value , for example (convert "23asb4" "b5" "9")
Thanks
How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing?
Update: Also, see this question on getting your app onto phones without using the App Store.
Is there a program out there or some other thing that will run some kind of virtualization for me or something, to test the hardware minimums for a program I write? Something I can do locally without install testing on, say, a 33 mhz 64kb ram IBM or something
I would like to know what are the open source and commerical tools for window Service Testing. Like memeory usage and code leakes etc ..
C# 2.0 - Window Service.
I have attempted bringing up a new farm and performing a stsadm backup/restore with no success. I have also tried doing a stsadm export/import with similar results.
I need to migrate/copy PWA to another server for testing purposes and I am at a standstill.
What is the best method to accomplish this?
Hi, say I have a string like so
Testing
How could I have it remove all spaces before the first letter, and all spaces after the last letter in the string.
Thanks!
This link links to an image:
http://pix-all.com/t/w
Every other browser displays this image, only IE forces to download it.
The correct headers are set via PHP.
Is odd though that it works on my local testing server.
Any ideas why?
I have inlcuded a JQuery Lightbox plugin on my first site and for some reason it is not showing the gallery images on click. the first one works but the others are blank.
I built the site in Dreamweaver and it worked fine in testing on Safari and Firefox but the live version isn't playing ball.
Any suggestions.
I'm looking for a good example of reading and writing to the Windows Registry using VB6.
Yes, I know there are lots of mediocre examples. I spent an hour googling and testing. Some were incredibly complex, others had only some of the functions, and almost none of it had been vetted in any way (voted on).
Since Stack Overflow is intended to the canonical location for answers to programming questions, it seems reasonable to post it here.
facebook has the facebook credit and I knew that they are testing on pay by facebook.
anyone know where can I find the API for that? I search in the facebook developer wiki and cannot find anything. Thanks. :)
Is there a way to temporarily change the scrollbar width in FF or IE while I'm testing some layout code? I remember reading something a while back about this being related to resolution, but it was a while back can't remember the details.
Is there a setting in FF or IE to temporarily change scrollbar width?
I try in a test version of DBArtisan to set up a datasource and register
both servere as localhost, database to use, my username and password,
but, when testing the connection, I get message that connection failed.
Hooking up from eg. Delphi and other utilities run nicely. But not
DBArtisan,
Is MySQL 5.0 not supported yet ??
Or is it WAMP that is the culprit naming the service wampmysqld insted of just mysqld ??
I made a prolog program posAt(List1,P,List2) that tests whether the element at position P of List1 and List2 are equal:
posAt([X|Z],1,[Y|W]) :- X=Y.
posAt([Z|X],K,[W|Y]) :- K1, Kr is K - 1, posAt(X,Kr,Y).
When testing:
?- posAt([1,2,3],X,[a,2,b]).
I expected an output of X=2 but instead I got the following error: ERROR: /2: Arguments are not sufficiently instantiated
Why am I getting this error?
I have an application that has drag and drop functionality to import images and video's. While developing, and testing through Visual Studio this has never given any problems.
After installing through a set up project, everything in the application works fine, except the drag and drop, which seems to be doing nothing. Are there any security settings that need to be set through an installer, or something of that nature that could be preventing drag and drop after installation ?
I have a String[] with values like so:
public static final String[] VALUES = new String[] {"AB","BC","CD","AE"};
Given String s, is there a good way of testing whether VALUES contains s?
Have you ever gone through a painful switch from one technology to another, only to switch back later in a project's lifetime?
Was it because the technologies evolved differently than you expected, or because of something you didn't understand about them in the first place, or because they didn't fly when it came to beta testing or production?
Did you regret the switch back too?
How do I programatically set the value of a static boolean in another app domain?
I'm testing an application where I need to change a bool value. Problem is that the bool value exists as a static instance on a type hosted in another app domain.
(I'm doing this for test purposes, it won't be used in production code)
I have a dev project setup in a subfolder on my testing machine and it must stay there.
However all the Zend frameworks views are linked to server root.
CSS are linked like:
<link type="text/css" href="<?php echo $this->baseUrl('/css/frontend.css') ?>" rel="Stylesheet" />
Which must be stayed this way, but it should link to
localhost/a/b/c/prj1/css/frontend.css
How can I setup a global subdirectory for this?
Hi!
I'm configuring a DRUPAL site web (that it was previously created) and I'm testing the diferent options.
When I create a new content or edit a old content and change anything and then I click on 'Preview' doesn't appear the recent changes (just appear the old values), I have to save it before.
NOTE: I do the accions as ROOT (it not a privilege problem).
Anyone knows what is happened?
Hello,
I need to know the current keyboard type. I was setting an instance variable in
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
However, testing has shown that this is not always reliable because of the asynchronous nature of notifications.
What I am wondering is if anyone can tell me how to determine the current keyboard type within
a notification?
- (void)keyboardDidShow:(NSNotification *) {
// Need way to determine keyboard type here
}
Thanks.
Hi,
I want to reference a win32 dll from my Qt application. I've added the dll location in the .pro file at "LIBS+=" . Once that is done, by right, i should be able to include the .h file inside the dll from my application. But i'm unable to do so.
I'm testing with the dll here: http://www.flipcode.com/archives/Creating_And_Using_DLLs.shtml
Any help would be appreciated!
Thanks
I am using Htmlunit (browser automation/testing tool) to go through a series of links or perform a set of actions on a page.
At some point after this I want to see the resulting page in a browser (internet explorer or firefox etc.)
How can I do this. ? Thank you Friends...