text
string
meta
dict
Q: How do I determine what files in my ClearCase local view have not yet been added to source control? If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control? A: Your answer is correct, for snapshot views (which you...
{ "language": "en", "url": "https://stackoverflow.com/questions/191855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: "Class not Registered" restoring a Sharepoint ( WSS ) 2003 backup.dat file I need to do some work with a backup WSS .dat file and I'm having real trouble making it do anything. I've got it installed through stsadm and that appears to have gone smoothly, but the site now redirects me to an error page - just the class...
{ "language": "en", "url": "https://stackoverflow.com/questions/191861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determining 64-bit vs. 32-bit Windows I'd like to configure visual studio 2005 to copy .dll's based on whether the OS is 64-bit or 32-bit during a build. I do not want to specify what the platform target is. My first attempt was to use a batch file to lookup the Windows version, but some 32-bit and 64-bit versions...
{ "language": "en", "url": "https://stackoverflow.com/questions/191873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Are there any classes (or methods) that can create a formatted connection string, given a provider name and user id, password etc? Eg. ConnectionDetails cd = new ConnectionDetails (); cd.ProviderName = "System.Data.OleDb"; cd.DataSource = "serverAddress"; cd.Catalog = "database"; cd.UserId = "userId"; cd.Password = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Serializing to JSON in jQuery I need to serialize an object to JSON. I'm using jQuery. Is there a "standard" way to do this? My specific situation: I have an array defined as shown below: var countries = new Array(); countries[0] = 'ga'; countries[1] = 'cd'; ... and I need to turn this into a string to pass to $.aj...
{ "language": "en", "url": "https://stackoverflow.com/questions/191881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1232" }
Q: How can I use array-references inside arrays in PHP? I want to be able to do the following: $normal_array = array(); $array_of_arrayrefs = array( &$normal_array ); // Here I want to access the $normal_array reference **as a reference**, // but that doesn't work obviously. How to do it? end( $array_of_arrayref...
{ "language": "en", "url": "https://stackoverflow.com/questions/191883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I profile a SQL CLR application? I have a SQL CLR function in SQL Server 2005. I want to profile this function to make sure there are no memory leaks. Any recommendations on how to determine if my function is behaving properly? A: Memory leaks are atypical for CLR applications, so that should be of little ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Castle Windsor: How to wire up a component to a factory property rather than method I have the following component public class MyTimer : IMyTimer { public MyTimer(TimeSpan timespan){...} } Where timespan should be provided by the property ISettings.MyTimerFrequency. How do I wire this up in windsor container xm...
{ "language": "en", "url": "https://stackoverflow.com/questions/191894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Way to Store/Access a Directed Graph I have around 3500 flood control facilities that I would like to represent as a network to determine flow paths (essentially a directed graph). I'm currently using SqlServer and a CTE to recursively examine all the nodes and their upstream components and this works as long a...
{ "language": "en", "url": "https://stackoverflow.com/questions/191897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Which .Net Timer() to use I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding functionality to. One of the additions is a warning which needs to be raised when the current time nears a specified value (a deadline). My intention is to check the time once an hour until there is less than an hour until the...
{ "language": "en", "url": "https://stackoverflow.com/questions/191903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I iterate through DOM elements in PHP? I have an XML file loaded into a DOM document, I wish to iterate through all 'foo' tags, getting values from every tag below it. I know I can get values via $element = $dom->getElementsByTagName('foo')->item(0); foreach($element->childNodes as $node){ $data[$node->...
{ "language": "en", "url": "https://stackoverflow.com/questions/191923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: MS SQL Concurrency, excess Locks I have a database on ms sql 2000 that is being hit by hundreds of users at a time. There are intense reports using reporting services 2005 hitting the same database. When there are lots of reports running and people using the database concurrently we see blocking processes to the lev...
{ "language": "en", "url": "https://stackoverflow.com/questions/191926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a convention to the order of modifiers in C#? If I were to use more than one, what order should I use modifier keywords such as: public, private, protected, virtual, abstract, override, new, static, internal, sealed, and any others I'm forgetting. A: I had a look at Microsoft's Framework Design Guidelines ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Does anyone have database, programming language/framework suggestions for a GUI point of sale system? Our company has a point of sale system with many extras, such as ordering and receiving functionality, sales and order history etc. Our main issue is that the system was not designed properly from the ground up, so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C# Generics won't allow Delegate Type Constraints Is it possible to define a class in C# such that class GenericCollection<T> : SomeBaseCollection<T> where T : Delegate I couldn't for the life of me accomplish this last night in .NET 3.5. I tried using delegate, Delegate, Action<T> and Func<T, T> It seems to me tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/191940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: CIL stack exchange instruction Is there a CIL instruction to exchange the first two elements in the stack? A: No. The only way to swap elements is to pop the top two elements to locals, then push them in reverse order. A: There is no single instruction exchange. However, using stloc, pop, and ldloc, you should be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to resolve incorrect "Ambiguous reference" from ReSharper on class inheritance? In my project I have a class that is inherited by many other classes. We'll call it ClassBase. public class ClassInheritFromBase : ClassBase When ClassBase is being inherited, ReSharper throws an "Ambiguous reference" warning on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/191950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Index of Linq Error If I have the following Linq code: context.Table1s.InsertOnSubmit(t); context.Table1s.InsertOnSubmit(t2); context.Table1s.InsertOnSubmit(t3); context.SubmitChanges(); And I get a database error due to the 2nd insert, Linq throws an exception that there was an error. But, is there a way to find...
{ "language": "en", "url": "https://stackoverflow.com/questions/191952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using a tristate parameter in a stored procedure What is the correct way to do this? For example, how would I change a stored procedure with this signature: CREATE PROCEDURE dbo.MyProcedure @Param BIT = NULL AS SELECT * FROM dbo.SomeTable T WHERE T.SomeColumn = @Param So that giving @Param with a value of 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/191955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Would you show things an Actor cannot do on a Use Case diagram? On a Use Case diagram can you show things that an actor cannot do, for example because they won't have permissions to do it? Or is it just implied due to the fact that they won't have a line joining them to the particular use case? A: If the Use Case y...
{ "language": "en", "url": "https://stackoverflow.com/questions/191967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: NT AUTHORITY\NETWORK SERVICE issue when deploying on remote server SQL 2005 I am getting a very non specific error when trying to connect to SQL server on remote server. I feel like I have made all the correct settings, allow TCP/IP, restarted the service, added rights to NT AUTHORITY\NETWORK SERVICE and other relat...
{ "language": "en", "url": "https://stackoverflow.com/questions/191970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What relational database innovations have there been in the last 10 years The SQL implementation of relational databases has been around in their current form for something like 25 years (since System R and Ingres). Even the main (loosely adhered to) standard is ANSI-92 (although there were later updates) is a good...
{ "language": "en", "url": "https://stackoverflow.com/questions/191974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In an MFC application, what's the easiest way to copy a file from one directory to another? Should I create two CFile objects and copy one into the other character by character? Or is there something in the library that will do this for me? A: It depends on what you want to do. There are a number of ways to copy f...
{ "language": "en", "url": "https://stackoverflow.com/questions/191980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Winforms navigation bar control - like Explorer Address Bar Can anyone recommend a .NET winforms control that offers similar functionality to the address bar in Windows Explorer, auto-completing file paths? I'm not too bothered about Vista-style breadcrumbs - quite happy with a simple XP-style textbox-only appearanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/191982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SD card write performance I am writing a little application, which is writing jpeg images at a constant rate on a SD card. I choose an EXT3 filesystem, but the same behaviour was observed with an EXT2 filesystem. My writing loop looks like this : get_image() fwrite() fsync() Or like this : get_image() fopen() fwri...
{ "language": "en", "url": "https://stackoverflow.com/questions/191984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual Studio 2005 quick file search In Eclispe you can do Ctrl+Shift+R and a Window popup where you can write the name of the file (or just the beginning of it) and to press enter to go directly to the file. What is the equivalence in Visual Studio 2005? (Ctrl+Shift+F is not what I would like). A: From Top 11 VS 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/191995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which Gantt chart/Project management tool would you recommend for linux? I need a Project management tool that works in Linux, and has Gantt charts. * *It doesn't have to be free, just not expensive. *I don't care how it stores the information I give it, as long as I can access it. *I must be able to print the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/191997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Attach Source Issue in Eclipse In Eclipse (Ganymede) I'm debugging some code that uses Apache Commons HttpClient and would like to step into the HttpClient code. I've downloaded the source code and tried to attach it in the normal fashion (CTRL-click on the method name and use the Attach Source button). I've tried t...
{ "language": "en", "url": "https://stackoverflow.com/questions/191998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Interface Design Question I asked this question a while back and basically the project almost consists of reproducing excel in the browser. We want people to input data in an excel-like way. The question i have is, what is the best control to use? Should i use a regular table, and then append columns to it, or sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/192002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why are pipes considered dangerous to use in Windows/unix/linux? Why are pipes considered dangerous to use? What can be done to avoid these security issues? I'm mostly interested in Windows, but if you have other OS information, please provide. A: (assuming you're talking about Unix named pipes from the mention of...
{ "language": "en", "url": "https://stackoverflow.com/questions/192021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: From String to Blob I am trying to use concat_ws inside a group_concat command. With a query, which simplified looks like: SELECT item.title, GROUP_CONCAT( CONCAT_WS( ',', attachments.id, attachments.type, attachments.name ) ) as attachments FROM story AS item LEFT OUTER JOIN story_attachment AS attachments O...
{ "language": "en", "url": "https://stackoverflow.com/questions/192028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can an HTML element have multiple ids? I understand that an id must be unique within an HTML/XHTML page. For a given element, can I assign multiple ids to it? <div id="nested_element_123 task_123"></div> I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/192048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "357" }
Q: Is it possible to have an alias for the function name in Lisp? ...just like packages do. I use Emacs (maybe, it can offer some kind of solution). For example (defun the-very-very-long-but-good-name () ...) is not to useful later in code. But the name like Fn-15 or the first letters abbreviation is not useful too. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/192049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I create compound keyboard shortcuts in a Windows Forms application? I want to create a component that allows us to have compound keyboard shortcuts associated with an arbitrary command, like the Visual Studio IDE and Microsoft Office do. That is, keyboard shortcuts consisting of a sequence of multiple keystr...
{ "language": "en", "url": "https://stackoverflow.com/questions/192055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What are the differences between pipes in Windows and Linux? What are the differences between pipes in Windows and Linux? A: Another important difference Under windows A | B | C Until A is done with it's output B does not start reading, The same for B output being read by C *nix hooks the input and output togethe...
{ "language": "en", "url": "https://stackoverflow.com/questions/192073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Is Validation called before or after Coercion when setting a DependencyProperty value? I created a simple class with a DependencyProperty. When setting the value, I observe that ValidateValueCallback is called before CoerceValueCallback. On wpftutorial and in other books, it is stated that coercion is called before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I get the size of a java.sql.ResultSet? Shouldn't this be a pretty straightforward operation? However, I see there's neither a size() nor length() method. A: [Speed consideration] Lot of ppl here suggests ResultSet.last() but for that you would need to open connection as a ResultSet.TYPE_SCROLL_INSENSITIVE w...
{ "language": "en", "url": "https://stackoverflow.com/questions/192078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: Firefox Links to local or network pages do not work I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked the image should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Can php.ini settings be overridden in by a website using PHP + IIS6? We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g. DirectoryIndex index.php index.html <IfModule mod_php5.c> php_fl...
{ "language": "en", "url": "https://stackoverflow.com/questions/192083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Test to see if an image exists in C# I am writing a diagnostic page for SiteScope and one area we need to test is if the connection to the file/media assets are accesible from the web server. One way I think I can do this is load the image via code behind and test to see if the IIS status message is 200. So basic...
{ "language": "en", "url": "https://stackoverflow.com/questions/192085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Personal Code Library So I assume I'm not the only one. I'm wondering if there are others out there who have compiled a personal code library. Something that you take from job to job that has examples of best practices, things you are proud of, or just common methods you see yourself using over and over. I just rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/192088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do you design a functional program? From day 1 of my programming career, I started with object-oriented programming. However, I'm interested in learning other paradigms (something which I've said here on SO a number of times is a good thing, but I haven't had the time to do). I think I'm not only ready, but have...
{ "language": "en", "url": "https://stackoverflow.com/questions/192090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: In PHP, Best way to ensure current working directory is same as script , when using CLI When calling php via cli, the current directory is NOT changed to the one of the script. All the scripts i have running in crontab run via the CLI, so this is an issue. I'm currently fixing the problem by doing a chdir() with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/192092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a way to extract .NET 2.0 from the .NET 3.5? .NET Framework 3.5 SP1 installs the .NET Framework 2.0 SP2 and the .NET Framework 3.0 SP2 behind the scenes. These installation packages (especially .NET Framework 2.0 SP2) are not available directly from Microsoft. Is there a way to extract them from the .NET Fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/192100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a built-in function to print all the current properties and values of an object? So what I'm looking for here is something like PHP's print_r function. This is so I can debug my scripts by seeing what's the state of the object in question. A: A metaprogramming example Dump object with magic: $ cat dump.py...
{ "language": "en", "url": "https://stackoverflow.com/questions/192109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1410" }
Q: Reference to static method in PHP? In PHP, I am able to use a normal function as a variable without problem, but I haven't figured out how to use a static method. Am I just missing the right syntax, or is this not possible? (EDIT: the first suggested answer does not seem to work. I've extended my example to show t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Finding an unmanaged dll API? I am writing in C#. How can i find out which methods/functions I can use in an unmanaged dll that doesn't belong to windows? Exmaple : I have some installed software on my computer, it has a dll, and i want to know what my options are as to creating code to connect to that software? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/192117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I use DateTime.TryParse with a Nullable? I want to use the DateTime.TryParse method to get the datetime value of a string into a Nullable. But when I try this: DateTime? d; bool success = DateTime.TryParse("some date text", out (DateTime)d); the compiler tells me 'out' argument is not classified as a vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/192121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "132" }
Q: MOSS 2007 -- Invalid URL Exception SPSite.OpenWeb(...) This may seem a bit trivial, but I have not been able to figure it out. I am opening up a SPSite and then trying to open up a SPWeb under that SPSite. This is working fine on the VPC, which has the same Site Collection/Site hierarchy, but on production, I get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I load and save an image from an SQL Server database using GDI+ and C++? I need specifically to load a JPG image that was saved as a blob. GDI+ makes it very easy to retrieve images from files but not from databases... A: Take a look at Image::Image(IStream *, BOOL). This takes a pointer to a COM object imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/192124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: LIKE in Linq to SQL I have a method that needs to accept an array of country names, and return a list of records that match one of those country names. I'm trying this Public Shared Function GetConcessions(ByVal Countries As String()) As IEnumerable Dim CountryList As String = Utility.JoinArray(Countries) ' tur...
{ "language": "en", "url": "https://stackoverflow.com/questions/192126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In Actionscript 2 how can I get 302 redirect from a XML object? I am working on an Actionscript 2 project - trying to use the XML object to find a url which is returned as a 302 redirect. Is there a way to do this in actionscript 2? code: var urlone:XML = new XML(); urlone.load("http://mydomain.com/file.py"); urlon...
{ "language": "en", "url": "https://stackoverflow.com/questions/192128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get a SVN checkout using a Public/Private key pair? I have to check some code and run it. I have the URL: svn+ssh://myuser@www.myclient.com/home/svn/project/trunk I have a file with their private key. What do I do to get this code? A: just use ssh-add command (it will ask your for your password, this is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: What is the name of this data structure or technique of using relative difference between sequence members Let's say I have a sequence of values (e.g., 3, 5, 8, 12, 15) and I want to occasionally decrease all of them by a certain value. If I store them as the sequence (0, 2, 3, 4, 3) and keep a variable as a base of...
{ "language": "en", "url": "https://stackoverflow.com/questions/192138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to implement layers in GDI+? My idea would be to draw several Graphics objects on memory and combine them when drawing the image. But I haven't got a precise idea of how to do that. Shall I use GraphicsContainer's? Or save the objects as Metafile's? (these are temporary objects, I would like to keep t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to read the Rails session secret? I would like to access the Rails session secret programmatically (I am using it to generate a sign-on token). Here's what I've come up with: ActionController::Base.session.first[:secret] This returns the session secret. However, every time you call ActionContro...
{ "language": "en", "url": "https://stackoverflow.com/questions/192153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In Eclipse, how do I detect where in the code .project is getting updated? I'm experiencing a problem where somewhere in the an Eclipse Plugin a class is modifying the .project file, but I'm unable to determine which code/class it is. I'm on a Windows XP machine. Is there a way I can set a breakpoint or setup some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Xdebug & Zend Debugger Simultaneously? Is it possible to run both debuggers within the same PHP installation simultaneously. They both use different ports so communication with the client IDEs/other apps wouldn't be an issue. I ask only because using the Zend Debugger with ZendStudio has proven to be much easi...
{ "language": "en", "url": "https://stackoverflow.com/questions/192188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are there caveats to dynamicly creating a form with javascript? I have to do a cross site POST (with a redirection, so not using a XMLHTTPRequest), and the base platform is ASP.NET. I don't want to POST all of the controls in the ASP.NET FORM to this other site, so I was considering dynamicly creating a new form ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/192200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the Linq to SQL equivalent to TOP or LIMIT/OFFSET? How do I do this Select top 10 Foo from MyTable in Linq to SQL? A: This works well in C# var q = from m in MyTable.Take(10) select m.Foo A: Whether the take happens on the client or in the db depends on where you apply the take operator. If you a...
{ "language": "en", "url": "https://stackoverflow.com/questions/192203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "201" }
Q: How does one tell if an IDisposable object reference is disposed? Is there a method, or some other light-weight way, to check if a reference is to a disposed object? P.S. - This is just a curiousity (sleep well, not in production code). Yes, I know I can catch the ObjectDisposedException upon trying to access a mem...
{ "language": "en", "url": "https://stackoverflow.com/questions/192206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: NHibernate Criteria: concatenating two columns with an IN Expression This is the SQL that I want to accomplish: WHERE domain_nm + '\' + group_nm in ('DOMAINNAME\USERNAME1','DOMAINNAME2\USERNAME2') I can't for the life of me find an appropriate Expression for this. And I don't think I can use two expressions as the...
{ "language": "en", "url": "https://stackoverflow.com/questions/192213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: URL Case Sensitivity causing Caching problems! Is there a quick fix header? Is a http header that I can set in IIS that will essentially tell the users browser that url "/something/img.gif" and url "/SomeThing/IMG.gif" are in fact the same thing and that the browser should NOT re-download that resource? I'm runn...
{ "language": "en", "url": "https://stackoverflow.com/questions/192216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the most efficient/elegant way to parse a flat table into a tree? Assume you have a flat table that stores an ordered tree hierarchy: Id Name ParentId Order 1 'Node 1' 0 10 2 'Node 1.1' 1 10 3 'Node 2' 0 20 4 'Node 1.1.1' 2 10 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "567" }
Q: Writing a simple preg_replace in PHP I'm not much of a coder, but I need to write a simple preg_replace statement in PHP that will help me with a WordPress plugin. Basically, I need some code that will search for a string, pull out the video ID, and return the embed code with the video id inserted into it. In oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/192228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: table-based forms? Looking for sites which offer templates for creating styled table-based web page forms. Similar to css-based forms at: http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/ (please no css is better than tables discussions) A: This is like asking for an example of GOTO stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/192232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to define a property on a WPF user control is required? When creating a WPF user control, is it possible to make a property required via an attribute or other mechanism? A: Assign the property to an initial value which can be distinguished from any other value that it might be set to (i.e., null for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does declaring content as a string cause WinHttp to not send HTTP content in Excel VBA? I have an Excel VBA macro which does the equivalent of the following HTTP POST which works successfully: Set WebClient = CreateObject("WinHttp.WinHttpRequest.5.1") ' ... Configure WebClient for a POST request RequestBody = "<...
{ "language": "en", "url": "https://stackoverflow.com/questions/192238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with database connection from sharepoint workflow with integrated security options Good morning everyone, I'm running into an issue using a SharePoint workflow project (C#, VS 2008) and connecting to a database. Here is my database connection string: Data Source=DBSERVER;Initial Catalog=DBNAME;Integrated Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/192241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I parse command line arguments in Bash? Say, I have a script that gets called with this line: ./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile or this one: ./myscript -v -f -d -o /fizz/someOtherFile ./foo/bar/someFile What's the accepted way of parsing this such that in each case (or some combinat...
{ "language": "en", "url": "https://stackoverflow.com/questions/192249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2469" }
Q: Where to put extra functionality for the database layer (Linq-to-SQL) What would be the best method to implement extra functionality in a database layer that uses Linq-to-SQL? Currently I'm looking at implementing functions for adding information based on presets and similar tasks? Inserts, updates and deletes requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/192256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calculating a date around working days/hours? I am currently working on a website to track projects. In it, it is possible to create Service Level Agreements (SLAs). These are configurable with days of the week that a project can be worked on and also the timespan on each of those days. Eg. on Monday it might be bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/192260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I log an exception at warning- or info-level with traceback using the python logging framework? Using something like this: try: # Something... except Exception as excep: logger = logging.getLogger("component") logger.warning("something raised an exception: " + excep) logger.info("something raised ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Asp.Net Static method to refresh page I have a page that is hitting a webservice every 5 seconds to update the information on the page. I'm using the DynamicPopulateExtender from the Ajax Control Toolkit to just populate a panel with some text. What I was wanting to do, is if a certain condition is met, to refresh t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSL Certificate encryption vs cypher encryption I just installed a SSL certificate. This certificate is encrypted with 2048 bit encryption. However, the cypher is 128 bit encryption(or 40, or some other variation depending on the browser.) It seems that there are two different types of encryption here. The "handshak...
{ "language": "en", "url": "https://stackoverflow.com/questions/192268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How best to include other scripts? The way you would normally include a script is with "source" eg: main.sh: #!/bin/bash source incl.sh echo "The main script" incl.sh: echo "The included script" The output of executing "./main.sh" is: The included script The main script ... Now, if you attempt to execute that s...
{ "language": "en", "url": "https://stackoverflow.com/questions/192292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "442" }
Q: How to write to the console in a GUI application Background: We develop win32 applications, and use the "Thompson Toolkit" on windows to give us a unix-like shell that we use as our command-line. We have a GUI program (with a WinMain and message loop) that we want to write to the console, but printf and so on don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Application window sent behind other windows on closing different thread (C#) I'm writing a Windows Forms Application in C#.NET On startup, the application displays a splash screen which is running in a separate thread. Whilst the splash screen is showing, the main application is initialising. Once the main applica...
{ "language": "en", "url": "https://stackoverflow.com/questions/192313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I know the script file name in a Bash script? How can I determine the name of the Bash script file inside the script itself? Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that? A: You can use $0 to determine your script name (...
{ "language": "en", "url": "https://stackoverflow.com/questions/192319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "748" }
Q: Simple WPF sample causes uncontrolled memory growth I have boiled down an issue I'm seeing in one of my applications to an incredibly simple reproduction sample. I need to know if there's something amiss or something I'm missing. Anyway, below is the code. The behavior is that the code runs and steadily grows in mem...
{ "language": "en", "url": "https://stackoverflow.com/questions/192329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is there a way in .NET to have a method called automatically after another method has been invoked but before it is entered What I am looking for is a way to call a method after another method has been invoked but before it is entered. Example: public class Test { public void Tracer ( ... ) { } public int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Pylons with Elixir I would like to use Pylons with Elixir, however, I am not sure what is the best way to get about doing this. There are several blog posts (cleverdevil, beachcoder, adam hoscilo) and even an entire new framework about how to go about doing this; however, I am not certain about the differences betwe...
{ "language": "en", "url": "https://stackoverflow.com/questions/192345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to grab AD credentials from client machine in a web application? Is it possible to grab activedirectory credentials for the user on a client machine from within a web application? To clarify, I am designing a web application which will be hosted on a client's intranet. There is a requirement that the a user of...
{ "language": "en", "url": "https://stackoverflow.com/questions/192366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In Django how do I notify a parent when a child is saved in a foreign key relationship? I have the following two models: class Activity(models.Model): name = models.CharField(max_length=50, help_text='Some help.') entity = models.ForeignKey(CancellationEntity) ... class Cancellation(models.Model): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Force Garbage Collection in AS3? Is it possible to programmatically force a full garbage collection run in ActionScript 3.0? Let's say I've created a bunch of Display objects with eventListeners and some of the DO's have been removed, some of the eventListeners have been triggered and removed etc... Is there a way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/192373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Rails: page protection redirection problem with link_to_unless_current When using before_filter :login_required to protect a particular page, the link_to_unless_current method in the application layout template renders the "Login" link for the login page as a hyperlink instead of just text. The "Login" text/link pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/192375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select XML nodes as rows I am selecting from a table that has an XML column using T-SQL. I would like to select a certain type of node and have a row created for each one. For instance, suppose I am selecting from a people table. This table has an XML column for addresses. The XML is formated similar to the followin...
{ "language": "en", "url": "https://stackoverflow.com/questions/192398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Good explanation/documentation on ftrace I just read that the 2.6.27 kernel has a new module called ftrace which sounds a lot like suns dtrace utility. I'm having some trouble googling for documentation, I was wondering if anyone else had something. Is this something that is going to be implemented on the full progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/192401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you prevent a RichTextBox from refreshing its display? I have a RichTextBox where I need to update the Text property frequently, but when I do so the RichTextBox "blinks" annoyingly as it refreshes all throughout a method call. I was hoping to find an easy way to temporarily suppress the screen refresh until ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: improved collection Iterator Personally, I find the range of functionality provided by java.util.Iterator to be fairly pathetic. At a minimum, I'd like to have methods such as: * *peek() returns next element without moving the iterator forward *previous() returns the previous element Though there are lots of o...
{ "language": "en", "url": "https://stackoverflow.com/questions/192417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Using new Groovy Grape capability results in "unable to resolve class" error I've tried to use the new Groovy Grape capability in Groovy 1.6-beta-2 but I get an error message; unable to resolve class com.jidesoft.swing.JideSplitButton from the Groovy Console (/opt/groovy/groovy-1.6-beta-2/bin/groovyConsole) when ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/192432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can KDiff3 be used properly with TortoiseSVN to resolve conflicts? I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I find it shows more information useful to the merge than the built-in TortoiseMerge does). When I open a file with Tortoise's "Edit Conflicts" command it shows me the three...
{ "language": "en", "url": "https://stackoverflow.com/questions/192454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Setting a log file name to include current date in Log4j I would like to set the log file name for a log4j and log4net appender to have the current date. We are doing Daily rollovers but the current log file does not have a date. The log file name format would be logname.2008-10-10.log Anyone know the best way f...
{ "language": "en", "url": "https://stackoverflow.com/questions/192456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Improving really bad systems How would you begin improving on a really bad system? Let me explain what I mean before you recommend creating unit tests and refactoring. I could use those techniques but that would be pointless in this case. Actually the system is so broken it doesn't do what it needs to do. For exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/192464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to localize ASP.NET MVC application? What would be best practice to localize your ASP.NET MVC application? I would like to cover two situations: * *one application deployment in IIS which would handle multiple languages *one language/application deployment. In first situation should you go with some kind o...
{ "language": "en", "url": "https://stackoverflow.com/questions/192465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Connecting to Informix database from .Net What's the best way to connect to a Informix database from .Net? I'm developing a client-server application based on a legacy Informix DB which used to be connected by JDBC. I need it, from the most important to the least: * *To be fast *DB server changes not needed *No...
{ "language": "en", "url": "https://stackoverflow.com/questions/192477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting a useful report from SVN - non-code files messing the stats up I have a SVN repository for my project; it keeps code, docs, graphs, etc. Everything related to the project is there and versioned. However, I am trying to get some kind of intelligent stats for my code. The stat program I am using is StatSVN - ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: trac and svn (tortoise) - "Issue Tracker Plugin" - ( yes, yet another svn and trac question) I would like to be able to "get information from the issue tracker" as described in the section "Getting Information from the Issue Tracker" at: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-bugtracker.html (d...
{ "language": "en", "url": "https://stackoverflow.com/questions/192502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the advantages of memory-mapped files? I've been researching memory mapped files for a project and would appreciate any thoughts from people who have either used them before, or decided against using them, and why? In particular, I am concerned about the following, in order of importance: * *concurrency ...
{ "language": "en", "url": "https://stackoverflow.com/questions/192527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: In the hCalendar microformat, what markup is allowed in a description? I am working on a calendar application that outputs a list of events in hCalendar format. This includes an element that has a class of "description" which should be used for the event's description. My question is, what markup is allowed in my hC...
{ "language": "en", "url": "https://stackoverflow.com/questions/192538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }