I have a UILabel called optionsDisplayerBrushSizeLabel who's text property I want to set to a CGFloat: brushSizeVal. I understand that the text property needs to be a string but I don't know how to convert a CGFloat to an NSString.
...
I have an Access database of information where I need to replace text that may reside in 1 of 10 columns. I have a number of different requests for find and replace that need to be done. I need to do this twice a day.
These are the details. We receive a download of data twice a day that has course information in it. A record can have 10...
Hi All,
i am using TF/IDF to calculate similarity. For example if i have following two doc.
Doc A => cat dog
Doc B => dog sparrow
It is normal it's similarity would be 50% but when I calculate its TF/IDF. It is as follow
Tf values for Doc A
dog tf = 0.5
cat tf = 0.5
Tf values for Doc B
dog tf = 0.5
sparrow tf = 0.5
IDF values for D...
Hi all,
I want to get all text in between 2 words wherver it is.
For example:
String Testing="one i am here fine two one hope your are also fine two one ok see you two";
From the above string, I want to fetch the words between "one" and "two" in array:
My result should be stored in array like this:
String result[1] = i am here fine...
I've got a this text
"?foo=bar&foobar=barfoo"
what is the best way to convert this text to variable? Like this:
<?php
echo $q['foo']; //bar
echo $q['foobar']; //barfoo
?>
Thanks.
Sorry for my English.
...
hi everyone,
in this browser and bitmap graphics dominated world - after decades of macintosh-ish richly decorated windows and pretty components - I'm looking for a way to render fixed size character text, draw an extremely simplified "gui" onto 3d panels that can be zoomed and interactively resized making the content tiny and not wrapp...
Hello
I am a newbie
I want to know
is there a way to have a text area which allows html where users can paste their html codes ?
...
Hello all ,
i develop a mobile application ,where i want to auto scroll some text as my advertisement.I read from some forum where they mention its a ticker,but i try it but but i failed ,so please help me to solve my problem,
with regards,
shakti.
...
Hope this is the right place to ask this question. I am new to the forum (and to Drupal!).
I am developing a site using Drupal. Am using Zenophile Midnight and have created a Zen sub Theme. This has three columns, each with a black background.
I am trying to edit a View but when I open the views/edit node I find when I try to create a F...
When I hover a text with animation definitely I will use jquery. Is there a code that will change the color, or size?
...
Flash can use 2 types of fonts such that they can be changed at runtime by actionscript.
system fonts - NOT anti-aliased so renders fast
embedded fonts - anti-aliased so renders slow
The problem with "system fonts" is that you can't rotate the text. Can I use embedded fonts AND turn off the anti-aliasing so it renders fast?
...
I've got some HTML like the following:
<span id="A">Text I'm interested in
<span id="B">Other crap I don't care about</span>
</span>
I'm looking to get the text content of span "A" excluding any nested tags (i.e. the content of span "B" in the above example). I'm trying to get the text content, not the HTML content. Also, in my part...
I am currently using the System.Drawing.Graphics.DrawString() method in .Net to draw text on top of an image, and then save it to a new file:
// define image file paths
string sourceImagePath = HttpContext.Current.Server.MapPath("~/img/sourceImage.jpg");
string destinationImagePath = HttpContext.Current.Server.MapPath("~/img/") + "final...
i'm using an image for "li" element. the problem is the text displayed under the image.how to align text to center of the list image?
looks as follows
css:
ul.mark{
list-style-image: url('bullet1.jpg');
}
html:
<ul class='mark'>
...
</ul>
...
Apologies if this is a silly question, could use an opinion:
I've got a messages table in MySQL which records messages between users. Apart from the typical ids and message types (all integer types) I need to save the actual message text as either VARCHAR or TEXT. I'm setting a front-end limit of 3000 characters which means the messages...
Mysql question:
I've got a table A with a column full of sentences.
I've got another table B with two columns: words and abbreviations.
I want to look through table A's column sentences and if a word from table B's word column matches then replace it with abbreviation.
Hope that is clear.
Case doesn't matter, I can deal with that. ...
I have multiple text files, which are simple reports, that must be reviewed and validated by users. I would like to pull the report into an html div element then add form fields at absolutely positioned locations.
For example, the report may have monthly sales by sales rep:
Jan Feb Mar
13 9 11
I want the user to see t...
How would I cause text to scroll either vertically or horizontally? (And be able to change the speed of the scroll). Any help to get me started would be appreciated...al
...
Hallo,
I have the following syntax:
@AAAA{tralala10aa,
author = {Some Author},
title = {Some Title},
booktitle = {Some Booktitle},
year = {2010},
month = {March},
booktitle_short = {CC 2010},
conference_url = {http://www.mmmm.com},
projects = {projects}
}
....
I've made the following regular expression:
@[A-Z]*[{][...
Consider the following code:
from PIL import Image, ImageDraw, ImageFont
def addText(img, lTxt):
FONT_SIZE = 10
INTERLINE_DISTANCE = FONT_SIZE + 1
font = ImageFont.truetype('arial.ttf', FONT_SIZE)
lTxtImageHeight = INTERLINE_DISTANCE * len(lTxt)
# create text image
lTxtImg = Image.new('RGBA', (img.size[1], l...