Newest Questions

75 votes
1 answer
3k views

How to get Indexing Service and MODI to produce Full-text over OCR?

I have configured Indexing Service to index my files, which also include scanned images saved as hi-res TIFF files. I also installed MS Office 2003+ and configured MS Office Document Imaging (MODI) ...
Ishmaeel's user avatar
  • 14.4k
314 votes
14 answers
241k views

Create a directly-executable cross-platform GUI app using Python

Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux. The problem ...
Teifion's user avatar
  • 111k
25 votes
1 answer
2k views

Getting started with a custom JXTA PeerGroup

I have been working with JXTA 2.3 for the last year or so for a peer-to-peer computing platform I am developing. I am migrating to JXTA 2.5 and in the process I am trying to clean up a lot of my use ...
Stephen Pellicer's user avatar
174 votes
11 answers
153k views

How can I detect if a browser is blocking a popup?

Occasionally, I've come across a webpage that tries to pop open a new window (for user input, or something important), but the popup blocker prevents this from happening. What methods can the calling ...
Nathan Bedford's user avatar
17 votes
10 answers
2k views

How to Test Web Code?

Does anyone have some good hints for writing test code for database-backend development where there is a heavy dependency on state? Specifically, I want to write tests for code that retrieve records ...
kaybenleroll's user avatar
  • 17.1k
29 votes
11 answers
10k views

MySQL/Apache Error in PHP MySQL query

I am getting the following error: Access denied for user 'apache'@'localhost' (using password: NO) When using the following code: <?php include("../includes/connect.php"); $query = "SELECT * ...
Mesidin's user avatar
  • 507
36 votes
3 answers
6k views

How to render a control to look like ComboBox with Visual Styles enabled?

I have a control that is modelled on a ComboBox. I want to render the control so that the control border looks like that of a standard Windows ComboBox. Specifically, I have followed the MSDN ...
Peter Hession's user avatar
68 votes
15 answers
60k views

Choosing a static code analysis tool [closed]

I'm working on a project where I'm coding in C in a UNIX environment. I've been using the lint tool to check my source code. Lint has been around a long time (since 1979), can anyone suggest a more ...
David's user avatar
  • 14.2k
26 votes
3 answers
1k views

Possible to "spin off" several GUI threads? (Not halting the system at Application.Run)

My Goal I would like to have a main processing thread (non GUI), and be able to spin off GUIs in their own background threads as needed, and having my main non GUI thread keep working. Put another ...
andynil's user avatar
  • 29.2k
95 votes
5 answers
63k views

Reading a C/C++ data structure in C# from a byte array

What would be the best way to fill a C# struct from a byte[] array where the data was from a C/C++ struct? The C struct would look something like this (my C is very rusty): typedef OldStuff { ...
Chris Miller's user avatar
  • 4,909
478 votes
14 answers
1.1m views

How do you format an unsigned long long int using printf?

#include <stdio.h> int main() { unsigned long long int num = 285212672; //FYI: fits in 29 bits int normalInt = 5; printf("My number is %d bytes wide and its value is %ul. A normal ...
andrewrk's user avatar
  • 31.3k
42 votes
6 answers
7k views

Paging SQL Server 2005 Results

How do I page results in SQL Server 2005? I tried it in SQL Server 2000, but there was no reliable way to do this. I'm now wondering if SQL Server 2005 has any built in method? What I mean by paging ...
GateKiller's user avatar
  • 76.1k
19 votes
5 answers
9k views

How to curl or wget a web page?

I would like to make a nightly cron job that fetches my stackoverflow page and diffs it from the previous day's page, so I can see a change summary of my questions, answers, ranking, etc. ...
Mark Harrison's user avatar
13 votes
5 answers
5k views

SQL Server 2005 For XML Explicit - Need help formatting

I have a table with a structure like the following: LocationID AccountNumber long-guid-here 12345 long-guid-here 54321 To pass into another stored procedure, I need the XML to look like this: <root&...
Chris Benard's user avatar
  • 3,215
11 votes
5 answers
3k views

SQL Server 2000: Is there a way to tell when a record was last modified?

The table doesn't have a last updated field and I need to know when existing data was updated. So adding a last updated field won't help (as far as I know).
Patrick McElhaney's user avatar

15 30 50 per page