All Questions

Filter by
Sorted by
Tagged with
6
votes
0answers
363 views

How to fill the screen with video preview on Windows Mobile

I am creating an application for video capturing on Windows Mobile device. In the MainFrame there are menu and status window (custom window). The video size width:height ratio is 4:3 so in the case ...
8
votes
3answers
2k views

How to warn user of CAPS LOCK enabled in Flex/AIR?

Similar to the XP login screen, in Flex 3, how can I display a warning to the user in a textbox that the CAPS LOCK key is enabled?
1
vote
1answer
5k views

DBF ODBC Driver in Windows Server 2003 x64

The 64 bits version of Windows Server does not came with the ODBC DBF Drivers by default. Is there a way to get them? What alternatives exist?
1
vote
5answers
4k views

algorithm to find maximum occurence of a substring

Given a string S, what is the best algorithm to find a substring which repeats maximum number of times. For example, in "assdssfssd", it is "ss" which repeats maximum number of times.
11
votes
3answers
8k views

c# console, Console.Clear problem

I am writing a console program in C#. Is there a way I can use a Console.Clear() to only clear certain things on the console screen? Here's my issue: I have a logo (I put it on screen using Console....
5
votes
3answers
3k views

How to stop editing with DefaultCellEditor when a separate JBtton is pressed

I got a table with a custom TableCellEditor (extending DefaultCellEditor) with a JFormattedTextField as the editor component. Now I got problem: when I press a separate button while editing. When the ...
5
votes
2answers
2k views

How do I exclude records from an associated model in CakePHP?

I'm creating a Q&A application in CakePHP, and I want to exclude my associations in some cases. Imagine the following: I'm listing all questions on the first page using $this->Question->findAll();...
4
votes
2answers
3k views

Using entity framework, should I add a timestamp to all my database tables?

I'm planning to use MS entity framework for new web apps (come on EF v2!). So does it make sense to plan ahead by adding timestamp columns to all entity tables in existing and future databases, to ...
0
votes
2answers
1k views

Prolog - outputting a list?

I have the function sublist(_,[_],_) :- !. sublist(X,[Y|T],Z) :- R is X - Y, sublist(X,T,[R|Z]). an example call is sublist(2,[1,2,3],Z). At the end of execution it just gives me 'yes', ...
2
votes
2answers
3k views

How to grab parent process standard output?

I'm writing an utility (http://reg2run.sf.net) which in case execution without arguments works as windows application (shows OpenFileDialog, etc), otherwise - as console application. So, in first ...
5
votes
10answers
9k views

How do I indicate success and failure with colour?

I need to make a Java component that turns the background a certain colour when a process passed, and another colour when the process failed. My first thought was: green for success, red for failure. ...
5
votes
3answers
10k views

JAX-WS authentication against a database

I'm implementing a JAX-WS webservice that will be consumed by external Java and PHP clients. The clients have to authenticate with a username and password stored in a database per client. What ...
11
votes
5answers
22k views

How to check if MySQL query is valid without executing it?

I'm making a simple tool that will get a string of MySQL commands and run it (on several DB servers sequentially). I trust the users to be sensible, but mistakes happen, and I'm looking for a way to ...
12
votes
1answer
67k views

Access vba: How to turn of systems messages or prompts?

I use a form to run a few codes on a database in Access. During update or deletion Access asks whether you want to update or delete. I would like to know if there is any way of turning off these ...
0
votes
5answers
2k views

Javascript: Event does not fire unless element appended to document.body

I dynamically create an element (div) in javascript, on which i register an event listener: var tooltip = document.createElement('div'); tooltip.onclick = function() { alert('hello'); } Now, if I ...

15 30 50 per page