text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I use JProgressBar to display file copy progress? I am working on a project that transfers files over a network and I want to incorporate a JProgressBar to show the progress during file transfer but I need help on that.
A: You probably would find a ProgressMonitorInputStream easiest, but if that doesn't do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using two user controls on the same page? I have a user control in a master page and the same user control directly in the aspx. The user control in the master page works fine, but when I try the user control that is embedded directly in the aspx page, it doesn't work. The user control is 2 textboxes with a login ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I modify multicast TCP/IP packets' TTL? I'm supporting a 3rd party app that sends multicast packets with a TTL of 1. We cannot modify the app, but need a higher TTL to route the packets to another customer's network. Is there a network appliance or windows (server 2003) app that will let me modify this?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I override Django's administrative change password page? I'd like to override Django's administrative "Change Password" page (change_password.html). As such, I've placed Django's "/contrib/admin/templates/registration/password_change_form.html" in my project's "/templates/admin/registration/password_change_f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hosting WCF on IIS6, does it require any special setup? Does hosting a WCF service require any special configuration on IIS6?
A: This is a pretty handy blog post for your question.
A: You can use ServiceHostReg of WCF:
The tool can be found in the following location:
%SystemRoot%\Microsoft.Net\Framework\v3.0\Windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I write a Mock Object? My first programming job introduced me to unit testing and the concept of mock objects, but something always felt wrong about it.
Let's say we were writing a bank app, and needed to mock a BankAccount object:
// boilerplate code
public interface IBankAccount {
void Depo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anti-pattern of SOA or WCF While I can find lots of article advocating SOA, or WCF, my question is that what should not be exposed as service, is there any lessen that we learn from SOA failure. WCF is a way to implementing SOA, if we use WCF, does that means we are implementing SOA. For sure there are lots people u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: What's the recommended workaround if numeric_limits::has_infinity is false? I need to check a double value for infinity in a C++ app on Linux. On most platforms this works by comparing with std::numeric_limits<double>::infinity(). However, on some old platforms (RedHat 9 for example, with gcc 3.2.2) this is not avai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JQuery beginner: :has for direct descendants only Assuming a tree structure like the following:
(Ugly legacy layout, sorry)
<tr> (1) dont want to select this one
<td>
<table>
<tr> (2) not a "special" td, dont select
<td.normal> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Validation plugin: how to check if an element is valid? A little bit of context:
I'm using the jQuery Validation plugin to validate a sign-up form. I now want to implement an ajax call to check whether the user name is available in the system, and I want to make this ajax call only if the userName value is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to align image and text vertically within TD element? <td>
<img src="http://blog.garethjmsaunders.co.uk/wp-content/feed-icon-16x16.gif"/>
My feed
</td>
This is how it looks like:
(source: garethjmsaunders.co.uk)
My feed
The icon and the text is misalligned vertically. The icon is on the top of the table c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: ptr->hello(); /* VERSUS */ (*ptr).hello(); I was learning about C++ pointers and the -> operator seemed strange to me. Instead of
ptr->hello(); one could write (*ptr).hello(); because it also seems to work, so I thought the former is just a more convenient way.
Is that the case or is there any difference?
A: The ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Creating Win32 events from c# I'd like create a kernel(aka named events) from C#.
Do I have to interop services and wrap the native CreateEvent function or is there already a .NET class that does the job?
The function that I need to run should be something like this:
hEvent = CreateEvent ( NULL , false , false , ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I find all tables cells which only contain a non breaking space with jQuery? I need to only find the cells in the table which contain using jQuery.
<table>
<tr>
<td> </td>
<td>Something</td>
<td>something else</td>
<td> </td>
</tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find out what languages are available on a Symbian device using the C++ APIs? Does anyone know how to query at runtime a list of display languages that a Symbian (S60, specifically) device has installed? I've been able to query for the language set, but I haven't found anyway of getting what languages make u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Mail Encodes Subject Line When I try to send a HTML encoded email from PHP, if the subject line contains special chars like "Here's the information you requested", PHP encodes it to read "Here's the information you requested."
How do I fix this?
Here's what the code looks like using PHP mail():
$headers =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What causes this code not to work? I'm trying to understand why this does not work. (Basic example with no validation yet)
When I test it, firebug states Product.addPage is not found.
var Product = function ()
{
var Page = function ()
{
var IMAGE = '';
return {
image : function (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What text inside Flash is indexed by Google? Does the following mean that dynamic TextFields will NOT be indexed?
We currently do not attach content
from external resources that are
loaded by your Flash files. If your
Flash file loads an HTML file, an
XML file, another SWF file, etc., Google will separately... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unicode String in Hibernate Queries In SQL one can write a query that searches for a name of a person like this:
SELECT * FROM Person P WHERE P.Name LIKE N'%ike%'
This query would run with unicode characters (assuming that the Name column and database were setup to handle unicode support).
I have a similar query in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Entity Framework: Creating custom properties Consider an implementation of the Entity Framework in a DAL assembly. I am needing to add a custom read-only property to an entity.
Person Class, as defined in the DB, contains fields like:
PersonID
FirstName
LastName
In the above example, I'd like to make a property cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: INNO Setup: How to implement file update based on different versions of the application I have an application written in Delphi that has several versions that contain binaries and database (MDB) with catalog data.
During the product life cycle fixes/enhancements are either in database file or in some binary files.
V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: decrypting pdf protected by aes-256bit using the right password Is there any way to decrypting a pdf protected by an aes-256 bit key?
I have the correct password and I need a command-line tool (or library - perhaps in python :P ) for decrypting the file and then doing some operation over it.
The best thing could be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL: How do you handle conditional delete? I'm puzzled on how to write a stored procedure to handle a conditional delete.
I have a table with 4 columns (ID, A, B, C) and the data in the table looks like this:
ID | A | B | C
----------------------------------
1 | Debbie Jones | |
2 | Jo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change default nls_date_format for oracle jdbc client I have defined the global nls_date_format on Oracle 10.2 XE as follows:
alter system set nls_date_format='YYYY-MM-DD HH24:MI:SS' scope=spfile;
When connecting on Windows, the clients override it with session specific format, so I need to run this line at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to modify the paper dimensions in plain TeX? I mean the whole paper, not only the text zone in it.
I want the dvi output to look 1 centimetre x 10 metres in the viewer if
I set these dimensions in the tex file.
And I don't want to go through LaTeX for it.
A: Add \special{papersize=1cm,1000cm} in the first page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Access X11 display from empty environment (bash) Greetings!
I am implementing a backup solution, and I need to access the X11 display for getting a password from the user and displaying status information. I have tried setting $DISPLAY in the script to :0.0 (hardcoded), but xhost and misc complain that they cannot o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: which is the best practice when creating functions/methods in PHP, do you use arrays or individual variables? Is it considered 'bad practice' to create an function like so:
// $arr_member_fields['first_name'] = $_POST['first_name'];
// $arr_member_fields['last_name'] = $_POST['first_name'];
// $arr_member_fields['e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is a good way to paginate out of SQL 2000 using Start and Length parameters? I have been given the task of refactoring an existing stored procedure so that the results are paginated. The SQL server is SQL 2000 so I can't use the ROW_NUMBER method of pagination. The Stored proc is already fairly complex, build... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linux: launch window, capture screen I need to write a Red Hat Linux command line tool that launches a window and captures its appearance to disk as a JPEG.
Typically the target machines don't have graphics cards, but we can install any software components (e.g., X).
Question or two:
What libraries or tools might yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET sessions timing out using SQL Membership Provider I changed over from the in process membership provider to the sql membership provider to stop people losing their sessions when the website process recycled, but sessions still seem to time out.
Are there any other things (apart from the session timeout vari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I monitor active computers on my network in ASP.NET? How can I know which machines are alive on the same LAN as my PC using ASP.NET?
A: You can ping the computers on the network.
// addressToPing can be an IPaddress or host name.
// returns a boolean indicating successful ping
public static bool PingCompute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP best design practices Ok, have a bunch of questions that I have been thinking about the past few days. Currently I have a site that is just a bunch of PHP files with MySQL statements mixed in with PHP, HTML and CSS, basically a huge mess. I have been tasked with cleaning up the site and have made for myself, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Accessing the iPhone's USB port? Is there any way for developer to send data to the iPhone's USB port?
A: No. There is no way to do this with the SDK. If this is something you'd like to see, you should file an enhancement request.
A: Not currently. USB functionality is expanded in iPhone OS 3.0.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/447635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A sensible PasswordStrengthRegularExpression We're using the standard ASP.NET authentication provider (AspNetSqlMembershipProvider as it happens) and the defualt password strength requirement is a little excessive for our needs.
We require our users to enter a password that is alphanumeric at least (i.e, letters and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to build an ASP.NET TreeView From Scratch...? I am trying to build a nested/threaded comment system in ASP.NET. I don't know how the PHP guys do it. Its much harder than first imagined.
I am trying my damnedest get Hierarchical data to output to the user, but its not working.
I have a table with text, a item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Force CascadingDropDown to refresh without page reload How do I force a CascadingDropDown to refresh it's data without a page refresh? I have a button on the page which adds a variable to the Session which is then used to set the selected value of all the drop downs. However I can't seem to force the refresh of a Dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server - Syncing two database We have a warehouse database that contains a year of data up to now. I want to create report database that represents the last 3 months of data for reporting purposes. I want to be able to keep the two databases in sync. Right now, every 10 minutes I execute a package that will g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving Values From Excel Merged Columns I'm doing a hlookup against a value that spans multiple columns. My data is similar to this:
A B C D
---------------------------
1| Col1 Col2
2| x y z w
3|
4|
In rows 3 and 4 (A3, B3, C3, D3, etc.), I'd like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can I copy/clone a function in JavaScript? I'm using jQuery with the validators plugin. I would like to replace the "required" validator with one of my own. This is easy:
jQuery.validator.addMethod("required", function(value, element, param) {
return myRequired(value, element, param);
}, jQuery.validator.message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Using XML parser to create XHTML code on fly Developing server side code i finally got my eyes X-crossed trying to write - and then understand, of course - forms or other html code in which text strings (attributes) within double quotes must occur in tagged string (markup) opening and closing properly; but often jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: handling lookup tables with deleted records and databound controls I have a table Resource with a field Type. Type is a lookup into the table ResourceType.
So for instance ResourceType might have:
1: Books
2: Candy
3: Both
And Resource might have
1: Tom's Grocery, 2
2: Freds News, 3
It would display as: Tom's Grocer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the purpose of the HTTP header field “Content-Location”? Confused/inspired by a comment to my question Do search engines respect the HTTP header field “Content-Location”?, I’d like to know, what the exact purpose of the Content-Location header field in HTTP is and how it can be used.
A: Section 14.14 of RFC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: How in ASP.NET, do you deal with session and multiple tabs? I have written an application in ASP.net, that is designed to let the user add records to a database. The page is set up that when a user adds a record, the ID number of the newly added record is set in session, the page Response.Redirects to a "Thank you f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Posting contents of a file using HttpClient? I want to send the contents of a file as part of a http request using Apache HttpClient and I could not figure out how to pass on the file contents in the request body.
A: You didn't specify the format....
Most likely, you want to send a POST request, the contents will b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Customizing a TListBox to resemble an Outlook list Please down vote me if this is not appropriate, but I'm desperate to the point of pulling my hair out looking for this link. This is really a last resort.
Recently I browsed to a blog (at least I think it was) that had a very detailed description on how to modify a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Locking HttpRuntime.Cache for lazy loading We have a website running .NET 2.0 and have started using the ASP.Net HttpRuntime.Cache to store the results of frequent data lookups to cut down our database access.
Snippet:
lock (locker)
{
if (HttpRuntime.Cache[cacheKey] == null)
{
HttpRuntime.Cache.In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Editing C# while debugging I know I've dealt with this issue before, but the settings to override this always seem to be changing.
I have a C# project in Visual Studio 2008. While I'm debugging, VS won't let me edit my code. I don't want to Edit and Continue - I just want to make changes for my next build. Edit and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Introducing an IoC Container to Legacy Code I'm writing a new .NET library for internal use at my company that will use IoC through Dependency Injection. Naturally, this library will be much easier to use if we use an IoC Container to resolve instances.
However, the code that will be making calls into this library ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: GUI Libraries for D What is the current status of GUI programming with D Language? Are the language developers planning include GUI in the standard library?
The List (compiled from answers)
DWT (SWT binding)
GtkD (GTK binding)
wxD (wxWidgets binding)
QtD (Qt binding)
A: The most mature one is DWT, a port of SWT to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to tell if system state is idle asleep etc in vb6 I'm attempting to make my own instant messenger and want the user to go into idle/away mode if the computer hasn't been used in so long. Does anyone have a great idea on how to do this?
A: Here's how I implemented this functionality a few years ago. Function f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Publish a website in the Team Foundation Server Universe This seems like it should be obvious so maybe I am not understanding something. I have TFS setup. My web apps code is in source control. I can check-in/out and create builds but I don't quite understand what the recommended method for publishing the code to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding columns to the CreateUserWizard control using FBA I'm wanting to create a user account creation section for unregistered users on our internet site. I want to ask the same questions as the CreateUserWizard control but have a few changes. I want the question to come from a question lookup table in SQL. The use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Performance Testing I want to do some timing tests on a Java application. This is what I am currently doing:
long startTime = System.currentTimeMillis();
doSomething();
long finishTime = System.currentTimeMillis();
System.out.println("That took: " + (finishTime - startTime) + " ms");
Is there anything "wrong" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Greasemonkey: Change text in a webpage? I used the function:
document.getElementsByTagName('strong')
to get all the text in a page with that type of formatting. The HTML looks like:
<td align="center" valign="bottom"><H1><font size="+4"><strong>TEXT_HERE</strong></font> <br>
I would like to change "TEXT_HERE" to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to best handle the storage of historical data? I'm trying to determine how I should store historical transactional data.
Should I store it in a single table where the record just gets reinserted with a new timestamp each time?
Should I break out the historical data into a separate 'history' table and only keep c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: App launch sequencer Every morning when I get into work I launch about a dozen apps and whatnot (FF, TB, VSx2-3, Eclipse, SSH, SVN update x2-3). Needles to say this does a good job of warming up my HDD for the day. I rather suspect that it would run a lot faster if they were launched sequentially (not to mention tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Developing add-ons/extensions for MS Project I would like to write a quick UI addon for MS Project, but I don't know how to proceed. Ideally it should be fully integrated into Project. Just need to know how to get started. Thanks!
A: if using Visual Studio:
Check out Visual Studio Tools for Office (VSTO)!
http://ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Specifying the running directory for Scheduled Tasks using schtasks.exe I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the executable was located. On 2008 Environment.CurrentDirectory (C#) reports that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: GLWidget in Qt only updating on mousemove I am currently playing with Qt trying to set up a small particle system. Therein I've subclassed the GLWidget and hacked away at it. Everything was going well until I made some unknown change and now the widget only repaints when I move the mouse (it should be doing it all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I calculate the number of permutations in base 3 combinatorics? I've never been much for math and I'm hoping that someone can help me out with the following.
I have 5 boxes:
1 2 3 4 5
[ ] [ ] [ ] [ ] [ ]
The boxes can either be white, gray, or black (or think of it as 0, 1, 2)
How many possible sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Computer A can reach network web service, while computer B can't. Any ideas? You'll have to pardon me as I wasn't sure where to place this. This overlaps in the areas of C# Web Services and Network/Security management I suppose.
I have a server that runs various web applications. One of them is a web service. The ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Expanding & Collapsing lists The code expands and collapses a list in which list items can have sublists. Any ideas to refactor this code - especially the toggling part. Is it necessary to use closures here ?
$(function()
{
$('li:has(ul)')
.click(function(event){
if (this == event.target)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Settings values into TextBox - Ajaxified Aspx im using AjaxToolKit in aspx, so a cue is how to set values to textbox? i was using javascript to retrieve values from another aspx, so now i have (for example) a sum of prices in a local var (in codebehind) and i want to set that value in a TextBox with runat="server"
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I check the exit code in Test::More? According to Test::More documentation, it will exit with certain exit codes depending on the out come of your tests.
My question is, how do I check these exit codes?
ps. I am trying to build a harness myself. Is there a simple harness I can use?
ps2. Test::Harness did the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I unsubscribe all handlers from an event for a particular class in C#? Basic premise:
I have a Room which publishes an event when an Avatar "enters" to all Avatars within the Room. When an Avatar leaves the Room I want it to remove all subscriptions for that room.
How can I best unsubscribe the Avatar from a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How do you configure Msys's default size, color, and font? I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: jboss 4.2.2 GA under windows server 2008 - possibly firewall related? I've been running JBoss 4.2.2 GA for ages now under XP 64 and server 2003. Recently I decided to install server 2008 (x64) over my xp 64 installation and use it as my desktop as so many people love to tout...
Unfortunately now when I start JBoss ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug multiple copies of a program from one Visual Studio instance I have a pre-alpha GUI program that I'm dogfooding and want to run under the debugger (for when things go wrong ;), but I don't want to have to launch a new copy of Visual Studio for each instance of the application. Can this be done?
I don't expect ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Unit testing Controller.Initialize I am setting the thread culture to the culture sent via a cookie on the HttpRequest in the initialize method of a base controller I have created. I now want to create a unit test for this functionality.
In the test I have created a mock HttpContext and added the Cookie. Using this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delete or update a dataset in HDF5? I would like to programatically change the data associated with a dataset in an HDF5 file. I can't seem to find a way to either delete a dataset by name (allowing me to add it again with the modified data) or update a dataset by name. I'm using the C API for HDF5 1.6.x but pointer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hooking into windows file access Is it possible to hook into Windows loading or saving files (no matter how the file is opened like notepad word etc.) to modify the file on the fly?
For example to encode/decode it on the fly?
Would code need administrative permissions to launch?
A: You probably will have to write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a log4j equivalent for VBScript? I need to instrument a series of .wsf and .vbs files with debug statements; before I go off and roll my own, does something like log4j exist for WSF/VBScript?
A: Not comparable to log4j, but something you could use to begin with:
Reusable Logging in VBScript - LogToFile.vbs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Visual Studio 2005: static text control won't display with transparent background I'm using the Dialog editor in Visual Studio 2005 to create a Dialog box with a static text control. I'd like the background of the static text control to be transparent since I'm using an static image control underneath it and the gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cross-thread exception throwing I have an application that allows users to write their own code in a language of our own making that's somewhat like C++. We're getting problems, however, where sometimes our users will accidentally write an infinite loop into their script. Once the script gets into the infinite loop,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: urlsafe_b64encode always ends in '=' ?: I think this must be a stupid question, but why do the results of urlsafe_b64encode() always end with a '=' for me?
'=' isn't url safe?
from random import getrandbits
from base64 import urlsafe_b64encode
from hashlib import sha256
from time import sleep
def genKey():
keyLe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What permissions are needed to administer IIS without being 'administrator'? Is there a way to set up a user group that has permissions to administrate IIS services (use the IIS plugin in MMC) without being a 'Administrator' on the box?
A: Unfortunately, if it's IIS6, then you need to be local admin. If it's IIS7 t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are some of Drupal's shortcomings? Drupal is very much a "Do Everything" CMS. There are modules that allow you to add almost any functionality, which is great. However, it feels like a lot of the features (v5 and v6) seem scattered around and unintuitive for the user. As a developer, I'm left with the feeling o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: JavaScript To Get An Alert To Redirect When Closing The Browser Window I'm trying to get this JavaScript to work properly. My intention is, when a user is trying to close the site page to get an alert saying "stay on current page or close" If they hit 'ok' I want it to close, if they hit 'cancel' i want it to redire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing multiple foreign keys to point to a new table On MS SQL Server 2005, I have a table that I want to replace. Many other tables have a Foreign Key reference to this table. Is there a script that I can run to simply roll over all these references from the old table to the new table?
Or am I going to have to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is object serialization? What is meant by "object serialization"? Can you please explain it with some examples?
A: Serialization means persisting objects in java. If you want to save the state of the object and want to rebuild the state later (may be in another JVM) serialization can be used.
Note that the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "421"
} |
Q: Why does my c program not free memory as it should? I have made a program in c and wanted to see, how much memory it uses and noticed, that the memory usage grows while normally using it (at launch time it uses about 250k and now it's at 1.5mb). afaik, I freed all the unused memory and after some time hours, the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System.Runtime.InteropServices.COMException (0x82DA0002): Exception from HRESULT: 0x82DA0002 Does anyone know what this means?
System.Runtime.InteropServices.COMException (0x82DA0002): Exception
from HRESULT: 0x82DA0002 at
System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate
method, Object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: F6 for compiling? I have become accustomed to using F6 to compile the current document. A third-party install appears to have turned this function off. (F6 no longer does anything.)
Can anyone tell me how to get it back?
I'm using VS2008
A: VMware's integrated debugging tool did this to me too. You can change thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Game programming on Objective-C and linux I'd like to give Objective-C a try in game programming. The problem is I'd need some tools and libraries for this.
First thing that comes into mind I need is the GUI and graphics library.
What choices do I have?
A: I believe you're asking for GNUStep.
A: SDL is a C library... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do i write a Regular Expression to match text containing XYZ but not ABC? I want to write a regex that matches if a string contains XYZ but doesn't contain ABC somewhere before it. So "blah XYZ blah" should match, but "blah ABC blah XYZ blah " should not.
Any ideas? In particular I'm writing the regex in c#, in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server 2005: Determine datatype of variable Is it possible to determine the type of a local variable at runtime in TSQL?
For example, say I wanted to do something along these lines:
IF ( @value IS INTEGER )
Or
IF ( TYPEOF(@value) = <whatever> )
Does anyone know of any way to accomplish this?
EDIT: This is not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Asp.Net, upload picture with VS2008 local web server Users of my web site will be able to upload a picture. This picture will land in /images/folder/picture.jpg. The question I have is: When running under VS2008, a form will insert a full row in a database column (sql server)and the picture will be uploaded to the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is type checking ever OK? Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means?
For example, in PHP, is the following OK?
if($class instanceof AnInterface) {
// Do some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way for ASP.NET MVC routing for not-so common scenarios? UPDATE - 1/21/09:
The only way I've been able to get this working moderately well is to create routes that have additional path info... in other words instead of http://company.com/myDepartment/myTeam/action/id, the routes need to be built to handle path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I set the owner of a FilterGraph renderer? I have a CView which I would like to host a DirectShow renderer.
I did not write the original code, I am simply cleaning up and moving the code to VS2005. This necessitated an upgrade of certain third party tools and so I'm trying to change the code a bit without ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ to SQL Primary Key requirement for inserts fails I'm working on better understanding Linq-to-SQL before using on a real project, so I'm playing with it on a little side project. I've a table that I'm trying to update via DataContext.SubmitChanges() and it's failing due to primary key constraints.
I have no c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.Data.OracleClient requires Oracle client software version 8.1.7 I have a web site that I developed on Vista using Vb.net9. It makes a connection to Oracle. for the connection I use System.Data.OracleClient. It works fine on my machine, and our test server, but it does not work on the production server. We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: File MD5 checksum In this question is mentioned the wcrypt2.
What I need is simply calculate the MD5 of a file. It would be perfect if I could calculate it without having to save it because it is a downloaded file in stream format.
I would like to have the most straightforward way to do that.
Thanks!
A: Based on @d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Modal Window Problem I am using modal window for my VB.NET program and i am trying to open this child modal window from another window, afte i close the child modal window i am trying to refresh the parent but i am getting retry/cancel popup, i tried a lot of things to avoid but i can't get rid of this popup :-( is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ORA-22813 error with SQL complex query I have a big SELECT statement which has many nested selects in it. When I run it, it gives me an ORA-22813 error:
Ora-22813:- The Collection value from one of the inner sub queries has exceeded the system limits and hence this error.
I have given below some of the nested sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/447995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does C# List.Find seemingly return NullReferenceException? First off, according to http://msdn.microsoft.com/en-us/library/x0b5b5bc.aspx, the List.Find method is only listed as throwing ArgumentNullException. However I have the following test code which, when using Find with an anonymous delegate, throws a Null... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's an easy way to read random line from a file? What's an easy way to read random line from a file in a shell script?
A: Another alternative:
head -$((${RANDOM} % `wc -l < file` + 1)) file | tail -1
A: sort --random-sort $FILE | head -n 1
(I like the shuf approach above even better though - I didn't even kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "268"
} |
Q: What does "No file names given" mean as a make error? I'm trying to build a makefile and after about 5 seconds, I get this error: "No files names given". what does it mean and how do I fix it?
[exec] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
[exec] Error E2266: No file names given
[exec] ** error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Showing and hiding a DIV partially I need to hide a DIV partially, not totally. When page loads, I want it to show the first, let's say, 100 pixels sitting on the uppermost part of the div. When the user clicks a certain button, the div will open (it could be a sliding effect like jQuery's show()). When the user cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Internet Explorer - Space Between Floated Divs I've been running into a presentation issue with Internet Explorer. The following simple block of code renders as I would expect it to in Safari, FireFox, Chrome, and Opera. However it results in a noticeable space between the left and right floated DIV elements in bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/448017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.