text
stringlengths
8
267k
meta
dict
Q: .Net Multithreading: SQL ConnectionPool In a VB.Net Windows Service I'm currently pooling units of work with: ThreadPool.QueueUserWorkItem(operation, nextQueueID) In each unit of work (or thread I'll use for ease of understanding), it will make a couple MSSQL operations like so: Using sqlcmd As New SqlCom...
{ "language": "en", "url": "https://stackoverflow.com/questions/130941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Read binary file as string in Ruby I need an easy way to take a tar file and convert it into a string (and vice versa). Is there a way to do this in Ruby? My best attempt was this: file = File.open("path-to-file.tar.gz") contents = "" file.each {|line| contents << line } I thought that would be enough to convert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/130948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: How can I provide custom error messages using JAXP DocumentBuilder? I want to provide my own message from the validation done in DocumentBuilder, rather than the one from XMLMessages.properties. Now I see that a property error-reporter needs to be set to a class which extends XMLErrorReporter. However, I've not been...
{ "language": "en", "url": "https://stackoverflow.com/questions/130960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Planning to use PostgreSQL with ASP.NET: bad idea? I'm currently planning the infrastructure for my future web project. I want to go the way Joel went with having one DB per client and now thinking which DB engine will be good for me. The best would be of course SQL Server, but I can't afford a full-blown version at...
{ "language": "en", "url": "https://stackoverflow.com/questions/130968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: An affordable tool for DB modeling Could you guys recommend some affordable SQL modeling tool which supports SQL Server, PostgreSQL and MySQL? I'm looking into up to $300 per license range. One tool per answer, please! Thanks! A: In addition to Microsoft Visio and SQL Server Database Diagrams, one tool not yet ment...
{ "language": "en", "url": "https://stackoverflow.com/questions/130986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.net MVC HomeController URL By default the MVC Preview 5 web project comes with a HomeController.vb class. This sets the web URL to http://www.mywebsite.com/home/ by default. If I just wanted this to be http://www.mywebsite.com/ by default, how would I accomplish that? A: Answered already so I'm just going to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/130997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the SQL query to list all rows that have 2 column sub-rows as duplicates? I have a table that has redundant data and I'm trying to identify all rows that have duplicate sub-rows (for lack of a better word). By sub-rows I mean considering COL1 and COL2 only. So let's say I have something like this: COL1 CO...
{ "language": "en", "url": "https://stackoverflow.com/questions/131014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Securing DB and session-data on a PHP shared host I wrote a PHP web-application using SQLite and sessions stored on filesystem. This is functionally fine and attractively low maintenance. But, now it needs to run on a shared host. All web-applications on the shared host run as the same user, so my users' session da...
{ "language": "en", "url": "https://stackoverflow.com/questions/131017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Migrations for Java I use both ruby on rails and Java. I really enjoy using migrations when I am working on a rails project. so I am wondering is there a migrations like tool for Java? If there is no such tool is it a good idea to use migrations as a tool to control a database used by a Java project? A: I've use...
{ "language": "en", "url": "https://stackoverflow.com/questions/131020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Backgroundrb scheduled task ending I have a backroundrb scheduled task that takes quite a long time to run. However it seems that the process is ending after only 2.5 minutes. My background.yml file: :schedules: :named_worker: :task_name: :trigger_args: 0 0 12 * * * * :data: input_data I have zero...
{ "language": "en", "url": "https://stackoverflow.com/questions/131021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: List Comprehension Library for Scheme? I know there is a list-comprehension library for common lisp (incf-cl), I know they're supported natively in various other functional (and some non-functional) languages (F#, Erlang, Haskell and C#) - is there a list comprehension library for Scheme? incf-cl is implemented in C...
{ "language": "en", "url": "https://stackoverflow.com/questions/131023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Modifying/detecting Local Security Policy programmatically Is it possible to do at least one of the following: 1) Detect a setting of a Local Security Policy (Accounts: Limit local account use of blank passwords to console logon only) 2) Modify that setting Using Win32/MFC? A: I've been down this road before and en...
{ "language": "en", "url": "https://stackoverflow.com/questions/131025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Converting string to uint in actionscript / Flex I am creating a component and want to expose a color property as many flex controls do, lets say I have simple component like this, lets call it foo_label: <mx:Canvas> <mx:Script> [Bindable] public var color:uint; </mx:Script> <mx:Label text="foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/131040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the easiest way to add a quote box to mediawiki? I installed mediawiki on my server as my personal knowledge base. Sometimes I copy some stuff from Web and paste to my wiki - such as tips & tricks from somebody's blog. How do I make the copied content appear in a box with border? For example, the box at the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/131049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: What is the best way to implement a singleton pattern class in Actionscript 3? Since AS3 does not allow private constructors, it seems the only way to construct a singleton and guarantee the constructor isn't explicitly created via "new" is to pass a single parameter and check it. I've heard two recommendations, one...
{ "language": "en", "url": "https://stackoverflow.com/questions/131050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: object reference not set to an instance of object I have been getting an error in VB .Net object reference not set to an instance of object. Can you tell me what are the causes of this error ? A: Let's deconstruct the error message. "object reference" means a variable you used in your code which referenced an ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/131053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fetch one row per account id from list, part 2 Not sure how to ask a followup on SO, but this is in reference to an earlier question: Fetch one row per account id from list The query I'm working with is: SELECT * FROM scores s1 WHERE accountid NOT IN (SELECT accountid FROM scores s2 WHERE s1.score < s2.score) ORDER ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do fancy MVC URLs affect how caching is done? When reading some answers to aquestion on clearing cache for JS files, somebody pointed to this part of the http spec. It basically says that URLS containing a ? should not be pulled from the cache, unless a specific expiry date is given. How do query string absent URL...
{ "language": "en", "url": "https://stackoverflow.com/questions/131061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone viewWillAppear not firing I've read numerous posts about people having problems with viewWillAppear when you do not create your view hierarchy just right. My problem is I can't figure out what that means. If I create a RootViewController and call addSubView on that controller, I would expect the added view(s)...
{ "language": "en", "url": "https://stackoverflow.com/questions/131062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: In JavaScript, is there a source for time with a consistent resolution in milliseconds? The Date object in JavaScript performs differently machine to machine and browser to browser in respect to the function's resolution in milliseconds. I've found most machines have a resolution of about 16 ms on IE, where Chrome ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's the quickest way to dump & load a MySQL InnoDB database using mysqldump? I would like to create a copy of a database with approximately 40 InnoDB tables and around 1.5GB of data with mysqldump and MySQL 5.1. What are the best parameters (ie: --single-transaction) that will result in the quickest dump and load...
{ "language": "en", "url": "https://stackoverflow.com/questions/131085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How big of a security risk is checking out an svn project right into production site? Not that I'm doing something like that, but I am kind of interested how bad a practice like that is. A: I can't necessarily comment on the security risks involved, but it could put you in a situation where unvetted/not fully teste...
{ "language": "en", "url": "https://stackoverflow.com/questions/131089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: OpenID Over SSL with self signed certificate I setup my own open id provider on my personal server, and added a redirect to https in my apache config file. When not using a secure connection (when I disable the redirect) I can log in fine, but with the redirect I can't log in with this error message: The underlying...
{ "language": "en", "url": "https://stackoverflow.com/questions/131091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Writing a cookie from an ASP.Net HTTPHandler - Page.Response object? I am creating an HTTP handler that listens for calls to a specific file type, and handles it accordingly. My HTTP Handler listens for .bcn files, then writes a cookie to the user's computer and sends back an image... this will be used in advertisi...
{ "language": "en", "url": "https://stackoverflow.com/questions/131110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How often do you update statistics in SQL Server 2000? I'm wondering if updating statistics has helped you before and how did you know to update them? A: exec sp_updatestats Yes, updating statistics can be very helpful if you find that your queries are not performing as well as they should. This is evidenced by i...
{ "language": "en", "url": "https://stackoverflow.com/questions/131116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's a good Systems Interface Specification template? A client has a number of disparate systems that they are planning to link together and have asked for a set of system interface specifications that would document the data and protocols used to interface the different parts. The interfaces are between processes...
{ "language": "en", "url": "https://stackoverflow.com/questions/131117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get a range's address including the worksheet name, but not the workbook name, in Excel VBA? If I have a Range object--for example, let's say it refers to cell A1 on a worksheet called Book1. So I know that calling Address() will get me a simple local reference: $A$1. I know it can also be called as Addr...
{ "language": "en", "url": "https://stackoverflow.com/questions/131121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: What standard techniques are there for using cpu specific features in DLLs? Short version: I'm wondering if it's possible, and how best, to utilise CPU specific instructions within a DLL? Slightly longer version: When downloading (32bit) DLLs from, say, Microsoft it seems that one size fits all processors. Does this...
{ "language": "en", "url": "https://stackoverflow.com/questions/131128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Streaming large result sets with MySQL 4.1.x + Connector/J I'm trying to get a large result set to stream and having no luck. The MySQL docs are somewhat unclear as to whether this should even work. E.g.: When using versions of the JDBC driver earlier than 3.2.1, and connected to server versions earlier than 5.0.3, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resources for code generation of database objects I am working a project where I need to generate a series of classes to represent/access data in the database. Third party projects such as hibernate or subsonic are not an option. I am new in this subject domain, so I am looking for information on the topic. The proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/131142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Oracle Insert via Select from multiple tables where one table may not have a row I have a number of code value tables that contain a code and a description with a Long id. I now want to create an entry for an Account Type that references a number of codes, so I have something like this: insert into account_type_stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/131164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Evolutionary Algorithms: Optimal Repopulation Breakdowns It's really all in the title, but here's a breakdown for anyone who is interested in Evolutionary Algorithms: In an EA, the basic premise is that you randomly generate a certain number of organisms (which are really just sets of parameters), run them against a...
{ "language": "en", "url": "https://stackoverflow.com/questions/131165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Web Log analysis in Java How to read a web server log file in Java. This file is getting updated all the time. If I open a new FileInputStream, will it read the log real time? Regards A: Here is a solution based on RandomAccessFile: http://www.informit.com/guides/content.aspx?g=java&seqNum=226
{ "language": "en", "url": "https://stackoverflow.com/questions/131176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: error installing RMagick from gem Trying to install the RMagick gem is failing with an error about being unable to find ImageMagick libraries, even though I'm sure they are installed. The pertinent output from gem install rmagick is: checking for InitializeMagick() in -lMagick... no checking for InitializeMagick() i...
{ "language": "en", "url": "https://stackoverflow.com/questions/131179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a .snk for? What is a .snk file for? I know it stands for Strongly Named Key, but all explanations of what it is and how it works goes over my head. Is there any simple explanation on how a strongly named key is used and how it works? A: The .snk file is used for signing the assemblies in order to be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "169" }
Q: Convert console exe to dll in C I am interested in calling SoX, an open source console application, from another Windows GUI program (written in Delphi naturally). Instead of dealing with scraping and hiding the console window, I would like to just convert the application to a DLL that I can call from my applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/131196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can you Catch an Exception after the main application unit has ended? In one of our application im getting an exception that i can not seem to find or trap. ... Application.CreateForm(TFrmMain, FrmMain); outputdebugstring(pansichar('Application Run')); //this is printed Application.Run; outputdebugstrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/131217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In sharepoint designer's workflow editor how do I get the workflow initiators username? In Sharepoint designer's workflow editor I wish to retrieve the username/name of the work flow initiator (i.e. who kicked it off or triggered the workflow) - this is relatively easy to do using 3rd party products such as Nintex W...
{ "language": "en", "url": "https://stackoverflow.com/questions/131238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why use iterators instead of array indices? Take the following two lines of code: for (int i = 0; i < some_vector.size(); i++) { //do stuff } And this: for (some_iterator = some_vector.begin(); some_iterator != some_vector.end(); some_iterator++) { //do stuff } I'm told that the second way is preferred...
{ "language": "en", "url": "https://stackoverflow.com/questions/131241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "279" }
Q: "Hidden Secrets" of the Visual Studio .NET debugger? As much as I generally don't like the discussion/subjective posts on SO, I have really come to appreciate the "Hidden Secrets" set of posts that people have put together. They provide a great overview of some commonly missed tools that you might now otherwise dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/131263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How can I measure the actual memory usage of an application or process? How do you measure the memory usage of an application or process in Linux? From the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent. Why ps is "wrong" Depending on how you look at it, ps is...
{ "language": "en", "url": "https://stackoverflow.com/questions/131303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "858" }
Q: 2d Data Structure in C# I'm looking for resources that can help me determine which approach to use in creating a 2d data structure with C#. A: Do you mean multidimensional array? It's simple: <type>[,] <name> = new <type>[<first dimenison>,<second dimension>]; Here is MSDN reference: Multidimensional Arrays (C#) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Style - When to serialize a Django model Instance: signals vs model's save method I plan to serialize a Django model to XML when it's saved or updated. (The XML's going to be imported into a flash movie). Is it better to listen for a post_save() or pre_save() signal and then perform the serialization, or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to measure "spare" CPU time on a Linux based system For some of the customers that we develop software for, we are required to "guarantee" a certain amount of spare resources (memory, disk space, CPU). Memory and disk space are simple, but CPU is a bit more difficult. One technique that we have...
{ "language": "en", "url": "https://stackoverflow.com/questions/131335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you organize and keep track of multiple (many) projects As a contractor, out-sourcer and shareware author,I have about 5-10 projects going on at any one time. Each project has a todo list, requirements need to be communicated to other outsources and employees, status needs to be given to clients, and develope...
{ "language": "en", "url": "https://stackoverflow.com/questions/131337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Strange VB6 build problems (related to nlog) This I think is related to my use of the nlog C++ API (and my question on the nlog forum is here); the purpose of my asking this question here is to get a wider audience to my problem and perhaps to also get some more general ideas behind the VB6 IDE's failure to build in...
{ "language": "en", "url": "https://stackoverflow.com/questions/131358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying Perl to a share nothing cluster Anyone have suggestions for deployment methods for Perl modules to a share nothing cluster? Our current method is very manual. * *Take down half the cluster *Copy Perl modules ( CPAN style modules ) to downed cluster members *ssh to each member and run perl Makefile.pl;...
{ "language": "en", "url": "https://stackoverflow.com/questions/131362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SVN installation I am going to install SVN for my personal projects. Is it better to install it on a spare machine(Win XP) or will I save myself grief if I install it on the machine I use for development(Vista). A: Installing your repository on a separate machine is probably a better idea, since at a minimum, it w...
{ "language": "en", "url": "https://stackoverflow.com/questions/131367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a Dependency Injection framework for PHP4? I'm stuck on a PHP 4 server, and I would like to start moving an old legacy project to modern Design Patterns, including Dependency Injection. Are there any dependency injection frameworks that will work with PHP 4? A: Most dependency injection frameworks use ref...
{ "language": "en", "url": "https://stackoverflow.com/questions/131393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best method to convert floating point to an integer in JavaScript? There are several different methods for converting floating point numbers to Integers in JavaScript. My question is what method gives the best performance, is most compatible, or is considered the best practice? Here are a few methods tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/131406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Sources for learning about Scheme Macros: define-syntax and syntax-rules I've read JRM's Syntax-rules Primer for the Merely Eccentric and it has helped me understand syntax-rules and how it's different from common-lisp's define-macro. syntax-rules is only one way of implementing a syntax transformer within define-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/131433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Using AppleScript to hide Keynote Text Fields in A Slide I am no AppleScript Jedi, I've only done a few simple things, but I haven't been able to figure this one out and could use some help: My wife uses slides for her Art History courses and would like to use the same slides for exams (sans identifying names). Rath...
{ "language": "en", "url": "https://stackoverflow.com/questions/131435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can a C program produce a core dump of itself without terminating? I want a C program to produce a core dump under certain circumstances. This is a program that runs in a production environment and isn't easily stopped and restarted to adjust other kinds of debugging code. Also, since it's in a production enviro...
{ "language": "en", "url": "https://stackoverflow.com/questions/131439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: C++ tr1 on GCC 3.4.4 (for the Nokia N810 tablet computer) What does it take to get C++ tr1 members (shared_ptr especially, but we'd like function and bind and ALL the others) working with GCC 3.4.4 (for the Nokia N810 tablet computer). Has anyone done this? Attempted this? It may not be feasible for us to upgra...
{ "language": "en", "url": "https://stackoverflow.com/questions/131445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Forcing a ListView to draw in the background I have a ListView which sometimes I need to put around 10000 items in. ListViews don't really handle this well, and they lock up for a couple of seconds while they sort the items and draw them. If you add the items in individually, it's even worse, locking up for nearly a...
{ "language": "en", "url": "https://stackoverflow.com/questions/131448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do I have to cause an ValueError in Python I have this code: chars = #some list try: indx = chars.index(chars) except ValueError: #doSomething else: #doSomethingElse I want to be able to do this because I don't like knowfully causing Exceptions: chars = #some list indx = chars.index(chars) if indx == ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you apply a .net attribute to a return type How do I apply the MarshalAsAttribute to the return type of the code below? public ISomething Foo() { return new MyFoo(); } A: According to http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshalasattribute.aspx: [return: MarshalAs(<your...
{ "language": "en", "url": "https://stackoverflow.com/questions/131456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: EWOULDBLOCK equivalent errno under Windows Perl G'day Stackoverflowers, I'm the author of Perl's autodie pragma, which changes Perl's built-ins to throw exceptions on failure. It's similar to Fatal, but with lexical scope, an extensible exception model, more intelligent return checking, and much, much nicer error m...
{ "language": "en", "url": "https://stackoverflow.com/questions/131473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: WSE 2.0 Web Services Client using .NET 2.0 What's the best way to access WSE 2.0 web services from .NET 2.0? Using VS2005's web references is not working, because generated classes are using System.Web.Services as their base (instead of Microsoft.Web.Services2). A: We use VS2003 to generate and update the web refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/131475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preventing Mongrel/Mysql Errno::EPIPE exceptions I have a rails app that I have serving up XML on an infrequent basis. This is being run with mongrel and mysql. I've found that if I don't exercise the app for longer than a few hours it goes dead and starts throwing Errno::EPIPE errors. It seems that the mysql connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/131481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: max time a report should take to generate report I am just curious to know how long, in minutes, does the reporting service take to generate report when it returns 1MB of data. Maybe using views and table is properly index. SSRS reporting and server side generation. A: Report generation time has two components: -...
{ "language": "en", "url": "https://stackoverflow.com/questions/131488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What am I missing by not moving my ASP.NET 2.0 site to ASP.NET 3.5? I have a web application using ASP.NET 2.0 and I want to know if I should be moving it to ASP.NET 3.5, particularly... what am I missing by not moving to ASP.NET 3.5? I understand the disadvantages, but I don't understand the advantages. What are th...
{ "language": "en", "url": "https://stackoverflow.com/questions/131498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Which browsers and operating systems do you target on new websites? When you are working on a new website, what combinations of browsers and operating systems do you target, and at what priorities? Do you find targeting a few specific combinations (and ignoring the rest) better than trying to strive to make them al...
{ "language": "en", "url": "https://stackoverflow.com/questions/131508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Delphi 7 make complains about files not found I've got a BPG file that I've modified to use as a make file for our company's automated build server. In order to get it to work I had to change Uses * Uses unit1 in 'unit1.pas' * unit1 unit2 in 'unit2.pas' * unit2 ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should constructor variables pass direct to private fields or properties? Now this is .NET but I am sure the principal should apply to all OOP language, to simplify I take .NET as an example: R# usually creator constructor and passing incoming variable to private field, which for me mi tend to pass it to Property. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTTPHandler tag in Web.Config breaks asmx Files In my ASP.Net 1.1 application, i've added the following to my Web.Config (within the System.Web tag section): <httpHandlers> <add verb="*" path="*.bcn" type="Internet2008.Beacon.BeaconHandler, Internet2008" /> </httpHandlers> This works fine, and the HTTPHandler kic...
{ "language": "en", "url": "https://stackoverflow.com/questions/131518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What can cause ASPNET AJAX page to revert to normal ASPX mode ? / UpdatePanel broken I am using VS 2008 with a very simple UpdatePanel scenario. But i cannot get UpdatePanel to work and cant seem to find out why I have in fact reverted to a very simple example to validate it is not my code: http://ajax.net-tutorial...
{ "language": "en", "url": "https://stackoverflow.com/questions/131535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you get the state to which a (.net) form will be restored? I have a windows application and I want to save the size, position and WindowState between sessions. There is one caveat however. If the state when closing is minimized then I want to restore to the last visible state, i.e. Normal if it was normal b...
{ "language": "en", "url": "https://stackoverflow.com/questions/131537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it expected that all the units of a Project Group in Delphi 7 to be in one folder? Maybe this applied to other Delphi's (I've only used 7). We've got our code broken up so that nearly every DLL in our fairly massive app is in a different folder. 99% of the open source stuff I've downloaded to plug into Delphi h...
{ "language": "en", "url": "https://stackoverflow.com/questions/131540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Advanced searching in Vim Is there a way to search for multiple strings simultaneously in Vim? I recall reading somewhere that it was possible but somehow forgot the technique. So for example, I have a text file and I want to search for "foo" and "bar" simultaneously (not necessarily as a single string, can be in di...
{ "language": "en", "url": "https://stackoverflow.com/questions/131559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: SQL Server Provisioning Tool Running under Server 2008, SQL Server 2005 SP2 has the option to "Add New Administrator" from the SQL Server 2005 Surface Ara Configuration. This launches the SQL Server 2005 User Provisioning Tool for Vista. You are then able to grant privileges such as Server SysAdmin role etc. When I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux/C++ programmer to C#/Windows programmer I have been coding exclusively for a while now on Linux with C++. In my current job, it's a Windows shop with C# as main language. I've retrained myself to use Visual Studio instead of emacs ( main reason is the integrated debugger in VC, emacs mode in VC helps ), setup ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Integrated Version Control for Visual Studio What version control systems have you used to manage projects developed with Visual Studio (2005)? What would you recommend and Why? What limitations have you found with your top rated version control system? A: Covered many times Search for 'Visual Studio Source Contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/131598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create an installer for a .Net website, Windows Service, and more? I need to create an installer program that will do install the following: * *ASP.Net Website *Windows Service *SQL Express if it isn't installed and the user doesn't have a SQL Server *Dundas Charts *ASP.Net AJAX v.1.0 *ReportViewer...
{ "language": "en", "url": "https://stackoverflow.com/questions/131600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to do Version Control for MS Excel What version control systems have you used with MS Excel (2003/2007)? What would you recommend and Why? What limitations have you found with your top rated version control system? To put this in perspective, here are a couple of use cases: * *version control for VBA mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/131605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "180" }
Q: Standardized Error Classification & Handling I need to standardize on how I classify and handle errors/exceptions 'gracefully'. I currently use a process by which I report the errors to a function passing an error-number, severity-code, location-info and extra-info-string. This function returns boolean true if the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/131609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Restrict a string to whitelisted characters using XSLT 1.0 Question Using XSLT 1.0, given a string with arbitrary characters how can I get back a string that meets the following rules. * *First character must be one of these: a-z, A-Z, colon, or underscore *All other characters must be any of those above or 0-9,...
{ "language": "en", "url": "https://stackoverflow.com/questions/131619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you prefer to organize exception definitions? I almost feel embarrassed to ask, but I always struggle with how to organize exception definitions. The three ways I've done this before are: * *Use the file-per-class rule. I'm not crazy about this because it clutters up my directory structure and namespaces...
{ "language": "en", "url": "https://stackoverflow.com/questions/131623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What does "Cannot evaluate expression because the code of the current method is optimized." mean? I wrote some code with a lot of recursion, that takes quite a bit of time to complete. Whenever I "pause" the run to look at what's going on I get: Cannot evaluate expression because the code of the current method is...
{ "language": "en", "url": "https://stackoverflow.com/questions/131628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Inline style to act as :hover in CSS I know that embedding CSS styles directly into the HTML tags they affect defeats much of the purpose of CSS, but sometimes it's useful for debugging purposes, as in: <p style="font-size: 24px">asdf</p> What's the syntax for embedding a rule like: a:hover {text-decoration: underl...
{ "language": "en", "url": "https://stackoverflow.com/questions/131653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: What are some non-standard ways to use namespaces? I am interested in unprecedented, cool, and esoteric ways to use namespaces. I know that many advanced developers "hack" namespaces by, for example, using them as references to string constants. In the string constants example, the idea is to implement DRY (DRY =...
{ "language": "en", "url": "https://stackoverflow.com/questions/131659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to differentiate a HTTP Request submitted from a HTML form and a HTTP Request submitted from a client? Is there any way (in Java Servlet) to determine whether a HTTP POST or GET request is a result from a submission from a HTML form or otherwise? A: You could possibly do it with a hidden form field + a cookie. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Vista and ProgramData What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS Windows XP? I have read that C:\ProgramData is not writeable after installation by normal users. Is that true? How can I re...
{ "language": "en", "url": "https://stackoverflow.com/questions/131666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can I implement rate limiting with Apache? (requests per second) What techniques and/or modules are available to implement robust rate limiting (requests|bytes/ip/unit time) in apache? A: In Apache 2.4, there's a new stock module called mod_ratelimit. For emulating modem speeds, you can use mod_dialup. Though I...
{ "language": "en", "url": "https://stackoverflow.com/questions/131681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "94" }
Q: How can I programmatically manipulate Windows desktop icon locations? Several years back, I innocently tried to write a little app to save my tactically placed desktop icons because I was sick of dragging them back to their locations when some event reset them. I gave up after buring WAY too much time having failed...
{ "language": "en", "url": "https://stackoverflow.com/questions/131690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Is it possible to make an eclipse p2 provisioning mechanism running *locally*? Eclipse 3.4[.x] - also known as Ganymede - comes with this new mechanism of provisioning called p2. "Provisioning" is the process allowing to discover and update on demand some parts of an application, as explained in general in this arti...
{ "language": "en", "url": "https://stackoverflow.com/questions/131704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: HttpHeaders in ASP.NET 1.1 How do I read the Response Headers that are being sent down in a page ? I want to be able to read the header values and modify some of them. This is for an ASP.NET 1.1 application but I would be curious to know if it can done in any version of ASP.NET. The reason for doing this is someone...
{ "language": "en", "url": "https://stackoverflow.com/questions/131715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get CSIDL_LOCAL_APPDATA path for any user on Windows Is there any Win32/MFC API to get the CSIDL_LOCAL_APPDATA for any user that I want (not only the currently logged on one)? Let's say I have a list of users in the form "domain\user" and I want to get a list of their paths - is that possible? A: You can get the SI...
{ "language": "en", "url": "https://stackoverflow.com/questions/131716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Common CRUD functions in PHP Is there a simple way to write a common function for each of the CRUD (create, retreive, update, delete) operations in PHP WITHOUT using any framework. For example I wish to have a single create function that takes the table name and field names as parameters and inserts data into a mySQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you unit test web page authorization using ASP.NET MVC? Let's say you have a profile page that can only be accessed by the owner of that profile. This profile page is located at: User/Profile/{userID} Now, I imagine in order to prevent access to this page by other users, you could structure your UserControll...
{ "language": "en", "url": "https://stackoverflow.com/questions/131723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I change the maximum Upload File Size for the Document Manager in a Telerik RAD Controls RADEditor/WYSIWYG control? I'm using the Telerik RAD Controls RADEditor/WYSIWYG control as part of a Dynamic Data solution. I would like to be able to upload files using the Document Manager of this control. However, thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/131728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to embed a web control in a Windows application that renders using anything but Trident (IE)? I have heard mention that some desktop applications are pretty much just wrappers for websites now. I have even had the occasional problem that has been best solved this way in the past and I can see it being...
{ "language": "en", "url": "https://stackoverflow.com/questions/131744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When creating a collection via WebDAV should the name of the collection end with a slash A WebDAV library I'm using is issuing this request MKCOL /collection HTTP/1.1 To which apache is issuing a 301 because /collection exists HTTP/1.1 301 Location: /collection/ Rather than a HTTP/1.1 405 Method Not Allowed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what's the best implemention of client creatable and modifiable web forms in a relational database? In several web application projects I've been a part of, the client asks to be able to create their own forms. The question arises on how to store their form definitions, and then how to store user inputted values int...
{ "language": "en", "url": "https://stackoverflow.com/questions/131759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I identify references to Java classes using Perl? I'm writing a Perl script and I've come to a point where I need to parse a Java source file line by line checking for references to a fully qualified Java class name. I know the class I'm looking for up front; also the fully qualified name of the source file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I can't include a version number in this old Delphi project I inherited. How do I fix it? I have an old Delphi codebase I have to maintain, lots of DLLs, some older than others. In some of these DLLs there is no version information in the Project Options dialog. The controls for adding a version are greyed out and I...
{ "language": "en", "url": "https://stackoverflow.com/questions/131793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Simple serial AVR programmer for beginner What is the cheap and good way to make a serial (RS232) programmer for AVR atMega and atTiny? There are several circuits in the Internet, but which one is better? I'd like to be able to program my controller from Linux and Windows using some standard tools. A: Try the Seria...
{ "language": "en", "url": "https://stackoverflow.com/questions/131801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: unsigned int vs. size_t I notice that modern C and C++ code seems to use size_t instead of int/unsigned int pretty much everywhere - from parameters for C string functions to the STL. I am curious as to the reason for this and the benefits it brings. A: The size_t type is the type returned by the sizeof operator. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/131803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "560" }
Q: SQL Command for copying table What is the SQL command to copy a table from one database to another database? I am using MySQL and I have two databases x and y. Suppose I have a table in x called a and I need to copy that table to y database. Sorry if the question is too novice. Thanks. A: If the target table doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/131805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Mocking classes that aren't interfaces I've been writing some providers in c# that inherit from the providerbase class. I've found that it's hard to write tests that use the providers as most mocking frameworks will only allow you to mock an interface. Is there any way to mock a call to a provider that inherits fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/131806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }