text
string
meta
dict
Q: How long does it take to become reasonably proficient in Oracle given SQL Server In applying for jobs via agents I sometimes get blocked by an agent who says do you know software package X. When I reply that I know the similar package Y they might say unless you know X I cannot put you forward. The problem is that s...
{ "language": "en", "url": "https://stackoverflow.com/questions/182534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting XML Datetime to SQL Datetime I have an XML datatype and want to convert an element into a sql DateTime variable. How? e.g. Declare @Xml Xml Set @Xml = '<Root><DateFrom>2008-10-31T00:00:00</DateFrom></Root>' Declare @DateFrom DateTime Set @DateFrom = ????? How can I set @DateFrom with the date from the x...
{ "language": "en", "url": "https://stackoverflow.com/questions/182541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Email Address Validation for ASP.NET What do you use to validate an email address on a ASP.NET form. I want to make sure that it contains no XSS exploits. This is ASP.NET 1.1 A: You can use a RegularExpression validator. The ValidationExpression property has a button you can press in Visual Studio's property's pane...
{ "language": "en", "url": "https://stackoverflow.com/questions/182542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: SQL to find duplicate entries (within a group) SQL to find duplicate entries (within a group) I have a small problem and I'm not sure what would be the best way to fix it, as I only have limited access to the database (Oracle) itself. In our Table "EVENT" we have about 160k entries, each EVENT has a GROUPID and a no...
{ "language": "en", "url": "https://stackoverflow.com/questions/182544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Automatically applying a template (theme) in Silverlight 2 (RC0) Is there a way to automatically apply a theme/template/style to all controls of the targettype, so I don't have to specify Template=..., Style=... on all controls? A: I thought there was a way to do this by just omitting the x:Key attribute, but that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microsecond accurate (or better) process timing in Linux I need a very accurate way to time parts of my program. I could use the regular high-resolution clock for this, but that will return wallclock time, which is not what I need: I needthe time spent running only my process. I distinctly remember seeing a Linux ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/182554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Can I upgrade an ASP.NET web service to WCF and still call it from ASP.NET 1.1? I need to make a change to an ASP.NET web service written a couple years ago on 2.0. I call this web service from an old 1.1 web site. I need to make some changes to the web service, so am thinking, should I rewrite this into a WCF ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/182558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing network shares from a service I am creating a service that needs to run on Windows 2000, XP, 2003, 2008 & Vista. The service needs to access a network share as part of its processing. For XP and beyond the service can be running as the Network Service account but what's the equivalent in Windows 2000? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Row number in Sybase tables Sybase db tables do not have a concept of self updating row numbers. However , for one of the modules , I require the presence of rownumber corresponding to each row in the database such that max(Column) would always tell me the number of rows in the table. I thought I'll introduce an int...
{ "language": "en", "url": "https://stackoverflow.com/questions/182569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: The dangers of using ExtJS on a big project with RoR? We are developing a considerably big application using Ruby on Rails framework (CRM system) and are considering to rewrite it to use ExtJS so that Rails would just do the data handling, while ExtJS would do all the browser heavylifting in a desktop-like manner. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: PowerShell: CLI or GUI - which do you need or prefer? PowerShell v1.0 is obviously a console based administrative shell. It doesn't really require a GUI interface. If one is required, like the Exchange 2007 management GUI, it is built on top of PowerShell. You can create your own GUI using Windows Forms in a PowerSh...
{ "language": "en", "url": "https://stackoverflow.com/questions/182573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using Javascript With ASP.Net controls Is there a best practice when it comes to setting client side "onclick" events when using ASP.Net controls? Simply adding the onclick attribute results in a Visual Studio warning that onclick is not a valid attribute of that control. Adding it during the Page_Load event throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/182587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL driver segfaulting under mod_perl - where to look for issue I have a webapp that segfaults when the database in restarted and it tries to use the old connections. Running it under gdb --args apache -X leads to the following output: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212...
{ "language": "en", "url": "https://stackoverflow.com/questions/182592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to output video to a texture in Java? I need to put video playback to my game, and the video must be in a texture so that it is played inside the game world. I am using Java (Java3D, JOGL). Any idea on how I can do this? A: Decode the video using whatever codec you need (in Java this may require JNI). Copy the...
{ "language": "en", "url": "https://stackoverflow.com/questions/182594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should one use < or <= in a for loop If you had to iterate through a loop 7 times, would you use: for (int i = 0; i < 7; i++) or: for (int i = 0; i <= 6; i++) There are two considerations: * *performance *readability For performance I'm assuming Java or C#. Does it matter if "less than" or "less than or eq...
{ "language": "en", "url": "https://stackoverflow.com/questions/182600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: How do I trigger a BulletedList in LinkButton-mode with javascript? I have a BulletedList in asp.net that is set to DisplayMode="LinkButton". I would like to trigger the first "bullet" from a javascript, can this be done? And if so, how? A: Say you have the BulletedList as <asp:BulletedList runat="server" ID="MyLov...
{ "language": "en", "url": "https://stackoverflow.com/questions/182602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does my RSS feed duplicate some entries? When reading my RSS feed with the Thunderbird feed reader, some entries are duplicated. Google Reader does not have the same problem. Here is the faulty feed: http://plcoder.net/rss.php?rss=Blog There is a problem, but where? I added a GUID, but the problem remains. Other...
{ "language": "en", "url": "https://stackoverflow.com/questions/182615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Exceptions Thrown (Errors Encountered) After Program Termination I have an application that seems to throw exceptions only after the program has been closed. And it is very inconsistent. (We all know how fun inconsistent bugs are...) My guess is there is an error during the clean up process. But these memory read/...
{ "language": "en", "url": "https://stackoverflow.com/questions/182622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How long to get up to speed with ASP.NET? This question is similar to my earlier question. I have used ASP .Net in Visual Studio 2005 about 4 years ago. How long would it take to get back up to speed with the latest versions? A: That depends on how much you "used" it. An experienced developer should have no troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/182627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery Tips and Tricks Syntax * *Shorthand for the ready-event by roosteronacid *Line breaks and chainability by roosteronacid *Nesting filters by Nathan Long *Cache a collection and execute commands on the same line by roosteronacid *Contains selector by roosteronacid *Defining properties at element creatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/182630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "507" }
Q: How can I match a pipe character followed by whitespace and another pipe? I am trying to find all matches in a string that begins with | |. I have tried: if ($line =~ m/^\\\|\s\\\|/) which didn't work. Any ideas? A: Pipe character should be escaped with a single backslash in a Perl regex. (Perl regexes are a bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/182635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to determine the class of a generic type? I'm creating a generic class and in one of the methods I need to know the Class of the generic type currently in use. The reason is that one of the method's I call expects this as an argument. Example: public class MyGenericClass<T> { public void doSomething() { //...
{ "language": "en", "url": "https://stackoverflow.com/questions/182636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How should I install Linux on Windows Vista PC? I am doing .net programming in addition to c and c++ development and want more flexibility on my home machine. I want to be able to have both Linux (probably Ubuntu) and Windows Vista on my home computer. Is there a way I can install both and on boot be prompted for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I display the first letter as uppercase? I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe fname being John and lname being Doe A: An example from php.net: $bar = 'HELLO WORLD!'; $bar = ucfirst($bar); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to set expectations for calls which will be made on another thread in Rhino Mocks I have a class which is designed to spin up a background thread, from which calls will be made into a manager. This manager will be mocked for the purposes of unit test. The relevant fragment of code is: MockRepository mocks = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/182648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Print Design for .NET I have a project that I'm working on and I need to be able to print out ID cards from the program. Are there any products out there that are reasonably priced so I can design a document for print and use it in .NET? I'm trying to avoid using System.Drawing from having to do it manually b...
{ "language": "en", "url": "https://stackoverflow.com/questions/182670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why are some PHP errors not written in the PHP log? On a server I have to take care of, errors from a vhost do not go to the standard PHP error log. In the php.ini we have log = /var/log/file and phpinfo() does not show any difference between the vhost and the whole server. But the callback function set up by set...
{ "language": "en", "url": "https://stackoverflow.com/questions/182675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LinqToSql referenced entities will throw NullReferenceException I have a very interesting problem on my LinqToSql model. On some of my tables i have a references to other tables and in LinqToSql this is represented by a EnitiyRef class, when you are trying to access the references table LinqToSql will load the refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/182683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VS2008 Start Page replacement I really don't like the VS2008 Start Page. I don't need the RSS reader, Getting started or Headlines. The only thing useful is "Recent Projects" Is there a way to customize it or replace with a better one? It will be nice that the page contains Favorites Projects and Recent projects. P....
{ "language": "en", "url": "https://stackoverflow.com/questions/182691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I send a binary attachment in an email with Java using the JavaMail API? Using JDK1.5 how does one send a binary attachemnt (such as a PDF file) easily using the JavaMail API? A: Have you looked at the JavaMail FAQ? It seems to have little snippets to demonstrate the process (and how to fix a common problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What design patterns have you used in your WPF efforts and which do you like? I have been looking at the Model-View-ViewModel pattern that is suggested by several people out there (especially John Gossman, take a look at this post and this podcast), but what other patterns (if any) have people used and liked ... and...
{ "language": "en", "url": "https://stackoverflow.com/questions/182707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Odd exception thrown in .NET Exception Thrown: "System.ComponentModel.ReflectPropertyDescriptor is not marked as Serializable" Does this mean I missed marking something as serializable myself, or is this something beyond my control? A: Can you give more context as to when this happens, and with which serializer? Mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/182711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does Twitter Help You Become a Better Developer or Distract You? Since I've joined twitter I have found it very helpful to keep my finger on the pulse of technology and where it is going. I follow many of the top Microsoft developers and find it interesting to see their struggles, opinions, and influences... * *c...
{ "language": "en", "url": "https://stackoverflow.com/questions/182714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Spring + Hibernate: how to have a configurable PK generator? We use Spring + Hibernate for a Webapp. This Webapp will be deployed on two unrelated production sites. These two production sites will use the Webapp to generate and use Person data in parallel. What I need to do, is to make sure that the Persons generate...
{ "language": "en", "url": "https://stackoverflow.com/questions/182721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to enumerate the wxFrame children in wxWidgets? I'm using the wxGlade designer to generate the GUI for a small application. It generates a class, inherited from wxFrame, which is the main application window. In order to facilitate the maintenance, I'd like to avoid writing additional code in this gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/182739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WorkFlow Unit Testing How to unit test the windows workflows? A: K. Scott Allen has posted this, which provides an approach to unit testing custom activities (although he says that he is not satisfied). A similar approach is presented by Ron Jacobs here and here. Another approach is presented by Maurice here and he...
{ "language": "en", "url": "https://stackoverflow.com/questions/182740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I calculate the last day of the month in SQL? Specifically MSSQL 2005. A: SELECT DATEADD(M, DATEDIFF(M, '1990-01-01T00:00:00.000', CURRENT_TIMESTAMP), '1990-01-31T00:00:00.000') Explanation: General approach: use temporal functionality. SELECT '1990-01-01T00:00:00.000', '1990-01-31T00:00:00.000' These are...
{ "language": "en", "url": "https://stackoverflow.com/questions/182742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: .NET IExtenderProvider (C#) I'm trying to extend the TextBox, ComboBox and Panel controls using IExtenderProvider but I cannot get it to work properly. I'm starting to believe that I haven't understood the concept completely. Does anybody know any good resources on the web (with examples) on how IExtenderProvider is...
{ "language": "en", "url": "https://stackoverflow.com/questions/182748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do you change the way you think when moving between Java and C# This is a question for anyone who has the pleasure to work in both Java and C#. Do you find that you have to make a mental context switch of some kind when you move from one to the other? I'm working in both at the moment and because the syntax and libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/182749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Map a network drive to be used by a service Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service's session when the service is started? Logging in as the service user and creating a persistent mapping will not establish th...
{ "language": "en", "url": "https://stackoverflow.com/questions/182750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: How can I make Silverlight controls invisible to mouse actions? How can I get a UIElement to ignore mouse clicks on it and pass it through to the control behind it? I have a 50% transparent UIElement which covers another element. When I attempt to click on the background element, the mouse click is captured by the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/182771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Importing data to MySQL from MS SQL I want to import data from MS SQL Server, run it through some sort of regexp to filter out stuff, and import it into MySQL. I then, for each query, wish to display a relevant image from a third database. What would be the easiest way to do this, importing and linking wise? Thank y...
{ "language": "en", "url": "https://stackoverflow.com/questions/182784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I monitor a directory for newly uploaded files? I need to create a windows service that will monitor a directory for newly uploaded files. The files will be around 100K to 400K in size. Is there a chance that my monitoring system will notice a new file, but the file hasn't completetly finished copying over? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.Net error: "Cannot use a leading .. to exit above the top directory" I'm seeing this error several times an hour on my production site and am not quite sure how to fix it. I've grepped the source code and I am not using "../" anywhere in my code to generate a path. My application is running on IIS6 on Win2003 Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/182858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Download attachment from a web service without using WSE? Is there any way to download attachment from a web service without using WSE in C#? A: If you mean download a file, you can return byte[] from your web method
{ "language": "en", "url": "https://stackoverflow.com/questions/182859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing rails partial views standalone I'm using Test/Unit with a standard rails 2.1 project. I would like to be able to test Partial Views in isolation from any particular controller / action. It seemed as though ZenTest's Test::Rails::ViewTestCase would help, but I couldn't get it working, similarly with view_test...
{ "language": "en", "url": "https://stackoverflow.com/questions/182865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to test whether method return type matches List What is the easiest way to test (using reflection), whether given method (i.e. java.lang.Method instance) has a return type, which can be safely casted to List<String>? Consider this snippet: public static class StringList extends ArrayList<String> {} public List<...
{ "language": "en", "url": "https://stackoverflow.com/questions/182872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Serializable Inheritance If something inherits from a Serializable class, is the child class still Serializable? A: It depends what you mean be serializable. If you mean the CLI marker (i.e. the [Serializable] attribute), then this is not inherited (proof below). You must explicitly mark each derived class as [Seri...
{ "language": "en", "url": "https://stackoverflow.com/questions/182873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Sharepoint disaster recovery What are your disaster recovery plans for Windows Sharepoint Services 3.0 ? Currently we are backuping all databases (1 content, admin, search and config) using sql backup tools, and backuping the front end server via dataprotector. To test our backups, we use another server farm, restor...
{ "language": "en", "url": "https://stackoverflow.com/questions/182874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Free tool to Create/Edit PNG Images? Is there any free tool available for creating and editing PNG Images? A: Paint.NET will create and edit PNGs with gusto. It's an excellent program in many respects. It's free as in beer and speech. A: Inkscape is a vector drawing program that exports PNG images. So, you end u...
{ "language": "en", "url": "https://stackoverflow.com/questions/182875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: IBM Websphere OutOfMemoryException Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur because my application retrieve Huge data from database. So, I limit all query don't retreive data more than 1000 records and set JVM of WAS follow + Verbose garbage collection + M...
{ "language": "en", "url": "https://stackoverflow.com/questions/182876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Render App.config/Web.config files via XSLT Does anyone have an XSLT that will take the app.config and render it into a non-techie palatable format? The purpose being mainly informational, but with the nice side-effect of validating the XML (if it's been made invalid, it won't render) A: First draft at a solution t...
{ "language": "en", "url": "https://stackoverflow.com/questions/182891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Quickest way to implement a searchable, browsable image gallery - flickr integration? I have a friend who is need of a web page. He does interior construction, and would like to have a gallery of his work. I'll probably go for a php host, and was thinking about the best way to implement the image gallery for him. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Determine highest .NET Framework version I need to determine the highest .NET framework version installed on a desktop machine from C\C++ code. Looks like I can iterate the folders under %systemroot%\Microsoft.NET\Framework, but that seems kind of error prone. Is there a better way? Perhaps a registry key I can i...
{ "language": "en", "url": "https://stackoverflow.com/questions/182910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: ListBox retains posted value even after being databound Please note that the problem described below is almost the exact opposite to the common problem of "my control shows the same value every time the page loads. I understand the behavior expressed is generally not desirable. I have a listbox which is being datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/182919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Winforms toolbar of buttons wrapping . I am dynamically added a bunch of buttons to a toolbar. I want the ability to programatically make it wrap onto a second row if the number of buttons exceeds the horizontal space in the current form. I dont want users to have to click the dropdown button to view more buttons...
{ "language": "en", "url": "https://stackoverflow.com/questions/182925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write an automatic "copy, check-out, change and check-in"-script for svn we have a template project we often copy. so we can costumize the copy and still have a common template. To optimize the "copy & initial changes"-process, i though that i can write a little script, that does the following: * *copy the...
{ "language": "en", "url": "https://stackoverflow.com/questions/182928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In an Oracle cluster will sysdate always return a consistent answer? In an Oracle cluster (more than one machine co-operating to serve one database) will the "sysdate" function always return a consistent answer? Even if the servers' Operating System clock reports inconsistent values? A: SYSDATE is node OS related; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to see what will be updated from repository before issuing "svn update" command? I've committed changes in numerous files to a SVN repository from Eclipse. I then go to website directory on the linux box where I want to update these changes from the repository to the directory there. I want to say "svn update pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/182945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: Position in Vector using STL im trying to locate the position of the minimum value in a vector, using STL find algorithm (and the min_element algorithm), but instead of returning the postion, its just giving me the value. E.g, if the minimum value is it, is position will be returned as 8 etc. What am I doing wrong h...
{ "language": "en", "url": "https://stackoverflow.com/questions/182957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Static library - visual studio 2005/6.0 compatibility In the past we experienced some problems using a DLL library created with Visual Studio 2005 in our Visual Studio 6.0 application (VS2005 DLL was C++ unmanaged, of course). In your opinion can we fall in the same kind of problem if the library is static (*.lib) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/182965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is more efficient for parsing Xml, XPath with XmlDocuments, XSLT or Linq? I have parsed XML using both of the following two methods... * *Parsing the XmlDocument using the object model and XPath queries. *XSL/T But I have never used... * *The Linq Xml object model that was new to .Net 3.5 Can anyone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: ASP.NET- Instantiate a Web User Control in App_Code class Files: Website\Controls\map.ascx Website\App_Code\map.cs I'd like to create a strongly typed instance of map.ascx in map.cs Normally, in an aspx, you would add a <%Register... tag to be able to instantiate in codebehind. Is this possible in an app_code class?...
{ "language": "en", "url": "https://stackoverflow.com/questions/182984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to draw ARGB bitmap using GDI+? I have valid HBITMAP handle of ARGB type. How to draw it using GDI+? I've tried method: graphics.DrawImage(Bitmap::FromHBITMAP(m_hBitmap, NULL), 0, 0); But it doesn't use alpha channel. A: I've got working sample: Get info using bitmap handle: image size, bits BITMAP bmpInfo; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET MVC in a virtual directory I have the following in my Global.asax.cs routes.MapRoute( "Arrival", "{partnerID}", new { controller = "Search", action = "Index", partnerID="1000" } ); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/182993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Build C project automaticly I'm working on a free software (bsd license) project with others. We're searching for a system that check out our source code (svn) and build it also as test it (unit tests with Check / other tools). It should have a webbased interface and generate reports. I hope we don't have to write s...
{ "language": "en", "url": "https://stackoverflow.com/questions/183001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Protect Excel Worksheet for format and size and allow only for entry I am creating an XLS worksheet that would be used to collect data from the users. I have restricted the user input using validations. In order to easily be able to print the worksheet i have set the lenghts of the columns. Have made the relevant co...
{ "language": "en", "url": "https://stackoverflow.com/questions/183002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get a reference to a table row with a specific value in jQuery I'm trying to highlight just one specific row in a table using jQuery. The row will have an 'active' status. I have seen plenty of examples online which show how to do zebra striping for alternate row styling. Does anyone know of a jQuery expressi...
{ "language": "en", "url": "https://stackoverflow.com/questions/183004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Google Earth Error A friend of mine has embedded a google earth plugin into a C# user control. All works fine but when you close the window we recieve and "Unspecified Error" with the option to continue running the scripts or not. From our tracking it down it appears this is being cause by a script that google is...
{ "language": "en", "url": "https://stackoverflow.com/questions/183009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate: comparing current & previous record I want to compare the current value of an in-memory Hibernate entity with the value in the database: HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); MyEntity ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using top clause in Access sub report I'm making a report in Access 2003 that contains a sub report of related records. Within the sub report, I want the top two records only. When I add "TOP 2" to the sub report's query, it seems to select the top two records before it filters on the link fields. How do I get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/183016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Removing Cache Busting in Rails Production When i deploy a rails application in production mode, it appends a date-time string as a query param to the end of all the static asset urls. This is to prevent browsers using old-out of date cahed copies of the assets after I redeploy the application. Is there a way to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/183017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to read sql_variant database type in C# Looking into System.Data.DbType there is no SqlVariant type there. SqlDataReader, for example, provides the GetString method for reading into string variable. What is the appropriate way to retrieve data from the database field of type sql_variant, presumably into object? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Discover what process/query is using the oracle SGA I have a query to monitor SGA (non-)utilisation: select sum(bytes)/1024/1024 " SGA Free " from v$sgastat where name='free memory'; That's great, but I need more detail about what exactly is using the space. Essentially, I'm looking for clues to tell me more precis...
{ "language": "en", "url": "https://stackoverflow.com/questions/183021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drop-shadows text: CSS or graphic? I have an internal web app with an image at the top of the page, currently containing some english text with drop shadows. I now need to provide localized versions of this page for various languages. My main choices are: Have a different graphic per supported language, containing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Send a list of IDs to a SQL Server stored procedure from c# Is it possible to send a list of IDs to a stored procedure from c#? UPDATE Germs SET Mutated = ~Mutated WHERE (GermID IN (ids)) A: This may be a dirty hack, but you can create a temp table and then join to it from within your stored procedure (assuming th...
{ "language": "en", "url": "https://stackoverflow.com/questions/183032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Improve speed performances in C# This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together: * *Firstly: Given an established C# project, what are some decent ways to speed it up beyond just plain in-code optimization? *Secondly: When writing a program fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/183033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: WPF ComboBox doesn't stay open when used in a Task Pane I have a strange bug with WPF Interop and an Excel Addin. I'm using .Net 3.5 SP1. I'm using Add-in Express to create a Custom Task Pane for Excel 2003. Within that taskpane I'm using ElementHost to host a WPF UserControl. The UserControl simply contains a Grid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Current Cursor Position when Using the Prawn Ruby Library I'm using the Prawn Ruby library (http://prawn.majesticseacreature.com/) to generate some pdf documents. I draw a table without any problem. Next, I want to insert some lines after the table for various people's signatures. Before I draw the lines, I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/183039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Graphing/Crystal Reports with ASP.Net MVC I would like to add graphing to my User Controls in ASP.NET MVC. I am hoping for some ideas or a guide on how to approach this issue. I have searched around and found no helpful answers to resolve this issue. I was thinking of doing crystal reports but they don't boat over w...
{ "language": "en", "url": "https://stackoverflow.com/questions/183041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I use UUIDs in SQLAlchemy? Is there a way to define a column (primary key) as a UUID in SQLAlchemy if using PostgreSQL (Postgres)? A: I wrote this and the domain is gone but here's the guts.... Regardless of how my colleagues who really care about proper database design feel about UUID's and GUIDs used for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: CSS 'schema' how-to How does one go about establishing a CSS 'schema', or hierarchy, of general element styles, nested element styles, and classed element styles. For a rank novice like me, the amount of information in stylesheets I view is completely overwhelming. What process does one follow in creating a well f...
{ "language": "en", "url": "https://stackoverflow.com/questions/183062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I customize the behavior of "cut" in Eclipse? My normal IDE is Visual Studio, but I'm currently doing some development in Eclipse for the first time. If you press Ctrl-X with text selected in either program, it cuts the text and puts on the clipboard exactly as you'd expect. If press Ctrl-X with no text sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/183071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a hotkey to speed up the repetitive commits in Eclipse (or a general windows GUI macro tool)? I am making numerous, minute changes to .php files in Eclipse PDT then committing them and testing on the server. The repetitive six-step commit process is getting tedious: right-click team Commit... click "choose ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fetch value from another row within the same data pipleline? I have data loaded and various transformations on the data complete, the problem is there is a parent/child relationship managed in the data - best explained by an example each row has (column names are made up) row_key parent_row_key row_name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help writing a custom BuildListener I would like to add a BuildListener to my headless build process, which is building an Eclipse product. The docs on how to do this are, shall we say, a bit scanty. I think I need to put my custom jar in a plugin and then use the org.eclipse.ant.core.extraClasspathEntries exte...
{ "language": "en", "url": "https://stackoverflow.com/questions/183083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to determine if the application is an MFC program? I have a compiled GUI application. I need to learn whether it is programmed using MFC libraries. Depends.exe does not return any dependency to MFC42*.dll. Is there any tool to get additional information about executables? (If possible not just the libraries, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/183086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Capistrano for Java? I'm a big fan of Capistrano but I need to develop an automated deployment script for a Java-only shop. I've looked at Ant and Maven and they don't seem to be well geared towards remote administration the way Capistrano is - they seem much more focused on simply building and packaging applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/183091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Vb6 "Tag" property equivalent in ASP.Net? I'm looking for ideas and opinions here, not a "real answer", I guess... Back in the old VB6 days, there was this property called "Tag" in all controls, that was a useful way to store custom information related to a control. Every single control had it, and all was bliss... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MFC List Control scrolling shows extra grid lines I use the MFC list control in report view with grid lines to display data in a vaguely spreadsheet manner. Sometimes when the user scrolls vertically through the control, extra grid lines are drawn, which looks terrible. This does not happen when the slider or the mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/183101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is object code generated for unused template class methods? I have a C++ template class that gets instantiated with 3 different type parameters. There's a method that the class needs to have for only one of those types and that isn't ever called with the two other types. Will object code for that method be generated...
{ "language": "en", "url": "https://stackoverflow.com/questions/183108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I play background music in my iPhone game? Possible Duplicate: iPhone/iPad - Loop Background Music? The official iphone docs aren't bad, but I'm finding them pretty unhelpful on this subject - all I can find is an API for playing midi files, but that's not what I want. I just want to play an MP3 in the bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/183112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: 'Un-SVN' a working copy I have a folder that is my working copy. How do I remove all SVN functionality from this folder? There is a reason for me doing this, somehow my master folder that contains all my working copies of sites, has somehow been turned into a working copy itself, so I have a working copy within itse...
{ "language": "en", "url": "https://stackoverflow.com/questions/183114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How to disable all apache virtual hosts? I'm writing a shell script to do some web server configuration. I need to disable all currently active virtual hosts. a2dissite doesn't accept multiple arguments, so I can't do a2dissite `ls /etc/apache2/sites-enabled` Should I use find? Is it safe to manually delete the sym...
{ "language": "en", "url": "https://stackoverflow.com/questions/183115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Windows Forms: Screen capture when running non-graphically (i.e. screensaver is active) I've got an application that is very graphics intensive and built on DirectX and Windows Forms. It has an automation and replay framework around which is built an automated testing system. Unfortunately, when the tests run unatte...
{ "language": "en", "url": "https://stackoverflow.com/questions/183118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple random values in SQL Server 2005 I need to generate multiple random values under SQL Server 2005 and somehow this simply wont work with Random(Value) as ( select rand() Value union all select rand() from Random )select top 10 * from Random Whats the preffered workaround? A: have you tries...
{ "language": "en", "url": "https://stackoverflow.com/questions/183124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you decide if something goes in the view or the controller? (Zend Framework) How do you decide if something goes in the view or the controller? Here are some specific examples: * *Zend_Captcha: Does the controller generate the captcha and pass it to the view or does the view generate it? *Zend_Alc: Does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/183131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stored Procedure Versioning How do you manage revisions of stored procedures? We have a BI solution on SQL Server 2005 with hundreds of stored procedures. What would be a good way to get these into Subversion? What are your recommended tools to script stored procedures to files? A: There are doubtless a bunch of o...
{ "language": "en", "url": "https://stackoverflow.com/questions/183148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Visual Studio and Virus Scan of Temp folder We are using Visual Studio 2008 as our primary development IDE. Our security team has set up McAfee to scan files in our \Local Settings\Temp folder. Unfortunately VS uses this directory during code builds which is slowing the developers down. We've reached an impasse w...
{ "language": "en", "url": "https://stackoverflow.com/questions/183153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: What is the appropriate amount of error-checking? public void PublicMethod(FooBar fooBar) { if (fooBar == null) throw new ArgumentNullException("fooBar", "fooBar cannot be null"); // log the call [added: Thanks S.Lott] _logger.Log("PublicMethod called with fooBar class " + fooBar.Classification...
{ "language": "en", "url": "https://stackoverflow.com/questions/183158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }