PostId
int64
4
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
1
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-55
461k
OwnerUndeletedAnswerCountAtPostTime
int64
0
21.5k
Title
stringlengths
3
250
BodyMarkdown
stringlengths
5
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
71,036
09/16/2008 10:29:28
11,710
09/16/2008 10:29:28
1
0
SCRUM - non cooperative team members
What do you do if members of your team are not cooperative during scrum meetings? They either provide a very high level definition of what they are curently working on, ("working on feature x"), or go into extremely non relevant details. This causes the scrum meeting to be ineffective and boring. As a scrum master, what are your techniques to getting the best out of people during the meeting?
scrum
null
null
null
null
null
open
SCRUM - non cooperative team members === What do you do if members of your team are not cooperative during scrum meetings? They either provide a very high level definition of what they are curently working on, ("working on feature x"), or go into extremely non relevant details. This causes the scrum meeting to be ineffective and boring. As a scrum master, what are your techniques to getting the best out of people during the meeting?
0
71,057
09/16/2008 10:31:50
11,708
09/16/2008 10:28:42
1
0
Obsfucating perl code
Does anyone know of a good code obsfucator for perl? I'm being ask to look into the option of obsfucating code before releasing it to a client. I know obsfucated code can still be reverse engineered, but that's not our main concern. Some clients are making small changes to the source code that we give them and it's giving us nightmares when something goes wrong and we have to fix it, or when we release a patch that doesn't work with what they've changed. So the intention is just to make it so that it's difficult for them to make their own changes to the code(they're not supposed to be doing that anyway).
perl
obsfucation
null
null
null
null
open
Obsfucating perl code === Does anyone know of a good code obsfucator for perl? I'm being ask to look into the option of obsfucating code before releasing it to a client. I know obsfucated code can still be reverse engineered, but that's not our main concern. Some clients are making small changes to the source code that we give them and it's giving us nightmares when something goes wrong and we have to fix it, or when we release a patch that doesn't work with what they've changed. So the intention is just to make it so that it's difficult for them to make their own changes to the code(they're not supposed to be doing that anyway).
0
71,065
09/16/2008 10:32:56
2,387
08/22/2008 00:37:24
191
10
Migrating from Stingray Objective Toolkit
We have a collection of commercial MFC/C++ applications which we sell using [Stingray Objective Toolkit][1], we have source code license and have ported it in the past to Solaris/IRIX/HP-UX/AIX using [Bristol Technologies WindU][2] (Windows API on UNIX, including MFC). Any long story short recently about 18 months ago we ported Stingray to Win64, but a long a tedious task, during this time I did some research on commercial and open source alternative MFC extension libraries things like [Ultimate Toolbox][3] and [Prof-UIS][4]. - Has anyone else used Stingray and moved to an alternative? - If so which one would you suggest? - What were the main perils of the move? [1]: http://www.roguewave.com/products/stingray.php [2]: http://en.wikipedia.org/wiki/Bristol_Technology_Inc. [3]: http://www.codeproject.com/KB/MFC/UltimateToolbox.aspx [4]: http://www.prof-uis.com/
gui
mfc
toolkit
stingray
objective
null
open
Migrating from Stingray Objective Toolkit === We have a collection of commercial MFC/C++ applications which we sell using [Stingray Objective Toolkit][1], we have source code license and have ported it in the past to Solaris/IRIX/HP-UX/AIX using [Bristol Technologies WindU][2] (Windows API on UNIX, including MFC). Any long story short recently about 18 months ago we ported Stingray to Win64, but a long a tedious task, during this time I did some research on commercial and open source alternative MFC extension libraries things like [Ultimate Toolbox][3] and [Prof-UIS][4]. - Has anyone else used Stingray and moved to an alternative? - If so which one would you suggest? - What were the main perils of the move? [1]: http://www.roguewave.com/products/stingray.php [2]: http://en.wikipedia.org/wiki/Bristol_Technology_Inc. [3]: http://www.codeproject.com/KB/MFC/UltimateToolbox.aspx [4]: http://www.prof-uis.com/
0
71,069
09/16/2008 10:34:05
7,483
09/15/2008 13:49:54
131
2
Can Maven be made less verbose?
I'm sometimes forced to use Maven (eww). It spews out far too many lines of output to my taste (I like the Unix way: no news is good news). The lines I want to get rid of are marked [INFO], but I couldn't find any mention of an argument or config settings that controls the verbosity of Maven. Is there no LOG4J-like way to set the log level?
maven-2
null
null
null
null
null
open
Can Maven be made less verbose? === I'm sometimes forced to use Maven (eww). It spews out far too many lines of output to my taste (I like the Unix way: no news is good news). The lines I want to get rid of are marked [INFO], but I couldn't find any mention of an argument or config settings that controls the verbosity of Maven. Is there no LOG4J-like way to set the log level?
0
71,074
09/16/2008 10:35:13
4,639
09/04/2008 23:07:22
203
3
How to remove Firefox's dotted outline on BUTTONS as well as links?
I can make Firefox not display the ugly dotted focus outlines on <b>links</b> with this: <pre><code>a:focus { outline: none; } </code></pre> But how can I do this for `<button>` tags as well? When I do this: <pre><code>button:focus { outline: none; } </code></pre> the buttons still have the dotted focus outline when I click on them.
css
firefox
null
null
null
null
open
How to remove Firefox's dotted outline on BUTTONS as well as links? === I can make Firefox not display the ugly dotted focus outlines on <b>links</b> with this: <pre><code>a:focus { outline: none; } </code></pre> But how can I do this for `<button>` tags as well? When I do this: <pre><code>button:focus { outline: none; } </code></pre> the buttons still have the dotted focus outline when I click on them.
0
71,077
09/16/2008 10:36:31
184
08/03/2008 05:34:19
2,355
46
Are there any compression and encryption libraries in C# ?
I want to compress some files (into zip format) and encrypt them if possible using C#. Is there some way to do this? Can encryption be done as a part of the compression itself?
c#
encryption
compression
null
null
null
open
Are there any compression and encryption libraries in C# ? === I want to compress some files (into zip format) and encrypt them if possible using C#. Is there some way to do this? Can encryption be done as a part of the compression itself?
0
71,092
09/16/2008 10:38:45
8,547
09/15/2008 16:18:49
61
2
What is the difference between UserControl, WebControl, RenderedControl and CompositControl
What is the difference, what is the official terms, are any terms obsolute in ASP.NET 3.5?
asp.net
null
null
null
null
null
open
What is the difference between UserControl, WebControl, RenderedControl and CompositControl === What is the difference, what is the official terms, are any terms obsolute in ASP.NET 3.5?
0
71,108
09/16/2008 10:41:21
11,575
09/16/2008 09:13:37
11
1
What use is multiple indirection in C++?
Under what circumstances might you want to use multiple indirection (that is, a chain of pointers as in **foo) in C++?
c++
pointers
null
null
null
null
open
What use is multiple indirection in C++? === Under what circumstances might you want to use multiple indirection (that is, a chain of pointers as in **foo) in C++?
0
71,118
09/16/2008 10:42:46
959
08/11/2008 05:23:02
153
14
JS error for JQuery in IE 8.0
I have developed a simple page using JQuery. It works fine in almost all browsers (i.e. Firefox, IE, Chrome) but whenever the page is opened in IE, it prompts Javascript error like, **'guid' is null or not an object** on line **1834** Do you have any idea ?
jquery
internet-explorer
null
null
null
null
open
JS error for JQuery in IE 8.0 === I have developed a simple page using JQuery. It works fine in almost all browsers (i.e. Firefox, IE, Chrome) but whenever the page is opened in IE, it prompts Javascript error like, **'guid' is null or not an object** on line **1834** Do you have any idea ?
0
71,144
09/16/2008 10:49:01
11,645
09/16/2008 09:47:04
1
0
What are the pros and cons of using RMI or JMS between web and business tiers?
For a typical Web client -to- Servlet/WS -to- Business Tier (Spring or EJB) app, what are the trade-offs of different approaches like remote RPC or messaging, aside from the basic sync/async aspects?
java-ee
jms
remoting
null
null
null
open
What are the pros and cons of using RMI or JMS between web and business tiers? === For a typical Web client -to- Servlet/WS -to- Business Tier (Spring or EJB) app, what are the trade-offs of different approaches like remote RPC or messaging, aside from the basic sync/async aspects?
0
71,146
09/16/2008 10:49:12
10,957
09/16/2008 03:26:49
1
1
What's the best value for money c# code protection for a single developer
What's the best value for money c# code protection? Some just use obfuscation, others add win32 wrapping, some cost a fortune. So far I've come up with http://www.eziriz.com/ who's Intellilock looks promising. Any other suggestions? Any reasons why this is not a good idea? I know its impossible to completely protect but I'd prefer the ability to protect my code so that it would require a lot of effort in order to recover it. I do hope to sell my products eventually, while also releasing some for free.
c#
obfuscation
protection
null
null
null
open
What's the best value for money c# code protection for a single developer === What's the best value for money c# code protection? Some just use obfuscation, others add win32 wrapping, some cost a fortune. So far I've come up with http://www.eziriz.com/ who's Intellilock looks promising. Any other suggestions? Any reasons why this is not a good idea? I know its impossible to completely protect but I'd prefer the ability to protect my code so that it would require a lot of effort in order to recover it. I do hope to sell my products eventually, while also releasing some for free.
0
71,149
09/16/2008 10:49:24
9,440
09/15/2008 18:48:45
8
0
Creating a custom menu in .NET WinForms
Using .NET 2.0 with WinForms, I'd like to create a custom, multi-columned menu (similiar to the word 2007 look&feel, but without the ribbon). My approach was creating a control, and using a left/right docked toolstrip, I have constructed a similar look&feel of a menu. However, there are a few shortcomings of this solution, such as - the control can only be placed, and displayed within the form; - if the form is too small, some area of the control won't be displayed; - the control also have to be manually shown/hidden. Thus, I'm looking for a way to display this control outside of the boundaries of the application. Creating a new form would result in title-bar deactivating on display, so that's also out. Alternatively, any other approach to create a customized menu would be very welcomed.
c#
.net
winforms
menu
null
null
open
Creating a custom menu in .NET WinForms === Using .NET 2.0 with WinForms, I'd like to create a custom, multi-columned menu (similiar to the word 2007 look&feel, but without the ribbon). My approach was creating a control, and using a left/right docked toolstrip, I have constructed a similar look&feel of a menu. However, there are a few shortcomings of this solution, such as - the control can only be placed, and displayed within the form; - if the form is too small, some area of the control won't be displayed; - the control also have to be manually shown/hidden. Thus, I'm looking for a way to display this control outside of the boundaries of the application. Creating a new form would result in title-bar deactivating on display, so that's also out. Alternatively, any other approach to create a customized menu would be very welcomed.
0
71,151
09/16/2008 10:49:36
1,384,652
08/01/2008 12:01:23
2,104
86
HTML parser in Python
Using the Python Documentation I found the [HTML parser][1] but I have no idea which library to import to use it, how do I find this out (bearing in mind it doesn't say on the page). [1]: http://docs.python.org/lib/module-HTMLParser.html
python
import
null
null
null
null
open
HTML parser in Python === Using the Python Documentation I found the [HTML parser][1] but I have no idea which library to import to use it, how do I find this out (bearing in mind it doesn't say on the page). [1]: http://docs.python.org/lib/module-HTMLParser.html
0
71,157
09/16/2008 10:50:58
11,410
09/16/2008 07:44:40
1
1
Anyone got --standalone option to work in F# CTP?
I may have this completely wrong, but my understanding is that the --standalone compiler option tells the compiler to include the F# core and other dependencies in the exe, so that you can run it on another machine without installing any 'runtime'. However, I can't get this to work in the CTP - it doesn't even seem to change the size of the output file (docs I've read say about 1M extra). "Google may know, but if it does, it ain't telling, or I'm not looking in the right place"
f#
null
null
null
null
null
open
Anyone got --standalone option to work in F# CTP? === I may have this completely wrong, but my understanding is that the --standalone compiler option tells the compiler to include the F# core and other dependencies in the exe, so that you can run it on another machine without installing any 'runtime'. However, I can't get this to work in the CTP - it doesn't even seem to change the size of the output file (docs I've read say about 1M extra). "Google may know, but if it does, it ain't telling, or I'm not looking in the right place"
0
71,166
09/16/2008 10:51:58
6,399
09/15/2008 09:03:18
33
4
Help with SQL server stack dump
We're running SQL 2005 standard SP2 on a 4cpu box. Suddenly it crashdumps, after which all pooled connections are invalid and it goes into admin-only mode (only sa can connect) The short stackdump is below. After the dump a number of errors show up like '2008-09-16 10:49:34.48 Server Resource Monitor (0xec4) Worker 0x03D1C0E8 appears to be non-yielding on Node 0. Memory freed: 232408 KB. Approx CPU Used: kernel 203 ms, user 140 ms, Interval: 250250.' Have Googled around but couldn't find a definate answer. Anyone? -Edoode 2008-09-16 10:46:24.98 Server Using 'dbghelp.dll' version '4.0.5' 2008-09-16 10:46:25.40 Server **Dump thread - spid = 0, PSS = 0x00000000, EC = 0x00000000 2008-09-16 10:46:25.40 Server ***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0009.txt 2008-09-16 10:46:25.40 Server * ******************************************************************************* 2008-09-16 10:46:25.40 Server * 2008-09-16 10:46:25.40 Server * BEGIN STACK DUMP: 2008-09-16 10:46:25.40 Server * 09/16/08 10:46:25 spid 0 2008-09-16 10:46:25.42 Server * 2008-09-16 10:46:25.42 Server * Non-yielding Resource Monitor 2008-09-16 10:46:25.42 Server * 2008-09-16 10:46:25.42 Server * ******************************************************************************* 2008-09-16 10:46:25.42 Server * ------------------------------------------------------------------------------- 2008-09-16 10:46:25.42 Server * Short Stack Dump 2008-09-16 10:46:25.76 Server Stack Signature for the dump is 0x00000352 2008-09-16 10:46:32.70 Server External dump process return code 0x20000001.
sql-server
null
null
null
null
null
open
Help with SQL server stack dump === We're running SQL 2005 standard SP2 on a 4cpu box. Suddenly it crashdumps, after which all pooled connections are invalid and it goes into admin-only mode (only sa can connect) The short stackdump is below. After the dump a number of errors show up like '2008-09-16 10:49:34.48 Server Resource Monitor (0xec4) Worker 0x03D1C0E8 appears to be non-yielding on Node 0. Memory freed: 232408 KB. Approx CPU Used: kernel 203 ms, user 140 ms, Interval: 250250.' Have Googled around but couldn't find a definate answer. Anyone? -Edoode 2008-09-16 10:46:24.98 Server Using 'dbghelp.dll' version '4.0.5' 2008-09-16 10:46:25.40 Server **Dump thread - spid = 0, PSS = 0x00000000, EC = 0x00000000 2008-09-16 10:46:25.40 Server ***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0009.txt 2008-09-16 10:46:25.40 Server * ******************************************************************************* 2008-09-16 10:46:25.40 Server * 2008-09-16 10:46:25.40 Server * BEGIN STACK DUMP: 2008-09-16 10:46:25.40 Server * 09/16/08 10:46:25 spid 0 2008-09-16 10:46:25.42 Server * 2008-09-16 10:46:25.42 Server * Non-yielding Resource Monitor 2008-09-16 10:46:25.42 Server * 2008-09-16 10:46:25.42 Server * ******************************************************************************* 2008-09-16 10:46:25.42 Server * ------------------------------------------------------------------------------- 2008-09-16 10:46:25.42 Server * Short Stack Dump 2008-09-16 10:46:25.76 Server Stack Signature for the dump is 0x00000352 2008-09-16 10:46:32.70 Server External dump process return code 0x20000001.
0
71,180
09/16/2008 10:54:53
8,418
09/15/2008 15:59:07
13
2
How can I find last row that contains data in the excel sheet with a macro?
How can I find the last row that contains data in a specific column and on a specific sheet?
excel
vb
macros
null
null
null
open
How can I find last row that contains data in the excel sheet with a macro? === How can I find the last row that contains data in a specific column and on a specific sheet?
0
71,195
09/16/2008 10:56:35
9,602
09/15/2008 19:18:44
11
1
Should you obfuscate a commercial .Net application?
I was thinking about obfuscating a commercial .Net application. But is it really worth the effort to select, buy and use such a tool? Are the obfuscated binaries really safe from reverse engineering?
c#
.net
obfuscation
null
null
null
open
Should you obfuscate a commercial .Net application? === I was thinking about obfuscating a commercial .Net application. But is it really worth the effort to select, buy and use such a tool? Are the obfuscated binaries really safe from reverse engineering?
0
71,198
09/16/2008 10:57:17
456,146
09/16/2008 10:57:17
1
0
How to emulate/replace/re-enable classical Sound Mixer controls (or commands) in Windows Vista?
I have a problem (and have been having it for some time now) -- the new sound mixer stack in Vista features new cool things, but also re-invents the wheel. Many applications that used to use Volume Mixer on a Windows system to mix different voiced outputs into one input (for example Wave-out + Line-in --> Stereo Mix) have since stopped working. The prime example of this behavior is the Shoutcast DSP plugin (could be useful for solution testing). My question is thus: how to re-enable XP-mixer controls, or maybe emulate this behavior somehow, so that the program (SC DSP) can properly manage Microphone/Line-In playback volume along with Wave-out playback volume? My thinking would be to emulate a program hooked-in into the Vista Mixer for Wave-Out and Line-out (or Mic speaker volume -- all playback, shown as separate adjustable "programs" so that the Vista Mixer could refer to it) and 'hook' it into the system under some emulation representing itself as the old volume mixer control interface for the program - but I frankly have no idea how to do that.
windows
windows-vista
audio
mixer
shoutcast
null
open
How to emulate/replace/re-enable classical Sound Mixer controls (or commands) in Windows Vista? === I have a problem (and have been having it for some time now) -- the new sound mixer stack in Vista features new cool things, but also re-invents the wheel. Many applications that used to use Volume Mixer on a Windows system to mix different voiced outputs into one input (for example Wave-out + Line-in --> Stereo Mix) have since stopped working. The prime example of this behavior is the Shoutcast DSP plugin (could be useful for solution testing). My question is thus: how to re-enable XP-mixer controls, or maybe emulate this behavior somehow, so that the program (SC DSP) can properly manage Microphone/Line-In playback volume along with Wave-out playback volume? My thinking would be to emulate a program hooked-in into the Vista Mixer for Wave-Out and Line-out (or Mic speaker volume -- all playback, shown as separate adjustable "programs" so that the Vista Mixer could refer to it) and 'hook' it into the system under some emulation representing itself as the old volume mixer control interface for the program - but I frankly have no idea how to do that.
0
71,199
09/16/2008 10:57:17
11,530
09/16/2008 08:57:05
31
6
What makes you lose motivation?
What environmental factors make you lose your motivation?
performance
productivity
motivation
null
null
07/10/2012 21:44:31
off topic
What makes you lose motivation? === What environmental factors make you lose your motivation?
2
71,201
09/16/2008 10:57:40
1,178
08/13/2008 11:15:35
560
31
Hints for a high-traffic web service, c# asp.net sql2000
I'm developing a web service whose methods will be called from a "dynamic banner" that will show a sort of queue of messages read from a sql server table. The banner will have a heavy pressure in the home pages of high traffic sites; every time the banner will be loaded, it will call my web service, in order to obtain the new queue of messages. Now: I don't want that all this traffic drives queries to the database every time the banner is loaded, so I'm thinking to use the asp.net cache (i.e. HttpRuntime.Cache[cacheKey]) to limit database accesses; I will try to have a cache refresh every minute or so. Obviously I'll try have the messages as little as possible, to limit traffic. But maybe there are other ways to deal with such a scenario; for example I could write the last version of the queue on the file system, and have the web service access that file; or something mixing the two approaches... The solution is c# web service, asp.net 3.5, sql server 2000. Any hint? Other approaches? Thanks Andrea
c#
web-services
design
high-load
null
null
open
Hints for a high-traffic web service, c# asp.net sql2000 === I'm developing a web service whose methods will be called from a "dynamic banner" that will show a sort of queue of messages read from a sql server table. The banner will have a heavy pressure in the home pages of high traffic sites; every time the banner will be loaded, it will call my web service, in order to obtain the new queue of messages. Now: I don't want that all this traffic drives queries to the database every time the banner is loaded, so I'm thinking to use the asp.net cache (i.e. HttpRuntime.Cache[cacheKey]) to limit database accesses; I will try to have a cache refresh every minute or so. Obviously I'll try have the messages as little as possible, to limit traffic. But maybe there are other ways to deal with such a scenario; for example I could write the last version of the queue on the file system, and have the web service access that file; or something mixing the two approaches... The solution is c# web service, asp.net 3.5, sql server 2000. Any hint? Other approaches? Thanks Andrea
0
71,203
09/16/2008 10:58:14
9,784
09/15/2008 19:57:35
11
1
Is it feasible/sensible to wrap an InnoSetup installer inside an MSI for easier distribution via AD?
Our installer is written with InnoSetup and we are actually quite happy with it. Yet some customers keep asking for an MSI installer which they could more easily distribute via Active Directory. We have already gone to some lengths to make the installer deal really well with automated and unattended installations by extending InnoSetup's /LOADINF-mechanism with our own options. In order to satisfy the customers asking for MSI, I had been thinking about simply wrapping our regular installer inside an MSI, possibly created using WIX. The question is: can I maintain the high configurability which our current installer offers that way? How would I go about exposing the InnoInstaller's options through the outer MSI in the unattended/mass installation scenario? Note that I haven't really gotten to the point of actually digging into MSI-creation and WIX myself yet. Right now I'm only interested in whether people who do know what they're talking about think this would be a feasible/sensible approach to invest our energy in in the first place... P.S.: We do have an old copy of WISE for MSI here as well but that experience was actually the reason why we started using Inno instead to begin with... Cheers, Oliver
inno-setup
msi
null
null
null
null
open
Is it feasible/sensible to wrap an InnoSetup installer inside an MSI for easier distribution via AD? === Our installer is written with InnoSetup and we are actually quite happy with it. Yet some customers keep asking for an MSI installer which they could more easily distribute via Active Directory. We have already gone to some lengths to make the installer deal really well with automated and unattended installations by extending InnoSetup's /LOADINF-mechanism with our own options. In order to satisfy the customers asking for MSI, I had been thinking about simply wrapping our regular installer inside an MSI, possibly created using WIX. The question is: can I maintain the high configurability which our current installer offers that way? How would I go about exposing the InnoInstaller's options through the outer MSI in the unattended/mass installation scenario? Note that I haven't really gotten to the point of actually digging into MSI-creation and WIX myself yet. Right now I'm only interested in whether people who do know what they're talking about think this would be a feasible/sensible approach to invest our energy in in the first place... P.S.: We do have an old copy of WISE for MSI here as well but that experience was actually the reason why we started using Inno instead to begin with... Cheers, Oliver
0
71,204
09/16/2008 10:58:21
11,757
09/16/2008 10:58:20
1
0
sqlserver express database copy options
Why can i not see an option for copying database objects when i right click > tasks on my database?
sql-server
sql-server-express
null
null
null
null
open
sqlserver express database copy options === Why can i not see an option for copying database objects when i right click > tasks on my database?
0
71,223
09/16/2008 11:00:39
4,186
09/02/2008 09:12:05
19
4
TYPO3: How do i render content in my own extensions?
I'm currently writing a TYPO3 extension which is configured with a list of tt_content UID's. These point to content elements of type "text" and i want to render them by my extension. Because of TYPO3s special way of transforming the text you enter in the rich text editing when it enters the database, and again transforming it when it is rendered to the frontend, i can not just output the database contents of the "bodytext" field. I want to render these texts as they would usually get rendered by TYPO3. How do I do that?
typo3
null
null
null
null
null
open
TYPO3: How do i render content in my own extensions? === I'm currently writing a TYPO3 extension which is configured with a list of tt_content UID's. These point to content elements of type "text" and i want to render them by my extension. Because of TYPO3s special way of transforming the text you enter in the rich text editing when it enters the database, and again transforming it when it is rendered to the frontend, i can not just output the database contents of the "bodytext" field. I want to render these texts as they would usually get rendered by TYPO3. How do I do that?
0
71,226
09/16/2008 11:01:22
24,157
09/16/2008 11:01:22
1
0
DataGridView column of type DataGridViewCheckBoxCell is constantly readonly/disabled
I am using a DataGridView and I need to edit a DataBound column (that binds on a boolean DataTable column). For this I specify the cell template like this: column = new DataGridViewColumn(new DataGridViewCheckBoxCell()); You see that I need a CheckBox cell template. The problem I face is that this column is constantly readonly/disabled, as if it would be of TextBox type. It doesn't show a checkbox at all. Any thoughts on how to work with editable checkbox columns for DataGridView? Thanks.
datagridview
datagridviewcheckboxcell
null
null
null
null
open
DataGridView column of type DataGridViewCheckBoxCell is constantly readonly/disabled === I am using a DataGridView and I need to edit a DataBound column (that binds on a boolean DataTable column). For this I specify the cell template like this: column = new DataGridViewColumn(new DataGridViewCheckBoxCell()); You see that I need a CheckBox cell template. The problem I face is that this column is constantly readonly/disabled, as if it would be of TextBox type. It doesn't show a checkbox at all. Any thoughts on how to work with editable checkbox columns for DataGridView? Thanks.
0
71,239
09/16/2008 11:04:30
11,587
09/16/2008 09:19:53
21
3
Is there a way to use Lua on BREW 3.0 platform?
It looks like [BREW](http://brew.qualcomm.com/brew/) 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?
mobile
lua
brew
null
null
null
open
Is there a way to use Lua on BREW 3.0 platform? === It looks like [BREW](http://brew.qualcomm.com/brew/) 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?
0
71,257
09/16/2008 11:07:34
9,632
09/15/2008 19:25:29
21
4
Suspend Process in C#
How do I suspend a whole process (like the Process Explorer does when I click Suspend) in C#. I'm starting the Process with Process.Start, and on a certain event, I want to suspend the process to be able to do some investigation on a "snapshot" of it.
c#
null
null
null
null
null
open
Suspend Process in C# === How do I suspend a whole process (like the Process Explorer does when I click Suspend) in C#. I'm starting the Process with Process.Start, and on a certain event, I want to suspend the process to be able to do some investigation on a "snapshot" of it.
0
71,271
09/16/2008 11:09:51
11,771
09/16/2008 11:05:03
1
1
How do you motivate the 80%
You always have 10% of the people that are rock stars, 10% of the people that are deadbeats. How do you turn more of the 80% in the middle into rockstars?
motivation
leadership
null
null
null
09/09/2011 13:46:37
not constructive
How do you motivate the 80% === You always have 10% of the people that are rock stars, 10% of the people that are deadbeats. How do you turn more of the 80% in the middle into rockstars?
4
71,273
09/16/2008 11:09:53
11,613
09/16/2008 09:30:36
1
0
Time management tricks, tools & tips
Working with software day-to-day usually means you have to juggle project work, meetings, calls and other interrupts. What single technique, trick, or tool do you find most useful in managing your time? How do you stay focused? What is your single biggest distraction from your work?
project-management
time-management
planning
null
null
11/28/2011 01:47:33
not constructive
Time management tricks, tools & tips === Working with software day-to-day usually means you have to juggle project work, meetings, calls and other interrupts. What single technique, trick, or tool do you find most useful in managing your time? How do you stay focused? What is your single biggest distraction from your work?
4
71,277
09/16/2008 11:10:48
11,587
09/16/2008 09:19:53
21
3
Single application build for multiple mobile devices
Is it possible to have one application build for multiple mobile devices (on [BREW](http://brew.qualcomm.com/brew/) platform), rather than making a separate build for each device. In particular is is possible to use single BREW application build for multiple screen resolutions?
brew
mobile
null
null
null
null
open
Single application build for multiple mobile devices === Is it possible to have one application build for multiple mobile devices (on [BREW](http://brew.qualcomm.com/brew/) platform), rather than making a separate build for each device. In particular is is possible to use single BREW application build for multiple screen resolutions?
0
71,293
09/16/2008 11:13:52
11,783
09/16/2008 11:13:52
1
0
How do I protect content in AIR?
I want to develop some educational content, which I want to distribute to children using Adobe AIR. The content will contain videos. Now, from what I see, AIR will put the content onto the local file system, for anyone to see. I want to prevent this. Is there a way out?
air
protection
content
null
null
null
open
How do I protect content in AIR? === I want to develop some educational content, which I want to distribute to children using Adobe AIR. The content will contain videos. Now, from what I see, AIR will put the content onto the local file system, for anyone to see. I want to prevent this. Is there a way out?
0
71,306
09/16/2008 11:15:51
11,791
09/16/2008 11:15:51
1
0
ASP.net - How can one differentiate Page-Processing Time from Client-Transmission Time
The single timing column in the weblog naturally includes client transmission timing. For anamoly analysis, I want to differentiate pages that took excessive construction time from requests that simply had a slow client. For buffered pages, I've looked at the ASP.NET page lifecycle model and do not see where I can tap in and codewise measure just the page-processing time before the page is flushed to the client. Any insight would be appreciated.
asp.net
page-lifecycle
measurement
transmission
null
null
open
ASP.net - How can one differentiate Page-Processing Time from Client-Transmission Time === The single timing column in the weblog naturally includes client transmission timing. For anamoly analysis, I want to differentiate pages that took excessive construction time from requests that simply had a slow client. For buffered pages, I've looked at the ASP.NET page lifecycle model and do not see where I can tap in and codewise measure just the page-processing time before the page is flushed to the client. Any insight would be appreciated.
0
71,315
09/16/2008 11:17:52
1,870
08/19/2008 00:42:51
1,725
36
light-version of a repository/branch in git
I am using git on a project, that generates lots of data-files (simulation-results). I am "forced" to version and track all those results in the same repository. (This is a hard requirement and can not be changed) However I don't need them. We have about 50 MB for the project and 5 GB results in the repository. Is it feasible for me to create a branch, delete all the results, check this branch out and only work on that branch? How hard would it be (what would I have to do), to push my local changes back into the fat branch? Is there a better solution to get rid of those 5 GB for my work?
git
branch
null
null
null
null
open
light-version of a repository/branch in git === I am using git on a project, that generates lots of data-files (simulation-results). I am "forced" to version and track all those results in the same repository. (This is a hard requirement and can not be changed) However I don't need them. We have about 50 MB for the project and 5 GB results in the repository. Is it feasible for me to create a branch, delete all the results, check this branch out and only work on that branch? How hard would it be (what would I have to do), to push my local changes back into the fat branch? Is there a better solution to get rid of those 5 GB for my work?
0
71,323
09/16/2008 11:19:39
5,190
09/08/2008 12:03:43
1,578
102
How to replace a character for a newline in vim?
I'm trying :%s/,/\n/g but it inserts what looks like a ^@ instead of an actual newline, the file is not on DOS mode or anything. What should I do?
vim
replace
null
null
null
null
open
How to replace a character for a newline in vim? === I'm trying :%s/,/\n/g but it inserts what looks like a ^@ instead of an actual newline, the file is not on DOS mode or anything. What should I do?
0
71,328
09/16/2008 11:20:02
4,012
09/01/2008 10:51:15
21
2
What are the best practices for avoid xss attacks in a PHP site
I have PHP configured so that magic quotes are on and register globals are off. I do my best to always call htmlentities() for anything I am outputing that is derived from user input. I also occasionally seach my database for common things used in xss attached such as... <script What else should I be doing and how can I make sure that the things I am trying to do are **always** done.
php
xss
null
null
null
null
open
What are the best practices for avoid xss attacks in a PHP site === I have PHP configured so that magic quotes are on and register globals are off. I do my best to always call htmlentities() for anything I am outputing that is derived from user input. I also occasionally seach my database for common things used in xss attached such as... <script What else should I be doing and how can I make sure that the things I am trying to do are **always** done.
0
71,332
09/16/2008 11:20:20
2,455
08/22/2008 11:29:07
200
16
How do I delete a Discipline in EPF Composer 1.5?
I'm making a method combining Scrum with the OpenUP lifecycle and deliverables. I also want to keep the OpenUP disciplines apart from "Project Management". I can "hide" it so that it's not immediately obvious in my generated method site, but when when you navigate to the Risk List artifact for example the PM is still seen as contributing, and if you click on the link, you get taken to the PM Discipline page. How can I remove it completely from my method without deleting it from the OpenUP library I'm consuming?
scrum
eclipse-plugin
epf
eclipse-method-composer
openup
null
open
How do I delete a Discipline in EPF Composer 1.5? === I'm making a method combining Scrum with the OpenUP lifecycle and deliverables. I also want to keep the OpenUP disciplines apart from "Project Management". I can "hide" it so that it's not immediately obvious in my generated method site, but when when you navigate to the Risk List artifact for example the PM is still seen as contributing, and if you click on the link, you get taken to the PM Discipline page. How can I remove it completely from my method without deleting it from the OpenUP library I'm consuming?
0
71,336
09/16/2008 11:21:10
11,795
09/16/2008 11:21:09
1
0
Whatever happened to jEdit
I'm not sure if many people know about this text-editor? jEdit was kinda big in 2004, but now, Notepad++ seems to have taken the lead(on Windows) Many of the plugins haven't been updated since 2003 and the overal layout and usage is confusing... I'm sure jEdit has many nifty features, but I'll be damned if I can find out where to find them and how to use them. Reading that manual is a fulltime job on it's own.
jedit
null
null
null
null
null
open
Whatever happened to jEdit === I'm not sure if many people know about this text-editor? jEdit was kinda big in 2004, but now, Notepad++ seems to have taken the lead(on Windows) Many of the plugins haven't been updated since 2003 and the overal layout and usage is confusing... I'm sure jEdit has many nifty features, but I'll be damned if I can find out where to find them and how to use them. Reading that manual is a fulltime job on it's own.
0
71,365
09/16/2008 11:25:28
997
08/11/2008 12:29:21
21
2
How to create project specific respository post-commit actions
Presently, we've got several main projects each in their own repository. We will have to version-control up to a dozen additional projects. VisualSVN recommends to create 1 respository for our company and then vc all projects inside that. > It's a good practice to create one repository for the entire company or department and store all your projects in this repository. Creating separate repository for each project is not a good idea because in that case you will not be able to perform Subversion operations like copy, diff and merge cross-project. [VisualSvn.com][1] Currently we're using post-commit hooks to update the testing server with the latest commit and do other project specific actions (such as emailing certain people for one project but not for others) depending on which project has been committed. As post-commit runs for the whole repository, is this still possible in such a situation? How would I go about decerning which project has changes? filter folder structure? [1]: http://www.visualsvn.com/support/topic/00017/ "Visualsvn.com"
svn
version-control
vcs
null
null
null
open
How to create project specific respository post-commit actions === Presently, we've got several main projects each in their own repository. We will have to version-control up to a dozen additional projects. VisualSVN recommends to create 1 respository for our company and then vc all projects inside that. > It's a good practice to create one repository for the entire company or department and store all your projects in this repository. Creating separate repository for each project is not a good idea because in that case you will not be able to perform Subversion operations like copy, diff and merge cross-project. [VisualSvn.com][1] Currently we're using post-commit hooks to update the testing server with the latest commit and do other project specific actions (such as emailing certain people for one project but not for others) depending on which project has been committed. As post-commit runs for the whole repository, is this still possible in such a situation? How would I go about decerning which project has changes? filter folder structure? [1]: http://www.visualsvn.com/support/topic/00017/ "Visualsvn.com"
0
71,374
09/16/2008 11:27:07
6,996
09/15/2008 12:58:53
1
3
Fastest api for rendering text in WinForms?
We need to optimize the text rendering for a c# WinForms application displaying a large number of small strings in an irregular grid. At any time there can be well over 5000 cells visible that update 4x/second. The font family and size is consistent across the cells, though the color may vary from cell to cell, as will bold/italic/plain. I've seen conflicting information on the web about TextRenderer.DrawText vs. Graphics.DrawString being the fastest/best, which reduces to a GDI vs. GDI+ comparison at the win32 level. I've also seen radically different results on XP vs. Vista, but my main target is XP. Articles promising great advances under WinFX and DirectX 10 aren't helpful here :-) What's the best approach here? I'm not afraid of introducing a small C++/CLI layer and optimizing device context handling to squeeze out more performance, but I'd like some definitive advice about which direction to take. Dave
c#
windows
performance
null
null
null
open
Fastest api for rendering text in WinForms? === We need to optimize the text rendering for a c# WinForms application displaying a large number of small strings in an irregular grid. At any time there can be well over 5000 cells visible that update 4x/second. The font family and size is consistent across the cells, though the color may vary from cell to cell, as will bold/italic/plain. I've seen conflicting information on the web about TextRenderer.DrawText vs. Graphics.DrawString being the fastest/best, which reduces to a GDI vs. GDI+ comparison at the win32 level. I've also seen radically different results on XP vs. Vista, but my main target is XP. Articles promising great advances under WinFX and DirectX 10 aren't helpful here :-) What's the best approach here? I'm not afraid of introducing a small C++/CLI layer and optimizing device context handling to squeeze out more performance, but I'd like some definitive advice about which direction to take. Dave
0
71,381
09/16/2008 11:28:46
123
08/02/2008 08:01:26
2,212
132
Worth migrating to Rake?
Is it really advantageous to move to Rake from ant? Anyone migrated from ant and find something monumental? FYI: Current environment is Ant for J2ME builds
rake
ant
build-tool
automation
null
null
open
Worth migrating to Rake? === Is it really advantageous to move to Rake from ant? Anyone migrated from ant and find something monumental? FYI: Current environment is Ant for J2ME builds
0
71,390
09/16/2008 11:31:09
10,019
09/15/2008 20:51:43
1
2
Which operating systems come with .net?
I'm trying to evaluate .net as an implementation platform for my next software project. Which operating system releases come with a .net runtime pre-installed? And which come with it as an add on (I'm thinking mono here)?
.net
operating-system
runtime
null
null
null
open
Which operating systems come with .net? === I'm trying to evaluate .net as an implementation platform for my next software project. Which operating system releases come with a .net runtime pre-installed? And which come with it as an add on (I'm thinking mono here)?
0
71,416
09/16/2008 11:34:53
11,437
09/16/2008 07:57:38
1
0
Forward declaring an enum in c++
I'm trying to do something like the following: ---- enum E; void Foo(E e); enum E {A, B, C}; ---- which the compiler rejects. I've had a quick look on Google and the consensus seems to be "you can't do it", but I can't understand why. Can anyone explain? Many thanks.
c++
enums
null
null
null
null
open
Forward declaring an enum in c++ === I'm trying to do something like the following: ---- enum E; void Foo(E e); enum E {A, B, C}; ---- which the compiler rejects. I've had a quick look on Google and the consensus seems to be "you can't do it", but I can't understand why. Can anyone explain? Many thanks.
0
71,417
09/16/2008 11:34:58
5,190
09/08/2008 12:03:43
1,595
102
Why is \r a newline for vim?
From [this question][1]. You have to use \r when replacing text for a newline, like this :%s/%/\r/g But when replacing end of lines and newlines for a character, you can do it like: :%s/\n/%/g What section of the manual documents these behaviors, and what's the reasoning behind them? [1]: http://stackoverflow.com/questions/71323/how-to-replace-a-character-for-a-newline-in-vim
vim
behavior
null
null
null
null
open
Why is \r a newline for vim? === From [this question][1]. You have to use \r when replacing text for a newline, like this :%s/%/\r/g But when replacing end of lines and newlines for a character, you can do it like: :%s/\n/%/g What section of the manual documents these behaviors, and what's the reasoning behind them? [1]: http://stackoverflow.com/questions/71323/how-to-replace-a-character-for-a-newline-in-vim
0
71,419
09/16/2008 11:35:04
11,781
09/16/2008 11:10:34
1
0
What's wrong with "with"
I've heard many programmers, particularly Delphi programmers scorn the use of 'with'.<br> I thought it made programs run faster (only one reference to parent object) and that it was easier to read the code if used sensibly (less than a dozen lines of code and no nesting). Here's an example: procedure TBitmap32.FillRectS(const ARect: TRect; Value: TColor32);<br> begin<br> &nbsp;&nbsp;with ARect do FillRectS(Left, Top, Right, Bottom, Value);<br> end; I like using 'with'. What's wrong with me?
delphi
with
null
null
null
null
open
What's wrong with "with" === I've heard many programmers, particularly Delphi programmers scorn the use of 'with'.<br> I thought it made programs run faster (only one reference to parent object) and that it was easier to read the code if used sensibly (less than a dozen lines of code and no nesting). Here's an example: procedure TBitmap32.FillRectS(const ARect: TRect; Value: TColor32);<br> begin<br> &nbsp;&nbsp;with ARect do FillRectS(Left, Top, Right, Bottom, Value);<br> end; I like using 'with'. What's wrong with me?
0
71,423
09/16/2008 11:36:09
4,392
09/03/2008 12:57:25
83
4
Disable selection of rows in a datagridview
I want to disable the selection of certain rows in a datagridview. It must be possible to remove the select property for one or more datagridview rows in a datagridview shown in a winform. The user must be able to select certain rows instead of all rows. (depending on a condition) Thankx,
datagridview
winforms
user-interface
null
null
null
open
Disable selection of rows in a datagridview === I want to disable the selection of certain rows in a datagridview. It must be possible to remove the select property for one or more datagridview rows in a datagridview shown in a winform. The user must be able to select certain rows instead of all rows. (depending on a condition) Thankx,
0
71,429
09/16/2008 11:37:39
4,112
09/01/2008 20:44:37
28
1
Which Desktop Virtualization software runs most smoothly?
***Background:*** I'm running a full-time job and a part-time job in the weekends, and both my employers have supplied a laptop for me to work on. Of course I also have my powerful workstation at home to work from, and sometimes when I'm at the office at my weekend job (it's in another city) I'm working from yet another workstation. ***Problem:*** That makes a full 4 PC's I'm maintaining (software versions, licences and settings) just to do my work, and believe me, my list of prefered software is way too big. I want to setup a Virtual Desktop on my VMware server, so I can work from the same installation and same session no matter which PC I'm working from. Now I don't have the time and money to go through a full test of each setup, so I'd like to hear your experiences on the subject. ***Question:*** Should I use a VMware virtual workstation with some remote logon software (like [realVNC][1], [teamviewer][2], [logmein][3], whatever...) or should I invest in a full VDI system like [Sun][4] or [VMware][5] provide? [1]: http://www.realvnc.com/ [2]: http://www.teamviewer.com/ [3]: https://secure.logmein.com/ [4]: http://www.sun.com/software/vdi/index.jsp [5]: http://www.vmware.com/products/vdi/
system-administration
vdi
remote-desktop
null
null
null
open
Which Desktop Virtualization software runs most smoothly? === ***Background:*** I'm running a full-time job and a part-time job in the weekends, and both my employers have supplied a laptop for me to work on. Of course I also have my powerful workstation at home to work from, and sometimes when I'm at the office at my weekend job (it's in another city) I'm working from yet another workstation. ***Problem:*** That makes a full 4 PC's I'm maintaining (software versions, licences and settings) just to do my work, and believe me, my list of prefered software is way too big. I want to setup a Virtual Desktop on my VMware server, so I can work from the same installation and same session no matter which PC I'm working from. Now I don't have the time and money to go through a full test of each setup, so I'd like to hear your experiences on the subject. ***Question:*** Should I use a VMware virtual workstation with some remote logon software (like [realVNC][1], [teamviewer][2], [logmein][3], whatever...) or should I invest in a full VDI system like [Sun][4] or [VMware][5] provide? [1]: http://www.realvnc.com/ [2]: http://www.teamviewer.com/ [3]: https://secure.logmein.com/ [4]: http://www.sun.com/software/vdi/index.jsp [5]: http://www.vmware.com/products/vdi/
0
71,440
09/16/2008 11:41:03
51
08/01/2008 13:31:13
2,005
84
Set a UserControl Property to Not Show Up in VS Properties Window
I have a UserControl in my Asp.net project that has a public property. I do not want this property to show up in the Visual Studio Property Window when a user highlights an instance of the UserControl in the IDE. What attribute (or other method) should I use to prevent it from showing up? class MyControl : System.Web.UI.UserControl { // Attribute to prevent property from showing in VS Property Window? public bool SampleProperty { get; set; } // other stuff }
c#
asp.net
visual-studio
attributes
properties
null
open
Set a UserControl Property to Not Show Up in VS Properties Window === I have a UserControl in my Asp.net project that has a public property. I do not want this property to show up in the Visual Studio Property Window when a user highlights an instance of the UserControl in the IDE. What attribute (or other method) should I use to prevent it from showing up? class MyControl : System.Web.UI.UserControl { // Attribute to prevent property from showing in VS Property Window? public bool SampleProperty { get; set; } // other stuff }
0
71,469
09/16/2008 11:44:28
7,345
09/15/2008 13:35:27
1
0
Map of Enums and dependency injection in Spring 2.5
Let's assume we've got the following Java code: public class Maintainer { private Map<Enum, List<Listener>> map; public Maintainer() { this.map = new java.util.ConcurrentHashMap<Enum, List<Listener>>(); } public void addListener( Listener listener, Enum eventType ) { List<Listener> listeners; if( ( listeners = map.get( eventType ) ) == null ) { listeners = new java.util.concurrent.CopyOnWriteArrayList<Listener>(); map.put( eventType, listeners ); } listeners.add( listener ); } } This code snippet is nothing but a bit improved listener pattern where each listener is telling what type of event it is interested in, and the provided method maintains a concurrent map of these relationships. Initially, I wanted this method to be called via my own annotation framework, but bumped into a brick wall of various annotation limitations (e.g. you can't have _java.lang.Enum_ as annotation param, also there's a set of various classloader issues) therefore decided to use Spring. Could anyone tell me how do I Spring_ify_ this? What I want to achive is: 1. Define _Maintainer_ class as a Spring bean. 2. Make it so that all sorts of listeners would be able to register themselves to _Maintainer_ via XML by using _addListener_ method. Spring doc nor Google are very generous in examples. Is there a way to achieve this easily? Thanks in advance.
java
spring
enums
maps
null
null
open
Map of Enums and dependency injection in Spring 2.5 === Let's assume we've got the following Java code: public class Maintainer { private Map<Enum, List<Listener>> map; public Maintainer() { this.map = new java.util.ConcurrentHashMap<Enum, List<Listener>>(); } public void addListener( Listener listener, Enum eventType ) { List<Listener> listeners; if( ( listeners = map.get( eventType ) ) == null ) { listeners = new java.util.concurrent.CopyOnWriteArrayList<Listener>(); map.put( eventType, listeners ); } listeners.add( listener ); } } This code snippet is nothing but a bit improved listener pattern where each listener is telling what type of event it is interested in, and the provided method maintains a concurrent map of these relationships. Initially, I wanted this method to be called via my own annotation framework, but bumped into a brick wall of various annotation limitations (e.g. you can't have _java.lang.Enum_ as annotation param, also there's a set of various classloader issues) therefore decided to use Spring. Could anyone tell me how do I Spring_ify_ this? What I want to achive is: 1. Define _Maintainer_ class as a Spring bean. 2. Make it so that all sorts of listeners would be able to register themselves to _Maintainer_ via XML by using _addListener_ method. Spring doc nor Google are very generous in examples. Is there a way to achieve this easily? Thanks in advance.
0
71,475
09/16/2008 11:45:43
6,508
09/15/2008 11:38:58
110
11
Virtual Files are opened from Temporary Internet Files
I have created a namespace extension that is rooted under Desktop. The main purpose of the extension is to provide a virtual list of ZIP files that represent a list of configurable directories. When the user clicks one of the those items the contents of the related directory are zipped in place and the resulting ZIP file is stored in a cache folder. All this works well aside a minor issue. If we go to Windows Explorer, open the extension and double click an item the opened file is the one from the cache. [CORRECT] If on the other hand we open it by an Open Dialog the opened file is one from a Temporary Internet files directory. [INCORRECT] What do I have to change for the Open Dialog (when used for example trough notepad.exe) to open the file from the cache folder and not from Temporary Internet files. I have tried to send allways the qualified file name in IShellFolder::GetDisplayNameOf but without any luck.
c++
windows
shell32
null
null
null
open
Virtual Files are opened from Temporary Internet Files === I have created a namespace extension that is rooted under Desktop. The main purpose of the extension is to provide a virtual list of ZIP files that represent a list of configurable directories. When the user clicks one of the those items the contents of the related directory are zipped in place and the resulting ZIP file is stored in a cache folder. All this works well aside a minor issue. If we go to Windows Explorer, open the extension and double click an item the opened file is the one from the cache. [CORRECT] If on the other hand we open it by an Open Dialog the opened file is one from a Temporary Internet files directory. [INCORRECT] What do I have to change for the Open Dialog (when used for example trough notepad.exe) to open the file from the cache folder and not from Temporary Internet files. I have tried to send allways the qualified file name in IShellFolder::GetDisplayNameOf but without any luck.
0
71,488
09/16/2008 11:47:52
4,019
09/01/2008 11:56:49
6
2
Calling a .Net Assembly from a SQL Server 2005 Reporting Services report?
I've currently got a set of reports with a number of common functions sitting in code blocks within the .rdl files. This obviously presents a maintainability issue and I as wondering if anyone knew a way for these different reports to share a library of common code? Ideally I'd like to have a .Net Assembly attached to my Reporting Services project, which all of my reports can access and call functions from. This would save the headache of trying to update and redeploy about 100 reports every time a change needs to be made to a common function. Any suggestions?
mssql
reporting-services
null
null
null
null
open
Calling a .Net Assembly from a SQL Server 2005 Reporting Services report? === I've currently got a set of reports with a number of common functions sitting in code blocks within the .rdl files. This obviously presents a maintainability issue and I as wondering if anyone knew a way for these different reports to share a library of common code? Ideally I'd like to have a .Net Assembly attached to my Reporting Services project, which all of my reports can access and call functions from. This would save the headache of trying to update and redeploy about 100 reports every time a change needs to be made to a common function. Any suggestions?
0
71,491
09/16/2008 11:48:33
1,764
08/18/2008 13:24:03
56
2
How do you grab a text from webpage (Java)?
I'm planning to write a simple J2SE application to aggregate information from multiple web sources. The most difficult part, I think, is extraction of meaningful information from web pages. For example, I might want to extract a list of questions from stackoverflow, but I absolutely don't need that huge tag cloud or navbar. What technique/library would you advice?
java
html
null
null
null
null
open
How do you grab a text from webpage (Java)? === I'm planning to write a simple J2SE application to aggregate information from multiple web sources. The most difficult part, I think, is extraction of meaningful information from web pages. For example, I might want to extract a list of questions from stackoverflow, but I absolutely don't need that huge tag cloud or navbar. What technique/library would you advice?
0
71,513
09/16/2008 11:53:41
11,827
09/16/2008 11:36:33
1
0
Which version of Perl should I use on Windows?
The <a href="http://win32.perl.org/">win32.perl.org</a> web site provides references to several Perl distributions for MS Windows. For a long time I have been using ActivePerl from <a href="http://www.activestate.com/">ActiveState</a> but recently I switched to <a href="http://strawberryperl.com/">Strawberry Perl</a>. IMHO The only advantage that Active Perl still has over Strawberry Perl is the fact that it comes with Perl Tk which means its easy to install <a href="http://search.cpan.org/dist/Devel-ptkdb/">Devel::ptkdb</a> the graphical debugger. Other than that, I think Strawberry Perl has all the advantages.
windows
perl
winapi
debugging
null
null
open
Which version of Perl should I use on Windows? === The <a href="http://win32.perl.org/">win32.perl.org</a> web site provides references to several Perl distributions for MS Windows. For a long time I have been using ActivePerl from <a href="http://www.activestate.com/">ActiveState</a> but recently I switched to <a href="http://strawberryperl.com/">Strawberry Perl</a>. IMHO The only advantage that Active Perl still has over Strawberry Perl is the fact that it comes with Perl Tk which means its easy to install <a href="http://search.cpan.org/dist/Devel-ptkdb/">Devel::ptkdb</a> the graphical debugger. Other than that, I think Strawberry Perl has all the advantages.
0
71,518
09/16/2008 11:54:53
9,328
09/15/2008 18:26:05
8
0
Is there a custom FxCop rule that will detect unused PUBLIC methods?
I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect unused public methods?
fxcop
code-analysis
.net
null
null
null
open
Is there a custom FxCop rule that will detect unused PUBLIC methods? === I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect unused public methods?
0
71,525
09/16/2008 11:56:12
11,429
09/16/2008 07:55:20
23
1
Topology drawing tool
I need to draw some simple network topology charts, suggestions of some good tools appreciated. Edit: love freeware :-)
topology
null
null
null
null
null
open
Topology drawing tool === I need to draw some simple network topology charts, suggestions of some good tools appreciated. Edit: love freeware :-)
0
71,534
09/16/2008 11:57:47
7,685
09/15/2008 14:13:32
36
1
How can I efficiently build different versions of a component with one Makefile
I hope I haven't painted myself into a corner. I've gotten what seems to be most of the way through implementing a Makefile and I can't get the last bit to work. I hope someone here can suggest a technique to do what I'm trying to do. I have what I'll call "bills of materials" in version controlled files in a source repository and I build something like: make VER=x I want my Makefile to use $(VER) as a tag to retrieve a BOM from the repository, generate a dependency file to include in the Makefile, rescan including that dependency, and then build the product. More generally, my Makefile may have several targets -- A, B, C, etc. -- and I can build different versions of each so I might do: make A VER=x make B VER=y make C VER=z and the dependency file includes information about all three targets. However, creating the dependency file is somewhat expensive so if I do: make A VER=x ...make source (not BOM) changes... make A VER=x I'd really like the Makefile to not regenerate the dependency. And just to make things as complicated as possible, I might do: make A VER=x .. change version x of A's BOM and check it in make A VER=x so I need to regenerate the dependency on the second build. The check out messes up the timestamps used to regenerate the dependencies so I think I need a way for the dependency file to depend not on the BOM but on some indication that the BOM changed. What I've come to is making the BOM checkout happen in a .PHONY target (so it always gets checked out) and keeping track of the contents of the last checkout in a ".sig" file (if the signature file is missing or the contents are different than the signature of the new file, then the BOM changed), and having the dependency generation depend on the signatures). This is something like the following (though I've typed this in new, not copied it from my Makefile): BOMS = $(addsuffix .bom,$(MAKECMDGOALS) SIGS = $(subst .bom,.sig,$(BOMS)) DEP = include.d -include $(DEP) $(DEP) : $(SIGS) ... recreate dependency .PHONY: $(BOMS) $(BOMS): ...checkout TAG=$(VER) $@ ...if $(subst .bom,.sig,$@) doesn't exist ... create it ...else ... if new signature is different from file contents ... update signature file ... endif ...endif But the dependency generation doesn't get tripped when the signature changes. I think it's because because $(SIGS) isn't a target, so make doesn't notice when the $(BOMS) rule updates a signature. I tried having $(DEP) depend directly on the BOMs, checking the BOM out to a temporary directory and only copying it to the working directory if it changed and that had different problems. I tried creating a .sig:.bom rule and managing the timestamps of the checked out BOM with touch but that didn't work. Any GNU make wisdom would be appreciated. Thanks.
make
makefile
dependencies
null
null
null
open
How can I efficiently build different versions of a component with one Makefile === I hope I haven't painted myself into a corner. I've gotten what seems to be most of the way through implementing a Makefile and I can't get the last bit to work. I hope someone here can suggest a technique to do what I'm trying to do. I have what I'll call "bills of materials" in version controlled files in a source repository and I build something like: make VER=x I want my Makefile to use $(VER) as a tag to retrieve a BOM from the repository, generate a dependency file to include in the Makefile, rescan including that dependency, and then build the product. More generally, my Makefile may have several targets -- A, B, C, etc. -- and I can build different versions of each so I might do: make A VER=x make B VER=y make C VER=z and the dependency file includes information about all three targets. However, creating the dependency file is somewhat expensive so if I do: make A VER=x ...make source (not BOM) changes... make A VER=x I'd really like the Makefile to not regenerate the dependency. And just to make things as complicated as possible, I might do: make A VER=x .. change version x of A's BOM and check it in make A VER=x so I need to regenerate the dependency on the second build. The check out messes up the timestamps used to regenerate the dependencies so I think I need a way for the dependency file to depend not on the BOM but on some indication that the BOM changed. What I've come to is making the BOM checkout happen in a .PHONY target (so it always gets checked out) and keeping track of the contents of the last checkout in a ".sig" file (if the signature file is missing or the contents are different than the signature of the new file, then the BOM changed), and having the dependency generation depend on the signatures). This is something like the following (though I've typed this in new, not copied it from my Makefile): BOMS = $(addsuffix .bom,$(MAKECMDGOALS) SIGS = $(subst .bom,.sig,$(BOMS)) DEP = include.d -include $(DEP) $(DEP) : $(SIGS) ... recreate dependency .PHONY: $(BOMS) $(BOMS): ...checkout TAG=$(VER) $@ ...if $(subst .bom,.sig,$@) doesn't exist ... create it ...else ... if new signature is different from file contents ... update signature file ... endif ...endif But the dependency generation doesn't get tripped when the signature changes. I think it's because because $(SIGS) isn't a target, so make doesn't notice when the $(BOMS) rule updates a signature. I tried having $(DEP) depend directly on the BOMs, checking the BOM out to a temporary directory and only copying it to the working directory if it changed and that had different problems. I tried creating a .sig:.bom rule and managing the timestamps of the checked out BOM with touch but that didn't work. Any GNU make wisdom would be appreciated. Thanks.
0
71,561
09/16/2008 12:03:23
9,622
09/15/2008 19:23:58
1
1
How to simulate pressing enter in html text input with Selenium?
In a web interface, I've got a text field. When user enters text and accepts with enter, application performs an action. I wanted to test the behavior with Selenium. Unfortunately, invoking 'keypress' with chr(13) insert representation of the character into the field. Is there a way other then submitting the form? I'd like to mimic intended user interaction, without any shortcuts...
user-interface
selenium
null
null
null
null
open
How to simulate pressing enter in html text input with Selenium? === In a web interface, I've got a text field. When user enters text and accepts with enter, application performs an action. I wanted to test the behavior with Selenium. Unfortunately, invoking 'keypress' with chr(13) insert representation of the character into the field. Is there a way other then submitting the form? I'd like to mimic intended user interaction, without any shortcuts...
0
71,562
09/16/2008 12:03:30
2,384
08/22/2008 00:17:22
318
38
Make SQL Server index small numbers
We're using SQL Server 2005 in a project. The users of the system have the ability to search some objects by using 'keywords'. The way we implement this is by creating a full-text catalog for the significant columns in each table that may contain these 'keywords' and then using CONTAINS to search for the keywords the user inputs in the search box in that index. So, for example, let say you have the Movie object, and you want to let the user search for keywords in the title and body of the article, then we'd index both the Title and Plot column, and then do something like: SELECT * FROM Movies WHERE CONTAINS(Title, keywords) OR CONTAINS(Plot, keywords) (It's actually a bit more advanced than that, but nothing terribly complex) Some users are adding numbers to their search, so for example they want to find 'Terminator 2'. The problem here is that, as far as I know, by default SQL Server won't index short words, thus doing a search like this: SELECT * FROM Movies WHERE CONTAINS(Title, '"Terminator 2"') is actually equivalent to doing this: SELECT * FROM Movies WHERE CONTAINS(Title, '"Terminator"') <-- notice the missing '2' and we are getting a plethora of spurious results. Is there a way to force SQL Server to index small words? Preferably, I'd rather index only *numbers* like 1, 2, 21, etc. I don't know where to define the indexing criteria, or even if it's possible to be as specific as that. Any help will be appreciated! Thanks in advance.
full-text-search
sql-server
null
null
null
null
open
Make SQL Server index small numbers === We're using SQL Server 2005 in a project. The users of the system have the ability to search some objects by using 'keywords'. The way we implement this is by creating a full-text catalog for the significant columns in each table that may contain these 'keywords' and then using CONTAINS to search for the keywords the user inputs in the search box in that index. So, for example, let say you have the Movie object, and you want to let the user search for keywords in the title and body of the article, then we'd index both the Title and Plot column, and then do something like: SELECT * FROM Movies WHERE CONTAINS(Title, keywords) OR CONTAINS(Plot, keywords) (It's actually a bit more advanced than that, but nothing terribly complex) Some users are adding numbers to their search, so for example they want to find 'Terminator 2'. The problem here is that, as far as I know, by default SQL Server won't index short words, thus doing a search like this: SELECT * FROM Movies WHERE CONTAINS(Title, '"Terminator 2"') is actually equivalent to doing this: SELECT * FROM Movies WHERE CONTAINS(Title, '"Terminator"') <-- notice the missing '2' and we are getting a plethora of spurious results. Is there a way to force SQL Server to index small words? Preferably, I'd rather index only *numbers* like 1, 2, 21, etc. I don't know where to define the indexing criteria, or even if it's possible to be as specific as that. Any help will be appreciated! Thanks in advance.
0
71,563
09/16/2008 12:03:35
11,886
09/16/2008 12:03:35
1
0
Stored Procedures in MS-SQL Server 2005 and Oracle
How to translate MS-SQL Server 2005 stored procedures into Oracle stored procedures? A chart contrasting corresponding features from each environment with each other - would be helpful.
oracle
sql-server-2005
stored-procedure
null
null
null
open
Stored Procedures in MS-SQL Server 2005 and Oracle === How to translate MS-SQL Server 2005 stored procedures into Oracle stored procedures? A chart contrasting corresponding features from each environment with each other - would be helpful.
0
71,565
09/16/2008 12:03:49
984
08/11/2008 12:12:31
1
2
One method for creating several objects or several methods for creating single objects?
If I have the following: Public Class Product Public Id As Integer Public Name As String Public AvailableColours As List(Of Colour) Public AvailableSizes As List(Of Size) End Class and I want to get a list of products from the database and display them on a page along with their available sizes and colours, should I a) have one method (GetProductDetails()) which makes use of a single view that joins the relevant tables, that then loops through each row and creates the objects as required? or b) have several methods which are responsible only for creating one object each? eg. GetProducts(), GetAvailableColoursForProduct(id), etc I'm currently doing a) but as I add other other properties (multiple images, optional tassels, etc) the code is getting very messy (having to check that this isn't the same product as the previous row, has this colour already been added, etc) so I'm tempted to go with b) however, this will really ramp up the number of round trips to the database. Cheers
database
performance
null
null
null
null
open
One method for creating several objects or several methods for creating single objects? === If I have the following: Public Class Product Public Id As Integer Public Name As String Public AvailableColours As List(Of Colour) Public AvailableSizes As List(Of Size) End Class and I want to get a list of products from the database and display them on a page along with their available sizes and colours, should I a) have one method (GetProductDetails()) which makes use of a single view that joins the relevant tables, that then loops through each row and creates the objects as required? or b) have several methods which are responsible only for creating one object each? eg. GetProducts(), GetAvailableColoursForProduct(id), etc I'm currently doing a) but as I add other other properties (multiple images, optional tassels, etc) the code is getting very messy (having to check that this isn't the same product as the previous row, has this colour already been added, etc) so I'm tempted to go with b) however, this will really ramp up the number of round trips to the database. Cheers
0
71,566
09/16/2008 12:04:01
11,795
09/16/2008 11:21:09
1
0
What is the bes guide to learn XML
I'm learning XML, currently of Wikibooks, but that is kinda huge and not oversee-able... anybody know a better place?
xml
null
null
null
null
null
open
What is the bes guide to learn XML === I'm learning XML, currently of Wikibooks, but that is kinda huge and not oversee-able... anybody know a better place?
0
71,578
09/16/2008 12:06:26
205,368
09/16/2008 12:06:26
1
0
After connection ona access database encode data from iso-8859-2 to utf-8 (ASP.NET)
I have database in iso-8859-2 format. But I need to create XML in utf-8. I almost don't know anything about asp.net so I need HELP! I have database in iso-8859-2, but I need to create xml file in utf-8. That means tha I must encode database before prinitng in UTF-8! Thanks In PHP goes like this: [code] db_connect(); mysql_query("SET NAMES 'UTF8'"); mysql_query("SET character_set_client='UTF8'"); [/code] This is my asp.net code for database connection [code] 'CONNECTION TO DATABASE dim dbconn,sql,dbcomm dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("../baze/test.mdb")) dbconn.Open() sql="SELECT * FROM nekretnine, tipovinekretnina WHERE nekretnine.idtipnekretnine = tipovinekretnina.idtipnekretnine ORDER BY nekretnine.idnekretnine" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() while dbread.Read() [/code] Where and how do I now encode? Thanks
asp.net
access
null
null
null
null
open
After connection ona access database encode data from iso-8859-2 to utf-8 (ASP.NET) === I have database in iso-8859-2 format. But I need to create XML in utf-8. I almost don't know anything about asp.net so I need HELP! I have database in iso-8859-2, but I need to create xml file in utf-8. That means tha I must encode database before prinitng in UTF-8! Thanks In PHP goes like this: [code] db_connect(); mysql_query("SET NAMES 'UTF8'"); mysql_query("SET character_set_client='UTF8'"); [/code] This is my asp.net code for database connection [code] 'CONNECTION TO DATABASE dim dbconn,sql,dbcomm dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("../baze/test.mdb")) dbconn.Open() sql="SELECT * FROM nekretnine, tipovinekretnina WHERE nekretnine.idtipnekretnine = tipovinekretnina.idtipnekretnine ORDER BY nekretnine.idnekretnine" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() while dbread.Read() [/code] Where and how do I now encode? Thanks
0
71,585
09/16/2008 12:08:21
7,135
09/15/2008 13:13:58
11
1
How to get parametrized Class instance
Since generics were introduced, Class is parametrized, so that List.class produces Class&lt;List>. This is clear. What I am not able to figure out is how to get a instance of Class of type which is parametrized itself, i.e. Class&lt;List&lt;String>>. Like in this snippet: public class GenTest { static <T> T instantiate(Class<T> clazz) throws Exception { return clazz.newInstance(); } public static void main(String[] args) throws Exception { // Is there a way to avoid waring on the line below // without using @SuppressWarnings("unchecked")? // ArrayList.class is Class<ArrayList>, but I would like to // pass in Class<ArrayList<String>> ArrayList<String> l = GenTest.instantiate(ArrayList.class); } } I run into variations of this problem quite often and I still don't know, if I just miss something, or if there is really no better way. Thanks for suggestions.
java
generics
null
null
null
null
open
How to get parametrized Class instance === Since generics were introduced, Class is parametrized, so that List.class produces Class&lt;List>. This is clear. What I am not able to figure out is how to get a instance of Class of type which is parametrized itself, i.e. Class&lt;List&lt;String>>. Like in this snippet: public class GenTest { static <T> T instantiate(Class<T> clazz) throws Exception { return clazz.newInstance(); } public static void main(String[] args) throws Exception { // Is there a way to avoid waring on the line below // without using @SuppressWarnings("unchecked")? // ArrayList.class is Class<ArrayList>, but I would like to // pass in Class<ArrayList<String>> ArrayList<String> l = GenTest.instantiate(ArrayList.class); } } I run into variations of this problem quite often and I still don't know, if I just miss something, or if there is really no better way. Thanks for suggestions.
0
71,590
09/16/2008 12:08:45
4,639
09/04/2008 23:07:22
205
3
How to display the progress of a server script in jQuery?
With this code I can show an animated gif while the server script is running: <pre><code>function calculateTotals() { $('#results').load('getResults.php', null, showStatusFinished); showLoadStatus(); } function showLoadStatus() { $('#status').html('<img src="loading.gif"/>'); } function showStatusFinished() { $('#status').html('Finished.'); } </code></pre> However, I would like to display a status of how far along the script is, e.g. "Processing line 342 of 20000..." and have it count up until it is finished. How can I do that?
jquery
ajax
null
null
null
null
open
How to display the progress of a server script in jQuery? === With this code I can show an animated gif while the server script is running: <pre><code>function calculateTotals() { $('#results').load('getResults.php', null, showStatusFinished); showLoadStatus(); } function showLoadStatus() { $('#status').html('<img src="loading.gif"/>'); } function showStatusFinished() { $('#status').html('Finished.'); } </code></pre> However, I would like to display a status of how far along the script is, e.g. "Processing line 342 of 20000..." and have it count up until it is finished. How can I do that?
0
71,599
09/16/2008 12:10:59
6,583
09/15/2008 12:18:30
89
4
How to get IKVM to build in Visual Studio 2008?
I've downloaded the IKVM sources (http://www.ikvm.net/) from http://sourceforge.net/cvs/?group_id=69637 Now I'm trying to get it to build in Visual Studio 2008 and am stuck. Does anyone know of documentation of how to build the thing, or could even give me pointers? I've tried opening the ikvm8.sln, which opens all the projects, but trying to build the solution leads to a bunch of "type or namespace could not be found" errors. As you can probably guess I'm no Visual Studio expert, but rather am used to working with Java in Eclipse. So again, I'm looking for either: step-by-step instructions or a link to documentation on how to build IKVM in Visual Studio. Let me know if you need any more info. Thanks for any help!
ikvm
c#
visual-studio-2008
null
null
null
open
How to get IKVM to build in Visual Studio 2008? === I've downloaded the IKVM sources (http://www.ikvm.net/) from http://sourceforge.net/cvs/?group_id=69637 Now I'm trying to get it to build in Visual Studio 2008 and am stuck. Does anyone know of documentation of how to build the thing, or could even give me pointers? I've tried opening the ikvm8.sln, which opens all the projects, but trying to build the solution leads to a bunch of "type or namespace could not be found" errors. As you can probably guess I'm no Visual Studio expert, but rather am used to working with Java in Eclipse. So again, I'm looking for either: step-by-step instructions or a link to documentation on how to build IKVM in Visual Studio. Let me know if you need any more info. Thanks for any help!
0
71,602
09/16/2008 12:11:23
8,741
09/15/2008 16:46:16
1
0
Referenced Assemblies in Web Site
Am I correct in assuming that I always need to explicitly deploy referenced assemblies when their source changes?
asp.net
null
null
null
null
null
open
Referenced Assemblies in Web Site === Am I correct in assuming that I always need to explicitly deploy referenced assemblies when their source changes?
0
71,608
09/16/2008 12:12:34
4,093
09/01/2008 18:31:02
1
0
How do you set up your .NET development tree?
How do you set up your .NET development tree? I use a structure like this: -projectname --config (where I put the configuration files) --doc (where I put all the document concerning the project: e-mails, documentation) --tools (all the tools I use: Nunit, Moq) --lib (all the libraries used by the solution: ninject or autofac) --src ---app (sourcefiles) ---test (unittests) solutionfile.sln build.csproj The sign "-" marks directories. I think it's very important to have a good structure on this stuff. You should be able to get the source code from the source control system and then build the solution without opening Visual Studio or installing any third party libraries. Any thoughts on this?
c#
.net
development-environment
null
null
null
open
How do you set up your .NET development tree? === How do you set up your .NET development tree? I use a structure like this: -projectname --config (where I put the configuration files) --doc (where I put all the document concerning the project: e-mails, documentation) --tools (all the tools I use: Nunit, Moq) --lib (all the libraries used by the solution: ninject or autofac) --src ---app (sourcefiles) ---test (unittests) solutionfile.sln build.csproj The sign "-" marks directories. I think it's very important to have a good structure on this stuff. You should be able to get the source code from the source control system and then build the solution without opening Visual Studio or installing any third party libraries. Any thoughts on this?
0
71,615
09/16/2008 12:14:10
4,110
09/01/2008 20:20:54
1
0
Comparing two CVS revisions in Eclipse
It finally started to annoy me enough to ask this question: how do I do a basic diff between two revisions of a file in CVS? Usually I want to compare the latest revision and some random old one. I'm using the Eclipse CVS plugin. When I use "compare with->Another branch or version..." from the selected file's (latest revision from HEAD or another branch) context menu, I get a list of branches, tags and dates but not revisions. Usually I have just created a date which I know is far enough in the past so I can compare the needed revisions but I thought that there must be a better way.
eclipse
cvs
null
null
null
null
open
Comparing two CVS revisions in Eclipse === It finally started to annoy me enough to ask this question: how do I do a basic diff between two revisions of a file in CVS? Usually I want to compare the latest revision and some random old one. I'm using the Eclipse CVS plugin. When I use "compare with->Another branch or version..." from the selected file's (latest revision from HEAD or another branch) context menu, I get a list of branches, tags and dates but not revisions. Usually I have just created a date which I know is far enough in the past so I can compare the needed revisions but I thought that there must be a better way.
0
71,625
09/16/2008 12:15:45
1,870
08/19/2008 00:42:51
1,730
36
static inner interface in Java - why?
I have just found a static inner interface in our code-base. class Foo { public static interface Bar { /* snip */ } /* snip */ } I have never seen this before. The original developer is out of reach. Therefore I have to ask SO: What are the semantics behind a static interface? What would change, if I remove the `static`? Why would anyone do this?
java
static
interface
null
null
null
open
static inner interface in Java - why? === I have just found a static inner interface in our code-base. class Foo { public static interface Bar { /* snip */ } /* snip */ } I have never seen this before. The original developer is out of reach. Therefore I have to ask SO: What are the semantics behind a static interface? What would change, if I remove the `static`? Why would anyone do this?
0
71,643
09/16/2008 12:18:13
6,992
09/15/2008 12:58:25
24
0
A Perl script to check for a file size and add that result in an Excel spreadsheet?
Currently I monitoring a particular file with a simple shell one-liner: filesize=$(ls -lah somefile | awk '{print $5}') I'm aware that Perl has some nice modules to deal with Excel files so the idea is to, let's say, run that check daily, perhaps with cron, and write the result on a spreadsheet for further statistical use.
perl
unix
shell
ksh
korn
null
open
A Perl script to check for a file size and add that result in an Excel spreadsheet? === Currently I monitoring a particular file with a simple shell one-liner: filesize=$(ls -lah somefile | awk '{print $5}') I'm aware that Perl has some nice modules to deal with Excel files so the idea is to, let's say, run that check daily, perhaps with cron, and write the result on a spreadsheet for further statistical use.
0
71,644
09/16/2008 12:18:24
9,938
09/15/2008 20:31:28
93
0
What is the best way to handle authentication in ASP.NET MVC with a Universe database?
We use an IBM database known as Universe that holds all of our user id's, passwords, and profile information in a table called USERINFO. Can I use the Membership Provider to connect to this database and authenticate the user? The database access is actually through a web service since we don't have a direct connect to the database. We have a web service method called GetUserInfo which accepts a parameter of username. The method will return the password and profile information.
c#
asp.net
mvc
ibm
universe
null
open
What is the best way to handle authentication in ASP.NET MVC with a Universe database? === We use an IBM database known as Universe that holds all of our user id's, passwords, and profile information in a table called USERINFO. Can I use the Membership Provider to connect to this database and authenticate the user? The database access is actually through a web service since we don't have a direct connect to the database. We have a web service method called GetUserInfo which accepts a parameter of username. The method will return the password and profile information.
0
71,647
09/16/2008 12:18:58
1,052
08/11/2008 21:48:53
3
1
ASP.Net Session_Start event not firing
I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working? The application worked fine on my Windows XP development machine, but stopped working when deployed to the server (Win Server 2003/IIS 6/ASP.Net 2.0). I'm not sure if this is relevant, but the server also hosts a SharePoint installation (WSS 3.0) which I know does change some settings at the default web site level.
iis
session
global-asax
null
null
null
open
ASP.Net Session_Start event not firing === I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working? The application worked fine on my Windows XP development machine, but stopped working when deployed to the server (Win Server 2003/IIS 6/ASP.Net 2.0). I'm not sure if this is relevant, but the server also hosts a SharePoint installation (WSS 3.0) which I know does change some settings at the default web site level.
0
71,694
09/16/2008 12:25:57
11,930
09/16/2008 12:25:56
1
0
Programatically handling the Vista Sidebar
Is there an api to bring the vista side bar to the front (Win+Space) programatically and to do the reverse (send it to the back ground).
c#
windows-vista
sidebar
null
null
null
open
Programatically handling the Vista Sidebar === Is there an api to bring the vista side bar to the front (Win+Space) programatically and to do the reverse (send it to the back ground).
0
71,715
09/16/2008 12:29:15
5,595
09/10/2008 14:30:36
150
11
Integration with Siebel On-Premise CRM?
Has anyone ever integrated an external web application with Siebel On-Premise CRM? Note that I'm not talking about Siebel On-Demand SaaS, but their behind-the-firewall product. Specifically, I'm trying to achieve two-way synchronization of CRM objects (contacts, accounts, sales opportunities) between my web application and a customer's internal Siebel setup. Are there any well-known techniques for initiating or receiving external connections from a Siebel On-Premise installation.
integration
crm
siebel
null
null
null
open
Integration with Siebel On-Premise CRM? === Has anyone ever integrated an external web application with Siebel On-Premise CRM? Note that I'm not talking about Siebel On-Demand SaaS, but their behind-the-firewall product. Specifically, I'm trying to achieve two-way synchronization of CRM objects (contacts, accounts, sales opportunities) between my web application and a customer's internal Siebel setup. Are there any well-known techniques for initiating or receiving external connections from a Siebel On-Premise installation.
0
71,720
09/16/2008 12:29:59
9,631
09/15/2008 19:25:27
1
4
How do I make the lights stay fixed in the world with Direct3D
I've been using OpenGL for years, but after trying to use D3D for the first time, I wasted a significant amount of time trying figure out how to make my scene lights stay fixed in the world rather than fixed on my objects. In OpenGL light positions get transformed just like everything else with the MODELVIEW matrix, so to get lights fixed in space, you set up your MODELVIEW the way you want for the lights, and call glLightPosition then set it up for your geometry and make geometry calls. In D3D that doesn't help. (Comment -- I eventually figured out the answer to this one, but I couldn't find anything helpful on the web or in the MSDN. It would have saved me a few hours of head scratching if I could have found this answer then.)
directx
d3d
lighting
lights
null
null
open
How do I make the lights stay fixed in the world with Direct3D === I've been using OpenGL for years, but after trying to use D3D for the first time, I wasted a significant amount of time trying figure out how to make my scene lights stay fixed in the world rather than fixed on my objects. In OpenGL light positions get transformed just like everything else with the MODELVIEW matrix, so to get lights fixed in space, you set up your MODELVIEW the way you want for the lights, and call glLightPosition then set it up for your geometry and make geometry calls. In D3D that doesn't help. (Comment -- I eventually figured out the answer to this one, but I couldn't find anything helpful on the web or in the MSDN. It would have saved me a few hours of head scratching if I could have found this answer then.)
0
71,722
09/16/2008 12:30:07
11,799
09/16/2008 11:25:36
1
4
Branching and Merging in VSTS
How effective is merging when folders and projects have been renamed in your solution?
vs2008
vs2005
visual-studio-team-system
null
null
null
open
Branching and Merging in VSTS === How effective is merging when folders and projects have been renamed in your solution?
0
9,617,536
03/08/2012 12:16:56
1,221,246
02/20/2012 14:10:06
25
1
Why datepicker doesn't display in my MVC 3 Website?
I'm following this [tutorial][1] to display a datepicker when I click into a textbox... But the date picker doesn't display... **Model Class (Reservation):** [Required(ErrorMessage = "Date requise.")] [Display(Name = "Date")] [Column("Date")] [DataType(DataType.DateTime)] public DateTime Date { get; set; } **EditorHookup.js** /// <reference path="~/Scripts/jquery-1.5.1.js" /> /// <reference path="~/Scripts/jquery-ui-1.8.11.js" /> $(document).ready(function () { $('.date').datepicker({ dateFormat: "dd/mm/yy" }); }); **Partial View (Date.cshtml)** @inherits System.Web.Mvc.WebViewPage<System.DateTime?> @model DateTime @Html.TextBox("", Model.ToString("dd/MM/yyyy"), new{@class="date"}) ** TODO Wire up the date picker! ** **My view** @model TennisOnline.Models.Reservation @{ ViewBag.Title = "Create"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Create</h2> <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script> <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" /> <script src="@Url.Content("~/Scripts/EditorHookup.js")" type="text/javascript"></script> @using (Html.BeginForm()) { @Html.ValidationSummary(true) <fieldset> <legend>Reservation</legend> <div class="editor-label"> @Html.LabelFor(model => model.Date) </div> <div class="editor-field"> @Html.EditorFor(model => model.Date) @Html.ValidationMessageFor(model => model.Date) </div> So, do you know why the date picker doesn't display please ? Thanks in advance [1]: http://blogs.msdn.com/b/stuartleeks/archive/2011/01/25/asp-net-mvc-3-integrating-with-the-jquery-ui-date-picker-and-adding-a-jquery-validate-date-range-validator.aspx
c#
asp.net-mvc-3
entity-framework-4.1
datepicker
null
null
open
Why datepicker doesn't display in my MVC 3 Website? === I'm following this [tutorial][1] to display a datepicker when I click into a textbox... But the date picker doesn't display... **Model Class (Reservation):** [Required(ErrorMessage = "Date requise.")] [Display(Name = "Date")] [Column("Date")] [DataType(DataType.DateTime)] public DateTime Date { get; set; } **EditorHookup.js** /// <reference path="~/Scripts/jquery-1.5.1.js" /> /// <reference path="~/Scripts/jquery-ui-1.8.11.js" /> $(document).ready(function () { $('.date').datepicker({ dateFormat: "dd/mm/yy" }); }); **Partial View (Date.cshtml)** @inherits System.Web.Mvc.WebViewPage<System.DateTime?> @model DateTime @Html.TextBox("", Model.ToString("dd/MM/yyyy"), new{@class="date"}) ** TODO Wire up the date picker! ** **My view** @model TennisOnline.Models.Reservation @{ ViewBag.Title = "Create"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Create</h2> <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script> <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" /> <script src="@Url.Content("~/Scripts/EditorHookup.js")" type="text/javascript"></script> @using (Html.BeginForm()) { @Html.ValidationSummary(true) <fieldset> <legend>Reservation</legend> <div class="editor-label"> @Html.LabelFor(model => model.Date) </div> <div class="editor-field"> @Html.EditorFor(model => model.Date) @Html.ValidationMessageFor(model => model.Date) </div> So, do you know why the date picker doesn't display please ? Thanks in advance [1]: http://blogs.msdn.com/b/stuartleeks/archive/2011/01/25/asp-net-mvc-3-integrating-with-the-jquery-ui-date-picker-and-adding-a-jquery-validate-date-range-validator.aspx
0
9,617,558
03/08/2012 12:18:36
1,225,531
02/22/2012 10:23:37
1
0
content in form is not selectable in extjs
I have create form in extjs, the content in form is not at all selectable. Also when i click in form it shows draggable anchor icon. I want all the text field title and headers should be selectable.
forms
extjs
null
null
null
null
open
content in form is not selectable in extjs === I have create form in extjs, the content in form is not at all selectable. Also when i click in form it shows draggable anchor icon. I want all the text field title and headers should be selectable.
0
9,617,560
03/08/2012 12:18:42
1,223,154
02/21/2012 10:55:29
26
2
TextBox Values on ReportViewer
i would like to know if it is possible when creating a rdlc report use values from TextBoxes with a value already, for exemple i have a textbox bound to an expression: =Fields!PrijsPerStuk.Value * 100 \ Fields!KortingPercentage.Value Now thats textbox1 for exemple and on TextBox2 i would like to show something like: =Fileds!PrijsPerStuk.Value - TextBox1.Value Im not able to do like that, but is there anyway to make it possible? or do i need to change my Query in a way that i get a field with the value of textbox1?!
wpf
vb.net
reportviewer
null
null
null
open
TextBox Values on ReportViewer === i would like to know if it is possible when creating a rdlc report use values from TextBoxes with a value already, for exemple i have a textbox bound to an expression: =Fields!PrijsPerStuk.Value * 100 \ Fields!KortingPercentage.Value Now thats textbox1 for exemple and on TextBox2 i would like to show something like: =Fileds!PrijsPerStuk.Value - TextBox1.Value Im not able to do like that, but is there anyway to make it possible? or do i need to change my Query in a way that i get a field with the value of textbox1?!
0
9,617,562
03/08/2012 12:18:50
1,256,960
03/08/2012 12:07:59
1
0
Can I set the background color in a Firefox extension's popup notification?
I am using the popup notification system described in the tutorial https://developer.mozilla.org/en/Using_popup_notifications . It is possible to change the background-color or text-color of the popup? Thanks.
javascript
firefox
extension
popup
xul
null
open
Can I set the background color in a Firefox extension's popup notification? === I am using the popup notification system described in the tutorial https://developer.mozilla.org/en/Using_popup_notifications . It is possible to change the background-color or text-color of the popup? Thanks.
0
9,617,563
03/08/2012 12:18:56
599,816
02/02/2011 10:22:31
10
0
XSLT - last character of transformation
I would like to know if it is possible to get during transformation last transformed (output) character still during transformation. For example while transforming <emphasis> node from docbook to text I want to know if there was any new line character output before starting transforming <emphasis> node. Thanks a lot for any help
xslt
transformation
null
null
null
null
open
XSLT - last character of transformation === I would like to know if it is possible to get during transformation last transformed (output) character still during transformation. For example while transforming <emphasis> node from docbook to text I want to know if there was any new line character output before starting transforming <emphasis> node. Thanks a lot for any help
0
9,617,567
03/08/2012 12:19:06
1,256,949
03/08/2012 12:01:27
1
0
Form On Error - Access 2007
I am trying to improve my error handling code. Using Access (2007) VBA: When an error occurs in the forms On Error handler the variable DataErr gives me the error code but I have no access to the Err object. Access to the Err object allows me to parse the error description and give a detailed custom message (eg error code 3314 exactly which field is causing the error) to the user How can I have access to the Err object from the form's OnError handler? Not only the error code Note: I can access the Err object from code attached to the "save" and "delete" buttons on my form and give customised messages for duplicate keys, missing required fields, linked reecords that can not be deleted,etc. This works fine if the user clicks these button. But if the user decides to select the next or previous row - which causes a save to occur - my code is not called and the user gets shown the standard MS Access error message Clemens
vba
access
onerror
null
null
null
open
Form On Error - Access 2007 === I am trying to improve my error handling code. Using Access (2007) VBA: When an error occurs in the forms On Error handler the variable DataErr gives me the error code but I have no access to the Err object. Access to the Err object allows me to parse the error description and give a detailed custom message (eg error code 3314 exactly which field is causing the error) to the user How can I have access to the Err object from the form's OnError handler? Not only the error code Note: I can access the Err object from code attached to the "save" and "delete" buttons on my form and give customised messages for duplicate keys, missing required fields, linked reecords that can not be deleted,etc. This works fine if the user clicks these button. But if the user decides to select the next or previous row - which causes a save to occur - my code is not called and the user gets shown the standard MS Access error message Clemens
0
9,617,570
03/08/2012 12:19:09
825,968
07/02/2011 10:31:03
23
0
Put email multiple folder in case of multiple recipients using procmail
I'm going to build an email system at home and I'm subscribed to a lot of mailing list. The emails fetched to my local machine by fetchmail and filtered by procmail. But, there is a situation which is not possible to solve with my current knowledge. I have been googling for 2-3 hours to find a solution without any result. What I want is that, I get an email with multiple recipients and I would like to copy this email to different folders. Here is an example: Cc: [email protected], [email protected] I would like to put this email into linux-kernel and linux-kernel-janitors folder. How can I do it by procmail? Thanks in advance!
procmail
.procmailrc
null
null
null
null
open
Put email multiple folder in case of multiple recipients using procmail === I'm going to build an email system at home and I'm subscribed to a lot of mailing list. The emails fetched to my local machine by fetchmail and filtered by procmail. But, there is a situation which is not possible to solve with my current knowledge. I have been googling for 2-3 hours to find a solution without any result. What I want is that, I get an email with multiple recipients and I would like to copy this email to different folders. Here is an example: Cc: [email protected], [email protected] I would like to put this email into linux-kernel and linux-kernel-janitors folder. How can I do it by procmail? Thanks in advance!
0
9,617,571
03/08/2012 12:19:19
690,851
04/04/2011 09:33:17
347
3
What's the use of ImageButton
When a background can be set on a Button then what is the use of an ImageButton?
android
android-layout
null
null
null
null
open
What's the use of ImageButton === When a background can be set on a Button then what is the use of an ImageButton?
0
9,617,574
03/08/2012 12:19:25
846,226
07/15/2011 10:10:50
53
0
Doctrine2 Atomic operation through listener
i'm implementing a listener which creates a new `Foo`(); object each time a new `Bar`(); object is persisted into the database, does any one knows how should i make it `atomic`? I mean, `both` objects must be persisted or `none` of them. Thanks in advanced. :D
symfony-2.0
doctrine2
null
null
null
null
open
Doctrine2 Atomic operation through listener === i'm implementing a listener which creates a new `Foo`(); object each time a new `Bar`(); object is persisted into the database, does any one knows how should i make it `atomic`? I mean, `both` objects must be persisted or `none` of them. Thanks in advanced. :D
0
9,617,328
03/08/2012 12:00:45
663,011
03/16/2011 17:45:22
699
0
Try to get the first element from the empty collection
public class demo { public static void main(final String args[]) { final List<String> list = Collections.EMPTY_LIST; System.out.println(list.get(0)); } } What happens and why. What is the turaround.?
java
collections
null
null
null
03/09/2012 05:24:15
not a real question
Try to get the first element from the empty collection === public class demo { public static void main(final String args[]) { final List<String> list = Collections.EMPTY_LIST; System.out.println(list.get(0)); } } What happens and why. What is the turaround.?
1
9,617,577
03/08/2012 12:19:41
1,256,477
03/08/2012 07:41:22
1
0
progressDialog and wait for a signal
I want look for my GPS signal, while it's looking for it I have a ProgressDialog, but, it showed when the task is finished: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); DialogInterface.OnCancelListener dialogCancel = new DialogInterface.OnCancelListener() { public void onCancel(DialogInterface dialog) { Toast.makeText(getBaseContext(), "no encotnrada", Toast.LENGTH_LONG).show(); // handler.sendEmptyMessage(0); } }; pd = ProgressDialog.show(this, "buscando", "gps", true, true, dialogCancel); while(currentLocation == null){ } Thread thread = new Thread(this); thread.start(); } in run() I look for my currentLocation value. How can I wait for this signal in order to show the dialog? Thank you in advance
android
null
null
null
null
null
open
progressDialog and wait for a signal === I want look for my GPS signal, while it's looking for it I have a ProgressDialog, but, it showed when the task is finished: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); DialogInterface.OnCancelListener dialogCancel = new DialogInterface.OnCancelListener() { public void onCancel(DialogInterface dialog) { Toast.makeText(getBaseContext(), "no encotnrada", Toast.LENGTH_LONG).show(); // handler.sendEmptyMessage(0); } }; pd = ProgressDialog.show(this, "buscando", "gps", true, true, dialogCancel); while(currentLocation == null){ } Thread thread = new Thread(this); thread.start(); } in run() I look for my currentLocation value. How can I wait for this signal in order to show the dialog? Thank you in advance
0
71,740
09/16/2008 12:32:56
11,946
09/16/2008 12:32:56
1
0
Java Applet crashes .NET Webbrowsercontrol
in our application we have a Java applet running inside a .NET browser control. It is a know issue from Sun that running an applet this way may crash the control. Has anyone come across the same problem and solved it? Atm we are running the applet in a Webbrowser but we need to run it in a browser control. Thx for any help.
java
browser
applet
control
null
null
open
Java Applet crashes .NET Webbrowsercontrol === in our application we have a Java applet running inside a .NET browser control. It is a know issue from Sun that running an applet this way may crash the control. Has anyone come across the same problem and solved it? Atm we are running the applet in a Webbrowser but we need to run it in a browser control. Thx for any help.
0
71,746
09/16/2008 12:33:57
11,547
09/16/2008 09:04:45
11
1
Integration testing with White
Has anyone got experience with the white framework? [www.codeplex.com/white][1] ? I'm thinking about using it for the next project for basic smoke tests of our windows client. I'd like some advice on articles or your own experiences. Thanks. [1]: http://www.codeplex.com/white
winforms
testing
integration-testing
white
null
null
open
Integration testing with White === Has anyone got experience with the white framework? [www.codeplex.com/white][1] ? I'm thinking about using it for the next project for basic smoke tests of our windows client. I'd like some advice on articles or your own experiences. Thanks. [1]: http://www.codeplex.com/white
0
71,749
09/16/2008 12:35:07
7,028
09/15/2008 13:02:20
165
22
Migrating to Team System from SVN & Cruise Control.NET and back
I was wondering if anyone tried migrating between TS and SVN/CC. What I mean by migrating is importing and exporting the repository between source control systems without losing the history. How good are the tools to migrate to and from VSTS? I am also interested in knowing any opinion regarding using Team System from users of SVN and continuous integration.
svn
visual-studio-team-system
cruisecontrol.net
migration
war-stories
null
open
Migrating to Team System from SVN & Cruise Control.NET and back === I was wondering if anyone tried migrating between TS and SVN/CC. What I mean by migrating is importing and exporting the repository between source control systems without losing the history. How good are the tools to migrate to and from VSTS? I am also interested in knowing any opinion regarding using Team System from users of SVN and continuous integration.
0
71,756
09/16/2008 12:36:16
184
08/03/2008 05:34:19
2,360
47
Is there some way to inject SQL even if the ' character is deleted?
If from an SQL query I remove all the ' characters, is there some other way to do an SQL injection attack on the database? How can it be done? Can anyone give me examples?
sql
database
sql-injection
null
null
null
open
Is there some way to inject SQL even if the ' character is deleted? === If from an SQL query I remove all the ' characters, is there some other way to do an SQL injection attack on the database? How can it be done? Can anyone give me examples?
0
71,766
09/16/2008 12:38:14
11,961
09/16/2008 12:38:14
1
0
Class/Static Constants in Delphi
In Delphi, I want to be able to create an private object that's associated with a class, and access it from all instances of that class. In Java, I'd use: public class MyObject { private static final MySharedObject mySharedObjectInstance = new MySharedObject(); } Or, if MySharedObject needed more complicated initialization, in Java I could instantiate and initialize it in a static initializer block. (You might have guessed... I know my Java but I'm rather new to Delphi...) Anyway, I don't want to instantiate a new MySharedObject each time I create an instance of MyObject, but I do want a MySharedObject to be accessible from each instance of MyObject. (It's actually logging that has spurred me to try to figure this out - I'm using Log4D and I want to store a TLogLogger as a class variable for each class that has logging functionality.) What's the neatest way to do something like this in Delphi?
delphi
null
null
null
null
null
open
Class/Static Constants in Delphi === In Delphi, I want to be able to create an private object that's associated with a class, and access it from all instances of that class. In Java, I'd use: public class MyObject { private static final MySharedObject mySharedObjectInstance = new MySharedObject(); } Or, if MySharedObject needed more complicated initialization, in Java I could instantiate and initialize it in a static initializer block. (You might have guessed... I know my Java but I'm rather new to Delphi...) Anyway, I don't want to instantiate a new MySharedObject each time I create an instance of MyObject, but I do want a MySharedObject to be accessible from each instance of MyObject. (It's actually logging that has spurred me to try to figure this out - I'm using Log4D and I want to store a TLogLogger as a class variable for each class that has logging functionality.) What's the neatest way to do something like this in Delphi?
0
71,775
09/16/2008 12:39:49
184
08/03/2008 05:34:19
2,365
47
Can Unix shell script be used to manipulate databases?
I have to read data from some files and insert the data into different tables in a database. Is Unix shell script powerful enough to do the job? Is it easy to do the job in shell script or should I go about doing this in Java?
java
unix
shell
null
null
null
open
Can Unix shell script be used to manipulate databases? === I have to read data from some files and insert the data into different tables in a database. Is Unix shell script powerful enough to do the job? Is it easy to do the job in shell script or should I go about doing this in Java?
0
71,776
09/16/2008 12:40:11
11,950
09/16/2008 12:34:32
1
0
Grabbing every 4th file
I have 16,000 jpg's from a webcan screeb grabber that I let run for a year pointing into the back year. I want to find a way to grab every 4th image so that I can then put them into another directory so I can later turn them into a movie. Is there a simple bash script or other way under linux that I can do this. They are named like so...... frame-44558.jpg frame-44559.jpg frame-44560.jpg frame-44561.jpg Thanks from a newb needing help.
bash
scripting
null
null
null
null
open
Grabbing every 4th file === I have 16,000 jpg's from a webcan screeb grabber that I let run for a year pointing into the back year. I want to find a way to grab every 4th image so that I can then put them into another directory so I can later turn them into a movie. Is there a simple bash script or other way under linux that I can do this. They are named like so...... frame-44558.jpg frame-44559.jpg frame-44560.jpg frame-44561.jpg Thanks from a newb needing help.
0
71,786
09/16/2008 12:42:21
1,260,685
09/16/2008 01:08:57
1
2
Windows IDE / editor for a beginner
I'm teaching (or trying to teach) computer programming to a grad-student. Her previous experience amounts to little more than writing spreadsheet formulae. Which IDE or text editor should I recommend? Please bear in mind that: * I only meet my student about once a week. * She uses Windows and I use Linux. * She doesn't have a community of users on hand. * She doesn't have much money to spend. Thanks!
editor
ide
windows
null
null
null
open
Windows IDE / editor for a beginner === I'm teaching (or trying to teach) computer programming to a grad-student. Her previous experience amounts to little more than writing spreadsheet formulae. Which IDE or text editor should I recommend? Please bear in mind that: * I only meet my student about once a week. * She uses Windows and I use Linux. * She doesn't have a community of users on hand. * She doesn't have much money to spend. Thanks!
0
71,788
09/16/2008 12:42:34
11,978
09/16/2008 12:42:34
1
0
Getting Emacs fill-paragraph to play nice with javadoc-like comments
I'm writing an Emacs major mode for an APL dialect I use at work. I've gotten basic font locking to work, and after setting comment-start and comment-start-skip, comment/uncomment region and fill paragraph also work. However, comment blocks often contain javadoc style comments and i would like fill-paragraph to avoid glueing together lines starting with such commands. If I have this (\ instead of javadoc @): # This is a comment that is long and should be wrapped. # \arg Description of argument # \ret Description of return value M-q gives me: # This is a comment that is long and # should be wrapped. \arg Description # of argument \ret Description of # return value But I want: # This is a comment that is long and # should be wrapped. # \arg Description of argument # \ret Description of return value I've tried setting up paragraph-start and paragraph-separate to appropriate values, but fill-paragraph still doesn't work inside a comment block. If I remove the comment markers, M-q works as I want to, so the regexp I use for paragraph-start seems to work. Do I have to write a custom fill-paragraph for my major mode? cc-mode has one that handles cases like this, but it's really complex, I'd like to avoid it if possible.
emacs
elisp
null
null
null
null
open
Getting Emacs fill-paragraph to play nice with javadoc-like comments === I'm writing an Emacs major mode for an APL dialect I use at work. I've gotten basic font locking to work, and after setting comment-start and comment-start-skip, comment/uncomment region and fill paragraph also work. However, comment blocks often contain javadoc style comments and i would like fill-paragraph to avoid glueing together lines starting with such commands. If I have this (\ instead of javadoc @): # This is a comment that is long and should be wrapped. # \arg Description of argument # \ret Description of return value M-q gives me: # This is a comment that is long and # should be wrapped. \arg Description # of argument \ret Description of # return value But I want: # This is a comment that is long and # should be wrapped. # \arg Description of argument # \ret Description of return value I've tried setting up paragraph-start and paragraph-separate to appropriate values, but fill-paragraph still doesn't work inside a comment block. If I remove the comment markers, M-q works as I want to, so the regexp I use for paragraph-start seems to work. Do I have to write a custom fill-paragraph for my major mode? cc-mode has one that handles cases like this, but it's really complex, I'd like to avoid it if possible.
0
71,815
09/16/2008 12:46:16
11,959
09/16/2008 12:37:24
1
0
How do I configure Eclipse to work on QT-based applications in a subversion tree?
Most of the work being done at my company is QT-based C++, and it's all checked into a Subversion repository. Until now, all work on the codebase has been done purely with nano, or perhaps Kate. Being new here, I would like to take advantage of setting up Eclipse -properly- to edit my local copy of the tree. I have the CDT "version" of Eclipse, and the Qt integration, and the Subclipse module. At this point, though, I don't know what to do. Do I "import" the projects into an Eclipse-controlled workspace? Do I edit them in place? Nothing I've tried to do gets Eclipse to recognize that the "project" is a Qt application, so that I can get the integration working.
eclipse
svn
qt
null
null
null
open
How do I configure Eclipse to work on QT-based applications in a subversion tree? === Most of the work being done at my company is QT-based C++, and it's all checked into a Subversion repository. Until now, all work on the codebase has been done purely with nano, or perhaps Kate. Being new here, I would like to take advantage of setting up Eclipse -properly- to edit my local copy of the tree. I have the CDT "version" of Eclipse, and the Qt integration, and the Subclipse module. At this point, though, I don't know what to do. Do I "import" the projects into an Eclipse-controlled workspace? Do I edit them in place? Nothing I've tried to do gets Eclipse to recognize that the "project" is a Qt application, so that I can get the integration working.
0
71,817
09/16/2008 12:46:28
11,992
09/16/2008 12:46:18
1
0
Using the docstring from one method to automatically overwrite that of another method.
The problem: I have a class which contains a template method "execute" which calls another method "_execute". Subclasses are supposed to overwrite "_execute" to implement some specific functionality. This functionality should naturally be documented in the docstring of "_execute". However, a user dealing with such a subclass should only use "execute", so he won't see this docstring if he uses e.g. "help(...)" in the interpreter. Therefore it would be nice to modify the base class in such a way that in a subclass the docstring of "execute" is replaced with that of "_execute". Any ideas how this might be done? I was thinking of metaclasses to do this, but it seems that this is only possible by some fragile hacks (e.g. by equipping each object with a custom bound version of "execute"). Thanks!
python
metaclass
null
null
null
null
open
Using the docstring from one method to automatically overwrite that of another method. === The problem: I have a class which contains a template method "execute" which calls another method "_execute". Subclasses are supposed to overwrite "_execute" to implement some specific functionality. This functionality should naturally be documented in the docstring of "_execute". However, a user dealing with such a subclass should only use "execute", so he won't see this docstring if he uses e.g. "help(...)" in the interpreter. Therefore it would be nice to modify the base class in such a way that in a subclass the docstring of "execute" is replaced with that of "_execute". Any ideas how this might be done? I was thinking of metaclasses to do this, but it seems that this is only possible by some fragile hacks (e.g. by equipping each object with a custom bound version of "execute"). Thanks!
0
71,838
09/16/2008 12:48:25
11,948
09/16/2008 12:34:11
1
0
DataGridView.HitTestInfo equivalent in Infragistics.Win.UltraWinGrid.UltraGrid?
Does anyone know if the Infragistics UltraGrid control provides functionality similar to that of DataGridView.HitTestInfo?
c#
.net
null
null
null
null
open
DataGridView.HitTestInfo equivalent in Infragistics.Win.UltraWinGrid.UltraGrid? === Does anyone know if the Infragistics UltraGrid control provides functionality similar to that of DataGridView.HitTestInfo?
0
71,842
09/16/2008 12:48:45
8,118
09/15/2008 15:12:55
11
0
How can I detect from a Swing app that the PC is being shut-down?
Well behaved windows programs need to allow users to save their work when they are shutting the PC down. How can I make my app detect the shutdown event? Any solution should allow the user to abort the shutdown if user selects, say "Cancel". The normal Swing window closing hook doesn't work, nor does adding a shutdown hook.
java
swing
operating-system
null
null
null
open
How can I detect from a Swing app that the PC is being shut-down? === Well behaved windows programs need to allow users to save their work when they are shutting the PC down. How can I make my app detect the shutdown event? Any solution should allow the user to abort the shutdown if user selects, say "Cancel". The normal Swing window closing hook doesn't work, nor does adding a shutdown hook.
0
71,843
09/16/2008 12:48:48
5,790
09/11/2008 11:38:57
251
19
How to add a display name for a decorator in Visual Studio DSL (Domain Specific Language) Tools?
In my DSL project I have a shape with a number of decorators that are linked to properties on my domain class. But even though ieach decorator has a DisplayName property (set to a meaningfull value) it does not appear in the generated DSL project. (I have not forgtten to use regenerate the t4 files.) Do I have to create another decorator for each property that only has the display name as a value that I wish to display or is there some other way that I can't figure out right now? Thanks in advance
dsl
vsx
null
null
null
null
open
How to add a display name for a decorator in Visual Studio DSL (Domain Specific Language) Tools? === In my DSL project I have a shape with a number of decorators that are linked to properties on my domain class. But even though ieach decorator has a DisplayName property (set to a meaningfull value) it does not appear in the generated DSL project. (I have not forgtten to use regenerate the t4 files.) Do I have to create another decorator for each property that only has the display name as a value that I wish to display or is there some other way that I can't figure out right now? Thanks in advance
0
71,848
09/16/2008 12:49:23
91,911
09/16/2008 12:49:23
1
0
TAP for NUnit?
Anyone know uf there's a dll/runner anywhere that returns TAP output from an NUnit test suite?
nunit
tap
null
null
null
null
open
TAP for NUnit? === Anyone know uf there's a dll/runner anywhere that returns TAP output from an NUnit test suite?
0