text stringlengths 8 267k | meta dict |
|---|---|
Q: Monitoring a printer I've written a DLL that monitors our netowork printer. The printer is connected to the server via USB cable. When I print something directly from the server, it displays information about pages sent/printed properly, but when I print something from one of the client computers it only displays it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: customer-configurable asp.net web site security for fine-grained control of page and button access I have an ASP.NET 2.0 [no ajax...yet] web site that will be deployed in compiled form on multiple customer sites. Typically the site will be intranet only. Some customers trust all of their people and don't care about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the deal with all the different Perl 6 equality operators? (==, ===, eq, eqv, ~~, =:=, ...) Perl 6 seems to have an explosion of equality operators. What is =:=? What's the difference between leg and cmp? Or eqv and ===?
Does anyone have a good summary?
A: =:= tests if two containers (variables or items of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: ASP/NET MVC: Test Controllers w/Sessions? Mocking? I read some of the answers on here re: testing views and controllers, and mocking, but I still can't figure out how to test an ASP.NET MVC controller that reads and sets Session values (or any other context based variables.)
How do I provide a (Session) context for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Specific help with Xcode Project Template that is not doing substitution in file contents We are trying to make a project template, but the documentation on this is spotty or non-existent.
Doing some reverse-engineering on some template files, we have come up with the following. However, it doen't actually work!
Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: With a STL map/set/multiset/multimap, How to find the first value greater than or equal to the search key? Suppose I have a set of values, stored in a std::set:
{1, 2, 6, 8}
and I have a search key, say, 3. I want to put 3 into a function and get the first value greater than or equal to 3, in this case I would want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Determine SQL Server Database Size SQL Server 2005/2008 Express edition has the limitation of 4 GB per database. As far as I known the database engine considers data only, thus excluding log files, unused space, and index size.
Getting the length of the MDF file should not give the correct database size in terms of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: auto_ptr or shared_ptr equivalent in managed C++/CLI classes In C++/CLI , you can use native types in a managed class by it is not allowed to hold a member of a native class in a managed class : you need to use pointers in that case.
Here is an example :
class NativeClass
{
....
};
public ref class ManagedClass
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Build a simple HTTP server in C I need to build a simple HTTP server in C. Any guidance? Links? Samples?
A: I suggest you take a look at tiny httpd. If you want to write it from scratch, then you'll want to thoroughly read RFC 2616. Use BSD sockets to access the network at a really low level.
A: I have written m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: PHP HTML generation - using string concatention A question about different methods of outputting html from PHP; what are the performance differences between these:
Method 1 - variable concatenation
$html = '';
$html .= '<ul>';
for ($k = 1; $k < = 1000; $k++){
$html .= '<li> This is list item #'.$k.'</li>';
}
$ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flex : Filter a datagrid using a combobox value that is contained in a datafield I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield.
For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can elements be added to a wildcard generic collection? Why do I get compiler errors with this Java code?
1 public List<? extends Foo> getFoos()
2 {
3 List<? extends Foo> foos = new ArrayList<? extends Foo>();
4 foos.add(new SubFoo());
5 return foos;
6 }
Where 'SubFoo' is a concrete class that implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to install PHP/CURL? I tried to follow PHP.net curl site and even this link: http://curl.phptrack.com/forum/viewtopic.php?t=52
and try to install the CURL in my window laptop. It doesn't work.. CURL is not installed.
I wonder do I need to run it on windows server...
Anyone has good sites guiding me how to ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Refactoring an application If you had to fix and stabilize a MVC application, where would you start: the Model, Controller or View? The problems are spread equally throughout the application, with bad programming practices that make it hard to add functionality.
The application is written in PHP if it makes a diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ SQLBindParameter Here are the declarations of the variables:
string strFirstName;
string strLastName;
string strAddress;
string strCity;
string strState;
double dblSalary;
string strGender;
int intAge;
...Do some "cin" statements to get data...
retcode = SQLPrepare(StatementHandle, (SQLCHAR *)"INSERT INTO EMPLO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does IE 7 have any memory limitations when recieving a dynamically generated PDF? If so, does anyone have a workaround? Our system dynamically generates a large report by converting many HTML pages into a single PDF. The resulting PDF is sent back (via the HTTP request) to the calling browser. When the report is su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a shared workspace with ASP.NET and Ajax Here's a hypothetical situation I've been wondering about lately. Suppose I have an interactive page created in ASP.NET and Ajax that I want multiple users to be able to manipulate at the same time. What would be the best way to maintain this page's state? Especia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I automate HTML-to-PDF conversions? I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.
A: NOTE: This answer is from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: PNG Creation in PHP (is it different than gif and jpg?) I have a image upload form that should take image types (PNG, JPEG, GIF), resize it and then save it to a path.
For some reason I can't get the PNG file types to work, it works fine with JPEG/GIF and the file is copied so it looks like it's something to do wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net: synchronized development environments New to visual studio and programing in general.
I am starting to work on a asp.net project. At home I have a computer running Windows 2008 Server with SQL 2008 and Visual 2008 running.
I want to install the same thing on my laptop win2008/sql2008/vs2008 so I can take it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When you are abstracting your database records and datasets into objects, what does your object model look like? I'm asking all of you who aren't using a library for this, but are constructing your own objects for managing data flowing to and from your database tables. Do I have a recordset object? one object per ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit testing error conditions - EINTR In short, how do you unit test an error condition such as EINTR on a system call.
One particular example I'm working on, which could be a case all by itself, is whether it's necessary to call fclose again when it returns EOF with (errno==EINTR). The behavior depends on the imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the difference between char, nchar, varchar, and nvarchar in SQL Server? What is meant by nvarchar?
What is the difference between char, nchar, varchar, and nvarchar in SQL Server?
A: Just to clear up... or sum up...
*
*nchar and nvarchar can store Unicode characters.
*char and varchar cannot store Unic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "703"
} |
Q: How can I enumerate all classes in a package and add them to a List? I need to enumerate all classes in a package and add them to a List. The non-dynamic version for a single class goes like this:
List allClasses = new ArrayList();
allClasses.add(String.class);
How can I do this dynamically to add all classes in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Is there a jQuery equivalent of MooTools' Element() constructor? I am going to be starting a javascript reporting engine for my website, and have started some prototyping using MooTools. I really like being able to do things like this:
function showLeagues(leagues) {
var leagueList = $("leagues");
leagueLis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get the list of hyperlinks in a PDF file I have a pdf file.I need to find all the hyperlinks available in that file and then make change on those links. I am using C# and I'd rather not to use a third party tool!
A: You can use iTextSharp. Its an open-source API to manipulate pdf written in c#.
The basic algorithm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any command line tools to generate windows icons? I am working on a project that requires a number of icons generated from a set of source images. I have a script that generates all the required images with judicious use of ImageMagick, although I have not found a suitable tool to package the images as ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "You can't forward declare classes that overload operator&"? In the Google C++ Style Guide, there's a section on Operator Overloading that has a curious statement:
Overloading also has surprising
ramifications. For instance, you can't
forward declare classes that overload
operator&.
This seems incorrect, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What's the best way to pass a "row of data" from one C# console app to another C# console app? I have a C# console app "App1" that reads a row of data from a table in a SQL Server 2005 DB. I want App1 to pass all the data in this row to App2, another C# console app. What is the best way to do this?
My first (naive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to have content from an IFRAME overflow onto the parent frame? I have a UI widget that needs to be put in an IFRAME both for performance reasons and so we can syndicate it out to affiliate sites easily. The UI for the widget includes tool-tips that display over the top of other page content. See scree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: How can I turn a DataRow into an XML string using C#? I have a DataRow with columns col1 and col2. Each column has a value: val1 and val2 respectively. How can I turn this into an xml string using C#?
For the DataRow mentioned above I'd like the following string:
<col1>val1</col1><col2>val2</col2>
A:
Put the D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting Format for Query Defined Field I have the following query in iSeries SQL which I output to a file.
SELECT SSLOTMAK, SSLOTMDL, SSLOTYER, sum(SSCOUNT)
FROM prqhdrss
GROUP BY SSLOTMAK, SSLOTMDL, SSLotyer
HAVING sum(SSCOUNT) > 4
ORDER BY SSLOTMAK, SS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Script to edit page content on the fly I'm writing an article about editing pages in order to hand pick what you really want to print. There are many tools (like "Print What you like") but I also found this script. Anyone knows anything about it? I haven't found any kind of documentation or references.
javascri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are there any tools or techniques to help determine the exact cause of a nonsecure page element error? I run into this quite often where a new page is supposedly "tested" and ready to go. But as soon as I change the page from http to https (secure) mode I get the "This page contains both secure and nonsecure items."... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit Testing, Deadlocks, and Race Conditions Any suggestions on how to write repeatable unit tests for code that may be susceptible to deadlocks and race conditions?
Right now I'm leaning towards skipping unit tests and focusing on stress tests. The problem with that is you can run a stress test 5 times and see five... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to get records after a certain time using SQL datetime field If I have a datetime field, how do I get just records created later than a certain time, ignoring the date altogether?
It's a logging table, it tells when people are connecting and doing something in our application. I want to find out how often peopl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I ignore a GAC reference from Cassini? I have an assembly in the GAC which gets loaded when I'm debugging a web app. However, I've changed that assembly in the web app that I'm debugging but VS2008/Cassini is picking up the one in the GAC.
How do I make VS2008/Cassini use the one that I'm debugging?
A: You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to create user help documentation for an Excel VBA solution? VBA solutions can vary widely in size.
I would like to add user help documentation to all solutions but the level of effort to create and deploy the help needs to match the size of the solution.
A: You should check the VBA version o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multi-Threaded Deep Copies What's the best way to perform a deep copy in the constructor of an object that is part of multi-threaded C++ code?
A: Depends on your data structures.
I'd guess the problem you're facing (although you don't say so) is potential locking inversion. If you're deep copying, then you will pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: (CSS?) Eliminating browser's 'selected' lines around a hyperlinked image? The attached screenshot is from OS X/Firefox 3. Note that the center tab (an image) has a dotted line around it, apparently because it was the most-recently selected tab. Is there a way I can eliminate this dotted line in CSS or JavaScript? (H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Persisting configuration items in .net I have a set of configuration items I need to persist to a "human readable" file. These items are in a hierarchy:
Device 1
Name
Channel 1
Name
Size
...
Channel N
Name
...
Device M
Name
Channel 1
Each of these item could be stored in a Dictio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I find an application's base url? I'd like to find the base url of my application, so I can automatically reference other files in my application tree...
So given a file config.php in the base of my application, if a file in a subdirectory includes it, knows what to prefix a url with.
application/config.php... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Irregular shaped Windows Form (C#) What is the easiest way to do this? Is it possible with managed code?
A: @Geoff shows the right way in winforms.
But If you are planning to use WPF instead of Winforms then WPF(.NET3.0+) gives very flexible ways to create anyshape custom windows. Check out this article also http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the best way to build a common utilities library? I am wondering what is the best way to construct a common utilities library that can be used in different projects. I am using .Net and C#.
Should I create a separate project for each utility such as Logging, Authentication, Excel etc. and release them separa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Make DOM element effectively read-only I'm writing a .NET forms control to edit HTML using MSHTML. I am creating some custom elements and want to make them effectively read-only. I thought I could go about this by focusing on the entire element any time focus entered anywhere in that element but the HtmlElement.Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Circular References in Java Given an aggregation of class instances which refer to each other in a complex, circular, fashion: is it possible that the garbage collector may not be able to free these objects?
I vaguely recall this being an issue in the JVM in the past, but I thought this was resolved years ago. yet,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Proper way to deal with variations in JSON serialization I have a web service that uses Python's SimpleJSON to serialize JSON, and a javascript/ client that uses Google's Visualization API. When I try to read in the JSON response using Google Data Table's Query method, I am getting a "invalid label" error.
I notice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Converting OOo macros to Excel macros I have an OpenDocument spreadsheet with macros in StarBasic/OOoBasic that I want to convert into an Excel spreadsheet, with the StarBasic macros translated to VBA. While OpenOffice.org claims to have the ability to translate VBA macros to StarBasic and back, my attempts to have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C#: Non-Winforms way to exit the application? I know about Application.Exit() but what if I'm not in a windows forms application but in a simple class library, how do I signal for the application to exit?
A: Environment.Exit() -- but why would you ever want to do this from a method in a class library?
A: P/Invoke ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Grabbing rows from multiple tables as single result? I have 2 tables. Table1 has fields A, B, C, D and Table2 has fields A, B. Field A and B of both tables have same record type. I would like to grab the records from both tables of fields A and B as single result.
Is there any Query or Function in PHP+MySql?
Thanks.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Big integers in C# Currently I am borrowing java.math.BigInteger from the J# libraries as described here. Having never used a library for working with large integers before, this seems slow, on the order of 10 times slower, even for ulong length numbers. Does anyone have any better (preferably free) libraries, or is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Need Help With HttpWebRequest object I'm trying to build a proxy module for .NET, but I'm having trouble copying the Headers from the current request to the new request. I am setting the headers of the new request, because I want the proxy to support SOAP requests. Here is a portion of my code. I can post everyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Autocomplete Dropdown - too much data, timing out So, I have an autocomplete dropdown with a list of townships. Initially I just had the 20 or so that we had in the database... but recently, we have noticed that some of our data lies in other counties... even other states. So, the answer to that was buy one of those... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I modify a CSS file programmatically? I have a legacy application that I needed to implement a configuration page for to change text colors, fonts, etc.
This applications output is also replicated with a PHP web application, where the fonts, colors, etc. are configured in a style sheet.
I've not worked with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good Web Crawler tool I need to index a whole lot of webpages, what good webcrawler utilities are there? I'm preferably after something that .NET can talk to, but that's not a showstopper.
What I really need is something that I can give a site url to & it will follow every link and store the content for in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to check out all VB6 Project files from VSS? I have a VB6 project in Visual Source Safe 6.0. When I open the project I want to Check Out (Get) all the files in the project so that I can edit them.
I have the VSS Options (within VB6) set to act on the Project recursively, but when I check out the project.vbp it o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable the postback on an I have an ASP.NET linkbutton control on my form. I would like to use it for javascript on the client side and prevent it from posting back to the server. (I'd like to use the linkbutton control so I can skin it and disable it in some cases, so a straight up tag is not preferred).
How do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Re-center Modal Popup with Javascript I have a modal popup that initially shows some content but expands a div if a checkbox is selected. The modal expands correctly but doesn't recenter unless you scroll up or down. Is there a javascript event I can tack on to my javascript function to recenter the entire modal?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I break on an unhandled exception in ASP.NET? When debugging an application in Visual Studio, there are 2 options for breaking on exceptions. Break as soon as an exception is thrown, and breaking only when an exception isn't caught. This works fine when developing desktop applications. However, when developi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Nano hacks: most useful tiny programs you've coded or come across It's the first great virtue of programmers. All of us have, at one time or another automated a task with a bit of throw-away code. Sometimes it takes a couple seconds tapping out a one-liner, sometimes we spend an exorbitant amount of time automating ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: NUnit assembly not found I've used NUnit before, but not in a while, and never on this machine. I unzipped version 2.4.8 under Program Files, and I keep getting this error when trying to load my tests.
Could not load file or assembly 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Cannot open user default database. Login failed. SQL 2005 I have taken a copy of a database home with me so I can do some testing. However when I try to run a stored procedure I get Cannot open user default database. Login failed..
I have checked and checked and checked I can open tables in the databases login to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to give a name to an Eclipse Update Site? I'm generating an Eclipse update site and I'm trying to give it a label so that when it appears in a user's sites list, it would appear as a name (e.g., "Ganymede project") rather than as a URL.
I haven't been able to find any parameter for it in the PDE or site.xml
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best Practices: What's the Best Way for Constructing Headers and Footers? What's the best way for constructing headers, and footers? Should you call it all from the controller, or include it from the view file? I'm using CodeIgniter, and I'm wanting to know what's the best practice for this. Loading all the include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Installation problem sql server 2008 I should probably take this for a forum but figured someone here might know the answer. I'm trying to install sql server 2008 on a home vista machine but it keeps telling 'Restart computer failed' everytime it does a check to make sure pre-reqs are met. I've restarted my comput... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: In ClearCase, how can I view old version of a file in a static view, from the command line? In a static view, how can I view an old version of a file?
Given an empty file (called empty in this example) I can subvert diff to show me the old version:
% cleartool diff -ser empty File@@/main/28
This feels like a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: java 1.5 to 1.4 What is the best way to convert existing jar (without source) written in java 1.5 into java 1.4.x?
A: retrotranslator is another option similar to retroweaver
A: Take a look at Retroweaver. It will convert the classes or jar so that it can be run using a 1.4 JRE. Depending on the 1.5 features used,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ShowDialog() from keyboard hook event in C# I want to call ShowDialog() when a keyboard hook event is triggered, but I'm having some difficulties:
*
*ShowDialog() blocks, so I can't call it from the hook triggered event, because it will block the OS.
*I can start a new thread and call ShowDialog() from there, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I send cookies to the client via a socket with C#? Ok, if I have this right, my code can get cookies at a specific url, but then once I get the cookie, into the container, how can I send it to the client via socket? Like the code directly below does here for regular http-page requests.
byte[] buffer = new byt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I run a .jar executable java file from outside NetBeans IDE? How do I run a .jar executable java file from outside NetBeans IDE? (Windows Vista). My project has a .jar file created by Netbeans. We'd like to run it. Either: how do we run the file or how do we create a 'proper' executable file in NetBeans 6.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it worthwhile to use a bit vector/array rather than a simple array of bools? When I want an array of flags it has typically pained me to use an entire byte (or word) to store each one, as would be the result if I made an array of bools or some other numeric type that could be set to 0 or 1. But now I wonder wheth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I run all JUnit unit tests except those ending in "IntegrationTest" in my IntelliJ IDEA project using the integrated test runner? I basically want to run all JUnit unit tests in my IntelliJ IDEA project (excluding JUnit integration tests), using the static suite() method of JUnit. Why use the static suite() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Finding the index of an item in a list Given a list ["foo", "bar", "baz"] and an item in the list "bar", how do I get its index 1?
A: It just uses the python function array.index() and with a simple Try / Except it returns the position of the record if it is found in the list and return -1 if it is not found in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4252"
} |
Q: Do you use "kibibyte" as a unit of measurement in your programs? For decades, in the field of computing (except disk manufacturers), a KB (kilobyte) was understood to mean 1024 bytes. In the past few years, there has been a movement to use KiB ("kibibyte") to mean 1024 bytes, and change the meaning of kilobyte to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How can I get MSBUILD to evaluate and print the full path when given a relative path? How can I get MSBuild to evaluate and print in a <Message /> task an absolute path given a relative path?
Property Group
<Source_Dir>..\..\..\Public\Server\</Source_Dir>
<Program_Dir>c:\Program Files (x86)\Program\</Program_Dir>
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Offline access to MoinMoin wiki using Google Gears How to add offline access functionality to MoinMoin wiki?
As a minimum, I would love to have browsing access to all pages on a server-based wiki (while being offline). Search and other things, which do not modify the content, are secondary. An added bonus would be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Select top 10 records for each category I want to return top 10 records from each section in one query. Can anyone help with how to do it? Section is one of the columns in the table.
Database is SQL Server 2005. I want to return the top 10 by date entered. Sections are business, local, and feature. For one partic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "273"
} |
Q: How to BSWAP the lower 32-bit of 64-bit register? I've been looking for the answer for how to use BSWAP for lower 32-bit sub-register of 64-bit register. For example, 0x0123456789abcdef is inside RAX register, and I want to change it to 0x01234567efcdab89 with a single instruction (because of performance).
So I trie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Prefuse: Reloading of XML files I am a new to the prefuse visualization toolkit and have a couple of general questions. For my purpose, I would like to perform an initial visualization using prefuse (graphview / graphml). Once rendered, upon a user click of a node, I would like to completely reload a new xml file ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CodeIgniter Learning Tutorials for Beginners I am trying to learn CodeIgniter to use for a shopping site, but I am not having luck with the official doc. Does anyone know of anything that will help?
A: We've used Code Igniter on a couple of projects and found the videos on their site to be helpful for an intro:
htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Do you use NULL or 0 (zero) for pointers in C++? In the early days of C++ when it was bolted on top of C, you could not use NULL as it was defined as (void*)0. You could not assign NULL to any pointer other than void*, which made it kind of useless. Back in those days, it was accepted that you used 0 (zero) for null... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "205"
} |
Q: Visual C++ Redistributables without using VCRedist_x86.exe I'm developing in an environment that is severely constrained, but the developers also have tight control over.
VCRedist_x86.exe - A 4Mb redistributable - is no fun (four hours to transfer). I'd really prefer to just redistribute MFC90.dll, msvcm90.dll, m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What is the most important feature in Mono 2.0? Mono 2.0 was just officially released. What single feature do you think is the most important?
A: C# 3.0/LINQ
A: Complete implementation of System.Windows.Forms
A: Windows.Forms is definitely way up there... that might be the feature I'm most excited about. And LIN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/176998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: array of tserversocket OK I have an array of tserversocket and am using the tag property to keep track of its index. When an event is fired off such as _clientconnect i am using Index := (Sender as TServerSocket).Tag; but i get an error that highlights that line and tells me its an invalid typecast. What am I doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Convert SQLVARCHAR to string I need to convert from a SQLVARCHAR to a string data type
Variable definitions as follows:
string strFirstName;
SQLVARCHAR rtnFirstName[50];
Want to be able to accomplish the following:
if (strFirstName.empty()) strFirstName = rtnFirstName;
Gives an error that the binary '=': no o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# boxing question First, two examples:
// This works
int foo = 43;
long lFoo = foo;
// This doesn't
object foo = (int)43;
long? nullFoo = foo as long?; // returns null
long lFoo = (long)foo; // throws InvalidCastException
if (foo.GetType() == typeof(int))
Console.WriteLine("But foo is an int..."); // This gets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php cURL iis 6.0 windows server 2003 I am having an issue setting up cURL with IIS 6.0, Windows Server 2003, PHP 5.2.6
I have installed to C:\PHP
set PHPRC = C:\PHP\php.ini
copied ssleay32.dll and libeay32.dll to C:\PHP
in php.ini, uncommented the line
extension=php_curl.dll
extension_dir="C:\PHP\ext"
c:\php\ext ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any better geolocation databases / technologies / services or has anyone done any work with improving the accuracy of existing systems? I am working on integrating geolocation services into a website and the best source of data I've found so far is MaxMind's GeoIP API with GeoLite City data. Even this dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a practical limit to the size of bit masks? There's a common way to store multiple values in one variable, by using a bitmask. For example, if a user has read, write and execute privileges on an item, that can be converted to a single number by saying read = 4 (2^2), write = 2 (2^1), execute = 1 (2^0) and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: TCustomDataSet C++ Builder I'm looking for an example of a TCustomDataSet implementation in C++ beyond the TTextDataset example that ships as an example project within C++ Builder.
The TTextDataset is hard to learn from because the code is not documented very well and it only shows a single field example.
I've creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I change the index page for rails? I know that to change the index page for rails I need to do three things: delete the index.html, do something with routes.rb, and probably make an action that the route will point to. It's the details that I am a little fuzzy on :-)
A: Follow Frew's steps and, as step 4, p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to tie a dropdown list to a gridview in Sharepoint 2007? This should be a really really simple thing, but for some reason it is just eluding me.
I want a Sharepoint page which will have a drop down list that is tied to a database lookup table.
When an item is selected and they click a GO button, I want it to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby and duck typing: design by contract impossible? Method signature in Java:
public List<String> getFilesIn(List<File> directories)
similar one in ruby
def get_files_in(directories)
In the case of Java, the type system gives me information about what the method expects and delivers. In Ruby's case, I have no cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Object database for Ruby on Rails Is there drop-in replacement for ActiveRecord that uses some sort of Object Store?
I am thinking something like Erlang's MNesia would be ideal.
Update
I've been investigating CouchDB and I think this is the option I am going to go with. It's a toss-up between using CouchRest and Ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: UTF-8 to ASCII using ICU Library I have a std::string with UTF-8 characters in it.
I want to convert the string to its closest equivalent with ASCII characters.
For example:
Łódź => Lodz
Assunção => Assuncao
Schloß => Schloss
Unfortunatly ICU library is realy unintuitive and I haven't found good documentation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Algorithm to determine if array contains n...n+m? I saw this question on Reddit, and there were no positive solutions presented, and I thought it would be a perfect question to ask here. This was in a thread about interview questions:
Write a method that takes an int array of size m, and returns (True/False) if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Can someone give a good tutorial on WWF? In particular, I am interested in:
1) Getting up a free environment setup to do workflows.
2) How to use existing workflow items/states and what is involved in that.
Thanks!
A: The other answers are good, but I think it's important for people to understand why use workflow a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I speed up my Perl program? This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together:
*
*Firstly: Given an established Perl project, what are some decent ways to speed it up beyond just plain in-code optimization?
*Secondly: When writing a progr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Overriding DataGridViewTextBoxCell Paint Method I am trying to override the DataGridViewTextBoxCell's paint method in a derived class so that I can indent the foreground text by some variable amount of pixels. I would like it if the width of the column adjusts so that its total width is the length of my cells text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Storing Crystal Reports in XML files? I was talking to somebody a recently who mentioned it was possible to store reports created using Crystal Reports as XML files.
Upon Googling this, I can't find anything suggesting that this is the case (using data stored in XML in a report, yes, but actually storing the report,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.