How do I get the runs generated when using [<Property>] to use the Check.VerboseAll style of generation?
How about this?
[<Property(Verbose = true)>]
let myTestFunction ...
Related
Sorry for title. I don't know what to write.
This is my problem:
If i write this is all ok:
$obj_license = License::where('licenses.company_id',$company->id)->first();
But this throw an error:
$license='License';
$obj_license = $license::where('licenses.company_id',$company->id)->first();
ERROR: Class 'Butchery_license' not found
This is just an example. I really need to have the second way working. There is a solution?
Try to use full path to a class:
$license='App\License';
$obj_license = $license::where('licenses.company_id',$company->id)->first();
I'm using the F# data provider to load csv files. For some reason, not in my control, they occasionally change the file to a gzip. (e.g. MyFile.txt could also be MyFile.text.gz)
So, I have this and it works just fine
let fl = CSV.load("MyFile.txt")
What I need to be able to do is if this errors with file not found, I need it to look for the alternate name.
let fl = CSV.load("MyFile.txt.gz")
I've tried a try...with block
try
let fl = CSV.load("MyFile.txt")
with
let fl = CSV.load("MyFile.txt.gz")
It won't let me use let keyword in this fashion. I even tried
try
let fl = CSV.load("MyFile.txt")
with
CSV.load("MyFile.txt.gz") -> fl
With C#, this would be pretty straight forward. Thanks in advance for any assistance.
You can use something like:
let fl =
try CSV.load("MyFile.txt")
with _ -> CSV.load("MyFile.txt.gz")
But I believe a better solution would be to check if the file exists first.
I'm trying to use the nsIFind function and on opening it in MXR I see that it has something called aWordBreaker.
I'm looking for help on how to set aWordBreaker and learn how it behaves.
http://mxr.mozilla.org/mozilla-release/source/embedding/components/find/src/nsFind.cpp#543
I'm trying to learn about this and how to use it, but need some help.
If I do this:
let finder = Cc["#mozilla.org/embedcomp/rangefind;1"]
.createInstance()
.QueryInterface(Ci.nsIFind);
console.log('finder',finder);
I find that finder has this:
Find: function
QueryInterface: Function
caseSensitive: false
findBackwards: false
So I can set finder.caseSensitive but I can't set finder.aWordBreaker.
So in summary: I'm looking for help on how to set aWordBreaker and learn how it behaves.
Useful sources on MXR:
http://mxr.mozilla.org/mozilla-release/source/intl/lwbrk/public/nsIWordBreaker.h
http://mxr.mozilla.org/mozilla-release/source/intl/lwbrk/src/nsSampleWordBreaker.cpp
Example usage here:
http://mxr.mozilla.org/mozilla-release/source/editor/txtsvc/src/nsTextServicesDocument.cpp#3646
3645 nsIWordBreaker* wordBreaker = nsContentUtils::WordBreaker();
3646 nsWordRange res = wordBreaker->FindWord(str, strLen, strOffset);
Does anyone know how to get access to nsContentUtils with javascript?
I would like to create an issue by jira4r gem and attach it to special components. I use code as you see below.
jira = Jira4R::JiraTool.new(2, "http://example.com/jira/")
jira.login("robot", "robot")
issue = Jira4R::V2::RemoteIssue.new
issue.project = "ABC"
issue.type = "1"
issue.components = ['10000']
issue.summary = "Do somethigs"
issue.assignee = -1
jira.createIssue(issue)
but there is a problem that it return an error
SOAP::FaultError java.lang.IllegalArgumentException: array element type mismatch
and it is caused by setting "components"
Do you have some ideas how to fix it?
yay! I found the solution, mb it helps someone
component = Jira4R::V2::RemoteComponent.new(10010)
componentlist = Jira4R::V2::ArrayOf_tns1_RemoteComponent.new.push(component)
issue.components = componentlist
According to http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client you need remote component instead of component id.
Smth like
issue.components = [Jira4R::V2::RemoteComponent.new('10000')]
From what I have read until now, you can get the TargetPath property of an objet of class Shortcut, which is the result of the method CreateShortcut of WScript.Shell.
But I have not found any way to get the target path of an existing shortcut.
In javascript:
var sh = WScript.CreateObject("WScript.Shell");
var sc = sh.CreateShortcut(shortcutPath);
var targePath = sc.TargetPath;
It took me some time to understand it. So I guess there will be at least one person happy to find the answer here.
by using .path property?
http://www.bigresource.com/VB-Get-the-stored-path-from-a-shortcut--UWlkOW9XKz.html