1
голосов
3ответов
2162 просмотров

Text Typing Effect in iPhone cocos2d Game

In many games, when a character is speaking (dialogue), the text has a typing effect, where it looks like you are watching the character type the text. What would be a good way to achieve this look and (simple) "animation" for an iPhone game which uses cocos2d? It's good if there's a way to do ...

0
голосов
3ответов
482 просмотров

How to change html part of a tag with jquery?

I have , `<span class="icon">►</span>` in Jquery I did, $(this).html('▼'); and tried $(this).replaceWith('▼'); too. but it displays '▼' instead of converting it to a html icon like ▼. thanks

4
голосов
3ответов
3994 просмотров

Problem embedding font and displaying it correctly in Flash

I'm looking for the right textfield parameters or work-around for my latest problem here dealing with Flash fonts & text fields. I have a textFormat and textField generation some text using the Font: Franklin Gothic Book point size 8. Currently this is how the font will look when I run the m...

0
голосов
4ответов
941 просмотров

How can I prevent a Checkbox state switch when the user clicks on the text?

I have a list box with Checkboxes in it. I want to prevent the Checkbox from changing its status if the user clicks on the text next to it. I only want it to change if the small box is clicked directly. Is there any way to do this in windows forms? Greetings and thanks in advance.

8
голосов
11ответов
2490 просмотров

Where to get a list of almost all the words in English language?

