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.
How can I create a virtual HID device in code? I'm trying to avoid writing a kernel extension to accomplish this, but it seems to be the only way. I need to be able to create virtual HID devices of all types, and have an app running in the background feed them events. Is there a way to do this in user-space, or must I venture into kernel land?
I am writing a java application that uses joda time displays a calendar which highlights public holiday dates. I need to find a way of obtaining the dates for "good friday" and "easter monday, which depend on the lunar calendar.
Does anyone know a good way to do this?
Note: I can't use online API's to retrieve the holidays.
Thanks in advance.
I use a sheet with 3 NSTextFields and a Cancel- and OK-Button to edit the attributes of a Core Data Entity.
The text entered in the NSTextFields is only updated in the Core Data Entity if i press Tab or Return after writing in the NSTextField or if i focus another NSTextField with the mouse. If i just enter text in an NSTextField and press the OK-Button the entered text is lost.
Is there some attribute i can set in Interface Builder to change this NSTextField behaviour?
It looks like I'm missing something.
When using Jython to run my Python code in Java, Java bytecode files are generated (test.py - [email protected]).
Can I run these classes directly using java?
In other words, I want to make this:
$ java test@py [additional cp args]
work.
The intent: writing Python code and not having to give away source code.
Hello,
I am writing a destop script on windows 2003 and I need to open a file and seek to the end of it and read the last line.
I looked for a "seek" but couldn't find. I saw the openTextFile for option but didn't have.
I implement it by openning the file with the red flag and then reading line after line.
With big file it takes a time,
Do any one know how to do this quickly (either in vb script or javascript)
HI
I am writing an application where I need IP address. I have domain name, but I like to know hoe to get IP address from domain name. For ex www.girionjava.com how to get IP address of this by programming in java.
Thanks
Hi,
I downloaded wikipedia dump and now want to remove the wikipedia markup in the contents of each page. I tried writing regular expressions but they are too many to handle. I found a python library but I need a java library because, I want to integrate into my code.
Thank you.
I just got this Chumby thing for Christmas. I was thinking of writing a StackOverflow widget for it. Does anyone know any caveats to programming this, or especially good things for chumby virgins to know? I have not yet begun to do my research. I guess it's just a Linux device which runs java widgets.
I am writing a serial communication program in userspace. I want to check how much of the buffer is full. Is there a way to do it using linux terminal i/o api?
Thanks
Hello,
Is there a way to make ChangePassword control work without Membership provider? Like the same way Login control works through an Authenticate event, could I make this component to use my password changing function and then showing success view without me writing custom provider?
Thanks,
Eugene.
I would like to search between to columns in a s query or a table depending on the variable on a paramenter e.g
Declare @SelectAll as interger
Set @SelectAll = 1
Declare @Column as interger
Select mt.Column1, mtColumn2
From MyTable as mt
Where Case When @SelectAll = 1 Then
mt.Column1 IN(@Column) and mt.Column2 (' Selecting all")
When @SelectAll = 1 Then
mt.Column2 IN(@Column) and mt.Column1 (' Selecting all")
End
The purpose of this query is to allow the user to search between the column they choose. Further more the use of parameter is for the purposes of writing reporting services reports.
I am writing a web application that has secure images uploaded by users. These images are only available to the owner when logged in. I am wondering what the best HTTP error code to throw in the case of unauthorised access? Would a 404 not found, or a 403 unauthorised be better?
I am leaning towards the 403, but would it be better to hide the fact that the resource exists to unauthorised users be better?
Hi, I am writing a chrome extension and from the content script I want to calculate the absolute position of a DOM element. But from within content script, if i try to access offsetHeight, offsetWidth, offsetTop, offsetParent, etc, I get null. I guess content scripts don't have access to those DOM properties.
Is there a way/workaround, i can find those properties?
Hopefully this is programming related.
Many people have reported that the NTFS-3G driver works perfectly for writing to NTFS drives without any problems.
If NTFS has been successfully reverse engineered to a useful degree, then why is the kernel driver still only read-only, with write support being very dangerous.....just as it was 5 years agi?
hi
how do i return after the first match of regular expression? (does the Matcher.find() method do that? )
say I have a string "abcdefgeee". I want to ask the regex engine stop finding immediately after it finds the first match of "e" for example. I am writing a method to return true/false if the pattern is found and i don't want to find the whole string for "e". (I am looking for a regex solution )
thanks
I am writing a tic-tac-toe game in plt-scheme as my AI course project.
The idea for gui is a grid with 9 boxes, each with a canvas, using panes ...
When the user click on a canvas, 'X' or 'O' will be drawn accordingly ...
The question is how can I catch mouse click event on canvas?
I found out I need to use on-event, but still don't know how?
Any clues?
Hello everyone,
I am writing a piece of software in C++ RAD studio 2010 and got a question about TreeView.
Is it possible to use multicolor text in a TTreeView component? I could not find a easy way but to implement custom drawing which seems to be weird nowadays. Are there any straight-forward ways or maybe additional components that can do it for me?
Hi,
I'm not quite sure how to do that, but what I would like to do is to create a special type of property that will perform specific tasks at the get and set, and will be defined on generic type.
For example, when writing this:
MyProp<String name;
a pre-defined get and set will be performed on the string value.
How can that be done?
Thanks!
I would like to write myself a pretty printer for java using bison and flex. I have written a pretty printer for a script language, but I was only writing visitors, which made the printing. How can I turn a program using my formal grammar into a tree of nodes (made using C++ classes), that afterwards I could visit using my visitor? Maybe you could give me some link with an example of this? What i need to put into flex/bison files?
I'm writing some acceptance tests for a java webapp that returns JSON objects. I would like to verify that the JSON returned validates against a schema. Can anyone suggest any tools for this?
I am writing a python script that needs to make a log entry whenever it's invoked. The log created by the script must not be changeable by the user (except root) who invoked the script. I tried the syslog module and while this does exactly what I want in terms of file permissions, I need to be able to put the resulting log file in an arbitrary location. How would I go about doing this?
I have a WPF window, which has a button that is inside a stackPanel, which is inside another stackPanel
I wrote an event handler for the button for the MouseDown event.
I want to execute this eventHandler three times for the button and the parent (stack panel) and the parent's parent
How can I achieve that with the routed event, by writing only one event handler?
I don't want to repeat the event handler code.
Thanks
How to license my writing work under creative commons. Do i have to follow some procedure or do i just need to show a notice and thats all?
I need detailed help. Thanks in advance.
I'm writing my own eclipse plug-in that integrates with the Eclipse Android Development Tools (ADT).
However, I'm getting a CoreException ("Project target not loaded yet.") thrown when I attempt to call IProject.build on an Android project as part of a unit test:
IProject project = importProject(...);
project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
Should I be waiting for the project target to load before calling the above? If so, what call should I use to poll the project target loading status?