text

Which is the best way to store text files into a Sql Server data base, for an asp.net mvc web application?

I'm making a small asp.net mvc app. in which I have to compute data from several CSV files ( between 5 to 10 files). The application must provide upload and download actions for these files. The part where I don't have experience is the data base. What column type should I use? text, image, binary ? the size of a file will be betweent ...

Java text formatting

How can I format a string of text, like givenname, surname, telephone ect to look like columns? this won't do it: String customer = "\t"+surname+"\t"+givenname+"\t"+blablabla ...

Should I store emails in a DB or in a text file ?

Hi, I need to store email address from a simple form (like a newsletter), but the website loading is high, I'm then wondering if I'd rather store them to a text file (eventually write a cronjob to store them each night to the DB), or store them directly to the DB ? ...

Drawing vertically stacked text in WinForms

Preferably using a Graphics object, how do you draw a string so that the characters are still oriented normally, but are stacked vertically? Hopefully this rough picture conveys what I mean: ...

Which text editors have a format code option?

I'm looking for a basic text-editor with code format like NetBeans or Intellij. In NetBeans IDE and Intellij IDE you have the option format code. Something like this, if( a == b ) { bla; bla; bla; } after using this feature it will look like this: if( a == b ){ bla; bla; ...

Automatic Hyperlink in my website

I want the urls in my website automatically hyperlink. I can only use javascript, html, and jQuerry in my website. ...

Jquery access to selectbox text not value how ?

example: <select> <option value='1'>hello me<option> <option value='2'>hello world</option> </select> how can I access a TEXT not VALUE from select box so I can display HELLO ME or HELLO WORLD instead of 1 & 2. ...

Text preview in VB.net

I'm looking for a way to mirror text (like how SO provides a preview of the text being entered, as its being typed). I also need to be able to modify the texts output environment (whether it be a textbox/messagebox/ect.) for background/text color (selected from a dropdown menu). Suggestions on the best way to go about this? FYI I'm using...

rotate sIFR jquery

im looking for a way to rotate sifr text on a wordpress blog using jquery, any ideas, the rotate plugin doesnt seem to work. ...

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 the debugger UI and paste it, a space ap...

how to wrap the text in UITable cell in Iphone?

Hi, In my iphone application Uitable having So many cells with Text.The Text size is more than the width of the device.So, how can i wrap the text in cell and display the text in the different Lines or devide it in the lines? if anybody has any solution or any useful code or any other useful link,which would be appreciated. Thanks, M...

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:drawableBottom and similar XML attributes...

how to adjust wrap text no. of lines for the uitable cell height in iphone?

Hi, In my Iphone application,the width of the text line is increased than the width of the device width.but how to devide the cell height based on the wrap text lines? so that the no. of lines should adjust into the cell height. if anybody has any solution or any other source code or any other usefullink,which would be apreciated. Tha...

.NET "default line terminator"?

Is there any way to figure out what .NET is using as it's "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 concept. Is there any way to programmat...

c# windows mobile Text messaging

Hi! 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(); sms.Body = "This is a message"; ...

WPF RibbonComboBox text hints

I have the following RibbonComboBox in my XAML: <ribbon:RibbonComboBox Name="MyComboBox" SelectionChanged="MyComboBox_SelectionChanged" SelectedIndex="{Binding itemIndex, Mode=TwoWay}" ItemsSource="{Binding comboxBoxItemsSource}" /> The problem that I have is that sometimes the "comboBoxItemsSource" can change, thus the list of avail...

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

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 thoughts or experiences? ...

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

Extracting text fields from HTML using Python?

Hi, 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" &lt;[email protected]&gt;</td> <td>1231231234</td> </tr><tr class="tableRowEv...