text

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 probably be an environment variable such as $MY...

sql full text index problem with "score" not updating in a timely fashion

Have full text index on a table for the purpose of searching and producing a list of results based on relevance, I assign relevance based on the highest "score" from the full text index. The table contains 3 columns, a unique ID, a text field in the type (varchar), and the third is a timestamp of the last edit. The full text index only ...

extract text from pdf in Javascript

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

No results returned to a reader but the same query works thru SQL Management Studio

Hello, I'm experiencing weird behavior with some of full text search queries, especially those with multiple words. These are working fine when executed thru Management Studio but returning no results when called from a code. I did a SQL Trace to see what commands are being sent from my app and exactly same command come with results wh...

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? ...

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? ...

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 the end): _(with(new FuListNode )->isList())->shouldBe(false); _(...

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 seems for simple annotations, but to get th...

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. ...

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 things. I don't know what I'm looking for, so...

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. ...

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 separate widgets in a stack and switching be...

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 variable CURRENT for the new IP. Compare (as stri...

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.size = 12; _tf.text = "Drop shadow"; _tf.defa...

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? ...

PHP: STR replace by link

Hello, 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 ("STRING1","STRINGREPLACEMENT1",$bericht);...

JavaScript: To the other page

I made this PHP chatbox which supports some JavaScript code. I have these 'images' which if you click them make special codes inside the textfield. e.g: <head> <script language="javascript"> function addCode(code) { document.writeform.bericht.value+=code; document.writeform.bericht.focus(); } </head> <bo...

UiTextView doesn't display text on iphone os 2.0

Hi, 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 and the font and the color and the hi...

Linux text editor for working with huge files

Hello, I have a huge (~2GB) file that I need to navigate around. I don't actually need to edit it, just jump around efficiently. I tried vim but it choked. Any recommendations for working with huge files on Linux? Thanks ...

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? ...