All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

MFC CSocket in a static library

I am using the MFC class CSocket. Nothing complicated - open a connection to a server and send a short message. The code works fine when I link with MFC in a DLL. However, the call to CSocket::...
2
votes
4answers
43k views

SharePoint column default values - add 10 working days

In SharePoint MOSS 2007, I have created a custom content type that I will be applying to a document library. One of the required fields is "Incoming Date" and another is the "Due Date". The Due ...
2
votes
2answers
507 views

MySQL - Skip Duplicate WordPress Entries

I'm writing a script to display the 10 most recently "active" WordPress blog posts (i.e. those with the most recent comments). Problem is, the list has a lot of duplicates. I'd like to weed out the ...
8
votes
2answers
4k views

SQL Server Performance: derived table vs. common table expression (CTE)

Is there any performance gain using a CTE over a derived table?
0
votes
3answers
4k views

C#, Lotus Interop: Getting Message Information

I'm using Interop.Domino.dll to retrieve E-mails from a Lotus "Database" (Term used loosely). I'm having some difficulty in retrieving certain fields and wonder how to do this properly. I've been ...
10
votes
4answers
7k views

Any clever way to fix 'string or binary data would be truncated' warning with LINQ

Is there a clever way to determine which field is causing 'string or binary data would be truncated' with LINQ. I've always ended up doing it manually by stepping through a debugger, but with a batch ...
0
votes
2answers
265 views

How can I get a list of the running applications with GTK?

How can I get a list of the running applications? I'm referring to the ones in the panel at the bottom of the screen.
0
votes
7answers
1k views

Quantum Computing - Hype Or Hyper? [closed]

I have recently been web-researching quantum computing. Will we see these in our lifetimes (ever?) (The error correction issue, for example, seems intractable to me).
0
votes
2answers
130 views

How to implement “Last 20 something” property in your domain class?

Let's say I need to implement domain model for StackOverflow. If I am doing ORM, how can I define (and map) property for fetching "last comments" and other "last" things? It looks to me like this ...
12
votes
4answers
8k views

Fluid CSS layout and Borders

In designing a fluid layout, how do you use borders without ruining the layout. More specifically, I have a HTML widget which consists of five divs. I would like the five divs to take up all the ...
30
votes
3answers
32k views

debugging postgresql trigger

I have this Trigger in Postgresql that I can't just get to work (does nothing). For understanding, there's how I defined it: CREATE TABLE documents ( ... modification_time timestamp with time ...
0
votes
4answers
2k views

updating primary key of master and child tables for large tables

I have a fairly huge database with a master table with a single column GUID (custom GUID like algorithm) as primary key and 8 child tables that have foreign key relationships with this GUID column. ...
6
votes
1answer
4k views

Generating Login and Registration Forms with Contrib.Auth in Django

I'm new to Django and in bouncing around the framework over the past few days I haven't been able to figure out how to properly install the django.contrib.auth app in my project. Well, installing is ...
3
votes
4answers
250 views

Accessing parent elements in an object model efficiently

I have a following object model: - Book -- Chapter 1 --- Page 1 ---- Image 1 ---- Image 2 ---- Text 1 --- Page 2 ... Resources are way down at the page level. But, I need to know the full path to ...
1758
votes
14answers
1.4m views

How to randomly select an item from a list?

Assume I have the following list: foo = ['a', 'b', 'c', 'd', 'e'] What is the simplest way to retrieve an item at random from this list?

15 30 50 per page