text
stringlengths
8
267k
meta
dict
Q: Using a custom framework The error I'm getting: in /Users/robert/Documents/funWithFrameworks/build/Debug-iphonesimulator/funWithFrameworks.framework/funWithFrameworks, can't link with a main executable Cliff notes: * *trying to include framework *doesn't want to link More detail: I'm developing for a mobile d...
{ "language": "en", "url": "https://stackoverflow.com/questions/78423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Redirect command to input of another in Python I would like to replicate this in python: gvimdiff <(hg cat file.txt) file.txt (hg cat file.txt outputs the most recently committed version of file.txt) I know how to pipe the file to gvimdiff, but it won't accept another file: $ hg cat file.txt | gvimdiff file.txt - T...
{ "language": "en", "url": "https://stackoverflow.com/questions/78431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to create a DOM from a User's input in PHP5? How to create a DOM from a User's input in PHP5? A: I would use the DOM API that has been part of the core since 5. For an XML string $xml, you can build a DOM object with $dom = new DOMDocument(); $dom->loadXML($xml); Manipulate it with the rest of the DOM API, def...
{ "language": "en", "url": "https://stackoverflow.com/questions/78447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python ReportLab use of splitfirst/splitlast I'm trying to use Python with ReportLab 2.2 to create a PDF report. According to the user guide, Special TableStyle Indeces [sic] In any style command the first row index may be set to one of the special strings 'splitlast' or 'splitfirst' to indicate that the style shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/78450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I estimate tasks using function points? What are the steps to estimating using function points? Is there a quick-reference guide of some sort out there? A: I took a conference session on Function Point Analysis a few years back. There is a lot too it. You can check out the Free Function Point Training Manu...
{ "language": "en", "url": "https://stackoverflow.com/questions/78453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Linq to Entity with multiple left outer joins I am trying to understand left outer joins in LINQ to Entity. For example I have the following 3 tables: Company, CompanyProduct, Product The CompanyProduct is linked to its two parent tables, Company and Product. I want to return all of the Company records and the assoc...
{ "language": "en", "url": "https://stackoverflow.com/questions/78468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Date object last modified How can I find out the date a MS SQL Server 2000 object was last modified? I need to get a list of all the views, procs, functions etc that were modified since Aug 15th. In sysObjects I can see the date objects were created but I need to know when they were last altered. NB: this is an SQL...
{ "language": "en", "url": "https://stackoverflow.com/questions/78471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Determine if a string is an integer or a float in ANSI C Using only ANSI C, what is the best way to, with fair certainty, determine if a C style string is either a integer or a real number (i.e float/double)? A: Using sscanf, you can be certain if the string is a float or int or whatever without having to special c...
{ "language": "en", "url": "https://stackoverflow.com/questions/78474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In Delphi, is TDataSet thread safe? I'd like to be able to open a TDataSet asynchronously in its own thread so that the main VCL thread can continue until that's done, and then have the main VCL thread read from that TDataSet afterwards. I've done some experimenting and have gotten into some very weird situations, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/78475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Get a ASP.NET (inc MVC) application talking to a Flex UI over AMF How can I get a ASP.NET (inc MVC) application talking to a Flex UI over AMF. I am wanting to push approx 100+ records around at a time and AMF would appear to be the way forward, but there doesn't appear to be anything obvious. A: If you're pressed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What does $$ mean in the shell? I once read that one way to obtain a unique filename in a shell for temp files was to use a double dollar sign ($$). This does produce a number that varies from time to time... but if you call it repeatedly, it returns the same number. (The solution is to just use the time.) I am c...
{ "language": "en", "url": "https://stackoverflow.com/questions/78493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "160" }
Q: Design patterns or best practices for shell scripts Does anyone know of any resources that talk about best practices or design patterns for shell scripts (sh, bash etc.)? A: Easy: use python instead of shell scripts. You get a near 100 fold increase in readablility, without having to complicate anything you don't n...
{ "language": "en", "url": "https://stackoverflow.com/questions/78497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: OpenID Migration I'm curious about OpenID. While I agree that the idea of unified credentials is great, I have a few reservations. What is to prevent an OpenID provider from going crazy and holding the OpenID accounts they have hostage until you pay $n? If I decide I don't like the provider I'm with this there a way...
{ "language": "en", "url": "https://stackoverflow.com/questions/78523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Deep cloning objects I want to do something like: MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone(); And then make changes to the new object that are not reflected in the original object. I don't often need this functionality, so when it's been necessary, I've resorted to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2575" }
Q: Passing data to Master Page in ASP.NET MVC What is your way of passing data to Master Page (using ASP.NET MVC) without breaking MVC rules? Personally, I prefer to code abstract controller (base controller) or base class which is passed to all views. A: If you prefer your views to have strongly typed view data class...
{ "language": "en", "url": "https://stackoverflow.com/questions/78548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "102" }
Q: Locked SQL Server Data Files I have an SQL Server database where I have the data and log files stored on an external USB drive. I switch the external drive between my main development machine in my office and my laptop when not in my office. I am trying to use sp_detach_db and sp_attach_db when moving between desk...
{ "language": "en", "url": "https://stackoverflow.com/questions/78560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which JavaScript library is recommended for neat UI effects? I need a JavaScript library that supports Ajax as well as help me in making simple and neat animation effects in a website I am working on. Which library do you recommend? A: I would definitely recommend JQuery as the easiest to use and the one which requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create a calendar event on Palm OS I've been googling for a while now, and can't figure out how to create an event in the calendar on a newer Palm OS device. Any ideas on how to do this? I'm guessing that I'll be creating a record in the calendar database, but the format of the data in that record, and which datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/78586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Similar thing to RJS (used in Ruby on Rails) in the Java web app world? In Ruby on Rails, there's RJS templates that help do AJAX by returning javascript code that will be executed in the client browser. How can I do a similar thing in the Java/J2EE world? Is Google Widget Toolkit similar to RJS? What options do I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/78590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a good equivalent to Perl lists in bash? In perl one would simply do the following to store and iterate over a list of names my @fruit = (apple, orange, kiwi); foreach (@fruit) { print $_; } What would the equivalent be in bash? A: Now that the answer I like has been accepted as the correct answer,...
{ "language": "en", "url": "https://stackoverflow.com/questions/78592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Verified channel to server from app on iPhone I'm working on a game for the iPhone and would like it to be able to submit scores back to the server. Simple enough, but I want the scores to be verified to actually come from a game-play. With the (defacto) prohibition on real crypto with the export conditions, what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the fastest way to convert float to int on x86 What is the fastest way you know to convert a floating-point number to an int on an x86 CPU. Preferrably in C or assembly (that can be in-lined in C) for any combination of the following: * *32/64/80-bit float -> 32/64-bit integer I'm looking for some tech...
{ "language": "en", "url": "https://stackoverflow.com/questions/78619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is it stupid to write a large batch processing program entirely in PL/SQL? I'm starting work on a program which is perhaps most naturally described as a batch of calculations on database tables, and will be executed once a month. All input is in Oracle database tables, and all output will be to Oracle database table...
{ "language": "en", "url": "https://stackoverflow.com/questions/78626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A Good 3D mesh library I'm looking for a good 3D Mesh library * *Should be able to read popular formats (OFF, OBJ...) *Should support both half-edge structure and a triangle soup *Should be tolerant to faults and illegal meshes. *Basic geometric operations - intersections, normal calculation, etc' *Most impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/78641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I enable Platform Builder mode in VS2008 After installing VS2008, the platform builder mod, and the WM7 aku, VS usually prompts you, upon first startup, for your default mode. If you make a mistake and select something other than PB7, how do you get back into PB mode? I can get the device window, but it is al...
{ "language": "en", "url": "https://stackoverflow.com/questions/78669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vista UAC, Access Elevation and .Net I'm trying to find out if there is any way to elevate a specific function within an application. For example, I have an app with system and user settings that are stored in the registry, I only need elevation for when the system settings need to be changed. Unfortunately all of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: KVM and Linux wireless bridging? I'm using KVM to run a Windows virtual machine on my Linux box. Networking is accomplished through a tap device, hooked into a bridged Ethernet device, which allows the Windows VM to basically appear like a separate physical computer on my network. This is pretty nice. However, my un...
{ "language": "en", "url": "https://stackoverflow.com/questions/78700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript framework calendar plugin Does any know of a good calendar (not datepicker, but a BIG browsable calendar) plugin for one of the major javascript frameworks. I'd prefer jQuery. A: just published a new open source project (jQuery plugin). sounds exactly like what you want: FullCalendar Hope it works well ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Is XSLT worth it? A while ago, I started on a project where I designed a html-esque XML schema so that authors could write their content (educational course material) in a simplified format which would then be transformed into HTML via XSLT. I played around (struggled) with it for a while and got it to a very basic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "116" }
Q: "foreach values" macro in gcc & cpp I have a 'foreach' macro I use frequently in C++ that works for most STL containers: #define foreach(var, container) \ for(typeof((container).begin()) var = (container).begin(); \ var != (container).end(); \ ++var) (Note that 'typeof' is a gcc extension.) It is used...
{ "language": "en", "url": "https://stackoverflow.com/questions/78717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to test function call order Considering such code: class ToBeTested { public: void doForEach() { for (vector<Contained>::iterator it = m_contained.begin(); it != m_contained.end(); it++) { doOnce(*it); doTwice(*it); doTwice(*it); } } void doOnce(Contained & c) { // do somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/78723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server Express 64 bit prerequisite to include in setup deployment project Where can I obtain the SQL Server Express 64 bit prerequisite to include in a Visual Studio 2008 setup deployment project. The prerequisite that comes with Visual Studio 2008 is 32 bit only. A: Looks like there is no SQL Express x64 ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/78731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some techniques for stored database keys in URL I have read that using database keys in a URL is a bad thing to do. For instance, My table has 3 fields: ID:int, Title:nvarchar(5), Description:Text I want to create a page that displays a record. Something like ... http://server/viewitem.aspx?id=1234 * *...
{ "language": "en", "url": "https://stackoverflow.com/questions/78752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Make a Query in MS Access default to landscape when printed How can I programmatically make a query in MS Access default to landscape when printed, specifically when viewing it as a PivotChart? I'm currently attempting this in MS Access 2003, but would like to see a solution for any version. A: The following functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/78757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a benefit to defining a class inside another class in Python? What I'm talking about here are nested classes. Essentially, I have two classes that I'm modeling. A DownloadManager class and a DownloadThread class. The obvious OOP concept here is composition. However, composition doesn't necessarily mean nest...
{ "language": "en", "url": "https://stackoverflow.com/questions/78799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: SQLite3::BusyException Running a rails site right now using SQLite3. About once every 500 requests or so, I get a ActiveRecord::StatementInvalid (SQLite3::BusyException: database is locked:... What's the way to fix this that would be minimally invasive to my code? I'm using SQLLite at the moment because you can stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/78801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: Refactor Mercilessly or Build One To Throw Away? Where a new system concept or new technology is used, one has to build a system to throw away, for even the best planning is not so omniscient as to get it right the first time. Hence plan to throw one away; you will, anyhow. -- Fred Brooks, The Mythical Man-Mont...
{ "language": "en", "url": "https://stackoverflow.com/questions/78806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Is there an effective tool to convert C# code to Java code? Is there an effective tool to convert C# code to Java code? A: This blog post suggests useful results from Tangible. A: There is a tool from Microsoft to convert java to C#. For the opposite direction take a look here and here. If this doesn't work out, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/78811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: Generate LINQ query from multiple controls I have recently written an application(vb.net) that stores and allows searching for old council plans. Now while the application works well, the other day I was having a look at the routine that I use to generate the SQL string to pass the database and frankly, it was bad....
{ "language": "en", "url": "https://stackoverflow.com/questions/78816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to differentiate MVC Controllers based on HTTP headers Problem My current project requires me to do different things based on different HTTP request headers for nearly every action. Currently, I have one massive Controller (all for the same resource type), and every action method has an ActionName attribute...
{ "language": "en", "url": "https://stackoverflow.com/questions/78823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to multicast using gen_udp in Erlang? How do you use gen_udp in Erlang to do multicasting? I know its in the code, there is just no documentation behind it. Sending out data is obvious and simple. I was wondering on how to add memberships. Not only adding memberships at start-up, but adding memberships while run...
{ "language": "en", "url": "https://stackoverflow.com/questions/78826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: SQL 2005 Snapshot Security In SQL Server 2005, a snapshot of a database can be created that allows read-only access to a database, even when the database is in "recovery pending" mode. One use case for this capability is in creating a reporting database that references a copy of a production database, which is kep...
{ "language": "en", "url": "https://stackoverflow.com/questions/78828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to retrieve a changed value of databound textbox within datagrid ASP.NET 1.1 - I have a DataGrid on an ASPX page that is databound and displays a value within a textbox. The user is able to change this value, then click on a button where the code behind basically iterates through each DataGridItem in the grid, d...
{ "language": "en", "url": "https://stackoverflow.com/questions/78847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to get the color where a mouse was clicked in AS3 I have an image (mx) and i want to get the uint of the pixel that was clicked. Any ideas? A: Here's an even simpler implementation. All you do is take a snapshot of the stage using the draw() method of bitmapData, then use getPixel() on the pixel under the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Publishing vs Copying What is the difference between publishing a website with visual studio and just copying the files over to the server? Is the only difference that the publish files are pre-compiled? A: There is not much difference between "publish", and copying the files. Publish appears in a webapplication. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/78850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mapping a collection of enums with NHibernate Mapping a collection of enums with NHibernate Specifically, using Attributes for the mappings. Currently I have this working mapping the collection as type Int32 and NH seems to take care of it, but it's not exactly ideal. The error I receive is "Unable to determine type...
{ "language": "en", "url": "https://stackoverflow.com/questions/78852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which IDE should I use for developing custom code for InfoPath Forms, VSTA or VSTO? I am new to developing for Office Forms Server / MOSS 2007. I have to choose between designing my web-based forms and writing code for them in Visual Studio Tools for Applications (aka VSTA) or Visual Studio Tools for Office (aka VS...
{ "language": "en", "url": "https://stackoverflow.com/questions/78859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are Java code signing certificates the same as SSL certificates? I'm looking around for a Java code signing certificate so my Java applets don't throw up such scary security warnings. However, all the places I've found offering them charge (in my opinion) way too much, like over USD200 per year. While doing research...
{ "language": "en", "url": "https://stackoverflow.com/questions/78869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: how to embed a true type font within a postscript file I have a cross platform app and for my Linux and Mac versions it generates a postscript file for printing reports and then prints them with CUPS. It works for simple characters and images but I would like to have the ability to embed a true type font directly in...
{ "language": "en", "url": "https://stackoverflow.com/questions/78874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I format text in between xsl:text tags? I have an xslt sheet with some text similar to below: <xsl:text>I am some text, and I want to be bold</xsl:text> I would like some text to be bold, but this doesn't work. <xsl:text>I am some text, and I want to be <strong>bold<strong></xsl:text> The deprecated b tag d...
{ "language": "en", "url": "https://stackoverflow.com/questions/78884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to check for memory leaks in Guile extension modules? I develop an extension module for Guile, written in C. This extension module embeds a Python interpreter. Since this extension module invokes the Python interpreter, I need to verify that it properly manages the memory occupied by Python objects. I found t...
{ "language": "en", "url": "https://stackoverflow.com/questions/78900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I make a component in Joomla display as an article? More specifically I am trying to make the mailto component show within my template; the same way as an article does. By default the mailto component opens in a new window. So far I changed the code so it opens on the same window, but that way the whole temp...
{ "language": "en", "url": "https://stackoverflow.com/questions/78905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross-browser JavaScript debugging I have a few scripts on a site I recently started maintaining. I get those Object Not Found errors in IE6 (which Firefox fails to report in its Error Console?). What's the best way to debug these- any good cross-browser-compatible IDEs, or javascript debugging libraries of some sor...
{ "language": "en", "url": "https://stackoverflow.com/questions/78909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Single most effective practice to prevent arithmetic overflow and underflow What is the single most effective practice to prevent arithmetic overflow and underflow? Some examples that come to mind are: * *testing based on valid input ranges *validation using formal methods *use of invariants *detection at runt...
{ "language": "en", "url": "https://stackoverflow.com/questions/78913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Outlook + Perl + Win32::Ole: How do you select calendar entries sorted by date? Current code opens up an Outlook Calendar database as follow: my $outlook = Win32::OLE->GetActiveObject('Outlook.Application') || Win32::OLE->new('Outlook.Application', 'Quit'); my $namespace = $outlook->GetNamespace("MAPI"); ## only f...
{ "language": "en", "url": "https://stackoverflow.com/questions/78916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When is a MailItem not a MailItem? I have written a message handler function in Outlook's Visual Basic (we're using Outlook 2003 and Exchange Server) to help me sort out incoming email. It is working for me, except sometimes the rule fails and Outlook deactivates it. Then I turn the rule back on and manually run i...
{ "language": "en", "url": "https://stackoverflow.com/questions/78924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I programmatically set the value of a select box element using JavaScript? I have the following HTML <select> element: <select id="leaveCode" name="leaveCode"> <option value="10">Annual Leave</option> <option value="11">Medical Leave</option> <option value="14">Long Service</option> <option value="17"...
{ "language": "en", "url": "https://stackoverflow.com/questions/78932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "586" }
Q: Oracle ASP.net Provider-model objects performance Oracle 11g version of ODP.Net introduces the provider model objects (session state provider, identity provider etc) which lets the application to store these information in an oracle DB without writing custom provider implementation. Has anyone has done any performan...
{ "language": "en", "url": "https://stackoverflow.com/questions/78952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the output cache directive on custom controls with no code in front I've written a control that inherits from the System.Web.UI.WebControls.DropDownList and so I don't have any code in front for this control, but I still want to set the OutputCache directive. I there any way to set this in the C# code, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/78974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for Specific Tag I'm working on a regular expression in a .NET project to get a specific tag. I would like to match the entire DIV tag and its contents: <html> <head><title>Test</title></head> <body> <p>The first paragraph.</p> <div id='super_special'> <p>The Store paragraph</p> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/78978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the best practices for moving between version control systems? There are about 200 projects in cvs and at least 100 projects in vss. Some are inactive code in maintenance mode. Some are legacy apps. Some are old apps no longer in use. About 10% are in active development. The plan is to move everything to pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/78983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Database Authentication for Intranet Applications I am looking for a best practice for End to End Authentication for internal Web Applications to the Database layer. The most common scenario I have seen is to use a single SQL account with the permissions set to what is required by the application. This account is u...
{ "language": "en", "url": "https://stackoverflow.com/questions/78984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Java versions does Griffon support? I want to write a Swing application in Griffon but I am not sure what versions of Java I can support. A: According to the Griffon website, 1.5 or higher. http://groovy.codehaus.org/Installing+Griffon
{ "language": "en", "url": "https://stackoverflow.com/questions/79002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a C++ gdb GUI for Linux? Briefly: Does anyone know of a GUI for gdb that brings it on par or close to the feature set you get in the more recent version of Visual C++? In detail: As someone who has spent a lot of time programming in Windows, one of the larger stumbling blocks I've found whenever I have to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "225" }
Q: Rules about disabling or hiding menu items Have you ever been in a situation where a menu function you really really want to use but can't cause it's disabled or worse gone all together? There is an argument for always leaving menus enabled and then display a message to a user explaining why a menu function can not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieve all nodes in a tree that are children of another one I have a web system which has a classical parent-children menu saved in a database, with fields id as the PK, and parent_id to pointing to the owning menu. (Yes, I know this doesn't scale very well, but that's another topic). So for these records (id-par...
{ "language": "en", "url": "https://stackoverflow.com/questions/79041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OSX 10.5 Leopard Symbol Mangling with $non_lazy_ptr Why does Leopard mangle some symbols with $non_lazy_ptr? More importantly what is the best method to fix undefined symbol errors because a symbol has been mangled with $non_lazy_ptr? A: From: Developer Connection - Indirect Addressing Indirect addressing is the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/79054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: With the passing of Moore's law do you thing that there might be a shift away from Frameworks? Frameworks simplify coding at the cost of speed and obfuscation of the OS. With the passing of Moore's law do you thing that there might be a shift away from Frameworks? I suspect that one of the reasons for Vista not be...
{ "language": "en", "url": "https://stackoverflow.com/questions/79093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET (C#): Getting child windows when you only have a process handle or PID? Kind of a special case problem: * *I start a process with System.Diagnostics.Process.Start(..) *The process opens a splash screen -- this splash screen becomes the main window. *The splash screen closes and the 'real' UI is shown. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/79111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: CUDA global (as in C) dynamic arrays allocated to device memory So, im trying to write some code that utilizes Nvidia's CUDA architecture. I noticed that copying to and from the device was really hurting my overall performance, so now I am trying to move a large amount of data onto the device. As this data is used i...
{ "language": "en", "url": "https://stackoverflow.com/questions/79121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Create Generic method constraining T to an Enum I'm building a function to extend the Enum.Parse concept that * *Allows a default value to be parsed in case that an Enum value is not found *Is case insensitive So I wrote the following: public static T GetEnumFromString<T>(string value, T defaultValue) where T : ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1393" }
Q: Implementing Profile Provider in ASP.NET MVC For the life of me, I cannot get the SqlProfileProvider to work in an MVC project that I'm working on. The first interesting thing that I realized is that Visual Studio does not automatically generate the ProfileCommon proxy class for you. That's not a big deal since it'...
{ "language": "en", "url": "https://stackoverflow.com/questions/79129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: What is the best way to log out another user from their session on macOS? In other words: * *Log on as Bert (who is an administrator) *Using fast user switching, log on as Ernie (Bert remains logged on) *Switch back to Bert *Bert logs Ernie off What is the best way to achieve step 4? A: sudo launchctl booto...
{ "language": "en", "url": "https://stackoverflow.com/questions/79133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I create a container file? I would like to create a file format for my app like Quake, OO, and MS Office 07 have. Basically a uncompressed zip folder, or tar file. I need this to be cross platform (mac and windows). Can I do something via command prompt and bash? A: If you want a single file that is portable...
{ "language": "en", "url": "https://stackoverflow.com/questions/79136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I migrate an SVN repository with history to a new Git repository? I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos Git repository in: git://myserver/path/to/git/r...
{ "language": "en", "url": "https://stackoverflow.com/questions/79165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1603" }
Q: Combining two SyndicationFeeds What's a simple way to combine feed and feed2? I want the items from feed2 to be added to feed. Also I want to avoid duplicates as feed might already have items when a question is tagged with both WPF and Silverlight. Uri feedUri = new Uri("http://stackoverflow.com/feeds/tag/silverligh...
{ "language": "en", "url": "https://stackoverflow.com/questions/79197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best C++ IDE for *nix What is the best C++ IDE for a *nix envirnoment? I have heard the C/C++ module of Eclipse is decent as well as Notepad++ but beyond these two I have no real idea. Any thoughts or comments? A: I just use Emacs. A: Emacs is a fantastic, stay-out-of-my-way-but-be-able-to-do-everything kind of ID...
{ "language": "en", "url": "https://stackoverflow.com/questions/79210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How do you reference .js files located within the View folders from a Page using Asp.net MVC For example, if I have a page located in Views/Home/Index.aspx and a JavaScript file located in Views/Home/Index.js, how do you reference this on the aspx page? The example below doesn't work even though the compiler says th...
{ "language": "en", "url": "https://stackoverflow.com/questions/79215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How often should Oracle database statistics be run? In your experience, how often should Oracle database statistics be run? Our team of developers recently discovered that statistics hadn't been run our production box in over 2 1/2 months. That sounds like a long time to me, but I'm not a DBA. A: What Oracle versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/79229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How do you know what a good index is? When working with tables in Oracle, how do you know when you are setting up a good index versus a bad index? A: Fields that are diverse, highly specific, or unique make good indexes. Such as dates and timestamps, unique incrementing numbers (commonly used as primary keys), per...
{ "language": "en", "url": "https://stackoverflow.com/questions/79241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to enforce all children to override the parent's Clone() method? How to make sure that all derived C++/CLI classes will override the ICloneable::Clone() method of the base class? Do you think I should worry about this? Or this is not a responsibility of the base class' writer? Amendment: Sorry, I forgot to menti...
{ "language": "en", "url": "https://stackoverflow.com/questions/79244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a multitasking operating system? What are the characteristics of a multitasking operating system? What makes it multitasking? Are there non-multitasking operating systems? A: A multi tasking operating systems is: An operating system that gives you the perception of 2 or more tasks/jobs/processes running at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Find style references that don't exist Is there a tool that will find for me all the css classes that I am referencing in my HTML that don't actually exist? ie. if I have <ul class="topnav" /> in my HTML and the topnav class doesn't exist in any of the referenced CSS files. This is similar to SO#33242, which asks ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/79258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to extract files from Windows Vista Complete PC Backup? Is there a program or API I can code against to extract individual files from a Windows Vista Complete PC Backup image? I like the idea of having a complete image to restore from, but hate the idea that I have to make two backups, one for restoring individu...
{ "language": "en", "url": "https://stackoverflow.com/questions/79264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you interpret a query's explain plan? When attempting to understand how a SQL statement is executing, it is sometimes recommended to look at the explain plan. What is the process one should go through in interpreting (making sense) of an explain plan? What should stand out as, "Oh, this is working splendidly?...
{ "language": "en", "url": "https://stackoverflow.com/questions/79266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: How to skip fields using javascript? I have a form like this: <form name="mine"> <input type=text name=one> <input type=text name=two> <input type=text name=three> </form> When user types a value in 'one', I sometimes want to skip the field 'two', depending on what he typed. For example, if user types '...
{ "language": "en", "url": "https://stackoverflow.com/questions/79275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can any database do math? Can databases (MySQL in particular, any SQL--MS, Oracle, Postgres--in general) do mass updates, and figure out on their own what the new value should be? Say for example I've got a database with information about a bunch of computers, and all of these computers have drives of various sizes-...
{ "language": "en", "url": "https://stackoverflow.com/questions/79292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a really good web resource on moving to Moose? The documentation with the module itself is pretty thin, and just tends to point to MOP. A: http://moose.perl.org is a good central resource for all things Moose A: Once you read the docs Dave mentioned, if you have some insight on how it could have been more...
{ "language": "en", "url": "https://stackoverflow.com/questions/79322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I turn a single object into something that is Enumerable in ruby I have a method that can return either a single object or a collection of objects. I want to be able to run object.collect on the result of that method whether or not it is a single object or a collection already. How can i do this? profiles = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is best for desktop widgets (small footprint and pretty graphics)? If I were to want to create a nice looking widget to stay running in the background with a small memory footprint, where would I start building the windows application. It's goal is to keep an updated list of items off of a web service. Similar...
{ "language": "en", "url": "https://stackoverflow.com/questions/79356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I prevent deformation when rotating about the line-of-sight in OpenGL? I've drawn an ellipse in the XZ plane, and set my perspective slightly up on the Y-axis and back on the Z, looking at the center of ellipse from a 45-degree angle, using gluPerspective() to set my viewing frustrum. Unrotated, the major a...
{ "language": "en", "url": "https://stackoverflow.com/questions/79360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Text Searching, AND Ordering I have a query: SELECT * FROM Items WHERE column LIKE '%foo%' OR column LIKE '%bar%' How do I order the results? Let's say I have rows that match 'foo' and rows that match 'bar' but I also have a row with 'foobar'. How do I order the returned rows so that the first results are th...
{ "language": "en", "url": "https://stackoverflow.com/questions/79367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing Websites through a Different Port? I am wanting to access a website from a different port than 80 or 8080. Is this possible? I just want to view the website but through a different port. I do not have a router. I know this can be done because I have a browser that accessing websites through different ports...
{ "language": "en", "url": "https://stackoverflow.com/questions/79381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What is round-robin scheduling? In a multitasking operating system context, sometimes you hear the term round-robin scheduling. What does it refer to? What other kind of scheduling is there? A: Timeslicing is inherent to any round-robin scheduling system in practice, AFAIK. I disagree with InSciTek Jeff's implicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/79389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What are the requirements for an application health monitoring system? What, at a minimum, should an application health-monitoring system do for you (the developer) and/or your boss (the IT Manager) and/or the operations (on-call) staff? What else should it do above the minimum requirements? Is monitoring the 'infra...
{ "language": "en", "url": "https://stackoverflow.com/questions/79415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Visual Studio 2005: Please stop opening my CS files in "Design Mode"! I think it's associating my Web Service's CS files with the related ASMX files. But whatever's happening, I can't double-click to open the CS files - I have to "view Code" or it opens in the designer. Anyone know how to turn off this automatic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/79434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Which Rails plug in is best for role based permissions? (Please provide one nomination per answer) I need to add role based permissions to my Rails application, and am wondering what the best plugins out there are to look into. I am currently using the RESTful authentication plugin to handle user authentication. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/79438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Beats per minute from real-time audio input I'd like to write a simple C# application to monitor the line-in audio and give me the current (well, the rolling average) beats per minute. I've seen this gamedev article, and that was absolutely no help. I went through and tried to implement what he was doing but it just...
{ "language": "en", "url": "https://stackoverflow.com/questions/79445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: .NET 3.5 SP1 changes for ASP.NET I would like to test out the new SP1 in my development server and then install it for my production server. But I wonder what it had enhance to the ASP.NET portion specifically as that is where my concerns are. I read the docs found in the SP1 Download page but it seens a bit too ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/79451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing GUI code: should I use a mocking library? Recently I've been experimenting with TDD while developing a GUI application in Python. I find it very reassuring to have tests that verify the functionality of my code, but it's been tricky to follow some of the recommened practices of TDD. Namely, writing tests fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/79454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }