I am using Linq to select and process lines from a text file. My txtfile is two columns delimitted by the pipe character "|". The File contains the following:
HAbbe|11
GABBOT|22
DABDA|33
RAchant|44
RADA|55
DABDA|66
You will notice that line 3 and line 6 have a duplicated ID(Column 1). I want to use linq to initially read the posted t...
hey guys i am trying to set up an alarm system so that if the alarm or doorbell go off then a test is sent to my phone, im using the telit gm862-gsm to send the texts and also know how to code my home interface board using c# in visual studio but im unsure how to set the code to send the text one the alarm goes off, im currently using th...
I have a long text and I'd like to offer the user a reading help: The current line should be highlighted. To make it easier, I'll just use the Y coordinate of the mouse (this way, the mouse pointer isn't going to get in the way). I have a big DIV with the id content which fills the whole width and a small DIV with the class content for t...
Here's an interesting problem I've come across:
I have a program that allows rotation of the device with resizing UITextFields, but look at what happens when it is rotated:
Normal:
Rotated:
So you see my problem, the text slides over to the side.
Now how would I make the text re-center itself when the device is rotated? This would ...
I have a problem where I want a text field that by default has the word NAME in it, to become empty when a user clicks on it.
The text field has the instance name 'nam' and is inside a movie with the instance name 'input_text'.
I've searched around and found samples of code where everyone keeps suggesting this:
textboxinstancename.onS...
I have several checkboxes with the same name and the last checkbox is basically "Other" with an empty text field next to it. I'm using jquery validation and I want to make the empty text field required when the checkbox for other is selected.
Not sure how to do this with the checboxes all having the same name.
Thanks.
...
I want to convert some arbitrary text to a Shape (java.awt.Shape) and then stroke/fill the Shape to draw it. How can I do this?
...
vCard lines can be folded by inserting "\r\n " (that's a space at the start of the new line), but I'm struggling to unfold them with the line-oriented GNU tools (sed, cut). Any ideas? Effectively, from the string
foo
bar
baz
ban
bay
bal
it must return
foobar
baz
banbaybal
...
Hi Guys
I know you can do this to get vertical text in a tab header:
<Window x:Class="Abodemploy.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TabControl Margin="0" Name...
Like the youtube embed text fields. How do you make a text field selectable but not changeable?
...
is there a way to control the text positioning in the datagrid cells in Flex so that all text in subsequent columns align on the same rows?
...
I have a bezier path library to draw complex bezier paths without problem. Now, I need to know how to read a text or font and extract its path information to draw it as a path instead of as text.
I came across a C applicaiton, FontForge. It does exactly what I need, picks any font and extract its path information. But what I need to kno...
It seems to me that sIFRed text when selected allways have black background. My site design is dark (mostly black). So when use select sIFRed text it looks like nothing happens, it is selected but no one can see that cause both site and selected text background are black. Normal text have white or some kind of dark-green color depending ...
I have a text file looks like this :
100 50 20 90
4.07498 0.074984
37.1704 28.1704
20.3999 14.3999
48.627 35.627 ....
I need to edit this file so that everything is kept the same except the first line, 3rd item. The ouput should look like this:
100 50 19 90
4.07498 0.074984
37.1704 28.1704
20.3999 14.3999
48.627 35.627
....
How can...
I'm doing a web application in asp.net mvc. Now I'm at the point where I do alot of text info such as help texts, eula, privacy policy etc. I realized that I'm not sure what would the best way to store these texts.
1. Directly in the aspx page
2. In text files and then load the text via ViewData[] to the aspx file
3. In my sql database
...
I have a text string that has been doctored to be web safe URLs i.e. non alphanumeric's are converted to "_".
What I want to do is search for the original name before it was converted, this means that I need some kind of wild card search i.e.
What I have
test__mytest
With wildcards
test??mytest
The string I would find with the wi...
I have a text file that contains a number of the following:
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
<ID>
<Time 1> --> <Time 2>
<Quote (potentially multiple line>
<New Line Separator>
I have a very simple rege...
i'm currently in the process of conceptualizing an art piece for a gallery show next year, so this bizarre question of mine is more than just simple curiosity.
if i open up an image file (a .PNG) with Text Edit or Note Pad, the file is presented in textual characters. here's an excerpt:
ˇflG¿§vÑ$BaçC$
èœ≥à-ƒ…åGj!mëA»T‰dÚ%ryǬF1¢ƒQ∑P®...
HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example:
<p>Some text</p>
becomes
<p>Some text
</p>
How do I tell Tidy to keep the closing tag on the same line as the end of the content?
Btw, I am running Tidy through Notepad++, if that makes any difference.
...
Ive been trying to target iframe using Raphael JS
heres some sample code
var c = paper.circle(10, 10, 10);
c.attr({href: "http://google.com/", target: "top"});
v
var t = paper.text(250, 50, "Raphaël\nkicks\nbutt!");
t.attr({href: "http://google.com/", target: "_blank"});
Also..cant get href to work with text
ar t = paper.text(50, 50,...