evaluate

Excel Evaluate formula error

╄→гoц情女王★ 提交于 2019-12-06 10:23:43
My VBA code is Function yEval(entry As String) yEval = Evaluate(entry) Application.Volatile End Function in Sheet1 in cell f4 i have formula =yEval(Sheet2!E19) cell d4 on sheet1 contains number 12 Sheet2!I19 contains string $Q if Sheet2!e19 has string INDIRECT("pries!"&Sheet2!I19&12) or INDIRECT("pries!"&Sheet2!I19&Sheet1!d4) or INDIRECT("pries!"&Sheet2!I19&"Sheet1!D"&row()+12) the formula return result from sheet pries!$Q12 if Sheet2!e19 has string INDIRECT("pries!"&Sheet2!I19&address(row(),4)) or INDIRECT("pries!"&Sheet2!I19&"Sheet1!D"&row()) the formula return result 0 it seems like

casperjs: evaluating document.querySelector returns a null

女生的网名这么多〃 提交于 2019-12-06 02:36:44
问题 I'm using the waitForSelector() and captureSelector() methods in CasperJS to wait for and select an element using a CSS selector, then save a screenshot of it. However, I'm finding that because the css background has been set to transparent , the screenshot turns out pretty ugly, so I'd like to set the background to white . I've made sure that I'm using document.querySelector in an evaluate() call, but that doesn't seem to work. Here's my script (you can ignore everything before casper.start(

weka: how to get class name from testing single instance

风格不统一 提交于 2019-12-06 02:03:41
i want to make a single test for single instance i use j48 in FilteredClassifier like this: Remove rm = new Remove(); rm.setAttributeIndices("1"); // remove 1st attribute // classifier J48 j48 = new J48(); j48.setUnpruned(true); // using an unpruned J48 // meta-classifier FilteredClassifier fc_J48 = new FilteredClassifier(); fc_J48.setFilter(rm); fc_J48.setClassifier(j48); tdta.dataSet.setClassIndex(tdta.dataSet.numAttributes() - 1); fc_J48.buildClassifier(tdta.dataSet); now, i try those options: j48.classifyInstance(dataSet.instance(1)) or eval.evaluateModelOnce(j48, dataSet.instance(1)) i

How to using XPath in WebBrowser Control?

早过忘川 提交于 2019-12-04 20:54:17
In C# WinForms sample application, I have used WebBrowser control. I want to use JavaScript XPath to select single node. To do this, I use XPathJS But with the following code, the returned value of vResult is always NULL. bool completed = false; WebBrowser wb = new WebBrowser(); wb.ScriptErrorsSuppressed = true; wb.DocumentCompleted += delegate { completed = true; }; wb.Navigate("http://stackoverflow.com/"); while (!completed) { Application.DoEvents(); Thread.Sleep(100); } if (wb.Document != null) { HtmlElement head = wb.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = wb

Cannot navigate with casperjs evaluate and __doPostBack function

时间秒杀一切 提交于 2019-12-04 12:09:04
When I try to navigate the pagination on sites with links where href is a __doPostBack function call, I never achieve the page change. I am not sure what I am missing, so after a few hours of messing around I decided to see if someone here can give me a clue. This is my code (uber-simplified to show the use case). var casper = require('casper').create({ verbose: true, logLevel: "debug" }); casper.start('http://www.gallito.com.uy/inmuebles/venta'); // here i simulate the click on a link in the pagination list casper.evaluate(function() { __doPostBack('RptPagerDos$ctl08$lnkPage2',''); }); casper

How to use a formula written as a string in another cell [evaluate for Google Spreadsheet]

时间秒杀一切 提交于 2019-12-04 04:58:55
I read several old posts about Google Spreadsheet missing the evaluate function. There is any solution in 2016? The easiest example. 'A1' contains the following string: UNIQUE(C1:C5) 'B1' I want to evaluate in it the unique formula written in 'A1'. I've tried concatenating in this way: 'B1' containing ="="&A1 but the outcome is the string =UNIQUE(C1:C5). I've also tried the indirect formula. Any suggestion to break last hopes, please? Additional note The aim is to write formulas in a spreadsheet and use these formulas by several other spreadsheets. Therefore, any change has to be done in one

XSL. Evaluate expression

北慕城南 提交于 2019-12-02 08:41:28
Sorry for my English. XSL 1.0. How can I to calculate expression from element or attribute value? For example XML: <position> <localizedName>ref-help</localizedName> <reference>concat('../help/', $lang, '/index.html')</reference> </position> I try use expression from 'reference' attribute: <xsl:for-each select="/content/positions/position"> <li> <!--Save expression to variable...--> <xsl:variable name="path" select="reference"/> <!--Evaluate variable and set it value to 'href'--> <a target="frDocument" href="{$path}"> <xsl:variable name="x" select="localizedName"/> <xsl:value-of select="

php - convert single quoted string to double quoted

一笑奈何 提交于 2019-12-02 00:21:18
问题 Been searching here and google for over an hour, can't seem to find the answer to this. I have a string returned from a database query which contains variables, however it appears that these strings are all returned single-quoted and therefore the variables are not evaluated as they would be if it was double quoted. what is returned from the sql query would be the $result: This will not evaluate the 2 variables: $myname = 'david'; $occupation = 'Beginner'; $result = 'Hello my name is $myname

php - convert single quoted string to double quoted

怎甘沉沦 提交于 2019-12-01 22:47:13
Been searching here and google for over an hour, can't seem to find the answer to this. I have a string returned from a database query which contains variables, however it appears that these strings are all returned single-quoted and therefore the variables are not evaluated as they would be if it was double quoted. what is returned from the sql query would be the $result: This will not evaluate the 2 variables: $myname = 'david'; $occupation = 'Beginner'; $result = 'Hello my name is $myname and I my occupation is $occupation'; echo $result; This will evaluate the 2 variables: $myname = 'david

On PhantomJS I can't include jQuery and without jQuery I can't post form data

a 夏天 提交于 2019-12-01 17:13:36
I am having trouble running jQuery in PhantomJS. I have found this answer, which talks about no variable is available inside evaluate function but the question is about a node module and on my example I only call console.log inside evaluate function. I have put this question on GitHub too . Previously, for some pages, the following evaluate code didn't execute. Now that @b1f56gd4 has provided some help, it now prints messages; I can't execute it but now I can see this: The page at https://login.yahoo.com/ ran insecure content from http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js