text stringlengths 8 267k | meta dict |
|---|---|
Q: Listing the files in a directory of the current JAR file I am making a game in JAVA where I want to come up with a list of files in a certain directory in my jar so I can make sure to have a list of those classes to be used in the game.
For example say in my jar I have a directory
mtd/entity/creep/
I want to get a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: how to check performance of a c++ api my web server has a lot of dependencies for sending back data, when it gets a request. i am testing one of these dependency applications within the web server. the application is decoupled from the main web server, and only queries are going to it in the form of api's exposed.
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ticking function grapher I am trying to figure out the following problem.
I am building Yet another math function grapher, The function is drawn on its predefined x,y range, that's all good.
Now I am working on the background and the ticking of X, Y axes (if any axes are shown).
I worked out the following.
I have a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are your suggestions for storing AWS authentication data? Scenario: a web application written in PHP utilizes an Amazon Web Service and must keep the Access Key ID and a Secret Access Key handy in order to function. Are there current recommendations and/or API's out there for storing this data securely?
My tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best Practices for implementing a modal Alert View using Cocoa Touch? Does anyone have any best practices, tips & tricks, or recommendations for how to create modal Alert Views with Cocoa Touch?
I like to think there is a way to make this difficult task trivial or at least easier.
A: You can use something like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why would I want to use the debug mode of the .NET compiler? I was curious what the differences are between the debug and release modes of the .NET compiler and came across these questions about debug vs release in .NET and reasons that release will behave differently than debug. Up to this point I really haven't p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can Dataset filtering be done from outside the dataset? I have two TDBLookupComboBox controls that I'd like to connect to the same dataset, but have each one display a different subset of the data. If I only needed one box, I'd use filtering on the dataset, but I need to be able to display both of them at the same t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Django.contrib.flatpages without models I have some flatpages with empty content field and their content inside the template (given with template_name field).
Why I am using django.contrib.flatpages
*
*It allows me to serve (mostly) static pages with minimal URL configuration.
*I don't have to write views for ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MySQL query takes >15 seconds to run; what can I do to cache/improve it? Well I have a videos website and a few of its tables are:
tags
id ~ int(11), auto-increment [PRIMARY KEY]
tag_name ~ varchar(255)
videotags
tag_id ~ int(11) [PRIMARY KEY]
video_id ~ int(11) [PRIMARY KEY]
videos
id ~ int(11), auto-increment [P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Array of Queues in VB.Net Probably a very dumb question, but I want to create an array of queues in vb.net - so I can reference each queue with an index:
eg
commandQueue(1).enqueue("itemtext")
commandQueue(2).enqueue("othertext")
where commandQueue(1) refers to a separate queue than commandQueue(2)
I've got all ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Increasing efficiency of loop that uses datenum function? The following loop takes about 700 seconds to run in octave and 22 seconds to run in matlab when the DJI matrix has 21000 rows. How can I increase the efficiency of this?
for i=1:length(DJI)
DJI2(i,1)=datenum(char(DJI(i,2)),'yyyy-mm-dd');
end
A: Did you r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you search a std::string for a substring in C++? I'm trying to parse a simple string in C++. I know the string contains some text with a colon, followed immediately by a space, then a number. I'd like to extract just the number part of the string. I can't just tokenize on the space (using sstream and <<) b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you debug an ASP.Net application accessing an OAuth secured API? I know there has to be an obvious solution to this problem and I am missing it, so I would much appreciate someone enlightening me so I don't spin my wheels...
I am writing an ASP.Net application that will interact with a service API (Evernote s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.Net session and cookies for keeping someone logged in I've got an existing site I'm taking over, and right now it stores, in a session variable, the id of the currently logged in user (if logged in at all -- otherwise I'm sure it is empty string or null or something).
The client now wants, after someone is logge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there Weak References in .NET? I would like to keep a list of a certain class of objects in my application. But I still want the object to be garbage collected. Can you create weak references in .NET?
For reference:
*
*Garbage Collecting objects which keep track of their own instances in an internal Map
*Cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the .Net Client Profile PREVIEW? I understand what the .Net Client Profile is, but what does "PREVIEW" mean? (http://www.microsoft.com/downloads/details.aspx?familyid=8CEA6CD1-15BC-4664-B27D-8CEBA808B28B&displaylang=en)
Is this like a beta release? Is it safe to deploy alongside my application?
Thanks.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Want to return the entire contents of an XElement as a string I'm a newbie to LINQ in C# and am using it to read in and work with XML files.
I'm able to navigate up and down my elements, but what I want for some elements is to return the entire contents as a string. Meaning, I have an element like this:
<element1>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ReadProcessMemory keeps returning 0 I'm currently developing a little hobby project to display health information in a game on my G15 keyboard through VB.NET.
When I use ReadProcessMemory via an API call, it keeps returning zero. The MSDN documentation referred me to use the Marshal.GetLastWin32Error() call to find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the preferred way to get the full server path in a ASP.NET MVC view? I'm new to ASP.NET MVC and I'm trying to get the full url to a action when working in a view. I need this to submit to a third party API as a callback. For example what I need is
http://myserver.com/controller/action
When I use
<%= Url.A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Running Apache Geronimo in production If you're running Apache Geronimo in production why did you choose it over other application servers and what are your experiences with running Geronimo in production?
Can you also please share what servlet engine you decided to use (Tomcat/Jetty) and why you made this decision?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: JavaScript TinyMCE/jQuery race condition on firefox I have a website with a form that uses TinyMCE; independently, I use jQuery. When I load the form from staging server on Firefox 3 (MacOS X, Linux), TinyMCE doesn't finish loading. There is an error in Firefox console, saying that t.getBody() returned null. t.ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: F# winforms MenuStrip problem: Not sure how to get a handle on DropDownItems I have recently started learning F#, and this is the first time I've ever used WinForms. Here is my code.
#light
open System
open System.Windows.Forms
let form =
let temp = new Form()
let ms = new MenuStrip()
let file = new Tool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding how much memory I can allocate for an array in C# I am doing some calculations that require a large array to be initialized. The maximum size of the array determines the maximum size of the problem I can solve.
Is there a way to programmatically determine how much memory is available for say, the biggest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Two HTML tables side by side, centered on the page I have two tables on a page that I want to display side by side, and then center them within the page (actually within another div, but this is the simplest I could come up with):
<style>
#outer { text-align: center; }
#inner { text-align: left; margin: 0 auto; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do you find out if your AD/AM instance is up and running via C#? I saw a link to find out if AD was running, but am not too sure if the same applies to AD/AM.
One caveat is that I should be able to check about any AD/AM instance (any domain) assuming I have permissions.
A: the same approach applies to AD or to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can not round trip html format to clipboard I want to write Html format, but I can not even get a simple MSDN example of it to work.
http://msdn.microsoft.com/en-us/library/tbfb3z56.aspx
Does this console app, a clipboard round tripper, work for anyone?
using System;
using System.Windows; //Need to add a Presentati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP conditional error i am trying to use an ASP conditional here:
if (Request.Cookies("username")) and
(Request.Cookies("password")) <> ""
Then
And i keep getting this error:
Type mismatch: '[string: ""]'
Any ideas what I am getting that?
A: try
if (Request.Cookies("username") <> "") and (Request.Cookies("passwo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to tell if a button click event was triggered by keyboard or mouse in WPF? Is there a simple way to tell what triggered Click event of a Button apart from setting multiple flags in Mouse/Key Up/Down event handlers? I'm currently only interested in distinguishing mouse from everything else, but it would be nice t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How should I choose an authentication library for CodeIgniter? I see there are a few. Which ones are maintained and easy to use? What are their pros and cons?
A: Ion_Auth beats tank_auth mainly for two reasons, user roles and documentation, these two are missing from tank_auth.
A: I use a customized version of DX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "397"
} |
Q: What would be more productive? Converting VAX PASCAL into GNU PASCAL or port it to perl or some other language I have this legacy code base (Compaq PERL), about 1500 lines of code, that I need to port to Windows. I wanted to use gnu PASCAL (which I have installed and have working). I have already got our assembler (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if a remote image meets certain specifications I'm doing some coding in JSP/Java (without any framework, or other strange things) and I get stuck trying to find a way to check if a remote image (by URL) meets some specifications, like some defined height and width.
Is there a way to do this in JSP/Java?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/346995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Questions for python->scheme conversion I currently am trying to write a Python program using scheme semantics so I can later translate it into Scheme without relying on a lot of Pythonic stuff.
I'm trying solve the sliding puzzle problem (where you have 9 slots and 8 tiles arranged in a square) using a*, depth firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accessing a bidimensional(or tridimensional) array through a pointer When you have an array like this:
int foo[3][2][2];
and you make:
int *bar = &foo[0][0][0];
Is this the way it works?
*bar == foo[0][0][0];
*(bar+1) == foo[0][0][1];
*(bar+2) == foo[0][1][0];
*(bar+3) == foo[0][1][1];
*(bar+4) == foo[1][0][0];
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing a custom object to the web service I'm using C# and I have windows form and web service...
I have a custom object that I want to send to the web service..
sometime, the object may contain a huge of data..
as a best performance, what is the best way to send a custom object to the web service?
A: Web Services... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net publish with whitespace removed Obviously having whitespace in css, aspx and html pages is a great advantage at design time. But is there a way to (a tool that will) clear all the whitespace from all the files and possibly merge javascript and css files in a more optimal way.
I am using asp.net themes so th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you have any comments on using GWT with Appengine? I'm looking for tips, suggestions, advice or examples of applications build using Google's Web Toolkit with Google AppEngine.
A: Since Google AppEngine now supports Java using GWT just became a whole lot easier (ie. you can use GWT RPC).
Take a look this screenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle situation when error happens during posting form from view user control? I have a view user control that can post form. This control can be used on multiple views.
If user enters invalid data i add errors to ModelState - as simple as that. The problem is
that i don't know which view/actionresult to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where do I go from here -- regarding programming? I seem to be in a never ending tail spin of Linux, or not, Windows or not. Web programming or system programming. Python or PHP.
I'am self teaching myself programming. But it seems I keep being torn about which way to go. Unfortunately it is always seemingly good rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Restricting JMX to localhost While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Suggestions other than an AppleScript OSAX to create a resource bound file I need a create a specific type of file in OS X. It needs resources in a specific way. Currently, the only way I can find to do this is in AppleScript with an OSAX. This is slow, about 1 second round trip to run, since the OSAX must open, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When, if ever, should you use a "back to top" link? I've seen many website designs with frequent inclusions of 'back to top' links and am just wondering when, if ever, they can really be justified? What use cases demand a 'back top top' link, and what are their effects on usability?
A: As a user, I never use back t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to write Unit Tests for Web Applications and Controls I am just learning about Unit Testing. I am using NUnit to build tests for a VB.NET project.
The project I'm working on is part of a framework which will be used by people who build ASP.NET websites. It includes a base class (which inherits System.Web.HttpA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use PHP or Perl for massaging my data and storing/retrieving it with MySQL? I have a desktop app that needs to send data to a MySQL Server. The app will be for internal company use, but the MySQL is on a server at a hosting company.
The data will need to be massaged a bit before being inserted and standard ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is $_SERVER[REQUEST_METHOD] manipulable? In a PHP project I'm developing I have a couple of requests that can be either POST or GET. Currently, I'm using the $_SERVER[REQUEST_METHOD] value to determine, which request array to use. I know that $_REQUEST values can be manipulated with cookies, is the $_SERVER superglo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multiline tooltipText I am trying to have a tooltip on multiple lines. how do i do this?
A: You can enter a newline in the designer also (for static-text only, obviously) by clicking the dropdown arrow near the tooltip property-box, and hitting enter where you want the newline.
A: Put a newline (use Environment.N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What does the Perl substitution operator act on? I have been programming in Perl, off and on, for years now, although only sporadically is it my primary language. Because I often go months without writing any perl, I rely heavily on my dog-eared Camel Book to remind me how to do things. However, when I copy recipes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I get a specialized template to use the unspecialized version of a member function? Consider the following code:
template <int dim>
struct vec
{
vec normalize();
};
template <>
struct vec<3>
{
vec cross_product(const vec& second);
vec normalize();
};
template <int dim>
vec<dim> vec<dim>::norma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TFS Migration from 2005 to 2008? Does anybody know if it is possible to migrate separate projects from a TFS 2005 server to a TFS 2008 Server?
A: A "crude but effective" way could be to do the full upgrade and then Delete the Team Projects you don't want on the new server.
That said - you should be able to accompli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I concisely implement multiple similar unit tests in the Python unittest framework? I'm implementing unit tests for a family of functions that all share a number of invariants. For example, calling the function with two matrices produce a matrix of known shape.
I would like to write unit tests to test the ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I validate both for integers and in a range in a ColdFusion form? In a CF8 form, I'm using a tag such as the following:
<cfinput
type = "Text"
name = "Num"
value = "0"
validate = "range,integer"
range = "0,1000"
validateAt="onBlur,onSubmit"
required = "yes"
message = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Append an int to char* How would you append an integer to a char* in c++?
A: Something like:
width = floor(log10(num))+1;
result = malloc(strlen(str)+len));
sprintf(result, "%s%*d", str, width, num);
You could simplify len by using the maximum length for an integer on your system.
edit oops - didn't see the "++". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Project files in repository Is it common practice to keep project files (i.e. files other that source code files) in the version control repository?
Also, are these files checked in/out on a regular basis?
I always envisioned a SCC repository as 'clean' with only source code files.
How do you manage the non-source c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: External library or mini-language for reading database schema? I am considering writing a simple database application for my wife, but I'm hung up on good programming practice, and want to have a human readable source for storing the database schema.
Only, I don't know of any tools for the job, and I can't believe ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you put unit tests in same project or another project? Do you put unit tests in the same project for convenience or do you put them in a separate assembly?
If you put them in a separate assembly like we do, we end up with a number of extra projects in the solution. It's great for unit testing while coding but ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: How do I omit and in 'git push'? When I'm on master, I only have to type 'git push' to push commits to the remote repo. I wish I could do so when I'm on another branch, without specifying the remote name and the branch name. Like that:
Now: git push origin experimental:origin/experimental
Need: git push
A: You s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should I delete or disable a row in a relational database? In a brand new program where space isn't really that big a deal, is it better to delete a row or to disable a row by let's say a boolean "Disabled" and have the program just ignore it?
For example, if I wanted to remove a user from a program.
A: It's up to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is there a way to update a Windows Mobile 5 app over the air? I want to be able to push out application updates to windows mobile 5 devices over the air, is this possible? Note, this is just an application, not a rom update.
It doesn't have to be a strict push. It is just as well to have the user go to a web page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Flags for Crash dumps I currently have some code that will produce a crash dump when my application crashes however I can't work out what are the best flags to use for it are.
At the moment I have it using Full Memory (MiniDumpWithFullMemory) but this produces 32mg crash files. What flags should I use as to not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get the source IP address from a datagram's IP header with Winsock? I have a port that is bind()'d to INADDR_ANY. I am receiving datagrams successfully. After receipt, I need to read the IP header to get the source IP address.
A: I don't believe you can get it if you're using the standard recv or read fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to resove this error "An unknown item is declared as the root of your MXML document. Switch to source mode to correct it."? I have only this in my mxml source code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:comp="components.*"
width=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you execute a Javascript function without 'onclick' like "Grippie" in a new post on SOF How do you execute a JavaScript function without onclick like "Grippie" in a new post on SOF, like the <div class="grippie" style="margin-right: 59px;"/> on Stack Overflow when you post a question or answer? I get a nice C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I programmatically pause an NSTimer? I'm using an NSTimer to do some rendering in an OpenGL based iPhone app. I have a modal dialog box that pops up and requests user input. While the user is providing input I'd like to "pause" i.e. something like this:
[myNSTimer pause];
I'm using this syntax because I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How do I design backing data types for a databound WPF dialog with Ok/Cancel buttons? I've created a table in Microsoft Sql CE that I'm using to hold some data. I've generated an ORM via SqlMetal and I've pulled the datasource into my WPF project.
I want to create a simple WPF form that can be used to edit a record... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make an ASP.NET session cookie expire with the ASP.NET HttpSession? I have created an HttpCookie in order to share data across a subdomain :
HttpCookie cookie = new HttpCookie("sessionGUID");
cookie.Value = value;
cookie.Domain = ".example.com";
Response.Cookies.Set(cookie);
I carelessly assumed since it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Base64 encoded string search I have string which is base64 encoded. How can I search this string to check if this string contains specific sub string which is not encoded? I don't want to decode that string and then search it.
Can I just encode that specific sub string, and search the encoded string by using the en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the advantages to each approach for mapping application end users to database users? There seems to be three common approaches for mapping an application end user to a database user.
*
*One to One Mapping: Each Application user (bob, nancy and fred) also get a corresponding database user account (bob ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Default Class Accessibility in C# by default is a class:
*
*private ?
*internal ?
*sealed ?
A: internal
see:
http://msdn.microsoft.com/en-us/library/ms173121.aspx
A: Also, it is not sealed by default. I believe nested classes are private by default.
A: The default for non-nested types is internal.
The defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I get a list of all the implementations of an interface programmatically in Java? Can I do it with reflection or something like that?
A: The most robust mechanism for listing all classes that implement a given interface is currently ClassGraph, because it handles the widest possible array of classpath speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Tone Generation in Cocoa Touch I need to generate a tone that I can manipulate frequency and wave. The overall goal is to create a basic piano. Does anyone know how I can achieve this?
My development platform is the iPhone 2.x
A: You could always start with sin waves. :-)
#include <cmath>
typedef double Sample;
ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Logging terminal commands Is there a way to log(/var/log) commands executed by users in the Unix shell?
A: Assuming you're doing this for security purposes, take a look at process accounting. You didn't say which UNIX variant you're on, but for Linux, take a look at http://www.gnu.org/software/acct/ Beware that you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to refer to the Java Wireless Toolkit storage root in Ant? I'm looking for a way to automatically get the Java Wireless Toolkit storage root (the directory where the JWT stores the file system of a mobile device simulator), in an Ant build file.
Is there a property file or an environment variable that the JWT st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I programatically tell Windows taskbar to open (or close) a given toolbar? I have written a toolbar that runs on the taskbar. Unfortunately, after it is installed, the user has to enable it manually. Is there a way to tell explorer to open (or close) a given toolbar?
I would like for the installer, NSIS, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Paginating very large datasets I have a dataset in MySQL where using limit is already an expensive query, and finding the number of results is expensive as well. Thus, I'd like to avoid doing another query to find the number of results. I cannot use MYSQL_CALC_FOUND_ROWS because the limit is inside a subquery:
SEL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET Custom 404 Returning 200 OK Instead of 404 Not Found After trying to setup my site for Google Webmaster Tools I found that my Custom ASP.NET 404 page was not returning the 404 status code. It displayed the correct custom page and told the browser that everything is OK. This is consider a soft 404 or false 40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: What are the various files that could have PATH declarations for OS X Terminal in them? So I'm having a path issue on OS X Leopard. It seems OS X is adding other paths that I'm not stating and it's messing with my path priority. I only have a .bash_login file, I don't have a .bashrc or a .profile file. My .bash_logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to press the "X" or close bottom on the top right of the window application I am experimenting SDL Events and I came into a problem. For some reason, I am unable to press the "X" or close bottom on the top right of the window application. Now I am currently unsure if that is related to the SDL coding, or it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: adding alpha values to bilinear resizing algorithm So I'm trying to take a bilinear interpolation algorithm for resizing images and add in alpha values as well. I'm using Actionscript 3 to do this, but I don't really think the language is relevant.
The code I have below actually works really well, but edges around "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OpenMPI: All nodes run as node 0 I have a c++ program that is using the openMPI library to pass messages between different processors. It is a parallel program that uses a genetic algorithm to get a good solution for the traveling salesperson problem. I am trying to set up the MPI environment on my two dual proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Update the values in the database directly or delete - add them again Whenever we have to update the database; we delete the values from the table first and then add the latest values. This ensures that everything is updated correctly.
This adds little bit overhead to the system but we haven't faced any performance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FORTRAN problem need help in Fortran...
This is the main loop of the program..
do iStep=0,nStep
write(7,*)iStep
!* Compute new temperature using FTCS scheme.
do i=1,N
if( istep==0) then !only for t=0
tt_new(i)=250
write(7,*)tt_new(i)
else
if(i==1) then
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: need help on how to encode words using huffman code how do you encode words using the huffman code such as NEED
A: Huffman encoding basically uses variable-length bit strings to represent tokens (generally characters with a couple of exceptions). The more common a token is, the shorter it's bit-length is and this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Information about lazy-loading in GWT and GWT-Ext Where can I find more information about GWT and GWT-Ext's lazy loading?
A: Quickly googling shows a nice blog entry by the GWT team.
I can't say anything about GWT-Ext, but the same basic techniques will work regardless of technology.
Another possibility for GWT tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Secured File download in Groovy I need to get a file into memory in my app from a secured web location. I have the URL of the file to capture, but can't seem to get the security issue resolved. Here's the code from the Cookbook samples page:
def download(address)
{
def file = new FileOutputStream(address.token... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is Object Releasing on Program Exit Really Needed? Is releasing objects on a programs exit/close needed?
In other words, let us say for the sake of argument, you have a button that closes your application, but right before you close you display an image, and then you close the application.
Do you need to release tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Data binding to a list inside a data bound object I'm new to WPF and data binding so hopefully I can explain the problem I'm having with enough detail to get some help.
I have a list of objects that is data bound to a window. Let's say its a list of recipes. I have managed to get the application to display some deta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: An Open Source Project, Can Teach Membership and Role Management For .NET I want to see a basic project to learn how to organize membership and role management. Can you give me some open source project link about it?
A: If you are interested in an asp.net user membership example,
N2 has a feature named User regist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inheriting constructors Why does this code:
class A
{
public:
explicit A(int x) {}
};
class B: public A
{
};
int main(void)
{
B *b = new B(5);
delete b;
}
Result in these errors:
main.cpp: In function ‘int main()’:
main.cpp:13: error: no matching function for call to ‘B::B(int)’
main.cpp:8: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "310"
} |
Q: How can I find out which procedure threw an exception in Delphi? I am using Delphi TApplication.OnException Event to catch unhandled exceptions
This works well but does not give sufficient information about where the exception happened
i.e. ‘Catastrophic failure’
How can I find out which procedure made the error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: NHibernate - how to save object with where clause I don't know how to save object with where clause. I need it to prevent saving object with range of dates overlapping on others.
public class TaskEvent
{
public DateTime StartDate {get;set;}
public DateTime EndDate {get;set;}
}
I want to check overlaping in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microft Visual Studio Testing causing tests to fail After using nunit for a long time, i've decided to test out Microsoft's built in testing framework.
At the beginning of my tests, I generally clean the database to get it into a state i can rely on for testing.
In my test setup, i delete all the data and insert fre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()? Both Session.Clear() and Session.Abandon() get rid of session variables. As I understand it, Abandon() ends the current session, and causes a new session to be created thus causing the End and Start events to fire.
It seems preferable to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: Is there such a thing as excessive unit testing? I'm not brand new to the concept of unit testing but at the same time I've not yet mastered them either.
The one question that has been going through my head recently as I've been writing unit tests while writing my code using the TDD methodology is: to what level sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I translate the validation messages of Struts 2? I want to learn how to use Struts 2 and I created a simple application following a tutorial I found.
I've created a <MyActionClass>-validation.xml file and I wonder how can I translate the validation messages to multiple languages?
<field name="password">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2008 C++ Problems I'm trying to write a program to calculate the quadratic formula. When I run it, I get 2 error messages:
error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
fatal error LNK1120: 1 unresolved externals
this is after I changed the last line o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use Cocoa's Accessibility API to detect that a window is brought to front? I'm using the Accessibility API to detect when a certain application opens windows, closes windows, when the windows are moved or resized, or made main and/or focused. However the client app seems to move a window to front without a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: IE adds extra top-margin to every li-element I am currently doing IE-hacks on a website I'm working on:
http://www.timkjaerlange.com/wip/co2penhagen/
I got a problem with this unordered list. IE seems to add extra top-margin for every li-element, making my navigation look like a flight of stairs:
http://dl.getdropb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use nhibernate with ASP.NET 3.5 (not MVC) What is the best way to interop with NHibernate 2.0 and ASP.NET 3.5? How can I easily develop a CRUD application?
Is the ObjectDataSource the way to go?
Thank you.
A: you can watch screencasts at
http://www.summerofnhibernate.com/
that will explain how to set up CRUD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom controls in C# Windows Forms mouse event question I have a mouseenter and mouseleave event for a Panel control that changes the backcolor when the mouse enters and goes back to white when it leaves.
I have Label control within this panel as well but when the mouse enters the Label control, the mouseleave even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Erasing elements from a vector I want to clear a element from a vector using the erase method. But the problem here is that the element is not guaranteed to occur only once in the vector. It may be present multiple times and I need to clear all of them. My code is something like this:
void erase(std::vector<int>& my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: SQL Statement Help - Select list of CustomerID, OrderDate with the most records in a table I'll be using the AdventureWorks Database to illustrate my problem.
I need to show for a particular customer a list of OrderDate with the most Orders.
My intial attempt was as follows:
SELECT CustomerID, OrderDate, COUNT(1) Cn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/347449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.