text
stringlengths
8
267k
meta
dict
Q: Replace a database connection for report and all subreports Is there is any way to change the datasource location for a report and all of it's subreports without having to open each of them manually? A: Here is how I set my connections at runtime. I get the connection info from a config location. #'SET REPO...
{ "language": "en", "url": "https://stackoverflow.com/questions/40545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Are square brackets permitted in URLs? Are square brackets in URLs allowed? I noticed that Apache commons HttpClient (3.0.1) throws an IOException, wget and Firefox however accept square brackets. URL example: http://example.com/path/to/file[3].html My HTTP client encounters such URLs but I'm not sure whether to pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/40568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Datetime arithmetic with a string in Ruby In Ruby, I'm trying to do the following. def self.stats(since) return Events.find(:all, :select => 'count(*) as this_count', :conditions => ['Date(event_date) >= ?', (Time.now - since)]).first.this_count end where "since" is a string representing an amount of time ('1 hou...
{ "language": "en", "url": "https://stackoverflow.com/questions/40577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cx_Oracle: how do I get the ORA-xxxxx error number? In a try/except block, how do I extract the Oracle error number? A: try: cursor.execute("select 1 / 0 from dual") except cx_Oracle.DatabaseError, e: error, = e print "Code:", error.code print "Message:", error.message This results in the following out...
{ "language": "en", "url": "https://stackoverflow.com/questions/40586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery and Prototype Selector Madness Both the jQuery and Prototpye JavaScript libraries refuse to allow me to use a variable to select an list item element by index number although they accept a hard coded number. For example, in Prototype this works: $$('li')[5].addClassName('active'); But this will not work no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What kind of problems are state machines good for? What kind of programming problems are state machines most suited for? I have read about parsers being implemented using state machines, but would like to find out about problems that scream out to be implemented as a state machine. A: Stateful protocols such as TCP...
{ "language": "en", "url": "https://stackoverflow.com/questions/40602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: MSI Installer fails without removing a previous install I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Install...
{ "language": "en", "url": "https://stackoverflow.com/questions/40603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Loading JSON with PHP I've been using PHP for too long, but I'm new to JavaScript integration in some places. I'm trying to find the fastest way to pass database information into a page where it can be modified and displayed dynamically in JavaScript. Right now, I'm looking at loading a JSON with PHP echo statemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/40608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is Flex development without FlexBuilder realistic? Is it realistic to try and learn and code a Flex 3 application without purchasing FlexBuilder? Since the SDK and BlazeDS are open source, it seems technically possible to develop without Flex Builder, but how realistic is it. I would like to test out Flex but don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: I just don't get continuations! What are they and what are they good for? I do not have a CS degree and my background is VB6 -> ASP -> ASP.NET/C#. Can anyone explain it in a clear and concise manner? A: A heads up, this example is not concise nor exceptionally clear. This is a demonstration of a powerful applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/40632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Insert current date in Excel template at creation I'm building an excel template (*.xlt) for a user here, and one of the things I want to do is have it insert the current date when a new document is created (ie, when they double-click the file in windows explorer). How do I do this? Update: I should have added that...
{ "language": "en", "url": "https://stackoverflow.com/questions/40637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Check if a record exists in a VB6 collection? I've inherited a large VB6 app at my current workplace. I'm kinda learning VB6 on the job and there are a number of problems I'm having. The major issue at the moment is I can't figure out how to check if a key exists in a Collection object. Can anyone help? A: I've alw...
{ "language": "en", "url": "https://stackoverflow.com/questions/40651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Validating a HUGE XML file I'm trying to find a way to validate a large XML file against an XSD. I saw the question ...best way to validate an XML... but the answers all pointed to using the Xerces library for validation. The only problem is, when I use that library to validate a 180 MB file then I get an OutOfMemor...
{ "language": "en", "url": "https://stackoverflow.com/questions/40663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: *= in Sybase SQL I'm maintaining some code that uses a *= operator in a query to a Sybase database and I can't find documentation on it. Does anyone know what *= does? I assume that it is some sort of a join. select * from a, b where a.id *= b.id I can't figure out how this is different from: select * from a, b wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/40665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I get the full url of the page I am on in C# I need to be able to get at the full URL of the page I am on from a user control. Is it just a matter of concatenating a bunch of Request variables together? If so which ones? Or is there a more simpiler way? A: if you need the full URL as everything from the ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/40680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "175" }
Q: Tips / Resources for building a Google Chrome plugin After test driving Google Chrome for 30 minutes or so, I like it, even if it seems bare-bones at the moment. The obvious way to add a few things I can't live without would be through plugins. Does anyone have any links to resources on how to get started building...
{ "language": "en", "url": "https://stackoverflow.com/questions/40689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Possible to create REST web service with ASP.NET 2.0 Is it possible to create a REST web service using ASP.NET 2.0? The articles and blog entries I am finding all seem to indicate that ASP.NET 3.5 with WCF is required to create REST web services with ASP.NET. If it is possible to create REST web services in ASP.NET...
{ "language": "en", "url": "https://stackoverflow.com/questions/40692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Where can I find and submit bug reports on Google's Chrome browser? It will be important for developers wanting to develop for the chrome browser to be able to review existing bugs (to avoid too much pulling-out of hair), and to add new ones (to improve the thing). Yet I can't seem to find the bug tracking for this...
{ "language": "en", "url": "https://stackoverflow.com/questions/40703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "163" }
Q: Python deployment and /usr/bin/env portability At the beginning of all my executable Python scripts I put the shebang line: #!/usr/bin/env python I'm running these scripts on a system where env python yields a Python 2.2 environment. My scripts quickly fail because I have a manual check for a compatible Python vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/40705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is solving the halting problem easier than people think? Although the general case is undecidable, many people still do solve problems that are equivilent well enough for day to day use. In cohen's phd thesis on computer viruses, he showed how virus scanning is equivilent to the halting problem, yet we have an entir...
{ "language": "en", "url": "https://stackoverflow.com/questions/40716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should you register new extensions with Apple? Do I need to register new extension types with Apple before I release an application that would create them on OS X? A: No, there's no need to register extensions. A: As a follow up, there is a little more information in the FAQs at the Apple Developer Connection (ADC...
{ "language": "en", "url": "https://stackoverflow.com/questions/40719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Server centered vs. client centered architecture For a typical business application, should the focus be on client processing via AJAX i.e. pull the data from the server and process it on the client or would you suggest a more classic ASP.Net approach with the server being responsible for handling most of the UI eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/40723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to give a C# auto-property an initial value? How do you give a C# auto-property an initial value? I either use the constructor, or revert to the old syntax. Using the Constructor: class Person { public Person() { Name = "Initial Name"; } public string Name { get; set; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2275" }
Q: Disable WPF label accelerator key (text underscore is missing) I am setting the .Content value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key. Without changing the underlying string (by replacing all _ with __), is there a way to disable the accelera...
{ "language": "en", "url": "https://stackoverflow.com/questions/40733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: Brownfield vs Greenfield development? This is not a question with a precise answer (strictly speaking the answer would be best captured by a poll, but that functionality is not available), but I am genuinely interested in the answer, so I will ask it anyway. Over the course of your career, how much time have you spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/40735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Generate disk usage graphs/charts with CLI only tools in Linux In this question someone asked for ways to display disk usage in Linux. I'd like to take this one step further down the cli-path... how about a shell script that takes the output from something like a reasonable answer to the previous question and genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/40737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How should I cast in VB.NET? Are all of these equal? Under what circumstances should I choose each over the others? * *var.ToString() *CStr(var) *CType(var, String) *DirectCast(var, String) EDIT: Suggestion from NotMyself… * *TryCast(var, String) A: I prefer the following syntax: Dim number As Integer =...
{ "language": "en", "url": "https://stackoverflow.com/questions/40764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "160" }
Q: Path to Program-Files on remote computer How do I determine the (local-) path for the "Program Files" directory on a remote computer? There does not appear to any version of SHGetFolderPath (or related function) that takes the name of a remote computer as a parameter. I guess I could try to query HKLM\Software\Micro...
{ "language": "en", "url": "https://stackoverflow.com/questions/40769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ticket Tracking Software w/ Good Email Integration and Decent Navigation? I am looking for a simple system to manage inbound emails from a support mailbox for a group with about 3 support people. I've looked at OTRS which seems to have the features that we need. Unfortunately, so far the UI still looks like a conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/40773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change Build Numbering format in Visual Studio I've inherited a .NET application that automatically updates it's version number with each release. The problem, as I see it, is the length and number of digits in the version number. An example of the current version number format is 3.5.3167.26981 which is a mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/40779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I increment a value in a textfile using the regular Windows command-line? I'd like to keep a "compile-counter" for one of my projects. I figured a quick and dirty way to do this would be to keep a text file with a plain number in it, and then simply call upon a small script to increment this each time I compi...
{ "language": "en", "url": "https://stackoverflow.com/questions/40787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Execute a large SQL script (with GO commands) I need to execute a large set of SQL statements (creating a bunch of tables, views and stored procedures) from within a C# program. These statements need to be separated by GO statements, but SqlCommand.ExecuteNonQuery() does not like GO statements. My solution, which I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: Styling HTML helpers ASP.NET MVC If I have an HTML helper like so: Name:<br /> <%=Html.TextBox("txtName",20) %><br /> How do I apply a CSS class to it? Do I have to wrap it in a span? Or do I need to somehow utilize the HtmlAttributes property of the helper? A: I did some research and came across this article that...
{ "language": "en", "url": "https://stackoverflow.com/questions/40816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Cannot create an environment variable in the registry I have a custom installer action that updates the PATH environment, and creates an additional environment variable. Appending a directory to the existing path variable is working fine, but for some reason my attempts to create a new environment variable have been...
{ "language": "en", "url": "https://stackoverflow.com/questions/40840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do F# units of measure work? Has anyone had a chance to dig into how F# Units of Measure work? Is it just type-based chicanery, or are there CLR types hiding underneath that could (potentially) be used from other .net languages? Will it work for any numerical unit, or is it limited to floating point values (whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/40845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to store passwords in Winforms application? I have some code like this in a winforms app I was writing to query a user's mail box Storage Quota. DirectoryEntry mbstore = new DirectoryEntry( @"LDAP://" + strhome, m_serviceaccount, [m_pwd], AuthenticationTypes.Secure); No matter what ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/40853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: IDE for use on a Java-enabled smart phone? Is there an IDE that I can load on a Blackberry, E71, or an iPhone? A: Apple released iPhone SDK for XCode a while back, check out developer.apple.com and Nokia also release their own SDK check out forum.nokia.com But for pure Java Midlet goodness, i would recommend Netbea...
{ "language": "en", "url": "https://stackoverflow.com/questions/40859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Business Application UI Design Basically I'm going to go a bit broad here and ask a few questions to get a bit of a picture of how people are handling UI these days. Lately I've found it pretty easy to do some fancy things with UI design and with WPF specifically we're finding new ways to do layouts that are better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Searching for phone numbers in mysql I have a table which is full of arbitrarily formatted phone numbers, like this 027 123 5644 021 393-5593 (07) 123 456 042123456 I need to search for a phone number in a similarly arbitrary format ( e.g. 07123456 should find the entry (07) 123 456 The way I'd do this in a normal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: vb.net object persisted in database How can I go about storing a vb.net user defined object in a sql database. I am not trying to replicate the properties with columns. I mean something along the lines of converting or encoding my object to a byte array and then storing that in a field in the db. Like when you store...
{ "language": "en", "url": "https://stackoverflow.com/questions/40884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does anyone know of a web based IDE? Does anyone know of a web based IDE (Like VS, Eclipse, IDEA)? Besides ECCO? A: Bespin by Mozilla seems to be the right answer. link text A: ShiftEdit Web Based IDE A: Heroku - Ruby on Rails (RoR) AppJet - Javascript CodeIDE - Multi-Language A: Try PHPAnywhere.net
{ "language": "en", "url": "https://stackoverflow.com/questions/40907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to check if page is postback within reserved function pageLoad on ASP.NET AJAX I'm looking for a way to check within pageLoad() if this method is raised during load event because of a postback/async postback or because of being loaded and access the first time. This is similar to Page.IsPostback property within ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I loop through result objects in Flex? I am having problems manually looping through xml data that is received via an HTTPService call, the xml looks something like this: <DataTable> <Row> <text>foo</text> </Row> <Row> <text>bar</text> </Row> </DataTable> When the webservice ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Saving Perl Windows Environment Keys UPCASES them I have a framework written in Perl that sets a bunch of environment variables to support interprocess (typically it is sub process) communication. We keep a sets of key/value pairs in XML-ish files. We tried to make the key names camel-case somethingLikeThis. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/40923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VB6 NegotiateMenus I have a vb6 form that I've put an ocx control on. Setting NegotiateMenus on the form displays the ocx's control (which is what I want). I then add my own control to the form. When that control has focus, the menu from the ocx disappears. How can I always keep the menu from the ocx displayed, rega...
{ "language": "en", "url": "https://stackoverflow.com/questions/40935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Automatically Start a Download in PHP? What code do you need to add in PHP to automatically have the browser download a file to the local machine when a link is visited? I am specifically thinking of functionality similar to that of download sites that prompt the user to save a file to disk once you click on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Keeping development databases in multiple environments in sync I'm early in development on a web application built in VS2008. I have both a desktop PC (where most of the work gets done) and a laptop (for occasional portability) on which I use AnkhSVN to keep the project code synced. What's the best way to keep my de...
{ "language": "en", "url": "https://stackoverflow.com/questions/40957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I close a parent Form from child form in Windows Forms 2.0? I have a need to close a parent form from within child form from a Windows application. What would be the best way to do this? A: I ran across this blog entry that looks like it will work and it uses the Event Handler concept from D2VIANT Answer htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/40962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Should I use window.onload or script block? I have a javascript function that manipulates the DOM when it is called (adds CSS classes, etc). This is invoked when the user changes some values in a form. When the document is first loading, I want to invoke this function to prepare the initial state (which is simpler...
{ "language": "en", "url": "https://stackoverflow.com/questions/40966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is it possible to build an application for the LinkedIn platform? Do you know if it's possible to build an application for the LinkedIn platform? A: Yes, they have API at http://developer.linkedin.com/index.jspa, allowing access to the profile, connections, messaging and more. A: While LinkedIn has promised a publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to use chrome to login to same site twice with different credentials? Even though chrome runs tabs as different processes it appears to not support this... any ideas or documentation I might have missed? A: Try two different incognito windows. A: If you want to stay logged in for a period of time, the best thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/40992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is Google Chrome's V8 engine really that good? Does anyone have time to take a look at it? I've read a bit and it promises a lot, if it's half what they say, it'll change web Development a lot A: Perhaps a bit anecdotal but comparing runs between Firefox and Chrome showed a significant difference in benchmarks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to Convert a StreamReader into an XMLReader object in .Net 2.0/C# Here's a quick question I've been banging my head against today. I'm trying to convert a .Net dataset into an XML stream, transform it with an xsl file in memory, then output the result to a new XML file. Here's the current solution: stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/40999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: IRAPIStream COM Interface in .NET I'm trying to use the OpenNETCF RAPI class to interact with a windows mobile device using the RAPI.Invoke() method. According to the following article: http://blog.opennetcf.com/ncowburn/2007/07/27/HOWTORetrieveTheDeviceIDFromTheDesktop.aspx You can do the communication in either bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/41009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Smarty integration into the CodeIgniter framework A Little Background Information: I've been looking at a few PHP framework recently, and it came down to two. The Zend Framework or CodeIgniter. I prefer CodeIgniter, because of its simple design. It's very bare bone, and it is just kept simple. The thing I don't lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/41010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do you access two databases in Grails Grails makes it very easy to configure datasources for different environments (development, test, production) in its DataSources.groovy file, but there seems to be no facility for configuring multiple datasources in one environment. What to I do if I need to access several d...
{ "language": "en", "url": "https://stackoverflow.com/questions/41018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: FXRuby FXFileDialog box default directory In FXRuby; how do I set the FXFileDialog to be at the home directory when it opens? A: Here's an exceedingly lazy way to do it: #!/usr/bin/ruby require 'rubygems' require 'fox16' include Fox theApp = FXApp.new theMainWindow = FXMainWindow.new(theApp, "Hello") theButton =...
{ "language": "en", "url": "https://stackoverflow.com/questions/41024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's a good bit of JS or JQuery for horizontally scrolling news ticker I am looking for a little bit of JQuery or JS that allows me to produce a horizontally scrolling "news ticker" list. The produced HTML needs to be standards compliant as well. I have tried liScroll but this has a habit of breaking (some content...
{ "language": "en", "url": "https://stackoverflow.com/questions/41027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Find in Files: Search all code in Team Foundation Server Is there a way to search the latest version of every file in TFS for a specific string or regex? This is probably the only thing I miss from Visual Source Safe... Currently I perform a Get Latest on the entire codebase and use Windows Search, but this gets q...
{ "language": "en", "url": "https://stackoverflow.com/questions/41039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: XML dataset in Crystal Reports I am trying to print a report from within an InfoPath template. So my dataset is an XML DOM that I will load into the Crystal Report at runtime. But how do I define the dataset off which the Crystal Report is developed? Crystal Reports has a great tool to build a dataset from an SQL d...
{ "language": "en", "url": "https://stackoverflow.com/questions/41042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I have polymorphic containers with value semantics in C++? As a general rule, I prefer using value rather than pointer semantics in C++ (ie using vector<Class> instead of vector<Class*>). Usually the slight loss in performance is more than made up for by not having to remember to delete dynamically allocated obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/41045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Where do you store your database connectionstring? I usually store my connectionstring in web.config or in the application settings of my Visual Studio project. The application I'm currently working on makes a lot of trips to the database which means it will look up the connectionstring every time. Should I be putti...
{ "language": "en", "url": "https://stackoverflow.com/questions/41050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best java tools for emacs I'm a long-time emacs user, and I'm now working about 1/2 time in Java. What are the best emacs libraries for * *Debugging Java *Code Completion/Intellisense *Javadoc browsing ? A: For javadoc I found http://javadochelp.sourceforge.net/index.html to be the best. Exuberant ctags is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: .NET Mass Downloader with VS.NET 2005? After downloading all .NET framework symbols and sources using NetMassDownloader, is it possible to setup the VS.NET 2005 for debugging into .NET 2.0 source files? A: It looks like you can download the symbols, though they're not available for browsing.
{ "language": "en", "url": "https://stackoverflow.com/questions/41073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I click a button on a vb6 form? I have a vb6 form with an ocx control on it. The ocx control has a button on it that I want to press from code. How do I do this? I have: Dim b As CommandButton Set b = ocx.GetButton("btnPrint") SendMessage ocx.hwnd, WM_COMMAND, GetWindowLong(b.hwnd, GWL_ID), b.hwnd but it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/41089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some compact algorithms for generating interesting time series data? The question sort of says it all. Whether it's for code testing purposes, or you're modeling a real-world process, or you're trying to impress a loved one, what are some algorithms that folks use to generate interesting time series data? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/41097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to generate a random alpha-numeric string I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string. In my situation it would be used as a unique session/key identifier that would "likely" be unique over 500K+ generation (my needs don't really require anything much more soph...
{ "language": "en", "url": "https://stackoverflow.com/questions/41107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1943" }
Q: How do I install the mysql ruby gem under OS X 10.5.4 Here is the deal. $ gem --version 1.1.0 $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Bulk updating Gem source index for: http://gems.rubyforge.org/ ERROR: could not find mysql locally or in a repository $ sudo gem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: WCF Service Returning "Method Not Allowed" In the process of developing my first WCF service and when I try to use it I get "Method not Allowed" with no other explanation. I've got my interface set up with the ServiceContract and OperationContract: [OperationContract] void FileUpload(UploadedFile file); Al...
{ "language": "en", "url": "https://stackoverflow.com/questions/41155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Fastest way to find common items across multiple lists in C# Given the following: List<List<Option>> optionLists; what would be a quick way to determine the subset of Option objects that appear in all N lists? Equality is determined through some string property such as option1.Value == option2.Value. So we should e...
{ "language": "en", "url": "https://stackoverflow.com/questions/41159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript spinning wait hourglass-type thing I'd like to indicate to the user of a web app that a long-running task is being performed. Once upon a time, this concept would have been communicated to the user by displaying an hourglass. Nowadays, it seems to be an animated spinning circle. (e.g., when you are loadi...
{ "language": "en", "url": "https://stackoverflow.com/questions/41162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I write Firefox add-on that automatically enters proxy passwords? Suppose someone worked for a company that put up an HTTP proxy preventing internet access without password authentication (NTLM, I think). Also suppose that this password rotated on a daily basis, which added very little security, but mostly se...
{ "language": "en", "url": "https://stackoverflow.com/questions/41169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can you use the JavaScript engine in web browsers to process local files? I have a number of users with multi-megabyte files that need to be processed before they can be uploaded. I am trying to find a way to do this without having to install any executable software on their machines. If every machine shipped with,...
{ "language": "en", "url": "https://stackoverflow.com/questions/41179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vista Console App? I'm doing a fair bit of work in Ruby recently, and using ruby script/console Is absolutely critical. However, I'm really disappointed with the default Windows console in Vista, especially in that there's a really annoying bug where moving the cursor back when at the bottom of the screen irregula...
{ "language": "en", "url": "https://stackoverflow.com/questions/41185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Waveform Visualization in Ruby I'm about to start a project that will record and edit audio files, and I'm looking for a good library (preferably Ruby, but will consider anything other than Java or .NET) for on-the-fly visualization of waveforms. Does anybody know where I should start my search? A: That's a lot of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Getting image to stretch a div How can I get an image to stretch the height of a DIV class? Currently it looks like this: However, I would like the DIV to be stretched so the image fits properly, but I do not want to resize the `image. Here is the CSS for the DIV (the grey box): .product1 { width: 100%; pad...
{ "language": "en", "url": "https://stackoverflow.com/questions/41198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Can Ruby convert an acts_as_nested_set to a JSON hash cleanly without recursion? Is there a fast and clean way of returning a JSON hash back from any node in a Ruby on Rails' acts_as_nested_set without using recursion? Here's the recursive solution for reference: class Node < ActiveRecord::Base has_many :products ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript interactive shell with completion For debugging and testing I'm searching for a JavaScript shell with auto completion and if possible object introspection (like ipython). The online JavaScript Shell is really nice, but I'm looking for something local, without the need for an browser. So far I have tested ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Testing HTTPS files with MAMP I am running MAMP locally on my laptop, and I like to test as much as I can locally. Unfortunately, since I work on e-commerce stuff (PHP), I normally force ssl in most of the checkout forms and it just fails on my laptop. Is there any easy configuration that I might be missing to allow...
{ "language": "en", "url": "https://stackoverflow.com/questions/41218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a best .NET algorithm for credit card encryption? The .NET System.Security.Cryptography namespace has a rather bewildering collection of algorithms that I could use for encryption of credit card details. Which is the best? It clearly needs to be secure for a relatively short string. EDIT: I'm in the UK, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/41220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java and SQLite I'm attracted to the neatness that a single file database provides. What driver/connector library is out there to connect and use SQLite with Java. I've discovered a wrapper library, http://www.ch-werner.de/javasqlite, but are there other more prominent projects available? A: I understand you asked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "335" }
Q: Apache serving files that should not be served Today I discovered that my fresh installation of Apache HTTP Server is able to serve files from my C:\uploads\ directory. I have two folders in C:\uploads: * *C:\uploads\templates *C:\uploads\sites Both folders contain testimage.jpg. I found that Apache will ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/41234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am having trouble getting phpBB to authenticate with our Active Directory I am pretty sure that the settings that I am using are correct, so all possible things can be wrong which I should check out so that I can make authentication with our Active Directory work. A: Try test if PHP can connect to active director...
{ "language": "en", "url": "https://stackoverflow.com/questions/41239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic LINQ OrderBy on IEnumerable / IQueryable I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a SQL-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method included only works on IQueryable<T>. Is there any way to get this functionality on IEnumerable...
{ "language": "en", "url": "https://stackoverflow.com/questions/41244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "739" }
Q: New Added Types in .NET Framework 2.0 Service Pack 1 I assumed there were only bug fixes/(no new types) in .NET 2.0 SP1 until I came across few posts which were mentioning DateTimeOffset structure, that was added in .NET 2.0 SP1. Is there a full listing of the newly added types in .NET 2.0 SP1? A: Here's what you'r...
{ "language": "en", "url": "https://stackoverflow.com/questions/41256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Server Merge Replication Schedule We're replicating a database between London and Hong Kong using SQL Server 2005 Merge replication. The replication is set to synchronise every one minute and it works just fine. There is however the option to set the synchronisation to be "Continuous". Is there any real differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/41273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can Mac OS X's Spotlight be configured to ignore certain file types? I've got bunches of auxiliary files that are generated by code and LaTeX documents that I dearly wish would not be suggested by SpotLight as potential search candidates. I'm not looking for example.log, I'm looking for example.tex! So can Spotlight...
{ "language": "en", "url": "https://stackoverflow.com/questions/41279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: File Access Strategy in a Multi-Threaded Environment (Web App) I have a file which is an XML representation of some data that is taken from a Web service and cached locally within a Web Application. The idea being is that this data is very static, but just might change. So I have set it up to cache to a file, and st...
{ "language": "en", "url": "https://stackoverflow.com/questions/41290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Emacs in Windows How do you run Emacs in Windows? What is the best flavor of Emacs to use in Windows, and where can I download it? And where is the .emacs file located? A: Well, I personally really like what I have been using since I started with Emacs, which is GNU Emacs. It looks like it is built for windows too...
{ "language": "en", "url": "https://stackoverflow.com/questions/41300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Find item in WPF ComboBox I know in ASP.NET I can get an item from a DropDownList by using DropDownList1.Items.FindByText Is there a similar method I can use in WPF for a ComboBox? Here's the scenario. I have a table called RestrictionFormat that contains a column called RestrictionType, the type is a foreign key t...
{ "language": "en", "url": "https://stackoverflow.com/questions/41304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Checking if a list is empty with LINQ What's the "best" (taking both speed and readability into account) way to determine if a list is empty? Even if the list is of type IEnumerable<T> and doesn't have a Count property. Right now I'm tossing up between this: if (myList.Count() == 0) { ... } and this: if (!myList.An...
{ "language": "en", "url": "https://stackoverflow.com/questions/41319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: Working on a Visual Studio Project with multiple users? I just wonder what the best approach is to have multiple users work on a Project in Visual Studio 2005 Professional. We got a Solution with multiple Class Libraries, but when everyone opens the solution, we keep getting the "X was modified, Reload/Discard?" pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/41320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to detect the presence of a default recording device in the system? How do I detect if the system has a default recording device installed? I bet this can be done through some calls to the Win32 API, anyone has any experience with this? I'm talking about doing this through code, not by opening the control panel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit testing in Xcode 3.1 I read the question on 'The best way to unit test Objective-C and followed the instructions, but no matter what I do, the Unit tests do not run. Actually the entire program does not run, I get the following message. dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTes...
{ "language": "en", "url": "https://stackoverflow.com/questions/41337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic programming with WCF Has anybody got any kind of experience with dynamic programming using WCF. By dynamic programming I mean runtime consumption of WSDL's. I have found one blog entry/tool: http://blogs.msdn.com/vipulmodi/archive/2006/11/16/dynamic-programming-with-wcf.aspx Has anybody here found good tools...
{ "language": "en", "url": "https://stackoverflow.com/questions/41355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I make my applications scale well? In general, what kinds of design decisions help an application scale well? (Note: Having just learned about Big O Notation, I'm looking to gather more principles of programming here. I've attempted to explain Big O Notation by answering my own question below, but I want the...
{ "language": "en", "url": "https://stackoverflow.com/questions/41367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Asking a Generic Method to Throw Specific Exception Type on FAIL Right, I know I am totally going to look an idiot with this one, but my brain is just not kicking in to gear this morning. I want to have a method where I can say "if it goes bad, come back with this type of Exception", right? For example, something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/41397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I wrap a function with variable length arguments? I am looking to do this in C/C++. I came across Variable Length Arguments, but this suggests a solution with Python and C using libffi. Now, if I want to wrap the printf function with myprintf. I do it like below: void myprintf(char* fmt, ...) { va_list a...
{ "language": "en", "url": "https://stackoverflow.com/questions/41400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Working with Common/Utility Libraries At the company I work for we have a "Utility" project that is referenced by pretty much ever application we build. It's got lots of things like NullHelpers, ConfigSettingHelpers, Common ExtensionMethods etc. The way we work is that when we want to make a new project, we get the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I execute PHP that is stored in a MySQL database? I'm trying to write a page that calls PHP that's stored in a MySQL database. The page that is stored in the MySQL database contains PHP (and HTML) code which I want to run on page load. How could I go about doing this? A: eval() function was covered in other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }