text string | meta dict |
|---|---|
Q: how to handle 100mb uploads for users i've been approached to create a bespoke ftp app that users will download in order to be able to upload video files ( up to 100mb).
*
*they want it to be idiot proof ( ie easy for non-computer literate people ). I'm assuming that setting up an ftp app like FileZilla with the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checklist for writing copy constructor and assignment operator in C++ Please write a list of tasks that a copy constructor and assignment operator need to do in C++ to keep exception safety, avoid memory leaks etc.
A: The compiler generated versions work in most situations.
You need to think a bit harder about the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do you determine html clicked on with javascript? Is it possible, with Javascript or some other technology to determine which hyperlink a user has clicked on, without changing the hyperlink source code.
For example:
Can you click on a 'tag' button, then click on a hyperlink hosted in a different iframe, and be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to prevent crash when a referenced assembly isn't found? I have a small command line program that uses the Team System API. When the correct Team System isn't installed on the machine, the program prints a traceback with System.IO.FileNotFoundException, but it also crashes and shows the standard error messasge:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Defining point of functional programming I can enumerate many features of functional programming, but when my friend asked me Could you define functional programming for me? I couldn't.
A: From wikipedia:
In computer science, functional programming is a programming paradigm that treats computation as the evaluatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: I'm getting a NullPointerException when accessing static constraints The code
${personRequest.constraints.requestStatus.inList}
in my gsp file throws a NullPointerException, but new PersonRequest().constraints.. works. Why? Isn't constraints static?
A: Copied from here (grails-user mailing list)
but why accesing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Application Pool IIS7 I'm trying to assign application pool to one web site in IIS7 using vb script:
' Connect to the WMI WebAdministration namespace.'
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Retrieve the application and display its Web site name and path.'
Set oApp = oWebAdmin.Get("Applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you prefer explicit namespaces or 'using' in C++? When using C++ namespaces, do you prefer to explicitly name them, like this:
std::cout << "Hello, world!\n";
Or do you prefer using namespace:
using namespace std;
cout << "Hello, world!\n";
And if if you prefer the latter, do you declare your usings at file or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Alternatives to Toad I'm currently using Toad for my day-to-day work on our databases (queries, updates, small scripts, browsing of db objects, etc.).
My question is: since my version of Toad is old and buggy, which are the (possibly free, but not necessarily) alternatives to Toad?
The database versions we are using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: C# invoking CPP function with unknown number of args from CPP i have a function in CPP with the following prototype:
char* complexFunction(char* arg1, ...);
i import it from a C# using DLLImport attribute.
the questions are:
how do i define the prototype in the C# (under the DLLImport attribute)?
how do i pass the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dilemma about image cropping algorithm - is it possible? I am building a web application using .NET 3.5 (ASP.NET, SQL Server, C#, WCF, WF, etc) and I have run into a major design dilemma. This is a uni project btw, but it is 100% up to me what I develop.
I need to design a system whereby I can take an image and auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Dynamically bind data to dropdownlist in asp.net mvc How to dynamically bind data to <%Html.Dropdownlist.... in ASP.NET MVC?
A: Just pass the correct IEnumerable as the typed model or ViewData. Try something like this (out of my head):
<%= Html.DropDownList(string.Empty,
"myDropDownList",
new SelectList(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/214998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why do Umlauts and special characters not show up correctly in my Grails pages? How do I make sure the correct encoding (UTF-8) is used by Grails?
A: Easier than I thought - simply make sure your editor is set to UTF-8 encoding.
A: Maybe you shouldn't use UTF-8. Maybe you should try one of the 8859 ISO charsets:ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The located assembly's manifest definition does not match the assembly reference I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:
System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, Public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "881"
} |
Q: One Rails application, several domain names I want to point several domain names to the same Rails application. The content is different for each domain, but the functionality and the structure of the application is the same.
What is the best way to do this when it comes to server set up and routing? I will use ngi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# : Characters do not display well when in Console, why? The picture below explains all:
alt text http://img133.imageshack.us/img133/4206/accentar9.png
The variable textInput comes from File.ReadAllText(path); and characters like : ' é è ... do not display. When I run my UnitTest, all is fine! I see them... Why?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: connecting web parts in sharepoint I am trying to connect to simple webparts in my sharepoint team site, i need one of the webparts to filter its information based on what it recieves from another webpart
I am using the query string filter webpart and the a list view webpart but no matter how i connect them always i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Efficient Image Thumbnail Control for Python? What is the best choice for a Python GUI application to display large number of thumbnails, e.g. 10000 or more? For performance reasons such thumbnail control must support virtual items, i.e. request application for those thumbnails only which are currently visible to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ViewState error points in site.master I just added asp.net calendar control in new page under sample folder in asp.net mvc beta application. when i execute the particaular page that i need and it shows the error following
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use the full namespace path to a function in D I want to be able to use a function such as writefln() but without having to add import std.stdio at the top of the file.
Another way to explain it is the way you do it in C++. You can type std::cout << "Test"; and that will stop you from having to add using na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Custom swing component - Turning a node into text I'm writing a custom swing component (something completely new, but think JTree or JList). I'm trying to follow the general design of JTree, JTable, JList etc for consistency (I've also seen various poor 3rd party components abandon the separable model and/or rendere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to become familiar with a large codebase? Joining an existing team with a large codebase already in place can be daunting. What's the best approach;
*
*Broad; try to get a general overview of how everything links together, from the code
*Narrow; focus on small sections of code at a time, unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Scatter Plots in C++ What is the best way to graph scatter plots in C++?
Do you write data to a file and use another tool? Is there a library like matplotlib in Python?
A: Good old GNU, they have everything...
http://directory.fsf.org/project/plotutils/
A: This is certainly not the best way but I usually write o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Rails: Sorting a query by params? I am using running a simple find all and paginating with willpaginate, but I'd also like to have the query sorted by the user. The first solution that came to mind was just use a params[:sort]
http://localhost:3000/posts/?sort=created_at+DESC
@posts = Post.paginate :page => params[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I reference a JavaScript file on every page? (ASP.NET 1.1) I have an old ASP.NET 1.1 site that I am maintaining. We are working with Google to place analytics code on all pages. Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with User Controls.
What ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xkill equivalent for Windows Is there a reliable equivalent of xkill for Windows?
For those who don't know what xkill is: it is a Unix tool which basically kills the process of any windows you click on.
A Windows port can be downloaded here.
A: PSKILL from the SysInternals suite is very handy. PSLIST and PSINFO a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Path '/forum/default.asp' is forbidden I have an ASP.NET 2.0 web app and part of the structure still has some legacy ASP under the folder /forum/. I haven recently moved my dev environment to a new machine and am now getting:
Path '/forum/default.asp' is forbidden
when trying to open a page with a .asp extension und... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What steps do you take to increase performance of a Sharepoint site? Sharepoint isn't the speediest of server applications, and I've read about a few tips to speed it up. What steps do you think are necessary to increase performance so it can be used to host a high traffic site?
A: At the end of the day SharePoint ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET Membership for high security scenarios? Is the asp.net membership system used over wcf (transport security turned on) enough for high security internet scenarios with thousands of clients spread all over the internet?
I'm just evaluating possible solutions and wanted to know if this might fit in this categor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: wxpython - Expand list control vertically not horizontally I have a ListCtrl that displays a list of items for the user to select. This works fine except that when the ctrl is not large enough to show all the items, I want it to expand downwards with a vertical scoll bar rather than using a horizontal scroll bar as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically change the xml file location that flash loads using c# Can someone tell me how i can change the .xml file that a flash movie loads using c#. ie: i would like an ActionScript variable that defines the location of the flash movie. I would like to be able to change this variable using c# if possible.
i don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is Predicate<> sealed? I wanted to derive a class from Predicate<IMyInterface>, but it appears as if Predicate<> is sealed. In my case I wanted to simply return the inverted (!) result of the designated function. I have other ways to accomplish the goal. My question is what might the MS designers have been think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JSON call + .net works in debug mode on inbuilt web server but not by going to virtual dir directly I have the following javascript:
$.ajax({
type: "POST",
dataType: "json",
url: "/Home/Submit",
data: {
email: strEmail,
message: strMessage
},
success: function(result) {
//alert('here');
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sitecore's "Latest" Item A general architecture question in Sitecore 6...
Let’s say we have a situation where we have 10,000 items implementing a “Press Release” template. These items are stored in Sitecore at /sitecore/content/home/press/*. On our homepage, we’d like to display some information concerning the 3 mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get the contents of a string minus the extension in ColdFusion? For example, I want just the "filename" of a file in a field. Say I have myimage.jpg I only want to display "myimage" How do I get just that?
A: Tomalak's answer is good, but this can get tricky. Given a file named "mydoc.ver1.doc" (a val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: what are some resources to learn about copyright law? I once heard a prominent scientist say, of global warming, that he didn't realize how much he would have to learn about politics.
I just read an excellent article in DDJ about the Jacobsen verus Katzer case. When in university, I didn't know how much I would have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing Win32 menu colors Is there a way to change the colors used by plain Win32 menus (background, text, and highlight) for a single process, without using SetSysColors?
(SetSysColors does a global change, which is bad, and if you crash or forget to set the colors back with SetSysColors again before exiting, they... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get a MethodInfo in the ThreadContext class? I'm trying this:
Type ThreadContextType = typeof(Application).GetNestedType("ThreadContext", System.Reflection.BindingFlags.NonPublic);
MethodInfo FDoIdleMi = ThreadContextType.GetMethod("FDoIdle", BindingFlags.NonPublic |
BindingFlags.Instance, null, new Type[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extension method output in Container.DataItem? So I have an IList of business entities that I loop through in a ListView into an unordered list. I created an extension method on this Entity in my presentation layer. In code behind, I can Response.Write the result of this extension method, but when I try to access it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I hide the middle of a table using jQuery? I have a really long 3 column table. I would like to
<table>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Start</td><td>Hiding</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: What repository products are available for keeping track of web services? My organization is starting to take SOA seriously but before we jump in one of the components we seem to be missing is a rock solid repository for tracking these services across the enterprise. Can anyone suggest a product that they have work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error creating xercesc dom parser object I am trying to create an Xercesc DOM Parser in my code and for some reason and try to instiate an XercescDOM object I get a NULL pointer returned. I am using xercesc version 2.8
Here the code.
using namespace xercesc;
int main(int argc, char*argv[])
{
try
{
XMLPlatformUti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: OpenId for gmail Anybody know how to get gmail's OpenID working? All I find is this http://openid-provider.appspot.com/, which gives 302 moved followed by GET not supported on this URL.
I'm assuming this one is broken. Any others?
A: Update: this no-longer works.
This works as an OpenID: https://www.google.com/ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Threads per Processor In Java, is there a programmatic way to find out how many concurrent threads are supported by a CPU?
Update
To clarify, I'm not trying to hammer the CPU with threads and I am aware of Runtime.getRuntime().availableProcessors() function, which provides me part of the information I'm looking for.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: C# ListView Detail, Highlight a single cell I'm using a ListView in C# to make a grid. I would like to find out a way to be able to highlight a specific cell, programatically. I only need to highlight one cell.
I've experimented with Owner Drawn subitems, but using the below code, I get highlighted cells, but no t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Database design question - field or new table + one to many I'm designing a database for an events management site - there is a table of venues and a table of events. Each event is in a venue (stores the venue's id) and each venue is in a city. It must be possible to search for event by city, should city be a field ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UUID mismatch detected with the loaded library I get a "UUID mismatch" warning at the console when I try to build and run my app on my iPhone.
warning: UUID mismatch detected with
the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib
=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: String vs string in C#
Possible Duplicate:
In C# what is the difference between String and string
In C# the string keyword (highlighted in Visual Studio as a data type) is just a shortcut to the String class right?
In that case, it would be the same to use either while coding from the semantic point of view. Howe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "264"
} |
Q: How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE? We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:
PythonHandler trac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort large arrays of primitive types in descending order I've got a large array of primitive types (double).
How do I sort the elements in descending order?
Unfortunately the Java API doesn't support sorting of primitive types with a Comparator.
The first approach that probably comes to mind is to convert it to a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Opinions about using memcachedb as a large-scale key-value store We need to implement a large-scale key-value store (let's say up to 500GB) and BerkeleyDB seemed like it might be a decent option, but we would really like it to be network accessible. This led me to look at memcachedb. I haven't found much on the web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Programmer's understanding of Memory in the Vista Windows Task Manager I know a fair bit about the Windows Task Manager in XP, but I would like to understand it better in Vista. What is the difference between "Working Set (Memory)" and "Memory (Private Working Set)". What is the Paged Pool, what is the NP Pool (No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to define Content Management First some background. I recently went for an interview and some of the questions asked to me was about Enterprise Content Management. Obviously, I did not have any experience and did not get the offer.
But, it increased my curiosity and tried Internet to get some info on the topic.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I create a file in UNIX /tmp directory so that all users can read and write to it? I am trying to create a file in the /tmp directory (working on a Linux UBUNTU 7.10), that has read/write/execute access for any user.
So I am using the
open(fileName,O_CREAT|O_RDWR,0777)
function to create the file (from a C p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Storing Personal Information Dos and Don'ts I run a small php/mysql website for a camera club where users can upload photos. I have recently started storing email addresses for doing password resets.
My question is what is the best practice for dealing with users' personal information: are there any laws/legislatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I troubleshoot why my rewrite rules aren't being applied by Apache? I've got a tomcat 6 web app running with Apache httpd as the front end. I'm using mod_proxy and mod_proxy_ajp to forward the requests to tomcat. My server is running Ubuntu. Now I'm trying to use mod_rewrite to remove the leading www, so that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Sharding (sic!) the web tier in order to prevent a load balancer bottleneck? How do large web sites which cannot be completely stateless achieve extreme scalability at the web tier?
There are sites like eBay and Amazon, which cannot be completely stateless, as they have a shopping cart or something like that. It isn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Regex for strings ending in .cs but not in .g.cs I need a regex that matches all strings ending in .cs, but if they end in .g.cs they should not match. I'm using .NET regular expressions.
A: This will match the end if it's .cs but not .g.cs
(?<!\.g)\.cs$
For the entire string start to finish, something like this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: If your slightly strange CSS code works on all browsers on Windows, will it work on Mac and Linux? I am testing some weird-looking CSS code that I wrote (I'm using a mix of percentages and pixel values for width of DIVs, basically). While I'm not convinced that it's right, it works perfectly on all screen sizes on I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Right way to implement TouchesMoved? I have a custom UIView that generates a set of subviews and display them in rows and columns like tiles. What I am trying to achieve is to allow the user to touch the screen and as the finger move, the tiles beneath it disappears.
The code below is the custom UIView that contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Access asking for password on exit I have an MS Access 2002 database with password security.
When I exit the application, the password dialog box reappears. Now, after this I can only exit the application if I give in the password again or press Cancel.
I don't know why this dialog appears on exit.
A: Is COMPACT O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Create an Outlook Plugin using Delphi? I'm working on a database project and I need to create Outlook 2007 plugin that saves the current previewed message into my database.
Can someone give me a step-by-step guide on how to create an Outlook plugin in Delphi, and how to deploy it?
Thanks
A: I've built an out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Available iPhone Web Application JavaScript UI Library/Frameworks I'm starting a web application that will target Mobile Safari on iPhone/iPod Touch. I'm evaluating the available client-side JavaScript/CSS libraries/frameworks that are currently out there.
These are the ones I'm currenlty aware of:
*
*iUI
*CiUI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How to reference man pages in CS papers? I am busy writing my thesis (so, I guess this could count as a homework question). Now, one of the things that came up was the Unix select system call. I would like to add a reference to the appropriate man page, but all I can find that seems the slight bit official is the Si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Better to return a C++ reference or a weak_ptr? Suppose I have a class where I want the user to be able to have a reference to one of my members. Which is preferred?
class Member;
class ClassWithWeakPtr
{
private:
boost::shared_ptr<Member> _member;
public:
boost::weak_ptr<Member> GetMember();
};
or
class Mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Programmatically change screen resolution? Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP? For example to change from 1024x768 with one monitor to 1280x1024 on two monitors? I would be most interested in a win32 function to do this but anything tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is this correct way of update query in MySQL? I got some problems with finding a bug in php/mysql application, and I wonder if I can do something like this: UPDATE table SET userid='2' WHERE userid='1' - > Can I update something I state in WHERE?
A: Absolutely. You can even reference the current value of the colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I suggest a change to the HTTP standard? I have a fairly simple addition to the HTTP standard. An ambitious goal I know, but I'd at least like to submit a proposal and get feedback on the idea. What is the proper forum/method of doing so?
A: According to W3C's HTTP page:
Now that both HTTP extensions and
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What type for an integer of more than 4 bytes? I have to use unsigned integers that could span to more than 4 bytes, what type should I use?
PS Sorry for the "noobism" but that's it :D
NB: I need integers because i have to do divisions and care only for the integer parts and this way int are useful
A: long long, 64... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scheduling a worker with overlapping periodic tasks With one worker, who can only perform one task at a time (but can switch between tasks instantly)
Given a list of tasks,
-- defined as "n seconds, every m seconds" (eg, 5 seconds every 3600 seconds)
How could I find the best starting times and count for each task?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Display WPF modal window/dialog/panel the same way as a NSWindow can be displayed like a sheet in Cocoa I am looking for a way to display a modal window in WPF the same way as a window in Cocoa can be displayed as a sheet, i.e. it slides down from the titlebar in front of the main parent window.
My guess is that thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I unit test a GUI? The calculations in my code are well-tested, but because there is so much GUI code, my overall code coverage is lower than I'd like. Are there any guidelines on unit-testing GUI code? Does it even make sense?
For example, there are graphs in my app. I haven't been able to figure out how to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "161"
} |
Q: How can I force the deletion of locked files in C/C++? How do I programmatically force the deletion of files that are locked by the operating system or any other program with C/C++? The functionality should be similar to the software "Unlocker" at http://ccollomb.free.fr/unlocker.
A: Look this sample.
A: If you ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: C++ Coding Guideline 102 If you were allowed to add another coding guideline to the 101 guidelines of the "C++ coding standards" (Herb Sutter and Andrei Alexandrescu), which would you add?
A: Write for a year later.
A: I vote for: "avoid considering goto, naming notation and indentation as being the subjects of co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Locating installer paths in c# In VS2008 I have written a C# service, an installer, and have created a setup package to install it. The service needs to load an xml file to operate. Where is the best place to put this file in the various filesystem folders offered by the VS setup project, and how do I then refer to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between public, protected, package-private and private in Java? In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?
A: As a rule of thumb:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3598"
} |
Q: How Does Security Software Prevent its Unauthorized Removal from System? It's been my experience that some security software (like Symantec's Norton AntiVirus) oftentimes prohibit their removal from a Windows system via the "Add or Remove Programs" utility, going so far as to occasionally require a removal program o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating an XmlNode/XmlElement in C# without an XmlDocument? I have a simple class that essentially just holds some values. I have overridden the ToString() method to return a nice string representation.
Now, I want to create a ToXml() method, that will return something like this:
<Song>
<Artist>Bla</Artist>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: C# handle control array event caused by another control I am working on a winforms html editor with multiple editor windows as each editor window will be written to a database field.
I am creating the editor windows as a control array and was hoping to just have one toolbar above them that would handle the events su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to strip literal values out of SQL to correctly identify db workload? Does anyone know of any code or tools that can strip literal values out of SQL statements?
The reason for asking is I want to correctly judge the SQL workload in our database and I'm worried I might miss out on bad statements w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you set the hardware volume in an iPhone app? Some iPhone applications, such as Pandora seem to directly manipulate the hardware volume and respond to physical volume button. How is this done?
AudioSessionServices allows you to get the current hardware output volume with the kAudioSessionProperty_CurrentHardw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Startup Deployment Architecture- Running Glassfish V3 Prelude without Apache So am I crazy for considering doing a beta/production release on Glassfish V3 Prelude?
Since all of my content is dynamic, I'm not even thinking of bothering to set up apache in front either. Doing so complicates the setup by requiring som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good library to manipulate Apache2 config files? I'd like to create a script to manipulate Apache2 configuration directly, reading and writing its properties (like adding a new VirtualHost, changing settings of one that already exists).
Are there any libs out there, for Perl, Python or Java that automates t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the hardest or most misunderstood aspect of LINQ? Background: Over the next month, I'll be giving three talks about or at least including LINQ in the context of C#. I'd like to know which topics are worth giving a fair amount of attention to, based on what people may find hard to understand, or what they may ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "282"
} |
Q: How do I implement a circular list (ring buffer) in C? How do I implement a circular list that overwrites the oldest entry when it's full?
For a little background, I want to use a circular list within GWT; so using a 3rd party lib is not what I want.
A: A very simple implementation, expressed in C. Implements a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What's the difference between a parent and a reference property in Google App Engine? From what I understand, the parent attribute of a db.Model (typically defined/passed in the constructor call) allows you to define hierarchies in your data models. As a result, this increases the size of the entity group. However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the purpose of the colon before a block in Python? What is the purpose of the colon before a block in Python?
Example:
if n == 0:
print "The end"
A: The colon is there to declare the start of an indented block.
Technically, it's not necessary; you could just indent and de-indent when the block is done.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: save applet from website how can I save a java applet from a website so I can run it offline?
A: Get the url of the classes by looking at the applet tag and download them. You can use FIrebug in Firefox or Fiddler to see the URL's being requested as the page loads if you can't figure it out from the applet tag.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/215582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Avoiding overlapping of paint events, arching lines through click and drag? I am currently a student and trying to design a Visual C++ application to allow me to visually insert an oriented graph in order to create a text file with the graph's matrix. At this point I have created an onClick event to create nodes and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I avoid using a JavaScript library while learning how to write AJAX client code? Is it better to learn how to code AJAX without the use of an AJAX library? What are the advantages of coding from scratch over using a library such as jQuery?
See also:
What are some of the pros and cons of using jQuery?
A: For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is a good resource to get started with Windows file system driver development? What is a good resource to get started with Windows file system driver development for a newbie?
A: You might try Windows Hardware Developer Central, which has links to blogs, newsgroups, books, and other useful resources for driver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Examples of asp.net mvc and authentication I'm looking for some examples for asp.net mvc that use the integrated asp.net forms-authentication based membership providers with edit and post scenarios. I'm looking for best practices here.
Let's say I have a Contacts table in my database with a Name field, and a UserId ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding nodes dynamically and global_groups in Erlang Erlang support to partition its nodes into groups using the global_group module.
Further, Erlang supports adding nodes on the fly to the node-network. Are these two features usable with each other?
As far as I understand, you have to name every node on startup to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to load text of MS Word document in C# (.NET)? How do I load MS Word document (.doc and .docx) to memory (variable) without doing this?:
wordApp.Documents.Open
I don't want to open MS Word, I just want that text inside.
You gave me answer for DOCX, but what about DOC? I want free and high performance solution ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Pointer math in C# I am trying to use some pinvoke code to call a C function. The function fills a buffer with data.
The structure is set up as a DWORD for the length, followed by a string. How do I extract the string from the IntPtr?
IntPtr buffer = Marshal.AllocHGlobal(nRequiredSize);
PInvokedFunction(buffer, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio GUI is see-through? I'm having some trouble with Visual Studio 2008 on my Windows XP SP2 laptop.
What happens is that when I start a program with a few textboxes and stuff like that, the boxes are see-through. I can litteraly see through them and see what's on the underlaying screen. Like if I only hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my JNI code not successfully find a jthrowable's getMessage method? I'm trying to access the message in a jthrowable while handing an exception generated when I fail to find a class. However, I am unable to access the message ID of getMessage() on the jthrowable object, and I don't know why. I've tried ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to stress test a javascript-requiring Web App A similar question was already asked (
Performing a Stress Test on Web Application?), but I'd like to test a web application that prevents double-submits and takes some counter-XSRF actions and therefore REQUIRES JavaScripts to be evaluated.
Has anybody done stress ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I send an image via email through the built-in iPhone Mail app? I would like to provide my users the ability to send an image/picture (displayed through a UIImageView in the app) to their friends via email using the built-in Mail app.
In a way, I want a very similar user experience to the way the Photos app d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I find all cells with a particular attribute in BeautifulSoup? I am trying to develop a script to pull some data from a large number of html tables. One problem is that the number of rows that contain the information to create the column headings is indeterminate. I have discovered that the last row of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |