text
stringlengths
8
267k
meta
dict
Q: How do I do a car and cadr against a list? Suppose I have some code: let listB = [ 1; 2; 3 ] Using Lisp notation, how do I do a car and cadr against this list? I know cons is ::. Or in Scheme, first and rest? A: List.hd and List.tl will do what you want - but in F# you will find that lists are typically deconstr...
{ "language": "en", "url": "https://stackoverflow.com/questions/283169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET MVC UpdateModel with a sorta complex data entry field how do i do the following, with an ASP.NET MVC UpdateModel? I'm trying to read in a space delimeted textbox data (exactly like the TAGS textbox in a new StackOverflow question, such as this) into the model. eg. <input type="Tags" type="text" id="Tags" nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/283170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Asynchronus Web service using WS Addressing I need to implement an WCF WS Addressing enabled web service that performs a long running process based on the method's arguments. The client does not need to wait for the result, because it will be delivered directly to a database table. However, the web method does need...
{ "language": "en", "url": "https://stackoverflow.com/questions/283178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to put aspx files into a class library in Visual Studio 2008 .NET 3.5? I've got a lot of pages in my site, I'm trying to think of a nice way to separate these into areas that are a little more isolated than just simple directories under my base web project. Is there a way to put my web forms into a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/283180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieving client system information from a Rails application Is it possible to retrieve the CPUID and MAC address of a client machine from a Ruby on Rails application?. Are there any plugins available for this? A: I'm pretty sure it is not possible to parse the /proc filesystem of a client computer through a Rails...
{ "language": "en", "url": "https://stackoverflow.com/questions/283185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: About interrupts? I am coding a basic traffic light control which will be displayed on the monitor. In that i need an external interrupt (event ) to happen and change the state of the current traffic light. I am trying to do it without any board or external peripheral. Now I think i have the following choices . tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/283187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Asp.net Date Binding Issue with Nulls I have a nullable date in my database. I am connecting to it with a LinqDataSource, and binding with a FormView. It allows you to place dates fine, but if you remove the date I need it to insert the null value to the db. It is instead throwing an exception. <asp:TextBox ID="TxtS...
{ "language": "en", "url": "https://stackoverflow.com/questions/283190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Evenly shuffling a list of mail address by domain I have a list of email address which I want to distribute evenly by domain. For example: let the list be, a@a.com b@a.com c@a.com a@b.com b@b.com c@c.com The output should be a@a.com a@b.com c@c.com b@a.com b@b.com c@a.com The source list is not sorted by domain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Whats the best way to create a Smart Part in SharePoint? i kinda know how to create a Custom Web Part. But now i need to create a Smart Part. Any idea how it works or what a easy way is to create it? Maybe some nice links to articles? Please Help Regards Etienne A: Pls have a look at Codeplex, is it something like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using events declared in Visual Basic 6.0 in a dotnet application we are writing tests for a COM library written in VB 6.0.The problem we are facing is that, we are unable to access events declared in VB( withevents). We get exception, "object does not support set of events". How can we overcome this problem? A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/283202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What was the most dangerous programming mistake you have made in C? I am an intermediate C programmer. If you have made any coding mistake that you came to know later that it was the most hazardous / harmful to the total application please share that code or description. I want to know this because in future I may c...
{ "language": "en", "url": "https://stackoverflow.com/questions/283205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Websphere MQ message history My application communicates with another system via IBM Websphere MQ. Sometimes no message comes into my queue but the other system said They already sent to me. So I want to know how to keep a history for all messages that arriving on my queue. A: The only other way I can think of woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/283206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC AcceptVerbs and registering routes do I have to register the HttpVerb constraint in my route definition (when i'm registering routes) if i have decorated my action method with the [AcceptVerbs(..)] attribute already? eg. i have this. [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(FormCollection...
{ "language": "en", "url": "https://stackoverflow.com/questions/283209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Advice on which language/Framework to choose for web application? I am a c++ developer trying to create a web application using a language or framework that meets the following criteria: * *Very fast development time *Text searching and other text manipulation *Easy to configure and maintain the application *T...
{ "language": "en", "url": "https://stackoverflow.com/questions/283210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Table and column Parser for stored procedures Is there an application , which can parse a given set of stored procedures (SQL Server 2000) and gets all tables and associated columns that are being used in it. The stored procedure can have tables from different databases. Output should be like TableA column...
{ "language": "en", "url": "https://stackoverflow.com/questions/283214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the best (or at least a good enough) algorithm for automatically positioning images within a CSS sprite? I have written a CSS sprite auto-generator which takes selected images out of the HTML page and converts them to CSS sprites, but right now it does not attempt to lay them out optimally but rather just st...
{ "language": "en", "url": "https://stackoverflow.com/questions/283219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Source Control - Lock vs. Merge? A lot of programmers who are used Visual Studio have a hard time adjusting to the fact that in other source control systems, files do not need to be locked/checked out to one developer at any given time. Proponents of merging say that allowing two people to work on the same file spee...
{ "language": "en", "url": "https://stackoverflow.com/questions/283221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Best way to substitute variables in plain text using PHP What's the best way to take some plain text (not PHP code) which contains PHP-style variables, and then substitute in the value of the variable. This is kinda hard to describe, so here's an example. // -- myFile.txt -- Mary had a little $pet. // -- parser.php...
{ "language": "en", "url": "https://stackoverflow.com/questions/283222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What Web services/Interface to use? We are designing a system with C/C++ back end server and C# .NET front end. We would like to provide a web interface similar to C# .NET front end. Can you please suggest the best way to do it? e.g. Whether to embed the web server in back end server itself? How to have maximum comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/283227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable the programs ability to add exceptions to windows firewall via the API This is a problem with Windows Firewall that is very annoying from its introduction. And persist trough several versions of windows. I have two questions: Is it possible to be disabled or at least require confirmation in XP/2003 Server ?...
{ "language": "en", "url": "https://stackoverflow.com/questions/283229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: My ToolBox Show Multiple Copies Of The Same Control (VS2008) My Visual Studio is all messed up and I have no idea why. See the screenshot below. The controls are repeated 3 times. I tried reseting the toolbox; still no luck. The solution contains one ASP.NET Web Application and few class library. None of the project...
{ "language": "en", "url": "https://stackoverflow.com/questions/283238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should I avoid nil checking in Rails views? In my models, there are lots of attributes and methods that perform some calculation based on the model instance's attributes. I've been having the methods return nil if the attributes that the calculations depend on are nil. As a consequence of this design decision, I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/283239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why does a call to unmanaged code from a .NET BackgroundWorker thread affect the UI? I have a long running series of operations in a .NET 2.0 BackgroundWorker thread. When I make a call to unmanaged code located in a referenced assembly the UI is frozen until the call completes. Why is this? Should I not be making...
{ "language": "en", "url": "https://stackoverflow.com/questions/283241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I read the PAN from an EMV SmartCard from Java I need to read account number from Maestro/Mastercard with smart card reader. I am using Java 1.6 and its javax.smartcardio package. I need to send APDU command which will ask EMV application stored on card's chip for PAN number. Problem is, I cannot find regular...
{ "language": "en", "url": "https://stackoverflow.com/questions/283251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to get ascms.exe from ascmd.cs -.csproj and -.sln files? I have downloaded Samples for MS SQL Server 2005 and I don't know how to get an .exe file from files like ascmd.sln, ascmd.cs, ascmd.csproj. When I'm trying to launch an .sln file in Visual Studio there is an error like: The application for project C:\pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/283259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why download only for apt-get cron job I'm putting a crontab job for updating with apt-get once a day (running Debian Lenny, there are updates almost daily). But almost all examples i've seen of this cron job invoke the -d flag. This elicits 4 questions: * *Why should I only download the packages and not install...
{ "language": "en", "url": "https://stackoverflow.com/questions/283263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rolling back and update command in Sql Server 2000 I have used an update command to update the whole table in an Sql Server 2000 database by mistake. I was actually meaning to update just one row. Now all the 2000 rows contain the update. Is there a way to roll back this change? A: Unless you started your update wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/283274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is best way to implement variable length arrays? I want to store a large result set from database in memory. Every record has variable length and access time must be as fast as arrays. What is the best way to implement this? I was thinking of keeping offsets in a separate table and storing all of the records co...
{ "language": "en", "url": "https://stackoverflow.com/questions/283275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How long has EStackOverflow been deprecated and what replaces it? I noticed that EStackOverflow, as defined in SysUtils.pas is marked as deprecated in Delphi 2009. I checked and it was also marked as deprecated in 2007. I have a Delphi 7 install disk here, but I thought I would ask if anyone knows when it was depr...
{ "language": "en", "url": "https://stackoverflow.com/questions/283281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get Excel Integration in TFS to remember formatting? When I create a TFS report of a query with the Excel integration features (we are using Excel 2003), Excel resets formatting of all cells after clicking the "Refresh" button in the TFS Toolbar. Our team likes to print this report and drag it into our weekly...
{ "language": "en", "url": "https://stackoverflow.com/questions/283284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django debugging with Emacs I found a lot of info about how to debug simple Python programs with Emacs. But what if I want to debug a Django application? I run the development server and I would like to somehow attach to the process from Emacs and then set breakpoints, etc. Similar to Visual Studio's "attach to proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/283294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: SendMessage API in 64 bit According to MSDN The return value specifies the result of the message processing; it depends on the message sent. I know it is defined as typedef LONG_PTR LRESULT; Meaning it will be 8 bytes on 64bit machine but it doesn't! Does anyone know if it is safe to assume that only the low...
{ "language": "en", "url": "https://stackoverflow.com/questions/283295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return dynamically allocated memory from C++ to C I have a dll that must be useable from C etc, so I cant use string objects etc as a normal would, but I'm not sure on how to do this safely.. const char *GetString() { std::stringstream ss; ss << "The random number is: " << rand(); return ss.str().c_str()...
{ "language": "en", "url": "https://stackoverflow.com/questions/283297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best Compression algorithm for a sequence of integers I have a large array with a range of integers that are mostly continuous, eg 1-100, 110-160, etc. All integers are positive. What would be the best algorithm to compress this? I tried the deflate algorithm but that gives me only 50% compression. Note that the alg...
{ "language": "en", "url": "https://stackoverflow.com/questions/283299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }
Q: how to combine a template from other processed templates? I have a django project pro1 with several apps: app1, app2, app3 and so on. I want to display some top level template that contains blocks from each and every app: example_base_template.html: [header /] [left nav bar]{{ app1 rendered template }}[/left nav bar...
{ "language": "en", "url": "https://stackoverflow.com/questions/283300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CORPUS resource I am designing an Automatic text summarizer. One of the major modules in this project requires TRAINING CORPUS. Can someone please help me out by providing TRAINING CORPUS or referring some link to download it. Thanks in anticipation A: See How to Write a Spelling Corrector by Norvig. He mentions Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/283305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Source Control with Visual Studio: switch from VisualSVN to Ankh? I am evaluating VisualSVN for me and a small team of developers. I set it up on the server (VisualSVN server) without problems and installed TortoiseSVN and VisualSVN in order to integrate it in Visual Studio 2008. So far, it works well and we use it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: IE6 and IE7 Sometimes Have A jQuery Bug With 'nodeName' is null or not an object I'm having a problem where a jQuery setting against an .html() property on a selected element is returning the error 'nodeName' is null or not an object. This only occurs on IE6 and IE7, but not FF2, FF3, Opera (latest Nov 12,2008) or S...
{ "language": "en", "url": "https://stackoverflow.com/questions/283316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: key press handler I have a win form, have some controls. I want to handle all keypress in the form keypress event. Is it possible without writing keypress for all the controls? A: Setting the KeyPreview property of the form to True should enable this.
{ "language": "en", "url": "https://stackoverflow.com/questions/283329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSURLConnection chunked encoding upload - How? I need to create a way to upload a bytestream using chunked encoding. I have a byte array that contains an audio file, I would like to send that file to a server using a chunked stream. I've been able to do a chunked upload via a native socket but I would really like to...
{ "language": "en", "url": "https://stackoverflow.com/questions/283331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to resize text in svg dynamically? I'm working on a report that includes an embedded svg diagram. The diagram is drawn using relative coordinates, so when a browser window resizes the diagram resizes pretty well. The only exception there is text - it remains the same. Is it possible to draw text in svg that is r...
{ "language": "en", "url": "https://stackoverflow.com/questions/283346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where am I losing the reference? I'm trying to use the Visitor Pattern and I have as follows: public class EnumerableActions<T> : IEnumerableActions<T> { private IEnumerable<T> itemsToActOn; public EnumerableActions ( IEnumerable<T> itemsToActOn ) { this.itemsToActOn = itemsToActOn; } public void VisitAllItemsU...
{ "language": "en", "url": "https://stackoverflow.com/questions/283348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a specification of the group leader protocol that handles IO? In Erlang, every process has a group leader, and when a process wants to print something (i.e. it calls the io library or does something similar), it will send a message to its group leader. My question is, where can I find the specification of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/283350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Persuade Access 2007 to use a .UDL file/oledb connection? Is there any way of coaxing Access 2007 into using a .UDL file? Specifically, one of our older products uses an Interbase 6.0 database. My client would like to link to his database, for read/write, using Access 2007 (in the short term). While this isn't my p...
{ "language": "en", "url": "https://stackoverflow.com/questions/283355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Best Practice"/Favourite Pattern for Calling Web Services (ASP.NET) Problem: * *We have a web app that calls some web services asynchronously (from the page). *Normally this is fine, but some are failing under load test (due to timeouts). What are (if there are any) any suggested "best practices" for calling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Error: MSCOMCT2.OCX or one of its dependencies not I am trying to run a VB application that was coded long back on Windows 2000. My current OS is windows XP SP2. The error message is: "Component 'MSCOMCT2.OCX' or one of its dependencies not correctly registered: a file is missing or invalid" I searched my compute...
{ "language": "en", "url": "https://stackoverflow.com/questions/283373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does .NET have a Dictionary implementation that is equivalent to Java's ConcurrentHashMap? To recap for those .NET gurus who might not know the Java API: ConcurrentHashMap in Java has atomic methods (i.e. require no external locking) for common Map modification operations such as: putIfAbsent(K key, V value) remove(...
{ "language": "en", "url": "https://stackoverflow.com/questions/283374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Detecting TCP Client Disconnect Let's say I'm running a simple server and have accept()ed a connection from a client. What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: What's the most performant way to divide two integral values and obtain a floating point quotient in .NET? Consider the following signature in C#: double Divide(int numerator, int denominator); Is there a performance difference between the following implementations? return (double)numerator / denominator; return n...
{ "language": "en", "url": "https://stackoverflow.com/questions/283377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LinqToXML XElement to XmlNode HI, Is there any 'correct' way to convert an XElement to an XmlNode in C# - LinqToXML makes it nice to build the required XML programmatically but SharePoint web services requires an XmlNode, so whats the best way to mix and match? A: Use CreateReader() and an XmlDocument like XmlDocum...
{ "language": "en", "url": "https://stackoverflow.com/questions/283378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: jQuery droppable / draggable At the moment I have a set of divs, generated dynamically by php and all having their ids starting with 'itembox', with a count number appended. I have a droppable garbage bin area on the page so that the user can delete an individual itembox by fdragging and dropping on to the bin. My p...
{ "language": "en", "url": "https://stackoverflow.com/questions/283392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does SharePoint Services 3.0 Search work? I understand the following elements : * *there is some sort of crawling (configured in central administration) *when the crawling is done, there is a slight delay, after which you can have your search results displayed. But, in a document library with publishing en...
{ "language": "en", "url": "https://stackoverflow.com/questions/283394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write all the data in session to string[] also how to write the data in string [] to session I using a ASP.net. I need to copy all the session data (both session variables and session request variables) to String []. How can i do this? Also i need the reverse condition. How can i do this using Serialization c...
{ "language": "en", "url": "https://stackoverflow.com/questions/283396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pass the same value of HiddenField between several ASP.NET pages Would you explain me, please, how to pass the same value of HiddenField between several ASP.NET pages? I think I could use RegisterHiddenField on every page in chain, but hope there is an easier solution. Thanks! A: If you are passing the HiddenField ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference between atan and atan2 in C++? What is the difference between atan and atan2 in C++? A: Consider a right angled triangle. We label the hypotenuse r, the horizontal side y and the vertical side x. The angle of interest α is the angle between x and r. C++ atan2(y, x) will give us the value of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/283406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "213" }
Q: What are the advantages and disadvantages of using a 'Partial Index'? PostgreSQL allows the creation of 'Partial Indexes' which are basically indexes with conditional predicates. http://www.postgresql.org/docs/8.2/static/indexes-partial.html While testing, I found that they are performing very well for a case where...
{ "language": "en", "url": "https://stackoverflow.com/questions/283416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I add a ContextMenuStrip to a ToolStripButton? I have a toolstrip containing, among other things, a ToolStripComboBox and a ToolStripButton. I want to add a ContextMenuStrip to both of them, but I don't have direct access to the toolstrip or its other contents, so I can't set the context menu of the toolstri...
{ "language": "en", "url": "https://stackoverflow.com/questions/283417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to just load the latest version of dll from GAC I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version. Is this even possible? TIA A: Assembly.LoadWithPartialName(string) will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: debug Intranet ASP.NET Applications for Safari I have an asp.net intranet application for booking jobs and a phone index. Now most of my users are fine as they are using Firefox and or Internet Explorer. I have a user who can only use Safari and for some reason when we navigate to the intranet app, Safari seems to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/283425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET ascx vs. aspx - Do you reuse user controls? Our team is developing a rather big ASP.NET web project which initially started in ASP.NET 1.0 and was ported several times to all new versions of .NET. We made extensively use of User Controls (ascx). But in retrospect I doubt that it was a good decision. A very s...
{ "language": "en", "url": "https://stackoverflow.com/questions/283427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Why would an "command not recognized" error occur only when a window is populated? My record sheet app has a menu option for creating a new, blank record sheet. When I open a sheet window, I can open new windows without a problem, using subprocess.Popen() to do it. However, under Windows (I haven't tested it on othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/283431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC - .mvc Routing just fails in II6 I have been banging my head against a brick wall trying to deploy my MVC app on IIS6 (linked question) I have scrapped wildcard mapping for the time being and am trying to get the .mvc extension working. Everything is configured correctly in IIS and the .mvc extension is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to use wxPython inside IronPython? When my IronPython program gets to the line import wx I get this message: A first chance exception of type 'IronPython.Runtime.Exceptions.PythonImportErrorException' occurred in IronPython.dll Additional information: No module named _core_ although I do have the...
{ "language": "en", "url": "https://stackoverflow.com/questions/283447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you organise your STL headers? I am working on a large project that uses the STL and have a question about your preferred way to organise your STL #includes. * *Do you prefer to #include each header in the source file it is used. For example, if both foo.cpp and bar.cpp require std::string, then both will...
{ "language": "en", "url": "https://stackoverflow.com/questions/283450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Persisting using hibernate/JPA I have been working with hibernate/JPA on JBoss for some months now and have one question that I can't find an answer or solution for. It seems like when creating new entity beans I'm not able to do a query before I at least have called EntityManager.persist(entityBean), or else I get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: byte[] array pattern search Anyone know a good and effective way to search/match for a byte pattern in an byte[] array and then return the positions. For example byte[] pattern = new byte[] {12,3,5,76,8,0,6,125}; byte[] toBeSearched = new byte[] {23,36,43,76,125,56,34,234,12,3,5,76,8,0,6,125,234,56,211,122,22,4,7,8...
{ "language": "en", "url": "https://stackoverflow.com/questions/283456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified While connecting .NET to sybase server I got this error message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This has worked properly before. System DSN with same deta...
{ "language": "en", "url": "https://stackoverflow.com/questions/283460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Lineprinters Emulator/Virtual Is there any such thing as a virtual Lineprinter.I mean a software emulation of a printer, that outputs to screen. I have a project to change the output of print job. My past experience with a lineprinter was tedious rounds of loop: print walk down two flights check the output ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to wrap a line of code, especially long argument lists? What's your preferred way of wrapping lines of code, especially when it comes to long argument lists? There has been several questions relating to wrapping lines (such as When writing code do you wrap text or not? and Line width formatting standard), but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Ruby dependency injection libraries I've been looking at some Ruby dependency injection libraries. In particularly, I checked out Needle and Copland. They've been around for quite awhile, yet not a lot of usages. What are some of the pros and cons of using these two libraries? It sure seems like a lot of librar...
{ "language": "en", "url": "https://stackoverflow.com/questions/283466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Does JavaScript support verbatim strings? In C# you can use verbatim strings like this: @"\\server\share\file.txt" Is there something similar in JavaScript? A: This is a very old thread, but still here's a workaround: function verbatim(fn){return fn.toString().match(/[^]*\/\*\s*([^]*)\s*\*\/\}$/)[1]} Which you wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/283468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: IAutomationObject not found when running Flex application i get the following error when trying to run a flex application (which has been working fine!). I was playing around with some different setttings trying to optimize the compiled size. I've put these settings back to the defaults as much as I thought but stil...
{ "language": "en", "url": "https://stackoverflow.com/questions/283470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove unused namespaces across a whole project or solution at once I know you can do it file by file. Is there any way to do this in one step for all files in a project? A: For Visual Studio 2010 you can download the "Remove and Sort Using"extension from the Visual Studio Gallery. http://visualstudiogallery.msdn.m...
{ "language": "en", "url": "https://stackoverflow.com/questions/283471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: Best way to break long strings in C# source code I am wondering what is the "best practice" to break long strings in C# source code. Is this string "string1"+ "string2"+ "string3" concatenated during compiling or in run time? A: Your example will be concatenated at compile time. All inline strings and const strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/283476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How do I assemble a console application with Maven without unpacking all dependencies? Suppose I have the following directory layout in a Maven project: src/ |-- main | |-- bin | | |-- run.cmd | | `-- run.sh | |-- etc | | |-- common-spring.xml | | |-- log4j.xml | | `-- xml-spring.xml | `-- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to build native Mac OS X installer (on a non-Mac platform)? How can I build a native Mac OS X installer for my application, on a non-Mac platform? For example, I have a windows pc and a Java application. I want the windows pc to build an installer (possibly inside a .dmg archive) that works with Apple installer....
{ "language": "en", "url": "https://stackoverflow.com/questions/283480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Parsing XML/XHTML in Actionscript Is there anything similar to getElementById in actionscript? I'm trying to make a prototype of a flash page wich gets it's data from a xhtml file. I want to have both an accessible html version (for search engines, textreaders and people without flash) and a flash version (because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Software that clicks e-mail links on page? We are experiencing a strange bug on our website which we think is related to the software installed on user's computers. We have an e-mail link on a lot of pages, which is created using Javascript (so spambots won't get it). It seems the link is "clicked" automatically on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I describe a method that has no side effects if an exception is thrown during execution? I just can't remember the terminology used for this and other related properties. EDIT - Maybe such a concept doesn't exist but I remember reading something in Effective C++ (or More Effective C++) where he advocated usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/283487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to hide Maven 2 "target/" folder in Eclipse 3? I'm using maven 2.0.9 with Eclipse 3.3.2. I'm used to launching a fresh build once per day by a mvn clean install. Then, if I refresh my Eclipse project, it will be "polluted" by files from Maven's target directory. That's very annoying while performing s...
{ "language": "en", "url": "https://stackoverflow.com/questions/283489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: How to modify a boxed value type inside a method I'm tring to build a library for simplifing late binding calls in C#, and I'm getting trouble tring with reference parameteres. I have the following method to add a parameter used in a method call public IInvoker AddParameter(ref object value) { //List...
{ "language": "en", "url": "https://stackoverflow.com/questions/283492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capturing user input from Flex TextInput control: which event to use? Should I use the change or textInput event to capture user input on a TextInput control? Why? A: textInput is dispatched only when the user has input text into the control. change, on the other hand, is dispatched on every change committed by the...
{ "language": "en", "url": "https://stackoverflow.com/questions/283497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Site for mobile phone display Here i need to create a site that should support all Internet accessible mobiles. May i use javascript, in Some forum they told that javascript doesn't work's in mobile phones. Suggest me clear, In mobile phone javascript work or not ? Thanks A: The level of JavaScript support in mobil...
{ "language": "en", "url": "https://stackoverflow.com/questions/283498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to deal with great products written with crappy code? I was asked to improve and maintain an internal Web application used and approved by an important community of users. This includes performance improvements and adding features. Unfortunately, the code is bloated, sometimes very poorly written, and hard to re...
{ "language": "en", "url": "https://stackoverflow.com/questions/283511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Why can't I create a private static const void? We just shifted from VB to C# and I am having some troubles..! Why can't I create a private static const void?? why is it not working? private static const void MyVoid(void void) { try { this.void void = new void(void + void); return this.void; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Creating Dynamic Tables in Word by C#.NET I have a C# application where i want to implement a logic for a programm which will open the word document and go to a certain place in the page and create a Table and put values in that. Can any one tell me how to implement this. I am using Visual studio 2005 A: Here is c...
{ "language": "en", "url": "https://stackoverflow.com/questions/283523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: string to const char* This line: strcat(query,*it); (where *it is an iterator to a string) Keeps giving me this error: no matching function for call to ``strcat(char[200], const std::basic_string, std::allocator >&)`' I guess it's because strcat takes in a char* while *it is a string. How do I convert it from a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/283525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET XML Serializer with Japanese chars in username We are having a problem whenever our application makes use of the XML Serializer, when we are logged in as a user who has a username containing Japanese characters. We have prepared a sample application that tests the serializer on its own: TestCla...
{ "language": "en", "url": "https://stackoverflow.com/questions/283535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Most efficient way to test equality of lambda expressions Given a method signature: public bool AreTheSame<T>(Expression<Func<T, object>> exp1, Expression<Func<T, object>> exp2) What would be the most efficient way to say if the two expressions are the same? This only needs to work for simple expressions, by this I...
{ "language": "en", "url": "https://stackoverflow.com/questions/283537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How to persuade ascmd.exe to make tables as output, not a XML file? I'm trying to see data in my OLAP cube by ascmd utility. As input I put a MDX query, but only what I have as output (in command line) is a XML file. I tried to use -Tf text and -Tf csv parameters, but they don't work in the way I think they should (...
{ "language": "en", "url": "https://stackoverflow.com/questions/283543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are your efficiency gains by removing XML in java projects? I have just moved from phase 1 to phase 2 of a project. In this transition we got rid of all of the XML configuration for spring and struts2, switching to a fully annotated regime. All of the participants are amazed at the actual effect this has on dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/283544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trouble with SQL query with cartesian product I am struggling with a creating a query. It is related to a large and complicated database but for the sake of this post I have boiled the problem down to something simpler. I have three tables X, Y, Z defined as CREATE TABLE [dbo].[X]( [ID] [bigint] NOT NULL ) CREATE...
{ "language": "en", "url": "https://stackoverflow.com/questions/283551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: tricky crc algorithm I am trying to find the crc that works with the following results. The byte string consists of 2 bytes (ie. 0xCE1E) and the crc is an single byte (ie. 0x03) byte crc CE1E 03 CE20 45 CE22 6F 0000 C0 0001 D4 FFFF 95 Can anyone help? A: First, 4 hex digits aren't 4 bytes. Since all your example...
{ "language": "en", "url": "https://stackoverflow.com/questions/283556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Extracting Leaf paths from n-ary tree in F# Inspired by this question, I wanted to try my hand at the latest ponder this challenge, using F# My approach is probably completely off course, but in the course of solving this problem, I'm trying to get a list of all the permutations of the digits 0-9. I'm looking at sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/283561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MSI packaging guidance We're in the process of packaging combinations of our products/modules. Some of them are stand-alone some are interdependent. All versions must be deployable side-by-side. As it is we're considering two choices: * *One MSI per package and version *One MSI per product/module and version T...
{ "language": "en", "url": "https://stackoverflow.com/questions/283570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reporting Services .. How to Export an Excel Spreadsheet with Hyperlinks disabled I'm using the ReportViewer control to display a Report within a WebForm, i've also implemented the "Export to Excel" feature, by calling the Render method of the Server Report eg ReportViewerControl.ServerReport.Render("Excel",etc,etc,...
{ "language": "en", "url": "https://stackoverflow.com/questions/283575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle setting per user default scheme (not altering a session) is there a way to change an oracle user's default schema? I found it in the FAQ that I can alter it in the session, but it's not what I want. E.G. the user at log on always sees another schema as default. Thanks in advance. A: I believe a logon trigger...
{ "language": "en", "url": "https://stackoverflow.com/questions/283589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: ASP.net Session Destroy if he closes the browser I have an website. When the user is logged the session details will loaded. When the user logged out the session details will abandoned. (Log out by clicking the logout menu) when the user simply closes the browser then how to destroy the session. In the next time its...
{ "language": "en", "url": "https://stackoverflow.com/questions/283591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using C++ from Objective C : how to allocate/deallocate? Currently, my Objective C classes use C++ objects by doing a new when the owner is created, and calling delete when it is destroyed. But is there another way? I'd like to be able to declare, say, an auto_ptr whose scope lasts the duration of the Objective C cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/283593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQLMembershipProvider - Adding membership to an existing database. Setting permissions I am adding membership-related schemas to an existing database (lets call it myDatabase) following those instructions. As a results the number of tables, views and stored procedures are being created in myDatabase. The next step i...
{ "language": "en", "url": "https://stackoverflow.com/questions/283594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }