I have a word list:word_1,word_2,...word_n
If the input text is like this:
... word_i xxx word_k ...
I want the output to be(the out most):
word_i xxx word_k
How to implement it?
Hello,
To illustrate my problem,
TEST="Hi my name is John"
OUTP=`echo $TEST | awk '{print $3}'`
echo $OUTP
What I would expect this to do is pass the $TEST variable into awk and store the 3rd word into $OUTP.
Instead I get "Hi: not found", as if it is expecting the input to be a file. If I pass just a string instead of a variable, however, there is no problem. What would be the best way to approach this?
Thanks all!
Hi,
in a standard .NET webservice (lie the basic sample "hello word" one created by VisualStudio), how can I access the raw call coming from a client? Thanks
Regexp in Java
I want to make a regexp who do this
verify if a word is like [0-9A-Za-z][._-'][0-9A-Za-z]
example for valid words
A21a_c32
daA.da2
das'2
dsada
ASDA
12SA89
non valid words
dsa#da2
34$
Thanks
I am having a problem getting a RegExp with a variable to work in IE. It works fine in firefox:
wordChar = word[i]
var expr = new RegExp(wordChar,"i")
var hold = expr.test(input[i])
Not sure how to go about fixing this.
Hi all,
Two rows in the my database have the following data:
brand | product | style
=================================================
Doc Martens | Doc Martens 1460 Boots | NULL
NewBalance | New Balance WR1062 SG Width | NULL
Mininum word length is set to 3, and a FULLTEXT index is created across all the three columns above.
When I run a search for IS BOOLEAN matches for +doc in the index, I get the first row returned as a result. When I search for +new, I get no results.
Can someone explain why?
Thanks.
I'm trying to write a word to a file using this function:
extern void write_int(FILE * out, int num) {
fwrite(&num,sizeof(int),1, out);
if(ferror(out)){
perror(__func__);
exit(EXIT_FAILURE);
}
}
But I get a segmentation fault whenever it tries to run the fwrite. I looked at the man page for fwrite(3) and I feel like I used it correctly, is there something I'm missing?
I'm using DsaFramer to embed word document into winform, when using the Find and Replace window the searched strings are not highlighted, it seems that it is a paint issue.
Is there someone who met the same problem, how can I avoid this.
Regards.
I want the search box on my web page to display the word "Search" in gray italics. When the box receives focus, it should look just like an empty text box. If there is already text in it, it should display the text normally (black, non-italics). This will help me avoid clutter by removing the label.
BTW, this is an on-page AJAX search, so it has no button.
I am a unclear about file system implementation. Specifically (Operating Systems - Tannenbaum (Edition 3), Page 275) states "The first word of each block is used as a pointer to the next one. The rest of block is data".
Can anyone please explain to me the hierarchy of the division here? Like, each disk partition contains blocks, blocks contain words, and so on...
Trying to include a source-file into my latex document using the listings package, i got problems with german umlauts inside of the comments in the code.
Using
\lstset{
extendedchars=\true,
inputencoding=utf8x
}
Umlauts in the source files (encoded in UTF-8 without BOM) are processed, but they are somehow moved to the beginning of the word they are contained in.
So
// die Größe muss berücksichtigt werden
in the input source file, becomes
// die ößGre muss übercksichtigt werden
in the output file.
NOTE: since i found errors in my initial setup, i heavily edited this question
I would like to make a application that accepts the entry from keyboard modify it and send it to the active window (may be application like word, excel,notepad windows screens ) etc.
It the feature is just like google's transliteration application for windows .
I would like to do it in c# .
I think this involves hooking in the keyboard and sending keys (like sendkey in vb) to the current window.
I'm having an issue trying to parse the ascii part of a file, and once I hit the end tag, IMMEDIATELY start reading in the bytes from that point on. Everything I know in Java to read off a line or a whole word creates a buffer, which ruins any chance of getting the bytes immediately following my stop point. Is the only way to do this read in byte-by-byte, find new-lines, reconstruct everything prior to the new-line, see if it's my end tag, and go from there?
Hello All, I like to know what makes a class to be called as absract class. I believe, abract key word definetly make a class class, but if one takes out the keyword, then we can create the instance of the class.
In otherwords, what are the characteristics of the abstract class.
Thanks in advance.
-Harsha
Well I am currently trying to get the word/text in between these 2 things
: and !
I tried this
Dim nick As String = String.Empty
Dim p = ":(?<ircnick>.*?)!"
Dim Matches = Regex.Matches(mail, p, RegexOptions.IgnoreCase Or RegexOptions.Singleline)
If Matches IsNot Nothing AndAlso Matches.Count > 0 Then
For Each Match As Match In Matches
If Match.Groups("info").Success Then
nick = (Match.Groups("ircnick").Value)
End If
Next
End If
It doesn't display anything. If you guys can fix this code for me I would be happy :D.
i'm using fckeditor in php.problem in IE6.when i bold a word, working fine. but when i remove bold, it doesnt work. not only bold, and also italics, underline also.
hi
first sorry for my English
i try to get a word under mouse
now my problem how to get the font of button
i try to use
IntPtr dc= GetDC(button1.Handle);
IntPtr last_font = SelectObject(dc, Font.ToHfont());
Font fon = Font.FromHdc(dc);
but it gave me the font of the form
and some time gave me error
Only TrueType fonts are supported. This is not a TrueType font
any body help me
I have been reading forums and so, but found not a clear answer or nor conclusive, about the strategic decission of using domain-with-dash.com or notusingdashes.com
Is there a problem or disadvantage in ranking for those key words?
Is it better having the-domain-with-dash.com than shortdomain.net? many cases you dont have the dot.com available for that specific key word.
what are your opinions, please prove facts, or add links to the source.
What Google has to say?
hi friends
I use the following command to find under /var some param in my script
grep -R "param" /var/* 2/dev/null |grep -wq "param"
my problem is that: after grep find the param in file
grep continue to search until all searches under /var/* will completed
How to perform stop immediately after grep match the param word
For example when I run the:
grep -R "param" /var/* 2/dev/null |grep -wq "param"
grep find the param after one second.
But grep continue to sears other same param and its take almost 30 seconds
How to stop the grep immediately after param match?
THX
Hi,
I got a document that need to be filled in (it was in microsoft word doc), I have no idea how to filled in / integrated with my current web apps.
is there any good java api / lib that could be used ? preferrably the free one.
here is the example of doc that need to be filled in.
http://drop.io/callmeblessed/asset/debt-agremeent-certificate-doc
Assume I have the following input in Pig:
some
And I would like to convert that into:
s
so
som
some
I've not (yet) found a way to iterate over a chararray in pig latin. I have found the TOKENIZE function but that splits on word boundries.
So can "pig latin" do this or is this something that requires a Java class to do that?
I'm making a web application that uses the data in the sys.dm_fts_index_keywords_by_document. I'm interested how many times a given term occurs in each string that is indexed.
For example, I have a table with a column called comments, the table has various strings in the comments field. When I make that column full text searchable, the dm_fts_index_keywords_by_document is created and I can see the word per document data. Can i do the same thing in mySQL?
I see the word thrown around often, and I may have used it myself in code and libraries over time, but I never really got it. In most write-ups I came across, they just went on expecting you to figure it out.
What is a Class Factory? Can someone explain the concept?