Just one simple, specific question:
I've got the string {var1}12345{var2}, and I want to get the variable names used.
if (preg_match("/{([a-zA-Z0-9]*)}/g", $url, $matches)) {
print_r($matches);
}
If I remove the global flag, it works, but I only get the first variable, as expected. Why isn't it working with a global flag? It works when I'm testing it with the Regex Tester
After testing my app with Instruments I realized that the current CSV parser I use has a huge memory footprint. Does anybody have a recommendation for one with a low memory footprint?
lam1 = 0.0:0.1:4.0
lam = 1.60*lam1-0.30*lam1^2 for 0<lam1<=1
lam = lam1+0.30 for 1<=lam1<=4
I have a bunch of those. What would be the 'matlab way' of writing that kinda stuff, short of simple looping by indexes and testing the values of lam1 ?
I am writing a test harness in python and as part of the testing I need to initialise an FTP server and upload various files. I am using ftplib and everything is working ok. The only problem I have is that I am seeing loads of FTP text appearing in the console window intermixed with my test results, which makes scanning the results quite tricky. I haven't found a way to shut ftp lib up and stop this happening, does anyone know how to stop this?
I am testing an application on iPad Simulator and I need it to start my app in the position the simulator is but every time I run the app, the simulator rotates the simulator to portrait.
Is there a way to stop this behavior?
thanks.
I just want to see error insteas of asp.net showing me default error Server Error in '/' Application. What should i change in web config?
I used this,
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
Any suggestion i want to see errors in browser as i do live testing...
Seems a great C++ unit testing framework. I'm just wanting something a bit more sophisticated than the console output for running the test, also something that makes it really easy to run specific tests (since gtest supports all kinds of test filtering)
If there is nothing, I'll probably roll my own
I just got started with rails, and when I testing in development mode, I see in the logs that my Mailer action is taking 1175ms. Is there anyway to find out what exactly is the slow step?
Also, there is a line that says (View:2, DB:1). I assume the DB means number of database lookups, but what about the view?
I've been having a crack at some of the problems over at http://projecteuler.net/ with JavaScript. I've been using a simple html page and running my code in script tags so I can log my results in the browsers' console. When experimenting with loops I sometimes cause the browser to crash.
Is there a better environment for me to do this kind of development in, or anything I can do to allow me to carry on testing in the browser?
I'm testing boost::thread on a system. It happens that I needed to act as a fork(), because one thread modifies the other variables, even member variables of class
I do the project using fork() or is there some alternative still using boost::thread
Basically I run this program in Linux and maybe FreeBSD
Hi all,
I am learning JQuery.
In a HTML file, I got this:
<DIV ID="testing">
And I am trying to pass the ID of this DIV tag to a JQuery self-defined function:
<script>
$(function() {
$("div").mouseover(function() {
var ID = $(this).children().attr('id');
alert(ID);
});
});
But it wont work.
hi,
I came accross something very strange when i was testing my pages in FireFox.
The Adsense blocks are commented out (green) in firefox.
It does render however properly when i paste all the rendered code in a blank aspx page in the same project without using masterpage.
http://picpaste.com/problem.jpg
Here's a picture of the problem. As you can see on one of the pages the script code is green. How is that possible?
Hi! I have started to try out noSQL databases now and are currently testing out couchDB. Seems like a good solution, but I really get some headache when I follow available examples on how to create views (queries) to select documents from a database and sort them.
Everything I can find is regarding Javascript and it would be great to take part of some examples for PHP since that is the language we will use.
So, how do I create views using PHP for couchDB?
I'm writing an R package that's going to be used by others, so I'm trying to get this one right! I want to use roxygen for documentation and runit for unit testing, but I haven't used them before.
What packages exist (either on CRAN or elsewhere) that use either of these tools well?
I'm using sIFR 3 r436. When a page is reloaded, and often also on load, in IE8 the background image does'nt appear completely. When clicking on an intern link the background is displayed correctly.
Google Chrome has also minor problems in displaying.
This is the test document:
http://testserver.simplexontwerp.nl/sifr/
I have been testing a lot of different options, also older versions of sIFR, but nothing helps. It would be great if someone could help me!
Hi,
Has anyone encountered something like this?
I was expecting file.txt to be inside "testbranch/src/" folder after executing the command written command. But I get entry at "testbranch/src" to be a file type rather than directory type! In Web browser if I look under src folder of testbranch, it shows file contents of file.text.
svn copy "https://repos/svn/myrepo/trunk/src/file.txt" "https://repos/svn/myrepo/branches/testbranch/src/" -m "Testing"
I normally works in asp.net. But recently I was testing Google App Engine and I found TaskQueues: it's very interesting and powerful. Does anyone know a similar service for asp.net?
I know MSQueue but it's not what I need. I need something like GAE TaskQueue: I put an URL in queue and the URL is triggered (based on queue config).
The problem this time is to get the median of three values (easy)
I did this:
(define (med x y z) (car(cdr(x y z)))
and it was accepted but when testing it:
(med 3 4 5)
I get this error:
Error: attempt to call a non-procedure
(2 3 4)
And when entering letters instead of number i get:
(md x y z)
Error: undefined varia
y
(package user)
Using something besides x y z I get:
(md d l m)
Error: undefined variable
d
(package user)
the question was deleted dont know how anyway
write a function that return the median of 3 values
Hi,
I'm using Luntbuild with Subversion and would like to have our svn tagging environment specific (dev, testing, etc.) and I'm wondering if there's a way to use a variable in the VCS Adapters section.
I'm looking for something like this:
Directory for tags: tags/Builds/${env}/Service
Where ${env} is a variable I can set in the Luntbuild builders section or elsewhere. Does anyone know if what I'm wanting is possible?
Thanks.
Hi all,
I am learning Session function in CakePhp, and see some examples like this on cakePHP cookBook web site:
For example:
write($mysession1, 'testing')
I am not sure if a session can only hold up a particular thing in it.
Is it possible to write an array to a session like:
mysession[0] = 'Testing0';
mysession[1] = 'Testing1';
mysession[2] = 'Testing2';
hi,
i m doing my project in software testing. gnetic algorithm is the technique i want to use to generate automatic test data\test cases in matlab.
please help me in doing my project successfully.
thanks.
I want to have a seperate project that runs my server communication code in a normal JVM for the purposes of integration testing. This code uses these libraries which are build into the Android Framework...
http://developer.android.com/reference/org/apache/http/client/package-summary.html
Does anybody know what version of Apache HTTP Client this is supposed to be? I want to run it without the Android tests which are painfully slow.
Hi,
I'm now testing GKPeerPickerController.
I have a simple app that just have a button and do GKPeerPickerController on a device.
However, all it does is "Looking for other iPhones or iPod touches..."
I do have another device nearby with bluetooth turned on BUT without the app installed.
Does that other device also need to have the app installed?
Thanks,
Tee
I want to connect two computer via serial but for each to see each other via a TCP/IP connection. Ie, create new ethernet ports on the computers that are in actual fact serial ports.
The reason for this is that I am actually testing the medium in which the serial connection is made (wireless), and part of the experiment will be to use TCP/IP.
Preferably I would use something that I can configure (max packet size and setting serial delimiters).