I am writing a selenium test and I need to assert that the page is redirected. How should I verify this?
I am using PHPUnit and the PHPUnit_Extensions_SeleniumTestCase.
I am currently looking at some JProfiler traces from our WebSphere-based application, and am noticing that a significant amount of CPU time is being spent in the class com.ibm.io.async.AsyncLibrary.getCompletionData2.
I am guessing, but I am wondering whether this is PMI-related (and we do have this enabled).
My knowledge of PMI is limited, as…
As the first stage of a larger grammar using Boost.Spirit I'm trying to parse "true" and "false" to produce the corresponding bool values, true and false.
I'm using Spirit.Lex to tokenize the input and have a working implementation for integer and floating point literals (including those expressed in a relaxed scientific notation), exposing int…
In ruby, is it possible to specify to call another ruby script using the same ruby interpreter as the original script is being run by?
For example, if a.rb runs b.rb a couple of times, is it possible to replace
system("ruby", "b.rb", "foo", "bar")
with something like
run_ruby("b.rb", "foo", "bar")
so that if you used ruby1.9.1 a.rb on the…
In a C# form, i have a panel anchored all sides, and inside, a textbox, anchored top/left/right.
When text gets loaded into the textbox, i want it to auto expand itself vertically so that i don't need to scroll the textbox (scroll the panel at most, if there is more text that doesn't fit the panel).
is there any way to do this with a textbox?…
In the iPod app on the iPhone there is a UIBarButtonItem in the upper right toolbar that flips between the song and track listings for the album. When you select the button, the button itself does a flip animation.
Is there a way to do this with:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil…
In ruby, is it possible to specify to call another ruby script using the same ruby interpreter as the original script is being run by?
For example, if a.rb runs b.rb a couple of times, is it possible to replace
system("ruby", "b.rb", "foo", "bar")
with something like
run_ruby("b.rb", "foo", "bar")
so that if you used…
Hi. I've replaced properties file for Spring ApplicationContext using Ant, properties replaced correctly, and immidiately after Ant taskCalled, only after that first ApplicationContext call will be, but application context gets old property values
Say I have this list
List<string> sampleList = new List<string>
{
"C:\\Folder1",
"D:\\Folder2",
"C:\\Folder1\\Folder3",
"C:\\Folder111\\Folder4"
};
I'd like to remove the paths that are contained in other folders, for example we have C:\Folder1 and C:\Folder1\Folder3
the second entry should go…
Not strictly a question, more of a puzzle...
Over the years, I've been involved in a few technical interviews of new employees. Other than asking the standard "do you know X technology" questions, I've also tried to get a feel for how they approach problems. Typically, I'd send them the question by email the day before…
My views extend a base view class ive made:
public class BaseView : ViewPage
At the moment im calling ObjectFactory.GetInstance inside this class' constructor to get some interface implementations but id like to use structuremap to inject them as constructor arguments.
Im using a structuremapcontrollerfactory to…
I publish discount offers for my city. Offer models are passed to template ( ~15 offers per page). Every offer has lot of items(every item has FK to it's offer), thus i have to make huge number of DB request from template.
{% for item in offer.1 %}
…
Can someone give me simple code to help with creating an HTTP server for the iPhone. Something simple with much documentation would be appreciated. Anything you have please share.
Hi, I am trying to do some C# SOAP calls and can't seem to get any good examples on how to do it. I read an old question of mine about a SOAP call in PHP and thought maybe asking you guys to rewrite it in C# would be a good place to start.
Here is the PHP code:
$client = new…
Edit: Ok so I learned that I guess I need an distributed source control, however are there any UI based ones, and do they allow you to merge with other users on the network?
This is kind of a two part question, so here it goes. I want to start developing a web application at…
I'm currently using a modified CSS Cacheer as an alternative but its syntax is somewhat vague and adoption is, well, abysmally low... Documentation is hard to come by as well.
I'm looking to switch to SASS as it has a bigger user base than CSS Cacheer and better…
I have a modeled a set of objects that correspond with some real world
concepts.
TradeDrug, GenericDrug, TradePackage, DrugForm
Underlying the simple object model I am trying to provide is a complex
medical terminology that uses numeric codes to represent…
I need to ship some Java code that has an associated set of data. It's a simulator for a device, and I want to be able to include all of the data used for the simulated records in the one .JAR file. In this case, each simulated record contains four fields…
My setup:
I have a sqlite database from which I populate a NSMutableArray of NSDictionary objects this is the DataSource for my NSTableView.
One of the columns holds "time", the time is a float that holds seconds.
I would like to display the values in…
Essentially, I'm working on asynchronously downloading images and adding them to specific UITableView cells (twitter profile images using MGTwitterEngine from Matt Gemmell).
I've looked at general asynchronous download code and must admit, I'm still too…
I am in a group of people who are creating a Defect Tracking program as a project. We have been using Active Objects and have run into some issues. Currently maximum file size for the blob is approx. 2Mb but we want to be able to increase it up to 2Gb.…
I am using a crystal reports through crystal report viewer server side control in a webform.
I am using a webform because the crystal report viewer provides an easy way to export to PDF and to Excel.
My problem is that when I deploy to the server, the…
Hi, what would be the best way to remove whitespace only around certain character. Let's say a dash - Some- String- 12345- Here would become Some-String-12345-Here. Something like sed 's/\ -/-/g;s/-\ /-/g' but I am sure there must be a better way.
…