can´t add fixtures to classpath - fitnesse

I´m porting FitNesse´s Slim-server to Qt and I´ve encountered a little problem.
I can´t seem to tell my new Slim-Server where to get the required fixtures.
Now there´s the possibility to add a path using
!path C:\path\
but this doesn´t seem to work for Slim. It doesn´t add anything to the command-line and it doesn´t send an import-instruction to my Slim-server. I do get every other instruction though, so my server isn´t the problem.
So now I need another way to either modify the command-line calling Slim or sending an import-instruction... any ideas?
EDIT: I tried import tables and got it working now. I´m still interested why the !path-thing didn´t work though.

Put %p in your COMMAND_PATTERN and the path definitions will be placed there in the command line that executes your server.

Related

Custom Command Line in Dart

I remember seeing an article or example about custom command line in dart, but I can't find the example that I saw.
I want to create an application that looks like a terminal but is actually a full application.
If you know where this custom command line example is, or can provide your own example, that would be greatly appreciated.
Basically, I want to create my own "Powershell" application, but in dart.
The documentation for command line apps should give you everything you need to get started.

Erlang error codes, need more details

I am trying to use the file:open(....) function in erlang but it doesn't seem to work. I keep getting an {error, eio} exception.
Ive looked into it in the erlang documentation and all i have found is that it is the posix error for input/output... go figure.
The file name im outputting in is in the formation of "C:/directory/file.txt"
Im not sure if this has something to do with it.
Is there anyway i can make erlang give me a more specific explanation to what is wrong?
Thanks,
Jack
Unfortunately I do not know of a way to find out more without peeking inside the Erlang/VM.
If you look in the windows erlang source code there are a bunch of different errors which could cause en eio error. You can find a list of them here. In order to figure out which specific one it is, I would attach with windbg and step through the code as instrumenting and recompiling it on windows is a pain.
You might also be able to use something like Process Monitor to find out which system calls are being made and what they return.

How to avoid conflict between Jquery-ui Autocomplete and PHP Selenium WebDriver functional test when typing an ampersand?

I'm writing a functional test in PHPUnit using Selenium WebDriver.
I need to do this:
$searchBox->send_keys("bath & body");
to simulate typing into a text box.
When I run the test, I see it type bath body instead, skipping the ampersand.
I eventually narrowed the problem down to one part of Jquery-ui Autocomplete that was interfering. The source option.
If I temporarily remove the 'source' option, the test runs fine.
All other javascript could remain in place and work fine.
Of course it doesn't make sense to remove the 'source' option; it's required.
Does anyone know what the problem is and whether there is a workaround?
P.S. This question started here: https://stackoverflow.com/a/11957421/470749
I've got the same problem on java.
Resolved it by define a new String like this:
String amp = Keys.chord(Keys.SHIFT, "7");
the code will simulate the key combination SHIFT+7 avoiding the issue.
Don't know how realize it on PHP, but hope it could be useful to you.

Web Part Deployment in SharePoint

I've built a web part and after several deployments to a specific site, SharePoint suddenly won't give the option to deploy to a specifi site, a message is immediatelly displayed that the solution is deplyed globally.
I don't know what I did to cause this. I've been useing stsadmn -o addsolution method, except once when when I tried to just run the Setup.exe file.
Anyone has any idea why is it happenning and how to correct this.
Thanks,
EJM
First make sure to retract the solution (with stsadm), if it doesn't work, use -force/-override, and then delete with the same.
Than try to do it again, and it should work.

Debugging Django Admin Template Resolution

Can someone point me to the code or a way that I can say print to screen which admin template is being used?
It happens many a time when I am replacing a admin template for an model that I add the template and hit the page and bham... still the same template.
Usually its a case issue or something like that... but it takes me a while if I get stumped to realise what my issue is.
Can anyone suggest an approach, be it put print statements in django code to show which template is getting resolved?
Regards
Mark
Use the django-debug-toolbar, it has a tab that shows all the template_s_ (plural) that are used.
If you run Django's development server from the command line, you can definitely just use print statements to find out which template is being used. You can also use the FireBug plugin for Firefox to figure out what the server is sending back to you.

Resources