I'm trying to filter names out of text blobs. Currently I'm just generating a words list and filtering it by hand but I've got ~8k words to go so I'm looking for a better way. I could grab a dictionary and filter them out but that would cull names like smith and cliff.
What I need is either of the following:
a list of common names (I'...
I am modifying an existing source code viewer script in PHP that I found on the web. It is to store source code in a nice category fashion.
I am having a problem now though. Below is a screen shot of me viewing the source code in Firefox, you can see the part that is supposed to show on the screen but for some reason it is not showi...
<div>
<p><a href="#">link</a> some text</p>
<p><a href="#">link</a></p>
<p><a href="#">link</a> some text</p>
<p><a href="#">link</a></p>
</div>
I want to find (and addClass to) the <p> tags that DO NOT contain text, directly inside itself or its children.
...
I use delphi 7 and I would like to extract ONLY the text displayed in a webpage directly from a web page displayed in a TWebBrowser (no images....). Could it be done & how can I do it?
Best Regards, M
...
Hi
I'm using Delphi 7.
I would like to count the number of repetitions of every word in a large text (500 words).
How could I do it?
...
I'm collecting information in a standard HTML form. I have, for example, <input type="text" name="UserName" id="name"/>. When the form is submitted, I want to add a line break to the value entered. So if the user entered "foo," the form would submit the value "foo\n."
Here's the jQuery function I'm using:
$("#formID").submit(function (...
I'm writing a document in LaTeX, and am encountering a problem when I have a line of text that wraps around. What I need is for the text, when it wraps around, to indent so that it matches the label (much like the \item[Label:] Text function, except I can't use a {description} context. Any ideas?
This happens in the context of
\newcom...
How do I prevent a multi-line text field from "stealing" tab-key presses?
I mean: I'd like to use TAB to cycle between the elements of a window, but when I enter the multiline text, TAB becomes a "normal" key, and simply inserts tabulators into the text I'm typing.
How do I handle this? Should I write some custom listener, or can I cha...
I am looking to encode some text that could be 1 charchter long or or 10,000 or infinite
and decode (reverse the algorithm).
I am looking something like MD5 on PHP, but reversable, as MD5 is one way.
This could be server side or JavaScript. If both, then it's even better.
...
Suppose you have huge amount of documents, a few millions, and more coming.
Suppose you have to publish them on a website with hundreds of thousands of daily pageviews, and suppose you have to let the visitors perform searches on all the documents.
What is the best way to store/retrieve the documents? And to perform searches on them?
Cu...
Hello all,
I have just found out that my script gives me a fatal error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 440 bytes) in C:\process_txt.php on line 109
That line is this:
$lines = count(file($path)) - 1;
So I think it is having difficulty loading the file into memeory and counting the ...
Anyone who ever had to draw text in a graphics application for pre-windows operating systems (i.e. Dos) will know what I'm asking for.
Each ASCII character can be represented by an 8x8 pixel matrix. Each matrix can be represented by an 8 byte code (each byte used as a bit mask for each line of the matrix, 1 bit representing a white pixe...
Hello.
I'd love to know that how to create a list from block of text. Let me explain..
Here's my html:
<div class="asd">
well
worth
it
</div>
And this should be automatically converted to list like this:
<div class="asd">
<ul>
<li>well</li>
<li>worth</li>
<li>it</li>
</ul>
</div>
Hope you understood :-D I've already tried it with...
Let's take your Facebook social profile. There are interests, activities, movies, music, and tv-shows.
You have these 5 things, in text, of course. Given your social profile and 10 other people, we want to find overlaps, similarity, etc. What method would you use to do it?
I"m guessing it would be best to use vectors and Euclidean/Pe...
Hi, I am trying to request a webpage from an iis web server that I control utilising query strings.
E.g., I have a webbrowser control in my winforms app and request a page similar to "www.site.com/getpage.ashx?field=afsfgwesar+sere"
When i try to run this it fails because on the server side, getpage.ashx can’t locate the right field.
...
is there a library for ruby or php that is able to parse html pages and extract unique data by comparing it with other similar pages....should use some sort of text mining to identify which texts are more likely noise and repetivie, while other texts are more unique and useful...
...
Hi,
I'm looking for a full text search algorithm that will allow to find similar program names, for example "Mozilla Firefox" and "Firefox 3.5, or "Adobe Reader" and "Adobe Acrobat Reader v10". The Levenshtein distance is too inefficient in this case, since spelling doesn't change.
It has to use serial scanning (not indexing).
I need...
Are there any command line linux utilities that will give me the boolean difference between two text files?
Meaning:
File-A:
Apple
Pear
Orange
Banana
File-B:
Pear
Orange
Running
% program File-A File-B -o output
output:
Apple
Banana
Edit:
Awesome, thanks guys!
...
A label printer is controled by sending a string of raw ASCII characters (which formats a label). Like this:
string s = "\x02L\r" + "D11\r" + "ySWR\r" + "421100001100096" + date + "\r" + "421100002150096" + time + "\r" + "421100001200160" + price + "\r" + "E\r";
RawPrinterHelper.SendStringToPrinter(printerName, s);
This hardcoded v...
Hi, I'm just wondering how I could remove the text between a set of parentheses and the parentheses themselves in php.
Example :
ABC (Test1)
I would like it to delete (Test1) and only leave ABC
Thanks
...