text
stringlengths
8
267k
meta
dict
Q: Is object mocking used extensively? I am curious about how many of you folks incorporate mocking of objects (frameworks like JMock, NMock, RhinoMocks hand in hand with unit testing frameworks) into your daily development process. What are your experiences? You see, I develop on top of a GIS (geographic information s...
{ "language": "en", "url": "https://stackoverflow.com/questions/82855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to create an automatic Revision History table in Word 2007 Is it possible in Word 2007 to create a revision history table automatically using track changes or some other method? e.g. Revision History DateVersionDescriptionAuthor 16/09/20081.0CreatedJohn Smith 17/09/20081.1Fixed dumb spelling errorsColin Jones ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to create a MaskedEditExtender on the fly? I want to create a number of masked edit extenders from codebehind. Something like: private MaskedEditExtender m_maskedEditExtender; protected override void OnLoad(EventArgs e) { base.OnLoad(e); m_maskedEditExtender = new MaskedEditExtender() { Behav...
{ "language": "en", "url": "https://stackoverflow.com/questions/82867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP - RSS builder I have a old website that generate its own RSS everytime a new post is created. Everything worked when I was on a server with PHP 4 but now that the host change to PHP 5, I always have a "bad formed XML". I was using xml_parser_create() and xml_parse(...) and fwrite(..) to save everything. Here is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I list the tables in a SQLite database file that was opened with ATTACH? What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the ATTACH command on the SQLite 3 command line tool? A: Since nobody has mentioned about the official ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1342" }
Q: Does anyone use Iron speed designer for rapid asp.net development? Visual studio is pretty good but doesn't create stored procedures automatically. Iron Speed designer does supposedly. But is it any good? A: I have used it for convenience for a very small project. It did what I wanted and saved me a couple of day...
{ "language": "en", "url": "https://stackoverflow.com/questions/82878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: In C# .NET 2.0, what's an easy way to do a foreach in reverse? Lets say I have a Dictionary object: Dictionary myDictionary<int, SomeObject> = new Dictionary<string, SomeObject>(); Now I want to iterate through the dictionary in reverse order. I can't use a simple for loop because I don't know the keys of the dicti...
{ "language": "en", "url": "https://stackoverflow.com/questions/82881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Stored procedures or OR mappers? Which is better? Or use and OR mapper with SP's? If you have a system with SP's already, is an OR mapper worth it? A: I like ORM's because you don't have to reinvent the wheel. That being said, it completely depends on your application needs, development style and that of the te...
{ "language": "en", "url": "https://stackoverflow.com/questions/82882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CausesValidation is set to "False" but the client side validation is still firing I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on the client side when I press the Cancel button, which has the CausesValidation attribute set to "False". How can I get this to stop? I do no...
{ "language": "en", "url": "https://stackoverflow.com/questions/82908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I tint a sprite to white in XNA? I don't think this is possible just using the color setting in SpriteBatch, so I'm trying to work out a simple shader that would take every pixel and make it white, while respecting the alpha value of the pixel. The answer Joel Martinez gave looks right, but how do I incorpor...
{ "language": "en", "url": "https://stackoverflow.com/questions/82914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Sort with one option forced to top of list I have a PHP application that displays a list of options to a user. The list is generated from a simple query against SQL 2000. What I would like to do is have a specific option at the top of the list, and then have the remaining options sorted alphabetically. For example...
{ "language": "en", "url": "https://stackoverflow.com/questions/82929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Managing feature creep in GUIs Does anyone have any practical suggestions about how to manage feature creep in GUIs? I'm getting strong pressure from both internal and external sources to add, modify, tweak, etc. I always cringe when someone approaches me with the words "wouldn't it be nice if...?". I can't just tu...
{ "language": "en", "url": "https://stackoverflow.com/questions/82933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Initializing an array on arbitrary starting index in c# Is it possible in c# to initialize an array in, for example, subindex 1? I'm working with Office interop, and every property is an object array that starts in 1 (I assume it was originally programed in VB.NET), and you cannot modify it, you have to set the enti...
{ "language": "en", "url": "https://stackoverflow.com/questions/82943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Before and After Suite execution hook in jUnit 4.x I'm trying to preform setup and teardown for a set of integration tests, using jUnit 4.4 to execute the tests. The teardown needs to be run reliably. I'm having other problems with TestNG, so I'm looking to port back to jUnit. What hooks are available for execution ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: Using Yahoo! Pipes Have you used pipes.yahoo.com to quickly and easily do... anything? I've recently created a quick mashup of StackOverflow tags (via rss) so that I can browse through new questions in fields I like to follow. This has been around for some time, but I've just recently revisited it and I'm completely...
{ "language": "en", "url": "https://stackoverflow.com/questions/82950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subscription Parameters in SQL Server Reporting Services 2005 When I subscribe for a report, I may chose to have a subject like: @ReportName was executed at: @ExecutionTime I would like a name like this: Your "@ReportName" report covering Sep 10 2008 - Sep 16 2008 Sep 10 2008 - Sep 16 2008 are values of the two repo...
{ "language": "en", "url": "https://stackoverflow.com/questions/82956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to automatically remove trailing whitespace in Visual Studio 2008? Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this? A: Taking elem...
{ "language": "en", "url": "https://stackoverflow.com/questions/82971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "144" }
Q: Inline displayed blocks form a single word in IE The problem is that I have several "h2" tags that have a display:inline attribute, and on Microsoft's wonderful browsers the space between them doesn't appear. Is there a workaround? I know there is a "non-breaking space" &nbsp; in HTML but I was wondering if one can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows CD Burning API We need to programatically burn files to CD in a C\C++ Windows XP/Vista application we are developing using Borlands Turbo C++. What is the simplest and best way to do this? We would prefer a native windows API (that doesnt rely on MFC) so as not to rely on any third party software/drivers if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/82993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What's the best/fastest/easiest way to collapse all projects in Visual Studio? I'm currently using DPack as this adds a "Collapse All Projects" option to the Solution node in Solution Explorer. It works pretty well but can take a while to execute and doesn't always collapse everything fully. Are there any better alt...
{ "language": "en", "url": "https://stackoverflow.com/questions/83009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Executing stored procedures with date parameters: Command Object vs Connection Object When supplying dates to a stored procedure via a parameter I'm a little confused over which format to use for the dates. My original VBA syntax used the ADO Connection object to execute the stored procedure: Set SentDetailRS = Me.A...
{ "language": "en", "url": "https://stackoverflow.com/questions/83038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connecting to Oracle using PHP How do I connect to a remote Oracle database instance from PHP? I need to query (read only) the remote Oracle database for some information; do I need to have an Oracle Instant Client installed? Is the OCI extension for PHP enough? A: From PHP Manual * *You will need the Oracle cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/83040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Command switch to toggle Notepads word wrap I have a costumer showing Notepad with a large set of data that looks totally misaligned if word wrap is on and I want to force it off. Is there a command switch to do this? A: I dont think there is a command switch to do this at all. If you want to force it off all the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trip time calculation in relational databases? I had this question in mind and since I just discovered this site I decided to post it here. Let's say I have a table with a timestamp and a state for a given "object" (generic meaning, not OOP object); is there an optimal way to calculate the time between a state and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/83050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Removing static file cachebusting in rails I have a rails application which is still showing the cachebusting numeric string at the end of the URL for static mode, even though I have put it into the production environment. Can someone tell me what config option I need to set to prevent this behaviour... A: That fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/83058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parse tree and grammar information Does anyone know where to find good online resources with examples of how to make grammars and parse trees? Preferably introductory materials. Info that is n00b friendly, haven't found anything good with Google myself. Edit: I'm thinking about theory, not a specific parser software...
{ "language": "en", "url": "https://stackoverflow.com/questions/83064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ORA-03113: end-of-file on communication channel after long inactivity in ASP.Net app I've got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running back to a single Oracle 10g server, using version 10.1.0.301 of the ODAC/ODP.Net drivers. After a long period of inactivity (a few hours), the appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/83068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Why not use tables for layout in HTML? It seems to be the general opinion that tables should not be used for layout in HTML. Why? I have never (or rarely to be honest) seen good arguments for this. The usual answers are: * *It's good to separate content from layoutBut this is a fallacious argument; Cliche Thinki...
{ "language": "en", "url": "https://stackoverflow.com/questions/83073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "664" }
Q: VS 2008 vs VS 2008 Express I'm using Visual Studio Team System 2008 at work to do web development. I've gotten quite used to it but can't really afford to purchase even VS 2008 Standard at this time. I have never used any of the Express editions before but I was thinking about downloading VS C# Express and VS Web D...
{ "language": "en", "url": "https://stackoverflow.com/questions/83086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there another way to integrate PDF viewing in a Flex application? I'm looking at ways to embed PDF viewing in a Flex application. Currently the only option I've seen is by using the flash.html.HTMLLoader class, which only works if you're using AIR. This isn't a big deal -- I'm willing to use AIR if I have to -- b...
{ "language": "en", "url": "https://stackoverflow.com/questions/83087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP/mySQL - regular recalculation of benchmark values as new users submit their data I am confronted with a new kind of problem which I haven't encountered yet in my very young programming "career" and would like to know your opinion about how to tackle it best. The situation A research application (php/mysql) gathe...
{ "language": "en", "url": "https://stackoverflow.com/questions/83088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: hibernate insert batch with partitioned postgresql is there a solution for batch insert via hibernate in partitioned postgresql table? currently i'm getting an error like this... ERROR org.hibernate.jdbc.AbstractBatcher - Exception executing batch: org.hibernate.StaleStateException: Batch update returned unexpected...
{ "language": "en", "url": "https://stackoverflow.com/questions/83093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: ChatFx Lite LicenseException on build server I downloaded ChartFx Lite and am using it successfully in my windows forms application on my development machine. I have added the ChartFX.Lite.dll assembly to my source repository and am trying to build the project on my build server that does not have ChartFx Lite inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/83104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Widget notifying other widget(s) How should widgets in GWT inform other widgets to refresh themselfs or perform some other action. Should I use sinkEvent / onBrowserEvent? And if so is there a way to create custom Events? A: It's a very open ended question - for example, you could create your own static event Hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/83106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logging activities in multithreaded applications I have a layered application in Java which has a multi thread data access layer which is invoked from different points. A single call to this layer is likely to spawn several threads to parallelize requests to the DB. What I'm looking for is a logging tool that would...
{ "language": "en", "url": "https://stackoverflow.com/questions/83117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: WCF Oracle adaptor and UDT Is there any way to work with Oracle UDT's with current WCF adaptor? A: If I understand you question correctly, you want to express Oracle user defined types in WCF services? This will really depend on the protocol to be used. For example, if you are using one of the SOAP protocols like...
{ "language": "en", "url": "https://stackoverflow.com/questions/83122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Consequences of changing USERPostMessageLimit One of our legacy applications relies heavily on PostThreadMessage() for inter-thread communication, so we increased USERPostMessageLimit in the registry (way) beyond the normal 10.000. However, documentation on MSDN states that "This limit should be sufficiently large. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ORA-00161: transaction branch length 103 is illegal (maximum allowed 64 Error: ORA-00161: transaction branch length 103 is illegal (maximum allowed 64… I'm using the DAC from Oracle, any idea if there is a patch for this? A: This looks to be a similar issue for .net 2.0, vista and oracle http://forums.oracle.com/f...
{ "language": "en", "url": "https://stackoverflow.com/questions/83130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What causes the error "Can't execute code from a freed script" I thought I'd found the solution a while ago (see my blog): If you ever get the JavaScript (or should that be JScript) error "Can't execute code from a freed script" - try moving any meta tags in the head so that they're before your script tags. ...bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/83132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: What's wrong with foreign keys? I remember hearing Joel Spolsky mention in podcast 014 that he'd barely ever used a foreign key (if I remember correctly). However, to me they seem pretty vital to avoid duplication and subsequent data integrity problems throughout your database. Do people have some solid reasons as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/83147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "277" }
Q: Reading PDF documents in .Net Is there an open source library that will help me with reading/parsing PDF documents in .NET/C#? A: PDFClown might help, but I would not recommend it for a big or heavy use application. A: iTextSharp is the best bet. Used it to make a spider for lucene.Net so that it could crawl PDF. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Entity Framework and Application Architecture (loose coupling, etc) I am considering to apply Entity Framework in a new project because I liked its OR/M-API as well as the storage/conceptual model mapping-capabilities (plus Linq of course and Entity SQL). But how can loose coupling be achieved betwen the UI layer an...
{ "language": "en", "url": "https://stackoverflow.com/questions/83153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: File and directory with same name in same parent directory - Solaris 8, ufs Ok, I have been working with Solaris for a 10+ years, and have never seen this... I have a directory listing which includes both a file and subdirectory with the same name: -rw-r--r-- 1 root other 15922214 Nov 29 2006 msheehan drwx...
{ "language": "en", "url": "https://stackoverflow.com/questions/83156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which heap size do you prefer? I know there is no "right" heap size, but which heap size do you use in your applications (application type, jdk, os)? The JVM Options -Xms (initial/minimum) and -Xmx (maximum) allow for controlling the heap size. What settings make sense under which circumstances? When are the default...
{ "language": "en", "url": "https://stackoverflow.com/questions/83157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to insert XmlCursor content to DOM Document Some API returns me XmlCursor pointing on root of XML Document. I need to insert all of this into another org.w3c.DOM represented document. At start: XmlCursor poiting on <a> <b> some text </b> </a> DOM Document: <foo> </foo> At the end I want to have origi...
{ "language": "en", "url": "https://stackoverflow.com/questions/83159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Embedding Live Video from an IP WebCam We are using a Sony SNC-RZ30N IP-based webcam to monitor osprey nests and would like to stream the video feed via our own webserver. Rather than use the built-in webserver of the camera (which requires either ActiveX or Java on the client side) to display the live feed, I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/83172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up the browser scrollbar to scroll part of a page? I've seen this done in a few sites, an example is artofadambetts.com. The scroll bar on the page scrolls only an element of the page, not the entire page. I looked at the source and havent't been able to figure it out yet. How is this done? A: In fact it...
{ "language": "en", "url": "https://stackoverflow.com/questions/83225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a serializable generic Key/Value pair class in .NET? I'm looking for a key/value pair object that I can include in a web service. I tried using .NET's System.Collections.Generic.KeyValuePair<> class, but it does not properly serialize in a web service. In a web service, the Key and Value properties are not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: mysqldump | mysql yields 'too many open files' error. Why? I have a RHEL 5 system with a fresh new hard drive I just dedicated to the MySQL server. To get things started, I used "mysqldump --host otherhost -A | mysql", even though I noticed the manpage never explicitly recommends trying this (mysqldump into a file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I get the unique values of an array in .net? Say I've got this array: MyArray(0)="aaa" MyArray(1)="bbb" MyArray(2)="aaa" Is there a .net function which can give me the unique values? I would like something like this as an output of the function: OutputArray(0)="aaa" OutputArray(1)="bbb" A: Assuming you have...
{ "language": "en", "url": "https://stackoverflow.com/questions/83260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Codeplex/Sourceforge for internal use I'm looking for a free/open source collaborative project manager that can be deployed internally in my workplace that would act similar to Codeplex or Sourceforge. Does anyone know of something like this, and if so do you have experience with it. Requirements: * *Open Source ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to implement a 3-column website using tags? I'm developing a 3-column website using a layout like this: <div id='left' style='left: 0; width: 150px; '> ... </div> <div id='middle' style='left: 150px; right: 200px' > ... </div> <div id='right' style='right: 0; width: 200px; '> ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: In what situations would you get different users seeing different rows in a table on SQL Server? SQL Server Version 2000. We've a bunch of desktops talking to MSSQL Server. When looking for a specific record, some desktops return the correct data, but some do not. The SQL Command is "SELECT * FROM PODORDH WHERE ([N...
{ "language": "en", "url": "https://stackoverflow.com/questions/83295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SVN revision in Microsoft Office I have some code documentation in MS Powerpoint 2003 that I'm revision-controlling in an SVN repository. I'd like to auto-insert the latest revision number into this document whenever I open it. I am using TortoiseSVN. I've been able to google up a macro or two that might work but wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/83296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's the easiest way to use C source code in a Java application? I found this open-source library that I want to use in my Java application. The library is written in C and was developed under Unix/Linux, and my application will run on Windows. It's a library of mostly mathematical functions, so as far as I can te...
{ "language": "en", "url": "https://stackoverflow.com/questions/83299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How much time do you spend in Reflector? (.NET) As a consultant I get to toy around with many different products and APIs as the customer demands we use X and Y. I think it is great fun and I learn a lot from it. What will make a great developer over time is, in my opinion, the will to understand and learn new thing...
{ "language": "en", "url": "https://stackoverflow.com/questions/83313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF 3.5 WebBrowser control and ZIndex I'm trying to figure out why the control does not honor ZIndex. Example 1 - which works fine <Canvas> <Rectangle Canvas.ZIndex="1" Height="400" Width="600" Fill="Yellow"/> <Rectangle Canvas.ZIndex="2" Height="100" Width="100" Fill="Red"/> </Canvas> Example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the difference between TrueType fonts and Type-1 fonts? What is the difference between TrueType fonts and Type-1 fonts? A: The Postscript Type-1 specification was created by Adobe back in 1985 or so. Type-1 fonts are vector based. You can find the specification in "Adobe Type 1. Font Format.". TrueType font...
{ "language": "en", "url": "https://stackoverflow.com/questions/83320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How can I extract a predetermined range of lines from a text file on Unix? I have a ~23000 line SQL dump containing several databases worth of data. I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know both the start and end line numbers of the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/83329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "639" }
Q: strpos function issue in PHP not finding the needle In php I have open a .php file and want to evaluate certain lines. Specifically when the $table_id and $line variables are assigned a value. Within the text file I have: ... $table_id = 'crs_class'; // table name $screen = 'crs_class.detail...
{ "language": "en", "url": "https://stackoverflow.com/questions/83397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Interacting with Outlook appointments using rails I have a rails application running on a Linux server. I would like to interact with Outlook/Exchange 2003 appointments from the rails application. For example, certain actions should trigger sending an appointment, and then preferably accepting/canceling the appointm...
{ "language": "en", "url": "https://stackoverflow.com/questions/83402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: XML parser for JavaScript I am looking for a good JavaScript library for parsing XML data. It should be much easier to use than the built-in XML DOM parsers bundled with the browsers. I got spoiled a bit working with JSON and am looking forward to something on similar lines for XML. A: I use jQuery for this. Here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I call a SQL Server stored procedure from PowerShell? I have a large CSV file and I want to execute a stored procedure for each line. What is the best way to execute a stored procedure from PowerShell? A: Here is a function I use to execute sql commands. You just have to change $sqlCommand.CommandText to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/83410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Stored procedures a no-go in the php/mysql world? I'm quoting part of an answer which I received for another question of mine: In the PHP/MySQL world I would say stored procedures are no-go I would like to know: Is that so? Why? Why not? [edit]I mean this as a general question without a specific need in mind[/ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/83419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Remove spaces from std::string in C++ What is the preferred way to remove spaces from a string in C++? I could loop through all the characters and build a new string, but is there a better way? A: If you want to do this with an easy macro, here's one: #define REMOVE_SPACES(x) x.erase(std::remove(x.begin(), x.end(),...
{ "language": "en", "url": "https://stackoverflow.com/questions/83439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "261" }
Q: How to Update to Revision using Subclipse SVN plugin? In subclipse, the Team > Update menu option performs an "svn update -r HEAD". I want to run "svn update -r [revision number]" but can't find a menu option which will let me update to anything besides the HEAD revision. A: Subclipse used to prompt but users compl...
{ "language": "en", "url": "https://stackoverflow.com/questions/83443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: String list in SqlCommand through Parameters in C# Working with a SqlCommand in C# I've created a query that contains a IN (list...) part in the where clause. Instead of looping through my string list generating the list I need for the query (dangerous if you think in sqlInjection). I thought that I could create a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/83471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Deleting Rows from a SQL Table marked for Replication I erroneously delete all the rows from a MS SQL 2000 table that is used in merge replication (the table is on the publisher). I then compounded the issue by using a DTS operation to retrieve the rows from a backup database and repopulate the table. This has creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/83475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Google Authentication API: How to get the user's gmail address I've been studying the Google authentication API (AuthSub)... My question is, how do I get the user's account information (at least their Gmail address) after the authentication has passed? Because currently, all I get back from the authentication proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/83476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C++ class design from database schema I am writing a perl script to parse a mysql database schema and create C++ classes when necessary. My question is a pretty easy one, but us something I haven't really done before and don't know common practice. Any object of any of classes created will need to have "get" metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/83512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Select Upcoming Birthdays I'm trying to write a stored procedure to select employees who have birthdays that are upcoming. SELECT * FROM Employees WHERE Birthday > @Today AND Birthday < @Today + @NumDays This will not work because the birth year is part of Birthday, so if my birthday was '09-18-1983' that will...
{ "language": "en", "url": "https://stackoverflow.com/questions/83531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Algorithm to find which numbers from a list of size n sum to another number I have a decimal number (let's call it goal) and an array of other decimal numbers (let's call the array elements) and I need to find all the combinations of numbers from elements which sum to goal. I have a preference for a solution in C# (...
{ "language": "en", "url": "https://stackoverflow.com/questions/83547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to tie into a domain server's login for program access rights I need to write a program used internally where different users will have different abilities within the program. Rather than making users have a new username and password, how do I tie into an existing domain server's login system? Assume .NET (C#, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to know whether a given client-side startup script is already registered in an asp.net page? I have a asp.net page, and would like to know whether "script1" is already registered as a startup script or not? A: Me.ClientScript.IsStartupScriptRegistered("clientScript")
{ "language": "en", "url": "https://stackoverflow.com/questions/83558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there an efficient algorithm to generate a 2D concave hull? Having a set of (2D) points from a GIS file (a city map), I need to generate the polygon that defines the 'contour' for that map (its boundary). Its input parameters would be the points set and a 'maximum edge length'. It would then output the correspond...
{ "language": "en", "url": "https://stackoverflow.com/questions/83593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: WCF DataContracts and underlying data structures I am wondering what makes sense in relation to what objects to expose through a WCF service - should I add WCF Serialization specifications to my business entities or should I implement a converter that maps my business entities to the DataContracts that I want to exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/83604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: C++ does begin/end/rbegin/rend execute in constant time for std::set, std::map, etc? For data types such as std::set and std::map where lookup occurs in logarithmic time, is the implementation required to maintain the begin and end iterators? Does accessing begin and end imply a lookup that could occur in logarithmi...
{ "language": "en", "url": "https://stackoverflow.com/questions/83640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Shorthand if + nullable types (C#) The following returns Type of conditional expression cannot be determined because there is no implicit conversion between 'double' and '<null>' aNullableDouble = (double.TryParse(aString, out aDouble) ? aDouble : null) The reason why I can't just use aNullableBool instead of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/83653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Volumetric particles I'm toying with the idea of volumetric particles. By 'volumetric' I don't mean actually 3D model per particle - usually it's more expensive and harder to blend with other particles. What I mean is 2D particles that will look as close as possible to be volumetric. Right now what I/we have trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/83673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Mixing ActiveRecord find Conditions I want to find records on a combination of created_on >= some date AND name IN some list of names. For ">=" I'd have to use sql condition. For "IN" I'd have to use a hash of conditions where the key is :name and the value is the array of names. Is there a way to combine the two? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I display a substitute password character in a UILabel? I have a need to display a UITableView containing a user's account credentials. For this, I'm using UILabels in UITableViewCell. When I display their password, I'd obviously like to just display a placeholder password character instead of their actual pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/83687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Strategy for Fixing Layout Bugs in IE6? Generally, what's the best way to tackle a layout bug in IE6? What are the most common bugs or problems that one should look for when trying to figure out why your page suddenly looks like a monkey coded it? A: First Things First Get yourself the Internet Explorer Developer T...
{ "language": "en", "url": "https://stackoverflow.com/questions/83696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Any good resources for creating Visual Slick macros? Does any one know any good resources for creating Visual Slick macros? A: I'd start with the official community forum for SlickEdit macros. A: After the community forum - I would find the macros directory and go to town looking at all the .e files. Depending on...
{ "language": "en", "url": "https://stackoverflow.com/questions/83699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Whose responsibility is it, anyway? In the application I am writing I have a Policy class. There are 4 different types of Policy. Each Policy is weighted against the other Policies such that PolicyA > PolicyB > PolicyC > PolicyD. Who's responsibility is it to implement the logic to determine whether one Policy is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Allow user@example or user@localhost in email validation? I'm working on an email validation check and we need to decided whether to allow user@localhost and user@example (notice no .anything) to be validated as a valid email address. This is for an open source project that has a number of use cases on both the web ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What interrupt would you hook from DOS to get the real-time clock What interrupt would you hook from DOS to get the real-time clock? A: The realtime clock cannot generate interrupts. It was (maybe still is) coupled with the cmos-ram because it was buffered by the battery. It can only be accessed via the ports 0x70 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to aggregate multiple log files from several servers I need a simple way to monitor multiple text log files distributed over a number of HP-UX servers. They are a mix of text and XML log files from several distributed legacy systems. Currently we just ssh to the servers and use tail -f and grep, but that do...
{ "language": "en", "url": "https://stackoverflow.com/questions/83741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: How to access custom fields from the global class in a webhandler? I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application state object? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/83749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Semantic Web Framework What semantic web frameworks are there, and what are the advantages / disadvantages of each? I've made extensive use of Jena, and I have looked at Sesame briefly. Are there others I should consider as well? A: Redland is a good RDF framework (just like Andreas said). I am mainly using its Pyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/83752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to programmatically enable/disable network interfaces? (Windows XP) I need to enable/disable completely network interfaces from a script in Windows XP. I'm looking for a python solution, but any general way (eg WMI, some command-line à la netsh, some windows call) is welcome and will be adjusted. Thanks. A: So ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Dynamically add CalendarExtender to Textbox subclass server control? I'm trying to create a server control, which inherits from TextBox, that will automatically have a CalendarExtender attached to it. Is it possible to do this, or does my new control need to inherit from CompositeControl instead? I've tried the form...
{ "language": "en", "url": "https://stackoverflow.com/questions/83770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there any Fuzzy Search or String Similarity Functions libraries written for C#? There are similar question, but not regarding C# libraries I can use in my source code. Thank you all for your help. I've already saw lucene, but I need something more easy to search for similar strings and without the overhead of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/83777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: How do I programmatically build ad-hoc queries quickly? I've used Excel PivotTable to analyze data from my database because it allows me to "slice and dice" very quickly. As we know what is in our database tables, we all can write SQL queries that do what PivotTable does. But I am wondering why PivotTable can const...
{ "language": "en", "url": "https://stackoverflow.com/questions/83779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get date picture created in java I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date from the file. I believe the information is stored within the file as the date I see when I hover ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I find the definition of a named constraint in Oracle? All I know about the constraint is it's name (SYS_C003415), but I want to see it's definition. A: Another option would be to reverse engineer the DDL... DBMS_METADATA.GET_DDL('CONSTRAINT', 'SYS_C003415') Some examples here.... http://www.psoug.org/refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/83807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Home key go to start of line in Visual Studio? Where is the option in Visual Studio to make the Home key go to the start of the line? Right now you have to do Home,Home or Home, Ctrl+Left Arrow i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it. A: From asking the same que...
{ "language": "en", "url": "https://stackoverflow.com/questions/83808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Is there a Functional Programming library for .NET? For example, in Java there is Functional Java and Higher-Order Java. Both essentially give a small API for manipulating higher-order, curried functions, and perhaps a few new data types (tuples, immutable lists). A: have you looked into F#? Also a neat blog post ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: how to replace multiple strings together in Oracle I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value , {2} with some value and {3} with some value . Is it Possible to replace all 3 in one replace function ? or is there any way I can directly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I create and develop new database projects in Visual Studio? I want to find a way to develop database projects quickly in Visual Studio. Any ideas? A: I have a method of creating and updating database projects in Visual Studio 2005 that I thought was common knowledge. After asking a few coworkers if they k...
{ "language": "en", "url": "https://stackoverflow.com/questions/83863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to detect the target class in static methods? Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class. <?php abstract class ParentClass { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/83887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }