How can I describe jobs in Azkaban UI? - azkaban

I just discovered Azkaban and I want to know if it is possible to put some description next to the jobs/flows in the project view ?
(See this image for more accuracy)

Related

Selenium Webdriver - Capture URL in screenshot

I understand that the screenshot functionality basically works as painting the DOM. Since the URL is not part of the DOM, the screenshot does not contain the URL. But is there any workaround to capture the URL as part of the screenshot?
Currently it is not possible with webdriver.
You can follow any of the below approaches. (You did not mention the programming language. These examples are in Java.)
1. Capture current desktop screen
Robot has createScreenCapture method. So, I would go with that & It is very easy to implement.
Robot robot = new Robot();
BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
ImageIO.write(screenShot, "JPG", new File("ScreenShot.jpg"));
2. You can write the URL in the image.
This might be an annoying approach sometimes as it might hide information in the image. But this too is very easy to implement.
Check this answer
3. Add the current URL to the image as meta data
Check this answer
Absolutely correct, getting URL in the screen-shot is yet not possible in Selenium and here are the reference Link which tells the same. But as a part of workaround what i can suggest you is to first get the screen shot using
robot.keyPress(KeyEvent.VK_PRINTSCREEN);
Remember this workaround might became time consuming if more number of screen shots has to be taken but can be efficient if you want only one screen shot in single run of your AUT. Second once you copy the screen shot in your clipboard it again depends on you how you want to automate it further, By using Third party tool like Sikuli you can easily integrate it with selenium.
As this is a workaround i would not guarantee success.

Implementing Search bar to search topic in WPF HelpSystem

I have implemented a context sensitive WPF Help System using .chm , which shows specific htm files when F1 is pressed. Now I would like to add a search bar to it to search through all the topics in the .chm file. Is there any reference/suggestion how to do it?
Thanks in Advance
You know - there is a fulltext search tab possible for any CHM.
HH Workshop API documents how to move to the search tab and initiate a search. Unfortunately the initiating a search part has always been broken in HH. The only way around this would be to find the HH window and search pane controls. Then control those controls from your application using via low level Windows API calls.
I translated this for working with Visual Basic 6 a long time ago. So the search string is pushed to the CHM search tab and search is starting.
http://www.help-info.de/en/Help_Info_HTMLHelp/hh_api.htm#Search
Disclaimer: This isn't a product link - only code to help (open source).

wpf app: help files with search and index

We are adding help files to our WPF application in Visual Studio 2010. We have not been able to find so far a method that we have been able to use.
We have some HTML help files, currently they are just in a directory, not added to the WPF project.
We don't have index or search.
I have seen that maybe we can do something with cmh, but this seems quite old and outdated now.
Ideally we would like all this in WPF, but if its not possible we need another solution.
We would like to be able to hit F1, have our main help page displayed (we have this now, it opens in our browser) and additionally add Index and Search to our main help page.
Can anyone point us in the right direction please?
Maybe you should take a look at the Process.Start Method page on MSDN. In particular, the Process.Start Method (String) page has a code example showing how to open web pages from a WPF application.
To do this inside a WPF application, look at the WebBrowser Class page at MSDN. This also provides a code example of loading a web page into your application.
EDIT >>> After re-reading your post, I realise that I missed the bit about searching and indexing. Surely, you can just search through the web pages yourself? Just open each page and use something like
if (webPageContent.Contains(searchTerm)) return webPageContent;

How to set a placeholder for a Image control (while it downloads)?

I have an app that show a list of images. The image source is set to a http URL, and the images are downloaded and display automatically.
However, while the app is taking time to download, the image control shows nothing. The user experience is not good this way.
How may I display a loading placeholder image, or a loading gauge, for each of the image control?
While an image is loading, it is drawn transparently. You can use this to your advantage to display an element underneath the image while it is loading. For example, you could have a stock image that is bundled with your XAP that represents a default avatar for example. Or you could display a XAML loading animation. Then when the image is finished loading, it will obscure the element behind it.
Mick's suggestion is a good one if you need to minimize your visual tree and if your scenario allows for a code solution. This suggestion is not perfect but it does make it easier to deal with the case where your placeholder image is unscaled/centered but the loaded image is scaled/stretched.
You could set the image source to your placeholder then when ImageOpened fires, change it to the remote url and let that run it's course.
In addition to the 2 other suggestions (from Josh & Mick) you could display a placeholder in the xaml and then, in code, download the actual desired image in the background using HttpWebRequest. Then when the image has fully downloaded save it to isolated storage and then update the source to the displayed image.
Yes this is more complex than the other solutions but would simplify the visual tree and avoid a blank image being displayed while the image is downloaded.
It would also give you offline caching of images too.
Interesting how many options there are for tackling this problem.
You might also like to consider Ben Gracewood's image caching implementation or what appears to be a development on that idea in his blog comments.
One-time Cached Images in Windows Phone 7 « Ben.geek.nz
Peter Nowaks Mobile Blog - “Intelligent” Image Caching for WP 7
Some background on the discussion leading up to this here if it's of interest.
Image control cache duration?

wpf documentviewer to view different file formats?

I have a wpf application where the user can upload files with different formats (for now only pdf). I want to use document viewer to let the user see what's been uploaded. Is this possible? If this is not possible, can you suggest an alternative? If this is possible, is this a good solution for this?
Thanks,
Angela
I am currently looking for the same thing : a way to display a pdf document in WPF. DocumentViewer seems targeted on displaying XPS documents. It may display other kinds of documents, but it looks like we should supply our own Document class for that purpose.
So I am going to try displaying my documents using an old workaround : displaying them in an embedded web browser. It is not a good solution in my opinion. Especially for we can not access much document properties using that method (document pages count, pages size, ...). But I do not find any other readily available solution.

Resources