|
I want to show some bold and some simple word within the same sentence.If I use the textbox then every word will be simple, not some bold and some simple so I want a control's text property in that I can write some bold and some simple word within the...
Started by Harikrishna on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Is this for Web or Desktop? With desktop you want to use the RichTextControl on the web I am not sure you can do it in a textbox, but you can use HTML and the label control to produce the same effect... .
Sounds like a RichTextBox is what you're looking for.
|
|
For example I want to do some thing when some combination of Ctrl key with any other key is pressed (or it may be Alt key).Then from the standard input how to read that key combination in C program as an input.
I tried with simple getchar() to know the...
Started by Manoj Doubts on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Some libraries attempt to provide portable keyboard input facilities.
It being extremely common.
|
|
Suppose I have some application A with a database. Now I want to add another application B, which should keep track of the database changes of application A. Application B should do some calculations, when data has changed. There is no direct communication...
Started by Theo Lenndorff on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Do you really care about database independence? Would it really be that hard to create a difference mechanism for each database type that all have the same public interface? I am aware of OracleDependency in ODP.NET, but what about the other databases... .
|
Ask your Facebook Friends
|
Many years ago I remember a fellow programmer counselling this:
new Some::Class; # bad! (but why?) Some::Class->new(); # good!
Sadly now I cannot remember the/his reason why. :( Both forms will work correctly even if the constructor does not actually...
Started by Ether on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, what if some module that you use 'd exported a function.
New Some::Class is called "indirect" method invocation, and it's bad because it introduces some as a method you're trying to call.
|
|
Hi all. I'm having some internet connection problem - some sites (thankfully superuser is included) work perfectly while others (like www.boardgamegeek.com or www.couchsurfing.com) do not work at all. The problem exists in 3 different browsers and does...
Started by Amir Rachum on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Anyway....
If you have the same issue for 3 different browsers, could your firewall be blocking something?
What firewall are you using? Is it configured to block sites based on content? (parental lock for example?)
Boardgamegeek! haven't seen that in ages!.. .
|
|
In small enough organizations, should there be completely independent QA and Dev roles, or should each role involve some time (e.g., 1 day a week) doing the role of the other side?
I'm not talking about unit tests. I'm talking about a QA focusing on the...
Started by Uri on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
This would also provide some insight into how they are writing their scripts, and may give a few ideas the team's C++ unit tests for ....
Some points to consider:
Presumably, you hired your.
Should not be QA'ng mission critical features.
|
|
Hi All,
I have a complicated problem that I will try to explain.
We have a portal based website that is accessible from outside of our organisations infrastructure via username and password. Certain types of files are not accessible on the website to ...
Started by Kip on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Perhaps some service pack or update was installed that mangled some settings? Some more details about what proxy you use would help..
As warren said, i'd go dig in the proxy settings .
|
|
Hi there,
In Ruby & in RoR I oft find myself testing whether an object exists, then whether an object's properties match some criteria. Like so:
if params[:id] && params[:id].size == 40 ...do stuff end
Is there a more efficient way to do this? Something...
Started by btelles on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The andand gem:
require 'andand'
if params.andand.size == 40 ...do stuff ... .
Hope that makes sense.
With Rails 2.3 you can use Object#try method:
if params[:id].try(:size) == 40 # do stuff end
try will return nil when called on nil (with any arguments) .
|
|
The method Concat() does not modify the original value. It returns a new value.
like this:
String str = "good"; str.concat("ness"); System.out.println(str); //"good"
But some method modify the original value. Why?
In Groovy:
def languages = ["Java", "...
Started by JSON on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
However, across the Java API, you will see some places where the original object is changed and some places where a new object....
Not changing is immutable.
To some extent this also has to do with programming style.
Or she is writing.
|
|
Hi,
I am creating an Image Search Engine. Currently, my script does bold the matching words on the keyword. But, some keywords are too long just like the followings.
When I search for shah rukh khan , there is an image with the following keyword.
2521...
Started by pnm123 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Well, as far as I can see, you don't need the spaces in front and after the bold text, so why don't you just remove the space, add a start anchor at the beginning and an end anchor at the end of the pattern? Like this:
$img_keyword = preg_replace('/^(... .
|