Hi All,
I want to display a background text in the textbox.
ex: The Title textbox in the stackoverflow Ask question page.
Needs: If i enter some text inside the textbox it should disappear.
Geetha.
In .net, is there a way to convert DateTime to past tense easily (built in function or 3rd party library): eg. 4 mins ago
Something similiar to how the date is on Stackoverflow.
Now and then someone makes a weird argument for software patents.
What are the best reasons against software patents? What are the best replies for commonly heard arguments of patent proponents?
See also the converse question of the dark side. :-) If you are for patents you might want to answer there to keep the stackoverflow philosophy of answers instead of discussions.
I set my editor per an SO entry: http://stackoverflow.com/questions/780425/how-do-i-setup-diffmerge-with-msysgit-gitk.
I'm wondering how to undo this because I want to switch back to the default editing program.
In reference to the post below, where it says I should increase the version number for older versions to be replaced by newer ones.
http://stackoverflow.com/questions/40603/msi-installer-fails-without-removing-a-previous-install
What I find is, just changing the version number didn't do the job. I had to change the product code also, which I got an option to change through a Message Box just after changing the Version Number.
Is this how it's supposed to be?
I want to color badge files and folders based on the some condition in finder, what is the approach to achieve this in Mac OS X 10.6
I have checked this question: This only talk about the context menu in finder
http://stackoverflow.com/questions/1651075/finder-plugin-in-snow-leopard
I have even checked: http://scplugin.tigris.org/ even they don't do color badging in 10.6 which is pending task.
Thanks in advance for your all help
I am trying to access the StackExchange API from Emacs' elisp:
(require 'url)
(require 'json)
(defvar url-http-end-of-headers)
(defun read-json ()
(interactive)
(with-current-buffer (url-retrieve-synchronously "http://api.stackoverflow.com/0.8/users/2386")
(goto-char url-http-end-of-headers)
(json-read)))
M-x read-json results in the following error: JSON readtable error.
Am I missing anything?
Similar to this question http://stackoverflow.com/questions/1251416/png-transparency-problems-in-ie8
But the answer here was to remove opacity - but I can't remove opacity. How can it be made to work with opacity?
I followed the answer to this question http://stackoverflow.com/questions/1245364/securing-elmah-in-asp-net-website to restrict access to the elmah handler. However, it seems that adding an RSS feed to Outlook for the URL elmah.axd/rss or elmah.axd/digestrss bypasses the authentication. What's the point of securing the handler if someone can guess the RSS URL and subscribe to a feed of the error log?
Using this:
http://stackoverflow.com/questions/820421/can-i-use-facebooks-fbfriend-selector-in-an-iframe
I created a multi-friend selector in my IFRAME FB application.
I want to know if the user selected any users for invite so I can reward him with extra points. In the developer WIKI I saw that [ids] is transferred to requested page via POST. But how I can capture the values if I'm using JS/.NET? (Preferably through .NET so I can easily save values in the DB).
Say I need to make searching for related titles just like stackoverflow does before you add your question or digg.com before submitting news.
I didn't find a way how to do this with Zend Lucene. There are setSlop method for queries, but as I understand, it doesn't help.
Is there any way to do this kind of searches?
After many hours, I have discovered that the given udp server needs the following steps for a successful communication:
1- Send "Start Message" on a given port
2- Wait to receive from server on any port
3- Then the port dedicated to you to send further data to the server equals the port you have received on it + 1
So I am asking if this kind is a known protocol/handshaking, or it is only special to this server??
PS: All above communication were in udp sockets in C#
PS: Related to a previous question: http://stackoverflow.com/questions/2757868/about-c-udp-sockets
Thanks
for example when i open stackoverflow.com for the first time, it pulls
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
Is there a way for me to get this list of js that are downloaded?
I would make to make a small WYSIWYG editor similar to the one used by StackOverflow. Basically, it would have buttons like [quote], and when that button is clicked, [quote] [/quote] should be inserted in the textarea where the cursor is or at the end of all other text. If the [quote][/quote] could be highlighted in some way that would be even more excellent, but its not required.
Is there any WYSIWYG editor already available where you can add custom buttons, with custom text being added to the textbox as a result?
Please explain me in simple terms (if possible simple example) the covariance and contravariance in c# .net .
I know many are available(even in stackoverflow) but my problem is in which scenario I should use that is not explained in the articles that I am refering to.
e.g.
Covariance and Contravariance in Delegates (C# Programming Guide)
Thanks
Thanks to reading about error handling on StackOverflow, I discovered Mz-Tools. However, I am wondering if there is a way to simultaneously update all the error handlers added by MZ-Tools.
If I add an error handler with MZ-Tools and then change the default error handler (via Options|Error Handler on the Mz-Tools toolbar), is there any way to have the changes automatically incorporated?
I've finished my poker game but now I want to make it look a bit better with displaying Spades, Hearts, Diamonds and Clubs. I tried this answer: http://stackoverflow.com/questions/2094366/c-printing-ascii-heart-and-diamonds-with-platform-independent
But I couldn't make it work. I'm running on Windows.
Hi,
Can anyone recommend a great CodeIgniter Registration/Login/Logout library for beginners to web development?
I read on stackoverflow that Redux was highly recommended at one time. What is the current recommendation?
Hi, whenever I add a new domain into my new Plesk control panel on my dedicated server it creates a whole bunch of test files in the cgi-bin, httpdocs and httpsdocs.
There must be some setting somewhere where I can tell Plesk not to do this?
I've done a good Google search but must now turn to the StackOverflow masses :)
Yours,
Chris
Hey,
I have an input text :
<input name="Email" type="text" id="Email" value="[email protected]" />
I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear.
My question is very similar to these two:
http://stackoverflow.com/questions/1140984/c-component-events
http://stackoverflow.com/questions/1638372/c-writing-a-com-server-events-not-firing-on-client
However, what worked for them is not working for me. The type library file, does not have any hints of events definitions, so Delphi doesn't see it. The class works fine for other C# applications, as you would expect.
COM Server tools:
Visual Studio 2010
.NET 4.0
Delphi applications:
Delphi 2010
Delphi 7
Here's a simplified version of the code:
/// <summary>
/// Call has arrived delegate.
/// </summary>
[ComVisible(false)]
public delegate void CallArrived(object sender, string callData);
/// <summary>
/// Interface to expose SimpleAgent events to COM
/// </summary>
[ComVisible(true)]
[GuidAttribute("1FFBFF09-3AF0-4F06-998D-7F4B6CB978DD")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface IAgentEvents
{
///<summary>
/// Handles incoming calls from the predictive manager.
///</summary>
///<param name="sender">The class that initiated this event</param>
///<param name="callData">The data associated with the incoming call.</param>
[DispId(1)]
void OnCallArrived(object sender, string callData);
}
/// <summary>
/// Represents the agent side of the system. This is usually related to UI interactions.
/// </summary>
[ComVisible(true)]
[GuidAttribute("EF00685F-1C14-4D05-9EFA-538B3137D86C")]
[ClassInterface(ClassInterfaceType.None)]
[ComSourceInterfaces(typeof(IAgentEvents))]
public class SimpleAgent
{
/// <summary>
/// Occurs when a call arrives.
/// </summary>
public event CallArrived OnCallArrived;
public SimpleAgent() {}
public string AgentName { get; set; }
public string CurrentPhoneNumber { get; set; }
public void FireOffCall()
{
if (OnCallArrived != null)
{
OnCallArrived(this, "555-123-4567");
}
}
}
The type library file has the definitions for the properties and methods, but no events are visible. I even opened the type library in Delphi's viewer to make sure. The Delphi app can see and use any property, methods, and functions just fine. It just doesn't see the events.
I would appreciate any pointers or articles to read.
Thanks!
How can I check if an anonymous object that was created as such:
var myObj = {
prop1: 'no',
prop2: function () { return false; }
}
does indeed have a prop2 defined?
prop2 will always be defined as a function, but for some objects it is not required and will not be defined.
I tried what was suggested here: http://stackoverflow.com/questions/595766/how-to-determine-if-native-javascript-object-has-a-property-method but I don't think it works for anonymous objects .
Hi, I am trying to create a matrix of buttons in Interface Builder 3.2.1 but can not find anyway to do it. I read the question and answer posted here:
http://stackoverflow.com/questions/1771835/how-to-create-a-nsmatrix-of-nsimagecell-in-interface-builder-in-10-6
But following Layout Embed Objects In, as suggested, I see only View and Scroll View as options, not Matrix. Have I missed something?
Thanks.