text
stringlengths
8
267k
meta
dict
Q: Do you have any SQL Injection Testing "Ammo"? When reading about SQL Injection and XSS i was wondering if you guys have a single string that could be used to identify those vulnerabilities and others. A string that could be thrown into a website database to black box check if that field is safe or not. (going to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How can I programmatically set the status message for Live Messenger? I want to be able to change the status message for Live Messenger, but everything I've found only works for the music message (see this screenshot to see the difference between the two). It is possible to do this, as there are programs that have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/274668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to inject a changing dependency I'm new to dependency injection, I'm wondering how you would handle the following scenario. We have something like the following: public class DatabaseContext { public string ConnectionString {get;} } public interface IDataAccess { string GetString(int id); } public class D...
{ "language": "en", "url": "https://stackoverflow.com/questions/274685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a programmatic interface to Yahoo! Messenger? Can we programatically login to Yahoo services with our ID, send instant message, use webcam service and so on directly from our program? A: Since you're not very clear about what you want to achieve, the two most likely answers: You want to write some form of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: System Calls: UNIX, Linux, BSD and Solaris variations Are there differences between the amount of syscalls in the major *NIX variants ? Which syscalls would be supported universally ? A: The best I can find is a Unix-Linux-BSD Cheat-Sheets, for various syscalls variations, to be compared with the Solaris syscalls. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: When did the term "second-party developer" stop being used to refer to the user? I always believed that when it came to software for a platform the parties were referred to as such: First-party: The owner/creator of the platform Second-party: The user of the platform Third-party: A developer who is not the fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/274708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which platform allows for more rapid development, ASP.NET webforms or MVC? Are there any obvious productivity gains in developing using webforms or MVC? A: When you are dealing with productivity of ASP.NET MVC vs. ASP.NET Web Forms, consider these two developers. * *Generic .NET Developer who has extensive exper...
{ "language": "en", "url": "https://stackoverflow.com/questions/274709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What do I need to submit to the Apple AppStore when I submit an application? Can any one tell me what files I need to submit to the Apple appstore when I submit my application? As an example, do the Resource file, Digital Developer certificate files and others need to be submitted? Please help me understand this pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/274717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaSound writing to audio file with a stream I'm attempting to create an audio filter using the JavaSound API to read and write the audio files. Currently my code is structured as follows: ByteArrayOutputStream b_out = new ByteArrayOutputStream(); // Read a frame from the file. while (audi...
{ "language": "en", "url": "https://stackoverflow.com/questions/274718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Iframe content depending on referring page Is there any way to vary the initial content of an iframe depending on the referring page? For example 'page 1' has an iframe displaying 'initial content 1' when page 1's URL is typed directly in address bar. If a link is clicked on 'page 2' linking to 'page 1' iframe conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/274725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Release early/release often for commercial software? Are there anyone with experiences/examples on releasing early/releasing often for commercial software? Does it work? I was thinking of VMware where they have a lot of revisions release between each major version. And the installation experience was awful, sometime...
{ "language": "en", "url": "https://stackoverflow.com/questions/274733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? I have two servers, one runs my code much faster than the other and I believe their configurations are close to equivalent and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to use ListView and GroupBoxes as an "options" window? What is the best way to use ListView and a set of GroupBoxes as an Options window? For example, Listview will have items such as General, Sounds, Shortcuts and there will be three groupboxes defining those same things. What would be the best...
{ "language": "en", "url": "https://stackoverflow.com/questions/274745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make weak linking work with GCC? There seem to be 3 ways of telling GCC to weak link a symbol: * *__attribute__((weak_import)) *__attribute__((weak)) *#pragma weak symbol_name None of these work for me: #pragma weak asdf extern void asdf(void) __attribute__((weak_import, weak)); ... { if(asdf != NULL...
{ "language": "en", "url": "https://stackoverflow.com/questions/274753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Do you group private fields or put them with their property? I've seen (and used) on various projects this layout, with a group of fields followed by a group of properties: private int MyIntField; private string MyStringField; public int MyInt { get { return MyIntField; } set { MyIntField = value; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET: Where/how is web.config cached? I read somewhere in the Microsoft documentation that the content of the ASP.NET's web.config is cached. If that is true, where is it cached - in memory or on disk? And a follow-up question: are there any performance considerations I have to make, if I have to access the web.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/274762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Avoiding spam filters for legitimate mail Duplicate of How do you make sure email you send programmatically is not automatically marked as spam? Initially I planned to send emails from my website as html (i.e. content-type: text/html;) but I just thought about something today, won't it better to send emails as plain...
{ "language": "en", "url": "https://stackoverflow.com/questions/274764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Session is lost with login control in Internet Explorer 7 After logging in using the Login control the browser loses the session. This only occurs in Internet Explorer 7. Has anyone else run into this problem? If so, do you know a work around? A: I would suggest downloading a tool like ieHTTPHeaders to trace the...
{ "language": "en", "url": "https://stackoverflow.com/questions/274770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem using Mex My application uses both NetTcpBinding and BasicHttpBinding but each of them will expose a subset of my service class. I have created the service as below. The problem is that even though I just added 3 of my contracts to the Mex binding, all of the contracts are shown when I want to add the servi...
{ "language": "en", "url": "https://stackoverflow.com/questions/274779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create Applescript in windows? I have a C# web application that needs to deploy a file to the client computer's hard drive. (A javascript file for Adobe Acrobat) If the client is using a mac, I have an applescript that will search their applications directory for acrobat and then deploy the JS file in the correct lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/274782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to generate both "free/demo" and commercial apps from the same source code? I would like to provide two different versions of my iPhone app on the App Store -- one free that is limited by the number of items displayed through the application, and another one completely unlimited. The source code for both ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/274785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Video clip does not release the form on ending I have the following code which plays a video clip but when it is finished it does not release the form but instead leaves the last frame of the video. how do I get it to clear when playback ends so that I can see the orignal contents of the form it took over to play th...
{ "language": "en", "url": "https://stackoverflow.com/questions/274796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running ASP.NET MVC preview 3 apps on a box with the beta installed - how can I remove System.Web.Mvc from the GAC after installing ASP.NET MVC Beta? I have an app built against MVC Preview 3 (referencing local copies of the MVC assemblies) that I'm trying to modify/test on a machine with the ASP.NET MVC beta insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/274806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the headings from a Word document How do I get a list of all the headings in a word document by using VBA? A: You mean like this createOutline function (which actually copy all headings from a source word document into a new word document): (I believe the astrHeadings = docSource.GetCrossReferenceItems(wdRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/274814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Flash - recording from user's webcam I've seen a few sites that have a flash app which takes video from the users webcam and manipulates it. One example is the flash barcode reader http://www.renaun.com/flex2/BarcodeReader/BarcodeReader.html . I want users to be able to submit 10-15 second clips which I can save to...
{ "language": "en", "url": "https://stackoverflow.com/questions/274815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: programmatically checking for open connection in JDBC How do I check for an open connection in jdbc for oracle database? Note: conn.isClosed() cannot be used for this. A: Something like: Statement stmt = null; ResultSet rs =null; try { stmt = conn.createStatement(); // oracle rs = stmt.executeQuery("SELECT...
{ "language": "en", "url": "https://stackoverflow.com/questions/274822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Displaying time and timezone information to the user (what, not how) (This is a question about the UI rather than the technology required to do it) What is the clearest way to display a time for events occurring in different timezones to a user? Does your "average" user understand UTC and timezones? We capture the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/274823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get client date and time in ASP.NET? When I use DateTime.Now I get the date and time from the server point of view. Is there any way to get the client date and time in ASP.NET? A: if you're maintaining a user profile, you can ask them to tell you their timezone, and then do the calculations necessary. A: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Server/Service Discovery in Windows environment? UDDI is for locating services on the Internet. Is there anything similar for locating services in a corporate or enterprise environment? For example I might want my program to be able to find a central reporting or policy server without configuration. Is this somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/274831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I call Perl from Java? I have a Perl module that I would like to use from Java. Is there a way to call this code using either ActiveState Perl on Windows or the generic Perl that comes with Linux? I have found references to JPL but it doesn’t appear to be maintained anymore. A: Is this not what Runtime.exec...
{ "language": "en", "url": "https://stackoverflow.com/questions/274840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I correctly downcast the pointer from void* to TMemo* in C++Builder2009? I am writing multi-thread socket chat in C++Builder 2009. It is almost complete in accordance with what I need to do but I have a little problem. I need to pass the TMemo* pointer into CreateThread WinAPI function which upcasts it to vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/274841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling input from a keyboard wedge Following on from the question asked by Mykroft Best way to handle input from a keyboard “wedge” Best way to handle input from a keyboard "wedge". I need to write a class that intercepts key strokes, if the input is determined to be from the keyboard wedge (as described in the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/274842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preventing JavaScript click event with Scriptaculous drag and drop I have some elements on a page which are draggable. These same elements have a click event which navigates to another page. I'm trying to determine the best way of preventing the click event from firing if the user is dragging but still allow the cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/274843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Should SQL Server be on the same machine as your IIS installation? I'm listening to podcast #19 and Joel and Jeff are arguing about running SQL Server on the same machine as your IIS installation. I have to say that it sounds like Jeff folded to Joel, but then again I am only guessing which one is which. ;) What are...
{ "language": "en", "url": "https://stackoverflow.com/questions/274846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Is there an easy way to clear an ASP.NET form? is there an easy way to reset ALL text fields in an asp.net form - like the reset button for html controls? A: Depends on your definition of reset. A trivial way to do something like this could be a button with codebehind: Response.Redirect(Request.Url.PathAndQuery, tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/274857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Copy Directory to Output Directory - Console Application .NET Is there a way to copy an entire directory to the output directory in a console application in C#.NET? I know for files you can right click them, properties and mark copy to output directory. But I'm not going to do that for 20.000 files... Thx, Lieven Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/274859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I calculate the week number given a date? If I have a date, how do I calculate the week number for that date within that year? For example, in 2008, January 1st to January 6th are in week 1 and January 7th to the 13th are in week 2, so if my date was January 10th 2008, my week number would be 2. An algorithm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: what is `int *userMask[3][4]` pointing to? I am modifying some code and came across a declaration that I am having trouble understanding: int *userMask[3][4] = {0}; What exactly is this pointing to? Is it a matrix where every element is a pointer? Or is it pointing to a matrix of size [3][4]? Thanks I guess my q...
{ "language": "en", "url": "https://stackoverflow.com/questions/274865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Mobile Device Javascript/CSS Support. What's out there? I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support. Since I'm used to devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/274868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do you connect to multiple MySQL databases on a single webpage? I have information spread out across a few databases and want to put all the information onto one webpage using PHP. I was wondering how I can connect to multiple databases on a single PHP webpage. I know how to connect to a single database using: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "181" }
Q: monitoring file access of an old dos game I have a bit of an unusual question. I'm running an old DOS game in dosbox under windows xp and i'm trying to determine when and where it access it's data file. what can i use that will give me a log of all read requests made to a file? I want to know the "when", "from" and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Clean way of having jquery includes with ASP.Net MVC How have you guys handled working with jQuery includes <script type="text/javascript" src="jquery.js"></script> in Asp.Net MVC when working with partial views/view controls? Basically, I don't want to make the jquery include in the master page because I am not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Resistance to performance testing for a big bang rewrite? I've been working on a "big bang" rewrite for, literally, over two years. The management has consistently and relentlessly ignored and belittled my calls to allocate time / resources for performance measurement, capacity planning, and optimization before the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to call C/C++ code from other languages such as Java, PHP, Perl, Python, etc? What is the best way to call C/C++ from other languages such as Java, Python, Perl, PHP, etc? A: Use Swig, it allows you to generate code for multiple languages that calls any C/C++ functions. http://www.swig.org/ A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/274915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Turning off ASP.NET CSS Friendly Adapters The CSS Friendly Control Adapters for ASP.NET are great for creating markup that is easy to style. A big benefit of the GridView adapter is that it generates THEAD, TBODY, and TFOOT tags, which allow you to do some really great things with libraries like jQuery - for instan...
{ "language": "en", "url": "https://stackoverflow.com/questions/274918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ADO.NET Data Service -- non .NET consumers Has anyone come across an example of a non .Net consumer of an ADO.NET Data Service? I am on the second day of looking at what Astoria is and how it can be used. I am also trying to answer why would I use this instead of a web service? After getting my examples running, I k...
{ "language": "en", "url": "https://stackoverflow.com/questions/274922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET: external custom config file in a virtual directory - how to? I know that there at least two approaches to leverage the web.config file: * *using the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it. *The file attribute of the appSettings tag which lets you poi...
{ "language": "en", "url": "https://stackoverflow.com/questions/274923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why doesn't my CID (type 11) font work in GS8.61 on Windows I have a customer in Macau that uses Windows EUDC for custom Big5 glyphs. I used Fontforge on Linux to convert the .TTE into a type 11 (CID type 2) font and created a custom CMap to map the Big5 code points to the correct glyph in the font. This all works...
{ "language": "en", "url": "https://stackoverflow.com/questions/274942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chaining of ordering predicates (e.g. for std::sort) You can pass a function pointer, function object (or boost lambda) to std::sort to define a strict weak ordering of the elements of the container you want sorted. However, sometimes (enough that I've hit this several times), you want to be able to chain "primitive...
{ "language": "en", "url": "https://stackoverflow.com/questions/274951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Sharing service interfaces and model in Silverlight, using WCF Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application): public interface ICustomerService { Customer GetCustomer(string name); } My web service implements this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/274952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Delphi: using TClientDataset as an in-memory dataset According to this page, it's possible to use TClientDataset as an in-memory dataset, completely independent of any actual databases or files. It describes how to setup the dataset's table structure and how to load data into it at runtime. But when I tried to fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/274958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Style for web application grid I'm working on a small bugtracking system which shows a list of bugs. For the overview I want to use a grid - now I only need a style. Of course I won't copy the whole style from anyone else, but I just want to know which type of styles you like. Do you have any other great style? Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/274980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF Webservice behind public reverse proxy How can I correctly serve WSDL of a WCF webservice located in a private LAN from behind a reverse proxy listening on public IP? I have an Apache webserver configured in reverse proxy mode which listens for requests on a public IP address and serves them from the internal II...
{ "language": "en", "url": "https://stackoverflow.com/questions/274984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Upgrading ASP.NET from version 1.1 to 2.0 - Any Gotchas? I know we are really behind the times here, but we are just about to upgrade from .NET 1.1 to .NET 2.0. Thank you for your sympathy. Anyhow, are there any gotchas we should look out for? Do you have any general advice before we jump in? Please do not po...
{ "language": "en", "url": "https://stackoverflow.com/questions/274994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Linq to SQL and large DB model First, I am Linq to Sql newbie, so please be gentle :). I have existing ASP.Net application developed over last 3.5 years. It has pretty big data model underneath, around 350 tables. I am trying to do some new things with Linq to SQL. First impression is that linq designer and SqlMeta...
{ "language": "en", "url": "https://stackoverflow.com/questions/274996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Timer function to provide time in nano seconds using C++ I wish to calculate the time it took for an API to return a value. The time taken for such an action is in the space of nanoseconds. As the API is a C++ class/function, I am using the timer.h to calculate the same: #include <ctime> #include <iostream> u...
{ "language": "en", "url": "https://stackoverflow.com/questions/275004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: Finding Rotation Angles between 3d points I am writing a program that will draw a solid along the curve of a spline. I am using visual studio 2005, and writing in C++ for OpenGL. I'm using FLTK to open my windows (fast and light toolkit). I currently have an algorithm that will draw a Cardinal Cubic Spline, given a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Double-Escaped Unicode Javascript Issue I am having a problem displaying a Javascript string with embedded Unicode character escape sequences (\uXXXX) where the initial "\" character is itself escaped as "&#92;" What do I need to do to transform the string so that it properly evaluates the escape sequences and produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Editable Datagrid? Repeater? I've got a list of items in an order to show in asp.net -- each item (row) will have 3 textboxes so the user can both view and change that piece of data (shipping cost, handling cost, price). What would be one "recommended" way to accomplish this? With a repeater, I assume I'd then have...
{ "language": "en", "url": "https://stackoverflow.com/questions/275017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I remove a trailing newline? How can I remove the last character of a string if it is a newline? "abc\n" --> "abc" A: If your question is to clean up all the line breaks in a multiple line str object (oldstr), you can split it into a list according to the delimiter '\n' and then join this list into a new...
{ "language": "en", "url": "https://stackoverflow.com/questions/275018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1980" }
Q: With Memcached and Squid, is there any need for ASP.NET caching? With squid, we can cache webpages. I am not sure if it provides the same number of caching methods as ASP.NET caching (I primarily use ASP.NET), but it's a tool to cache webpages. Then we have memcached, which can cache database tables. I believe this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the underlying mechanism for ivar synthesis in the modern Objective C runtime One of the features of the modern (64 bit OS X and iPhone OS) Objective C runtime is the ability for properties to dynamically synthesize ivars without explicitly declaring them in the class: @interface MyClass : NSObject { // NSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/275034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Is it safe and acceptable to install VS.NET on your production server? Usually, we install VS.NET on our production server, to solve problems easily with our product, if necessary. Is this a good or bad idea? A: It really depends on whether you accept the risk that the installation brings with it: * *Hanging of...
{ "language": "en", "url": "https://stackoverflow.com/questions/275037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I convert these strings to a hash in Perl? I wish to convert a single string with multiple delimiters into a key=>value hash structure. Is there a simple way to accomplish this? My current implementation is: sub readConfigFile() { my %CONFIG; my $index = 0; open(CON_FILE, "config"); my @lines...
{ "language": "en", "url": "https://stackoverflow.com/questions/275038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make a submit out of a ... link? I got an image with which links to another page using <a href="..."> <img ...> </a>. How can I make it make a post like if it was a button <input type="submit"...>? A: input type=image will do it for you. A: Untested / could be better: <form action="page-you're-submitting-to...
{ "language": "en", "url": "https://stackoverflow.com/questions/275039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: A few vim questions So I was hoping that some old school Vim'ers could help me out. These are all separate questions and normally I would put them up each on their own but I'm not sure if that qualifies as question whoring here. Plus I think if you know enough to be asking any of these questions they will all be co...
{ "language": "en", "url": "https://stackoverflow.com/questions/275062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: "Extend my Windows desktop onto this monitor" programmatically I would like to be able to set "Extend my Windows desktop onto this monitor" via code. A PowerShell script would be ideal. WMI seems the way forward but I have zero knowledge in WMI. A: I've made a cleaner version that does not use sendkeys. public clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/275063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Java - Setting context attributes (ServletContextListener) I read a properties-file at the webapplication startup phase (contextInitialized()) and I started to think about how to make these settings 'visible' to the servlets. Do I need to loop through the keys and add each and every one to the context, like this Ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/275064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wheel Reinvention Avoidance for Web Rating Feature I have a need to implement a rating feature and would like to do it the mouse-over stars way similar to netflix. What is my best approach? Here are some that come to mind. * *code it up by hand in HTML and javascript *use flash or a java applet *use Starbox (if...
{ "language": "en", "url": "https://stackoverflow.com/questions/275070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the easiest way to parallelize my C# program across multiple PCs I have many unused computers at home. What would be the easiest way for me to utilize them to parallelize my C# program with little or no code changes? The task I'm trying to do involves looping through lots of english sentences, the dataset ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/275072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why do C# multidimensional arrays not implement IEnumerable? I have just noticed that a multidimensional array in C# does not implement IEnumerable<T>, while it does implement IEnumerable. For single-dimensional arrays, both IEnumerable<T> and IEnumerable are implemented. Why this difference? If a multi-dimensional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: How do I collect key input in a video-game style Cocoa app? I'm hacking on a simple Cocoa app to make blocks move around the screen like a video game. I need to detect key presses, but I'm not going to have text entry fields like a dialog box would have. How do I get key presses without text controls? In particula...
{ "language": "en", "url": "https://stackoverflow.com/questions/275088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Accessing the value of a session variable of a specific session I'm trying to integrate a public message board service into an existing web site. The handshaking between the apps goes like this: 1) File on my web site loads a flash file. The Flash reads a local variable that is the Session ID, or some other GUID un...
{ "language": "en", "url": "https://stackoverflow.com/questions/275090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: windows.location.href not working on Firefox3 We have a JavaScript function named "move" which does just "windows.location.href = any given anchor". This function works on IE, Opera and Safari, but somehow is ignored in Firefox. Researching on Google doesn't produce a satisfactory answer why it doesn't work. Does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Selling commercial software for Mono If the Mono project is successful it will pave the way for commercial software on non-Windows platforms. I am interested in the prospect of writing and selling commercial software for the Mono platform along the lines of our existing Smoke Vector Graphics (OCaml) and F# for Visua...
{ "language": "en", "url": "https://stackoverflow.com/questions/275094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the regular expression for /urlchecker/http://www.google.com I'm writing a url rewrite in django that when a person goes to http://mysite.com/urlchecker/http://www.google.com it sends the url: http://ww.google.com to a view as a string variable. I tried doing: (r'^urlchecker/(?P<url>\w+)/$', 'mysite.main....
{ "language": "en", "url": "https://stackoverflow.com/questions/275109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: How do I know which jar file to use given a class name? Given a class, org.eclipse.ui.views.navigator.ResourceNavigator for example, how do I find out which jar file to use? I know it's in org.eclipse.ui.ide, but how would I find that out? Edit: Thank you to all of you who answered. Like many things, there see...
{ "language": "en", "url": "https://stackoverflow.com/questions/275120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Parallel assignment in C++ Is there any way of doing parallel assignment in C++? Currently, the below compiles (with warnings) #include <iostream> int main() { int a = 4; int b = 5; a, b = b, a; std::cout << "a: " << a << endl << "b: " << b << endl; return 0; } and prints: a: 4 b: 5 What ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Shutterfly Order API . I found this site http://www.shutterfly.com/documentation/api_OrderImage.sfly but there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutterfly? A: I went...
{ "language": "en", "url": "https://stackoverflow.com/questions/275130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: version control on large files We happily use SVN for SCM at work. Currently I've got our binary assets in the same SVN repository as our code. SVN supports very large files (it transmits them 'streamily' to keep memory usage sane), but it is SLOOWWWWW. What asset management software do you recommend, for about a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is IStorage's Compound File Implementation thread-safe? I'm using IStorage's Compound File Implementation from C# (StgCreateDocfile). Is it safe to access one IStorage / IStream instance from multiple threads, provided I synchronized the reads and writes myself? Or are there any COM issues that might be problematic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SVN optimizations to keep large repositories responsive We happily use SVN for SCM at work. Currently I've got our binary assets in the same SVN repository as our code. SVN supports very large files (it transmits them 'streamily' to keep memory usage sane), but it makes everything SLOOWWWWW. I'm ok with slow asse...
{ "language": "en", "url": "https://stackoverflow.com/questions/275147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trouble adding an assembly reference to a project I'm having a problem adding a reference to a .NET assembly I built. Here's what I did. * *I created a .NET assembly (testlib.dll). *I made sure it had a strong name (added a keyfile). *I creates a WiX installation project for that assembly. *I added Assembly='....
{ "language": "en", "url": "https://stackoverflow.com/questions/275148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encoding of XHTML and & (ampersand) My website is XHTML Transitional compliant except for one thing: the & (ampersand) in the URL are written as it is, instead of &amp; That is, all the URLs in my pages are usually like this: <a href="http://www.example.org/page.aspx?x=1&y=2">Foo</a> But XHTML validator generates t...
{ "language": "en", "url": "https://stackoverflow.com/questions/275150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How can I add an integrated Google search to my website? Basically I have a website. I have a properly setup sitemap so I assume Google knows about all of my pages. And I've seen on some sites, the search form leads to a page with the shell of the original site but the results are clearly provided by Google. Simi...
{ "language": "en", "url": "https://stackoverflow.com/questions/275153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Regex for names Just starting to explore the 'wonders' of regex. Being someone who learns from trial and error, I'm really struggling because my trials are throwing up a disproportionate amount of errors... My experiments are in PHP using ereg(). Anyway. I work with first and last names separately but for now usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/275160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: what is "operator T*(void)" and when it is invoked? I have 2 files: /****demo.cpp****/ #include <iostream.h> #include "gc.h" class foo{}; int main(){ gc<foo> x1; cout<<x1; } /*****gc.h*****/ template <class T> class gc { T* ptr; public: operator T*(){} }; If I don't write operator T*(){} then I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I perform HTML decoding/encoding using Python/Django? I have a string that is HTML encoded: '''&lt;img class=&quot;size-medium wp-image-113&quot;\ style=&quot;margin-left: 15px;&quot; title=&quot;su1&quot;\ src=&quot;http://blah.org/wp-content/uploads/2008/10/su1-300x194.jpg&quot;\ alt=&quot;&quot; width=...
{ "language": "en", "url": "https://stackoverflow.com/questions/275174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: Catch SSL cert request error so as to redirect to the correct site We are using IIS 6 and ASP.Net, When users make secure page requests using https://somesite.com/securePage.aspx the user gets an error: Error code: ssl error bad cert domain The certificate was issued to www.somesite.com and indicates that som...
{ "language": "en", "url": "https://stackoverflow.com/questions/275178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Best approach to parsing a *.c/*.h files using C# for declarations and data type definitions I need to parse .c/.h files for the data declaration and extract the type declarations. For example, I might need to extract the variable declaration and it corresponding data type that might look like: typedef union { st...
{ "language": "en", "url": "https://stackoverflow.com/questions/275187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove eTag from IIS5 http headers Running IIS5 (yes, really). I'd like to remove the eTag http header that IIS generates for me. MS has an article on how to sync eTags across the web farm, but not how to remove them ( http://support.microsoft.com/?id=922733 ). Is there a way to remove eTags? A: AFAIK,...
{ "language": "en", "url": "https://stackoverflow.com/questions/275189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Formatting DataBinder.Eval data How can I format data coming from a DataBinder.Eval statement in an ASPX page? For example, I want to display the published date of the news items in a particular format in the homepage. I'm using the ASP.NET 2.0 Repeater control to show the list of news items. The code for this goes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Ho do you do the following file-related operations in C++? How do you do the following operations in C++? * *Opening Files *Closing Files *Reading Files *Writing Files A: All at once { std::ifstream in("foo.txt"); /* opens for reading */ std::ofstream out("bar.txt"); /* opens for writing */ out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/275199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python ctypes and function calls My friend produced a small proof-of-concept assembler that worked on x86. I decided to port it for x86_64 as well, but I immediately hit a problem. I wrote a small piece of program in C, then compiled and objdumped the code. After that I inserted it to my python script, therefore the...
{ "language": "en", "url": "https://stackoverflow.com/questions/275207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I databind to properties not associated with a list item in classes deriving List Previously, I had a class that wrapped an internal System.Collections.Generic.List<Item> (where Item is a class I created). The wrapper class provided several collection-level properties that provided totals, averages, and oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/275213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Scope and return values in C++ I am starting again with c++ and was thinking about the scope of variables. If I have a variable inside a function and then I return that variable will the variable not be "dead" when it's returned because the scope it was in has ended? I have tried this with a function returning a str...
{ "language": "en", "url": "https://stackoverflow.com/questions/275214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Relative merits of GDI+ and WPF Whar are the relative merits between GDI+ and WPF? Also does anyone know the minimum system requirements needed in order to develop/run WPF apps? A: GDI+ vs. WPF What are the benefits of WPF graphics subsystem? Let's see: * *Retained Mode Drawing/Composition *Vector Graphics *Tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/275222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is source code control for? There was a recent question about, effectively, replacing a local source code control system with a "keep all versions" file system or tool. Many of the answers said in essence that source code control systems are for more than just keeping past versions, even for an individual devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/275229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Excel / Quickbooks data to c# I know how to use the OleDbConnection class to open an excel file and select from it, but is there a simple method to read the data from an excel file that has been read into a Stream? And is there also a similar method for QuickBooks? A: Stream? No, Excel files are a complicated mess....
{ "language": "en", "url": "https://stackoverflow.com/questions/275230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Auto-increment a primary key in the LINQ to SQL DataContext "Insert" partial method What I would like to do is the following. I have a single table, Products, containing a private key ProductID. Instead of having SQL Server auto-increment ProductID on inserts, I want to increment it in the DataContext partial method...
{ "language": "en", "url": "https://stackoverflow.com/questions/275233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }