text string | meta dict |
|---|---|
Q: When would you call java's thread.run() instead of thread.start()? When would you call Java's thread.run() instead of thread.start()?
A: Never. Calling run() directly just executes the code synchronously (in the same thread), just like a normal method call.
A: Call thread.start(), it will in turn call thread.run(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Good simple algorithm for generating necklaces in Scheme? A k-ary necklace of length n is an ordered list of length n whose items are drawn from an alphabet of length k, which is the lexicographically first list in a sort of all lists sharing an ordering under rotation.
Example:
(1 2 3) and (1 3 2) are the necklaces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: painting DataGridView Row I am trying to set the background color of a DataGridView row to red. I tried with the following line:
dgvActiveCalls.Rows[1].DefaultCellStyle.BackColor = Color.Red;
but it doesn't work. Then just to see if something is wrong with update I tried to paint the column instead of row:
dgvActive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine the entire date range displayed by ASP.NET calendar? The ASP.NET calendar always displays 6 weeks of dates in a 7x6 grid. My problem is that the first day of the target month does not necessarily appear in the first row... in some cases, the entire first row displays dates from the previous month. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C++ map access discards qualifiers (const) The following code says that passing the map as const into the operator[] method discards qualifiers:
#include <iostream>
#include <map>
#include <string>
using namespace std;
class MapWrapper {
public:
const int &get_value(const int &key) const {
return _map[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: Can anyone point me at a good example of pretty printing rules to "english" I've got the equivalent of an AST that a user has built using a rule engine. But when displaying a list of the rules, I'd like to be able to "pretty print" each rule into something that looks nice**. Internally when represented as a string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why HttpServletRequest.getRemoteAddr() doesn't work in Java servlet? I'm developing a web app with java servlet, I hope to get the user ip info by calling request.getRemoteAddr() from inside processRequest(HttpServletRequest request,HttpServletResponse response).
But it returns a wrong IP. Since I'm not very knowle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to find out how "deep" a PHP array is? A PHP array can have arrays for its elements. And those arrays can have arrays and so on and so forth. Is there a way to find out the maximum nesting that exists in a PHP array? An example would be a function that returns 1 if the initial array does not have arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: What Delphi coding standards document(s) do you follow? What Delphi coding standards document(s) do you follow?
Our company is looking at putting some better coding standards in place, to improve our code’s readability, reviewability, and maintainability. We’ve come across CodeGear’s “Object Pascal Style Guide”, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do you show a preview image when allowing file uploads in ASP.NET? Here is the functionality I want:
User selects an image from their machine, hits an Upload button (or better yet the following fires on the onchange event of the file input), and is able to see a preview of the image they are about to upload.
Her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: portable zip library for C/C++ (not an application) I want to be able to zip files from my non-gui C/C++ application, on several versions of Windows, Linux/Unix, and MacOS.
The user will compile and run using this app using Eclipse + makefile or VisualStudio. I don't want the user to have to install something separa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Declarative XML -> POJO conversion I have to write a process (in Java) which periodically hits a URL, reads the returned XML document, and persists that data into the DB. This data is further used by my application, so I have modeled them as Hibernate-mapped POJOs.
I can parse the XML and then create appropriate POJ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best way to highlight a required field on a web form? I don't find the oft-used "*" to be very nice looking - can anyone suggest a nicer-looking method or point me to an example?
I tried making the field highlighted in red as one person suggested but I did not like the look.
Bold labels might do the trick... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to export / dump a MySql table into a text file including the field names (aka headers or column names) In MySql's interpreter, it's very easy to dump a table to the screen along with its field names.
There seems to be no simple way to export a table to a tab-delimted or CSV outfile including its column headers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Passing params in the URL when using HTTP POST Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp does it often, but I don't know if it's actually supported in the standar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: (int) ch vs. int(ch): Are they different syntaxes for the same thing? In C++, is (int) ch equivalent to int(ch).
If not, what's the difference?
A: They are the same.
A: Konrad Rudolph is right. But consider that
*
*(int) x <-- is valid syntax in C and C++
*(int*) x <-- is valid syntax in C and C++
*int (x)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it costly to do array.length or list.count in a loop I know that in JavaScript, creating a for loop like this: for(int i = 0; i < arr.length; i++) is costly as it computes the array length each time.
Is this behavior costly in c# for lists and arrays as well. Or at compile-time is it optimized? Also what about o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: openbd cfloop over a date I'm trying to convert my sites from CF8 to openBD. I have a cfloop in a site that loops over a date range.
In essence, I want to insert a new record into the db for every 2 weeks (step) of a date range (from and to)
my loop looks like this...
<cfloop
from = "#form.startDate#"
to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does this RegEx work the way I want it to? I have a RegEx that is working for me but I don't know WHY it is working for me. I'll explain.
RegEx: \s*<in.*="(<?.*?>)"\s*/>\s*
Text it finds (it finds the white-space before and after the input tag):
<td class="style9">
<input name="guarantor4" id="guarantor4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: A good strategy for implementing a versioning system I have been struggling with versioning software for a while now.
I'm not talking about a naming convention, I'm talking about how to actually apply a version in a build system all the way through to a release.
I generally use major.minor.maintenance-[release type]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Gridview sorting challenge when moving from Winforms to ASP.NET 2.0 Webforms I have a problem with Gridview sorting that is similar to others but I'm binding to a collection object as opposed to a data table.
The existing business rules and data access layers of an application follow the pattern of having an object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Gitosis: setting repository config variables Is there a way to set repository config variables through the gitosis conf instead of going into each repository and editing the conf values directly?
A: I don't think it's possible.
On the other hand, it's quite simple to build "porcelain" script that analyzes your gito... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can my web server be at one hosting company, and my email hosted by a 3rd party? I have a web server that runs my web application.
If I want to outsource my email to another provider, is it possible if they are on their on network/data center?
A: It is possible no matter where they are located, as long as you have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/262990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is it possible to change the Environment of a parent process in Python? In Linux When I invoke python from the shell it replicates its environment, and starts the python process. Therefore if I do something like the following:
import os
os.environ["FOO"] = "A_Value"
When the python process returns, FOO, assuming it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What's your favorite cross domain cookie sharing approach? I see iframe/p3p trick is the most popular one around, but I personally don't like it because javascript + hidden fields + frame really make it look like a hack job. I've also come across a master-slave approach using web service to communicate (http://www.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Java URLConnection : how can I find out the size of a web file? I'm working on a project for school, and I'm implementing a tool which can be used to download files from the web ( with a throttling option ). The thing is, I'm gonna have a GUI for it, and I will be using a JProgressBar widget, which I would like to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Stored Procedure slower than LINQ query? I was doing some testing and straight LINQ-to-SQL queries run at least 80% faster than if calling stored procedures via the LINQ query
In SQL Server profiler a generic LINQ query
var results = from m in _dataContext.Members
select m;
took only 19 milliseconds as opposed t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Keeping static files in server when deploying with Capistrano I'm uploading files to my public/files folder of a Rails application on a constant basis through a web interface.
I don't want to keep these in source control since they go for almost 2 GBs, so every time I do a cap deploy it will save those files away in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: State Machine Framework for JBoss/Java? We are developing an application that involves a lot of different tests where each test lead the users to a number of steps. We are thinking of using a state machine framework to capture the states/transitions out of the code. We are also thinking of using rule engine to sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine the range category of a specified number So I have a column with different numbers and wish to categorize them by range within 30 minute intervals. So 5 would be 0-30, 697 would be 690-720, and 169 would be 150-180. I was first thinking of doing a case statement, but it doesn't look like Access 2003 suppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change character encoding of a PDO/SQLite connection in PHP? I'm having a little problem with a php-gtk app that keeps running into non-utf8 strings, I had found that the problem is in the database connection, even when the database is supposed to be in UTF-8.
I had tried with the "SET CHARACTER SET utf8"(MyS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a setting to disable 'collapsing to definition' of comments in VS2005? Is there an outlining setting to disable 'collapsing to definition' of comments in Visual Studio 2005?
A: Just comments - No.
But you can turn outlining off Edit-->Outlining-->Stop Outlining (Or CTRL+M, CTRL+P)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/263061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Play two or more videos synchronously How can I play two or more video files/streams in different windows with frame-level synchronism?
What tools, libraries or APIs could I use to do that?
By frame-level synchronism I mean that my solution must guarantee that each frame of each video file must be shown at the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a fulltext index on a view in SQL Server 2005 I am having troubles creating a fulltext index on a view in SQL Server 2005. Reviewing the documentation I have not found the problem. The error message I receive is: "'Id' is not a valid index to enforce a full-text search key. A full-text search key must be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are some of the best resources to learn MSBuild with? I am looking for any and all suggestions of the best and effective resources that the StackOverflow community has used to better learn MSBuild with an emphasis on integrating unit tests and later static code analysis tools such as FxCop and StyleCop into the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Resolving AliasRecord with relative path on a new volume I have an AliasRecord creating using the Alias Manager function FSNewAlias(fromFSRef, targetFSRef, &aliasRecordHandle). My understanding is that the resulting alias record will contain information for a relative path search (relative to fromFSRef). Because my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make the Lucene QueryParser more forgiving? I'm using Lucene.net, but I am tagging this question for both .NET and Java versions because the API is the same and I'm hoping there are solutions on both platforms.
I'm sure other people have addressed this issue, but I haven't been able to find any good discussio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to fix the error that occurs during execution of the package deployed on a server? I've created a dtsx package with Sql Server Business Intelligence Development studio, and I am executing it using the dtexec utility. Using dtexec I am setting certain properties at runtime using the /set switch. So my command loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a Web Reference for SharePoint in Visual Studio 2008 Whenever I add a web reference for any Sharepoint web service in VS 2008, the preview window while adding the web reference shows the proper method names:
Note CreateFolder:
Before: alt text http://img134.imageshack.us/img134/5286/vs20081bq7.png
And after, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is OpenID a flawed concept? I'm not asking about specific implementations, I'm not asking about the global world view of cross site single sign on mechanisms, I just want to know what the community thinks about the underlying usability of OpenID. Do you think using a URL issued by a (to the non-technical observer) r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Will Air 1.5 include an update of WebKit with CSS animations? I'm currently developing an html/ajax air app and am about to invest some effort into making animations using jQuery. I could do this quite a bit easier using the css animations if air had that recent a version of WebKit.
I know some people have alpha/be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert into temp values (select.... order by id) I'm using an Informix (Version 7.32) DB. On one operation I create a temp table with the ID of a regular table and a serial column (so I would have all the IDs from the regular table numbered continuously). But I want to insert the info from the regular table ordered... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Waiting for all threads to complete, with a timeout I'm running into a common pattern in the code that I'm writing, where I need to wait for all threads in a group to complete, with a timeout. The timeout is supposed to be the time required for all threads to complete, so simply doing Thread.Join(timeout) for each t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: iPhone OS Utility App - Flipside View and Main View communication I am currently working on an iPhone 2.1 application. I am new to Objective C, coming from a Java background.
My application has as a base the Utility Application template available in Xcode with the iPhone SDK. Currently I have some controls, such as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: java traits or mixins pattern? Is there a way to emulate mixins or traits in java? basically, I need a way to do multiple inheritance so I can add common business logic to several classes
A: Is the object-purist stirring in you today?
Think you could do with a little composite oriented programming?
Then you, sir, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: custom HTTP headers for static files with Django I'm writing an image bank with Django, and I want to add a button to get a hi-res version of an image (the low-res is shown in the details page). If I put just an <a> link, the browser will open the image instead of downloading it. Adding an HTTP header like:
Conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: javascript empty text ajax I have a php script and i'm using ajax with it. I have a textarea form connect with the ajax class
The problem when I pass a text like (&some text) the function return an empty text, I guess that I have a problem with (&).
The javascript function:
function sendFormData(idForm, dataSource, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you find the package a Delphi component comes from? You used to be able to get the package a Delphi component was installed under from the palette. That functionality doesn't seem to be in the lastest versions, though. How can I find which package a component belongs to under D2007 or D2009?
A: I don't know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which is the better .NET ORM Tool: SubSonic or WebWidgetry? I was pointed to SubSonic (www.subsonicproject.com), but then I found WebWidgetry (www.nthpenguin.com) Before I dig into them too much I'm curious to know who's used either and what the pro's and con's might be?
Thanks for the help,
Jim
A: I have used Sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I assign a Func<> conditionally between lambdas using the conditional ternary operator? Generally, when using the conditional operator, here's the syntax:
int x = 6;
int y = x == 6 ? 5 : 9;
Nothing fancy, pretty straight forward.
Now, let's try to use this when assigning a Lambda to a Func type. Let me expl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Ruby On Rails/Merb as a frontend for a billions of records app I am looking for a backend solution for an application written in Ruby on Rails or Merb to handle data with several billions of records. I have a feeling that I'm supposed to go with a distributed model and at the moment I looked at
HBase with Hadoop
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .net http handler redirect to rtmp and flex I have an http handler (.ashx) that I use to display an image or swf or flv based on the id. So, for instance http://www.example.com/myHandler.ashx?id=1234 it displays the image for id 1234. I am using this as a source for an image tag or swf loader or video display in fle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In C#, should I use string.Empty or String.Empty or "" to intitialize a string? In C#, I want to initialize a string value with an empty string.
How should I do this?
What is the right way, and why?
string willi = string.Empty;
or
string willi = String.Empty;
or
string willi = "";
or what?
A: The best code is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "787"
} |
Q: Run binary with ./ in Ubuntu I decided to learn C++ (I program in C at work), and I have been reading some tutorials (and lots of posts here on Stack Overflow). OK, so I typed in the standard C++ "hello word", compiled with GCC on my Ubuntu machine as "test".
Then I tried to run it by typing "test" and hitting enter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: String manipulation with Excel - how to remove part of a string if another part is there? I've done some Googling, and can't find anything, though maybe I'm just looking in the wrong places. I'm also not very adept at VBA, but I'm sure I can figure it out with the right pointers :)
I have a string I'm building that'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why do Boost libraries return things "convertible to `bool`" rather than just returning `bool`s? Several times, while perusing the Boost library's documentation, I've run across return values that are marked "convertible to bool" (search that page for the phrase "convertible to bool", it's about a third of the way d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What needs to be in a .war file to deploy a Flex application? I've been using Flex Builder 3 to create Flex applications that are part of larger Flex / Java project using LiveCycle Data Services. Flex Builder creates and deploys the .war file, which is convenient for the development cycle, but I don't understand wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DateTime.UtcNow.Ticks sometimes jumps a remarkable amount In a tightly looped test application that prints out the value of DateTime.UtcNow.Ticks, I notice that the value will jump a remarkable amount once every hour or so. Look closely at the following sample data:
1:52:14.312 PM - 633614215343125000
1:52:14.359 P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determine if an element has a CSS class with jQuery I'm working with jQuery and looking to see if there is an easy way to determine if the element has a specific CSS class associated with it.
I have the id of the element, and the CSS class that I'm looking for. I just need to be able to, in an if statement, do a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "175"
} |
Q: .NET Minimize to Tray AND Minimize required resources I have a WinForms application (I'm using VB) that can be minimized to the system tray. I used the "hackish" methods described in multiple posts utilizing a NotifyIcon and playing with the Form_Resize event.
This all works fine aesthetically, but the resources an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Are there any good J2EE value list handler pattern implementations? Are there any good value list handler implementations available?
I've found valuelist, but it seems to be stagnating... besides I really need good control of links the taglib generates, because I need to call some JavaScript from it.
Currently I sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: TortoiseSVN freeze after transferring @1 MB data I'm using Apache Subversion to manage and store a decent volume of code. Trying to get at it on a standard work machine using svn+ssh with TortoiseSVN on Windows Vista, I find that I can't actually bring all of it down to my local machine at once - the transfer stops ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking for equivalent shared folders in .net Is there a way, within the .net framework, to check to see if two different shared folders are actually pointing to the same physical directory? Do directories in Windows have some sort of unique identifier? Google-fu is failing me.
(I mean, aside from writing a temp ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting UTF8 to ANSI with Ruby I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP.
I then need to open this file with Excel, but Excel doesn't get UTF8, so I always need to open the file in a text editor that has the capabili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: MSI Installation Issues I've got an MSI based install that I've wrapped in an EXE file as per my installation packaging software (which is Wise Package Studio 7.0 SP2).
I've made many changes to the install, and every time I've tested them, they've worked just fine... up until now.
I changed some text on a dialog bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change Keyboard Layout for Other Process I'm writing a program in C# that runs in the background and allows users to use a hotkey to switch keyboard layouts in the active window. (Windows only supports CTRL+SHIFT and ALT+SHIFT)
I'm using RegisterHotKey to catch the hotkey, and it's working fine.
The problem is that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Creating a python win32 service I am currently trying to create a win32 service using pywin32. My main point of reference has been this tutorial:
http://code.activestate.com/recipes/551780/
What i don't understand is the initialization process, since the Daemon is never initialized directly by Daemon(), instead from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Drawing a Topographical Map I've been working on a visualization project for 2-dimensional continuous data. It's the kind of thing you could use to study elevation data or temperature patterns on a 2D map. At its core, it's really a way of flattening 3-dimensions into two-dimensions-plus-color. In my particular fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Copy Context Menu for ListView Control What is the best way to add "copy to clipboard" functionality to a ListView control in WPF?
I tried adding an ApplicationCommands.Copy to either the ListView ContextMenu or the ListViewItem ContextMenu, but the command remains disabled.
Thanks,
Peter
Here is an xaml sample of o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Freezing gridview header in a fixed width div I have seen some gridview header freezing examples on the web but I have a special case where the gridview is in a fixed width div. The examples I tried make the header fixed but the full width of the header is shown and it overflows out of the div while the grid body ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I copy/paste htpasswd files to my new server? I'm documenting the procedure for a full redeploy on my development server. Small staff, using Basic authentication (over SSL, of course) with an htpasswd file backend.
Is it safe to transfer the .htpasswd file as-is?
The Operating Systems will potentially differ, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: asp.net mvc radio button state I'm trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I use a series of radio buttons, the checked state doesn't get persisted.
Here's an example from my view.
<li>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Evaluating expressions inside C++ strings: "Hi ${user} from ${host}" I'm looking for a clean C++ way to parse a string containing expressions wrapped in ${} and build a result string from the programmatically evaluated expressions.
Example: "Hi ${user} from ${host}" will be evaluated to "Hi foo from bar" if I imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: When to call the gang of four? [When to use design patterns?] In The Guerilla Guide to Interviewing Joel says that guys who want to get things done, but are not smart will do stupid things like using a visitor design pattern where a simple array would be sufficient.
I find it hard to detect, if the design pattern su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is NNTP dead / NNTP successor? If its dead, is there a successor?
For those who didn't know:
The Network News Transfer Protocol or NNTP is an Internet application protocol used primarily for reading and posting Usenet articles (aka netnews), as well as transferring news among news servers.
A: It is not dead, but st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Best Practices - Swing, Database Access I'm a newbie to swing development.
I have a swing app that needs to access data from a remote sql database. The users of the app are all located in our office.
Is it bad practice to access the database directly from the swing app?
Should I put database facing code into an rmi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Is a" vs "Has a" : which one is better? Portfolio A → Fund 1
Portfolio A → Fund 2
Portfolio A → Fund 3
I couldn't frame my sentence without not using is/has. But between 1 & 2,
1) has a:
class PortfolioA
{
List<Fund> obj;
}
2) is a:
class PortfolioA : List<Fund>
{
}
which one do you think is better from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SSN format in XSLT? I could use some help creating an XSL template that will take a string of numbers (i.e., 123456789) and format that string into a Social Security Number format (i.e., 123-45-6789). I found one example on the Internet, but it seemed overcomplicated.
I'm new to XSLT, so please keep that in mind wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine if an image has loaded, using Javascript/jQuery? I'm writing some Javascript to resize the large image to fit into the user's browser window. (I don't control the size of the source images unfortunately.)
So something like this would be in the HTML:
<img id="photo"
src="a_really_big_file.jp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: How do you support a web app with hashed or encrypted passwords? When supporting a new web app in an enterprise environment, it is often necessary to log in as a specific user in order to diagnose a real or perceived problem they are having. Two opposing issues apply here:
*
*Best practice is to use hashed or enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Does the range for integer values of a char depend on implementation? I'm reading The C++ Programming Language and in it Stroustrup states that the int value of a char can range from 0 to 255 or -127 to 127, depending on implementation. Is this correct? It seems like it should be from -128 to 127. If not, why are t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Java.util.Calendar - milliseconds since Jan 1, 1970 Program followed by output. Someone please explain to me why 10,000,000 milliseconds from Jan 1, 1970 is November 31, 1969. Well, someone please explain what's wrong with my assumption that the first test should produce a time 10,000,000 milliseconds from Jan 1, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Showing too much 'skin' detection in software I am building an ASP.NET web site where the users may upload photos of themselves. There could be thousands of photos uploaded every day. One thing my boss has asked a few time is if there is any way we could detect if any of the photos are showing too much 'skin' and au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Is MonoRail ready for productive usage? Right now I'm not sure...
A: I'd say yes. I'm using it. I know for a fact that Universal are using it on some of their (thousands of) sites. I will add some caveats, however:
*
*There are serious problems with setting it up, especially if you want to debug into the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Handling data in a PHP JSON Object Trends data from Twitter Search API in JSON.
Grabbing the file using:
$jsonurl = "http://search.twitter.com/trends.json";
$json = file_get_contents($jsonurl,0,null,null);
$json_output = json_decode($json);
How do I work with data from this object. As an array? Only really need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: What is the best algorithm for overriding GetHashCode? In .NET, the GetHashCode method is used in a lot of places throughout the .NET base class libraries. Implementing it properly is especially important to find items quickly in a collection or when determining equality.
Is there a standard algorithm or best practi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1654"
} |
Q: Dynamically adding words to a context in REBOL Imagine the following REBOL code:
foo: context [bar: 3]
I now have a context foo in which 'bar is defined. How can I dynamically inject a new word into this context? Is it possible?
I've tried:
set/any in foo 'baz 3
But that doesn't work because the expression in foo 'b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Loose xaml referencing versioned assemblies I have a unique development situation and would like some input from others.
I have a situation where I need to load loose xaml files within a rich client application.
A given loose xaml file may have references to an assembly not currently loaded in memory
so the referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: End of an XML stream over a JSSE connection? I have a Java server that accepts SSL connections using JSSE and uses a simple XML message format inside the stream. I would like the server to read a complete message and then send a reply. This turns out to be quite difficult because org.xml.sax.XMLReader wants to rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Zend Framework - Is there a script to index static content from Views? I'm wanting to add a search box onto my website - which is built using Zend Framework 1.6 - using Zend Search Lucene. The majority of my content is static, and held within Controller Views.
Does anyone have a script that can index content from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Libraries and tutorials for XML in Delphi I'm planning to add XML support to application, but I'm not familiar with XML programming in Delphi.
Basically I need to create objects based on XML nodes and generate XML file based on objects.
Which XML component library I should use? Are there any good tutorials for XML w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: cron jobs change time after DST My cron job is running an hour later after end of DST. This didn't happen to other user's jobs on the same machine (AIX). What am I doing wrong?
A: I think the first thing to find out is the timezone that cron is running under:
0 1 * * * (/usr/bin/date ; /usr/bin/date -u) > ~/cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merging/adding lists in Python I'm pretty sure there should be a more Pythonic way of doing this - but I can't think of one: How can I merge a two-dimensional list into a one-dimensional list? Sort of like zip/map but with more than two iterators.
Example - I have the following list:
array = [[1, 2, 3], [4, 5, 6], [... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Reading files in a .NET project I have a C# .NET web project that I'm currently working on. What I'm trying to do is read some files that I dropped into a dir which is at the same level as fileReader.cs which is attempting to read them. On a normal desktop app the following would work:
DirectoryInfo di = new Direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cocoa Graphing/Plotting Framework on iOS Looking at adding some data graphing to a new iPhone app in development (ala the Stocks app).
I realize I could buckle down and do some Quartz drawing but I'm hoping that someone somewhere has a tip on a Cocoa graphing framework that works on iOS.
A: Despite eisernWolf spamm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Sorting a GridView with an ObjectDataSource is not Sorting I have a gridview like below:
<asp:GridView DataKeyNames="TransactionID"
AllowSorting="True" AllowPaging="True"ID="grvBrokerage"
runat="server" AutoGenerateColumns="False"
CssClass="datatable" Width="100%"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP/MySQL - How do you determin the field names from a given query result? Given a result set, how can I determin the actual names of the fields specified in the query (NOT their aliases).
$query = "SELECT first AS First_Name, last AS Last_Name FROM people";
$dbResult = mysql_query($query);
$fieldCount = mysql_num_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you access the ScrollViewer element of a ListBox control in Silverlight/C#? I wish to dynamically change the scroll position of a Silverlight ListBox from C#, and I need to know how to access the ScrollViewer element of a ListBox control from C#?
Thanks guys,
Jeff
A: From within a class that inherits from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get the current user in ASP.NET MVC In a forms model, I used to get the current logged-in user by:
Page.CurrentUser
How do I get the current user inside a controller class in ASP.NET MVC?
A: In order to reference a user ID created using simple authentication built into ASP.NET MVC 4 in a controller for filt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "275"
} |
Q: Log4Net or Logging Application Block I need a logging framework in my application. I have two candidates: Log4Net and Logging from Application Block.
Which is better? any specific advantage to any of them?
Thanks
A: My opinion ... Log4Net works, performs well and is stable (perhaps too stable given frequency of rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/263496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |