If I want to do a search on multiple columns for the keyword abc using like %abc%, how would I show some of the text around that keyword. Similar to what Google does with its search results.
Hi folks,
I am using Gmail sender function defined here to send a mail to the predefined mail id. But my problem is that i want to embed more text into the body of my mail... The Gmail sender is only accepting one sting to be embedded into the body of the mail. Can anyone tell me how to embed more strings into the body of the mail... If Gmail sender is not efficient method to send a mail then please suggest me an alternative with an example....
This is an interview question, and should concern about efficiency. How to calculate occurrences of specified word in a large text file? I can only think of indexOf() method in most programming languages, but I don't think that the correct answer.
I need to display text along with values of variables in a CEdit controlled Edit Control Box. How do I do it ? Currently I'm using SetWindowText(), but that only takes a string...how do I get a formatted string to display in the edit control?
Example: printf("The answer is %d\n",ans) - how do i print the same message in a Edit Control?
I want to retrieve the text that the user has typed into the currently visible address bar, using Javascript. This is for google chrome only.
Is this possible? I know you can get the document URL via window.location.href, but I am unable to locate any javascript pertaining to current code inside the address bar/omnibar.
Thank you for the help!
How can i get current x & y position of my CURSOR within a text area using javascript.
The event is a Keyup event, not a mouse event.
I am not looking for the current cursor position in terms of charecter but x , y coordinates.
Consider a snippet of from a .css file in Visual Studio 2010 to be commented out.
Normally Ctrl-E + Ctrl-C will comment your selected HTML and other source code.
Highlighting CSS code results in:
The key combination is bound to command (Comment Selection) which is not currently available.
To comment CSS in Visual Studio 2010, is there a toolbar or keyboard shortcut to comment the highlighted text for you?
I am using a piece of code someone pasted for C# which uses urlmon.dll. It reads in <= 256bytes and returns the mime based on the data.
Problem is it cant distinguishes a css file from a text/plain. I can goto /style.css but when including it in my html the CSS does not show up. I am using urlmon + context.Response.TransmitFile to send it.
What I want to do is write a text file to a smart card and read it.
WindSCard is the dll to be used but but it's functions are very cryptic.
Is there any FREE wrapper available over it and is there any tutorial that does what I want to do.
Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations?
For example:
http://www.google.com
would automatically turn into
<a href="http://www.google.com">http://www.google.com</a>
Note: I am wanting this because I don't want to go through all my content and wrap them with anchor tags.
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign to os.linesep the separator that I want to use when writing the file. Or specify the line separator when I open the file.
If I insert a hyperlink using the insert function of Buzz, the link I posted will be parsed automatically, and that's not what I want.
Can I create Hyperlink text manually? using something like ?
thanks a lot for your help.
I want to write text files with DOS/Windows line endings '\r\n' using python running on Linux. It seems to me that there must be a better way than manually putting a '\r\n' at the end of every line or using a line ending conversion utility. Ideally I would like to be able to do something like assign to os.linesep the separator that I want to use when writing the file. Or specify the line separator when I open the file.
Hi, does anyone know how you go about streaming text to a IRC server?
I have a game server, and i'd like to stream the chat to IRC. I can get the chat as a string within a C# program..
Anyone know how to do this? Or a good resource to look at?
Cheers
In my masterpage, I have the following in the header.
This allows me to put special characters into my website. The problem is that when javascript tries to load (on the client) special characters, I get that weird box.
Example url...
http://89.184.149.229/Sandportal/vinnan/trol-lna/monica-sakk--vikuskiftinum
Text is below the 4 stars (mid left).
Any help is greatly appreciated.
I am trying to sort the dates from the earliest to the latest.
I was thinking about using the bufferedreader and do a try searching the first 2 characters of the string and then the 4th and 5th characters and finally the 7th and 8th characters, ignoring the slashes.
The following is an example of the text file I have:
04/24/2010 - 2000.0 (Deposit)
09/05/2010 - 20.0 (Fees)
02/30/2007 - 600.0 (Deposit)
06/15/2009 - 200.0 (Fees)
08/23/2010 - 300.0 (Deposit)
06/05/2006 - 500.0 (Fees)
I'm looking for an diagram tool for producing diagrams from text. I only really need sequence and state type diagrams for now, but I'm curious as to what people would recommend? I need something which is standalone, not a web based tool that works on Linux, OSX and Windows.