Anyone has experience measuring glibc regexp functions?
Are there any generic tests I need to run to make such a measurements (in addition to testing the exact patterns I intend to search)?
Thanks.
Hi all, I have an method in the tableview controller class. It consists few of the UIColor and UIFont class names. I am unit testing that metohd. But when i build that test target i am getting this error: "/Developer/Tools/RunPlatformUnitTests.include:451:0 Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/Developer/usr/bin/otest' exited abnormally with code 133 (it may have crashed)."
Any idea about this? Thanks in advance.
I'm looking for arguments as to how best to size the young generation (with respect to the old generation) in an environment where low latency is critical.
My own testing tends to show that latency is lowest when the young generation is fairly large (eg. -XX:NewRatio <3), however I cannot reconcile this with the intuition that the larger the young generation the more time it should take to garbage collect.
The application runs on linux, jdk 6 before update 14, i.e G1 not available.
My google-fu is failing me on this one.
As a possible solution to http://stackoverflow.com/questions/1679404/unit-testing-net-3-5-projects-using-mstest-in-vs2010 (but I've put this in a seperate question because it's kind of unrelated):
Is there any information available regarding if/when .NET 4.0 support will be added to Windows Azure?
Cheers!
I've used this formula in Google Spreadsheets in the past to input the number of search results into a cell. The formula's not working anymore and I know I need to fix the xpath query.
any ideas?
Current formula:
=importXML("http://www.google.com/search?num=100&q="&A2,"//p[@id='resultStats']/b[3]")
Spreadsheet for public testing:
https://spreadsheets8.google.com/ccc?key=tJzmFllp7Sk1lt23cXSVXFw&authkey=CM625OUO#gid=0
I am using SOAP UI 3.0.1 for testing my web service which returns a byte array. I want to save the byte array as a word file. How do I accomplish it using Groovy Script or any other way?
The web service response is,
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAA...............................
Hi all,
I have a fairly simple question: In Javascript how can I return the boolean (if its found in the JSON) rather than the actual value?
Example:
var myJSON = {
"foo" : "bar",
"bar" : "foo"
};
var keyToLookFor = "foo";
var found = myJSON[keyToLookFor];
if (found) {
// I know I can test if the string exists in the if
}
// but is there a way I could just return something like:
return found;
// instead of testing found in the if statement and then returning true?
messagecontroller is nothing but object of initialize nib file.
[self.navigationController pushViewController:messageController animated:YES];
this statement executes in normal condition
this statement also works on state maintainace testing ,
this line executes properly but not open new view ,why?
i designed a software for testing work flow in lotus 8.51. i ran the program and it worked fine, but i found a single oddity in the application when i switch location to switch user id on my PC, the data i inputted in one location differ/not exist from the other one.
could you suggest something to correct this?
Hi,
I'm testing a very simple WCF-Service with REST functionality enabled.
It works fine on IIS, but the VS2010 debug webserver always says "The resource cannot be found" when appending the parameter after the .svc file in the browser uri.
Is this a known issue with the asp.net debug webserver that it cannot work with REST or am I doing anything wrong? (again: with IIS, it works)
Hi! I'm writing a little website (webapp) in php+codeigniter, I'd really like to make it open source (to attract collaborators and to have a free VCS hosting).
Is that a good practice?
This mine security?
Which are the best tools to change important data before uploading? (like config files with db names and passwords used for testing etc..)
I'm using Firebug 1.5.2 and while testing a site before production release i can see a huge amount of time consumed by 'Blocking' parts of the requests.
What exactly does the 'Blocking' mean?
I am testing out webhooks and I created a postbin test url and I am trying to create a webservice that would listen to the postbin url and be able to get the values out of the post, but I am not sure how to do this: My sample postbin url could be http://www.postbin.org/abcdef
I'm looking at the pros and cons of these three primary methods of coming up with primary keys for database rows.
So assuming I am using a database that supports more than one of these methods, is there a simple heuristic to determine what the best option would be for me?
How do considerations such a distributed/multiple masters, performance requirements, ORM use, security andtesting have on the choice?
Any unexpected drawbacks that one might run into?
I'm testing a Person class that models a person with name, address and date of birth.
How do I set dob (date of birth)?
This doesn't work:
Person a = new Person();
a.setDateOfBirth (01/08/1985);
Hi! I'm just wondering if it's possible to comment out IE conditional comments themselves (for testing purposes)? The following does not work:
<!-- <!--[if IE 7]> some code <![endif]--> -->
Thanks in advance! flexx
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?
How to write Performance Test for .Net application? Does nUnit or any other Testing framework provides framework for this?
Edit: I have to measure performance of WCF Service.
Should multiple developers work within the same branch, and update - modify - commit ? Or should each developer have his/her own each branch exclusively? And how would sharing branches impact an environment where you are doing routine maintenance as opposed to unmaintained code streams? Also, how would this work if you deploy each developers work as soon as it is done and passes testing (rapidly, as opposed to putting all of their work into a single release).
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
using 1.3.4 - wsgi middleware is not being installed.
i have appengine_config.py at the same level as app.yaml, with the following (for testing):
"""Configuration."""
raise Exception("hello")
def webapp_add_wsgi_middleware(app):
return app
the exception is never raised. am i missing something?
Hi,
I am writing a small shooting game using cocos2d. It's working good in simulator.
But when testing in the device, the animations of sprites are slow and they are stucking. The images I used are CCSprites. And I used CCAnimation for the animation of the images. Why the game acting different in simulator and device ?
Thank you.
I am working on a site and it works/looks great in Safari, Firefox, Chrome and IE8. For some reason when testing it in IE 6 and 7 the jQuery does not work (the images are there but static) I get the following error message:
Internet Explorer Script Error.
Line: 38
Char: 1
Error: Expected Identifier, string or number
Code: 0
Can someone help me out with this? Internet Exploder is killing me....
Hi, I am creating andtesting a mysql join query but each time so far it causes the database tables to lockup and the site hangs. I have to then call the host and they kill the locked queries.
Is this something I can do from phpmyadmin so not to bother them while I tweak the script to work? Thanks for any reply.
Can anyone recommend some start to finish project tutorials that really emphasize good design principles and best practices. I am looking for things that demonstrate and emphasize any or all of these:
Domain Driven Design
Unit Testing
Inversion of Control
Separation of Concerns
Use of interfaces
Object Relational Mapping
Preferably ASP.NET MVC
I am currently watching the Autumn of Agile series, which demonstrates many of these principles. I would like to find more of these tutorials/demos.