Hello There!
I'm creating an application to help with e-mail replying, so I got a few sample mensages I want to Paste into the e-mail text page, starting from the cursor position.
Imagine, I got this app with Button1,2,3,4 etc, and associated to each button is a pre-formated text, so when I hit Button1 it will Paste the text, starting ...
Hey , i got this challenge , i got a MySQL DB table 1 with queries or text and table 2 with synonyms and misspellings as CSV [comma separated values]. Now i want to test if any query word in table 1 matches a synonym or misspelling in table 2 , then i would select them separately .
example :
table 1 row: "i am sick of HIV AIDS , what...
Right now I do this a lot:
find * | grep py$ | xargs grep foo
I recall there is some util that does this with way less typing, but which?
UPDATE: I prefer to use the Bash shell if possible.
...
I'm copying over text from one file to another, with certain changes.
I have input.txt, tmp.txt and output.txt.
The idea is to copy a few lines over to tmp.txt (until we reach a delimiter),
move the text from tmp.txt to output.txt, wipe tmp.txt and then continue the cycle
until we reach the end of input.txt.
I'm having trouble with ...
using xsl 2.0, how would you convert an xs:float value to a hex-string representation of its binary value? i have no problem doing this for an integer (divide by 16 recursively and concatenate chars 0-9A-F), but float/double is stumping me.
<xsl:function name="my:float-to-hex" as="xs:string">
<xsl:param name="in" as="xs:float"/>
...
I'm creating a theme for a CMS, and only have the ability to change the CSS associated with the page (no Javascript, PHP, etc).
Is there a way to change this list of users that we have:
JOHN SMITH DAVID JONES ...
into proper title case (John Smith, etc) using CSS?
text-transform: lowercase; works ok (john smith, etc) but text-tra...
how can we count space between text in php ?
example: hi how are you?
spaces: 3
is there any way to count spaces ?
Language : Only PHP
...
In WPF, I'm starting to use classes such as LineGeometry, EllipseGeometry, GeometryGroup, Path... in order to draw 2D graphics. I chose these over shapes because I saw it could be faster thanks to the freezing feature.
I need to draw text along with geometry, with specific fonts. The text needs to be positionnable with the same coordina...
Ok I have an issue. I have a linix web server (RHEL 4 with apache 2) that is used to house an application. Part of this application is a set of php scripts. I created a script that accepts some form variables and then downloads a file to the user. Here si the code:
header('Content-Description: File Transfer');
header('Content-Type: ...
We have a framework that has hundreds of XML files/text files/resources that decide the behavior of the system.(the huge number is because of legacy reasons)
Other teams use this framework and build different products on top of it.
To build a product using the framework, typically means configuring the XML files in various different wa...
I am trying to parse a text file that has the weird quotes like
“ and ” into "normal quotes like "
I tried this:
text.gsub!("“",'"')
text.gsub!("”",'"')
but when it's done, they are still there and show up as
\x93 and \x94
so I tried adding that too with no luck:
text.gsub!('\\x93', '"')
text.gsub!('\\x94', '"')
The problem is,...
When I have a text field, I generally store it as varchar. But then I encounter the issue of how do I know the limit I should place? Estimating how much text a user will type seems very imprecise.
As varchar uses as much space as needed, is it better to set the limit to far greater than you estimate?
Is there any disadvantage to using ...
Hi!
(I hope my title is comprehensible, it was hard to sum up.)
I have some script which change some text inside a form depending on the selected radio button as you can see here:
http://jsbin.com/onowu/
The problem is that if some user enter some text and then click on a other radio button it will remove his text.
What I'm looking f...
I want to know how to capitalize in PHP
...
Hi
I'm writing a shell script, which at some point has to take a file, search for a particular word in it and delete the whole text that comes after this word (including the word itself) - awk is the right tool I suppose, but I don't really know much about programming in it.
Could anyone help me?
...
OK guys/gals stuck again on something simple
I have a text file which has multiple lines per entry, the data is in the following format
firstword word word word
wordx word word word interesting1 word word word word
wordy word word word
wordz word word word interesting2 word word word lastword
this sequence repeats a hundred or so t...
Hello,
I have a text file which has hex values, one value on one separate line. A file has many such values one below another. I need to do some analysis of the values for which i need to but some kind of delimiter/marker say a '#' in this file before line numbers 32,47,62,77... difference between two line numbers in this patterin is 1...
I am drawing a quad as a background so I can apply a gradient. Details of how I'm doing this are found in a similar question: http://stackoverflow.com/questions/1064840
The 2D raster text (screen text) is drawn as expected without the gradient background. However, when the gradient background is drawn, the text disappears (I'm assumi...
Hello!
I wrote this PHP code to implement the Flesch-Kincaid Readability Score as a function:
function readability($text) {
$total_sentences = 1; // one full stop = two sentences => start with 1
$punctuation_marks = array('.', '?', '!', ':');
foreach ($punctuation_marks as $punctuation_mark) {
$total_sentences += su...
I want to have XHTML+CSS progress bar with contrast colors between filled and empty background areas.
I have a problem with text color. Because filled and empty backgrounds are too contrast (this is a requirement), to remain readable the text should be double-colored to be contrast to both of them. The image should explain it better tha...