text
string
meta
dict
Q: Solr Filter for Logging/Analysing Queries I'm using Solr and wish to be able to log queries/tokens to a database for analytics for both marketing and suggested search functionality. I'm guessing that a Lucene filter would be a good way of doing this, maybe putting a filter in the query filter chain for a given field...
{ "language": "en", "url": "https://stackoverflow.com/questions/219024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I make iPhone SpringBoard show two or more icons for one application bundle? It seems like Info.plist file has an ability to declare different roles for the same application bundle through the UIRoleInfo key. SpringBoard can recognize these roles after installing an app and may display separate icons for each...
{ "language": "en", "url": "https://stackoverflow.com/questions/219037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Help with a WHERE on a LEFT JOIN SQL Query I'm trying to construct a query that will include a column indicating whether or not a user has downloaded a document. I have a table called HasDownloaded with the following columns: id, documentID, memberID. Finding out whether a user has downloaded a specific document is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: .NET 2.0 or 3.5? Our clients use a vb6 version of our software. We are upgrading them to a .NET application written in C#... Is there less bulk using .net 2.0 than .net 3.5? My definition of less bulk would be: Smaller size, smaller installation time, etc. Most of them probably already have 2.0 anyway. I only ask be...
{ "language": "en", "url": "https://stackoverflow.com/questions/219051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Java method never called while using JSON RPC in Struts2 I'm trying to get some code working that a previous developer has written. Yep, he now left the company. :-( I have a JSON RPC call being made from the JS code. The JS all runs fine and the callback method gets an object back (not an error object). But the met...
{ "language": "en", "url": "https://stackoverflow.com/questions/219055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I install package in ActivePerl without Internet connection? In ActivePerl, "ppm" installs a package from the Internet, "ppm install x.ppd" installs from a ppd file, but most CPAN packages are distributed as .tar.gz How do you supply modules to a machine running ActivePerl that doesn't have an Internet conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/219079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can anyone suggest an abstract base class to prevent XSRF in .NET 2.0+ I'm looking for an abstract base class or master page solution that will prevent anyone from doing XSRF using both a token and ttl. Can anyone point me in the right direction? Edit: The ideal solution will leverage the cookie that the default m...
{ "language": "en", "url": "https://stackoverflow.com/questions/219089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: New DOMDocument() in PHP 4 I've make an application in PHP that uses DOMDocument() in PHP 5. The problem is that my server uses PHP 4 and DOM object is not recognized. What can I do? Can I download any kind of software and put it in my server and use include? Which one? Thanks a lot. A: You can use the DOM XML ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/219093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set the Taskbar Grouping Icon When my application opens too many windows the taskbar groups them into one button. Each window has its own icon, but the grouping icon is the default "unknown"-kind icon. How can I set the grouping icon? A: The taskbar group icon can be set in the registry on a per application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: HTML color wheel control for website Is there an HTML color wheel that I can throw in my site that will return a value of the color when a user clicks on it? would make one myself but don't want to "re-invent the wheel" HILARIOUS(punny?) A: SEE What's a good JavaScript plugin color picker?
{ "language": "en", "url": "https://stackoverflow.com/questions/219097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to check whether two dates are the same calendar day in Groovy? Obviously I could create a Calendar object with the date and use get(DAY) on it, but knowing Groovy, I would guess there is an easier, quicker way I just don't know about? Answer (date1..date2).size() == 1 // true if two dates are on same calen...
{ "language": "en", "url": "https://stackoverflow.com/questions/219109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How Python web frameworks, WSGI and CGI fit together I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web programming wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/219110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "155" }
Q: Protected Mode Keyboard Access on x86 Assembly I'm working on keyboard input for a very basic kernel that I'm developing and I'm completely stuck. I can't seem to find any information online that can show me the information I need to know. My kernel is running in protected mode right now, so I can't use the real mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/219120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I create my own custom group in mediawiki? I have been reading carefully through the MediaWiki documentation but I have not been able to find out how to create new groups. When I look at Special:Userrights, I see only 3 groups : Bots, Sysops, Bureaucrats I would like to create my own custom groups, so I can u...
{ "language": "en", "url": "https://stackoverflow.com/questions/219135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: get command output in pipe, C for Linux I need to run a Linux CLI command and get its stdout output from C. I can use pipe() to create a pipe, then fork/exec, redirecting child's stdout descriptor into the pipe before calling exec(), and reading from the pipe in parent. Plus I'll need to wait on the child. Is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Polymorphic functors in std::for_each I'm trying to use stl algorithm for_each without proliferating templates throughout my code. std::for_each wants to instantiate MyFunctor class by value, but it can't since its abstract. I've created a functor adapter class which passes a pointer around and then derefernces it w...
{ "language": "en", "url": "https://stackoverflow.com/questions/219139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get XP to automatically "press" the default button on a dialog box Some time ago, I came across an online article that described how to configure Windows XP to automatically accept the default option on a dialog box. As I (vaguely) recall, it was some sort of oddball registry configuration that did this, and it amaz...
{ "language": "en", "url": "https://stackoverflow.com/questions/219146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IIS hosted WCF-service + Windows auth in IIS + TransportCredentialOnly/Windows auth in basicHttpBinding I want to create a WCF-service hosted in IIS6 and disable anonymous authentication in IIS. And don't use SSL. So only way I have is to use basicHttpBinging with TransportCredentialOnly, itsn't it? I create a virtu...
{ "language": "en", "url": "https://stackoverflow.com/questions/219151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: NAnt with DB integration tests, and eventually Continuous Integration I've been exploring different strategies for running integration tests within some Nant build scripts. Typically a number of different scripts are chained in one monolithic build that has separate targets: staging (build a staging version, like bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/219156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generics in legacy code We've got a fairly large amount of code that just made the jump to Java 5. We've been using generics in those components targeted at being released in the Java 5 version, but the remaining code is, of course, full of raw types. I've set the compiler to generate an error for raw types and star...
{ "language": "en", "url": "https://stackoverflow.com/questions/219164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Literate programming Literate programming is a way of developing software where documentation comes first, then the coding. One writes the documentation of a code snippet, and then writes the implementation of the snippet. The visual appearance of the software source code would be a plain document like word, with co...
{ "language": "en", "url": "https://stackoverflow.com/questions/219168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Missing Visual Studio features when running in 64-bit mode Can someone tell me why I don't have all of the dev studio windows available to me when I develop on a 64-bit platform? I upgraded my dev desktop box to server 2003 x64 to match our deployment platform. Since then (I'm using VS2005) I've noticed that sever...
{ "language": "en", "url": "https://stackoverflow.com/questions/219187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you change the colors of the text when doing a Schema Compare in Visual Studio 2008 Database Edition? I am trying to find out how to modify the Colors/Fonts used in the Schema Compare "Object Definitions" window that appears after a comparison is done between two databases. The color scheme I have is unreadab...
{ "language": "en", "url": "https://stackoverflow.com/questions/219200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I use Tkinter with Python on Windows Vista? I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: import Tkinter, it says the side-by-side configuration has errors. I've tried tinkering with the Visual Studio runtime, with no good results. Any ideas on how to resolve this...
{ "language": "en", "url": "https://stackoverflow.com/questions/219215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How would you approach this data processing task? I have a file containing 250 million website URLs, each with an IP address, page title, country name, server banner (e.g. "Apache"), response time (in ms), number of images and so on. At the moment, these records are in a 25gb flat file. I'm interested in generating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to change a span to look like a pre with CSS? Is it possible to to change a <span> tag (or <div>) to preformat its contents like a <pre> tag would using only CSS? A: See the white-space CSS property. .like-pre { white-space: pre; } A: Specifically, the property you're looking at is: white-space: pre http://w...
{ "language": "en", "url": "https://stackoverflow.com/questions/219219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "137" }
Q: How do I use Master theorem to describe recursion? Recently I have been studying recursion; how to write it, analyze it, etc. I have thought for a while that recurrence and recursion were the same thing, but some problems on recent homework assignments and quizzes have me thinking there are slight differences, that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Printing with the System.WIndows.Forms.WebBrowser control I'm using th WebBrowser control in the .net 2.0 framework. Is it possible to change the printing behavior so it always prints to the default printer, without showing any dialog to the user? This is for a kiosk so there will always be a printer directly conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/219234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2008 doesn't show my XML comments in JS files function Submit_click() { if (!bValidateFields()) return; } function bValidateFields() { /// <summary>Validation rules</summary> /// <returns>Boolean</returns> ... } So, when I type the call to my bValidateFields() function intellisence in Visual St...
{ "language": "en", "url": "https://stackoverflow.com/questions/219243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting a String to HEX in SQL I'm looking for a way to transform a genuine string into it's hexadecimal value in SQL. I'm looking something that is Informix-friendly but I would obviously prefer something database-neutral Here is the select I am using now: SELECT SomeStringColumn from SomeTable Here is the sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/219245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Best practices for source control and bug fixes If we need to issue a bug patch that does not include current development that has been committed, or any changes from their current version, what should be done to make the process safer and with lower overhead? We are currently using Subversion for our source contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/219249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is implementing java.io.Serializable even in simple POJO Java classes a best practice? In general, is it a best practice to have simple POJO Java classes implement java.io.Serializable? A: Only if you need to be able to serialise them. It's not worth the effort otherwise. A: It depends more on the needs. In the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/219276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you manage your Javascript files? Nowadays, we have tons of Javascript libraries per page in addition to the Javascript files we write ourselves. How do you manage them all? How do you minify them in an organized way? A: Organization All of my scripts are maintained in a directory structure that I follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/219285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Implementing Team Foundation Server with a small development team We have a small 3 developer team that is currently using Subversion for our source control. We expect the team to group to 8 members within the next 6 to 12 months. We are considering changing our source control to either TFS or Mercurial for improved...
{ "language": "en", "url": "https://stackoverflow.com/questions/219296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Linking against a .dll version older than the installed one in Visual Studio 2005 Please excuse the large amount of background info, but this is a fairly specific question. I have a Visual Studio 2005 project that creates a .dll file. This project depends on a .dll from another company, "BigCorp", which gets install...
{ "language": "en", "url": "https://stackoverflow.com/questions/219305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use javascript timing to control on mouse stop and on mouse move events So I have a control (a map) on an aspx page. I want to write some javascript to onload setup the following: * *when mouse stops on control = some code *when mouse moves = some code (but only if the move is longer than 250 mil sec)...
{ "language": "en", "url": "https://stackoverflow.com/questions/219322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: PHP/MySQL login works on one server (PHP 5.0.2) but does not work on the other (PHP 5.1.6) Here is a stripped down version of what I use to authenticate users, it works fine on my PHP v5.0.2/MySQL 4.0.21 server, but fails on my PHP v5.1.6/MySQL v5.0.45 server. In the code below, should I be aware of anything that mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/219323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS 2005 Setup Projects: Deploy Many Projects With One MSI I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/219327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: django,fastcgi: how to manage a long running process? I have inherited a django+fastcgi application which needs to be modified to perform a lengthy computation (up to half an hour or more). What I want to do is run the computation in the background and return a "your job has been started" -type response. While the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/219329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: JQuery Rounded Corners in Internet Explorer (IE) messed up I'm using JQuery's jquery.corner.js to create rounded corners on some td tags, and they look fine in IE EXCEPT * *if you open a new tab and then come back to the page *if you go to another tab, click a link, then come back to the page *if you hover ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/219338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Get UID for message from GMail using javax.mail with IMAP I'm using javax.mail to retrieve mails from GMail using IMAP. I want to also obtain the tags being applied to each mail, so I'm iterating over all the folders in the store (which actually are tags) and downloading mails for each other. I was using the method ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WinForms: What happens to the values stored in .resx files? What happens to the name/value pairs stored inside a form's resx file? Are they compiled into the binary when I compile my project? For my particular project, I would like the ability to edit one of these values manually without recompiling (app.config-sty...
{ "language": "en", "url": "https://stackoverflow.com/questions/219344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does anyone have Emacs style keybindings setup in Visual Studio 2008? I'm looking for a .vssettings file that has emacs keybindings in it so that a member of our development team can use them. Anyone already have one setup they can share?
{ "language": "en", "url": "https://stackoverflow.com/questions/219345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Rake db:migration aborted I've got a unfinished project that a developer just didn't finish and didn't leave any documentation about the installation process. I've downloaded the production directory to my windows machine (running InstantRails 2), I created the databases as required in the database.yml and I tried t...
{ "language": "en", "url": "https://stackoverflow.com/questions/219360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where to put a simple Class in an MVC project? Ok, this is possibly borderline-subjective, but I wonder where one would put a simple class that does something within an ASP.net MVC project? I mean a class like the Base36 De/Encoder, that is neither Model nor Controller. Should this always go into a separate Class Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/219364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: howto add a transparent client side proxy to a remote object I got a little problem I can't figure out. I have a server side MarshalByRefObject that I'm trying to wrap a transparent proxy around on the client side. Here's the setup: public class ClientProgram { public static void Main( string[] args ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I obtain the coordinates of a selected item container in a WPF ListView I want to display some WPF elements near to the selected item of a ListView. How can I obtain the coordinates (screen or relative) of the selected ListViewItem? <ListView x:Name="TechSchoolListView" ClipToBounds="False" Wid...
{ "language": "en", "url": "https://stackoverflow.com/questions/219369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you upgrade a web site that uses #include files to a Web Application I've recently inherited a fairly large web site. The project is set up as a web site in Visual studio, and not a Web Application. For a number of reasons, I would like to convert it to a web application. I started converting the application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The SQL Server DTS Connection2 object has an undocumented property, UseDSL. What does it do? I'm building a wrapper for DTS around the Microsoft.SqlServer.DTSPkg80 (the RCW generated from DTSPKG80.DLL). Inside the RCW, on the Connection2 interface, the property "UseDSL" is defined. This property is not in the SQL S...
{ "language": "en", "url": "https://stackoverflow.com/questions/219375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to exclude files from Visual Studio compile? I'm in the process of refactoring a project. I've got an entire subfolder which is known to be broken. Is there any declarative way to exclude that folder from the compile temporarily while I test the refactoring thus far? I realize I could delete the folder, but I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/219381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Profile User DB error in WebPart EDIT: Modified title and added update. UPDATE: We no longer believe this is a 64bit vs 32bit problem. We have found that the only people that were seeing this, were people that were set in the farm policy as "full control." (Not acting as System Account) Once we tested regular user...
{ "language": "en", "url": "https://stackoverflow.com/questions/219382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .Net object validation frameworks I'm working on an ASP.NET project using MVP architecture. We would like to use an object validation framework in the domain, but are not that familiar with available frameworks other than the Castle.Components.Validator namespace. Does anyone have experience with any other light-...
{ "language": "en", "url": "https://stackoverflow.com/questions/219385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: refactoring stored procedure I have a stored procedure currently executing a complicated fetch that is frequently timing out when used. The proposed solution in my department has been to simply increase the timeout time length; which I don't really want to do. I'd like to refactor this sproc, but because it's so com...
{ "language": "en", "url": "https://stackoverflow.com/questions/219395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to resize all images in a block of HTML to a specific width and cache the results I'm writing a mobile content adaptation plugin for a bespoke CMS in PHP. The CMS contains <img/> links to images with absolute URLs which are all 400 pixels wide and vary in height. I'd like to parse the HTML (which is stored in My...
{ "language": "en", "url": "https://stackoverflow.com/questions/219396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an easy way to do a complete migration from CVS to StarTeam? I'm currently maintaining a CVS repository for source control. There is a push afoot to move to StarTeam. It has already been purchased and is a corporate standard for most projects. I was told by the corporate owners of the StarTeam servers th...
{ "language": "en", "url": "https://stackoverflow.com/questions/219401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What linux shell command returns a part of a string? I want to find a linux command that can return a part of the string. In most programming languages, it's the substr() function. Does bash have any command that can be used for this purpose. I want to be able to do something like this... substr "abcdefg" 2 3 - prin...
{ "language": "en", "url": "https://stackoverflow.com/questions/219402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: How to plan test time Say suppose 10 developers have taken 6 months to develop some application. As a project manager how much time should I spare in my plans for testing? 6 months of effort includes unit testing. I am specific about functional test and user acceptance test. Is there any ratio or relationship betwee...
{ "language": "en", "url": "https://stackoverflow.com/questions/219408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the basics one needs to know when porting an application to Citrix? I've developed an application (C#) that currently sits on a a number of workstations. Each workstation accesses the same database (MS-SQL). I've been asked to port this to Citrix. Can anyone offer insight into documentation or suggestion...
{ "language": "en", "url": "https://stackoverflow.com/questions/219411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to exclude ASP.NET web site code-behind files from compile? I am refactoring a stack of ASP.NET pages. I'd like to compile and test the ones I've completed. However, Visual Studio won't let me run the Web Site with compile errors on the non-refactored pages. How can I temporarily exclude them without removing...
{ "language": "en", "url": "https://stackoverflow.com/questions/219417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How would you improve this algorithm? (c string reversal) Working through some programming interview challenges I found online, I had to write an algorithm to reverse a const char * and return a pointer to a new char *. I think I have it, but to make it work properly I had to do some wonky stuff - basically having t...
{ "language": "en", "url": "https://stackoverflow.com/questions/219420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can I make a folder writeable in Medium trust? My web app writes to several folders (logs, uploads, etc), and I've always set these permissions manually through my hosting provider. I'd like to create a setup script that performs this on new installations. Is this possible under Medium trust? I can't even call File...
{ "language": "en", "url": "https://stackoverflow.com/questions/219422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Interface Contract, Class Object? Is contract to interface as object is to class? What is the need to differentiate identical things like this, from the code to the executing code? I sort of get the idea behind naming a class a class and the instantiated executing class an object, but overall, is that the only reas...
{ "language": "en", "url": "https://stackoverflow.com/questions/219425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: how to close connection/datareader when using SqlDataSource or ObjectDataSource during beta testing we discovered connection pooling error messages . Therefore I have been going through the code and closing down the SqlDataReader objects wherever they have been left unclosed. What I need to know is how to close a da...
{ "language": "en", "url": "https://stackoverflow.com/questions/219431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Query to list all stored procedures What query can return the names of all the stored procedures in a SQL Server database If the query could exclude system stored procedures, that would be even more helpful. A: Select All Stored Procedures and Views select name,type,type_desc from sys.objects where type in ('V','P'...
{ "language": "en", "url": "https://stackoverflow.com/questions/219434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "391" }
Q: Possible to combine calls in WCF? I have two methods that I need to call in my WCF application from the client. Authenticate(username, password) GetUser(username) Is it possible to combine these calls to avoid so many calls being sent back/forth? A: There are a few ways to handle this type of thing. First, you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET Repeater ItemDataBound happening AFTER PreRender event? I have a repeater control on an ASP.NET 2.0 web form. As I understanding it, all of the page's data-bound controls fire their binding events somewhere in between the Page_Load and the Page_PreRender events. However, my repeater's ItemDataBound event a...
{ "language": "en", "url": "https://stackoverflow.com/questions/219467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to view the history of a line in SVN? Possible Duplicate: History of changes to a particular line of code in Subversion? Using SVN and/or Tortoise SVN (or any other SVN tool, really), is it possible to view the history for a specific line of a file? Recently I've had several occurrences of coming a...
{ "language": "en", "url": "https://stackoverflow.com/questions/219470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Generating unique codes in PHP/MySQL? I'm working with a client that needs to generate millions of the alphanumeric codes used in magazine scratch-off cards, bottlecap prizes, and so on. They have to be short enough to print on a cap, they want to make sure that ambiguous characters like 1 and I, 0 and O, etc. are n...
{ "language": "en", "url": "https://stackoverflow.com/questions/219475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Using PHP to Access a User's Webcam I'd like to allow users to record videos directly from their webcam. I haven't done much work with PHP but am stuck with it for this project. We currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam. How would you recomme...
{ "language": "en", "url": "https://stackoverflow.com/questions/219476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best Approach to Brownfield Database Development in SQL Server 2000/2005 I've recently taken over development on a SQL Server 2000 database that needs some help. We're planning on upgrading it to SQL Server 2005 soon. This database has no audit fields on the tables (CreatedBy, CreatedDate, etc.), no foreign keys, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle Text: How to sanitize user input If anyone has experience using Oracle text (CTXSYS.CONTEXT), I'm wondering how to handle user input when the user wants to search for names that may contain an apostrophe. Escaping the ' seems to work in some cases, but not for 's at the end of the word - s is in the list of s...
{ "language": "en", "url": "https://stackoverflow.com/questions/219482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the C# method/syntax for converting an array to a simple string? What I'm looking for is a basic equivalent of JavaScript's Array::join() whereby you pass in a separator character and uses that in its return string of all the subscripts. I could certainly write my own function using a StringBuilder or whatno...
{ "language": "en", "url": "https://stackoverflow.com/questions/219519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it really a best practice to use jstl out tag? I remember working on a project with a group of developers and they always wanted static html text to be inside of an out tag (<c:out value="words" />). I don't remember why this was the case. Is this really a best practice when building jsp pages? What are the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/219525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cross-Platform Way of Creating Safari Webarchives I've been searching around and haven't found any reference to tools that can create Safari's webarchive format. Does anyone have pointers to code for creating this format, or at least a format reference documentation? Ideally I'd like to build a tool that takes a dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/219530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I create a Google Sitemap for my ASP.NET website? I'm using DotNetNuke, so the whole site is basically dynamically driven and I'm clueless to how to go about creating a Google sitemap for it. Any help will be greatly appreciated. A: DotNetNuke out of the box will create it for you if you are working with DN...
{ "language": "en", "url": "https://stackoverflow.com/questions/219532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should you collect the young generation first in a full garbage collection? I'm writing a program that contains a generational garbage collector. There are just two generations. What I wonder is: When doing a full collection, do I gain anything (performance-wise) by first collecting the younger objects, promoting th...
{ "language": "en", "url": "https://stackoverflow.com/questions/219540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: I’m stunned: weird problem with python and sockets + threads I have a python script that is a http-server: http://paste2.org/p/89701, when benchmarking it against ApacheBench (ab) with a concurrency level (-c switch) that is lower then or equal to the value i specified in the socket.listen()-call in the sourcecode e...
{ "language": "en", "url": "https://stackoverflow.com/questions/219547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Automated testing (non-UI) for existing Flash component I build and maintain a set of Flash components that is distributed to publishers and allows them to integrate with our system. Currently the component has no UI and simply contains compiled code for querying our system servers, parsing the response, and modifyi...
{ "language": "en", "url": "https://stackoverflow.com/questions/219549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What SQL query or view will show "dynamic columns" I have a table of data, and I allow people to add meta data to that table. I give them an interface that allows them to treat it as though they're adding extra columns to the table their data is stored in, but I'm actually storing the data in another table. Data Tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/219559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are ColdFusion objects passed by reference or by value? Are ColdFusion objects (i.e. CFCs invoked via cfobject) normally passed by reference or by value (copied in memory)? And is it possible to force ColdFusion to pass an object in either manner? A: FWIW, arrays are also passed by reference in the Railo CFML engi...
{ "language": "en", "url": "https://stackoverflow.com/questions/219564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: CMS or Re-Uploading pages I have a site I'm working on that has an event page. The owner wants to be able to edit the event page weekly. Would it be easier to teach the site owner how to edit this one page and upload it or use a CMS just for this one page?? Apart from a contact form that posts to an email addy, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/219566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best database field type for a URL I need to store a url in a MySQL table. What's the best practice for defining a field that will hold a URL with an undetermined length? A: Most browsers will let you put very large amounts of data in a URL and thus lots of things end up creating very large URLs so if you are talki...
{ "language": "en", "url": "https://stackoverflow.com/questions/219569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "414" }
Q: How do I calculate the SIZE of stored procedures in SQL Server 2005? I was asked for a comprehensive breakdown on space used within a specific database. I know I can use sys.dm_db_partition_stats in SQL Server 2005 to figure out how much space each table in a database is using, but is there any way to determine the...
{ "language": "en", "url": "https://stackoverflow.com/questions/219570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Am I destined to develop in XML? Based on what I've seen on Oslo, declarative XML will have a key role. Can I expect to be mucking around a lot of designer generated XML to create real world applications? Just know I haven't researched this. I would just appreaciate your perspective if you have examined the subject....
{ "language": "en", "url": "https://stackoverflow.com/questions/219572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Large Inner classes and private variables One thing I've run into a few times is a service class (like a JBoss service) that has gotten overly large due to helper inner classes. I've yet to find a good way to break the class out. These helpers are usually threads. Here's an example: /** Asset service keeps track of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can tooltips be added to a vb.net winforms datagrid row(s)? I'm looking to add a tooltip to each row in a bound datagrid in vb.net winforms. How can this be done? A: I haven't tried this myself but I would give it a shot: System.Windows.Forms.ToolTip formToolTip = new System.Windows.Forms.ToolTip(); formToolTi...
{ "language": "en", "url": "https://stackoverflow.com/questions/219581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Including all the jars in a directory within the Java classpath Is there a way to include all the jar files within a directory in the classpath? I'm trying java -classpath lib/*.jar:. my.package.Program and it is not able to find class files that are certainly in those jars. Do I need to add each jar file to the cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/219585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1156" }
Q: What is the best way to localize an IEnumerable? What is the best way to localize a collection (IEnumerable)? From the BL I retrieve a collection of entities which still need to localized, I figured I write a method which extends the IEnumerable and returns the localized list. How can i get the code underneath work...
{ "language": "en", "url": "https://stackoverflow.com/questions/219590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET - What's the best way to implement a "catch all exceptions handler" I'm wondering what the best way is to have a "if all else fails catch it". I mean, you're handling as much exceptions as possible in your application, but still there are bound to be bugs, so I need to have something that catches all unhandled ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: How to write a MSTest unit test that listens for an event to be raised from another thread? I’m writing a test that expects to receive an event from an object that it is calling. Specifically, I am calling out to an object that connects to an AIX machine via SSH (using the open source Granados project), then disconn...
{ "language": "en", "url": "https://stackoverflow.com/questions/219598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting a paragraph to hex notatation, then back to string How would you convert a parapraph to hex notation, and then back again into its original string form? (C#) A side note: would putting the string into hex format shrink it the most w/o getting into hardcore shrinking algo's? A: What exactly do you mean b...
{ "language": "en", "url": "https://stackoverflow.com/questions/219604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extend No-Constructor class In C#, is it possible to extend a class that has no constructors? Maybe I'm thinking about this incorrectly and just need a kick in the crotch. I have a Silverlight class that extends System.Windows.Media.Transform, With the official release of Silverlight 2, Transform now has no constr...
{ "language": "en", "url": "https://stackoverflow.com/questions/219618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Device Information from NSEvent/CGEvent My application uses an event tap to capture keyboard events, and I'd like to know which device (i.e. which keyboard) each event comes from. Is there an sort of device-identifying information along with the CGEvent that a tap gets? I've looked at NSEvent's methods, and the vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/219623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encapsulating Java Preferences API I used to have a custom preferences class for my applications. For my next hobby project i wanted to switch to the Preferences API. But the put and get functions require a default value and i do not want to spread default values all over the source files. Even though my project is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Unexpected variable substitution behavior in Windows .bat file The code is, set VAR=before if "%VAR%" == "before" ( set VAR=after; echo %VAR% ) What will the preceding Windows .bat file code segment display? Why? (i.e. why doesn't it behave as you might first think)? A: Obviously, you'd think the output w...
{ "language": "en", "url": "https://stackoverflow.com/questions/219637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you develop native iPhone apps in Ruby? Hi I'm looking into iPhone development, and Objective-C is not be my preferred language. As far as I can see at this moment Ruby cannot be used to talk to Cocoa Touch at the moment on the iPhone. So my question is, am I wrong? Can I use Ruby on the iPhone to develop Cocoa ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: SharePoint and Log4Net I'm looking for best practices to integrate log4net to SharePoint for web request, feature activation and all timer stuff. I have several subprojects in my farm, and I would like to have only one Log4Net.config file. [Edit] Not only I need to configure log4net for the web application, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/219668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best way to connect to Interbase 7.1 using .NET C# Could someone please explain the best way to connect to an Interbase 7.1 database using .NET/C#? The application will be installed on many end user computers so the less "add-ons" that I will have to package with my application the better. A: CodeGear offers a free...
{ "language": "en", "url": "https://stackoverflow.com/questions/219684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Context menu in Outlook 2007 for links to open in my choice of browsers I want to have the context menu of links provide me an option to open in different browsers, rather than open in my default browser. For instance, Open in --> * *IE *Firefox *Opera *Chrome *Safari *etc. A: Nevermind. It looks like I...
{ "language": "en", "url": "https://stackoverflow.com/questions/219691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the uses for Cross Join? A cross join performs a cartesian product on the tuples of the two sets. SELECT * FROM Table1 CROSS JOIN Table2 Which circumstances render such an SQL operation particularly useful? A: Takes something like a digits table, which has ten rows for the digits 0-9. You can use cross j...
{ "language": "en", "url": "https://stackoverflow.com/questions/219716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }