text

Wrap text on Canvas in J2ME

Hi frnds, I'm going to develop j2me application I want to know, how i can wrap text on canvas according to screen width size in J2ME. Thanks Neel ...

SQL Azure - Substring Searches?

SQL Azure does not support SQL Server's Full Text Search feature. Does this mean a text field cannot be indexed to handle substring searches? For example, if I have a table Emails, with a Message column And I want to find all messages with both the words 'hello' and 'thanks' in them, will the standard index on the message collumn allow ...

creating multi dimensional varchar/text arrays in plpgsql (postgres)

i have some functionality i'd like to get from the server-side code into the database. i can't figure out how to set the values of a multi-demensional varchar array in plpgsql. here is an example of what i'm trying to do: `CREATE OR REPLACE FUNCTION my_function (my_arg integer) RETURNS text[][] AS $$ DECLARE my_arr varchar[]...

Extracting a set of words with the Python/NLTK, then comparing it to a standard English dictionary.

I have: from __future__ import division import nltk, re, pprint f = open('/home/a/Desktop/Projects/FinnegansWake/JamesJoyce-FinnegansWake.txt') raw = f.read() tokens = nltk.wordpunct_tokenize(raw) text = nltk.Text(tokens) words = [w.lower() for w in text] f2 = open('/home/a/Desktop/Projects/FinnegansWake/catted-several-long-Russian-nov...

Rainbow Text on an HTML page... each character is a different randomly generated color.

I would like to be able to create a page using HTML and scripts to display text in which each character is of a different randomly generated color. With a javascript graphics library that supports the creation and use of RBG colors and the Math.random() method, it is simple to make randomly colored lines/shapes/etc, but I do not know ho...

Aligning text on diagonal path

I have two points that draw a line when connected. The line can be both vertical horizontal, vertical, or (most commonly) diagonal. I would like to try text along this path. I'm using C# and WinForms, but I think that isn't as important as some simple psuedo-code that may include some math (trig?) needed to find the angle of the path t...

Select columns of data from .txt to .csv

hi there! I am quite new to python (well more like I've only been using it for the past week). My task seems fairly simple, yet I am struggling. I have several large text files each with many columns of data in them from different regions. I would like to take the data from one text file and extract only the columns of data that I ne...

how to remove blank lines with grep

I tried grep -v '^$' in Linux and that didn't work. This file came from a Windows file system. ...

Import Textfile and read line by line in Java

Hey guys, I was wondering how one would go about importing a text file. I want to import a file and then read it line by line. thanks! ...

Check message for "bad words" and "unseriousness" with php?

Possible Duplicate: How do you implement a good profanity filter? I have a classifieds website, and when displaying a classified, users have the option of mailing a message to the poster of the classified. I need to check this message against bad words and unseirousness before sending it. Firstly, how can I check some text a...

Changing the type of a custom field for already created SharePoint sites.

Hi, Currently we have a series of SharePoint sites already created in which we have a custom field created as follows in a custom fldtypes.xml <?xml version="1.0" encoding="utf-8" ?> <FieldTypes> <FieldType> <Field Name="TypeName">HierarchyTaggingField</Field> <Field Name="TypeDisplayName">Hierarchy Tagging Field</Field> <Field ...

Change paragraph text dyanamically with jQuery?

Hey everyone, I want to take the information typed into a text field and display it in a paragraph elsewhere on the page. Basically, exactly what is happening below as I'm type this (go to post a question and start typing in the main text box and you'll see what I mean). Any idea how to do this? The page has so much javascript on it I ...

jQuery: using .text() to retrieve only text not nested in child tags

Hi all, If I have html like this: <li id="listItem"> This is some text <span id="firstSpan">First span text</span> <span id="secondSpan">Second span text</span> </li> I'm trying to use .text() to retrieve just the string "This is some text", but if I were to say $('#listItem').text(), I get "This is some textFirst span te...

WPF text rendering inconsistencies.

WPF 4.0 notoriously fixed the blurry text issue. Setting TextOptions.TextFormattingMode="Display" uses pixel hints to line up characters, which works really well to improve clarity. However, it does not work while the program is running as a Windows service in session 0; the text goes back to "Ideal" rendering, which at small sizes is c...

List all applications - output as text file

Hello, I was just wondering how someone would go about finding all the applications that are installed on Mac OS X 10.5 using preferably applescript and output all their application names to a text file. ...

Need help creating a 24 minute day clock

Hello. I need help with some code that i am writing for a small text rpg. Its basically a clock that simulates a day, which will be 24 minutes instead of 24 hours. 1 second will equal one minute, and 1 minute will equal one hour. The clock will start from 12:00 and go to 12:00. I need ideas on how to write this code. This is code that i ...

Hardware and software setup for accessing and monitoring text messages on a phone connection

What hardware/software do I need to setup a machine that monitors incoming text ("SMS") messages on a phone connection? The software needs to be able to read the message, copy it to a database and then delete it. ...

Insert image into text and keep the text wrapping with CSS

Hi all, I've just encountered a problem that my current (almost equal to 0) CSS knowledge cannot deal with. Here's the thing: I have some text inside of a div element; this div element (let's call it a container) has a fixed width and dynamic height (no constraints). I'd like to put some text inside of the container; after the second ...

Highlighting text while typing in a text box in asp.net

Hi All, Can anyone help me out with this problem. I want to highlight the text while typing in a TextBox. How can I do this? ...

Upload photos to website from a text to a 1-800 number from mobile phone

I need the ability for someone to send a text with a photo attached to a 1-800 number from their mobile phone, and have that image uploaded/sent to a website. I'm at a bit of a loss on where to start with this. Can anyone point me in the right direction or let me know what would be involved and how to get started? Any insight is appre...