Is it possible to use LinqPad's Hyperlinq() method to create a link to a file path - linqpad

I really like how Hyperlinq allows you to hyperlinq to a website, but what about to a file? I would like to do something like this:
new Hyperlinq(#"C:\temp\afile.txt");

This is a bug in LINQPad - I've fixed it for the next build.

I have tried
new Hyperlinq(new Uri(#"C:\temp\afile.txt").ToString());
With this you get a valid hyperlink but I failed to click on it to open the file.
If you paste the link into a browser it works. I don't know if its a limitation of LinqPad.

Related

Selenium Webdriver: Target url is not well formed

I have stored the URL in the excel file. I read the excel file and put the url in the java Properties. i retrieve the url from properties and try to launch it, but i get the error "Target URL  http://demo.guru99.com/V4/ is not well-formed." Please help.
Properties pInputOutPut= new Properties();
//here i have code to read the excel file and load the url to properties
_driver.get(pInputOutPut.getProperty("Url"));
I had it resolved by appending (http/https) prefixes to my URL which were missing when I encountered this error. Hope this helps!
Are you sure there aren't some special characters in your string that aren't visible? Microsoft products tend to add more than what is desired
This issue resolved by itself!!. I tried a couple of different urls it worked, then i switched back to my original url it worked too.

Selenium 2.0 - File Upload not working

I am unable to upload a file using selenium. I employ the below code:
Browser.FindElement(By.XPath(XPath)).SendKeys(path);
However, all that happens is that the file browse form comes up. The file does not get selected.
Does anyone know what I need to do to get this working, or a workaround? Many Thanks.
Refer to(saucelabs.com/resources/selenium-file-upload)
WebElement upload = driver.findElement(By.id("myfile"));
upload.sendKeys("/Users/sso/the/local/path/to/darkbulb.jpg");
driver.findElement(By.id("submit")).click();
driver.findElement(By.tagName("img"));
Also make sure you have given the path correctly. For example if the file is in d:\abc\pqr.txt, then path needs to be given as
"d:\\abc\\pqr.txt"
Mark this as an answer if this answers your question.
If not, please post your query!
Regards,
Sakshi

Intellij JavaDoc not in sync or refreshing when I edit

What do I need to do to get Intellij to display the new edited version of my documentation when I view it (using Ctrl+Q).
For example if I create a new class the default template is added and the documentataion looks like this:
And then will display like this:
If I then edit this to this:
It still displays as the original documentaion (2nd image).
I don't think you have anything to do to have the "updated" javadoc displayed.
It is working as expecting for me, and it has been like that for years...
I figured it out. I had the documentation open previously, but pinned to the right hand side. Like below:
This meant that when I edited and tried to view it again it would display the old doc version which was pinned.
If I close that pinned window then the updated doc is displayed every time.

N2CMS: Tilde path not working

I am trying to use N2CMS in an existing MVC website. The problem is that when I browse the dhasboard (http://localhost:64826/N2/), I get some of the Menu links with Tilde.
e.g. This is the ink for "templates"
http://localhost:64826/N2/~/N2/Content/Templates/Default.aspx?selected=/start/&item=2
Here is an image of the problem: http://postimg.org/image/7xaup0idz/
Any idea how to get these links working?
I had to download the source code and change the method "ToAbsolute(string applicationPath, string path)" in N2.Web.Url.cs.

IntelliJ Idea 12 - Java file is too large for editor

Getting "file x.java is too large for IntelliJ Idea editor" after trying to open a web service stub class that is generated for Axis 2.
I saw a post associated about this issue which says change the
idea.max.intellisense.filesize=2500
in idea.properties.
But this trick didn't work for me despite I increased the value enough. Also I tried to comment out it for disabling this feature; but it didn't work too..
Nowadays the setting
idea.max.intellisense.filesize=50000
works perfectly for me and lets me open files of up to 50M size.
If you just want IntelliJ to open the full file instead of truncating it, use this:
idea.max.content.load.filesize=500000 #500MB
My issue is that the file was > 20mb. See this link: http://youtrack.jetbrains.com/issue/IDEA-85045