text

Are there any way to use custom font file in my site ?

I can use @font-face but it does not work in all browsers. Are there any way to use custom font file in my site ? ...

jquery: return html from div and not children

If I click on #parent I want to return the text inside it and not return the text inside nested layers (#child-parent, #child) <div id='parent'> this text is for parent <div id='child-parent'> this text if for child-parent <div id='child'> and this text is for child. </div> </div> </div>...

Rich text in Flash TLF

How does one apply rich text to Flash at runtime? Specifically, I need to dynamically create bullet-points and paragraphs with line breaks. ...

Smooth text scrolling in C#

hello, i would like to have text that scrolls smoothly on my c# windows form. i tried to define that label with text on it moves pixel by pixel, but it is not smooth as it is like animations created in flash. how can i manage to get such smooth animation? thank you in advance! ...

WPF RichTextBox: Disable Dragging Text within , Allow Dragging Text outside

Hello, I have a UserControl with a RichTextBox in it. It must be disallowed to drag/drop Text within the RichTextBox so the user can not change the visible sort order of the strings in the RichTextBox. But... it must be allowed to the user to drag/drop Text outside the UserControl to the same kubd if the UserControl. Is that somehow p...

How to draw images among rich-text with CoreText? (iOS)

I can draw rich-text with Core Text, the problem is placing images flowing with the text. (iOS SDK 4.1) I'm try to drawing some kind of rich-text. Problem is designer placed many icons among text. So the text what I have to draw is something like this: Here is a word <an icon image>, and another words. The image(<another icon>) should...

What is the strongest encryption to use on protecting text ?

Hello all I need to encrypt text what is the best encryption to use programmatically ? In general I have input file with string that I need to encrypt then read the file in the application Decrypt it for the application flow . with c++ ...

How to use an "&" character in a C# button text property to display properly

Hello, My C# code is: Button button; button = new Button(); button.Text = "B&C"; this.Controls.Add(button); But when I run this code the button on my form displays BC (and the C is usually underlined). I know that I can set it to B&&C to get my button text to come out as B&C but the users of my app...

SEO alt vs text

I have 2 questions: 1 - Is there a difference in SEO between inbound links from the same site (from pages belonging to the same domain), and inbound links from other sites? are they the same value? 2 - is there a difference in SEO between (1) an inbound link with text inside it and (2) an inbound link with an image which contains an "a...

C++ String Array, Loading lines of text from file

I have a problem. When I try to load a file into a string array nothing shows. Firstly I have a file that on one line has a username and on the second has a password. I haven't finished the code but when I try to display what is in the array nothing displays. I would love for this to work. Any suggestions? users.txt user1 password use...

how to highlight user selected text within a piece of text which has already been highlighted?

I have a page where I am displaying some text in a div and I need to highlight this text in certain parts. I have done this by surrounding the text I need to highlight with a tag and appropriate css styling. E.g. <div> My text will look like this with <span class="highlight">highlighted bits</span> in it. </div> This works fine. Howe...

Mysql - Select words from specified text

Hello guys, I have a table contains 413,000 places name (Pris, London,...) is there a way (query) to select locations from specified text. for example: " Transport for London (TfL) is in talks with its American, Australian and European partners about issuing a single contactless card for Paris, New York". I want a query to get: * Lo...

How do I filter chat messages by normalizing letter forms?

I'm filtering chat messages on a chat system where constraining strings to Latin-1 English is desirable. Users tend to use creative typing, e.g. ßòógīě§ instead of Boogies In Java, there are unicode normalization methods which can remove diacritic marks, but I'm more interested in methods of normalizing the shapes of the letters t...

Convert to string/text ruby

Hi, I'm using the following code to download a page through a POST request: require 'net/http' require 'uri' res = Net::HTTP.post_form(URI.parse('http://example.com'),{'post'=&gt;'1'}) puts res.split("Date") The URL I originally used has been replaced with example.com It works great, but when I try to call split (last line) it return...

adding textual column and row headers to numpy array

I am creating a 2d summary matrix from a 3d array using the following code: numTests=len(TestIDs) numColumns=11 numRows=6 SummaryMeansArray = p.array([]) summary3dArray = ma.zeros((numTests,numColumns,numRows)) j=0 for j in range(0,len(TestIDs)): print 'j is: ',j TestID=str(TestIDs[j]) print 'TestID is: ',TestID read...

Jquery slide text vertically

Hi, I am trying to make some text scroll vertically using jQuery, I have been following the code example on http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div Please can someone guide me on how to achieve Position the slider vertically Make the text scroll vertically when the slider is moved up or down E...

Brackets go backward on Unicode text

I have Unicode text being displayed on an ASP.NET page. The text is enclosed by two square brackets, as soon as Arabic text appears the ending bracket goes reverse, e.g. "[Hi there]" becomes "[ [arabic". Is this a browser issue? The brackets are hard-coded and only the enclosing text is dynamic. Here is some sample code. The variable r...

Parse Lines of Single Words and Groups of Words Inside Quotes Using Regular Expressions in Ruby

I'm trying to figure out how to better parse lines of text that have values that look like this: line1 'Line two' fudgy whale 'rolly polly' fudgy 'line three' whale fudgy whale 'line four' 'line five' 'fish heads' line six I wish to use a single regular expression to display the desired output. I already know how to kludge ...

Limit text length to n lines using CSS

Is it possible to limit a text length to "n" lines using CSS (or cut it when overflows vertically). text-overflow: ellipsis; only works for 1 line text. original text: Ultrices natoque mus mattis, aliquam, cras in pellentesque tincidunt elit purus lectus, vel ut aliquet, elementum nunc nunc rhoncus placerat urna! Sit est sed!...

How to properly display multiline text in SVG 1.1?

Hi, I would like to take a multiline block of text and display it in SVG. I would like to keep the lines as lines. Is there a proper way to do this? I am using Inkscape for my base drawing and Batik for my rendering. It seems the two do not agree on how to do this. Inkscape is creating a structure like this: <flowRoot xml:spac...