This is an interview question, and should concern about efficiency. How to calculate occurrences of specified word in a large text file? I can only think of indexOf() method in most programming languages, but I don't think that the correct answer.
Hello everybody!
when I write in commandline in windows:
C:\Program Files (x86)\Microsoft Office\Office12>winword.exe /mOpenPage c:\Navod
ilo.doc
It starts the word document with the macro /mOpenPage.
I want to do the same thing from Java but its not going.
String[] cmd = {"cmd.exe","/c","start","c:\\Program Files (x86)\\Microsoft Office\\Office12\\WINWORD.exe","/mOpenPage","c:\\Navodilo.doc"};
Process proc = Runtime.getRuntime().exec(cmd);
help?
I want from my java code to open word document. But not just to open the document but also to open on exact page or paragraph.
Any ideas or guidelines?
Thanks in advance!
Hi,
I have to search a 25 GB corpus of wikipedia for a single word. I used grep but it takes lot of time. Is there a efficient and easy representation that can be made to search quickly. Also, I want to find exact match.
Thank you.
I am using word 2007 and am inserting code into the document. I have a style with a fixed-width font and light grey background and all, and I use Notepad++ for syntax highlighting.
My problem is with a "line" of code that is too long to display, so is there a way to auto-insert an arrow symbol at the beginning of a such lines to indicate that it is the same line (kind of like hyphenating, except on long lines instead of long words)
So for e.g. something like this:
public static void foo(String abcdefg, Boolean 123,
?String xyz)
What is another good word for Business Logic?
Software might also run in civil service offices or for hobbyists, so I never felt that comfortable with using that term in certain modules and documentation.
App Logic is too specific as well, because logic modules might also be used in services.
hello,
I have a little problem using c# to find tables inside Word textboxes.
Using this method (abstractDoc.Tables.Count) I get only the number of the main tables.
What would be the solution to reach the tables that are inside textboxes ?
I thank you in advance.
Hello All,
How can I close any Office 2007 running application like Word,Excel,Outlook before installing an Office 2007 Add-in in a Visual Studio 2008 Setup Project?
Thanks!
Martin
Hi Everyone,
A follow on from this questions:
http://stackoverflow.com/questions/3032598/rails-created-at-on-display-if-today
Is it possible to output the word TODAY rather than the date when using the following helper?
def created_today k
k.created_at if k.created_at.to_date == Date.today
end
<%=h created_today(k) %>
Thanks,
Danny
Hi,
I have a text file that has following content:
ac und
accipio annehmen
ad zu
adeo hinzugehen
...
I read the text file and iterate through the lines:
Scanner sc = new Scanner(new File("translate.txt"));
while(sc.hasNext()){
String line = sc.nextLine();
}
Each line has two words. Is there any method in java to get the next word or do I have to split the line string to get the words?
I am writing a user manual and I have come to a discussion with a colleague. He says I cannot use the word "you" anywhere in the manual. Now I remember something about this at school but that was not for writing procedures. Also, doing some googling I observed that most tutorials where using it a lot. I would prefer using it but only if this is considered good practice. what do you think?
I have developed two MS Word macros and assigned each an icon. I have also added a custom toolbar, named after the project, and added the two macro icons to that toolbar. Now, how do I package the whole thing (macros, icons, and custom toolbar) to send it to my customer?
Hi all,
I have a string, for example; "llama,goat,cow" and I just need to put a '@' in front of each word so my string will look like "@llama,@goat,@cow", but I need the values to be dynamic also, and always with a '@' at the beginning.
Not knowing a great deal of C++ could someone please help me find the easiest solution to this problem? Many thanks in advance.
Hi ,
I am looking for a solution preferrably 3rd party component , to open / disply word/excel/ppt and PDF document into flex :
Flow is like this :
User uploads any of the file .doc/.docx/.pdf/.ppt etc . This file is then displayed in flex area , without having user to get Office .
( Office WEB Component ) is ruled out because it needs office to be installed already .
print2flash.com sounds good but their problem is they are on windows , my setup is LAMP
PHP / mysql over Linux .
Thanks
I'm trying to match a word in a string to see if it occurs at the end of that string. The usual strpos($theString, $theWord); wouldn't do that.
What would be the most efficient way to do it?
I have a paper submission in about 12 hours. I have written references in a separate .bib file in bibtex format. Now please tell how to merge the references with my paper written in MS word in the simplest/ easiest possible manner. I am looking for some automatic tool that does this.
I have never used bibtex before. In fact I came to know about bibtex few hours ago only.
I have a paper submission in about 12 hours. I have written references in a separate .bib file in bibtex format. Now please tell how to merge the references with my paper written in MS word in the simplest/ easiest possible manner. I am looking for some automatic tool that does this.
I have never used bibtex before. In fact I came to know about bibtex few hours ago only.
Hello, I need to use .htaccess file to replace a world in URL
something like this:
example URL: www.hotourism.com/banknotes/banknotes/asia/vietnam/
redirect to: www.hotourism.com/countries-banknotes/banknotes/asia/vietnam/
how can I use mod_rewrite to redirect every URL containt "/banknotes/banknotes/" to the same URL after replacing that word?
Hi,
How can i print only certain words from a string in python ?
lets say i want to print only the 3rd word (which is a number) and the 10th one
while the text length may be different each time
mystring = "You have 15 new messages and the size is 32000"
thanks.