I want to get some random text generated. I tried writing a basic Java programme, int nowords = r.nextInt(2000); int i, j; for (i = 0; i < nowords; i++) { int lengthofword = r.nextInt(10) + 2; for (j = 0; j < lengthofword; j++) { in...

10
голосов
4ответов
23180 просмотров

Use sed to delete all leading/following blank spaces in a text file

File1: hello world How would one delete the leading/trailing blank spaces within this file using sed - using one command (no intermediate files)? I've currently got: sed -e 's/^[ \t]*//' a > b For leading spaces. sed 's/ *$//' b > c And this for trailing spaces.

0
голосов
3ответов
15194 просмотров

How to use sed to delete a string with wildcards

File1: <a>hello</b> <c>foo</d> <a>world</b> <c>bar</d> Is an example of the file this would work on. How can one remove all strings which have a <c>*</d> using sed?

0
голосов
1ответов
344 просмотров

UiTextView doesn't display text on iphone os 2.0

My text view shows the text when i am using iphone OS 3.0- but for some reason it will not show the text on OS 2.0. I can get the inputed text on OS 2.0 and even save it to file, and then restore the text but still- the text is not visible on OS 2.0. I have tried changing the scrolling properties...

0
голосов
2ответов
913 просмотров

PHP: STR replace by link

i have this PHP chatbox. If i would type a link in the chatbox, it would not display it as a link. How can i use STR replace to do this? It should respond to stuff like 'http' 'http://' '.com' '.nl' 'www' 'www.' .... My other STR replace lines look like these: $bericht = str_replace ("STRING...

0
голосов
1ответов
661 просмотров

Flash datagrid text and masking problem?

I am using AS3, I have a problem in displaying the datagrid. The Datagrid text not showing behind mask. If i put outside the mask, then the data(text) will appear. How do I display the datagridc text/data inside the mask layer?

6
голосов
2ответов
8682 просмотров

Create a text with drop shadow in AS3

I'm trying to create a simple text with a drop shadow in ActionScript 3.0; for example: _tf = new TextField(); _tf.autoSize = TextFieldAutoSize.CENTER; _tf.selectable = false; var format:TextFormat = new TextFormat(); format.font = "Arial"; format.bold = true; format.color = 0xffffff; format.siz...

6
голосов
6ответов
32444 просмотров

edit text file using Python

I need to update a text file whenever my IP address changes, and then run a few commands from the shell afterwards. Create variable LASTKNOWN = "212.171.135.53" This is the ip address we have while writing this script. Get the current IP address. It will change on a daily basis. Create variabl...

17
голосов
1ответов
7891 просмотров

How to make links clickable in a QTextEdit?

Is there a way to make links clickable in a QTextEdit? I know I can use a QTextBrowser and connect to anchorClicked but I'd rather keep the editing and viewing all in one widget, and have clickable links when I set the widget to read-only mode. Is this possible or am I stuck with having two sep...

36
голосов
6ответов
54413 просмотров

How do I extract keywords used in text?

How do I data mine a pile of text to get keywords by usage? ("Jacob Smith" or "fence") And is there a software to do this already? even semi-automatically, and if it can filter out simple words like "the", "and", "or", then I could get to the topics quicker.

1
голосов
6ответов
1334 просмотров

How do I data mine text?

Here's the problem. I have a bunch of large text files with paragraphs and paragraphs of written matter. Each para contains references to a few people (names), and documents a few topics (places, objects). How do I data mine this pile to assemble some categorised library? ... in general, 2 thing...

1
голосов
1ответов
1388 просмотров

iPhone SDK - How to read on text files

I want to store some coordinates on a text files that correspond to an image array i will call out on my apps. Is it possible to write it in a notepad and save it as a .txt and be able to read in xcode the coordinates written inside or do i have to use plist format for that? thank you.

5
голосов
2ответов
2530 просмотров

Alternatives to using text() to adding text to a plot

This may be a naive question, but I was wondering if there's a better way than using text() to adding text to a plot. Note, I'm also using layout() as well. Specifically, I have a section of a plot where I would like to add some text with headings followed by regular text. text() is fine it s...

0
голосов
3ответов
79 просмотров

Cleanly translate (x to y) and (y to x) using a find/replace/regex in TextMate

I want to change this: _(with(new FuListNode )->isList())->shouldBe(true); _(with(new FuListNodes)->isList())->shouldBe(false); _(with(new FuTreeNode )->isList())->shouldBe(true); _(with(new FuTreeNodes)->isList())->shouldBe(false); } } to this (look at the booleans at ...

0
голосов
1ответов
111 просмотров

Programatic Image Scanning and Naming

I have a typical yearbook with photos and a name beneath each photo. Is there a programmatic way to scan all of the photos and save them with the name beneath the photo?

0
голосов
2ответов
204 просмотров

Loaded HTML Text In Flash not displaying with BlendMode.LAYER

Have a textField in which I'm loading HTML formated text into it. This textField sits inside a parent container which has its blendMode property set to BlendMode.LAYER. When I run the movie, the html text doesn't display. Any clues why?

47
голосов
6ответов
66384 просмотров

extract text from pdf in Javascript

I wonder if is possible to get the text inside of a PDF file by using only Javascript? If yes, can anyone show me how? I know there are some server-side java, c#, etc libraries but I would prefer not using a server. thanks

1
голосов
3ответов
143 просмотров

How to allow a user to edit data in a separate app from the terminal?

I am writing a terminal-based application, but I want the user to be able to edit certain text data in a separate editor. For example, if the user chooses to edit the list of current usernames, the list should open as a text file in the user's favorite editor (vim, gedit, etc.). This will proba...

0
голосов
5ответов
1967 просмотров

Extracting text fields from HTML using Python?

what is the best way to extract data from this HTML file and put it into MySQL database with company phone number, company name and email with a primary key as phone number? </tr><tr class="tableRowOdd"> <td>"JSC company inc. 00" <[email protected]>&...

1
голосов
3ответов
509 просмотров

Good Text Tokenizer Library

What is a good open source C word tokenizer library? I am look for something like Tokenize("there are three apples. One is orange, the other is blue," " and, finally, the last is yellow!") with the output not containing any punctuation.

0
голосов
3ответов
69 просмотров

long running scripts and open text documents

When using a long running script which writes to an open text files, say for logging, which is the better approach: open a file, write to it as needed, and then close when done? Or open the file, write to it, and immediately close it every time? I can see advantages and disadvantages to both. Any...

8
голосов
7ответов
1176 просмотров

Are there any tricks for counting the number of lines in a text file?

Say you have a text file - what's the fastest and/or most memory efficient way to determine the number of lines of text in that file? Is it simply a matter of scanning through it character by character and looking for newline characters?

0
голосов
2ответов
861 просмотров

c# windows mobile Text messaging

I have mad an application for windows mobile which can do different mobile functions with the numbers the application has. Anyway. I want to start the Text message application and send a phonenumber as an argument. I have only found this: SmsMessage sms = new SmsMessage(); ...

25
голосов
3ответов
11752 просмотров

.NET "default line terminator"?

Is there any way to figure out what .NET is using as its "default line terminator"? For example, documentation for StringBuilder.AppendLine(String) says it "Appends a copy of the specified string followed by the default line terminator...". Several text-related classes in .NET refer to the same...

544
голосов
17ответов
556952 просмотров

Android: combining text & image on a Button or ImageButton

I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image. If I use ImageButton I don't even have the possibility to add text. If I use Button I can add text but only define an image with android...

1
голосов
2ответов
1961 просмотров

Why isnt WPF displaying an accented character correctly?

I'm downloading a webpage, and then loading strings from the page into a WPF UI. One string has an accented character: "Ãine". In the debugger, the string looks fine, but when added to a WPF ListBox, it appears like this: Ã[]ine, where [] is a single rectangular symbol. When I copy the text from ...