text
stringlengths
8
267k
meta
dict
Q: Regular Expressions in unicode strings I have some unicode text that I want to clean up using regular expressions. For example I have cases where u'(2'. This exists because for formatting reasons the closing paren ends up in an adjacent html cell. My initial solution to this problem was to look ahead at the conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/360600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What GUI toolkit looks best for a native LAF for Python in Windows and Linux? I need to decide on a GUI/Widget toolkit to use with Python for a new project. The target platforms will be Linux with KDE and Windows XP (and probably Vista). What Python GUI toolkit looks best and consistent with the native look and feel...
{ "language": "en", "url": "https://stackoverflow.com/questions/360602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the best way to handle "type" tables with LINQ to SQL? I have some tables that represent various types. They usually just consist of an ID (int), and a name. Ideally I would have this in an enum. Is there a way to map a table like this onto an enum? EDIT: How would I handle it if there were extra fields other...
{ "language": "en", "url": "https://stackoverflow.com/questions/360607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are your experiences implementing/using WebDAV? For a current project, I was thinking of implementing WebDAV to present a virtual file store that clients can access. I have only done Google research so far but it looks like I can get away with only implementing two methods: GET, PROPFIND I think that this is g...
{ "language": "en", "url": "https://stackoverflow.com/questions/360609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What makes you want to learn Common Lisp? What do you want from it? I'm working on a toolkit (sort of a live-CD Lisp-in-a-Box) for people new to Common Lisp, and I want to make sure it is broadly satisfying. What is attractive to you about Lisp? What do/did/would you need to get you started and keep you interested...
{ "language": "en", "url": "https://stackoverflow.com/questions/360612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: mysql - embed count query within another query In postgres I am fairly sure you can do something like this SELECT authors.stage_name, count(select id from books where books.author_id = authors.id) FROM authors, books; Essentially, in this example I would like to return a list of authors and how many book...
{ "language": "en", "url": "https://stackoverflow.com/questions/360615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using a web service to secure a database There are some rumors floating around that the team at my company will soon be using web services for all future application development. The architecture is supposed to be something like this: Application --> Web Service --> Database The stated reasoning behind it is securi...
{ "language": "en", "url": "https://stackoverflow.com/questions/360625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Embed xsl into an XML file I'm trying to embed an xsl into a XML file. The reason for doing this is to create a single file that could be moved to different computers, this would prevent the need to move the xsl file. The xsl file is creating a table and grabbing a test step from the xml and whether it passed or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Flash webcam video quality settings I'm working on a video streaming application in Flash and I've been told I need to add quality selection tools. The requirements are "low", "medium" and "high" quality. I'm trying to figure out what kinds of quality settings to actually apply for this (framerate and video qualit...
{ "language": "en", "url": "https://stackoverflow.com/questions/360631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using NAnt to build .NET 2.0 projects I had a .NET 1.1 project, which I built in NAnt using the following snippet: <property name="Refs.dir" value="Refs" readonly="false"/> <property name="OAIDLLs.dir" value="OAI\bin\ServerDebug"/> <solution solutionfile="OAI\CC.OAI.sln" configuration="ServerDebug" outp...
{ "language": "en", "url": "https://stackoverflow.com/questions/360635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net MVC: How to dynamically generate a meta tag based on the content of the url? Here is the idea: When the user wants to see /controller/action, then I want the page to have a "robots" meta tag with its value set to "all". When the user wants to see /controller/action?sort=hot&page=2 (i.e. it has a query string...
{ "language": "en", "url": "https://stackoverflow.com/questions/360637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it a bad practice to have multiple classes in the same file? I used to have one class for one file. For example car.cs has the class car. But as I program more classes, I would like to add them to the same file. For example car.cs has the class car and the door class, etc. My question is good for Java, C#, PHP or...
{ "language": "en", "url": "https://stackoverflow.com/questions/360643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: vertically stack table td elements using css Is there a way to vertically stack selected td elments? I would like to have the same table, though display it differently using only css. Would this be possible, or do I have to have separate html markups? I would like to try to have the same html markup, though use diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/360649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to set columns widths in a GridView control to the widest necessary width I have a gridview control that can get loaded with multiple pages worth of data. When I switch pages, the columns widths will change to accommodate the largest value in the column for that page. If possible, I would like to set the widths...
{ "language": "en", "url": "https://stackoverflow.com/questions/360654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get information about used tables from processed query? Previous programmer left me with "beautiful" piece of code and he kind of forgot to apply something to it. There is a query which selects several items from several tables. 6 Items can be chosen. It means 6 tables can be chosen, however there can be more...
{ "language": "en", "url": "https://stackoverflow.com/questions/360658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to save objects when approval is needed to actually make changes? So I have an object graph, let's just say it's an order. You have the order class, line item class, tracking number class, payment class. You get the idea. Now the business requirement is any user can change the order, but order changes must be ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/360670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: gradients using only html and css and javascript? Is there a way to do gradients in css/html/javascript only that will work across all the major browsers? (MS IE 5+, Firefox, Opera, Safari)? Edit: I would like to do this for backgrounds (header, main panel, side panels). Also, would like to have vertical line gradie...
{ "language": "en", "url": "https://stackoverflow.com/questions/360673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Google Maps - Easy way in ASP.Net? I'm wanting to use google maps and see a million ways to do it on the web. Some are javascript methods and some are asp.net server components with which I have hit and miss luck. What's the easiest and most reliable way using c# and asp.net? I have my location data including geocod...
{ "language": "en", "url": "https://stackoverflow.com/questions/360677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Web application to use window domain accounts for authentication If you have a web application that will run inside a network, it makes sense for it to support windows authentication (active directory?). Would it make sense to use AD security model as well, or would I make my own roles/security module that some adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/360694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WMI/PowerShell Bug: why is CreateSite creating *two* sites all of the sudden? I have a simple PowerShell script that uses WMI to create a web site on a Vista box. Yes, I know PowerShell has an IIS provider for working with IIS 7, but this script must also support IIS 6.0, so that rules that out. Anyway, the script ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Cannot find entry point sqlite3_open_v2 in DLL sqlite3" when using System.Data.Sqlite I am having problems connecting to a Sqlite database through System.Data.Sqlite. I was trying to use FluentNhibernate but that didn't work, so I went back to basics but got the same error: Cannot find entry point sqlite3_open_v2 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/360705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Frame accurate synchronizing of subtitle files with MPEG video using DirectShow This is a problem I have been dealing with for a while, and haven't been able to get a good answer (even from Microsoft). I'm using the generic dump filter to write hardware compressed MPEG files out to disk. In the graph, I also have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auto-update pageref fields in rtf document The application I'm working on outputs documents to rtf format and PAGEREF fields are used in a table of contents page and an index page. The problem is that on opening the document the fields do not update and remain blank. They work correctly if you manually update the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/360722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross framework performance hit I have a .NET 3.5 WinForms project that uses several 3rd party controls and a couple of home-grown components that are compiled for the 1.1 framework. Is there a performance hit for using 1.1 components? A: No because the version 1.1 of the framework should run just fine on the CLR R...
{ "language": "en", "url": "https://stackoverflow.com/questions/360723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I convert all values of an array to floats in PHP? I am fetching an array of floats from my database but the array I get has converted the values to strings. How can I convert them into floats again without looping through the array? Alternatively, how can I fetch the values from the database without convert...
{ "language": "en", "url": "https://stackoverflow.com/questions/360725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Are nested intervals a viable solution to nested set (modified pre-order traversal) RDBMS performance degredation? Among the known limitations of Joe Celko's nested sets (modified pre-order traversal) is marked degredation in performance as the tree grows to a large size. Vadim Tropashko proposed nested intervals, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/360738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Computational complexity of Fibonacci Sequence I understand Big-O notation, but I don't know how to calculate it for many functions. In particular, I've been trying to figure out the computational complexity of the naive version of the Fibonacci sequence: int Fibonacci(int n) { if (n <= 1) return n; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "390" }
Q: Can I embed a custom font in an iPhone application? I would like to have an app include a custom font for rendering text, load it, and then use it with standard UIKit elements like UILabel. Is this possible? A: It's not out yet, but the next version of cocos2d (2d game framework) will support variable length bitmap...
{ "language": "en", "url": "https://stackoverflow.com/questions/360751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "788" }
Q: TDD Test Refactoring to support MultiThreading So I'm a newbie to TDD, and I successfully created a nice little sample app using the MVP pattern. The major problem to my current solution is that its blocking the UI thread, So I was trying to setup the Presenter to use the SynchronizationContext.Current, but when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Moving a Subversion repository to another server I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008. This means that I'm going to need to move my Subversion repository while the server gets built up...
{ "language": "en", "url": "https://stackoverflow.com/questions/360758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: remove everything but the filename php I'm trying to get rid of everything before the filename ex: /home/mike/whatever/test_1.txt leaving only test_1.txt what would the simplest way? thanks A: basename()
{ "language": "en", "url": "https://stackoverflow.com/questions/360762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is the application size in Add/Remove Programs increasing each time my app is uninstalled and reinstalled? It's a WiX MSI installer and each time I uninstall and reinstall it in my virtual machine environment the size reported in Add/Remove Programs gets bigger. It's up to 200MB now when the installed files are...
{ "language": "en", "url": "https://stackoverflow.com/questions/360763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java formal type parameter definition (Generics) I'd like to define a generic type, whose actual type parameter can only be * *One of the numeric primitive wrapper classes (Long, Integer, Float, Double) *String I can meet the first requirement with a definition like this public final class MyClass<T extends Numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/360766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: FLASH Auto Looping Disable I have an animation and I want it to play it just only once. From where can I set so when I export to SWF the default will be AUTO LOOPING disabled. Thanks A: Insert a keyframe in the last frame and put a stop(); there? A: Please following code <param name='loop' value='false' /> <obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/360777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extract ipv6 prefix in python Given either the binary or string representation of an IPv6 address and its prefix length, what's the best way to extract the prefix in Python? Is there a library that would do this for me, or would I have to: * *convert the address from string to an int (inet_ntop) *Mask out the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/360782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C#, wait on the mainthread while continuing to process UI updates? (.NET 2.0 CF) I want to otherwise block code execution on the main thread while still allowing UI changes to be displayed. I tried to come up with a simplified example version of what I'm trying to do; and this is the best I could come up with. Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/360789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Liferay: Initialization order of servlets and portlets I think that it used to the be the case that in Liferay 4, if a war contained both a portlet and a servlet, the servlet was initialized before the portlet. Now with Liferay 5 I notice that the opposite is going on. How can I setup my web application, or Liferay ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery datepicker For some reason I can't use runat="server" as an attribute for the input tag in order for the jQuery to display the image button and work. Is something wrong without runat="server"? It works fine. And I want the format to be "yyyy/mm/dd" and also I need it for the server because this is where I che...
{ "language": "en", "url": "https://stackoverflow.com/questions/360816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which javascript minification library produces better results? Between Yahoo! UI Compressor, Dean Edwards Packer and jsmin, which produces better results, both in terms of resulting footprint and fewer errors when obfuscating. A: Better is a bit subjective here, since there are multiple factors to consider (even be...
{ "language": "en", "url": "https://stackoverflow.com/questions/360818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: SQL Server to Excel 2007 - New Lines I'm trying to retrieve data from an SQL Server 2000 server, and place into Excel. Which sounds simple I know. I'm currently Copying, and Pasting into Excel, from Management Studio The problem is one of the columns is an address, and it’s not retaining the newlines. These new line...
{ "language": "en", "url": "https://stackoverflow.com/questions/360830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SOAP web service: many servers, one interface I have a scenario in which I'm going to need an arbitrary number of servers to provide the same SOAP web service. I would like to generate one set of proxy classes and be able to supply them with a location to point them at the different servers at runtime. Unfortunately...
{ "language": "en", "url": "https://stackoverflow.com/questions/360831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using fields from a 'lookup-ed' sharepoint list I have two Sharepoint lists: - Assignments - Activities The activities list has a lookup field to the assignments list as activities (e.g. monthly review of X) are related to an assignment. My question is, how would I display other fields from Assignments in a view...
{ "language": "en", "url": "https://stackoverflow.com/questions/360833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Call function in User Control from code behind of the page Now this is all way simplified, but here goes: I have a User Control that consists only of a single *.ascx file. The control has no code-behind: it's just a script with a few functions, like this: <%@ Control Language="VB" EnableViewState="False" ClassName=...
{ "language": "en", "url": "https://stackoverflow.com/questions/360836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I mix Integrated Security and own userdatabase with IIS/C# 3.5? Is it possible to mix all these access controls in one site? I have a requirement saying * *a) Users from the AD must be allowed access, using integrated security *b) Users from some other AD must be allowed access; potentially by logging ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling multiple __doPostBack from JavaScript I've got multiple UpdatePanel's on a page and i'm updating 2 of them manually by calling __doPostBack. However the problem is the first call seems to be reset when the second call is made (it never updates the panel that i requested to update first). I've got these calls...
{ "language": "en", "url": "https://stackoverflow.com/questions/360843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL bitwise operations, bloom filter I'd like to implement a bloom filter using MySQL (other a suggested alternative). The problem is as follows: Suppose I have a table that stores 8 bit integers, with these following values: 1: 10011010 2: 00110101 3: 10010100 4: 00100110 5: 00111011 6: 01101010 I'd like to find...
{ "language": "en", "url": "https://stackoverflow.com/questions/360844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: TDD - When is it okay to write a non-failing test? From what I understand, in TDD you have to write a failing test first, then write the code to make it pass, then refactor. But what if your code already accounts for the situation you want to test? For example, lets say I'm TDD'ing a sorting algorithm (this is just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do you concatenate text when using Bind expression in asp.net What is the syntax to concatenate text into a binding expression for an asp.net webpage (aspx). For example if I had a hyperlink that was being bound like this: <asp:HyperLink id="lnkID" NavigateUrl='<%# Bind("Link") %>' Target="_blank" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I force an NSPopUpButtonCell to redisplay itself? I'm creating a custom subclass of NSPopUpButton and NSPopUpButtonCell to display a lone icon on top of the button instead of the usual text. To do this I'm overriding - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView in my button c...
{ "language": "en", "url": "https://stackoverflow.com/questions/360856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is domain logic? What is domain logic? The Wikipedia page for domain logic redirects to business logic. Are they the same thing, and, if not, how do they differ? A: Let's cover a scenario. You have a client for XYZ restraint and he wants you to make his system online. Where user can place an order online, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: What are the parameters for a GridLayout? private static final GridLayout layout = new GridLayout( 3, 1, 1, 0 ); in this line of code what do the numbers represent and how do you use them to arrange the checkboxes and buttons in the window? A: The GridLayout class: public GridLayout(int rows, int...
{ "language": "en", "url": "https://stackoverflow.com/questions/360877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sending data from one page to another server. Language agnostic I'll try to keep this short and simple. I haven't begun writing the code for this project yet, but I'm trying to work out the pre-coding logistics as of right now. What I am looking to do, is create a method of sending data from one/any site, to another...
{ "language": "en", "url": "https://stackoverflow.com/questions/360880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Version Control for Home Development? Up till now I have been developing my personal and school projects at home without using any form of revision control software to handle my changes and whatnot. My question is, how feasible is it to use a Version Control application (such as TortoiseSVN) for personal proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/360887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "138" }
Q: Is there a Windows tool for capture and playback of modified UDP packets? I'm looking for a tool (or a set of tools) for Windows that will perform the following: * *Capture UDP packets from a specific network interface to a file. *Play a stream of packets from a file through a network interface. *In addition to...
{ "language": "en", "url": "https://stackoverflow.com/questions/360889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Correct way to handle 2D z-indexing in a 3D scene (DirectX) I need to achieve the following: Two 2D quads appear as though they are stacked one on top of the other (like two halves of the same texture) but are in fact seperated on the z axis by n coordinates. So that if a 3D object passes between them one half appea...
{ "language": "en", "url": "https://stackoverflow.com/questions/360890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checkboxes display? JCheckBox special = new JCheckBox ("\nSpecial - $17.95" + "\nMeatball, Sausage, Mushroom, Onion, Pepperoni & Pepper"); In this line of code, how do you make the checkbox make the "..." into two lines? A: The easiest way is to format it with HTML 3.2: JCheckBox checkBox = new JCheckBox("<HTM...
{ "language": "en", "url": "https://stackoverflow.com/questions/360898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Math Problem I have been working on this for the greater part of the day and I cant seem to make this part of my code work. The intent of the code is to allow the user to input a set of values in order to calculate the missing value. As an additional feature I placed a CheckBox on the form to allow the user to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/360899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Datamart vs. reporting Cube, what are the differences? The terms are used all over the place, and I don't know of crisp definitions. I'm pretty sure I know what a data mart is. And I've created reporting cubes with tools like Business Objects and Cognos. I've also had folks tell me that a datamart is more than jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/360900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Access CVS through Apache service using SSPI I'm running an Apache server (v2.2.10) with mod_python, Python 2.5 and Django. I have a small web app that will show the current projects we have in CVS and allow users to make a build of the different projects (the build checks out the project, and copies certain files ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to debug a process using Visual Studio? If an application† crashes, I hit "Debug" and Visual Studio is my currently registered Just-In-Time (JIT) debugger: Visual Studio appears, but there's no way to debug anything: * *I do not see any disassembly *I do not see any registers (assuming it runs on a CPU wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/360912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I update properties in subversion How do I update my subversion repository so it can accept updates to the log message field? I've got a Windows installation and I changed the pre-revprop-change.tmpl file name to a batch file, but now when I try to update a the log message property my tortoise svn just hangs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uri.EscapeDataString(Request.Url.AbsoluteUri) is wrong in different environment, What else should I use? I am generating a return url link so when the user hits the close button on this page they return to this ReturnUrl. ie http://localhost:42605/Search.aspx?ReturnUrl=http%3A%2F%2Flocalhost%3A42605%2FStuff%2FViewSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/360918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server Indexes Aren't Helping I have a table (SQL 2000) with over 10,000,000 records. Records get added at a rate of approximately 80,000-100,000 per week. Once a week a few reports get generated from the data. The reports are typically fairly slow to run because there are few indexes (presumably to speed up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update links on master page with data from child page I have a menu of report links in my master page. I need to append an ID to the end of each whenever the user changes a value on the child page. What's a good way to accomplish this? UPDATE: I should have mentioned that the child update is happening inside an Upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/360935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: read text from file and apply some operations on it I have a problem on how to read text from file and perform operations on it for example i have this text file that include //name-//sex---------//birth //m1//m2//m3 fofo, male, 1986, 67, 68, 69 momo, male, 1986, 99, 98, 100 Habs, female, 1988, 99, 100, 8...
{ "language": "en", "url": "https://stackoverflow.com/questions/360943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Sorting and hyphens Is there a way to easily sort in SQL Server 2005 while ignoring hyphens in a string field? Currently I have to do a REPLACE(fieldname,'-','') or a function to remove the hyphen in the sort clause. I was hoping there was a flag I could set at the top of the stored procedure or something. Acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/360950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Database Table Structure for Shopping Cart I'm a beginner with SQL and am working on one of my first databases. I am trying to create a very cut-down shopping cart and am currently working on getting the database together before I start coding the site. One of the things I am struggling with is how to structure the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySql Query, Select greater than I've got a table, called faq_questions with the following structure: id int not_null auto_increment, question varchar(255), sort_order int I'm attempting to build a query that given a sort order, selects the row with the next highest sort order. Example: id question ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Category usage in Objective-C I'm seeing some code I've inherited that looks like the following: @interface SomeClass (private) This is within SomeClass.m, the implementation file. There is an accompanying header file which doesn't suggest that the class is using a category. Is (private) in this case just a poor na...
{ "language": "en", "url": "https://stackoverflow.com/questions/360968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How detect whether running under valgrind in make file or shell script? I need to detect whether my Makefile is running under valgrind (indirectly, using valgrind --trace-children=yes), I know how to do it from C but I have not found a way to do it from a script, The earlier answers works on Linux only. For Mac OS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/360970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DateTime Format like HH:mm 24 Hours without AM/PM I was searching here about converting a string like "16:20" to a DateTime type without losing the format, I said I dont want to add dd/MM/yyy or seconds or AM/PM, because db just accept this format. I tried with Cultures yet Thanks in Advance A: DateTime.Now.ToStrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/360982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How would I get the column names from a Model LINQ? I am looking to get a list of the column names returned from a Model. Anyone know how this would be done, any help would be greatly appreciated. Example Code: var project = db.Projects.Single(p => p.ProjectID.Equals(Id)); This code would return the Projects object...
{ "language": "en", "url": "https://stackoverflow.com/questions/360990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Protocol versus Category Can anyone explain the differences between Protocols and Categories in Objective-C? When do you use one over the other? A: A protocol is the same thing as an interface in Java: it's essentially a contract that says, "Any class that implements this protocol will also implement these methods....
{ "language": "en", "url": "https://stackoverflow.com/questions/360992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Any patterns for modelling board games? For fun, I'm trying to write one of my son's favorite board games as a piece of software. Eventually I expect to build a WPF UI on top of it, but right now I'm building the machine that models the games and its rules. As I do this, I keep seeing problems that I think are comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/361002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: How to rename exe file Say I've got a generic vertical market application and I want to package it as two separate programs aaa.exe and bbb.exe. Is there any way to use the Delphi linker to create an EXE/DLL file that doesn't have the same name as the DPR? I can't just rename the file because I get this error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make a WPF Window behave like a Context Menu (show/hide it properly) I want to make a WPF Window that behaves like a context menu. So, for instance - when I show the wpf window, I want it to be the topmost window and from there on out, if the user clicks anything outside of that window I want the window to be hidden...
{ "language": "en", "url": "https://stackoverflow.com/questions/361024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Representing sparse integer sets? What is a good way to represent sparse set of integers (really C memory addresses) in a compact and fast way. I already know about the obvious things like bit-vectors and run-length encoding. but I want something much more compact than one word per set element. I need to add and rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/361040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Interesting issue with WCF wsHttpBinding through a Firewall I have a web application deployed in an internet hosting provider. This web application consumes a WCF Service deployed at an IIS server located at my company’s application server, in order to have data access to the company’s database, the network guys all...
{ "language": "en", "url": "https://stackoverflow.com/questions/361049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When connecting SAP Business One to SQL Server 2005, what is the we have SAP Business One - Fourth Shift Edition running here at a small manufacturing company. The consulting company that has come in to do the installation/implementation uses the "sa" id/pass to initially connect to the database to get the list of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Functional programming: immutability etc I recently asked a question about functional programming, and received (good!) answers that prompted more questions (as seems to be the case with learning, sometimes). Here are a couple examples: * *One answer made reference to an advantage of immutable data structures: ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/361066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the best practice concerning C# short-circuit evaluation? An answer and subsequent debate in the comments in another thread prompted me to ask: In C# || and && are the short-circuited versions of the logical operators | and & respectively. Example usage: if (String.IsNullOrEmpty(text1) | String.IsNullOrEmpty...
{ "language": "en", "url": "https://stackoverflow.com/questions/361069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Workaround for IE's Non-Bubbly Submit Events I'm working on a large web application with a lot of AJAX whose event handling has gotten out of control. I'm trying to set up an event delegation system to manage all of it, but am wondering if there's a workaround for IE's non-bubbling form submits (there are a lot of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to wait until remote .NET debugger attached Today I ran into a problem were I needed to remote-debug a program. The program was launched from another system, so I really don't have an opportunity to interact with it on the command line. I could change its source easily though. What I needed to happen was for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/361077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Excel 2002 Add-In not loading when the application opens Good afternoon, I created an Excel .xla addin for Excel 2002. This weird behavior I am seeing from it happens only on my machine, but not on my coworkers. I would like to understand why. The add-in has a UDF function that gets called from many, many spreadsh...
{ "language": "en", "url": "https://stackoverflow.com/questions/361080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I make a lookup from two datasets at once? In this question, I asked about breaking a dataset into subsets, and got a good response. Now I have the opposite problem. I've got two different datasets, representing objects of two different subclasses of a common ancestor, and I need to have the same TDBLookupComb...
{ "language": "en", "url": "https://stackoverflow.com/questions/361086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does the following prints 'Resource temporarily unavailable'? Why does the following code print ‘read(): Resource temporarily unavailable’ 80% of the time? That is the EAGAIN code, which is the same as WOULD BLOCK which means there is no data waiting to be read, but select is returning 1 saying there is data (te...
{ "language": "en", "url": "https://stackoverflow.com/questions/361092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Service hangs up at WaitForExit after calling batch file I have a service that sometimes calls a batch file. The batch file takes 5-10 seconds to execute: System.Diagnostics.Process proc = new System.Diagnostics.Process(); // Declare New Process proc.StartInfo.FileName = fileName; proc.StartInfo.WindowStyle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What does my program crash when executing "free(ppMapData[i])"? I tried to make a dynamic 2D array of char as follow: char** ppMapData = (char**)malloc(sizeof(char*)*iMapHeight); for (int i=0; i< iMapHeight; i++) { ppMapData[i] = (char*)malloc(sizeof(char)*iMapWidth); //do something } // do something for (...
{ "language": "en", "url": "https://stackoverflow.com/questions/361115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get selected text and selected nodes on a page? When selecting a block of text (possibly spanning across many DOM nodes), is it possible to extract the selected text and nodes using Javascript? Imagine this HTML code: <h1>Hello World</h1><p>Hi <b>there!</b></p> If the user initiated a mouseDown event starting at "W...
{ "language": "en", "url": "https://stackoverflow.com/questions/361130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: SQL Query Advice - Most recent item I have a table where I store customer sales (on periodicals, like newspaper) data. The product is stored by issue. Example custid prodid issue qty datesold 1 123 2 12 01052008 2 234 1 5 01022008 1 123 1 5 01...
{ "language": "en", "url": "https://stackoverflow.com/questions/361135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: bypass FreeMarker caching? Is it possible to bypass the Freemarker cache when certain templates are requested? I realise that I'll probably have to implement my own TemplateLoader in order to do this, but even so, I can't see a way to check the cache when say template A is requested, but bypass it when template B is...
{ "language": "en", "url": "https://stackoverflow.com/questions/361137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Pass variable into an input I made an html file called test.html then I navigated to it as "http://site.com/test.html?test1=a" but the textbox stayed blank. Why is this? Super simple code <html> <head> <title>Test</title> </head> <body > <input type=text name="test1"> </body> </html> A: The file should be a PHP ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a custom item to the Microsoft Office Send To Menu Is it possible to extend the "Send to" menu in Office (not the Windows one; I know how to do that). I would like to launch my own application with the source document as the target. Update: I am looking for a non-VSTO based solution. A: In 2007, you can...
{ "language": "en", "url": "https://stackoverflow.com/questions/361156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails form validation I have a Rails app that lets a user construct a database query by filling out an extensive form. I wondered the best practice for checking form parameters in Rails. Previously, I have had my results method (the one to which the form submits) do the following: if params[:name] && !params[:name...
{ "language": "en", "url": "https://stackoverflow.com/questions/361161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Is it possible to put text on 3d button in HTML? I want to use pretty 3d button images on my website. However, currently the way this works is the text is part of the image. So, when I want to change the text (or make a new button) it's a 10 minute editing chore instead of a 20 second text change. I've seen a few we...
{ "language": "en", "url": "https://stackoverflow.com/questions/361163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating value in Linq to SQL IEnumerable Using Linq to SQL: if(!parentlist.childlist.Contains(row1)) parentlist.childlist.Add(row1); else How do I update the required childlist row with row1? Each row of the child list has a unique id. parentlist implements IEnumerable and childlist is IList. A: I don't th...
{ "language": "en", "url": "https://stackoverflow.com/questions/361167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you use ExecuteScalar to return a single value from an Oracle Database? Been using the code below to return a single record from the database. I have read that ExecuteScalar is the right way to return a single record. I have never been able to get ExecuteScalar to work though. How would I change this to ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/361175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the preferred naming conventions du jour for c++? I am quite confused by looking at the boost library, and stl, and then looking at people's examples. It seems that capitalized type names are interspersed with all lowercase, separated by underscores. What exactly is the way things should be done these days? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Better support for CURL with PHP and Linux I'm the developer of twittertrend.net, I was wondering if there was a faster way to get headers of a URL, besides doing curl_multi? I process over 250 URLs a minute, and I need a really fast way to do this from a PHP standpoint. Either a bash script could be used and then o...
{ "language": "en", "url": "https://stackoverflow.com/questions/361193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting connection with function I am trying to use ASP to create a connection to my database and i have the following connection code: Set objConn = ConnectDB() Set objRS = objConn.Execute(query) I have an include file that I have at the top of my page: <!--#include FILE=dbcano.inc--> And I get this error when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/361204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }