text

Converting txt to dbf and back, command line (unix) tool?

Hi all, I have to take a bunch of columnar text files and integrate them into a single big dbf file, possibly with an intermediate step in a sqlite database. DBF is the basic file of databases, hence the weird request. Does anybody know a command line tool for going between text and dbf? Or a sqlite way to attach dbf's would work in ...

Why is text being truncated in this Silverlight TextBlock?

I have a TextBlock with wrapping enabled and while the text is wrapping, it is being wrapped in such a way that some text is truncated. The TextBlock is defined as <TextBlock x:Name="_txtLiveText" Style="{StaticResource TranslationInfoTextBlockStyle}" Text="Live text displays here" Width="Auto" TextWrapping="Wrap" Grid....

Export from Excel to text file without line breaks

Hi, I have a regular Excel spreadsheet with only 1 column. I want to export it to a text file with a separator. I am not interested in separating columns, since I only have one. My concern is to export with separators instead of line breaks so that my final result is a simple list like this "item1","item2","item3"... and so on. item1, i...

svg text element width

I'm working on some ecmascript/javascript for an svg file and need to get the width and height of a text element so I can resize a rectangle that surrounds it. In html I would be able to use the offsetWidth and offsetHeight attributes on the element but it appears that those properties are unavailable. Here's a fragment that I need to w...

which Java / Groovy library to overlay text on an image

I am working on a web application (using Grails) which will generate a gift certificate. I'm thinking of a workflow like this: The user will pick a template which will be stored as an image. Then the text (name, date, amount etc) will be overlaid on the image to make the final certificate. There is a set of co-ordinates associated ...

Query a dataTable by large Query String

I have a datatable that i want to query. the query is very large and complicated and it works when i run it in the SQl Server Editor - so i have the query text. i need to query the datatable with this query String. To Translate the query into linq will take years, and also Select() method of DataTable won't handle it. How can i operate...

Search a list box while typing in a text box in Winforms C#

I have a list-box where items are loaded from database , when user types anything in text-box, list-box should search the starting characters entered and display it in text-box.? For example : As soon as User types "A" in text-box ,then all the records starting from "A" should be displayed in List-box. When user selects the record and...

following a log file over http

For security reasons (I'm a developer) I do not have command line access to our Production servers where log files are written. I can, however access those log files over HTTP. Is there a utility in the manner of "tail -f" that can "follow" a plain text file using only HTTP? ...

How to fully justify texts programmatically (Delphi)?

How can I fully justify a block of text (like MS Word does, not only on the right and not only on the left but on both sides)? I want to justify some texts (mainly arabic text) adjusted to certain screen size (some handheld device screen actually, and its text viewer doesn't have this function) and save this text as justified. So I can...

Extracting words from text field in SQL

Hi, I'm currently building a little CMS for a smaller site. Now I want to extract all words from the text_content field and store them in my word table for later analysis. page( id int, title varchar(45), # ... a bunch of meta fields ... html_content text, text_content text); word( page_id int, # Forei...

Checking a file for a certain string in Java.

I'm trying to have my application read through a text file and look for a string. If the string does not exist, it makes it using println. The only problem I'm having is that it doesn't seem to read the text file. What I have so far is: PrintWriter itemwriter = new PrintWriter(new FileOutputStream(items)); FileInputStream fstream = new ...

Find text in element and addClass to Parent

HTML: <table> <tr> <td> <a href="#" class="nav">link</a> <td> </tr> </table> I want to: FIND TEXT 'link' in a.nav and ADD ID "abc" to 'table'. Tried this but it doesn't work: $('table>tbody>tr>td>a.nav:contains("Forum Index")').parents('table').attr('id', 'newID'); (tbody because most browsers add it automatically) ...

arabic text in opengl using freetype 2 library

Can any one tell me or write to me a class how to use free type 2 with opengl for displaying the arabic text in opengl,it is the challenge if any one can do it ...

How to get the text value of an object?

How do I get the text value of an object in order to display it in a table? Other posts say objects are not NSStrings and you need to ask the object for its text. But how? The error is this: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[Names isEqualToString:]: unrecognized selector sent to...

Converting accented characters in PostgreSQL?

Is there an existing function to replace accented characters with unadorned characters in PostgreSQL? Characters like å and ø should become a and o respectively. The closest thing I could find is the translate function, given the example in the comments section found here. Some commonly used accented characters can be searched us...

Managing a text file in C#

okay, so i have a text file with example content below line1with some random stuff here line 2 with something very completely different line3 has some other neat stuff line4 is the last line in the textfile i need to get that text file, delete one line, and leave the REST of the file in tact. and so if i wanted to delete line 2, id wa...

Algorithm wanted: Find all words of a dictionary that are similar to words in a free text

We have a list of about 150,000 words, and when the user enters a free text, the system should present a list of words from the dictionary, that are very close to words in the free text. For instance, the user enters: "I would like to buy legoe toys in Walmart". If the dictionary contains "Lego", "Car" and "Walmart", the system should p...

objective-C : @synthesize not working and basic operations not working :*(

I am unsure why this code will not work and what i want it to do is when i click a button(action: buttonclick) i want it to change the two text box's(MyTextLabel & MyTextLabel2) text increment the value "r" by one. here is the code: MainView.h #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> @interface MainView : UIView { ...

How do I know if my PostgreSQL server is using the "C" locale?

I'm trying to optimize my PostgreSQL 8.3 DB tables to the best of my ability, and I'm unsure if I need to use varchar_pattern_ops for certain columns where I'm performing a LIKE against the first N characters of a string. According to this documentation, the use of xxx_pattern_ops is only necessary "...when the server does not use the s...

Importing from Text File Java question

Hi all, I decided to create a currency converter in Java, and have it so that it would pull the conversion values out of a text file (to allow for easy editability since these values are constantly changing). I did manage to do it by using the Scanner class and putting all the values into an ArrayList. Now I'm wondering if there is a w...