text stringlengths 8 267k | meta dict |
|---|---|
Q: Vim auto-generate ctags Right now I have the following in my .vimrc:
au BufWritePost *.c,*.cpp,*.h !ctags -R
There are a few problems with this:
*
*It's slow -- regenerates tags for files that haven't changed since the last tag generation.
*I have to push the enter button again after writing the file because of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: C# object is not null but (myObject != null) still return false I need to do a comparaison between an object and NULL. When the object is not NULL I fill it with some data.
Here is the code :
if (region != null)
{
....
}
This is working but when looping and looping sometime the region object is NOT null (I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: LINQ Submit Changes not submitting changes I'm using LINQ to SQL and C#. I have two LINQ classes: User and Network.
User has UserID (primary key) and NetworkID
Network has NetworkID (primary key) and an AdminID (a UserID)
The following code works fine:
user.Network.AdminID = 0;
db.SubmitChanges();
However, if I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is "for" in Ruby In Ruby:
for i in A do
# some code
end
is the same as:
A.each do |i|
# some code
end
for is not a kernel method:
*
*What exactly is "for" in ruby
*Is there a way to use other keywords to do similar things?
Something like:
total = sum i in I {x[i]}
mapping to:
total = I.sum {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Extending chart functionality in SSRS The default chart object in the SQL Server (2005) Business Intelligence Development Studio doesn't seem to some have formatting options like :
*
*specifying the text direction of labels in the x and y axis
*adding a trendline to a bar chart
*arbitrarily resizing items in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OS-independent API to monitor file system? I would like to experiment with ideas about distributed file synchronization/replication. To make it efficient when the user is working, I would like to implement some kind of daemon to monitor changes in some directory (e.g. /home/user/dirToBeMonitored or c:\docs and setts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: download mail attachment with Java I had a look in the reference doc, and Spring seems to have pretty good support for sending mail. However, I need to login to a mail account, read the messages, and download any attachments. Is downloading mail attachments supported by the Spring mail API?
I know you can do this wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I create a directory from within Emacs? How exactly can I create a new directory using Emacs? What commands do I use? (If possible, please provide an example)
A: You can also run single shell commands using M-!
You're basically sending a string to the command line so you don't get any nice auto-completion bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "156"
} |
Q: How to convert a utf-8 string to a utf-16 string in PHP How do I convert a utf-8 string to a utf-16 string in PHP?
A: You could also use iconv.
It's native in PHP, but require that all your text is one charset. Else it could discard characters.
A: mbstring supports UTF-16, so you can use mb_convert_encoding.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/155514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Cancelling a long running process in VB6.0 without DoEvents? Is it possible to cancel out of a long running process in VB6.0 without using DoEvents?
For example:
for i = 1 to someVeryHighNumber
' Do some work here '
...
if cancel then
exit for
end if
next
Sub btnCancel_Click()
cancel = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: XHTML 1.0 Strict (or Transitional) compliance in ASP.NET 2.0/3.5 Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response.
One major problem is the form tag itself, this is the ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I tell when .Net System.Diagnostics.Process ran successfully or failed? I'm writing a scheduler or sorts. It's basically a table with a list of exes (like "C:\a.exe") and a console app that looks at the records in the table every minute or so and runs the tasks that haven't been run yet.
I run the tasks lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: globally unique integer based ID (sequential) for a given location I need to create a unique ID for a given location, and the location's ID must be sequential. So its basically like a primary key, except that it is also tied to the locationID. So 3 different locations will all have ID's like 1,2,3,4,5,...,n
What i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exception thrown in a referenced .dll how do I debug? I'm using watermark extenders on textboxes and an exception is being thrown from the AJAX Control Toolkit .dll. It's strange because this just started happening.
I tried debugging from the Ajax solution and Ajax examples (but with my code), but no dice.
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get the TThread object for the currently executing thread? I want a function like GetCurrentThread which returns a TThread object of the current executing thread. I know there is a Win32 API call GetCurrentThread, but it returns the thread Id. If there is a possibility to get TThread object from that ID that's also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you use git svn? Please provide tips for effectively using git with svn. What are your "best practices"?
A: Here's some that I recently learned:
*
*always do git svn rebase before doing git svn dcommit
*when you are doing dcommit, do it from a temporary staging branch - if you (or git) mess up, it's much... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Understanding code metrics I recently installed the Eclipse Metrics Plugin and have exported the data for one of our projects.
It's all very good having these nice graphs but I'd really like to understand more in depth what they all mean. The definitions of the metrics only go so far to telling you what it really me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there any clean CSS method to make each letter in a word a different color? I need a way to allow each letter of a word to rotate through 3 different colors. I know of some not so clean ways I can do this with asp.NET, but I'm wondering if there might be a cleaner CSS/JavaScript solution that is more search engin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there an existing way to turn source code back into a CodeCompileUnit? We use the DesignSurface and all that good IDesignerHost goodness in our own designer. The designed forms are then persisted in our own bespoke format and all that works great. WE also want to export the forms to a text-based format (which we'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I determine the number of users on an ASP.NET site (IIS)? And their info? Is there a way to determine the number of users that have active sessions in an ASP.NET application? I have an admin/tools page in a particular application, and I would like to display info regarding all open sessions, such as the num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How much is File I/O a performance factor in web development? I know the mantra is that the database is always the long pole in the tent anytime a page is being generated server-side.
But there's also a good bit of file i/o going on on a web server. Scripted code is replete with include/require statements. Moreover,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to learn about RDF / OWL? What references offer a good summary/tutorial for using RDF/OWL? There seem to be enough tools (Protege, Topbraid, Jena, etc.) that knowing the syntax of the markup languages is not necessary, but knowing the concepts is, of course, still critical.
I'm working throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is it possible to use Mac Mail with MS Exchange if IMAP is disabled Our network admins have disabled IMAP and POP for our exchange server, but do have RDP over HTTP enabled. Does Mac Mail only use IMAP to communicate with exchange servers, or does it also know how to use RDP over HTTP?
A: No. Mac mail uses IMAP fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the difference between a method and a function? Can someone provide a simple explanation of methods vs. functions in OOP context?
A: for me:
the function of a method and a function is the same if I agree that:
*
*a function may return a value
*may expect parameters
Just like any piece of code you may h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2111"
} |
Q: How do I specify the exit code of a console application in .NET? I have a trivial console application in .NET. It's just a test part of a larger application. I'd like to specify the "exit code" of my console application. How do I do this?
A: The enumeration option is excellent. However, it can be improved upon by m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "543"
} |
Q: Is it reasonable to assume my visitors have javascript enabled? I understand that server-side validation is an absolute must to prevent malicious users (or simply users who choose to disable javascript) from bypassing client-side validation. But that's mainly to protect your application, not to provide value for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Circle coordinates to array in Javascript What's the best way to add the coordinates of a circle to an array in JavaScript? So far I've only been able to do a half circle, but I need a formula that returns the whole circle to two different arrays: xValues and yValues. (I'm trying to get the coordinates so I can anim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Database schema to track random settings in website for marketing I have Flex based consumer website where I would like to change various look and feel type settings based on random and other criteria, and then track these through to what results in the most sales.
For instance I might completely switch out the hom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Invert 4x4 matrix - Numerical most stable solution needed I want to invert a 4x4 matrix. My numbers are stored in fixed-point format (1.15.16 to be exact).
With floating-point arithmetic I usually just build the adjoint matrix and divide by the determinant (e.g. brute force the solution). That worked for me so far, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Displaying whitespace in HTML when pulling from MySQL TEXT column I have saved input from a textarea element to a TEXT column in MySQL. I'm using PHP to pull that data out of the database and want to display it in a p element while still showing the whitespace that the user entered (e.g. multiple spaces and newline... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: I need a LINQ expression to find an XElement where the element name and attributes match an input node I need to replace the contents of a node in an XElement hierarchy when the element name and all the attribute names and values match an input element. (If there is no match, the new element can be added.)
For examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ChangeServiceConfig problem setting logon credentials I've got this weird problem - I'm calling ChangeServiceConfig on a newly installed service (I CreateService it myself) to supply the logon credentials, but while the function succeeds (returns TRUE), if I try to start the service, it fails with a 1069 (logon fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ambiguous JavaScript error [nsSessionStore.js] I'm seeing an ambiguous error in Firebug. I don't think it's particularly related to the script I'm writing, however I don't have enough details to be able to determine that from this one error alone. Has anyone seen something similar and have a suggestion?
error:
[Exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are good tools/frameworks for i18n of a php codebase? I have been looking at a few options for enabling localization and internationalization of a dynamic php application. There appears to be a variety of tools available such as gettext and Yahoo's R3 and I am interested in hearing from both developers and tran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I visually "break out" of a Container in Flex? Here's my problem - I have some code like this:
<mx:Canvas width="300" height="300">
<mx:Button x="800" />
</mx:Canvas>
So the problem is that the Button inside the canvas has an x property way in excess of the Canvas's width - since it's a child of the Can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best practices for internationalizing web applications? Internationalizing web apps always seems to be a chore. No matter how much you plan ahead for pluggable languages, there's always issues with encoding, funky phrasing that doesn't fit your templates, and other problems.
I think it would be useful to get the SO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Fast way to search for particular string (or byte array) in another process memory in C#? Please post a working source code example (or link) of how to search string in another process memory and getting offset of match if found. The similar way its done in game cheating utils which search for values in game memory ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: qt/wxwidgets third party components? I'm used to working in a Delphi and C# environment which seem to have a rich set of third party components available. I'm currently wanting to do cross-platform programming in C++ using either qt or wxwidgets. Is there a large market for third party components? I was looking at s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a difference between (local), '.' and localhost? I've used all three of these when making local programmatic connections to databases. Is there any real difference between them?
A: The final result is the same. The difference is:
*
*'localhost' resolves at the TCP/IP level and is equivalent to the IP a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Detecting Unsaved Changes I have a requirement to implement an "Unsaved Changes" prompt in an ASP .Net application. If a user modifies controls on a web form, and attempts to navigate away before saving, a prompt should appear warning them that they have unsaved changes, and give them the option to cancel and stay ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Remote print module in Java I am working on an application that will sport a web-based point of sale interface.
The point of sale PC (I am not sure as of now whether it will run on Linux or Windows) must have a fiscal printer attached to it, but like any web app, it is the server which processes all stuff. Both serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Provider model in .net When the .net 2.0 framework first came out, the provider model was all the rage. 2.0 even shipped with a bunch of default providers (Membership, sitemap, role). Since the release of 2.0, the hype has died down, and whilst I still use providers day to day, it seems to get far less press.
I was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Checking for and not printing JavaScript in generated data? In my php web app, suppose I want to go the extra mile and in addition to going gang-busters and being anal-retentive about sanitizing my inputs, I also want to ensure that no JavaScript is being output in strings I am inserting into html templates.
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Safehandle in C# What is SafeHandle? how does it differ from IntPtr? When should I use one? What are its advantages?
A: You should use a derivative of SafeHandle whenever possible where managed code is receiving an IntPtr from unmanaged code. While the name, general use, and even documentation of the SafeHandle cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Advice on C# Expression Trees I'm working on a method that accepts an expression tree as a parameter, along with a type (or instance) of a class.
The basic idea is that this method will add certain things to a collection that will be used for validation.
public interface ITestInterface
{
//Specify stuff here.
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rhino Mocks: How to mock ADO.NET's DataRow? ADO.NET has the notorious DataRow class which you cannot instantiate using new. This is a problem now that I find a need to mock it using Rhino Mocks.
Does anyone have any ideas how I could get around this problem?
A: I'm curious as to why you need to mock the DataRow.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I configure visual studio to use the code view as the default view for Webservices? When you double click on a class (in 'solution explorer')... if that class happens to be an .asmx.cs webservice... then you get this...
To add components to your class, drag
them from the Toolbox and use
the Properties wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Programmatically focusing a hippo.CanvasEntry? Consider this Python program which uses PyGtk and Hippo Canvas to display a clickable text label. Clicking the text label replaces it with a Hippo CanvasEntry widget which contains the text of the label.
import pygtk
pygtk.require('2.0')
import gtk, hippo
def textClic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting an error when filling a datatable from a data adapter I am getting this error but only very occasionally. 99.9% of the time it works fine:
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Does anyone have any idea on what the cause could b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you reference MS office interops in C#? I am trying to access Outlook 2007 from C#. I have installed the PIA msi after following the directions found on msdn. After a successful install nothing shows up in Visual Studio's references under the .net tab.
A: Office interaction is available through COM objects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I create a Microsoft Jet (Access) database without an interop assembly? I need to create an access (mdb) database without using the ADOX interop assembly.
How can this be done?
A: Before I throw away this code, it might as well live on stackoverflow
Something along these lines seems to do the trick:
if (!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Design time serialization in C# I have created a non-visual component in C# which is designed as a placeholder for meta-data on a form.
The component has a property which is a collection of custom objects, this object is marked as Serializable and implements the GetObjectData for serilizing and public constuctor for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ASP.NET MVC - passing parameters to the controller I have a controller with an action method as follows:
public class InventoryController : Controller
{
public ActionResult ViewStockNext(int firstItem)
{
// Do some stuff
}
}
And when I run it I get an error stating:
The parameters dictionary d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: Anyone have issues going from ColdFusion's serializeJSON method to PHP's json_decode? The Interwebs are no help on this one. We're encoding data in ColdFusion using serializeJSON and trying to decode it in PHP using json_decode. Most of the time, this is working fine, but in some cases, json_decode returns NULL. We'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I declare an impicitly typed variable in VB inline in an ASP.Net page? I want to do the following:
<%=var t = ViewData.Model%>
but in VB
A: <% Dim t = ViewData.Model %>
VB doesn't use a special keyword for implicitly typed variables... just Dim.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/155870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MyClass in VB.Net What is a realistic use for VB.Net's MyClass keyword?
I understand the technical usage of MyClass; I don't understand the practical usage of it in the real world.
Using MyClass only makes sense if you have any virtual (overridable) members. But it also means that you want to ignore the overridden ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you rename a Verity collection in ColdFusion? Can't seem to rename an existing Verity collection in ColdFusion without deleting, recreating, and rebuilding the collection. Problem is, I have some very large collections I'd rather not have to delete and rebuild from scratch. Any one have a handy trick for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unicode URL decoding The usual method of URL-encoding a unicode character is to split it into 2 %HH codes. (\u4161 => %41%61)
But, how is unicode distinguished when decoding? How do you know that %41%61 is \u4161 vs. \x41\x61 ("Aa")?
Are 8-bit characters, that require encoding, preceded by %00?
Or, is the point that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to detect the number of context switches that occurred while running C# code? From C#, is it possible to detect the number of context switches that occurred while executing a block of code on a particular thread? Ideally, I'd like to know how many times and what CPU my thread code was scheduled on.
I know I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating A Private Photo Gallery Using Asp.Net MVC I need to create a photo gallery service that is managed by users. I've done this a million times using just Asp.net but I was wondering if there are any special considerations that I need to make when using Asp.net MVC.
Basically, I will be storing the actual image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the easiest way to start tomcat in embedded mode from the cargo-maven2-plugin? I have defined tomcat:catalina:5.5.23 as a dependency to the cargo plugin, however I still get the following exception:
java.lang.ClassNotFoundException: org.apache.catalina.Connector
at java.net.URLClassLoader$1.run(URLClassLoade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you handle unit/regression tests which are expected to fail during development? During software development, there may be bugs in the codebase which are known issues. These bugs will cause the regression/unit tests to fail, if the tests have been written well.
There is constant debate in our teams about how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to throw a XmlSchemaException on XML Schema validation errors? Calling Validate() on an XmlDocument requires passing in a ValidationEventHandler delegate. That event function gets a ValidationEventArgs parameter which in turn has an Exception property of the type XmlSchemaException. Whew!
My current code looks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Business Entity Loading Pattern The project I'm working is using n-tier architecture. Our layers are as follows:
*
*Data Access
*Business Logic
*Business Entities
*Presentation
The Business Logic calls down into the data access layer, and the Presentation layer calls down into the Business Logic layer, and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Session data not being saved I have one of those "I swear I didn't touch the server" situations. I honestly didn't touch any of the php scripts. The problem I am having is that php data is not being saved across different pages or page refreshes. I know a new session is being created correctly because I can set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Launch web page from my application in Linux I have an application that launches a webpage in the "current" browser when the user selects it. This part of my app works fine in the Windows version but I can't figure out how to do this in Linux build.
Right now the Linux version is hardcoded for Firefox in a specific ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you loop through each line in a text file using a windows batch file? I would like to know how to loop through each line in a text file using a Windows batch file and process each line of text in succession.
A: If you have an NT-family Windows (one with cmd.exe as the shell), try the FOR /F command.
A: The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "286"
} |
Q: What GNU/Linux command-line tool would I use for performing a search and replace on a file? What GNU/Linux command-line tool would I use for performing a search and replace on a file?
Can the search text, and replacement, be specified in a regex format?
A: Consider Ruby as an alternative to Perl. It stole most of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Distributed file source Looking for a software solution to to store large files (>50MB - 1.5GB), distributed across multiple servers. We have looked at MogileFS, however, given existing software demands, need to have an NFS interface. Would prefer open source, however, open to all options.
A: If you have only a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you design/sketch/draw a development solution first and then develop it? If so how? I work a lot with decision makers looking to use technology better in their businesses. I have found that a picture is worth a thousand words and prototyping a system in a diagram of some sorts always lends a lot to a discussion.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: OleDbException System Resources Exceeded The following code executes a simple insert command. If it is called 2,000 times consecutively (to insert 2,000 rows) an OleDbException with message = "System Resources Exceeded" is thrown. Is there something else I should be doing to free up resources?
using (OleDbConnecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are best practices that you use when writing Objective-C and Cocoa? I know about the HIG (which is quite handy!), but what programming practices do you use when writing Objective-C, and more specifically when using Cocoa (or CocoaTouch).
A: Use the LLVM/Clang Static Analyzer
NOTE: Under Xcode 4 this is now bui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "346"
} |
Q: jQuery match multiple attributes I have the following markup, and I want to make the All radio button checked.
<ul>
<li><input type="radio" value="All" name="Foo"/>All</li>
<li><input type="radio" value="New" name="Foo"/>New</li>
<li><input type="radio" value="Removed" name="Foo"/>Removed</li>
<li><i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: VB.Net MessageBox.Show() moves my form to the back I have an MDI application. When I show a message box using MessageBox.Show(), the entire application disappears behind all of my open windows when I dismiss the message box.
The code is not doing anything special. In fact, here is the line that invokes the message b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I assign an event to a timer at runtime in vb.net? Given this:
Public Sub timReminder_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
If DateTime.Now() > g_RemindTime Then
Reminders.ShowDialog()
timReminder.Enabled = False
End If
End Sub
I want to be able to say this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/155998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Protecting internal view layer template pages in servlet applications I have a very basic question about MVC web applications in Java.
Since the olden days of raw JSP up until current technologies like Seam, a very basic pattern has always been the internal dispatch from the controller that initially accepted the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to rename an SQL Server 2005 instance I would like to change the name of my SQL Server instance. Is there a simple way of doing this or is a significant effort required? Note, this is a named instance - not the default instance.
A: The only way is a reinstall. See this similar thread for more info:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Perl: Grabbing the nth and mth delimited words from each line in a file Because of the more tedious way of adding hosts to be monitored in Nagios (it requires defining a host object, as opposed to the previous program which only required the IP and hostname), I figured it'd be best to automate this, and it'd be a gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Haskell syntax for a case expression in a do block I can't quite figure out this syntax problem with a case expression in a do block.
What is the correct syntax?
If you could correct my example and explain it that would be the best.
module Main where
main = do
putStrLn "This is a test"
s <- foo
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do you store Date ranges, which are actually timestamps Java & Oracle both have a timestamp type called Date. Developers tend to manipulate these as if they were calendar dates, which I've seen cause nasty one-off bugs.
*
*For a basic date quantity you can simply chop off the time portion upon input, i.e., re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In Facebook app, is there a way to link directly to "join a group" I'd like to have a link for a user to join a Facebook group from within my Facebook application.
Here is the link on Facebook's "display a group" page (minus a longer referrer part), but the group id is encrypted:
http://www.new.facebook.com/group.ph... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can you limit a TFS Check-In notes to a custom path? You can limit "Check-In Policy" rules via the "Custom Paths" policy. But the "Check-in Notes" tab doesn't seem to fit in to the same system. Why isn't "Check-In notes" just another "Check-In policy"??
I'm using Team Foundation Server 2008 SP1
A: We had a simi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you manage database revisions on a medium sized project with branches? At work we have 4 people working together on a few different projects. For each project we each have a local copy we work on and then there is a development, staging, and live deployment, along with any branches we have (we use subversion)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Show a Form without stealing focus? I'm using a Form to show notifications (it appears at the bottom right of the screen), but when I show this form it steals the focus from the main Form. Is there a way to show this "notification" form without stealing focus?
A: Doing this seems like a hack, but it seems to work:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "154"
} |
Q: Update viewstate after populating a list with ASP.NET AJAX I've got a dropdown list that is being populated via a webservice using ASP>NET AJAX. On the success callback of the method in javascript, I'm populating the dropdown via a loop:
function populateDropDown(dropdownId, list, enable, showCount) {
var dropdo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do screen scrapers work? I hear people writing these programs all the time and I know what they do, but how do they actually do it? I'm looking for general concepts.
A: In general a screen scraper is a program that captures output from a server program by mimicing the actions of a person sitting in front of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Sorting ADO recordset text field as numeric Using VBA i have a set of functions that return an ADODB.Recordset where all the columns as adVarChar. Unfortunately this means numerics get sorted as text. So 1,7,16,22 becomes 1,16,22,7
Is there any methods that can sort numerics as text columns without resorting to chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight 2.0 DataGrid How to remove mouseover effect I am just starting with SL and WPF. I am using the DataGrid control and I need to remove the mouseover effect (I actually will need to do more customizations than that). How do I do this. I think I need to do it with a control template but not sure how. I'm res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: LinqToSql and abstract base classes I have some linq entities that inherit something like this:
public abstract class EntityBase { public int Identifier { get; } }
public interface IDeviceEntity { int DeviceId { get; set; } }
public abstract class DeviceEntityBase : EntityBase, IDeviceEntity
{
public abstract in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to get result count before LIMIT was applied When paging through data that comes from a DB, you need to know how many pages there will be to render the page jump controls.
Currently I do that by running the query twice, once wrapped in a count() to determine the total results, and a second time with a limit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: What's the CSS Filter alternative for Firefox? I'm using CSS Filters to modify images on the fly within the browser. These work perfectly in Internet Explorer, but aren't supported in Firefox.
Does anyone know what the CSS Filter equivalent for these is for Firefox? An answer that would work cross browser (Safari, W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Source code management strategies - branching, tagging, forking, etc. - for web apps This posting here (How do you manage database revisions on a medium sized project with branches?) got me wondering how best to work on a web project using branching and deploying to dev, staging, and production (along with local cop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Loading XHTML fragments over AJAX with jQuery I'm trying to load fragments of XHTML markup using jQuery's $.fn.load function, but it raises an error trying to add the new markup into the DOM. I've narrowed this down to the XML declaration (<?xml...?>) -- the view works if I return static text without the declaration... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: CoreImage for Win32 For those not familiar with Core Image, here's a good description of it:
http://developer.apple.com/macosx/coreimage.html
Is there something equivalent to Apple's CoreImage/CoreVideo for Windows? I looked around and found the DirectX/Direct3D stuff, which has all the underlying pieces, but there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to render hand-drawn figures I guess I'll illustrate with an example:
In this game you are able to draw 2D shapes using the mouse and what you draw is rendered to the screen in real-time. I want to know what the best ways are to render this type of drawing using hardware acceleration (OpenGL). I had two ide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you measure if an interface change improved or reduced usability? For an ecommerce website how do you measure if a change to your site actually improved usability? What kind of measurements should you gather and how would you set up a framework for making this testing part of development?
A: Multivariate te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you update an object with Linq 2 SQL without rowversion or timestamp? I'm trying to take a POCO object and update it with Linq2SQL using an XML mapping file... This what what I have:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Business.Objects
{
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieve only a portion of a matched string using regex in Javascript I've got a string like
foo (123) bar
I want to retrieve all numbers surrounded with the delimiters ( and ).
If I use varname.match(/\([0-9]+\)/), my delimiters are included in the response, and I get "(123)" when what I really want is "123".
Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Reorder PDF Page Order Is it possible to reorder an already generated PDF file programmatically, and using as little resources as possible, as this will need to be ran on ~8000 PDFs every month or so?
We are currently using iTextSharp to merge the PDF’s in to larger PDF’s, but iTextsharp’s Documentation does not rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a decent beginner graph puzzle? I'm trying to get more acquainted with problems that require Graphs to be solved (are are best solved by graphs).
If someone has an old ACM Programming Competition problem that utilized graphs, or have another problem that they found particularly enlightening as they worked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/156213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.