text

Input text on UIImageView

Is it possible to allow user input text on a UIImageView, just like the text tool in painter? I cannot find any resource on this topic? ...

SQL - text conversion

I want to select some values from a table . I want a text output . Now what iam doing is iam writing a procedure to convert the selected values into text . But its really time consuming . Is there anythng , means any system functions or sp's in SQL to implement this....? ...

Best OCR for extracting text from a plot?

Does anyone know of a good ocr that is able to convert this image into text? I tried tesseract but it didn't work out the way I expected. ...

Text Editor which shows /r/n?

I'm looking for a text editor that can show me the actual carriage returns and newlines. E.g. if I save this string: "This\rIs\r\nA\nString" Instead of showing This Is A String I'm looking for some text editor which will show This\rIs\r\nA\nString I believe a problem with my text-file parsing in a certain program is being caused ...

How to identify binary and text files using Python ?

I need identify which file is binary and which is a text in a directory. I tried use mimetypes but it isnt a good idea in my case because it cant identify all files mimes, and I have strangers ones here... I just need know, binary or text. Simple ? But I couldn´t find a solution... Thanks ...

Text based browser game

I wanted to create a text based browser game, so how should I go about? I can do programming in asp or jsp or php that is not a barrier, but I am unaware of what steps that one needs to follow while attempting to make such games. So please guide me. please also recommend me a programming language for making the same. ...

Lookup names in large texts

Hi, What is the best way to parse large texts (5000 words and more), searching names, that are stored in a database? The texts will be multi lingual. My first idea is a rather naive approach, taking all words beginning with a big letter and compare them against the database. But this tends to fail in texts containing lowercase letters ...

How to Make Canvas Text Selectable?

Any suggestion is highly appreciated. ...

Algorithm for reading the actual content of news articles and ignoring "noise" on the page?

I'm looking for an algorithm (or some other technique) to read the actual content of news articles on websites and ignore anything else on the page. In a nutshell, I'm reading an RSS feed programatically from Google News. I'm interested in scraping the actual content of the underlying articles. On my first attempt I have the URLs from th...

image magick: right align text in area

Hi, i'm struggling with this: i'm building a table-like image. All goes well, but i can't get this to work: i want to place some text at x,y: 10,10, but want to right align it in an area of 40x40. Why? because they are numbers. When i draw text it's ok to place it at 10,10; it will by default be placed at 10,10 and thus be left-aligned....

What is a fast and unsupervised way of checking quality of pdf-extracted text?

I am working on a somewhat large corpus with articles numbering the tens of thousands. I am currently using PDFBox to extract with various success, and I am looking for a way to programatically check each file to see if the extraction was moderately successful or not. I'm currently thinking of running a spellchecker on each of them, but ...

Speed up text comparisons (with sparse matrices)

I have a function which takes two strings and gives out the cosine similarity value which shows the relationship between both texts. If I want to compare 75 texts with each other, I need to make 5,625 single comparisons to have all texts compared with each other. Is there a way to reduce this number of comparisons? For example sparse m...

How to write shell script that filter for lines and count them?

I have a text file like this: Apple Orange Orange Banana Banana Orange Banana Orange Apple Orange I want to produce the following output after running a bash shell script: Apple: 2 Orange: 5 Banana: 3 It's pretty standard stuff if I use a full blown language like Java/C++ etc but what is the quickest way to do it with a shell scrip...

How to create a bold, red text label in Qt?

I want to write a single, bold red line in my application using Qt. As far as I understand, I would create a QLabel, set its textFormat to rich text and give it a rich text string to display: QLabel *warning = new QLabel; warning->setTextFormat(Qt::RichText); warning->setText("{\\rtf1\\ansi\\ansicpg1252 {\\fonttbl\\f0\\fswiss\\fcharset...

Execute SQL on CSV files via JDBC

Dear all, I need to apply an SQL query to CSV files (comma-separated text files). My SQL is predefined from another tool, and is not eligible to change. It may contain embedded selects and table aliases in the FROM part. For my task I have found two open-source (this is a project requirement) libraries that provide JDBC drivers: CsvJ...

WinForms Control for Textfile converting like in excel or open office?

Hi, for a Windows application I need to read in fixed block files which need to be splitted in fields. I would like to this like in excel or openoffice where I have a preview of the file and can graphically define where the line should be splitted. Does anyone know some control for .net which supports this, or any sample code where th...

insert text field from MSSQL to MYSQL failed

I'm trying to income data from a MSSQL (2005) table to MYSQL (5) table, using SSIS, all fields insert correctly. Except one field that his type is TEXT in MSSQL to MYSQL TEXT field, and always this field is get NULL ! ...

Where should I put miscellaneous functions in a .NET project?

I found myself having to remove the first line of a string quite often while working on a text parser in C#. I put together a simple function to do that for me, but coming from a PHP background, I have no idea where to put it since I can't define a function outside a class. What's a customary way of doing that in .NET? Do I create a stat...

ASP .NET Label orientation for East Asian Text

Does anyone know how to create an asp .net label control that is orientated in 90 degrees clockwise Right now the way I do it is using tag like this <td style="font-size: 13px; width: 20px; text-align: center; vertical-align: bottom;"> <asp:Label ID="lbl1" runat="server" Text="日" /><br /> <asp:Label ID="lbl2" runat...

change backcolor of part of text using javascript ?

i have some part of text with html tags , for example <b>something</b> i select some part of text for example "some". with getSelection().getRangeAt(0); i get position of caret (textcursor), so i know which part of text i've selected. i have startOffset and endOffset. but problem is, that startOffset and endOffset ignores html ta...