text
stringlengths
8
267k
meta
dict
Q: Different values of GetHashCode for inproc and stateserver session variables I've recently inherited an application that makes very heavy use of session, including storing a lot of custom data objects in session. One of my first points of business with this application was to at least move the session data away from...
{ "language": "en", "url": "https://stackoverflow.com/questions/86660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the inversion of the Shunting Yard algorithm? Dijkstra's Shunting Yard algorithm is used to parse an infix notation and generate RPN output. I am looking for the opposite, a way to turn RPN into highschool-math-class style infix notation, in order to represent RPN expressions from a database to lay users in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: TimeStamp in Control File I have a script that takes a table name and generates a control file by querying all the columns/rows the table. This works fine for numeric and character data but fails on timestamp data so I need to adjust the script to output the timestamp data into the control in such a way that it can...
{ "language": "en", "url": "https://stackoverflow.com/questions/86684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Debugging LINQ to SQL SubmitChanges() I am having a really hard time attempting to debug LINQ to SQL and submitting changes. I have been using http://weblogs.asp.net/scottgu/archive/2007/07/31/linq-to-sql-debug-visualizer.aspx, which works great for debugging simple queries. I'm working in the DataContext Class for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Membership bulk email software We have a Microsoft web stack web site, we have a members database. We want to start doing mass-emails to our (opted in) membership. I don't particularly want to re-invent the wheel with a system for having a web form submit and then mass send emails looping through thousands of record...
{ "language": "en", "url": "https://stackoverflow.com/questions/86697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does DataGrid on CE 5.0 Compact Framework .NET support editing? I am trying to get a DataGrid under CE 5.0 / .NET CF 2.0 that a user can edit. The document at http://msdn.microsoft.com/en-us/library/ms838165.aspx indicates that some environments do not support editing - As there is no native support for editing...
{ "language": "en", "url": "https://stackoverflow.com/questions/86710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Some sort of creational pattern needed in C# I have the following type : // incomplete class definition public class Person { private string name; public string Name { get { return this.name; } } } I want this type to be created and updated with some sort of dedicated controller/builder, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/86726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How best to alleviate scenarios that trigger non-incremental linking (MSVS) While incremental linking addresses much of the time spent linking, even for very large projects, I find the incremental linker in MSVS to be pretty haphazard. (I'm currently using 2003 atm, would love to hear if 2005/8 addressed any of thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/86751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change .xla File with MSBuild I'm trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_Number. This number needs to be changed for every build. The exact steps: * *Open XLA document with Excel. *S...
{ "language": "en", "url": "https://stackoverflow.com/questions/86763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to properly handle exceptions when performing file io Often I find myself interacting with files in some way but after writing the code I'm always uncertain how robust it actually is. The problem is that I'm not entirely sure how file related operations can fail and, therefore, the best way to handle exceptions....
{ "language": "en", "url": "https://stackoverflow.com/questions/86766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to check if a String contains another String in a case insensitive manner in Java? Say I have two strings, String s1 = "AbBaCca"; String s2 = "bac"; I want to perform a check returning that s2 is contained within s1. I can do this with: return s1.contains(s2); I am pretty sure that contains() is case sensitive...
{ "language": "en", "url": "https://stackoverflow.com/questions/86780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "460" }
Q: Is there a specific name for the node that coresponds to a subtree? I'm designing a web site navigation hierarchy. It's a tree of nodes. Nodes represent web pages. Some nodes on the tree are special. I need a name for them. There are multiple such nodes. Each is the "root" of a sub-tree with pages that have a dist...
{ "language": "en", "url": "https://stackoverflow.com/questions/86790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid thousands of needless ListView.SelectedIndexChanged events? If a user select all items in a .NET 2.0 ListView, the ListView will fire a SelectedIndexChanged event for every item, rather than firing an event to indicate that the selection has changed. If the user then clicks to select just one item in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/86793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Connecting delegate classes in Objective-C I've got two controls in my Interface Builder file, and each of those controls I've created a separate delegate class for in code (Control1Delegate and Control2Delegate). I created two "Objects" in interface builder, made them of that type, and connected the controls to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/86797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is the syntax for the Wordpress style.css template element available anywhere? I've recently embarked upon the grand voyage of Wordpress theming and I've been reading through the Wordpress documentation for how to write a theme. One thing I came across here was that the style.css file must contain a specific header...
{ "language": "en", "url": "https://stackoverflow.com/questions/86800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why would a "java.net.ConnectException: Connection timed out" exception occur when URL is up? I'm getting a ConnectException: Connection timed out with some frequency from my code. The URL I am trying to hit is up. The same code works for some users, but not others. It seems like once one user starts to get this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Javascript array reference If I have the following: {"hdrs": ["Make","Model","Year"], "data" : [ {"Make":"Honda","Model":"Accord","Year":"2008"} {"Make":"Toyota","Model":"Corolla","Year":"2008"} {"Make":"Honda","Model":"Pilot","Year":"2008"}] } And I have a "hdrs" name (i.e. "Make"), how can I reference ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DB2 Transport Component is not registered correctly I'm trying to test the DB2 adapter for BizTalk 2006 (not R2). While trying to configure an instance in an application, I get an error stating: DB2 Transport Component is not registered correctly The enivronment is 2 BizTalk servers sharing a messagebox. The DB2 a...
{ "language": "en", "url": "https://stackoverflow.com/questions/86863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is the root logger collecting all log types regardless the configuration? I am having problem that even though I specify the level to ERROR in the root tag, the specified appender logs all levels (debug, info, warn) to the file regardless the settings. I am not a Log4j expert so any help is appreciated. I have c...
{ "language": "en", "url": "https://stackoverflow.com/questions/86878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Creating a fluid panel in GWT to fill the page? I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following: public class Main implements EntryPoint { public void onModuleLoad() { HorizontalSplitPanel split = new H...
{ "language": "en", "url": "https://stackoverflow.com/questions/86901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Opening Javascript based popup ads on the same page I own an image hosting site and would like to generate one popup per visitor per day. The easiest way for me to do this was to write a php script that called subdomains, like ads1.sitename.com ads2.sitename.com unfortunatly most of my advertisers want to give me a...
{ "language": "en", "url": "https://stackoverflow.com/questions/86902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Suggestions on how build an HTML Diff tool? In this post I asked if there were any tools that compare the structure (not actual content) of 2 HTML pages. I ask because I receive HTML templates from our designers, and frequently miss minor formatting changes in my implementation. I then waste a few hours of designer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I fix "501 Syntactically invalid HELO argument(s)"? I'm using exim on both the sending and relay hosts, the sending host seems to offer: HELO foo_bar.example.com Response: 501 Syntactically invalid HELO argument(s) A: Possibly a problem with underscores in the hostname? http://www.exim.org/lurker/message/...
{ "language": "en", "url": "https://stackoverflow.com/questions/86907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Converting SQL Result Sets to XML I am looking for a tool that can serialize and/or transform SQL Result Sets into XML. Getting dumbed down XML generation from SQL result sets is simple and trivial, but that's not what I need. The solution has to be database neutral, and accepts only regular SQL query results (no db...
{ "language": "en", "url": "https://stackoverflow.com/questions/86911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's a good way to store raster data? I have a variety of time-series data stored on a more-or-less georeferenced grid, e.g. one value per 0.2 degrees of latitude and longitude. Currently the data are stored in text files, so at day-of-year 251 you might see: 251 12.76 12.55 12.55 12.34 [etc., 200 more values...]...
{ "language": "en", "url": "https://stackoverflow.com/questions/86913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unpivot xml doc based on attributes I have a simple xml document that looks like the following snippet. I need to write a XSLT transform that basically 'unpivots' this document based on some of the attributes. <?xml version="1.0" encoding="utf-8" ?> <root xmlns:z="foo"> <z:row A="1" X="2" Y="n1" Z="500"/> <z...
{ "language": "en", "url": "https://stackoverflow.com/questions/86919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to handle null when writing equals operator Possible Duplicate: How do I check for nulls in an '==' operator overload without infinite recursion? When I overload the == operator for objects I typically write something like this: public static bool operator ==(MyObject uq1, MyObject uq2) { if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Network Socket command Unix.....>>netstat -al | grep 8787 (will see packets on port 8787) A: What is the nature of the question here? Are you trying to see packets on port 8787? Are you looking for services listening on port 8787? Most importantly, how is this a programming-related question? A: If you want to see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Same source code on two machines yield different executable behavior Here's the scenario: A C# Windows Application project stored in SVN is used to create an executable. Normally, a build server handles the build process and creates builds at regular intervals which are used by testing. In this particular instance ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get a warning before killing a temporary buffer in Emacs? More than once I've lost work by accidentally killing a temporary buffer in Emacs. Can I set up Emacs to give me a warning when I kill a buffer not associated with a file? A: (defun maybe-kill-buffer () (if (and (not buffer-file-name) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best way to update multi-gigabyte program (DVD fulfillment? Updater software?) Two years ago, we shipped a multi-gigabyte Windows application, with lots of video files. Now we're looking to release a significant update, with approximately 1 gigabyte of new and changed data. We're currently looking at DVD fulfillment...
{ "language": "en", "url": "https://stackoverflow.com/questions/86971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Avoiding double-thunking with C++/CLI properties I've read (in Nish Sivakumar's book C++/CLI In Action among other places) that you should use the __clrcall decorator on function calls to avoid double-thunking, in cases where you know that the method will never be called from unmanaged code. Nish also says that if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/86977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle connection problem on Mac OSX: "Status : Failure -Test failed: Io exception: The Network Adapter could not establish the connection" I'm trying this with Oracle SQL Developer and am on an Intel MacBook Pro. But I believe this same error happens with other clients. I can ping the server hosting the database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/86987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you manage "pick lists" in a database I have an application with multiple "pick list" entities, such as used to populate choices of dropdown selection boxes. These entities need to be stored in the database. How do one persist these entities in the database? Should I create a new table for each pick list? Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/86992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Screen capture doesn't work on MFC application in Vista We've got some in-house applications built in MFC, with OpenGL drawing routines. They all use the same code to draw on the screen and either print the screen or save it to a JPEG file. Everything's been working fine in Windows XP, and I need to find a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the best practices for using HTML with XML based languages like SVG? From browsing on this site and elsewhere, I've learned that serving websites as XHTML at present is considered harmful. Delivering XHTML and serving it as application/xhtml+xml isn't supported by the majority of people browsing at present,...
{ "language": "en", "url": "https://stackoverflow.com/questions/87010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby code for quick-and-dirty XML serialization? Given a moderately complex XML structure (dozens of elements, hundreds of attributes) with no XSD and a desire to create an object model, what's an elegant way to avoid writing boilerplate from_xml() and to_xml() methods? For instance, given: <Foo bar="1"><Bat baz="b...
{ "language": "en", "url": "https://stackoverflow.com/questions/87021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Query Web Service for list of Messages? Is there a straightforward way to query a web service to see which messages it supports? The C# .NET application I'm working on needs to be able to handle an older version of the web service, which does not implement the message I'm trying to send. The web service does not exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/87023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to find Java 6 JSSE/JCE Source Code? Where can I download the JSSE and JCE source code for the latest release of Java? The source build available at https://jdk6.dev.java.net/ does not include the javax.crypto (JCE) packages nor the com.sun.net.ssl.internal (JSSE) packages. Not being able to debug these class...
{ "language": "en", "url": "https://stackoverflow.com/questions/87030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Color reduction (in Java) I would like to find a way to take JPEG (or GIF/PNG) images and reduce the amount of colors to e.g. 20. Could someone recommend some library or other reference? Also source codes in other languages are welcome. A: Take a look at the Java Advanced Imaging API. There are a number of algorit...
{ "language": "en", "url": "https://stackoverflow.com/questions/87062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Attempting to update a user's "connect to:" home directory path in AD using C# I have a small application I am working on that at one point needs to update a user's home directory path in AD under the profile tab where it allows you to map a drive letter to a particular path. The code I have put together so far set...
{ "language": "en", "url": "https://stackoverflow.com/questions/87071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Rails, after using find with :select, my objects don't save Running something like: @users = User.find(:first, :select => "name, lastname, salary") for @user in @users do @user.salary = 100000 @user.save end After this looking up in the Mysql table, the users aren't updated. A: John Ruby is correct that you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: STL Alternative I really hate using STL containers because they make the debug version of my code run really slowly. What do other people use instead of STL that has reasonable performance for debug builds? I'm a game programmer and this has been a problem on many of the projects I've worked on. It's pretty hard to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to SelectAll / SelectNone in .NET 2.0 ListView? What is a good way to select all or select no items in a listview without using: foreach (ListViewItem item in listView1.Items) { item.Selected = true; } or foreach (ListViewItem item in listView1.Items) { item.Selected = false; } I know the underlying Win32 li...
{ "language": "en", "url": "https://stackoverflow.com/questions/87101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I fix 404.17 error on Win Server 2k8 and IIS7 I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/87107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: GUID Behind the Scenes I am wondering, what goes into the creation of a GUID. I don't mean what is used to create a GUID in a specific language (NewID() in SQL Server, Guid.NewGuid() in C#), I mean when you call those methods/functions, what do they do to make the GUID? A: Also, RFC 4122 (which is referenced in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/87127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# ListView mouse wheel scroll without focus I'm making a WinForms app with a ListView set to detail so that several columns can be displayed. I'd like for this list to scroll when the mouse is over the control and the user uses the mouse scroll wheel. Right now, scrolling only happens when the ListView has focus. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/87134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Sequence Diagram Reverse Engineering I'm looking for a tool that will reverse engineer Java into a sequence diagram BUT also provides the ability to filter out calls to certain libraries. For example, the Netbeans IDE does a fantastic job of this but it includes all calls to String or Integer which clutter up the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/87137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: WCSF Random assembly manifest definition does not match assembly ref in .NET 2.0 I'm running WCSF Feb 2008 along with Enterprise Library 3.1 and noticed that randomly I get the "fun" Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, Public ... The locate...
{ "language": "en", "url": "https://stackoverflow.com/questions/87168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I preserve line feeds, tabs, and spaces in data while still wrapping text? I had data in XML that had line feeds, spaces, and tabs that I wanted to preserve in the output HTML (so I couldn't use <p>) but I also wanted the lines to wrap when the side of the screen was reached (so I couldn't use <pre>). A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are some good Module Development Solution/Environments/Best Practices for Dot Net Nuke Modules I've been developing modules for DNN since version 2 and back then I was able to easily able to run my module as I developed it on my environment and still easily deploy my module as a DLL. When version 4 came out and...
{ "language": "en", "url": "https://stackoverflow.com/questions/87179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best way to localize a WPF application, sans LocBAML? There seems to be no good way to localize a WPF application. MSDN seems to think that littering my XAML with x:Uid's, generating CSV files, and then generating new assemblies (using their sample code!) is the answer. Worse, this process doesn't addr...
{ "language": "en", "url": "https://stackoverflow.com/questions/87184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: .NET library for processing HTML e-mails & stripping previous responses Does anyone know of a .NET library that will process HTML e-mails and can be used to trim out the reply-chain? It needs to be able to accept HTML -or- text mails and then trim out everything but the actual response, removing the trail of messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/87190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: When would you need to use late static binding? After reading this description of late static binding (LSB) I see pretty clearly what is going on. Now, under which sorts of circumstances might that be most useful or needed? A: I needed LSB this for the following scenario: * *Imagine you're building a "mail proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/87192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Mocking WebResponse's from a WebRequest I have finally started messing around with creating some apps that work with RESTful web interfaces, however, I am concerned that I am hammering their servers every time I hit F5 to run a series of tests.. Basically, I need to get a series of web responses so I can test I am p...
{ "language": "en", "url": "https://stackoverflow.com/questions/87200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How do I choose a CMS/Portal solution for a small website(s)? I currently maintain 3 websites all revolving around the same concept. 2 of them are WinForms applications where the website gives a few basic details, and download links. The third is a web application to query data. I also have a forum (SMF/TinyPortal) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does gcc implement stack unrolling for C++ exceptions on linux? How does gcc implement stack unrolling for C++ exceptions on linux? In particular, how does it know which destructors to call when unrolling a frame (i.e., what kind of information is stored and where is it stored)? A: There isn't much documentati...
{ "language": "en", "url": "https://stackoverflow.com/questions/87220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: ASP.NET UrlRewriting and Constructing Page Links So this post talked about how to actually implement url rewriting in an ASP.NET application to get "friendly urls". That works perfect and it is great for sending a user to a specific page, but does anyone know of a good solution for creating "Friendly" URLs inside y...
{ "language": "en", "url": "https://stackoverflow.com/questions/87221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: representing CRLF using Hex in C# How do i represent CRLF using Hex in C#? A: Since no one has actually given the answer requested, here it is: "\x0d\x0a" A: End-of-Line characters. For DOS/Windows it's x0d x0a (\r\n) and for *NIX it's x0a (\n) * *dos2unix - Convert x0d x0a to x0a to make it *NIX compat...
{ "language": "en", "url": "https://stackoverflow.com/questions/87222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Make git-svn work on Slackware 12.1 It is obviosly some Perl extensions. Perl version is 5.8.8. I found Error.pm, but now I'm looking for Core.pm. While we're at it: how do you guys search for those modules. I tried Google, but that didn't help much. Thanks. And finally, after I built everything, running: ./Build...
{ "language": "en", "url": "https://stackoverflow.com/questions/87224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to edit sessions parameters on Oracle 10g XE? default is 49 how to edit to higher? A: You will need to issue the following command (connected as a user that has alter system privileges, sys will do it) alter system set sessions=numberofsessions scope=spfile; Have you been getting an ORA-12516 or ORA-12520 error...
{ "language": "en", "url": "https://stackoverflow.com/questions/87230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In ASP.net Webforms how do you detect which Textbox someone pressed enter? In ASP.net Webforms how do you detect which Textbox someone pressed enter? Please no Javascript answers. I need to handle it all in the code behind using VB.NET. A: I suspect it cannot be done without javascript - when you hit enter, the bro...
{ "language": "en", "url": "https://stackoverflow.com/questions/87245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mathematical analysis of a sound sample (as an array of numbers) I need to find the frequency of a sample, stored (in vb) as an array of byte. Sample is a sine wave, known frequency, so I can check), but the numbers are a bit odd, and my maths-foo is weak. Full range of values 0-255. 99% of numbers are in range 235...
{ "language": "en", "url": "https://stackoverflow.com/questions/87262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to embed audio/video on HTML page that plays on iPhone browser over GPRS Although I don't have an iPhone to test this out, my colleague told me that embedded media files such as the one in the snippet below, only works when the iphone is connected over the WLAN connection or 3G, and does not work when connecting...
{ "language": "en", "url": "https://stackoverflow.com/questions/87290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I limit the number of simultaneous downloads in Asp.net and/or IIS? I have a website with a lot of large files. However, I don't want users to start downloading like 10 files at a time. I noticed there are website out there where they only allow 2 simultaneous downloads. My website is programmed using ASP.ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/87294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the most convincing command in Vim I want to ditch my current editor. I feel I need something else. That do not expose my hands to the risk of RSI. I need to see why I should change editor. And it would be nice to believe, that I will be coding when I'm 80 years old. All the big guys out there are using Vim....
{ "language": "en", "url": "https://stackoverflow.com/questions/87299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I create a human-readable script for every DTS package on a SQL server? I know I can edit each individual DTS package and save it as a Visual Basic script, but with hundreds of packages on the server, that will take forever. How can I script them all at once? I'd like to be able to create one file per pack...
{ "language": "en", "url": "https://stackoverflow.com/questions/87303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Calculating frames per second in a game What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast. Bonus points if your answer updates each frame and doesn't c...
{ "language": "en", "url": "https://stackoverflow.com/questions/87304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: Get list of XML attribute values in Python I need to get a list of attribute values from child elements in Python. It's easiest to explain with an example. Given some XML like this: <elements> <parent name="CategoryA"> <child value="a1"/> <child value="a2"/> <child value="a3"/> </pare...
{ "language": "en", "url": "https://stackoverflow.com/questions/87317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Numbering Regex Submatches Is there a canonical ordering of submatch expressions in a regular expression? For example: What is the order of the submatches in "(([0-9]{3}).([0-9]{3}).([0-9]{3}).([0-9]{3}))\s+([A-Z]+)" ? a. (([0-9]{3})\.([0-9]{3})\.([0-9]{3})\.([0-9]{3}))\s+([A-Z]+) (([0-9]{3})\.([0-9]{3})\.([0-...
{ "language": "en", "url": "https://stackoverflow.com/questions/87330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are good grep tools for Windows? Any recommendations on grep tools for Windows? Ideally ones that could leverage 64-bit OS. I'm aware of Cygwin, of course, and have also found PowerGREP, but I'm wondering if there are any hidden gems out there? A: I always use WinGREP, but I've had issues with it not letting g...
{ "language": "en", "url": "https://stackoverflow.com/questions/87350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "288" }
Q: TestDriven.Net doesn't find tests I have a test project using MbUnit and TestDriven.Net. If I right-click on an individual test method and say "Run Tests" the test runs successfully. Same thing if I click on a file name in the solution explorer. However, if I right click and say run tests on the project or the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I pass a JavaScript variable to another browser window? I have a page which spawns a popup browser window. I have a JavaScript variable in the parent browser window and I would like to pass it to the popped-up browser window. Is there a way to do this? I know this can be done across frames in the same browser wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/87359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: How should exceptions be planned at the architectural level? Are there any good resources for planning how exceptions will be used from an architecture perspective? (Or provide your suggestions directly here.) In projects on which I have worked I find that a few common Exceptions are used over and over again and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/87362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What identifying information can a website capture? If the owner of a web site wants to track who their users are as much as possible, what things can they capture (and how). You might want to know about this in order to capture information on a site you create or, as a user, to prevent a site from capturing data on...
{ "language": "en", "url": "https://stackoverflow.com/questions/87365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: What are the major vulnerabilities of Windows 2003 + Apache? I am searching for a host for a new commercial website. Among other things, I'd like to know what the various OS - Webserver combinations have in terms of vulnerabilities. What are the vulnerabilities of Windows 2003 + Apache? A: You could look here: http...
{ "language": "en", "url": "https://stackoverflow.com/questions/87371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if a class has a member function of a given signature I'm asking for a template trick to detect if a class has a specific member function of a given signature. The problem is similar to the one cited here http://www.gotw.ca/gotw/071.htm but not the same: in the item of Sutter's book he answered to the question...
{ "language": "en", "url": "https://stackoverflow.com/questions/87372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "170" }
Q: javascript library to show photo album I visited few web sites in the past where they had a set of photo thumbnails and clicking on one of them created a cool effect of an expanding popup showing the full size image. Is there any available free JavaScript library that will do this? I'm interested mostly in the popup...
{ "language": "en", "url": "https://stackoverflow.com/questions/87373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I find the location of a regex match in Perl? I need to write a function that receives a string and a regex. I need to check if there is a match and return the start and end location of a match. (The regex was already compiled by qr//.) The function might also receive a "global" flag and then I need to retur...
{ "language": "en", "url": "https://stackoverflow.com/questions/87380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Resharper and ViEmu Keybindings ( and Visual Assist ) With ViEmu you really need to unbind a lot of resharpers keybindings to make it work well. Does anyone have what they think is a good set of keybindings that work well for resharper when using ViEmu? What I'm doing at the moment using the Visual Studio bindings f...
{ "language": "en", "url": "https://stackoverflow.com/questions/87381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Headless HTML rendering, preferably open source I'm currently looking to perform some headless HTML rendering to essentially create resources off screen and persist the result as an image. The purpose is to take a subset of the HTML language and apply it to small screen devices (like PocketPCs) because our users kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/87386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Using both 1.1 and 2.0 frameworks on Windows 2003 x64 So, much to my annoyance I discover (after lots of research), that when running 1.1 and 2.0 dot.net frameworks on a 64bit 2003 install, it removes the asp.net tab from the IIS properties. I've tried the registry hacks, I've tried registering 32bit versions of bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/87398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different versions of C++ libraries After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs fine on the original vista machine and other vista computers. However, moving it over to an XP box results in an error message: "The application failed to start because the application configur...
{ "language": "en", "url": "https://stackoverflow.com/questions/87405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: get contacts from email account a lot of websites like twitter, facebook and others let the users enter their email id and pwd and 'extract' the contacts based on that. Anyone know how this is done? A: They login to your account and scrape the contents, or use a public API. Either way, it's not a method that I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Specifying Source for Debugging using Netbeans Using the debugger in Netbeans 6.1, I'd like to step into a method of the JSF library (specifically method saveSerializedView of class StateManager), but I cannot figure out how to specify through the IDE the location of the source code for the JSF library. I'm even hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/87411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Disabling Back button on the browser I am writing an application that if the user hits back, it may resend the same information and mess up the flow and integrity of data. How do I disable it for users who are with and without javascript on? A: I strongly urge you to go to heroic lengths to prevent breaking the bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/87422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Is it safe to generally assume that toString() has a low cost? Do you generally assume that toString() on any given object has a low cost (i.e. for logging)? I do. Is that assumption valid? If it has a high cost should that normally be changed? What are valid reasons to make a toString() method with a high cost?...
{ "language": "en", "url": "https://stackoverflow.com/questions/87425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What are the major vulnerabilities of Redhat + Apache? I am searching for a host for a new commercial website. Among other things, I'd like to know what the various OS - Webserver combinations have in terms of vulnerabilities. What are the vulnerabilities of Redhat + Apache? A: See: http://httpd.apache.org/security...
{ "language": "en", "url": "https://stackoverflow.com/questions/87431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you extract macros programmatically from OpenOffice.org Writer document using .NET? How do you extract the Macro code from an OpenOffice.org Writer document using the .NET API? I got an answer to the "Office 2007" version of this question, but we are evaluating OpenOffice as an alternative -- if anyone has an...
{ "language": "en", "url": "https://stackoverflow.com/questions/87437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Virtual network interface in Mac OS X I know that you can make a virtual network interface in Windows (see here), and in Linux it is also pretty easy with ip-aliases, but does something similar exist for Mac OS X? I've been looking for loopback adapters, virtual interfaces and couldn't find a good solution. You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Can you specify filenames using wildcards or regexes in the subversion mv command? I want to do this so that I can say something like, svn mv *.php php-folder/, but it does not seem to be working. Is it even possible? No mention of it is made on the relevant page in the svn book. Example output of svn mv *.php php...
{ "language": "en", "url": "https://stackoverflow.com/questions/87458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Are "proxy properties" good style? I have a class with a string property that's actually several strings joined with a separator. I'm wondering if it is good form to have a proxy property like this: public string ActualProperty { get { return actualProperty; } set { actualProperty = value; } } public string...
{ "language": "en", "url": "https://stackoverflow.com/questions/87459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How might I pass variables through to cached content in PHP? Essentially I have a PHP page that calls out some other HTML to be rendered through an object's method. It looks like this: MY PHP PAGE: // some content... <?php $GLOBALS["topOfThePage"] = true; $this->renderSomeHTML(); ?> // some content... <?p...
{ "language": "en", "url": "https://stackoverflow.com/questions/87468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How many DataTable objects should I use in my C# app? I'm an experienced programmer in a legacy (yet object oriented) development tool and making the switch to C#/.Net. I'm writing a small single user app using SQL server CE 3.5. I've read the conceptual DataSet and related doc and my code works. Now I want to make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: If it is decided that our system needs an overhaul, what is the best way to go about it? We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to mov...
{ "language": "en", "url": "https://stackoverflow.com/questions/87522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SharePoint custom content feature with Word Quick Parts and Document Information Panel I am creating a custom content type feature for MOSS that will also include a Word 2007 document as the document template. The same Word document will also have a Document Information Panel (DIP) and Quick Parts for all the fields...
{ "language": "en", "url": "https://stackoverflow.com/questions/87535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Excel column names What column names cannot be used when creating an Excel spreadsheet with ADO. I have a statement that creates a page in a spreadsheet: CREATE TABLE [TableName] (Column string, Column2 string); I have found that using a column name of Date or Container will generate an error when the statement is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/87541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making WCF easier to configure I have a set of WCF web services connected to dynamically by a desktop application. My problem is the really detailed config settings that WCF requires to work. Getting SSL to work involves custom settings. Getting MTOM or anything else to work requires more. You want compression? Here...
{ "language": "en", "url": "https://stackoverflow.com/questions/87542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: In Flex/AS3, how do I get a class definition of an embedded asset with getDefinitionByName I have a class with many embedded assets. Within the class, I would like to get the class definition of an asset by name. I have tried using getDefinitionByName(), and also ApplicationDomain.currentDomain.getDefinition() but...
{ "language": "en", "url": "https://stackoverflow.com/questions/87557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is your preferred way to produce charts in a Ruby on Rails web application? I'd like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead. What charting solution would you recommend? What are its drawbacks (re...
{ "language": "en", "url": "https://stackoverflow.com/questions/87561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }