text
stringlengths
8
267k
meta
dict
Q: What uses can you think of for Perl 6's junctions? More information from the Perl 6 Wikipedia entry Junctions Perl 6 introduces the concept of junctions: values that are composites of other values.[24] In the earliest days of Perl 6's design, these were called "superpositions", by analogy to the concept in quantum p...
{ "language": "en", "url": "https://stackoverflow.com/questions/102271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: `active' flag or not? OK, so practically every database based application has to deal with "non-active" records. Either, soft-deletions or marking something as "to be ignored". I'm curious as to whether there are any radical alternatives thoughts on an `active' column (or a status column). For example, if I had a li...
{ "language": "en", "url": "https://stackoverflow.com/questions/102278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Does full trust mean the same as Run As Administrator Does full trust mean the same as Run As Administrator? I have read things stating that "for this to work, the application must be a full-trust application." Is that the same as you must have administrator privileges to run the application? If not, what's the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/102282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What WPF C# Control is similar to a CWnd in C++? What would be the best WPF control in C# (VS 2008) that you can place on a form that would allow you to do drawing similar to the "Paint" function for the CWnd class in C++? Also, that could display bitmaps, have a scroll bar, and the ability to accept user inputs (i...
{ "language": "en", "url": "https://stackoverflow.com/questions/102283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get multiple records against one record based on relation? I have two tables Organisation and Employee having one to many relation i.e one organisation can have multiple employees. Now I want to select all information of a particular organisation plus first name of all employees for this organisation. What’s ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: MySQL 5.0 instance manager like functionality for earlier versions? MySQL introduced a server side utility that lets you manage multiple instances on a remote machine. I am looking for similar functionality for earlier versions of mysql. [1]http://dev.mysql.com/doc/refman/5.0/en/instance-manager.html A: I am not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not supported platforms for java.awt.Desktop.getDesktop() Since Java 6 there is a class java.awt.Desktop. There are some nice methods but the class is not supported on all platforms. The methods java.awt.Desktop.getDesktop() throws an java.lang.UnsupportedOperationException: Desktop API is not supported on the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/102325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Including eval / bind values in OnClientClick code I have a need to open a popup detail window from a gridview (VS 2005 / 2008). What I am trying to do is in the markup for my TemplateColumn have an asp:Button control, sort of like this: <asp:Button ID="btnShowDetails" runat="server" CausesValidation="false" Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/102343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to add a version number to an Access file in a .msi I'm building an install using VS 2003. The install has an Excel workbook and two Access databases. I need to force the Access files to load regardless of the create/mod date of the existing databases on the user's computer. I currently use ORCA to force in a Ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/102374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to optimize compiling a 32 bit application in Visual C++ 2005 on a 64 bit windows sever 2008 I have just installed a build server with a 64 bit windows server 2008 for continuous integration. The reason I choose a 64 bit server was to have more than ~3Gb of RAM. I had hopes that this machine would provide blazi...
{ "language": "en", "url": "https://stackoverflow.com/questions/102377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ssh-agent with passwords without spawning too many processes I use ssh-agent with password-protected keys on Linux. Every time I log into a certain machine, I do this: eval `ssh-agent` && ssh-add This works well enough, but every time I log in and do this, I create another ssh-agent. Once in a while, I will do a ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/102382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using Vim's tabs like buffers I have looked at the ability to use tabs in Vim (with :tabe, :tabnew, etc.) as a replacement for my current practice of having many files open in the same window in hidden buffers. I would like every distinct file that I have open to always be in its own tab. However, there are some thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/102384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "389" }
Q: Sorting a dict on __iter__ I am trying to sort a dict based on its key and return an iterator to the values from within an overridden iter method in a class. Is there a nicer and more efficient way of doing this than creating a new list, inserting into the list as I sort through the keys? A: How about something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/102394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are some good usability addins for Visual Studio 2008? I've been using Visual Studio for a long time and the constant shuffling of the code tabs at the top drives me bonkers. I was wondering if there were any add-ins that might change this or other UI behavior. Things that might be cool: * *Sticky Tabs that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Priority queue in .Net I am looking for a .NET implementation of a priority queue or heap data structure Priority queues are data structures that provide more flexibility than simple sorting, because they allow new elements to enter a system at arbitrary intervals. It is much more cost-effective to insert a new job...
{ "language": "en", "url": "https://stackoverflow.com/questions/102398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "242" }
Q: Protect embedded password I have a properties file in java, in which I store all information of my app, like logo image filename, database name, database user and database password. I can store the password encrypted on the properties file. But, the key or passphrase can be read out of the jar using a decompiler. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/102425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Viewing, pausing and killing threads in a running .Net application I'm working on a .Net applications with multiple threads doing all sorts of things. When something goes wrong in production I want to be able to see which threads are running (by their managed name) and also be able to pause / kill them. Anyway to ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/102427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do all Winforms programs require the [STAThread] attribute? Why do Winforms programs have the [STAThread] attribute on the Main() method and what are the consequences of removing it?
{ "language": "en", "url": "https://stackoverflow.com/questions/102437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: WF and ASPNET MVC Is there a way to use MS WF interactively in ASPNET MVC? A: Did you see how WF and MVC were used inthe StoreFront example? http://www.asp.net/learn/mvc-videos/video-428.aspx
{ "language": "en", "url": "https://stackoverflow.com/questions/102445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reuse Spring Webflow definitions with different action implementations I got pretty big webflow definition, which I do not want to copy/paste for reusing. There are references to action bean in XML, which is kind natural. I want to use same flow definiton twice: second time with actions configured differently (injec...
{ "language": "en", "url": "https://stackoverflow.com/questions/102453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create an SVG "tooltip"-like box? Given an existing valid SVG document, what's the best way to create "informational popups", so that when you hover or click on certain elements (let's say ) you popup a box with an arbitrary amount (i.e. not just a single line tooltip) of extra information? This should displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/102457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Why does std::stack use std::deque by default? Since the only operations required for a container to be used in a stack are: * *back() *push_back() *pop_back() Why is the default container for it a deque instead of a vector? Don't deque reallocations give a buffer of elements before front() so that push_front...
{ "language": "en", "url": "https://stackoverflow.com/questions/102459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Web Access to Virtual Machine Is their a way to access a web server such as windows server 2003 installed on a virtual box such as vmware from the host machine? A: If VMware is set to use bridged networking, then each guest OS effectively has its own IP address, like brien said, you just point your browser to that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to save metadata in an image? We create thumb images on our server and I'm looking for a way to save metadata (text) in that image. Is that possible? At this moment we use PHP and we create JPG images. A: You question is the same as writing exif data in php. My answer is: * *PEL(PHP Exif Library)...
{ "language": "en", "url": "https://stackoverflow.com/questions/102466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Algorithm Issue: letter combinations I'm trying to write a piece of code that will do the following: Take the numbers 0 to 9 and assign one or more letters to this number. For example: 0 = N, 1 = L, 2 = T, 3 = D, 4 = R, 5 = V or F, 6 = B or P, 7 = Z, 8 = H or CH or J, 9 = G When I have a code like 0123, it's an eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/102468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Linq to SQL Association combo box order This is kind of a weird question and more of an annoyance than technical brick wall. When I'm adding tables and such using the Linq-to-SQL designer and I want to create an association using the dialogs. I right click on one of the target tables and choose Add > Association as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subversion branch reintegration When a branch is reintegrated to the trunk, is that branch effectively dead? Can you make modifications to the branch after the reintegration and merge those back into the trunk at a later date? A: You can do it technically, you branch is not dead nor disabled, but it is not recomm...
{ "language": "en", "url": "https://stackoverflow.com/questions/102472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Is there a means to produce a changelog in SVN When commiting to SVN I can add a top level commit message to detail what is being committed, but I would ideally like a means to comment on the individual files and what has changed within them. I have seen something similar in previous employment, but this was using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Explain Plan Cost vs Execution Time Before, I have found the "Cost" in the execution plan to be a good indicator of relative execution time. Why is this case different? Am I a fool for thinking the execution plan has relevance? What specifically can I try to improve v_test performance? Thank you. Using Oracle 10g I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.Net: User controls added to placeholder dynamically cannot retrieve values I am adding some user controls dynamically to a PlaceHolder server control. My user control consists of some labels and some textbox controls. When I submit the form and try to view the contents of the textboxes (within each user contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/102483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Compatible encryption between C# and PHP, ColdFusion, Ruby, Python We're developing a service that will accept a POST request. Some of the POST data will need to be encrypted before the POST as it will be stored in hidden fields on a form. The application is written in C#, but we want third party clients to be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Creating IDL for MAPI-MIME conversion I'm trying to create the IDL for the IConverterSession interface and I'm confused by the definition of the MIMETOMAPI method. It specifies the LPMESSAGE pmsg parameter as [out] yet the comments state its the pointer to the MAPI message to be loaded. Its unclear to me whether the...
{ "language": "en", "url": "https://stackoverflow.com/questions/102514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I work with quarters (quarterly dates) in ASP.Net using VB.Net 2.0? I know that Sql Server has some handy built-in quarterly stuff, but what about the .Net native DateTime object? What is the best way to add, subtract, and traverse quarters? Is it a bad thing™ to use the VB-specific DateAdd() function? e.g.: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Where can I get Toad syntax coloring schemes? I am a big fan of the light colors on a dark background color scheme for programming - which is unfortunately not what Quest's Toad comes with by default. I notice that it is possible to export and import settings under the language management window, and I know that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Multiple file inputs? Within an XSLT document, is it possible to loop over a set of files in the current directory? I have a situation where I have a directory full of xml files that need some analysis done to generate a report. I have my stylesheet operating on a single document fine, but I'd like to extend that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/102531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sending values through links Here is the situation: I have 2 pages. What I want is to have a number of text links(<a href="">) on page 1 all directing to page 2, but I want each link to send a different value. On page 2 I want to show that value like this: Hello you clicked {value} Another point to take into acco...
{ "language": "en", "url": "https://stackoverflow.com/questions/102534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What can you use generator functions for? I'm starting to learn Python and I've come across generator functions, those that have a yield statement in them. I want to know what types of problems that these functions are really good at solving. A: One of the reasons to use generator is to make the solution clearer f...
{ "language": "en", "url": "https://stackoverflow.com/questions/102535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: AMFPHP service new service error I am trying to add a new hello world service to amfphp, I am developing locally <?php /** * First tutorial class */ class HelloWorld { /** * first simple method * @returns a string saying 'Hello World!' */ function sayHello() { return "Hello World!"; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Biggest advantage to using ASP.Net MVC vs web forms What are some of the advantages of using one over the other? A: ASP.NET Web Forms and MVC are two web frameworks developed by Microsoft - they are both good choices. Neither of the web frameworks are to be replaced by the other nor are there plans to have them 'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/102558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: How to shut down the computer from C# What's the best way to shut down the computer from a C# program? I've found a few methods that work - I'll post them below - but none of them are very elegant. I'm looking for something that's simpler and natively .net. A: System.Diagnostics.Process.Start("shutdown", "/s /t 0")...
{ "language": "en", "url": "https://stackoverflow.com/questions/102567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "155" }
Q: What is a double underscore in Perl? I'm trying to understand someone else's Perl code without knowing much Perl myself. I would appreciate your help. I've encountered a Perl function along these lines: MyFunction($arg1,$arg2__size,$arg3) Is there a meaning to the double-underscore syntax in $arg2, or is it just p...
{ "language": "en", "url": "https://stackoverflow.com/questions/102568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET Control/Page Library Question I'm working on a drop in assembly that has predefined pages and usable controls. I am having no difficulties with creating server controls, but I'm wondering what the "best practices" are with dealing with pages in an assembly. Can you compile a page into an assembly and relea...
{ "language": "en", "url": "https://stackoverflow.com/questions/102587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL strip text and convert to integer In my database (SQL 2005) I have a field which holds a comment but in the comment I have an id and I would like to strip out just the id, and IF possible convert it to an int: activation successful of id 1010101 The line above is the exact structure of the data in the db field. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Learning Anaysis Services Can anyone recommend a good resource -- book, website, article, etc -- to help me learn SQL Server Analysis services. I have no knowledge of this technology right now but I do constantly work with SQL server in the traditional sense. I want to learn about Cubes and Using Reporting Services...
{ "language": "en", "url": "https://stackoverflow.com/questions/102600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I perform a DNS lookup (hostname to IP address) using client-side Javascript? I would like to use client-side Javascript to perform a DNS lookup (hostname to IP address) as seen from the client's computer. Is that possible? A: Edit: This question gave me an itch, so I put up a JSONP webservice on Google App Eng...
{ "language": "en", "url": "https://stackoverflow.com/questions/102605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: Number of nodes meeting a conditional based on attributes Below is part of the XML which I am processing with PHP's XSLTProcessor: <result> <uf x="20" y="0"/> <uf x="22" y="22"/> <uf x="4" y="3"/> <uf x="15" y="15"/> </result> I need to know how many "uf" nodes exist where x == y. In the above examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/102606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Shape of a Winforms MessageBox I am looking for a way to have some control over the shape of a simple MessageBox in Winforms. I would like to control where the passed in text wraps so that the dialog rect is narrower. Windows seems to want to make the dialog as wide as possible before wrapping the text. Is there an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How would you get the Sql Command objects for a Given TableAdaptor and SqlDataAdaptor in C# (.NET 2.0) I am creating a generic error handling / logging class for our applications. The goal is to log the exception info, info about the class and function (as well as parameters) and if relevant, the information about t...
{ "language": "en", "url": "https://stackoverflow.com/questions/102623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: the locale id '0' of the source column 'PAT_NUM_ADT' and the locale id '1033' of the destination column 'PAT_ID_OLD' do not match I get this error when I do a bulk insert with select * from [table_name], and another table name: the locale id '0' of the source column 'PAT_NUM_ADT' and the locale id '1033' of the des...
{ "language": "en", "url": "https://stackoverflow.com/questions/102626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to write a crawler? I have had thoughts of trying to write a simple crawler that might crawl and produce a list of its findings for our NPO's websites and content. Does anybody have any thoughts on how to do this? Where do you point the crawler to get started? How does it send back its findings and still keep cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/102631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: CSS Margin Collapsing So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element? A: No. When you have two adjacent vertical margins, the greater of the two is used and the other is ignored. So, for instance, if you have two block-display elements, A, foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/102640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How should I move queued messages from IIS to Exchange on different servers? We currently have a company email server with Exchange, and a bulk email processing server that is using IIS SMTP. We are upgrading to a 3rd party MTA (zrinity xms) for bulk sending. I need to be able to keep sending the messages already qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/102647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Wrong 'Local Path' in DCOM Config entry I have a component in DCOM Config whose 'Local Path' (on the General tab of the Properties page for that component in dcomcnfg) is pointing to the wrong place. However when I go to that directory and unregister the component using "componentname.exe /unregserver", the Local Pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/102649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any resources about the PHP XMLWriter functionality? The PHP documentation can be found here, but I think it's rather lacking. There are no examples of how to use these functions, and few (if any) of the pages have user comments. So where might I be able to find an explanation (and example code) on how to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Prevent a PostBack from showing up in the History I have a page where I submit some data, and return to the original form with a "Save Successful" message. However, the user would like the ability to return to the previous page they were at (which contains search results) by clicking the browser's "Back" button. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/102657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Issue with clipboard I have a legacy app I am currently supporting that is having problems when people copy large quantities of data from a datasheet view. The App is built in MS Access and the amount of rows being copied can get pretty large (sometimes in the thousands). The funny thing about it is, you can paste...
{ "language": "en", "url": "https://stackoverflow.com/questions/102683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does c# figure out the hash code for an object? This question comes out of the discussion on tuples. I started thinking about the hash code that a tuple should have. What if we will accept KeyValuePair class as a tuple? It doesn't override the GetHashCode() method, so probably it won't be aware of the hash code...
{ "language": "en", "url": "https://stackoverflow.com/questions/102690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the best option for running a Jabber/XMPP on Windows 2003? I'm looking to run a Jabber server on a Windows 2003 server(web farm) and like some practical advice from anyone who has run a live environment with ~500 concurrent users. Criteria for comment: * *Performance *Capacity (ie ~number of concurrent u...
{ "language": "en", "url": "https://stackoverflow.com/questions/102704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS (Stylesheet) organization and colors I just finished a medium sized web site and one thing I noticed about my css organization was that I have a lot of hard coded colour values throughout. This obviously isn't great for maintainability. Generally, when I design a site I pick 3-5 main colours for a theme. I en...
{ "language": "en", "url": "https://stackoverflow.com/questions/102720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is '397' used for ReSharper GetHashCode override? Like many of you, I use ReSharper to speed up the development process. When you use it to override the equality members of a class, the code-gen it produces for GetHashCode() looks like: public override int GetHashCode() { unchecked { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: "Carriage Return" gets stripped out when compresssing file When compressing a string "stream" the '/r' gets stripped out from '/r/n'. I am using the ICSharp.zip library for compression. Has any one else faced this problem, and if you have is there is a workaround? A: Does your zip library have a parameter to treat ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database safety: Intermediary "to_be_deleted" column/table? Everyone has accidentally forgotten the WHERE clause on a DELETE query and blasted some un-backed up data once or twice. I was pondering that problem, and I was wondering if the solution I came up with is practical. What if, in place of actual DELETE queri...
{ "language": "en", "url": "https://stackoverflow.com/questions/102759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache and J2EE sharing security realms/logins, single sign-on Here is the situation I'd like to create: * *www.blah.com/priv - protected by Apache HTTP Basic Auth, realm "foo" *www.blah.com/application - protected by Tomcat/Servlet HTTP Basic Auth, realm "foo" *User access /priv, apache requests login info, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/102778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to encrypt a very short string in PHP? I would like to encrypt strings which could potentially only be about three or four characters but run to about twenty characters. A hashing function (md5, sha1, crypt etc) is not suitable as I would like to be able to decrypt the information as well. The m...
{ "language": "en", "url": "https://stackoverflow.com/questions/102788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Table and List view with single Model in Qt I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data visualization framework for a web server? I need a framework for generating charts for data visualization. I picked up Processing www.processing.org/ but at the moment i can not run that in the "headless" mode from a web server. Is there any other candidate for this domain? What are the options if you need more...
{ "language": "en", "url": "https://stackoverflow.com/questions/102801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you enable the network on a virtual machine running Vista x64? I'm running Server 2008 64bit with Hyper-V. I've created a virtual machine with Vista 64bit and installed it. I can't get the Vista virtual machine to see the network adapter. I've set-up an external network on the Virtual Network Manager (Hyper-V...
{ "language": "en", "url": "https://stackoverflow.com/questions/102804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best Free Text Editor Supporting *More Than* 4GB Files? I am looking for a text editor that will be able to load a 4+ Gigabyte file into it. Textpad doesn't work. I own a copy of it and have been to its support site, it just doesn't do it. Maybe I need new hardware, but that's a different question. The editor n...
{ "language": "en", "url": "https://stackoverflow.com/questions/102829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Get Form request with Seam/JSF I have a query form that I would like to submit as a GET request so the result page may be bookmarked and otherwise RESTful. It's your classical text field with a submit button. How do I induce Seam/JSF to use GET and include the query expression as a parameter rather than POST, the de...
{ "language": "en", "url": "https://stackoverflow.com/questions/102832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use ASP.NET with Visual Studio 2008 I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the files. Is this the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Posting forms to a 404 + HttpHandler in IIS7: why has all POST data gone missing? OK, this might sound a bit confusing and complicated, so bear with me. We've written a framework that allows us to define friendly URLs. If you surf to any arbitrary URL, IIS tries to display a 404 error (or, in some cases, 403;14 or 4...
{ "language": "en", "url": "https://stackoverflow.com/questions/102846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)? Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting: 'makepl_arg' => q[PREFIX=~/lib], When I try running a test.pl script: $ perl test.pl #!/usr/bin/perl use lib "/homes/fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/102850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: JSON string to list or other usable format in asp.net 2.0 I have one JSON that is coming in a string format. I need to store it in a key-pair value or something like that. I am using asp.net 2.0 and can not use 3rd party DLL like Newtonsoft.Json.dll. I guess last option will be to use regular expression. Can anybod...
{ "language": "en", "url": "https://stackoverflow.com/questions/102866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you use WMI to create an MSMQ message queue (PRIVATE queue)? I need to create a PRIVATE message queue on a remote machine and I have resolved to fact that I can't do this with the .NET Framework in a straight forward manner. I can create a public message queue on a remote machine, but not a PRIVATE one. I can c...
{ "language": "en", "url": "https://stackoverflow.com/questions/102877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get Datetime to display in military time in oracle? I am running some queries to track down a problem with our backup logs and would like to display datetime fields in 24-hour military time. Is there a simple way to do this? I've tried googling and could find nothing. A: If you want all queries in your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is anyone targeting Google Chrome yet? (Web apps, plugins) Is anyone writing applications specifically to take advantage of google chrome? Are there any enterprise users who are considering using it as the standard browser? A: I switched to Chrome and haven't looked back except for the occasional site which doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/102894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Build new computer using Scripts I would like to automate the process of setting up a new PC, this would include downloading and installing the latest windows and office updates; installing software from a network share (some software will require a restart so the script would need to be able to login and continue) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is a good CI build-process What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build process good enough when its automat...
{ "language": "en", "url": "https://stackoverflow.com/questions/102902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Caching Data Objects when using Repository/Service Pattern and MVC I have an MVC-based site, which is using a Repository/Service pattern for data access. The Services are written to be using in a majority of applications (console, winform, and web). Currently, the controllers communicate directly to the services. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How is AJAX implemented, and how does it help web dev? From http://en.wikipedia.org/wiki/AJAX, I get a fairly good grasp of what AJAX is. However, it looks like in order to learn it, I'd have to delve into multiple technologies at the same time to get any benefit out of it. So two questions: * *What are resources...
{ "language": "en", "url": "https://stackoverflow.com/questions/102929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate a Sandcastle help file for a website without the "Xml Documentation File" option I am trying to generate a Sandcastle help file for a website. In the properties window for project, there aren't any options for creating the XML Documentation File required for Sandcastle. The Build tab in the property pages o...
{ "language": "en", "url": "https://stackoverflow.com/questions/102940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# VB.NET Conversion Which tools do you use to convert between C# and VB.NET? A: Check out Code Converter by Telerik. A: This has been asked so many times. Like here: What is the best C# to VB.net converter? A: Reflector. It isn't the best for the task, but it works. A: Tangible has C++ <> C#, Java <> C#, VB <> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculate total sum of all numbers in c:forEach loop I have a Java bean like this: class Person { int age; String name; } I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages. The code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/102964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Is IIS7 migration a piece of cake I wish to migrate a website to windows 2008 platform, is there any obvious pitfalls i should be aware of? code base is c# 3.5,asp.net with ms ajax. A: I googled a bit and found this link: http://weblogs.asp.net/steveschofield/archive/2008/09/04/iis6-to-iis7-migration-tips-tricks.as...
{ "language": "en", "url": "https://stackoverflow.com/questions/102980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I store a database ID field in ViewState? I need to retrieve a record from a database, display it on a web page (I'm using ASP.NET) but store the ID (primary key) from that record somewhere so I can go back to the database later with that ID (perhaps to do an update). I know there are probably a few ways to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/103000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: An issue possibly related to Cursor/Join Here is my situation: Table one contains a set of data that uses an id for an unique identifier. This table has a one to many relationship with about 6 other tables such that. Given Table 1 with Id of 001: Table 2 might have 3 rows with foreign key: 001 Table 3 might have 12...
{ "language": "en", "url": "https://stackoverflow.com/questions/103005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the easiest way to convert latitude and longitude to double values I've got a CSV file containing latitude and longitude values, such as: "25°36'55.57""E","45°39'12.52""N" Anyone have a quick and simple piece of C# code to convert this to double values? Thanks A: Thanks for all the quick answers. Based on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Broken pipe no longer ends programs? When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running $> do_something_intensive | less and then exiting less used to return you immediately to a respons...
{ "language": "en", "url": "https://stackoverflow.com/questions/103016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are pros and cons of Msmqdistributor service of Enterprise Library? We are using EntLib Logging Application Block. And also it turned out that we should use msmq for logging because of performance. Now we are trying to use Msmqdistributor service to log those messages in the queue. What are pros and cons of Ms...
{ "language": "en", "url": "https://stackoverflow.com/questions/103033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VS2008 Debugger does not break on unhandled exception I'm having an odd problem with my vs debugger. When running my program under the vs debugger, the debugger does not break on an unhandled exception. Instead control is returned to VS as if the program exited normally. If I look in the output tab, There is a fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/103034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where can I see what Color properties in .NET like "BlanchedAlmond" look like? I'm in the middle of writing code in .Net to draw something in my app and I need to pick a color to use. But what does the color "Chartreuse" look like? Isn't there a nice bitmap that shows what each of the system colors look like somewhe...
{ "language": "en", "url": "https://stackoverflow.com/questions/103035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you move from the Proof of Concept phase to working on a production-ready solution? I'm working on a project that's been accepted as a proof of concept and is now on the schedule as an actual production project. I'm curious how others approach this transition. I've heard from various sources that when a proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/103051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where to start with source-control Anyone have any suggestions on where to start for a newbie wanting to try out some sort of source-control along with a new journey into ASP.NET? SVN, VSS, CVS...I dont even know where to start! A: Very Subversion specific but it gives a decent understanding of version control basi...
{ "language": "en", "url": "https://stackoverflow.com/questions/103059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Why can't I open this table in SQL Server Management Studio? I created a couple of tables procedurally via C# named something like [MyTableOneCustom0] and [MyTableTwoCustom0]. When I try to return all of the values from these tables via "Open Table" in MSSQL Server Management Studio, I receive the following error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/103092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incremental File Copy Tool and NIH For years, one of my most important tools has been incremental copy utility that compares the contents of two directories and shows me which files are newer / older / added / deleted. Every day I find myself copying folders of source code between my two desktop machines and the se...
{ "language": "en", "url": "https://stackoverflow.com/questions/103118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I figure out who has a SQL Server 2005 database in Single User Mode? I have a database in single user mode and I am trying to drop it so I can re-run the creation scripts on it, but I'm being locked out from it. * *How do I figure out who has the lock on it? *How do I disable that lock? A: run sp_who, f...
{ "language": "en", "url": "https://stackoverflow.com/questions/103121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error while using groovy.sql Out parameter I am trying to execute some stored procedures in groovy way. I am able to do it quite easily by using straight JDBC but this does not seem in the spirit of Grails. I am trying to call the stored procedure as: sql.query( "{call web_GetCityStateByZip(?,?,?,?,?)}",[params.pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/103136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript Debugger Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)? ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ A: Here is an article, Advanced JavaScript Debugging Techniques, that describes the use of several tools. One new tool I learned about that I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/103155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to convert an XML file into a .Net class? Can someone please remind me how to create a .Net class from an XML file? I would prefer the batch commands, or a way to integrate it into the shell. Thanks! A: The below batch will create a .Net Class from XML in the current directory. So... XML -> XSD -> VB (Feel free...
{ "language": "en", "url": "https://stackoverflow.com/questions/103157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IIS ASP Caching I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true The software instructions point to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/103158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }