I can't figure out two expressions in xpath. Can someone help ? Here they are substring-after(substring-before(//ul[@id='biblio']/li[3], ']', '[')) //h2[normalize-space(string())='name']/preceding::h1[1]

Member Avatar
Member Avatar
+0 forum 1

Hello Friends, I am having trouble with a homework assignment and was wondering if you would please take a look at it for me. I have to write a program that receives a prefix expression. Then it calculates and displays the result. It does this by using a stack to store values of sub-expressions as they are computed, and another stack to store operators that have not yet been applied. Does this mean that I have to have a stack for the results of the subexpressions and then a stack for each subexpression that has not been solved yet? So …

Member Avatar
Member Avatar
+0 forum 2

**Can some one please help me with this ?** import java.util.*; public class Expression{ /* * Strings used for storing expression. */ String s, x; /* * Term evaluator for number literals. */ double term(){ double ans = 0; StringBuffer temp = new StringBuffer(); while( s.length() > 0 && Character.isDigit( s.charAt( 0 ) ) ){ temp.append(Integer.parseInt( "" + s.charAt( 0 ) )); s = s.substring( 1 ); } if( s.length() > 0 && s.charAt( 0 ) == '.' ){ temp.append( '.' ); s = s.substring( 1 ); while( s.length() > 0 && Character.isDigit( s.charAt( 0 ) ) ){ temp.append(Integer.parseInt( "" …

Member Avatar
Member Avatar
+0 forum 4

Hey Everyone, I am using the below query to try and group together values by the month of the date selected. the problem is that sometimes CTE2 will not have the same dates as CTE and those values end up omitted. Is there anyway I can just group these on a different parameter, or just on the month of the date? Any help would be great. ;With CTE(total, InitDate) as ( SELECT count(Inquiry.ID) as total, Inquiry.Date as InqDate from Inquiry Inner Join Inquirer on Inquirer.ID = Inquiry.InquirerID_fk Left Join Transfer on Transfer.TransferInquiryID_fk = Inquiry.ID WHERE (Inquiry.Date >='6/1/2012' AND Inquiry.Date <= …

Member Avatar
Member Avatar
+0 forum 5

I am developing a Interactive Spoken Dialogue System, in which user will say something to the system and system will answer him in voice and generating facial expressions according to the voice. But, i can't get any idea that how can i generate facial expressions. Will anybody tell me that how can i start or if there is any open source package already exists then it would be very nice. If anybody know about any open source software related to this then please tell me.

Member Avatar
Member Avatar
+0 forum 1

Hi. I just want to ask if it is possible to create a function that accepts an expression into its arguments. Just like what IIF do. Ex: [CODE]Dim strResponse as String = IIF(Msgbox("Select Yes or No", vbYesNo) = vbYes, "Yes", "No")[/CODE] I forgot the code, but its the thought that counts. Anyway, is it possible? If it is, how? Michael

Member Avatar
Member Avatar
+0 forum 1

Hello, I have a question about the code below [CODE] // Checks the vertex a if (this.a != ((Triangle)o).a) { return false; } [/CODE] So In a method called Triangle i declared an instance variable like this: [CODE] private java.awt.Point a [/CODE] What I think this code is doing is that this.a is comparing its point value (a.x and a.y) and checking to see if they are equal to that of the o Triangle point (o.a.x and o.a.y) is my interpretation correct?

Member Avatar
Member Avatar
+0 forum 1

How to interpret VB6 string expression in textbox e.g. ((3*9)+3)-(8/2)and display the result in listbox, and then it determines the () open and close parenthesis, * + - / are operators, and 3 9 3 8 2 are operands.

Member Avatar
Member Avatar
+0 forum 1

Wirte a regular expression pattern to match all words ending in s. This is what I got but seems like im thinking to hard on it, plus of course its not working lol Please help! :) [CODE]import re str = "Subs are everwhere" print (str) matchObj = re.match(".*?s ",str,re.L|re.I) if matchObj: print ("matchObj.group() : ", matchObj.group()) else: print ("none found")[/CODE]

Member Avatar
Member Avatar
+0 forum 2

Hi I'm rather new to C++ and am rather confused about something. I noticed, say, in an "if else" statement or a "Switch" statement it only evaluates numerical expressions. In an If Else statement I can compare two strings by using a returned boolean result from say 'strcmp' but I can't evaluate an espresions like if(variable1 == "Test") or the like. It seems to only take numerical values. I'm thinking that this comes down to my fundamental understanding of C++. Is it the case that in all statements such as if and switch and anything else that evaluates and expression …

Member Avatar
Member Avatar
+0 forum 4

[CODE] int[][] jaggedArray = (from line in File.ReadAllLines(fileName).Skip(1) select (from item in line.Split('\t').Skip(1) select int.Parse(item)).ToArray()).ToArray(); [/CODE] This is a crazy example. It was sparked by what is probably a homework thread on another forum here, but it is basically reading in a tab-delimitted text file, stripping out the first row and column (as they contain header information), and spitting out a jagged array of integers as the final product. The crazy part? It's a single statement! All that functionality, 1 semi-colon. The crazier fact is that the above is just syntactic sugar for what the compiler will first translate the …

Member Avatar
Member Avatar
+3 forum 1

The End.