text

How to specify tab delimitation file load in Oracle sqlldr control file?

This should be simple, but what is the correct syntax for an Oracle sqlldr control file in order to specify tab delimited/separated data? FWIW, I found the file was UTF16 and not UTF8, and was editing fine but would introduce null bytes as Oracle read the control file. Can't even replicate today. ...

How to let text adapt to a set table width instead of stretching the table?

Hi, I thought that this would make a table with a set width, and that text would automatically try to fit in by starting on a new line. However, the table still gets stretched by long lines of text. <HTML><center><table width="300" border="1"><tr><td> <?php If (file_exists("file.txt")){ Echo nl2br(file_get_contents("file.txt")); }E...

Lucene search - score higher if word or similar are in a Field

Hi, I need to know when a word or words are inside a field in my index, and have that document swith greater score. My problem is that if i search for "Sherton Hotel" I get this as greatest results Petit Hotel Crzy cow Simmonss And i would like this ones to have the greatest results Maui Sheraton Hotel near the moon A fantastic ho...

Blending messages in and out with control or jquery

What would you suggest, if I wanted to blend text messages in and out (fade in and out) from codebehind ? My problem is the following: I have a couple of modalpopups in which I have UpdatePanels running and when the user submits data, I want to show messages (not javascript's alert) like "Saved." as pure text, that is faded in and out, t...

modify a datastream on the fly

I need to hijack and modify a datastream. The stream consists of fixed-width commands. Each command is a new line, and the documentation says that each command starts and ends with an STX/ETX pair (start and end of text) The sending system is using serial, but is attacked to an iPocket device that communicates over IP to our PBX. Fro...

Text resizing in HTML/JS.

I'm trying to create a book type interface that has 'pages', and the user can manually resize text, the catch is that I don't want the text to ever scroll. I was using the studio HTML5 demo as a starting point, the problem is as any given text is allocated to one slide, so as the text size is increased the slide sizes just increase and...

How to insert a text editor on a page

Hi, I'm looking into inserting a text editor / making a simple one on my site. I would prefer to make one if it's not too too difficult. The idea is that I have a text area that is inserted into a database, and I would like the text to be viewed the exact same was it was entered by the user once it is pulled back up, hopefully info the ...

Quickly find differences between two large text files

I have two 3GB text files, each file has around 80 million lines. And they share 99.9% identical lines (file A has 60,000 unique lines, file B has 80,000 unique lines). How can I quickly find those unique lines in two files? Is there any ready-to-use command line tools for this? I'm using Python but I guess it's less possible to find a ...

How to count output lines with xslt?

I'm outputting text with XSLT. I need to count the number of lines of each section and write it out to my output file. How this could be done? My output is like this: HDR+aaa:bbb' AAA+78901234567890+String1:String2' BBB+123+String' CCC+321:1212' DDD+112211' DDD+121122' XXX+number_of_records+78901234567890' AAA+1234567890+String1:Strin...

PHP: color hyperlink before create image

I am taking an xml feed and creating an image from the text. What I would like to do it color the link text a different color than the regular text. I am looping through the text to find the link, but cannot figure out how to color that text. ...

When creating a presentation programatically, how to split a large blob of text between slides?

I am creating a presentation programatically using presentationml. The full presentation will be a long table with rows having various amounts of text. What is the best way to figure out where to split the table? Or is there a way to make PowerPoint split it by itself? ...

Project Gutenberg Python problem ?

Hello everyone, I am trying to process various texts by regex and NLTK of python -which is at http://www.nltk.org/book-. I am trying to create a random text generator and I am having a hard time with a problem. First, here is my algorithm: Enter a sentence as input -this is called trigger string- Get longest word in trigger string Sear...

Generate Personalised images based on text typed

I am looking to implement a way for people to preview what a personalised product will look like with their chosen text. So as they type a word the image changes based on the text they have input in a similar way to how myfonts.com works. Prefrebly this will be built using javascript ...

In flex, how to divide text between two components seamlessly?

I have a text that I want to divide between two Text components. The first component has variable height and after fitting all the text, I want to fit the remaining in second component. How can I divide text seamlessly beween the two. ( By seamless, I mean there should not be any white space in first component and then remaining text s...

How is the data stored in a textbox?

I was reading this paper "Ropes: an Alternative to Strings" about ropes [figure from the same paper] and I was wondering if that is the data structure used by today's browsers to implement textboxes or not. Do we use ropes or some other data structures for this? Are ropes used somewhere besides textboxes? The previous title of m...

perl code that makes a list of all words that follow a given string in a text file

This is difficult to describe but useful in extracting data in the output I am dealing with (I hope to use this code for a large number of purposes) Here is an example: Say I have a text file with words and some special characters ($, #, !, etc) that reads: blah blah blah add this word to the list: 1234.56 blah blah blah blah b...

Read the first line of a file from memory

Hello all. I have a tab delimited text file that I need to upload to a secure folder for SSIS to import into SQL Server. The file will be uploaded by an external user VIA a web app. My challenge is that I need to check this file for some things before I am allowed to let it go to the secure folder. Namely I need to make sure the us...

[Android] Translate Animation Problem

Hi!! I am new to android, I try to make translate animation.. this is my xml code: (rail.xml) <translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromXDelta="100%p" android:toXDelta="0" android:duration="4000" /> and this is my java code: final Animation animShow = AnimationUtils.loadAnimation( this, R....

JQeury , Assign td text to a Vairable and post it

Hi I am relatively new to Javascript and have a problem i hope your guys can help What i am trying to do is this $("tr:not(:first-child)").each(function(){ var sitename = $("this" + "td:nth-child(1)").text(); var type= $("this" + "td:nth-child(2)").text(); ...

Strange characters added to file in textmate / transmission

I've recently started using a mac for development, and textmate. Textmate can't work over ftp, so I installed transmission to mount the ftp server as a local drive. This all works fine, except every now and again about 10 unknown characters are appended to a file, which PHP reads as unknown input and throws and error. All I can think of...