Hey guys,
I have a chat box with a user list.
I want to create a button for each member so if clicked, their username is added to the chatroom text box.
Whats the best way to do this?
Thanks
I'm writing a C# WPF application that creates a video capture of the active window. What I want to do is overlay a transparent .png file in the corner of the active window while a capture is in progress so that all the videos created by my application are watermarked.
If I have the IntPntr handle of the window I am capturing and an image file - what is the best way to go about this?
Thanks
Hi,
I have string like this;
"String {tag_0} text {tag_2} and {tag_1}"
Now i need to replace all {tag_INDEX} with elements from array
$myArray = array('a','b','c');
so after replacement it should looks like:
"String a text c and b"
What is the best way to do this? I'm trying with preg_replace and preg_replace_callback but without any good results
Are there any best practices to get Junit execute a function once in a test file , and it should also not be static.
like @BeforeClass on non static function?
Here is an ugly solution :
@Before void init(){
if (init.get() == false){
init.set(true);
// do once block
}
}
well this is something i dont want to do , and i am looking for an integrated junit solution.
Hi. I'm looking into sentence recognition to make a program that should play voice clips from the game Team Fortress 2. I have .wav files and text files containing the transcription for every sound. What I'd like to make is a system that makes two characters of the game talk to each other (trough playing sound clips), and each one recognises the sense of what the other is saying and tries to answer with another of the available sound clips (trying its best to fit the sense of what it's trying to say)
Is that possible in any way?
I have FrameworkElement, for example Grid, that has children(Cells, implemented in another control). When main Window changes size, i handle sizeChanged in Grid at first, and after that in some of its children. How can i get notify that all children sizeChanged events finished processing? Of course, i can raise other event in child sizeChanged and increase some counter, but for some reasons it is not the best decision.
Can anyone recommend something? Thanks!
Hi All,
I handle a website which is designed in GWT and I want to check if internet connection goes down in between accessing the website. If internet is down I want to give message as cannot connect to server or something like Gmail handles it.
Can anybody suggest what will be the best way to handle this?
Can anyone recommend a language, library, framework or book which focuses on GUI programming from the perspective of a web developer?
I have experience in web development, for example HTML/AJAX/PHP/MySQL among similar technologies. However, I have never programmed my own back-end, or any kind of standalone program. Does anyone have experience making this transition, and what would I best study to help make the leap from the browser to creating programs with GUIs (primarily for Windows)?
this is a follow on from this question and the link given it seems that when an app is updated all of the files in the documents directory are copied into the updated apps documents directory and also anything in Library/Preferences. Whats the best way to simulate this for testing purposes?
Just copy the files in ApplicationSupport/iPhone Simulator etc? or has anyone developped any funky techniques for testing this.
After seeing this suggestion for creating tag homepages/FAQs, I thought it'd be best to go on ahead and start collecting links to frequently asked questions to demonstrate how this would work.
Object Oriented
Metaclasses
Missing features
Enums
Tools
Available IDEs?
Hi,
Are there any WPF sample applications that showoff the 'coolness' of WPF?
I'm hoping to see some examples of the UI capabilities etc., and general structure and best practices.
(oh, and the install shouldn't be too elaborate hehe)
I need to create a section of our website where there is a main box of content with 3/4 smaller boxes (previews) underneath. Please take a look at http://espn.com for an example. They have a main top box for content and then it shuffles between the content previews below.
What is the best way to do this? We are using .NET framework.
Thanks in advance
I need Backup configuration of Hudson Master systems
Detailed information
If a Hudson Master system goes down, we need to be able to bring it back up on a different VM as soon as possible (may be 3 hours). Therefore, I need to develop a way to backup the configuration and resetup a new VM reliabily. can any body let me know best way step by step.
THANKS
I've been using the following:
var modal = {
content: '',
form: '',
href: ''
}
But now I have started to use Typescript is there a better way I can declare an object and how can I declare the types of my properties. The reason I am using this object is that it's inside of a function and inside that function I have other functions that set and use the values of the properties. Is this the best way for me to do this or is there another way I could better do this with typescript?
Hi,When I want to Display a from (C#) by clicking a button in another form I usually create an object form the form that I want to show and use the show method :
Form2 f2 = new Form2();
f2.Show();
or I work with the "Owner" :
Form2 tempForm = new Form2();
this.AddOwnedForm(tempForm);
tempForm.Show();
the tow ways generate the same results but what is the best and what are the differences between them?
How can I easily create a fractional y-value when using ggplot?
t <- as.factor(test=sample(seq(0,100,10),1000,rep=T))
d <- as.factor(sample(c(0,1),1000,rep=T)
p <- data.frame(t,d)
My best shot was:
ggplot(p,aes(x=t,y=prop.table(table(t,d),1)[,1])) + geom_point()
However this doesnt work and I guess there is an easier way around this...
What is your favorite thing about the iPhone? What is your least favorite thing? People that have talked to in conversations mainly say the best thing is the number of applications and the worst thing is the battery life.
Hi,
I have to call phone number and detect if the modem at the opposite side is hang-on.
How can I do this in C# ? With SerialPort ?
Thanks in advance
BEst regards
Say I have a text area, user enters information exactly like styled below:
Ice cream
Chocolate
then submits this information, I want to retrieve the information EXACTLY like so:
Ice cream, Chocolate
Is this the best way to do it:
$arr = explode("\n", $var);
$arr = implode(",", $arr);
When doing it like this, it puts the information out like so:
Ice cream , Chocolate
Note the space after cream, will a simple trim() fix this?
For a Java project (with the team of 5-10 developers) should I store my IDE project files (e.g. Eclipse or IntelliJ Idea) in version control system (currently I store only build scripts)? What's the best practice?
PS Do you aware of any tools to automatically generate project files for common Java IDEs according to some descriptor?
I have a requirement to hand-code an text file from data residing in a SQL table. Just wondering if there are any best practices here. Should I write it as an XMLDocument first and transform using XSL or just use Streamwriter and skip transformation altogether? The generated text file will be in EDIFACT format, so layout is very specific.
I have three tables, Customers, Sales and Products.
Sales links a CustomerID with a ProductID and has a SalesPrice.
select Products.Category, AVG(SalePrice) from Sales
inner join Products on Products.ProductID = Sales.ProductID
group by Products.Category
This lets me see the average price for all sales by category. However, I only want to include customers that have more than 3 sales records or more in the DB.
I am not sure the best way, or any way, to go about this. Ideas?
Is there anything wrong with the optimization of overloading the global operator new to round up all allocations to the next power of two? Theoretically, this would lower fragmentation at the cost of higher worst-case memory consumption, but does the OS already have redundant behavior with this technique, or does it do its best to conserve memory?
Basically, given that memory usage isn't as much of an issue as performance, should I do this?
Hi! I have some control. I add one instance of this control to every Page in OnInit event and I want to access this control in other places in this way: Sample.Current
public class Sample : Control
{
public static Sample Current
{
get
{
// ???
}
}
}
Can you tell me what is the best way to do this property implementation?