I am somewhat new to Ruby and I would appreciate some direction in solving the problem which I will now describe. I would like to write a Ruby program which can parse 3 separate text files each of which contain different delimiters and then sort them according to certain criteria.
Can someone please point me in the right direction?
...
I want to draw some text in a view, rotated 90°. I'm pretty new to iPhone development, and poking around the web reveals a number of different solutions. I've tried a few and usually end up with my text getting clipped.
What's going on here? I am drawing in a fairly small space (a table view cell), but there has to be a "right" way to d...
I need to mimic C# functionality of the @ symbol when it precedes a string.
@"C:\A\File\Path" for example
What is the best way to do this? Also there are some sites that will escape larger strings for you so that they survive the processing but I could not find one for Actionscript.
Help?
...
When I open a PDF file and write the content to a text file the content from the text file is messed up. I think it's because of the encoding. From what I understand the JVM sets the default character set to Cp1252 (because I'm running on Windows XP). I've changed the default character set but with no results (System.setProperty("file.en...
I would like to know if anyone can help me with this. I would like to search a text file for a certain line of text, add a new line under the specific line then add text to the new line. I will be using this to edit the firefox.js file to add the line of text to add support for Iprism. It will run on XP and Windows 7 machines.
I would l...
Hey there...
Does anybody know if this is possible?
I am trying to create a flash movie that will show / preview what I am typing into a field in a normal HTML form. The call to update the flash movie would most likely be attached to an onKeyUp event.
Any advice or tutorials would be great
cheers!
Decbrad
...
Hi, as the question states, I want to add text to the centre of a path and align it horizontally, NOT align along the path.
I have the following text running along the path at the centre, but I want to flip it so that it is horizontal, no matter what angle the path is heading.
<text text-anchor="middle">
<textPath xlink:href="#Some...
Hi,
I'm working with a text file that looks something like this:
rs001 EEE /n
rs008 EEE /n
rs345 EEE /n
rs542 CHG /n
re432 CHG /n
I want to be able to collapse all of the rows that share the same value in column 2 into one single row (for example, rs001 rs008 rs345 EEE). Is there an easy way to do this using unix text proces...
Looking for PDF content extractor (console tool or library).
It will be used on server to produce on-line e-books from uploaded PDF files.
Need to extract following things:
text with fonts and styles;
images;
audio and video;
links and hotspots.
page snapshots and thumbnails;
general PDF information, e.g. book layouts, number of page...
Hi everyone,
I'd like to use 'diff' to get a both line difference between and character difference.
For example, consider:
File 1
abcde
abc
abcccd
File 2
abcde
ab
abccc
Using diff -u I get:
@@ -1,3 +1,3 @@
abcde
-abc
-abcccd
\ No newline at end of file
+ab
+abccc
\ No newline at end of file
However, it only shows me that were...
Can i hide text in a DIV after a number of characters with jQuery?
So far I think it would go something like this - jQuery would cycle through the text until it gets to a certain number of characters. It would then wrap a DIV from that position to the end of the text which could then be hidden with the hide() method. I'm not sure how to...
Ok, I'm trying to make an application for an online Radio Station.
I have it set to read the song title and artist and write it to a text file on the webserver.
I want to have the application store the text in a string or a cache, and then reread it every 15 seconds and if it isn't the same then update the info box.
Where the text is ...
Basically my app has a UIwebView which loads a php script with input of user data. The script then uses printf(some info). This all works and it prints it right the UIWebView. Basically what I want to do is get that text (its all thats on the page) and save it as a string. Heres what I have tried so far.
NSString *str = [webView stringB...
Simple question. Is there a way to only allow txt files upon uploading? I've looked around and all I find is text/php, which allows PHP.
$uploaded_type=="text/php
...
I'm trying to create a macro to insert some text with custom formatting, then change the font style back to what it was before the macro was run. This is what I have come up with so far but it is giving me an error.
Dim myText As String
Dim oldFont As Object
'Save old font
Set oldFont = Selection.Font
'Insert text with custom font...
Hello,
here's test page, which looks differently in IE7, while OK in Firefox & Opera.
Looks like FF & Oprah are adequate about
.twoColLiqRtHdr #mainContent {
margin: 0 20px 0 10px;
}
right margin and place text accordingly (text fills space under sidebar), while IE uses #sidebar's left border as margin, and, as a result, that s...
For example, I open a pdf file or a web page in gnome, use mouse double click some text, so a word is selected, how can I get this word in a background running daemon written with python-dbus?
Some simple but working piece of script is appreciated greatly.
Thanks!
...
http://en.wikipedia.org/wiki/Cosine%5Fsimilarity
Can you show the vectors here (in a list or something)
And then do the math, and let us see how it works?
I'm a beginner.
...
Hi all,
Is it possible to send text messages using iphone programmatically ?
I think its not possilbe, its more like sending SMS programmatically.
Are there any web service or api available for this ?
Any suggestions ?
thanks
...
Hi,
I have an console application (that also is run as a service when deployed). I'm reading values that originates from a text file. The problem is that I can't get the decimal values to work properly.
They are formatted in a "swedish way", like this 3,4 which in "english" formatting is 3.4.
When I use:
Decimal.TryParse(value, Numbe...