[Solved] IBM Watson Knowledge Studio 2.0 – deploying a rule-based model is experimental. What does that mean?

I’m the Offering Manager for WKS. An example of the official definition of Experimental/Beta for IBM can be found here: http://www.ibm.com/software/sla/sladb.nsf/pdf/6605-11/$file/i126-6605-11_06-2017_en_US.pdf My interpretation of the official IBM policy is as follows: Experimental/Beta provides no warranty Experimental/Beta does not guarantee performance and is not suitable for production Experimental/Beta does not provide migration to GA Experimental/Beta does … Read more

[Solved] How to write a query [closed]

Assuming only nesting questions one deep: SELECT Count(*) FROM tbl a WHERE DependentId = 0 AND ( a.[Active Flag] = ‘Y’ OR EXISTS ( SELECT 1 FROM tbl b WHERE b.BaseQuestionID = a.ID AND b.[Active Flag] = ‘Y’ ) ) If nesting deeper need to use iteration and loops which depends on what database you … Read more

[Solved] How does dojo/request handle html/javascript response?

As I explained you in your other questions, JavaScript is never automatically being executed when using AJAX requests (like dojo/request/xhr) out of security matters. If you want to execute JavaScript code that’s dynamically loaded, you will have to use the eval() function to parse it. However, I also told you already that the Dojo toolkit … Read more

[Solved] Reflection – Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

Based on your exception, you aren’t passing any arguments to your class’ main method – System.out.println(Arrays.toString(args)); // <– to display your arguments. // Class<?> c = Class.forName(args[0]); // <– you should have a default Class<?> c = Class.forName(args.length > 0 ? args[0] : “java.lang.Object”); 3 solved Reflection – Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

[Solved] R function calculating statistic of variable column name [duplicate]

You seem to be asking how to use a column name passed as an argument to a function?? myfunction <- function(df, col) mean(df[,col], na.rm=T) # test set.seed(1) df <- data.frame(x=rnorm(10),y=rnorm(10)) myfunction(df,”x”) # [1] 0.1322028 This also works if you pass a column number. myfunction(df,1) # [1] 0.1322028 1 solved R function calculating statistic of variable … Read more

[Solved] How to delete rows based on condition in VBA? [duplicate]

The issue is that once a row has been deleted, the macro will continue onto the next row (skipping a row). Working backwards through the loop will prevent any rows being missed so something like: Sub DeleteRowsPiuDi40Mega() Dim LastRow As Long Dim ws4 As Worksheet Set ws4 = ActiveWorkbook.Sheets(“atm_hh”) LastRow = ActiveSheet.Range(“C” & ActiveSheet.Rows.Count).End(xlUp).Row For … Read more

[Solved] How can i sort array: string[]?

You can try the following string[] strarr = new string[] { @”c:\temp\newimages\Changed_Resolution_By_10\SecondProcess_-Width = 502 Height = 502\animated502x502.gif”, @”c:\temp\newimages\Changed_Resolution_By_10\SecondProcess_-Width = 492 Height = 492\animated492x492.gif”, @”c:\temp\newimages\Changed_Resolution_By_10\SecondProcess_-Width = 2 Height = 2\animated2x2.gif” }; IEnumerable<string> strTest = strarr.OrderByDescending(p => p.Substring(p.IndexOf(“x”), p.Length – p.IndexOf(“.”))); solved How can i sort array: string[]?

[Solved] Getting all possible combination for [1,0] with length 3 [0,0,0] to [1,1,1]

You’re looking for a Cartesian product, not a combination or permutation of [0, 1]. For that, you can use itertools.product. from itertools import product items = [0, 1] for item in product(items, repeat=3): print(item) This produces the output you’re looking for (albeit in a slightly different order): (0, 0, 0) (0, 0, 1) (0, 1, … Read more

[Solved] Don’t know where to start with this navigation bar (nav bar) [closed]

You can try something like this: <nav> <ul> <li> <a href=”http://www.google.nl/”>Menu item 1</a> </li> <li> <a href=”http://www.google.nl/”>Menu item 2</a> </li> <li> <a href=”http://www.google.nl/”>Menu item 3</a> </li> <li> <a href=”http://www.google.nl/”>Menu item 4</a> </li> </ul> </nav> With the CSS of: nav { height: 100px; background-color: blue; } nav > ul { list-style: none; } nav > ul … Read more

[Solved] Undefined is not a function javascript error [closed]

It’s getElementsByName note the s, document.getElementByName is not defined. That would get you a nodeList, so function cleaning() { var elem = document.getElementsByName(“fitas”)[0]; elem.value = elem.value.replace(/^.+?(<url=[^>]+>).+$/, ‘$1′); } Also, the way you’re typing the script tag was popupar in the nineties, these days it’s all lowercase, and you don’t need a language attribute, and in … Read more

[Solved] Convert numbers to time in R

Converting a number of seconds (such as 75) to a decimal format such as minutes.seconds is a bit odd, but you could do it this way: a <- 75 hour <- floor(a / 60) # floor() rounds down to the last full hour minute <- a %% 60 * 0.01 # the %% operator gives … Read more

[Solved] python url extract from html

Observe Python 2.7.3 (default, Sep 4 2012, 20:19:03) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type “help”, “copyright”, “credits” or “license” for more information. >>> junk=”’ <a href=””http://a0c5e.site.it/r”” target=_blank><font color=#808080>MailUp</font></a> … <a href=””http://www.site.it/prodottiLLPP.php?id=1″” class=””txtBlueGeorgia16″”>Prodotti</a> … <a href=””http://www.site.it/terremoto.php”” target=””blank”” class=””txtGrigioScuroGeorgia12″”>Terremoto</a> … <a class=”mini” href=”http://www.site.com/remove/professionisti.aspx?Id=65&Code=xhmyskwzse”>clicca qui.</a>`”’ >>> import re >>> pat=re.compile(r”’http[\:/a-zA-Z0-9\.\?\=&]*”’) >>> pat.findall(junk) [‘http://a0c5e.site.it/r’, ‘http://www.site.it/prodottiLLPP.php?id=1’, ‘http://www.site.it/terremoto.php’, ‘http://www.site.com/remove/professionisti.aspx?Id=65&Code=xhmyskwzse’] … Read more