Hi,
I'm trying to write a text parser with PHP, like Instapaper did. What I want to do is; get a webpage and parse it in text-only mode.
It's simple to get the webpage with cURL and strip HTML tags. But every webpage have some common areas; like header, navigation, sidebar, footer, banners etc. I only want to get the article in text mo...
Is it possible to adjust the "size" of the browsers controls rendered output, ie text size or zoom out?
Im wanting a small browser visible on a form just as a preview to what a html page will render like.
so Id like it to be as small as possible
any ideas on doing this?
...
Hi
I have been having this issue for a while and cannot figure how should I start to do this with python. My OS is windows xp pro. I need the script that moves entire (100% of the text) text from one .doc file to another. But its not so easy as it sounds. The target .doc file is not the only one but can be many of them. All the target ....
In Google BlogSpot, what type of editor they are using for type the message/comment/post,
please find attachment,
...
I am writing a command line tool to convert Markdown text to html output, which seems easy enough.
However, I am wondering how to get nice syntax coloring for embedded code blocks, like the one used by Stack Overflow.
Does anyone know either:
What library StackOverflow is using
or if there's a library out there that I can easily reus...
Is there a way to have a SWT buuton with both image and text in a view? I have tried embedding Swings in SWT and the view looks exactly as I want, but when there is an operation going on, this view doesnot load till it gets over. This makes my perspective look unstable. Please help.
...
I am using JQuery to append large amounts of text inside a tag. I find the more text currently within the tag the slower appending is, and for large amounts of text it is too slow.
Is there a more efficient way to append text? Such as for instance creating dummy child tags and setting the content of them rather than appending to the par...
HTML:
<a href="#">Show next element</a>
<div>content</div>
jQuery:
$('a').toggle(function () {
$(this).next().show();
},
function () {
$(this).next().hide();
});
How do I change the above jQuery so it also changes the "Show" in the link to "Hide" when the element is visible?
Thanks!
...
What is a Perl regex that can replace select text that is not part of an anchor tag? For example I would like to replace only the last "text" in the following code.
blah <a href="http://www.text.com"> blah text blah </a> blah text blah.
Thanks.
...
I run into situations where I have to repeat a single line of text with some minor editing.
For example:
1. insert into table_name (col_one, col_two) values (val_1, val_2);
2. insert into table_name (col_one, col_two) values (val_3, val_4);
3. insert into table_name (col_one, col_two) values (val_5, val_6);
and so on... (1000 records)
...
I have this jQuery toggle. It work fine.
<ul>
<li>Go to the store</li>
<li>Pick up dinner</li>
<li>Debug crash</li>
<li>Take a jog</li>
</ul>
$("li").toggle(
function () {
$(this).css({"list-style-type":"disc", "color":"blue"});
},
function () {
$(th...
Hi, i have to set the text format for some tokens in a plain text. I'm trying to use the Text Layout Framework to improve the speed of the operation but i've founded that TLF is far slower (10X in my tests) than the old setTextFormat(). For each token i call this function:
public function setTextFormat(format:TextLayoutFormat, begin:int...
as said in the title
for example:
<input id="User_Type_0" type="radio" name="User_Type" value="1" checked="checked" />
<label for="User_Type_0">User1</label>
<input id="User_Type_1" type="radio" name="User_Type" value="2" />
<label for="User_Type_1">User2</label>
how can I get the text:User 1
...
What are the advantages and disadvantages of using the nvarchar(max) vs. NText data types in SQL Server? I don't need backward compatibility, so it is fine that nvarchar(max) isn't supported in older SQL Server releases.
Edit: Apparently the question also applies to TEXT and IMAGE vs. varchar(max) and varbinary(max), for those searching...
i am trying to validate my form fields calling the input text ids, but jquery is not validating it. here is what i have:
email2: {// compound rule
required: true,
email: true
},
if i change name="email2" it works fine, but i want name="email[]" as i have an array of ema...
Greetings.
For a PHP-Project, I have to build PNG-images where I pass some text and then let imagick generate the image for that text. I did this kind of stuff with success in gd, but only had 1 font (per text-generation-block) to play with.
As I want to change between 2+ fonts while generating this textblock I read a lot in Google, bu...
when i display ckeditor text the html tags are also displayed. how can a i show only the text?
i'm getting this:
<p> </p> <ul style="list-style-type: none; list-style-image: none; list-style-position: outside;"> <li> Nurzahan Road,Dhaka</li> <li> West of Tajmahal Road</li> <li> Phone: 9110614</li> </ul>
i want to show only this:...
hy,
im searching for a lib which can recognize the human language of a .txt document
i already found http://www.google.com/uds/samples/language/detect.html
but im more interested in source code which i can use offline
some language which would be great to support
english, french, german
programming language which would be best
c/c++, p...
Is there any tool or utility or perl/python script that can find longest repeated substrings in a large text file and print those patterns and the number of times each pattern occurs?
...
I'm dealing with a phone that has no physical keyboard and I'm using my own custom view for rendering. The device I'm working with, by default, seems to be in a T9 type entry mode where it suggests blocks of text. However, it never sends me the actual key events.
How do I tell whatever soft-keyboard that pops up to enter 'dumb' key ...