text

How do you format text/strings in VBA?

In the code below, I take some input parameters, either text or a cell, and combine them to form one string using the formatting I need. I need to make Task_Name bold, as well as text like "Lead :". I know you cannot make text in a variable bold, but how do I go about this? This cell I'm storing the value in is eventually used in a Wo...

Parse multiple doubles from string in C#

I have a string that contains a known number of double values. What's the cleanest way (via C#) to parse the string and plug the results into matching scalar variables. Basically, I want to do the equivalent of this sscanf statement, but in C#: sscanf( textBuff, "%lg %lg %lg %lg %lg %lg", &X, &Y, &Z, &I, &J, &K ); ... assuming that ...

fitting a text(height adjustment) in a table cell's UILabel

Please see screenshot below. See how some of the words/text overlaps the lines? I have soared the net for answers and this was my last attempt: CGSize labelSize = [nameLabel.text sizeWithFont: nameLabel.font constrainedToSize: CGSizeMake( actualWidth, MAXFLOAT ) ...

UISearchBar text color

Browsed the documentation and I couldn't find anything to change the color of UISearchBar. Does anybody know how to change it? There isn't any textColor property :/ Thx ...

Is there any Visual Basic 2008 scrolling text code?

I want a code that when applied to text in Visual Basic 2008 it scrolls across the screen. I don't want anything flashy, just something basic to start off with. If you guys know of such a thing that would be great! EDIT: I would like it to cycle, hope this makes it easier! ...

Add a break line between concatenated strings in VB.net

Guys, I am trying to concatenate the output of various functions into a textbox, but it all comes up in one biiig line. How can I insert break lines in between the variables? I have something like this: Me.TextBox.text = output1 + output2 And I would like to have something like this: Me.TextBox.text = output1 + ENTER + output2 Any...

How to split a file and keep the first line in each of the pieces?

Given: One big text-data file (e.g. CSV format) with a 'special' first line (e.g., field names). Wanted: An equivalent of the coreutils split -l command, but with the additional requirement that the header line from the original file appear at the beginning of each of the resulting pieces. I am guessing some concoction of split and hea...

Best text editor for debugging jquery code

Best text editor for debugging jquery code or creating jquery plugin ...

Sending text file over network with high compression

I have a text file that I want to send over the network, this file could vary in size from as low as 1KB to 500KB. What algorithms/techniques could I use to tightly compress this file before sending it such that the least amount of bytes are send over the network and compression ratio is high? ...

printing text in a certain position using javascript

how can i print a text in a specific position in a page? when i use document.write() the text prints in a new page. ...

get text of linklabel created at runtime

hello, can someone please explain to me how i can get the Text property of the linklabel that i have created at runtime? I have tried: string str = e.Link.LinkData; ...but that just displays an empty messagebox. Thanks lots :) ...

[html] Problem with text marker

Hola hola! I have a problem with my website, and that is when i visit it and click somewhere a BIG text marker is shown at the side. Visit the site urself and check? The website Just visit and click somewhere and u can see what the problem is. How do i fix this? ...

What exactly is the textual representation of Binary data?

Sometimes when you download a compiled binary file with the wrong mime type or for example running the "more" command on a binary file you get a bunch of "garbly gook" for lack of a better term. For example this a snippet of what I see when I run "more" from the command line on a very simple C program compiled with gcc on OS X. <94>^^^...

doing textwrap and dedent in Windows Powershell (or dotNet aka .net)

Background Python has "textwrap" and "dedent" functions. They do pretty much what you expect to any string you supply. textwrap.wrap(text[, width[, ...]]) Wraps the single paragraph in text (a string) so every line is at most width characters long. Returns a list of output lines, without final newlines. textwrap.dedent(tex...

What is a good easy class to change text to images

As many of you may already know I have been having issues with another site copying text from my site. The data is sports results that at first are not fully accurate because data is submitted at the event and people have to type in people's hand writing that can be difficult to read as well as other issues related to transferring data....

Parsing unstructured text in Python

I wanted to parse a text file that contains unstructured text. I need to get the address, date of birth, name, sex, and ID. . 55 MORILLO ZONE VIII, BARANGAY ZONE VIII (POB.), LUISIANA, LAGROS F 01/16/1952 ALOMO, TERESITA CABALLES 3412-00000-A1652TCA2 12 . 22 FABRICANTE ST. ZONE VIII LUISIANA LAGROS, BARANGAY ZONE VIII (POB.), LUISIA...

looking for 'sed' like functionality in Excel

I use excel a lot to structure finite state machines. As such I often format cells so that I can cut and past entire sections into my C source directly. Currently I'm having to preprocess one of my code blocks so that I can replace "-" with "_" in my identifiers. Example, in cell I might have #define Some-preprocessor-name But I'd l...

Shifted text in swing app on OS X

Hi I have a little java+swing app. Until now it worked OK, on OS X and on windows. But recenly a user has noticed that on his OS X (version unknown yet, nor the java version) that all texts in the GUI are shifted up and cut (as you can see on the screenshot). And HTML link is shifted down and cut. All those elements are JLabels. Th...

WPF Mixing Bound and Fixed text in a TextBox

I have the following code to display a clients age. <TextBox x:Name="txtClientAge" Text="{Binding Path=ClientAge}" /> However, instead of just displaying just the number, I want to prefix it with the text "Age " and suffix it with the text " yrs" so it is effectively becomes "Age 36 yrs" I can achieve this with a horizontal StackPane...

Fast way to match an array of words with a block of text?

Hi All, The subject is probably not as clear as it could be, but I was struggling to think of a better way to easily describe it. I am implementing a badword filter on some articles that we pick up from an XML feed. At the moment I have the badwords in an array and simply check the text like so; str_replace($badwords, '', $text, $coun...