text
string
meta
dict
Q: Debugging greasemonkey-like scripts I'm writing javascript code that is read in as a string and executed via eval() by a firefox extension. Firebug does "see" my script so I am not able to use breakpoints, see objects, etc. I am currently using Firefox's error console which I'm starting to find limiting. What are m...
{ "language": "en", "url": "https://stackoverflow.com/questions/232053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is adding elements between elements with Jython and dom4j possible? Just playing with dom4j, excellent. I was a PHP developer for a year and half, just got a new job and started playing around with Jython now I have spare time, its a great language. Was thinking about trying to add a element in between element, exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/232056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a solution for deploying IIS websites that's similar to Capistrano? Capistrano is a great solution for building scripts that automatically deploy a website and/or a database. But, it's also very *nix centric, and from I've read it would probably be more trouble than it's worth to get it working with a Windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/232059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MessageBox.Show-- font change? I'm using the MessageBox class to show errors to users, and while that might not be the right behavior, it's very convenient. This is a touchscreen application, however, so I need the 'ok' button to be much larger than it is (curse my inordinately large fingers!). I think that if I in...
{ "language": "en", "url": "https://stackoverflow.com/questions/232066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Does Delphi have any equivalent to C's volatile variable? In C and C++ a variable can be marked as volatile, which means the compiler will not optimize it because it may be modified external to the declaring object. Is there an equivalent in Delphi programming? If not a keyword, maybe a work around? My thought was...
{ "language": "en", "url": "https://stackoverflow.com/questions/232075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Common WCF Exception : Connection Unexpectedly Closed I have three projects. One is a WCF Services Project, one is a WPF Project, and one is a Microsoft Unit Testing Project. I setup the WCF Services project with a data object that looks like this: [DataContract] public enum Priority { Low, Medium, Hig...
{ "language": "en", "url": "https://stackoverflow.com/questions/232078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Shell extension for selected file Is there a way to know which file is being selected in windows explorer? I've been looking at the tutorial posted here Idiots guide to ... but the actions described are: hover context menu properties drag drag and drop I wonder if is there a method that get invoked when a file is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Addin extra properties to MembershipProvider I am using SqlMemberShipProvider and it works well, but I wish that the MembershipUser had some additional properties such as FirstName, LastName, Phone Number, etc. What is the best way to go about this? Do I have to create a custom membership provider or is there a bett...
{ "language": "en", "url": "https://stackoverflow.com/questions/232084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Image Slider with Silverlight I have a requirement of creating an Image slider using Silverlight. I need to display 5 images at first. There will be two buttons previous and next. When I'll click the next button another new 5 images will be shown in place of previously diplayed images. Would it be possible for anyon...
{ "language": "en", "url": "https://stackoverflow.com/questions/232100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is TFS's source control just a beefed up VSS or is it significantly different? My workplace is planning on moving to Team Foundation Server and it's not a moment too soon - anything to get away from the cancer that is Visual SourceSafe. However, I must ask - is the source control in TFS significantly different (and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Extra backslashes being added in PHP My crappy web host did some upgrades the other day and some settings have gone awry, because looking at our company's wiki (MediaWiki), every quote is being escaped with a backslashes. It's not even just data which is being posted (i.e.: the articles) which are affected, but also...
{ "language": "en", "url": "https://stackoverflow.com/questions/232140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Stored Procedures - End of days I’m listening to the Hanselminutes Podcast; "StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team". During the course of the Podcast they are speaking about SQL server and say something along the lines of 'The days of the Stored Procedure are over'. Now I'm not a DBA b...
{ "language": "en", "url": "https://stackoverflow.com/questions/232141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How do I get a count of each value, based from another table? I have a volunteers_2009 table that lists all the volunteers and a venues table that lists the venues that a volunteer can be assigned to, they are only assigned to one. What I want to do, is print out the number of volunteers assigned to each venue. I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/232144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging Multi-Project (C++) Solutions in Visual Studio 2005 I'm currently developing an application that is comprised of five separate executables that communicate via ActiveMQ. I have a Visual Studio Solution that contains the five executable projects. One of the projects (the launcher.exe) launches the other f...
{ "language": "en", "url": "https://stackoverflow.com/questions/232161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do Makefile dependencies for python code I have a bunch of C files that are generated by a collection of python programs that have a number of shared python modules and I need to account for this in my make system. It is easy enough to enumerate which python program need to be run to generate each C file. Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/232162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why does Apache return a 503 error for ant's get task, but not for my browser? I'm trying to get a file with ant, using the get property. I'm running apache 2, and I can get the file from the indicated URL using wget and firefox, but ant gives me the following error: [get] Error opening connection java.io.IOExceptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/232168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: looking at client controls on the server I'm just starting out with the whole ajax thing and I need some help. I have a form where the users will have the ability to add multiple e-mail addresses to a record. When the user clicks add a new e-mail address, I am going to perform an ajax call that will insert the ema...
{ "language": "en", "url": "https://stackoverflow.com/questions/232170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I build a Linq Expression Tree that compares against a generic object? I have an IQueryable and an object of type T. I want to do IQueryable().Where(o => o.GetProperty(fieldName) == objectOfTypeT.GetProperty(fieldName)) so ... public IQueryable<T> DoWork<T>(string fieldName) where T : EntityObject { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I use Team Explorer to merge changes between two branches after an initial baseless merge? My understanding of a baseless merge in TFS was that it was a one-time deal, and merges afterwards could be made without having to be baseless: from http://msdn.microsoft.com/en-us/library/bd6dxhfy(VS.80).aspx /baseless -...
{ "language": "en", "url": "https://stackoverflow.com/questions/232172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: IE borders breaking navigation another issue in IE 6... link The navbar link list has a border applied to the left side of each element. In fireforx/safari this matches up with the navbar background but in IE the border/element spills out below the navbar ( the border sticks out the bottom). EDIT: ALSO, the navbar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What message or event is raised which I invoke CListCtrl::InsertItem() method? I was planning to implememt owner-drawn of CListCtrl. I thought that drawing an item is after the item is inserted into the control. So my method is declare a class which is derived from CListCtrl and override its DrawItem() method. The p...
{ "language": "en", "url": "https://stackoverflow.com/questions/232202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binary "tail" a file I would guess most people on this site are familiar with tail, if not - it provides a "follow" mode that as text is appended to the file tail will dump those characters out to the terminal. What I am looking for (and possibly to write myself if necessary) is a version of tail that works on binar...
{ "language": "en", "url": "https://stackoverflow.com/questions/232212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Is there a LINQ library for C++? Are there any Platform agnostic (not CLI) movements to get LINQ going for C++ in some fashion? I mean a great part of server frameworks around the world run on flavors of UNIX and having access to LINQ for C++ on UNIX would probably make lots of people happy! A: http://cpplinq.code...
{ "language": "en", "url": "https://stackoverflow.com/questions/232222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: What's the best method to use / store encryption keys in MySQL I plan on using MySQL and it's built-in encryption functionality to encrypt / decrypt certain columns in certain tables. The concern I have is that I need to store the key somewhere. I could certainly store the key in a file and control the permissions...
{ "language": "en", "url": "https://stackoverflow.com/questions/232228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: public key email encryption Who has their email fully encrypted ? I would like to encrypt my email but I am not sure how to start. If I use encrypted email and I send an email to someone who does not encrypt his email how can the receiver read the email ? What email client would you recommend to run on a windows sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/232231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's the best way to return a random line in a text file using C? What's the best way to return a random line in a text file using C? It has to use the standard I/O library (<stdio.h>) because it's for Nintendo DS homebrew. Clarifications: * *Using a header in the file to store the number of lines won't work fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/232237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there any codec to get thumbnail directly from a Image file? I used gdi+'s Image class to decode image files. But I found if I open a Image, then use GetThumbnail()Method, It is really slow, especially for high resolution images. Is there any method for get a thumbnail faster? Or is there any lib designed especi...
{ "language": "en", "url": "https://stackoverflow.com/questions/232255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you debug Qt layout problems I've got a complex dialog, and it is full of whitespace and I can't shrink it. In Designer, it has lots of components that then get dynamically hidden, and a few which are dynamically added. I've added dumping of size policies, size hints, and minimum sizes, but still can't figu...
{ "language": "en", "url": "https://stackoverflow.com/questions/232267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to Mount a Linux directory from a different PC to your local Linux PC? Is there a way to mount a Linux directory from a different PC to your local Linux PC? How? A: NFS is handy since it's built-in and easy to configure, but the 2 common implementations (NFSv2 and NFSv3) don't translate usernames between the sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/232269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: OpenGL textures with multiple display contexts I have an undefined number of display context and each will display a texture. When I call glGenTextures I get the same name returned across all display contexts. Will this work? Even though they have the same name will they still store and display different textures? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/232271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get Vim to highlight matching parenthesis? When I browse code in Vim, I need to see opening and closing parenthesis/ brackets, and pressing % seems unproductive. I tried :set showmatch, but it makes the cursor jump back and forth when you type in a bracket. But what to do if I am browsing already written co...
{ "language": "en", "url": "https://stackoverflow.com/questions/232274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: x86 question about bit comparisons Im having a problem with a final part of my assignment. We get in a stream of bits, etc etc, in the stream is an integer with the number of 1's in the text portion. I get that integer and its 24 which is correct, now i loop through the text data i get and i try to count all the 1's...
{ "language": "en", "url": "https://stackoverflow.com/questions/232280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Text overflow when using nvarchar(max)? I've run into a strange situation that seems to involve long text overflowing. I'm using fn_pcre_replace (from the xp_pcre extended stored procedure) on an nvarchar(max) column, and when I replace with more characters than were there originally, it returns NULL if the original...
{ "language": "en", "url": "https://stackoverflow.com/questions/232294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight image: load URL dynamically? I'm tinkering with Silverlight 2.0. I have some images, which I currently have a static URL for the image source. Is there a way to dynamically load the image from a URL path for the site that is hosting the control? Alternatively, a configuration setting, stored in a single ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Checked exception catching in C# Java requires that you catch all possible exceptions or declare them as thrown in the method signature. This isn't the case with C# but I still feel that it is a good practice to catch all exceptions. Does anybody know of a tool which can process a C# project and point out places w...
{ "language": "en", "url": "https://stackoverflow.com/questions/232318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Inter-process communication in .NET I have a core .NET application that needs to spawn an arbitrary number of subprocesses. These processes need to be able to access some form of state object in the core application. What is the best technique? I'll be moving a large amount of data between processes (Bitmaps), so it...
{ "language": "en", "url": "https://stackoverflow.com/questions/232332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How long should SET READ_COMMITTED_SNAPSHOT ON take? How long should it take to run ALTER DATABASE [MySite] SET READ_COMMITTED_SNAPSHOT ON I just ran it and it's taken 10 minutes. How can I check if it is applied? A: Try this code: if(charindex('Microsoft SQL Server 2005',@@version) > 0) begin declare @sql va...
{ "language": "en", "url": "https://stackoverflow.com/questions/232333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "90" }
Q: Ignoring exceptions I have some code which ignores a specific exception. try { foreach (FileInfo fi in di.GetFiles()) { collection.Add(fi.Name); } foreach (DirectoryInfo d in di.GetDirectories()) { populateItems(collection, d); } } catch (UnauthorizedAccessException ex) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What add-in/workbench framework is the best .NET alternative to Eclipse RCP? I'm looking for a plugin-based application framework that is comparable to the Eclipse Plugin Framework, which to my simple mind consists of: * *a core plugin management framework (Equinox / OSGI), which provides the ability to declare e...
{ "language": "en", "url": "https://stackoverflow.com/questions/232345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How should I implement an auto-updater? Many programs include an auto-updater, where the program occasionally looks online for updates, and then downloads and applies any updates that are found. Program bugs are fixed, supporting files are modified, and things are (usually) made better. Unfortunately no matter how h...
{ "language": "en", "url": "https://stackoverflow.com/questions/232347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: How to do intra-application communication in .NET What's the best way to pass data from one Windows Forms app (an office plugin) to another (exe written in C#) in C#? A: I'll take a wild stab at this and say you probably want the office app to phone home to your exe? In this context, the "exe" is the server and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/232357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I make an item in a toolbar fill all available space in WPF I'm trying to make an item on ToolBar (specifically a Label, TextBlock, or a TextBox) That will fill all available horizontal space. I've gotten the ToolBar itself to stretch out by taking it out of its ToolBarTray, but I can't figure out how to mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/232386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: In SQL, how can you "group by" in ranges? Suppose I have a table with a numeric column (lets call it "score"). I'd like to generate a table of counts, that shows how many times scores appeared in each range. For example: score range | number of occurrences ------------------------------------- 0-9 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "221" }
Q: How do I sort a two-dimensional (rectangular) array in C#? I have a two-dimensional array (of Strings) which make up my data table (of rows and columns). I want to sort this array by any column. I tried to find an algorithm for doing this in C#, but have not been successful. Any help is appreciated. A: Here is an...
{ "language": "en", "url": "https://stackoverflow.com/questions/232395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: How do I restrict foreign keys choices to related objects only in django I have a two way foreign relation similar to the following class Parent(models.Model): name = models.CharField(max_length=255) favoritechild = models.ForeignKey("Child", blank=True, null=True) class Child(models.Model): name = models.Cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/232435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Dynamic Arrays - How to increase the size of an array? I am reading in numbers from a file and then trying to add them to an array. My problem is how do you increase the size of the array? For example I thought might be able to just do: #include <iostream> using namespace std; int main() { double *x; x = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/232445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Applications using Decimal versus double . . I wanted to see if folks were using decimal for financial applications instead of double. I have seen lots of folks using double all over the place with unintended consequences . . Do you see others making this mistake . . . A: We did unfortunately and we regret it. We...
{ "language": "en", "url": "https://stackoverflow.com/questions/232450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the difference between these declarations in C? In C and C++ what do the following declarations do? const int * i; int * const i; const volatile int ip; const int *i; Are any of the above declarations wrong? If not what is the meaning and differences between them? What are the useful uses of above declarati...
{ "language": "en", "url": "https://stackoverflow.com/questions/232472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible use or require a Perl script without executing its statements? I need to add unit testing to some old scripts, the scripts are all basically in the following form: #!/usr/bin/perl # Main code foo(); bar(); # subs sub foo { } sub bar { } If I try to 'require' this code in a unit test, the main sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/232475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to set up a bidirectionally encrypted email server? Encrypted email - sounds like a great thing, right? Problem already solved, right? Well... I don't think so and I'm hoping I'm wrong! To understand what I'm asking, please understand what I'm NOT asking: I am not asking how I encrypt and sign messages sent over...
{ "language": "en", "url": "https://stackoverflow.com/questions/232484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Common Lisp IDE I've used Slime within Emacs as my primary development environment for Common Lisp (or Aquamacs on OS X), but are there other compelling choices out there? I've heard about Lispworks, but is that [or something else] worth looking at? Or does anyone have tips to getting the most out of Emacs (e.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/232486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: How to configure security when calling WCF Service from .Net 2.0 Client I have a WCF service up and running and am able to communicate between the service and a .Net 2.0 Client using basicHttpBinding. I now need to lock down the WCF service so that it can only be called by authenticated clients. I have control ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/232500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Redmine best practices What tips and "standards" do you use in your Redmine project management process? Do you have a standard wiki insert template you could share or a standard way to work a project using bugs features tasks and support issues? Do you let issues and updates get emailed into Redmine? Do you use the...
{ "language": "en", "url": "https://stackoverflow.com/questions/232506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Expand and collapse issues I'm a rookie designer having a few troubles with this page: http://www.resolvegroup.co.nz/javasurvey.php There are problems with the javascript operation of the expanded questions. For Internet Explorer (Version 7) the first question when expanded gets partly hidden under question 2. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solid border or dotted border? When to use which? I am currently using a dotted border for certain UI stuff such as instructions, notes, error boxes, etc. But recently I changed to a solid border, due to a requirement, but I just find it kind of strange. It seems that by making it solid it puts too much emphasis on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different background color for form elements Should I have background color for a form input? Or this is really a subjective matter? For me personally I thought having background color for a form, kind of makes it more organized and clean. What are your views on this? A: Two techniques that I don't see often enough...
{ "language": "en", "url": "https://stackoverflow.com/questions/232511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to encourage a user to fill in long application forms? What I can think of is pre-populating certain form input elements based on the user's geographical information. What are other ways can you think of to speed up user input on long application forms? Or at least keep them focus on completing the application f...
{ "language": "en", "url": "https://stackoverflow.com/questions/232519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create virtual CD drive on Mac OS X How does one go about creating a virtual CD driver on Mac OS X programatically? I can't find any relevant Cocoa APIs or any pure C BSD solutions. Any help or information is appreciated. A: You would need to use the I/O Kit framework to develop your own device driver that...
{ "language": "en", "url": "https://stackoverflow.com/questions/232524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I use reflection to call a generic method? What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime? Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>(...
{ "language": "en", "url": "https://stackoverflow.com/questions/232535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1268" }
Q: What's the best way to extract a one-dimensional array from a rectangular array in C#? Say I have a rectangular string array - not a jagged array string[,] strings = new string[8, 3]; What's the best way to extract a one-dimensional array from this (either a single row or a single column)? I can do this with a for...
{ "language": "en", "url": "https://stackoverflow.com/questions/232545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Suggestions on how to make a configurable parser I want to build a parser for a C like language. The interesting aspect about it is that I want to build it in such a way that someone who has access to the source can easily modified it to extend the language (a new expression type of instance) with the extensions bei...
{ "language": "en", "url": "https://stackoverflow.com/questions/232556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does IEnumerator inherit from IDisposable while the non-generic IEnumerator does not? I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator does not. Why is it designed in this way? Usually, we use foreach statement to go through a IEnumerator<T> instance....
{ "language": "en", "url": "https://stackoverflow.com/questions/232558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: Winforms user control getting clipped when in another user control (sometimes) The problem is fairly simple, but is best illustrated visually. Note that all screen shots are from the Visual Studio 2005 design surface. I've noticed no difference when I actually run the application. Here is my user control (let's ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/232563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sun App Server Deployment Error Sun App Server Deployment : When choose to precompile JSP : Throw this error com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered then have to do asadmin undeploy Anyone know what is the reason for this error? A: That's a thing that sometime ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/232568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET library for working with mobile devices eg PDA Does anyone know any good .net libraries for working with PDAs and such? I mainly looking for something that will allow me to copy files to/from devices and do some registry work on the device. The PDAs are running windows mobile 5 & 6 I have been using the Open...
{ "language": "en", "url": "https://stackoverflow.com/questions/232572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I check if a column exists in SQL Server? How do I check if a column exists in SQL Server 2000? A: If col_length('table_name','column_name') is null select 0 as Present ELSE select 1 as Present Present will be 0, is there is no column_name present in table_name , otherwise 1 @CMS: I don't think that...
{ "language": "en", "url": "https://stackoverflow.com/questions/232575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How to backup project folders to local desktop if path more than 255 characters? For e.g. if i am storing some files on a network server which is under many hierarchical folders. Then i want to do backup. But i always encounter issue because the file path is more than 255? How can i resolve this issue or work around...
{ "language": "en", "url": "https://stackoverflow.com/questions/232580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: User Login in Java - JAAS/JNDI/GSSAPI What is the best way to design a user login mechanism using Java? What are the best practices to be followed to architect a secure and robust login mechanism? What is the difference between JAAS, JNDI and GSSAPI? How do you decide which one to choose? A: Single sign on (SSO) i...
{ "language": "en", "url": "https://stackoverflow.com/questions/232584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JIRA - Revision Fix, Work Start and Resolve Issue Do you all add revision fixed to your custom fields? And what is the point of have Work Start? I thought resolve issue is good enough? A: We add the revision planned to fix and the revision fixed. Using the estimated times allows us to plan a certain chunk of work f...
{ "language": "en", "url": "https://stackoverflow.com/questions/232585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where does makecert store the private key if -sv is not specified? Let say I run this command: makecert testcert.cer Is a private key created? If so, where is it automatically stored in the system even though I did not tell makecert to install this certificate in any certificate store? A: The way you run the commn...
{ "language": "en", "url": "https://stackoverflow.com/questions/232596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is acceptable memory usage for a PHP page? I'm building a webpage that queries a MySQL database and (currently) produces a text-only list of the findings. The queries to complete a single record are similar to: * *movie (title, description, etc) * *actors in the movie (name, gender) *related movies Ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/232611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Tortoise SVN Icon Overlays Displaying Everywhere...Why? Update: So, this turns out to have nothing to do with Tortoise SVN. I use Mozy.com for off-site backups and their new version includes these icon overlays. They can be disabled via the config options...or see here http://forum.pcmech.com/showthread.php?p=138543...
{ "language": "en", "url": "https://stackoverflow.com/questions/232622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Invoke default browser from C#? How to invoke the default browser with an URL from C#? A: System.Diagnostics.Process.Start("http://mysite.com"); A: I used System.Diagnostics.Process.Start in the past, but if Firefox or another browser is set as the default this method always throws a terrible exception to users. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Enhancing Profile Provider I am want to serialize and array object for a custom wizard I am writing but I am having difficulties doing this. Can someone help this is the error and code snippets I am using. The error I believe has to do with not being able to convert the array. namespace Helios.Web.Framework { //...
{ "language": "en", "url": "https://stackoverflow.com/questions/232635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crystal Reports in Visual Studio 2005 (C# .NET Windows App) I need to create reports in a C# .NET Windows app. I've got an SQL Server 2005 .I want to display two more field to report(not available in data base table. I want to create these field by adding some data from existing field of data base table) A: If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/232639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why "The system cannot find the batch label specified" is thrown even if label exists? While running a batch file in Windows XP I have found randomly occurring error message: The system cannot find the batch label specified name_of_label Of course label existed. What causes this error? A: Actually, you need 2 con...
{ "language": "en", "url": "https://stackoverflow.com/questions/232651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "81" }
Q: How to refactor from using window.open(...) to an unobtrusive modal dhtml window? I have a function which launches a javascript window, like this function genericPop(strLink, strName, iWidth, iHeight) { var parameterList = "location=0,directories=0,status=0,menubar=0,resizable=no, scrollbars=no,toolb...
{ "language": "en", "url": "https://stackoverflow.com/questions/232662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I get DirectInput / XInput without the whole DirectX SDK? I am developing an in-house app that would use XInput or DirectInput to read from the Xbox 360 controller. (I think it'll be the cheapest/easiest way to get multiple controls in the operator's hands.) I will need to source-control all source and tools, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/232669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Way to preview (retroview) SQL queries of SQL Server Management Studio Express Could you tell me, please, if it's possible to preview (or at least retroview, for example, in a kind of a log file) SQL commands which SQL Server Management Studio Express is about to execute (or has just executed)? In the past I used Em...
{ "language": "en", "url": "https://stackoverflow.com/questions/232677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Malloc Error: incorrect checksum for freed object I am working on implementing tail for an assignment. I have it working correctly however I seem to be getting an error from free at random times. I can't see, to track it down to a pattern or anything besides it is consistent. For example if I call my program as "tai...
{ "language": "en", "url": "https://stackoverflow.com/questions/232678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What does it take to be a better OO programmer? I’ve almost 6 years of experience in application development using .net technologies. Over the years I have improved as a better OO programmer but when I see code written by other guys (especially the likes of Jeffrey Richter, Peter Golde, Ayende Rahien, Jeremy Miller ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How would you go about implementing off-side rule? I've already written a generator that does the trick, but I'd like to know the best possible way to implement the off-side rule. Shortly: Off-side rule means in this context that indentation is getting recognized as a syntactic element. Here is the offside rule in p...
{ "language": "en", "url": "https://stackoverflow.com/questions/232682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is the difference between C and embedded C? Can any body tell me the differences between them? A: Basically, there isn't one. Embedded refers to the hosting computer / microcontroller, not the language. The embeddded system might have fewer resources and interfaces for the programmer to play with, and hence ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "52" }
Q: CSS Menu (Can't get the tabs to full height) <style type="text/css"> html, body { background: #fff; margin: 0; padding: 0; } #nav { font-family: Verdana, sans-serif; height: 29px; font-size: 12px; padding: 0 0 0 10px; /* this is used for something else */ background-color: #456; } #...
{ "language": "en", "url": "https://stackoverflow.com/questions/232688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Editing escaped code (for display) If I escape some code because I want it to display as the actual code in html (eg for an example code snippet), save it to the database and then pull it back to the editor (an html page), it is displayed as html, as opposed to the escaped text. My problem arises when I include a te...
{ "language": "en", "url": "https://stackoverflow.com/questions/232689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the size of an array from a pointer in C? I've allocated an "array" of mystruct of size n like this: if (NULL == (p = calloc(sizeof(struct mystruct) * n,1))) { /* handle error */ } Later on, I only have access to p, and no longer have n. Is there a way to determine the length of the array given just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Including one C source file in another? Is it OK (or even recommended/good practice) to #include a .c file in another .c file? A: is it ok? yes, it will compile is it recommended? no - .c files compile to .obj files, which are linked together after compilation (by the linker) into the executable (or library), so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/232693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "144" }
Q: NTPD: use an unrestricted port for communication When querying ntp servers with the command ntpdate, I can use the -u argument to make the source port an unrestricted port (port 1024 and above). With ntpd, which is meant to run in the background, I can't seem to find a way to turn this option on. So the source port ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Date time format from string? How do I convert a string to DateTime format? For example, if I had a string like: "24/10/2008" How do I get that into DateTime format ? A: If you don't know the format, use: DateTime d = DateTime.Parse(dateString); This tries to parse the string representation of a date and time usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/232732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a code obfuscator for PHP? Has anybody used a good obfuscator for PHP? I've tried some but they don't work for very big projects. They can't handle variables that are included in one file and used in another, for instance. Or do you have any other tricks for stopping the spread of your code? A: Nothing wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/232736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "227" }
Q: How to print variable in gdb Sometimes gdb prints "incomplete type" for some type of variables. What does this mean and how can we see that value? A: What I've found is that if you disassemble a function that uses the incomplete struct type gdb 'discovers' the struct members and can subsequently display them. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Read environment variables from file in Windows Batch (cmd.exe) I'm trying to read variables from a batch file for later use in the batch script, which is a Java launcher. I'd ideally like to have the same format for the settings file on all platforms (Unix, Windows), and also be a valid Java Properties file. That i...
{ "language": "en", "url": "https://stackoverflow.com/questions/232747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Concurrent ASP.NET session best practices User A logs into a ticket management system to edit content on "SomePage.aspx" User B logs in 30 seconds later to edit the same ticket on "SomePage.aspx" What are some of the best known practices(in a 3-tier architecture) for notifying each of the users that someone else is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't import settings in Visual Studio 2008 SP1 I recently baselined my machine and installed VS2008 and I am trying to import my settings file: http://naspinski.net/file.axd?file=naspinski.vssettings I click Tools->Import Settings, select Import selected environment settings and click on Next Next screen I select N...
{ "language": "en", "url": "https://stackoverflow.com/questions/232763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cherry-pick a merge Let's say branch B is a topic branch off of branch A, and you want those changes in branch C. What does it mean when you cherry-pick the merge commit of branch A and branch B to branch C? For example, if you use the -m flag to specify the old HEAD of branch A to cherry-pick the merge to branch C...
{ "language": "en", "url": "https://stackoverflow.com/questions/232771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can I trigger a complete web page reload with content from a javascript string? This is one of those ajax "alternate flow" questions. Normally I expect my ajax request to return a part of the page. But sometimes it may return a full page with html, head and body tag. At the time I return from my ajax-request I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: build a string using checkbox can anybody show me how to build a string using checkbox. what would be the best way to do this. for example i have 4 checkbox's each with its own value (valueA, valueB, valueC, valueD) the thing is i want to display each result in different lines. result if B & C is selected : valueB ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Use of #pragma in C What are some uses of #pragma in C, with examples? A: #pragma is for compiler directives that are machine-specific or operating-system-specific, i.e. it tells the compiler to do something, set some option, take some action, override some default, etc. that may or may not apply to all machines an...
{ "language": "en", "url": "https://stackoverflow.com/questions/232785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Boundary for comment box In my java application, I need to create a comment box for the users to add comments. Moreover, I need to provide the user with the provision for resizing and dragging the comment box. For this, I need to show a boundary around the comment box as in the case of comment box in Microsoft Excel...
{ "language": "en", "url": "https://stackoverflow.com/questions/232811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does StringTemplate work with Struts? I would like to use a template engine in my struts web application. Therefore I would like to use StringTemplate, but have no idea how to implement in Struts. A: I was looking into how this would work myself. It looks like Harry Karadimas has put together some code for Struts ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }