In many django projects, in the docs directory I can see *.rst files :
What is the best way to browse them (without using a text editor of course) ?
Is that possible to generate HTML ?
I would like to include a rich text editor in a pygtk drawing area for an application i am developing. The editor ( a small resizable widget ) should be able to move around the drawing area like a rectangle. I am not sure how to start as I am pretty new to PyGTK. thank you !
Hi,
i want to display a big string in Qlablel for this simply i have created a label in Qt GUI editor,
then i put the string, with the Wordwrap property ON.
here text is not coming to the next line itself, instead its crossing the view region.
but if i give "\n" it works well.
how to put up big string in label, to display in visible region.
I have the following JQuery code:
$(this).text('Options ▴');
However, the ascii code isn't showing up on my web page. All that shows up is on the webpage is Options ▴.
What am I doing wrong?
How can I parse text and find all instances of hyperlinks with a string? The hyperlink will not be in the html format of <a href="http://test.com">test</a> but just http://test.com
Secondly, I would like to then convert the original string and replace all instances of hyperlinks into clickable html hyperlinks.
I found an example in this thread:
Easiest way to convert a URL to a hyperlink in a C# string?
but was unable to reproduce it in python :(
I need to create perl code which allows counting paragraphs in text files. I tried this and doesn't work:
open(READFILE, "<$filename")
or die "could not open file \"$filename\":$!";
$paragraphs = 0;
my($c);
while($c = getc(READFILE))
{
if($C ne"\n")
{
$paragraphs++;
}
}
close(READFILE);
print("Paragraphs: $paragraphs\n");
(Sales (Type 0 0 0 0 000 0 0 0 0) "Product" "ProductType" "" "0000" "0000") ;;ProductName 000
hai i just want to extract all values from the above text line using regular expressions. how to write regular expression for this.
am using c#
How can I change the Default Size of the filterBy text box in Rich Table? In all the columns, it has a same (fix) size.
I used the property width, but it didn't work.
This is likely a very simple question, but how do I get text in SVG to stretch to fit its container?
I don't care if it looks ugly from being stretched too long or high, but it needs to fits its container and be as big as possible.
Thanks
I have an access table which has some cells as blank ( no data ) in a particular column.
how i write an sql query to replace a blank cell with any text in access 2007 column
any help appreciated.
i have already tried the sql query
update tableA set colA = 'abc' where ISNULL(colA);
It updates 0 rows.
How can I input varables value into a textfield?
var i:uint=0
for(i; i<4; i++){
pageText.text=i+1
}
If i use i+"something" then it can get the i value, but other than that it could now get i value.
Hi,
I have a MS SQL query that is selecting a field and it is being chopped off for some reason it is cutting off text at 257 characters.
Is there some kind of default cut-off for retrieving results with MSSQL and PHP?
I'm honestly clueless as to why this is happening. ANY guidance would be greatly appreciated
I'm looking to learn how to create a REGEX in Coldfusion that will scan through a large item of html text and create a list of items.
The items I want are contained between the following
<span class="findme">The Goods</span>
Thanks for any tips to get this going.
Hi!
What's the way to create a listview with images on the left side and text right after it?
(Note: the images were previously downloaded from the Net)
Thanks in advance!
How do I do a search and replace of text within a module in Access from another module in access? I could not find this on Google.
FYI, I figured out how to delete a module programatically:
Call DoCmd.DeleteObject(acModule, modBase64)
Hi all
I have a text file like below
2 1 2
5 10 13 11 12 14
2 0 1
2 99 2
200 2
1 5
5 1 2 3 4 5
1 0
0 0
I want to read file line by line, and read the umbers from each line. I know how to use the stream to read a fixed field line, but what about the non-fixed line?
Best Regards,
Hi,
I have a text file. I would like to retrieve the content from one line to another line.
For example, the file may be 200K lines. I want to read the content from line 78 to line 2735. Since the file may be very large, I do not want to read the whole content into the memory.
thanks
Frank
Is there a way to read a large text file (~60MB) into memory at once (like a compiler flag to increase program memory limit) ? Currently, ofstream's open function throws a segmentation fault while trying to read this file.
ifstream fis;
fis.open("my_large_file.txt"); // Segfaults here
The file just consists of rows of the form
number_1<tabspace>number_2
i.e., two numbers separated by a tabspace.
How can I print (for example in a label) the text into a GtkTextView?
For GtkLabel and GtkEntry there are gtk_label_get_text() and gtk_entry_get_text(), but for GtkTextView?
I've created a salt using; md5(rand(0,10000000)); (there is probably a better way?)
There doesn't seem to be possible to make a text field unique in MYSQL. So how do I check if the salt has already been used for a previous user?
Or should I generate the salt based on the current date/time? as it is impossible for 2 users to register at exactly the same time correct?
Hi,
From HTML body,I have to extract link which has text "Customer".For example
<a href="google.com">Customer </a>
I was thinking of using regex. What regex to use?
I have a simple tray icon using PyGTK's gtk.StatusIcon:
import pygtk
pygtk.require('2.0')
import gtk
statusIcon = gtk.StatusIcon()
statusIcon.set_from_stock(gtk.STOCK_EDIT)
statusIcon.set_tooltip('Hello World')
statusIcon.set_visible(True)
gtk.main()
How can I add a text label (one or two characters; basically, unread count) to the tooltip - without creating separate images for set_from_file?