text
string
meta
dict
Q: Is there any way to configure multiple SSL sites on the same server without a wildcard certificate? I've set up multiple ssl sites on iis using Servier Bindings as per this article: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true I have tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/231303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: A Strategy against Policy and a Policy against Strategy When I first discovered the Strategy pattern, I was amazed of the seemingly endless possibilities it offered to me and my programs. I could better encapsulate my models' behaviour and even exchange this behaviour on the fly. But the strategy could also be used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to reference current object in XAML I cant' figure out how to reference the current instance object defined by the XAML file in the XAML file. I have a converter that I want to send in the current instance as the parameter object. {Binding Path=<bindingObject>, Converter={x:Static namespace:Converter.Instance}, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: convert XmlNode to XNode? Anyone know off the top of their heads how to convert a System.Xml.XmlNode to System.Xml.Linq.XNode? A: Eric White's blog is the place to be for cool XML/XLINQ conversions and such. I know this question pre-date's the post but I found it while looking at some other Q, so maybe people stil...
{ "language": "en", "url": "https://stackoverflow.com/questions/231323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Blending RDF and ORM approaches I'm working on a team investigating a technology stack for a green-field systems integration project. Part of our favored technology stack use Hibernate to persist its internal state and exposes hooks into the Hibernate transactions, so that business entities stay synchronized with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/231325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is a callback function and how do I use it with OOP I want to use the php simple HTML DOM parser to grab the image, title, date, and description from each article on a page full of articles. When looking at the API I notice it has a set_callback which Sets a callback function. However im not sure what this does...
{ "language": "en", "url": "https://stackoverflow.com/questions/231327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can I have url_for use a prefix option in Ruby on Rails? In a project I am working on, Apache is set up to only forward requests that come in as /prefix/* to mongrel. How can I tell ruby on rails to generate all URLs with that prefix? I have the routes set up for forward to the correct controller action by doing th...
{ "language": "en", "url": "https://stackoverflow.com/questions/231340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make reCAPTCHA work with a ValidationGroup in ASP.Net (captcha) I am using the ASP.Net plugin and control provided by reCAPTCHA. I can successfully get the control to work if the submit button on the web form is not in a validationgroup. There is no validationgroup attribute for the reCAPTCHA control. Has an...
{ "language": "en", "url": "https://stackoverflow.com/questions/231344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why this code is not working? Hi guys I wrote this code and i have two errors. * *Invalid rank specifier: expected ',' or ']' *Cannot apply indexing with [] to an expression of type 'int' Can you help please? static void Main(string[] args) { ArrayList numbers = new ArrayList(); fore...
{ "language": "en", "url": "https://stackoverflow.com/questions/231355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How is the max size of a SOAP message determined? I'm using NuSOAP on PHP 5.2.6 and I'm seeing that the max message size is only 1000 bytes (which makes it tough to do anything meaningful). Is this set in the endpoint's WSDL or is this something I can configure in NuSOAP? A: Regarding the FUD about a "1000 bytes li...
{ "language": "en", "url": "https://stackoverflow.com/questions/231358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "gem install" freezes at "updating Gem source index for [..]" For some weeks now I simply can't run gem install in windows. It sticks on this line: C:\Windows\System32>gem install rails --version 2.1.2 Bulk updating Gem source index for: http://gems.rubyforge.org/ Any ideas what it could be? A: I had this same pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/231362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best way to include html through an ajax echo command? I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this: (simplified php script...) if(isset($_POST["id_tuto"])){ PrintHtml($_P...
{ "language": "en", "url": "https://stackoverflow.com/questions/231364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Practicing BDD with python Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great. A: You can use "sure" for expressive assertions (just like in RSpec) A: The Pyccuracy p...
{ "language": "en", "url": "https://stackoverflow.com/questions/231371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "134" }
Q: XSLT IE6 default processor What is the default XSLT processor for IE6. Does it support EXSLT? Is there anyway to make it support it? A: The default XSLT processor for IE6 is MSXML 3.0. You can forget about doing XSLT in MSXML 3. What it supports is not even a subset of XSLT, but an older draft. However, most people...
{ "language": "en", "url": "https://stackoverflow.com/questions/231373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using JavaScript with JSF and Facelets I would like to use JavaScript to manipulate hidden input fields in a JSF/Facelets page. When the page loads, I need to set a hidden field to the color depth of the client. From my Facelet: <body onload="setColorDepth(document.getElementById(?????);"> <h:form> <h:inputHidden...
{ "language": "en", "url": "https://stackoverflow.com/questions/231377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is this prime generator inefficient C++? Is this seen as an in efficient prime number generator. It seems to me that this is pretty efficient. Is it the use of the stream that makes the program run slower? I am trying to submit this to SPOJ and it tells me that my time limit exceeded... #include <iostream> #include...
{ "language": "en", "url": "https://stackoverflow.com/questions/231381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Installing a rails plugin from a Git repository I've been trying to install Shoulda script/plugin install git://github.com/thoughtbot/shoulda.git but all I get is: removing: C:/Documents and Settings/Danny/My Documents/Projects/Ruby On Rails/_ProjectName_/vendor/plugins/shoulda/.git > And the vender/plugins direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/231390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: is there any advantage of webservices over web-pages for providing ajax content? Should my ajax calls talk to webservices or to simple webpages? It seems to be so much easier to simply Response.Write() the content. Are webservices more reliable or secure? A: Something you might want to look into to make AJAX calls ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Missing debugger types in VS2005 I have one computer that is missing the list of manual debugger types. See the screenshot below. It has VS2005 SP1. What could cause this? Blank Debugger http://img505.imageshack.us/img505/5240/blankdebuggerki3.png A: Are u using express edition or professional one. Because in exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/231406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: GWT paging widget I'm looking for a GWT common purpose paging widget. So far I have found GWT widget library and the Google Incubator widgets. Is there any other free (possibly open source) widget library implementing a paging behavior. A: GWT 2.1 now ships with paging widgets. Cell Table with paging Data Present...
{ "language": "en", "url": "https://stackoverflow.com/questions/231407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Real-Time MySQL binary log parsing we are dealing with a legacy application built on MySQL 5.0 (MyISAM). I need to know in real-time when an update, delete, or insert happens to a particular table. The 'gotcha' is that I can't change the db (i.e. write triggers) in any way. I have to use the bin log, replication ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Wiki Platform for .NET Looking for a good choice of .NET-based Wiki Platform. Doesn't need to be Open Source, but the cheaper the better. A: Screwturn Wiki Probably the best in terms of extensibility and ease of use/installation. I have been able to code plug-ins that are immensely helpful and powerful. This is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/231436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cuckoo hashing in C Does anybody have an implementation of Cuckoo hashing in C? If there was an Open Source, non GPL version it would be perfect! Since Adam mentioned it in his comment, anyone knows why it is not much used? Is it just a matter of implementation or the good theoretical properties do not materialize i...
{ "language": "en", "url": "https://stackoverflow.com/questions/231438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Automated acronym creation Is there any easy way to create an acronym from a string? First_name Middle_name Last_name => FML first_name middle_name last_name => FML First_name-Middle_name Last_name => F-ML first_name-middle_name last_name => F-ML A: Tokenize the string on whitespace. For each token1, Tokenize on...
{ "language": "en", "url": "https://stackoverflow.com/questions/231439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VC6 setting additional include path using env vars? I can't believe I am asking this... It has been a while since I used VC6. I set up what I thought was the correct way to include additional directories for include files (I removed another developer's hard coded paths) and put in something like: %MY_DIR%\include b...
{ "language": "en", "url": "https://stackoverflow.com/questions/231441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AJAX, Subdomains, and SSL I have a site, foo.com, that makes ajax requests to bar.foo.com. Will this work. Also, if foo is a secure connection, https, does bar.foo.com need to be https too? Can these two sites use different certificates? A: With plain-http AJAX: You are talking about doing cross-domain XMLHttpReque...
{ "language": "en", "url": "https://stackoverflow.com/questions/231478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How do I find where my .Net app is leaking Windows handles? I've got a WinForms .Net app that runs over a lot of XPS documents (thousands) and during this run the number of handles (according sysinternals process monitor and task manager) increases by between 3-10 for each document. I heavily suspect that these are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how-to initialize 'const std::vector' like a c array Is there an elegant way to create and initialize a const std::vector<const T> like const T a[] = { ... } to a fixed (and small) number of values? I need to call a function frequently which expects a vector<T>, but these values will never change in my case. In prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/231491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: RedCloth's odd support of the tag I am using RedCloth with Rails 2.1.1. The Textile <del> tag markup format (i.e. -delete-) was not translating at all. Tried a few choice options. > x=RedCloth.new('foobar -blah-') => "foobar -blah-" > x.to_html => "<p>foobar <del>blah</del></p>" # WORKED! > x=RedCloth.new('foobar...
{ "language": "en", "url": "https://stackoverflow.com/questions/231512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multipart text field in pdf form, using OpenOffice Writer So, this might be a crazy idea, so bear with me. [warning: hackish] Using OpenOffice.org Writer, one can easily make simple pdf forms (since Writer does XForms, and can export to PDF, and embed the form using FDF). I'd like to make a text entry field with...
{ "language": "en", "url": "https://stackoverflow.com/questions/231514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Raising C# events with an extension method - is it bad? We're all familiar with the horror that is C# event declaration. To ensure thread-safety, the standard is to write something like this: public event EventHandler SomethingHappened; protected virtual void OnSomethingHappened(EventArgs e) { var h...
{ "language": "en", "url": "https://stackoverflow.com/questions/231525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Do any databases support automatic Index Creation? Why don't databases automatically index tables based on query frequency? Do any tools exist to analyze a database and the queries it is receiving, and automatically create, or at least suggest which indexes to create? I'm specifically interested in MySQL, but I'd b...
{ "language": "en", "url": "https://stackoverflow.com/questions/231528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Comments field in SharePoint Issue Tracking list I've created a list using the SharePoint (MOSS 2007) Issue Tracking List. A "Comments" field is automatically created in this list. The Comments column has extra functionality that provides a sort of history/log whenever an edit is made to a list item. Unfortunatel...
{ "language": "en", "url": "https://stackoverflow.com/questions/231529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SxS installations and WiX I'm trying to figure out how to deal with installation and deployment of our project which is a framework. Typically developers would install the framework and then have their .Net applications reference our dlls. The framework has 2 levels: * *A number of native C++ dlls *Some C++\CLI...
{ "language": "en", "url": "https://stackoverflow.com/questions/231532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting renders to recognize custom routing paths So I have a snazzy custom route for login # routes.rb map.login '/login', :controller => 'sessions', :action => 'new' Visit www.asite.com/login and you're there. As is custom with failed login, however, we'll do the following in our action. Note what happens on fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/231538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is low-level / embedded systems programming hard for software developers? Given my background as a generalist, I can cover much of the area from analog electronics to writing simple applications that interface to a RDBMS backend. I currently work in a company that develops hardware to solve industry-specific problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/231543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Tracing which process that has opened a particular file From kernel mode in Windows I'm able to intercept and monitor virtually all actions performed on a particular disk. When a file is opened for any purpose I get an event. Now I want to trace which application that opened it. I think this should be possible but d...
{ "language": "en", "url": "https://stackoverflow.com/questions/231547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Has anyone used or written an Ant task to compile (Rhino) JavaScript to Java bytecode? I'd like to use the Rhino JavaScript compiler to compile some JavaScript to .class bytecode files for use in a project. It seems like this should already exist, since there are groovyc, netrexxc, and jythonc tasks for Groovy, NetR...
{ "language": "en", "url": "https://stackoverflow.com/questions/231550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What are best practices for designing XML schemas? As an amateur software developer (I'm still in academia) I've written a few schemas for XML documents. I routinely run into design flubs that cause ugly-looking XML documents because I'm not entirely certain what the semantics of XML exactly are. My assumptions: <pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/231553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Windows FTP Server with XCRC and SSL (Other than CuteFTP SS) I am currently using CuteFTP Secure Sever 3.3 but it has problems. It seems to muck up connection management, drop connections occasionally and die on large files. I am looking for a replacement that supports XCRC because I use the Synchronize Folders fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/231564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Knowing the plaintext, how to discover the encryption scheme used? I have some char() fields in a DBF table that were left encrypted by a past developer in the project. However, I know the plaintext result of the decryption of several records. How can I determine the function/algorithm/scheme to decrypt the origina...
{ "language": "en", "url": "https://stackoverflow.com/questions/231592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Constructing a Domain Object from multiple DTOs Suppose you have the canonical Customer domain object. You have three different screens on which Customer is displayed: External Admin, Internal Admin, and Update Account. Suppose further that each screen displays only a subset of all of the data contained in the Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/231607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Overriding CreateObject Function in VBScript I want to override the default CreateObject() function in VBScript with my own. Basically this example in VB6: http://www.darinhiggins.com/the-vb6-createobject-function/ I cannot figure out is this line: Set CreateObject = VBA.CreateObject(Class$, ServerName$) How do I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't this regular expression work in PHP? I need to match (case insensitive) "abcd" and an optional trademark symbol Regex: /abcd(™)?/gi See example: preg_match("/abcd(™)?/gi","AbCd™ U9+",$matches); print_r($matches); When I run this, $matches isn't populated with anything... Not even created as an empty ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/231637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Troubleshooting Visual Studio 2008 crash when loading a solution I've downloaded the source for SubSonic via SVN. When I try to open the project in Visual Studio 2008, it converts the solution, loads all the projects then disappears without an error message. Subsequent loads of the solution do the same. If I run dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/231638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Drawing an iso line of a 2D implicit scalar field I have an implicit scalar field defined in 2D, for every point in 2D I can make it compute an exact scalar value but its a somewhat complex computation. I would like to draw an iso-line of that surface, say the line of the '0' value. The function itself is continuous...
{ "language": "en", "url": "https://stackoverflow.com/questions/231642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I set the socket timeout in Ruby? How do you set the timeout for blocking operations on a Ruby socket? A: I think the non blocking approach is the way to go. I tried the mentioned above article and could still get it to hang. this article non blocking networking and the jonke's approach above got me on the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/231647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Lisp introspection? when a function is called and when it exits With common lisp and I am assuming the introspection properties. How can I add code to common lisp code that will tell me when a function is called and when has finished executing. I want to take any lisp code and this particular modification to the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/231649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Loop through and build array in the format: "value1","value2","value3" I wonder if anyone could suggest the best way of looping through all the <option> s in a <select> element with jQuery, and building an array. Eg. Instead of the following, whereby a string ins passed to the autoCompleteArray(), $("#CityLocal")....
{ "language": "en", "url": "https://stackoverflow.com/questions/231666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to pretty print XML response in grails Given this in a grails action: def xml = { rss(version: '2.0') { ... } } render(contentType: 'application/rss+xml', xml) I see this: <rss><channel><title></title><description></description><link></link><item></item></channel></rss> Is there an easy wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/231677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Get size of SVG graphics by javascript To add a svg graphics in html page, it is common to use object tag to wrap it like this: <object id="svgid" data="mysvg.svg" type="image/svg+xml" wmode="transparent" width="100" height="100"> this browser is not able to show SVG: <a linkindex="3" href="http://getfirefox.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/231679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Incremental Building in VS 2005? We have a 50 projects solution in VS 2005. Is any way to get incremental build if nothing was changed? It is kind of doing it now, but it executes all prebuild and post build events for each project. The compiling itself is not happenning, but it iterates through all projects...
{ "language": "en", "url": "https://stackoverflow.com/questions/231688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint: Web Part vs. ASP.NET User Control When creating web parts for Sharepoint, is it better to create an actual web part, or is using and ASP.NET User Control (.ascx) just as good? I already know how to create the user controls that I need, so it seems like the extra effort of creating a web part is just unne...
{ "language": "en", "url": "https://stackoverflow.com/questions/231690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: POST Login with ActionScript 2.0 I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using A...
{ "language": "en", "url": "https://stackoverflow.com/questions/231693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fixed-size array database field I need to store several date values in a database field. These values will be tied to a "User" such that each user will have their own unique set of these several date values. I could use a one-to-many relationship here but each user will have exactly 4 date values tied to them so I f...
{ "language": "en", "url": "https://stackoverflow.com/questions/231695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Myspace Music Layout Question How do I push my content to the top of the page to not cover up the ad, but to cover the menu and myspace links. I want to do something similar to: http://www.myspace.com/sensesfail and http://www.myspace.com/attackx2. Thanks. A: Absolute positioning could work, or you could use negati...
{ "language": "en", "url": "https://stackoverflow.com/questions/231696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strategies for handling memory consumption in PHP5? We have a large management software that is producing big reports of all kinds, based on numerous loops, with database retrievals, objects creations (many), and so on. On PHP4 it could run happily with a memory limit of 64 MB - now we have moved it on a new server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I make a script in SQL Management Studio 2005? I have a table in an MS SQL Server db. I want to create a script that will put the table and all records into another db. So I right-click the table in Management Studio and select Create-To new query editor... but all I get is the table structure. How exactl...
{ "language": "en", "url": "https://stackoverflow.com/questions/231716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to join another MySQL table when using Master/Detail Sample Form in Netbeans? I am trying to implement an application by using MySQL/JAVA and I found this tool in netbeans to easily create a new form for an existing table. (edit, insert, delete etc.) Is there an easy way to modify the code to join another table ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Force look and feel on NetBeans 6.5 How do you for a specific look and feel on NetBeans 6.5? I mean by passing flags to the netbeans script (on Ubuntu) or by modifying the netbeans script or by some setup. A: In your netbeans.conf file, add "--laf " to your netbeans_default_options value. Check out the Netbeans Wik...
{ "language": "en", "url": "https://stackoverflow.com/questions/231738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to retrieve data from dynamically added textboxes? Im adding textboxes (not a fixed number of textboxes) dynamically to a form on ASP.NET page, how do i read back data from these textboxes? A: Assuming you're wanting to access the controls on the postback you'd probably re-create the dynamic controls exactly as...
{ "language": "en", "url": "https://stackoverflow.com/questions/231739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you compress objects stored in session / cache? Scott Hanselman recently posted a blog article describing how to compress strings stored in the session / cache. This looks fairly promising, but the majority of data that I am storing in the session / cache are not strings but custom classes. How would you go...
{ "language": "en", "url": "https://stackoverflow.com/questions/231740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: QR code (2D barcode) coding and decoding algorithms? Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code. It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available... A: PyQrCodec is a Pytho...
{ "language": "en", "url": "https://stackoverflow.com/questions/231741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: How do I Monitor Text File Changes with C++? Difficulty: No .NET Use case: 3rd party application wants to programatically monitor a text file being generated by another program. Text file contains data you want to analyze as it's being updated. I'm finding a lot of answers to this question wrapped around FileSystemW...
{ "language": "en", "url": "https://stackoverflow.com/questions/231746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What does a type followed by _t (underscore-t) represent? This seems like a simple question, but I can't find it with the Stack Overflow search or Google. What does a type followed by a _t mean? Such as int_t anInt; I see it a lot in C code meant to deal closely with hardware—I can't help but think that they're rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/231760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "335" }
Q: Intensive programming reduces communication skills? This is one of those meta-programming questions that may or may not belong on SO, but here goes... Have any other programmers out there noticed that their ability to communicate with people (technical or otherwise) almost disappears during and after a period of int...
{ "language": "en", "url": "https://stackoverflow.com/questions/231764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What does the "yield" keyword do in Python? What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12521" }
Q: Better to develop cross-browser code up front or develop for one browser and go back and make it work in the others later? I'm looking for feedback on peoples experiences with developing sites that work across browsers. It seems to me there are at least two obvious ways to approach the task of making your site/weba...
{ "language": "en", "url": "https://stackoverflow.com/questions/231773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: .NET compact framework and ActiveSync Is there a way that my .NET CF app running on a Windows CE device can know when the device is docked/synced with the PC? A: I believe this will help http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.aspx A: See the following: Microsoft.WindowsMobile.Status...
{ "language": "en", "url": "https://stackoverflow.com/questions/231780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Will Oracle retire 10gAS in favor of WebLogic? Oracle purchased BEA and their WebLogic suite of tools. They still have a competing product in their own 10gAS Application Server. Both are Java EE, enterprise grade, servers. While it make take some time due to maintenance agreements, it would be unusual for them to co...
{ "language": "en", "url": "https://stackoverflow.com/questions/231812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is "DefInstance" and should I remove it from a WinForms app? I am working on a VB.NET WinForms app that was "upgraded" by Visual Studio (originally 1.0 or 1.1) from VB6 code (which was itself upgraded from VB5). Except for the few new forms I've created since taking over maintenance of this app, all of the form...
{ "language": "en", "url": "https://stackoverflow.com/questions/231821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to handle huge result sets from database I'm designing a multi-tiered database driven web application – SQL relational database, Java for the middle service tier, web for the UI. The language doesn't really matter. The middle service tier performs the actual querying of the database. The UI simply asks for certa...
{ "language": "en", "url": "https://stackoverflow.com/questions/231827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MySQL conditional statement Alright, so I have a query that looks like this: SELECT `orders`.*, GROUP_CONCAT( CONCAT( `menu_items`.`name`, ' ($', FORMAT(`menu_items`.`price`,2), ')' ) SEPARATOR '<br>' ) as `items`, SUM(`menu_items`.`pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/231838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python inheritance - how to disable a function In C++ you can disable a function in parent's class by declaring it as private in the child class. How can this be done in Python? I.E. How can I hide parent's function from child's public interface? A: class X(object): def some_function(self): do_some_stuf...
{ "language": "en", "url": "https://stackoverflow.com/questions/231839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Why am I getting a "double response" from HttpWebResponse? The follow code (running in ASP.Net 2.0) displays the contents of the requested URL twice. I only want it to display the contents of the requested URL once. I can't figure out what I'm doing wrong. The URL requested is returning XML and if I visit the URL di...
{ "language": "en", "url": "https://stackoverflow.com/questions/231848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I have MySQL write outfiles as a different user? I'm working with a MySQL query that writes into an outfile. I run this query once every day or two and so I want to be able to remove the outfile without having to resort to su or sudo. The only way I can think of making that happen is to have the outfile wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/231862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: C++ two or more data types in declaration I'm getting a strange error from g++ 3.3 in the following code: #include <bitset> #include <string> using namespace std; template <int N, int M> bitset<N> slice_bitset(const bitset<M> &original, size_t start) { string str = original.to_string<char, char_traits<char>, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/231868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: WS* vs REST = horses for courses ... or not? Ok so I've implemented both REST and SOAP services and I like both depending on the context. For me, WS* is great when I want an explicit contract between the server and the client e.g. for sensitive information or for mission critical stuff. REST on the other hand whilst...
{ "language": "en", "url": "https://stackoverflow.com/questions/231869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Force windows to refresh a disk FAT I have a separate partition on my disk formatted with FAT32. When I hibernate windows, I want to be able to load another OS, create/modify files that are on that partition, then bring Windows out of hibernation and be able to see the changes that I've made. I know what you're goin...
{ "language": "en", "url": "https://stackoverflow.com/questions/231870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Complex model binding to a list I have been trying out the NameValueDeserializer from MVCContrib, which will take a IList as a parameter to a controller and bind a form and its elements to it, but I was just wondering if MVC Beta had any way of doing this?? I know you can bind a strongly typed Object but I want to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/231878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Violation reading location in std::map operator[] I encountered a problem when running some old code that was handed down to me. It works 99% of the time, but once in a while, I notice it throwing a "Violation reading location" exception. I have a variable number of threads potentially executing this code throughout...
{ "language": "en", "url": "https://stackoverflow.com/questions/231885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Confused about BackgroundWorker events not firing This may seem like a somewhat contrived example, but I'm left scratching my head. Ok, I have a console app that instantiates a WindowsForm and calls a method called DoSomeWork() on the form. class Program { static void Main(string[] args) { Form1 for...
{ "language": "en", "url": "https://stackoverflow.com/questions/231886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does ASP.Net MVC run on top of ASP.NET 2.0? Does ASP.Net 2.0 and Visual Studio 2005 has the possibility of working with MVC or I have to move to VS2008 and asp.net 3.5? A: It's definitely not supported. The post that Scott wrote might be outdated. Even following that post, it might not work now due to some recent c...
{ "language": "en", "url": "https://stackoverflow.com/questions/231891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What does "yield break;" do in C#? I have seen this syntax in MSDN: yield break, but I don't know what it does. Does anyone know? A: Here http://www.alteridem.net/2007/08/22/the-yield-statement-in-c/ is very good example: public static IEnumerable<int> Range( int min, int max ) { while ( true ) { if (...
{ "language": "en", "url": "https://stackoverflow.com/questions/231893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "581" }
Q: How much to log within an application and how much is too much? Just wondering how much people log within their applications??? I have seen this: "I typically like to use the ERROR log level to log any exceptions that are caught by the application. I will use the INFO log level as a "first level" debugging ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the difference between sigaction and signal? I was about to add an extra signal handler to an app we have here and I noticed that the author had used sigaction() to set up the other signal handlers. I was going to use signal(). To follow convention I should use sigaction() but if I was writing from scratch, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/231912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "160" }
Q: Finding numerical substrings mathematically, without string comparison This originally was a problem I ran into at work, but is now something I'm just trying to solve for my own curiosity. I want to find out if int 'a' contains the int 'b' in the most efficient way possible. I wrote some code, but it seems no matte...
{ "language": "en", "url": "https://stackoverflow.com/questions/231917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SharePoint - ASP.Net Controls Integration I have basically two separate sites, a SharePoint collaboration site, and an ASP.Net application site. The only linkage between the two are the hyperlinks going back and forth, and the user validation on the behalf of the SharePoint site. The user will enter and be authentic...
{ "language": "en", "url": "https://stackoverflow.com/questions/231920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best python soap stack for consuming Amazon Web Services WSDL? Python has a number of soap stacks; as near as I can tell, all have substantial defects. Has anyone had luck consuming and using WSDL for S3, EC2, and SQS in python? My experience is that suds fails when constructing a Client object; after som...
{ "language": "en", "url": "https://stackoverflow.com/questions/231924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Animating inline elements with jQuery I am trying to show and hide an inline element (eg a span) using jQuery. If I just use toggle(), it works as expected but if I use toggle("slow") to give it an animation, it turns the span into a block element and therefore inserts breaks. Is animation possible with inline eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/231937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Referencing AppDelegate instance variables I have a project that is based on the Navigation Based Application template. In the AppDelegate are the methods -applicationDidFinishLoading: and -applicationWillTerminate:. In those methods, I am loading and saving the application data, and storing it in an instance varia...
{ "language": "en", "url": "https://stackoverflow.com/questions/231947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: AOP for winforms How to capture user clicks in a winform application without making the code very complicated? is AOP the answer? How to track instrumentations? A: This does depend rather on your actual requirements. For a simple/sample/prototype winforms app, I'd suggest basic WinForms Event Handlers, with the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/231967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I do advanced printing from a web application? I have been researching options for printing report-like data via a web application. Some options that are viable are writing PDFs, Excel XML, dumping HTML to Excel, or using a tool like activePDF webGrabber. I suppose the question is, what are some solution tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/231973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I manipulate the DOM from a string of HTML in C#? For the moment the best way that I have found to be able to manipulate DOM from a string that contain HTML is: WebBrowser webControl = new WebBrowser(); webControl.DocumentText = html; HtmlDocument doc = webControl.Document; There are two problems: * *Req...
{ "language": "en", "url": "https://stackoverflow.com/questions/232004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Will Django be a good choice for a permissions based web-app? I've been exploring the details of Django for about a week now and like what I see. However I've come upon some.. negativity in relation to fine-grained control of permissions to the CRUD interface. What I'm writing is an Intranet client management web-ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/232008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do you Manage Infragistics WebGrid Data from JavaScript/Ajax code? I am working on a project that I need to use the Infragistics WebGrid control for some lists of data. I am loading the data on the client-side using JavaScript for display on a Map, and then I need to display that same data within multiple WebGri...
{ "language": "en", "url": "https://stackoverflow.com/questions/232020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Parent class calling a child virtual function I want a pure virtual parent class to call a child implementation of a function like so: class parent { public: void Read() { //read stuff } virtual void Process() = 0; parent() { Read(); Process(); } } class child : public pare...
{ "language": "en", "url": "https://stackoverflow.com/questions/232030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can you reformat date parameter values in Reporting Services? Is it possible to transform the format of a date value that is passed to the query? I am trying to create a report that interfaces with a SAP back-end, but the query uses a different format for date objects. I need to take the selected date and reformat i...
{ "language": "en", "url": "https://stackoverflow.com/questions/232038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to submit RESTful partial updates? Sam Ruby, author of "RESTful Web Services" seems to come out against the use of HTTP PUT for partial updates: http://intertwingly.net/blog/2008/02/15/Embrace-Extend-then-Innovate What isn't clear is how partial updates should take place. As I commented near the bottom of his bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/232041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: MSBuild: Specifying a target from the command line I have an MSBuild task to build a specific project in a solution file. It looks something like this: <Target Name="Baz"> <MSBuild Projects="Foo.sln" Targets="bar:$(BuildCmd)" /> </Target> From the command line, I can set my BuildCmd to either Rebuild or Clean and...
{ "language": "en", "url": "https://stackoverflow.com/questions/232052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }