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
73,538
09/16/2008 15:25:21
11,910
09/16/2008 12:13:44
11
5
Do you know any examples of a PAC design pattern?
Can anyone point to any websites or web applications that are using the [Presentation-Abstraction-Control][1] design pattern rather than MCV? Desktop applications are easy to find like this (e.g.; GIMP) but I'm looking for something on the web. [1]: http://www.dossier-andreas.net/software_architecture/pac.html
user-interface
design-patterns
webdesign
web-applications
mvc
null
open
Do you know any examples of a PAC design pattern? === Can anyone point to any websites or web applications that are using the [Presentation-Abstraction-Control][1] design pattern rather than MCV? Desktop applications are easy to find like this (e.g.; GIMP) but I'm looking for something on the web. [1]: http://www.dossier-andreas.net/software_architecture/pac.html
0
73,542
09/16/2008 15:25:35
11,835
09/16/2008 11:40:32
1
0
IList<T> to IQueriable<T>
I have an List<T> and I'd like to wrap it into an IQueriable<T>. Is this possible?
linq-to-objects
null
null
null
null
null
open
IList<T> to IQueriable<T> === I have an List<T> and I'd like to wrap it into an IQueriable<T>. Is this possible?
0
73,544
09/16/2008 15:25:46
91,911
09/16/2008 12:49:23
6
1
FTP client class for .NET
Anyone know of a good, hopefully free FTP class for use in .NET that can actually work behind an HTTP proxy or FTP gateway? The FtpWebRequest stuff in .NET is horrible at best, and I really don't want to roll my own here.
.net
ftp
proxy
gateway
null
null
open
FTP client class for .NET === Anyone know of a good, hopefully free FTP class for use in .NET that can actually work behind an HTTP proxy or FTP gateway? The FtpWebRequest stuff in .NET is horrible at best, and I really don't want to roll my own here.
0
73,576
09/16/2008 15:27:53
7,798
09/15/2008 14:25:25
1
1
Wildcard filename in schema.ini?
Was wondering if there was a way to put a wildcard in the schema.ini for example [*.txt] FMT=TabDelimited I've got an app that is imported tab delimited files and the only place I can seem to get the FMT="TabDelimited" is in the schema.ini (doesn't work in the connection string for some reason), but I will have no idea what the filenames are other than the txt extension. BTW I'm connecting using an OdbcConnection and the Microsoft Text Driver.
.net
microsofttextdriver
schema.ini
null
null
null
open
Wildcard filename in schema.ini? === Was wondering if there was a way to put a wildcard in the schema.ini for example [*.txt] FMT=TabDelimited I've got an app that is imported tab delimited files and the only place I can seem to get the FMT="TabDelimited" is in the schema.ini (doesn't work in the connection string for some reason), but I will have no idea what the filenames are other than the txt extension. BTW I'm connecting using an OdbcConnection and the Microsoft Text Driver.
0
73,580
09/16/2008 15:28:22
2,443
08/22/2008 10:53:30
1,236
53
How do I send an SMTP Message from Java?
How do I send an SMTP Message from Java?
java
smtp
null
null
null
null
open
How do I send an SMTP Message from Java? === How do I send an SMTP Message from Java?
0
73,586
09/16/2008 15:29:17
12,713
09/16/2008 15:22:48
1
0
IIS configurable caching
How would one configurably cache files in IIS >= 6? Example: - `*.cache.*` => cache nearly forever - `*.nocache.*` => never cache An example framework using this naming would be the GWT framework.
iis
caching
configuration
iis6
iis7
null
open
IIS configurable caching === How would one configurably cache files in IIS >= 6? Example: - `*.cache.*` => cache nearly forever - `*.nocache.*` => never cache An example framework using this naming would be the GWT framework.
0
73,628
09/16/2008 15:32:24
9,254
09/15/2008 18:12:15
1
2
How can I execute Javascript before a JSF <h:commandLink> action is performed?
If you have a JSF <h:commandLink> (which uses the onclick event of an <a> to submit the current form), how do you execute Javascript (such as asking for delete confirmation) prior to the action being performed?
javascript
jsf
null
null
null
null
open
How can I execute Javascript before a JSF <h:commandLink> action is performed? === If you have a JSF <h:commandLink> (which uses the onclick event of an <a> to submit the current form), how do you execute Javascript (such as asking for delete confirmation) prior to the action being performed?
0
73,629
09/16/2008 15:32:37
730
08/08/2008 12:40:04
243
37
How can I Trim the leading comma in my string.
I have a string that is like below. ,liger, unicorn, snipe in other languages I'm familiar with I can just do a string.trim(",") but how can I do that in c#? Thanks.
c#
trim
string
null
null
null
open
How can I Trim the leading comma in my string. === I have a string that is like below. ,liger, unicorn, snipe in other languages I'm familiar with I can just do a string.trim(",") but how can I do that in c#? Thanks.
0
73,646
09/16/2008 15:34:07
6,361
09/14/2008 18:58:50
26
5
Subversion and Siteminder
Has anyone implements Subversion with Siteminder as authentication provider ? If yes, would it be possible to provide an overview of how the whole setup is done ? Since I am using only HTTP authentication, I think it would be easier to integrate with SM, but I am not able to find much help on this on the net. Is there any pitfall with this setup ? is this even possible ?
siteminder
svn
null
null
null
null
open
Subversion and Siteminder === Has anyone implements Subversion with Siteminder as authentication provider ? If yes, would it be possible to provide an overview of how the whole setup is done ? Since I am using only HTTP authentication, I think it would be easier to integrate with SM, but I am not able to find much help on this on the net. Is there any pitfall with this setup ? is this even possible ?
0
73,651
09/16/2008 15:34:49
4,580
09/04/2008 18:34:11
11
5
SMTP commands for "AUTH NTLM"
I'm failing at finding the commands I need to send to authenticate to a SMTP server using NTLM. I think it goes something like: AUTH NTLM <bae64encode something> 334 <bae64encode something> 235
smtp
ntlm
null
null
null
null
open
SMTP commands for "AUTH NTLM" === I'm failing at finding the commands I need to send to authenticate to a SMTP server using NTLM. I think it goes something like: AUTH NTLM <bae64encode something> 334 <bae64encode something> 235
0
73,663
09/16/2008 15:35:55
1,384,652
08/01/2008 12:01:23
2,143
87
Terminating a Python script
I am aware of the die() command in PHP which stops a script early, how can I do this in Python?
python
termination
null
null
null
null
open
Terminating a Python script === I am aware of the die() command in PHP which stops a script early, how can I do this in Python?
0
73,667
09/16/2008 15:35:59
5,475
09/09/2008 21:50:17
139
11
Perl interactive console
How can I start an interactive console for Perl, similar to the irb command for Ruby or python for Python?
perl
console
null
null
null
null
open
Perl interactive console === How can I start an interactive console for Perl, similar to the irb command for Ruby or python for Python?
0
73,674
09/16/2008 15:36:37
11,234
09/16/2008 06:27:05
10
13
using pictures as buttons?is this possible?
I talked to a friend of mine and he told me that it's possible to create an image in an image editor ( gimp/photoshop ) and then use it as a button . He said that's the way applications that have great GUI's do it . He also said that there is a file describing which parts of the image make up the button . Is this possible , or is he "crazy"? :)
gui
null
null
null
null
null
open
using pictures as buttons?is this possible? === I talked to a friend of mine and he told me that it's possible to create an image in an image editor ( gimp/photoshop ) and then use it as a button . He said that's the way applications that have great GUI's do it . He also said that there is a file describing which parts of the image make up the button . Is this possible , or is he "crazy"? :)
0
73,684
09/16/2008 15:37:31
11,439
09/16/2008 07:58:40
33
2
Companies doing Domain driven design
I've just finished reading Domain Driven Design and I'm enchanted with some of the ideas covered in it. Do you know any companies that implement ubiquitous language in their projects?
ddd
software-engineering
null
null
null
null
open
Companies doing Domain driven design === I've just finished reading Domain Driven Design and I'm enchanted with some of the ideas covered in it. Do you know any companies that implement ubiquitous language in their projects?
0
73,686
09/16/2008 15:37:38
6,922
09/15/2008 12:50:26
1
0
cout prints "-0" instead of "0"
#include <iostream> using namespace std; int main() { double u = 0; double w = -u; cout << w << endl; return 0; } Why does this great piece of code outputs "-0" and not "0", as one would expect?
c++
null
null
null
null
null
open
cout prints "-0" instead of "0" === #include <iostream> using namespace std; int main() { double u = 0; double w = -u; cout << w << endl; return 0; } Why does this great piece of code outputs "-0" and not "0", as one would expect?
0
73,713
09/16/2008 15:39:37
12,767
09/16/2008 15:39:37
1
0
How do I check for nulls in an '==' operator overload without infinite recursion?
The following will cause infinite recursion on the == operator overload method Foo foo1 = null; Foo foo2 = new Foo(); Assert.IsFalse(foo1 == foo2); public static bool operator ==(Foo foo1, Foo foo2) { if (foo1 == null) return foo2 == null; return foo1.Equals(foo2); } How do I check for nulls?
c#
.net
null
null
null
null
open
How do I check for nulls in an '==' operator overload without infinite recursion? === The following will cause infinite recursion on the == operator overload method Foo foo1 = null; Foo foo2 = new Foo(); Assert.IsFalse(foo1 == foo2); public static bool operator ==(Foo foo1, Foo foo2) { if (foo1 == null) return foo2 == null; return foo1.Equals(foo2); } How do I check for nulls?
0
73,733
09/16/2008 15:41:21
2,669
08/24/2008 09:07:31
15
0
Bootstrapper for SQL Server Express 2005 64 bit
Where can I get the 64 bit bootstrapper for SQL Server Express 2005 64 bit. The default bootstrapper is 32 bit only. This will not install on Vista 64 bit.
sql
sql-server
null
null
null
null
open
Bootstrapper for SQL Server Express 2005 64 bit === Where can I get the 64 bit bootstrapper for SQL Server Express 2005 64 bit. The default bootstrapper is 32 bit only. This will not install on Vista 64 bit.
0
73,736
09/16/2008 15:41:33
4,926
09/06/2008 18:01:11
1,711
76
Best server-side framework for heavy AJAX Java application
There are [zillions][1] of Java web application frameworks. 95% were designed before the modern era of AJAX/DHTML-based development, and that means these new methods are grafted on rather than designed in. Has any framework been built from the ground up with e.g. [GWT + Extjs][2] in mind? If not, which framework has adapted best to the world of forms with dynamic numbers of fields and pages that morph client-side? [1]: http://java-source.net/open-source/web-frameworks [2]: http://extjs.com/products/gxt/
java
ajax
web-applications
frameworks
dhtml
null
open
Best server-side framework for heavy AJAX Java application === There are [zillions][1] of Java web application frameworks. 95% were designed before the modern era of AJAX/DHTML-based development, and that means these new methods are grafted on rather than designed in. Has any framework been built from the ground up with e.g. [GWT + Extjs][2] in mind? If not, which framework has adapted best to the world of forms with dynamic numbers of fields and pages that morph client-side? [1]: http://java-source.net/open-source/web-frameworks [2]: http://extjs.com/products/gxt/
0
73,745
09/16/2008 15:42:49
1,892
08/19/2008 06:17:29
436
22
Long term source code archiving: Is it possible?
I'm curious about keeping source code around reliably and securely for several years. From my research/experience: 1. Optical media, such as burned DVD-R's lose bits of data over time. After a couple years, I don't get all the files off that I put on them. Read errors, etc. 2. Hard drives are mechanical and subject to failure/obsolescence with expensive data recovery fees, that hardly keep your data private (you send it away to some company). 3. Magnetic tape storage: see #2. 4. Online storage is subject to the whim of some data storage center, the security or lack of security there, and the possibility that the company folds, etc. Plus it's expensive, and you can't guarantee that they aren't peeking in. I've found over time that I've lost source code to old projects I've done due to these problems. Are there any other solutions?
storage
longitude
version-control
null
null
null
open
Long term source code archiving: Is it possible? === I'm curious about keeping source code around reliably and securely for several years. From my research/experience: 1. Optical media, such as burned DVD-R's lose bits of data over time. After a couple years, I don't get all the files off that I put on them. Read errors, etc. 2. Hard drives are mechanical and subject to failure/obsolescence with expensive data recovery fees, that hardly keep your data private (you send it away to some company). 3. Magnetic tape storage: see #2. 4. Online storage is subject to the whim of some data storage center, the security or lack of security there, and the possibility that the company folds, etc. Plus it's expensive, and you can't guarantee that they aren't peeking in. I've found over time that I've lost source code to old projects I've done due to these problems. Are there any other solutions?
0
73,748
09/16/2008 15:43:06
262,613
09/16/2008 15:31:41
1
0
DropdownList autoposback after client confirmation
I have a dropdownlist with the autopostback set to true. I want the user to be confirm if they really want to change the value, which on post back fires a server side event (selectedindexchanged). I have tried adding an onchange attribute "return confirm('Please click OK to change. Otherwise click CANCEL?';") but it will not postback regardless of the confirm result and the value in the list does not revert back if cancel selected. Any leads will be helpful. Thanks!
drop-down-menu
onchange
autopostback
null
null
null
open
DropdownList autoposback after client confirmation === I have a dropdownlist with the autopostback set to true. I want the user to be confirm if they really want to change the value, which on post back fires a server side event (selectedindexchanged). I have tried adding an onchange attribute "return confirm('Please click OK to change. Otherwise click CANCEL?';") but it will not postback regardless of the confirm result and the value in the list does not revert back if cancel selected. Any leads will be helpful. Thanks!
0
73,751
09/16/2008 15:43:19
3,208
08/27/2008 13:12:45
191
13
What is the dual table in Oracle?
I heard people reffering to this table and was not sure what is was about.
oracle
null
null
null
null
null
open
What is the dual table in Oracle? === I heard people reffering to this table and was not sure what is was about.
0
73,781
09/16/2008 15:46:43
12,779
09/16/2008 15:40:57
1
0
Sending mail via sendmail from python
If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process? Better yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice?
python
email
sendmail
null
null
null
open
Sending mail via sendmail from python === If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process? Better yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice?
0
73,785
09/16/2008 15:47:16
5,899
09/11/2008 15:36:13
66
1
How to iterate through all the cells in Excel VBA or VSTO 2005
I need to simply go through all the cells in a Excel Spreadsheet and check the values in the cells. The cells may contain text, numbers or be blank. I am not very familiar / comfortable working with the concept of 'Range'. Therefore, any sample codes would be greatly appreciated. (I did try to google it, but the code snippets I found didn't quite do what I needed) Thank you.
excel
vba
vsto
null
null
null
open
How to iterate through all the cells in Excel VBA or VSTO 2005 === I need to simply go through all the cells in a Excel Spreadsheet and check the values in the cells. The cells may contain text, numbers or be blank. I am not very familiar / comfortable working with the concept of 'Range'. Therefore, any sample codes would be greatly appreciated. (I did try to google it, but the code snippets I found didn't quite do what I needed) Thank you.
0
73,797
09/16/2008 15:48:12
5,222
09/08/2008 15:07:29
11
4
How do I tell Subversion to treat a file as a binary file?
How do I tell Subversion (svn) to treat a file as a binary file?
svn
null
null
null
null
null
open
How do I tell Subversion to treat a file as a binary file? === How do I tell Subversion (svn) to treat a file as a binary file?
0
73,799
09/16/2008 15:48:33
8,325
09/15/2008 15:44:05
1
1
How did you learn the GNU make tools?
I've been a professional web developer for about five years now, and have compiled many many things for servers. I've also written many simple C programs (one or two files). The main thing which has held me back from creating more complex applications is the fear of leraning to the GNU build tools. The documentation is huge and a bit intimidating. Does anyone have a good resource to learn these?
compiler
build
make
gnu
null
null
open
How did you learn the GNU make tools? === I've been a professional web developer for about five years now, and have compiled many many things for servers. I've also written many simple C programs (one or two files). The main thing which has held me back from creating more complex applications is the fear of leraning to the GNU build tools. The documentation is huge and a bit intimidating. Does anyone have a good resource to learn these?
0
73,801
09/16/2008 15:48:38
5,196
09/08/2008 12:39:19
90
3
Hardest Programming discipline?
I know this is an open-ended question, but I am very curious about how the collective minds of brilliant programmers here think about this one? What do you think is the most difficult/challenging/demanding programming branch or discipline? For example, AI, Graphics, Networking, cryptography, etc.
language-agnostic
computer-science
null
null
null
null
open
Hardest Programming discipline? === I know this is an open-ended question, but I am very curious about how the collective minds of brilliant programmers here think about this one? What do you think is the most difficult/challenging/demanding programming branch or discipline? For example, AI, Graphics, Networking, cryptography, etc.
0
73,833
09/16/2008 15:50:58
10,245
09/15/2008 21:54:40
1
2
how do you search for files containing dos line endings (CRLF) with grep under linux?
something like `grep -IUr --color '\r\n' .` the above seems to match for literal 'rn' which is not what is desired the output of this will be piped through xargs into todos to convert crlf to lf
grep
bash
newline
linux
null
null
open
how do you search for files containing dos line endings (CRLF) with grep under linux? === something like `grep -IUr --color '\r\n' .` the above seems to match for literal 'rn' which is not what is desired the output of this will be piped through xargs into todos to convert crlf to lf
0
73,879
09/16/2008 15:55:16
8,508
09/15/2008 16:11:31
11
3
Translate C++.Net to C#
I have a small to medium project that is in .Net Managed C++. I really hate the syntax extensions of Managed C++ and I would prefer to work in C#. Is there a tool that does a decent job of translating one to the other?
c++
.net
c#
null
null
null
open
Translate C++.Net to C# === I have a small to medium project that is in .Net Managed C++. I really hate the syntax extensions of Managed C++ and I would prefer to work in C#. Is there a tool that does a decent job of translating one to the other?
0
73,881
09/16/2008 15:55:26
12,828
09/16/2008 15:50:32
1
0
OSGi Testing
Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple & easy to use method for testing OSGi bundles. Currently, I have to build the bundle using Maven and then execute a test harness. I'm looking for something like JUnit in Eclipse, as it will save me a bunch of time. Is there a quick and easy way to test OSGi bundles?
java
testing
osgi
null
null
null
open
OSGi Testing === Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple & easy to use method for testing OSGi bundles. Currently, I have to build the bundle using Maven and then execute a test harness. I'm looking for something like JUnit in Eclipse, as it will save me a bunch of time. Is there a quick and easy way to test OSGi bundles?
0
73,883
09/16/2008 15:55:54
12,623
09/16/2008 15:00:19
1
0
String vs StringBuilder
I understand the difference between the String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m working on has alot of case driven string appends (500+), and I’m wondering if using StringBuilder would be a better choice.
c#
.net
null
null
null
null
open
String vs StringBuilder === I understand the difference between the String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m working on has alot of case driven string appends (500+), and I’m wondering if using StringBuilder would be a better choice.
0
73,884
09/16/2008 15:55:58
12,776
09/16/2008 15:40:27
1
0
Can you set Visual Studio's "smart indent" to not remove tabs in blank lines?
When Visual Studio (2005) has *Options -> Text Editor -> C/C++ -> Tabs -> Indenting* set to Smart it will automatically indent code blocks and line up squiggly brackets, {}, as expected. However, if you hit enter inside a code block, move the cursor to another line, and then move it back, the inserted tabs are gone and the cursor is positioned all the way to the left. Is there a way to set Visual Studio to keep these tabs?
visual-studio-2005
tabs
null
null
null
null
open
Can you set Visual Studio's "smart indent" to not remove tabs in blank lines? === When Visual Studio (2005) has *Options -> Text Editor -> C/C++ -> Tabs -> Indenting* set to Smart it will automatically indent code blocks and line up squiggly brackets, {}, as expected. However, if you hit enter inside a code block, move the cursor to another line, and then move it back, the inserted tabs are gone and the cursor is positioned all the way to the left. Is there a way to set Visual Studio to keep these tabs?
0
73,885
09/16/2008 15:56:00
2,755
08/24/2008 21:39:28
26
2
In JQuery, using ajaxSend to preview the url built by $.post call
How can I construct my ajaxSend call, this seems like the place to put it, to preview what is being passed back to the broker? also, can I stop the ajax call in ajaxSend?..so I can perfect my url string before dealing with errors from the broker? This is the complete URL that, when passed to the broker, will return the JSON code I need: http://myServer/cgi-bin/broker?service=myService&program=myProgram&section=mySection&start=09/08/08&end=09/26/08 This is my $.post call (not sure it is creating the above url string) $(function() { $("#submit").bind("click", function() { $.post({ url: "http://csewebprod/cgi-bin/broker" , datatype: "json", data: { 'service' : myService, 'program' : myProgram, 'section' : mySection, 'start' : '09/08/08', 'end' : '09/26/08' }, error: function(request){ $("#updateHTML").removeClass("hide") ; $("#updateHTML").html(request.statusText); }, success: function(request) { $("#updateHTML").removeClass("hide") ; $("#updateHTML").html(request) ; } }); // End post method }); // End bind method }); // End eventlistener Thanks
jquery
ajax
null
null
null
null
open
In JQuery, using ajaxSend to preview the url built by $.post call === How can I construct my ajaxSend call, this seems like the place to put it, to preview what is being passed back to the broker? also, can I stop the ajax call in ajaxSend?..so I can perfect my url string before dealing with errors from the broker? This is the complete URL that, when passed to the broker, will return the JSON code I need: http://myServer/cgi-bin/broker?service=myService&program=myProgram&section=mySection&start=09/08/08&end=09/26/08 This is my $.post call (not sure it is creating the above url string) $(function() { $("#submit").bind("click", function() { $.post({ url: "http://csewebprod/cgi-bin/broker" , datatype: "json", data: { 'service' : myService, 'program' : myProgram, 'section' : mySection, 'start' : '09/08/08', 'end' : '09/26/08' }, error: function(request){ $("#updateHTML").removeClass("hide") ; $("#updateHTML").html(request.statusText); }, success: function(request) { $("#updateHTML").removeClass("hide") ; $("#updateHTML").html(request) ; } }); // End post method }); // End bind method }); // End eventlistener Thanks
0
73,889
09/16/2008 15:56:55
8,233
09/15/2008 15:29:25
190
9
Which framework should I use to write modules?
What's the best framework for writing modules -- ExtUtils::MakeMaker (h2xs) or Module::Build?
perl
module
null
null
null
null
open
Which framework should I use to write modules? === What's the best framework for writing modules -- ExtUtils::MakeMaker (h2xs) or Module::Build?
0
73,892
09/16/2008 15:57:12
11,673
09/16/2008 10:05:49
26
9
Pre-Pending a file to all .cs file in directory and subdirectory using PowerShell
How can I pre pend (insert at beginning of file) a file to all files of a type in folder and sub-folders using Powershell? I need to add a standard header file to all .cs and was trying to use Powershell to do so, but while I was able to append it in a few lines of code I was stuck when trying to pre-pend it.
powershell
null
null
null
null
null
open
Pre-Pending a file to all .cs file in directory and subdirectory using PowerShell === How can I pre pend (insert at beginning of file) a file to all files of a type in folder and sub-folders using Powershell? I need to add a standard header file to all .cs and was trying to use Powershell to do so, but while I was able to append it in a few lines of code I was stuck when trying to pre-pend it.
0
73,895
09/16/2008 15:57:19
12,833
09/16/2008 15:53:11
1
1
Delphi Component Serialization
Has anyone run into issues serializing components into a file and reading them back, specifically in the area where the component vendor upgrades the VCL components. For example a file serialized with DelphiX and then years later read back with delphiY. Do the serialization formats change and if so what can be done to prevent errors reading in the componets when upgrading.
delphi
null
null
null
null
null
open
Delphi Component Serialization === Has anyone run into issues serializing components into a file and reading them back, specifically in the area where the component vendor upgrades the VCL components. For example a file serialized with DelphiX and then years later read back with delphiY. Do the serialization formats change and if so what can be done to prevent errors reading in the componets when upgrading.
0
73,910
09/16/2008 15:58:29
11,517
09/16/2008 08:50:34
11
3
Is there a console for Windows Mobile devices?
I would like to write small console based applications on Windows Mobile. What console applications might I use?
windows-mobile
console
null
null
null
null
open
Is there a console for Windows Mobile devices? === I would like to write small console based applications on Windows Mobile. What console applications might I use?
0
73,920
09/16/2008 15:59:16
9,440
09/15/2008 18:48:45
51
7
Sparkles of productivity
I started logging my productivity a year ago; some days I do more, some days I do less. And then, there are those rare few days, when in the course of a single day, I achieve more, than on any other given week. I call these "sparkles of productivity", and in the last year, I had about 4 of them (give or take). So, my question is: what was your most productive day, and what, if any, internal, or external event might have triggered it?
productivity
null
null
null
null
07/06/2012 17:55:04
off topic
Sparkles of productivity === I started logging my productivity a year ago; some days I do more, some days I do less. And then, there are those rare few days, when in the course of a single day, I achieve more, than on any other given week. I call these "sparkles of productivity", and in the last year, I had about 4 of them (give or take). So, my question is: what was your most productive day, and what, if any, internal, or external event might have triggered it?
2
73,927
09/16/2008 15:59:42
12,037
09/16/2008 12:57:35
21
2
Clustering Algorithm for Mapping Application
I'm looking into clustering points on a map (lat/longs). Are there any recommendations as to a suitable algorithm that is fast and scalable?
algorithm
maps
null
null
null
null
open
Clustering Algorithm for Mapping Application === I'm looking into clustering points on a map (lat/longs). Are there any recommendations as to a suitable algorithm that is fast and scalable?
0
73,933
09/16/2008 16:00:16
2,455
08/22/2008 11:29:07
200
17
How do I get my Disciplines to appear in published Site (in EPF Composer 1.5)?
I have a custom category ("disciplines") in my method plugin which I want to use to contain existing disciplines (from the Scrum plugin and EPF OpenUP library) as well as a few of my own (some are new, and others extend the OpenUP ones). I can add them simply, order them as desired, and view them in the Browsing Perspective and Preview tab. However, when I publish, I cannot see the disciplines I have added or extended. There are no errors in the publish logs and the warnings I have refer to other things.
methodology
eclipse-plugin
null
null
null
null
open
How do I get my Disciplines to appear in published Site (in EPF Composer 1.5)? === I have a custom category ("disciplines") in my method plugin which I want to use to contain existing disciplines (from the Scrum plugin and EPF OpenUP library) as well as a few of my own (some are new, and others extend the OpenUP ones). I can add them simply, order them as desired, and view them in the Browsing Perspective and Preview tab. However, when I publish, I cannot see the disciplines I have added or extended. There are no errors in the publish logs and the warnings I have refer to other things.
0
73,947
09/16/2008 16:01:27
11,911
09/16/2008 12:13:45
8
6
What is the best way to stop people hacking the PHP-based highscore table of a Flash game.
The main problems seem to be things like TamperData and LiveHTTP headers, but I understand there are more advanced hacking tools as well. I need to know the best solutions for both AS2 and AS3, if they are different.
actionscript-3
actionscript-2
actionscript
php
security
null
open
What is the best way to stop people hacking the PHP-based highscore table of a Flash game. === The main problems seem to be things like TamperData and LiveHTTP headers, but I understand there are more advanced hacking tools as well. I need to know the best solutions for both AS2 and AS3, if they are different.
0
73,960
09/16/2008 16:02:41
747
08/08/2008 14:15:00
11
1
Dropdownlist width in IE
In IE, the dropdown-list takes the same width as the dropbox (i hope i am making sense) whereas in Firefox the dropdown-list's width varies according to the content. This basically means that i have to make sure that the dropbox has to be wide enough to display the longest selection possible. this makes my page look very ugly :( Is there any workaround for this problem?
html
javascript
drop-down-menu
internet-explorer
null
null
open
Dropdownlist width in IE === In IE, the dropdown-list takes the same width as the dropbox (i hope i am making sense) whereas in Firefox the dropdown-list's width varies according to the content. This basically means that i have to make sure that the dropbox has to be wide enough to display the longest selection possible. this makes my page look very ugly :( Is there any workaround for this problem?
0
73,964
09/16/2008 16:03:04
2,232
08/21/2008 03:34:15
1
0
How do I turn a ColdFusion page into a PDF download?
I would like to turn the HTML generated by my CFM page into a PDF, and have the user prompted with the standard "Save As" prompt when navigating to my page.
coldfusion
null
null
null
null
null
open
How do I turn a ColdFusion page into a PDF download? === I would like to turn the HTML generated by my CFM page into a PDF, and have the user prompted with the standard "Save As" prompt when navigating to my page.
0
73,971
09/16/2008 16:03:33
1,185
08/13/2008 12:02:03
1,294
90
Using Javascript, how do I make sure a date range is valid?
As the title states, using Javascript, how can I valid two given dates to ensure that they are a valid range?
validation
date
javascript
null
null
null
open
Using Javascript, how do I make sure a date range is valid? === As the title states, using Javascript, how can I valid two given dates to ensure that they are a valid range?
0
73,972
09/16/2008 16:03:38
6,508
09/15/2008 11:38:58
140
15
Disabling copy of empty text in Visual Studio
I have somehow misconfigured fingers. This leads to a very annoying situation. 1. I select a block of text to copy; 2. I move the cursor the place where I want to paste the code; 3. I accidentally press Ctrl+C again instead of Ctrl+V; 4. My block of copied text is replaced by an empty block; 5. I have to go back and do it all over again. Grrrrr. Is there any way to disable this behavior, that is to disable copy of empty blocks of text in Visual Studio 2005+?
visual-studio
editor
copy-paste
null
null
null
open
Disabling copy of empty text in Visual Studio === I have somehow misconfigured fingers. This leads to a very annoying situation. 1. I select a block of text to copy; 2. I move the cursor the place where I want to paste the code; 3. I accidentally press Ctrl+C again instead of Ctrl+V; 4. My block of copied text is replaced by an empty block; 5. I have to go back and do it all over again. Grrrrr. Is there any way to disable this behavior, that is to disable copy of empty blocks of text in Visual Studio 2005+?
0
74,010
09/16/2008 16:06:52
3,208
08/27/2008 13:12:45
215
14
What is the difference between Explicit and inplicit cursors in Oracle?
I am a bit rusty on my cursor lingo in PL/SQL. Anyone know this?
oracle
plsql
null
null
null
null
open
What is the difference between Explicit and inplicit cursors in Oracle? === I am a bit rusty on my cursor lingo in PL/SQL. Anyone know this?
0
74,019
09/16/2008 16:07:47
1,672
08/17/2008 22:18:02
1
0
Specifying filename for dynamic PDF in asp.net
How can I specify the filename when dumping data into the response stream? Right now I'm doing the following: byte[] data= GetFoo(); Response.Clear(); Response.Buffer = true; Response.ContentType = "application/pdf"; Response.BinaryWrite(data); Response.End(); With the code above, I get "foo.aspx.pdf" as the filename to save. I seem to remember being able to add a header to the response to specify the filename to save.
c#
asp.net
response
null
null
null
open
Specifying filename for dynamic PDF in asp.net === How can I specify the filename when dumping data into the response stream? Right now I'm doing the following: byte[] data= GetFoo(); Response.Clear(); Response.Buffer = true; Response.ContentType = "application/pdf"; Response.BinaryWrite(data); Response.End(); With the code above, I get "foo.aspx.pdf" as the filename to save. I seem to remember being able to add a header to the response to specify the filename to save.
0
74,032
09/16/2008 16:08:36
5,802
09/11/2008 12:26:41
144
16
What's the recommended best practice for using IEqualityComparer<T>?
Title says it all :)
c#
comparison
null
null
null
null
open
What's the recommended best practice for using IEqualityComparer<T>? === Title says it all :)
0
74,047
09/16/2008 16:10:23
12,298
09/16/2008 13:55:23
46
3
Trying to sell Agile Development.
My work place is very archaic when it comes to software development. Essentially all projects are forced to use a waterfall approach requiring immense paperwork. I've always been a fan of agile development and recently was approach by my manager asking for me to help him put together a proposal to some of the managers/directors to try to preach the benefits of Agile. Like stated the target audience is the managers and directors where I work. Many of them hold to the mantra of "If it's not broke don't fix it". I've found numerous case studies, instructional pages and all sorts of resources online however there are a few things I'm missing. First of all is there a good resource for the type of documentation that is typically done with an agile process? Our QA manager is a stickler on documentation and unfortunately is likely to ignore the whole concept if he's not happy with the quality/amount of paperwork that is done. Secondly are there any large companies (fortune 500 type size) that have publicly available information on their software development methodologies (specifically if such companies are using agile)?
documentation
agile
sdlc
waterfall
null
null
open
Trying to sell Agile Development. === My work place is very archaic when it comes to software development. Essentially all projects are forced to use a waterfall approach requiring immense paperwork. I've always been a fan of agile development and recently was approach by my manager asking for me to help him put together a proposal to some of the managers/directors to try to preach the benefits of Agile. Like stated the target audience is the managers and directors where I work. Many of them hold to the mantra of "If it's not broke don't fix it". I've found numerous case studies, instructional pages and all sorts of resources online however there are a few things I'm missing. First of all is there a good resource for the type of documentation that is typically done with an agile process? Our QA manager is a stickler on documentation and unfortunately is likely to ignore the whole concept if he's not happy with the quality/amount of paperwork that is done. Secondly are there any large companies (fortune 500 type size) that have publicly available information on their software development methodologies (specifically if such companies are using agile)?
0
74,048
09/16/2008 16:10:24
5,338
09/09/2008 09:13:34
1
0
What is the best lightweight javascript framework?
I'm looking for a lightweight javascript framework whose primary purpose is to abstract out browser differences. I are primarily using it to create new UI elements, and I don't need much other than something that gives me a platform independent language and DOM. Thanks in advance.
javascript
frameworks
null
null
null
05/31/2012 20:43:04
not constructive
What is the best lightweight javascript framework? === I'm looking for a lightweight javascript framework whose primary purpose is to abstract out browser differences. I are primarily using it to create new UI elements, and I don't need much other than something that gives me a platform independent language and DOM. Thanks in advance.
4
74,057
09/16/2008 16:11:16
12,905
09/16/2008 16:11:15
1
0
Is it possible to use analyic functions in Hibernate?
Is there a way to use sql-server like analytic functions in Hibernate? Something like select foo from Foo foo where f.x = max(f.x) over (partition by f.y)
hibernate
sql
null
null
null
null
open
Is it possible to use analyic functions in Hibernate? === Is there a way to use sql-server like analytic functions in Hibernate? Something like select foo from Foo foo where f.x = max(f.x) over (partition by f.y)
0
74,092
09/16/2008 16:13:09
156
08/02/2008 17:36:27
396
14
Is there a common way to check in Python if an object is any function type?
I have a function in Python which is iterating over the attributes returned from dir(obj), and I want to check to see if any of the objects contained within is a function, method, built-in function, etc. Normally you could use callable() for this, but I don't want to disqualify classes. The best I've come up with so far is: isinstance(obj, (types.BuiltinFunctionType, types.FunctionType, types.MethodType)) Is there a more future-proof way to do this check?
python
types
null
null
null
null
open
Is there a common way to check in Python if an object is any function type? === I have a function in Python which is iterating over the attributes returned from dir(obj), and I want to check to see if any of the objects contained within is a function, method, built-in function, etc. Normally you could use callable() for this, but I don't want to disqualify classes. The best I've come up with so far is: isinstance(obj, (types.BuiltinFunctionType, types.FunctionType, types.MethodType)) Is there a more future-proof way to do this check?
0
74,108
09/16/2008 16:14:17
720
08/08/2008 08:47:12
1,338
42
Visualize Friend of a Friend (foaf) graph
I wrote a script to export twitter friends as foaf rdf description. Now I'm looking for a tool to visualize the friend networks. I tried http://foafscape.berlios.de/ but for 300+ Nodes it is really slow and does a bad job on auto formatting. Any hints for good graph visualization tools? It's ok if they do not support foaf directly, but they should be able to use images for graph nodes and be able to display large graphs. Linux support would be nice. Oh, and I'm searching for an interactive tool where I can move nodes by hand.
graph
visualization
foaf
null
null
null
open
Visualize Friend of a Friend (foaf) graph === I wrote a script to export twitter friends as foaf rdf description. Now I'm looking for a tool to visualize the friend networks. I tried http://foafscape.berlios.de/ but for 300+ Nodes it is really slow and does a bad job on auto formatting. Any hints for good graph visualization tools? It's ok if they do not support foaf directly, but they should be able to use images for graph nodes and be able to display large graphs. Linux support would be nice. Oh, and I'm searching for an interactive tool where I can move nodes by hand.
0
74,112
09/16/2008 16:15:04
322,538
09/15/2008 13:01:48
1
0
How do I embed Media Player in a C# MailMessage to play an Attachment
I'm using a C# MailMessage to attach a wave file (8K) to an email message. I'd like to provide a player within the body of that email message that will play that wave file if the user chooses to do so. I've tried using the embedded &lt;object&gt; version of WMP, and a cid: reference to the file, but Outlook 2003 rejects the object tag and won't run it. If it helps, I know my users will be on Outlook 2003.
c#
.net
embedded
wmp
null
null
open
How do I embed Media Player in a C# MailMessage to play an Attachment === I'm using a C# MailMessage to attach a wave file (8K) to an email message. I'd like to provide a player within the body of that email message that will play that wave file if the user chooses to do so. I've tried using the embedded &lt;object&gt; version of WMP, and a cid: reference to the file, but Outlook 2003 rejects the object tag and won't run it. If it helps, I know my users will be on Outlook 2003.
0
74,113
09/16/2008 16:15:04
5,338
09/09/2008 09:13:34
6
0
Access the camera with iPhone SDK
It seems obvious that some people have been able to figure out how to access the iPhone camera through the SDK (Spore Origins, for example), but I haven't been able to find any helpful information. I don't want anyone to violate their NDA, but does anyone know of any existing (official) resources that show how this can be done? Thanks.
iphone
sdk
camera
null
null
null
open
Access the camera with iPhone SDK === It seems obvious that some people have been able to figure out how to access the iPhone camera through the SDK (Spore Origins, for example), but I haven't been able to find any helpful information. I don't want anyone to violate their NDA, but does anyone know of any existing (official) resources that show how this can be done? Thanks.
0
74,116
09/16/2008 16:15:23
73
08/01/2008 15:12:05
13
1
Writing more to a file than just plain text
I have always been able to read and write basic text files in C++, but so far no one has discussed much more than that. My question is this: How, if I had my own spreadsheet file or database application, would I go about writing the data to a file and preserve the layout, formatting, etc.? Are there any standards, or does it just depend on the creativity of the programmer?
file
null
null
null
null
null
open
Writing more to a file than just plain text === I have always been able to read and write basic text files in C++, but so far no one has discussed much more than that. My question is this: How, if I had my own spreadsheet file or database application, would I go about writing the data to a file and preserve the layout, formatting, etc.? Are there any standards, or does it just depend on the creativity of the programmer?
0
74,141
09/16/2008 16:18:51
12,937
09/16/2008 16:18:50
1
0
Good ORM for C++ solutions?
Does anyone have a good recommendation for an ORM (Object Relational Mapper) for C++? Our technology stack is: IDE/C-Compiler = Borland C++ Builder so ideally something that is known to compile with BCC. We use PostgreSQL as our database and developed our own database abstraction layer using common API to many driver type interface. So ORM need not be database specific although if it is, I'm only currently interested in PostgreSQL aware solutions or solutions with a PostgreSQL's C-Library driver. One option I have been entertaining is using Perl as an embedded language within our application. Perl has ORM called Rose.
c++
postgresql
orm
null
null
02/21/2012 20:39:57
not constructive
Good ORM for C++ solutions? === Does anyone have a good recommendation for an ORM (Object Relational Mapper) for C++? Our technology stack is: IDE/C-Compiler = Borland C++ Builder so ideally something that is known to compile with BCC. We use PostgreSQL as our database and developed our own database abstraction layer using common API to many driver type interface. So ORM need not be database specific although if it is, I'm only currently interested in PostgreSQL aware solutions or solutions with a PostgreSQL's C-Library driver. One option I have been entertaining is using Perl as an embedded language within our application. Perl has ORM called Rose.
4
74,148
09/16/2008 16:18:59
3,362
08/28/2008 08:38:32
21
1
How to convert numbers between Hex and Decimal in C#
How do you convert between Hex numbers and decimal numbers in C#?
c#
null
null
null
null
null
open
How to convert numbers between Hex and Decimal in C# === How do you convert between Hex numbers and decimal numbers in C#?
0
74,161
09/16/2008 16:19:55
1,541
08/16/2008 13:56:32
169
9
Is agile possible when people are shared across multiple projects?
Multi-tasking is shown to be at least 15% less productive than dedicating people to a project (from Mythical Man Month), however in some cases it seems unavoidable. Part of the agile way is to build trust with your customer/team by delivering on time and rarely blowing your iteration schedules. This is difficult when multiple projects can have competing priorities/deadlines. Can you do agile when you're trying to juggle multiple teams and priorities?
project-management
agile
teamwork
trust
null
05/08/2012 17:50:42
off topic
Is agile possible when people are shared across multiple projects? === Multi-tasking is shown to be at least 15% less productive than dedicating people to a project (from Mythical Man Month), however in some cases it seems unavoidable. Part of the agile way is to build trust with your customer/team by delivering on time and rarely blowing your iteration schedules. This is difficult when multiple projects can have competing priorities/deadlines. Can you do agile when you're trying to juggle multiple teams and priorities?
2
74,162
09/16/2008 16:19:55
8,203
09/15/2008 15:23:04
18
4
How to do INSERT into a table records extracted from another table
I'm trying to write a query that extracts and transforms data from a table and then insert those data into another table. Yes, this is a data warehousing query and I'm doing it in MS Access. So basically I want some query like this: INSERT INTO Table2(LongIntColumn2, CurrencyColumn2) VALUES (SELECT LongIntColumn1, Avg(CurrencyColumn) as CurrencyColumn1 FROM Table1 GROUP BY LongIntColumn1); I tried but get a syntax error message. What would you do if you want to do this?
data-warehousing
ms-access
null
null
null
null
open
How to do INSERT into a table records extracted from another table === I'm trying to write a query that extracts and transforms data from a table and then insert those data into another table. Yes, this is a data warehousing query and I'm doing it in MS Access. So basically I want some query like this: INSERT INTO Table2(LongIntColumn2, CurrencyColumn2) VALUES (SELECT LongIntColumn1, Avg(CurrencyColumn) as CurrencyColumn1 FROM Table1 GROUP BY LongIntColumn1); I tried but get a syntax error message. What would you do if you want to do this?
0
74,190
09/16/2008 16:22:29
12,872
09/16/2008 16:03:08
1
0
Can you have more than one ASP.NET State Server Service in a cluster?
We have a 4 cluster server running ASP.NET web application using ASP.NET State Server Service for session. On one of the 4 servers ASP.NET State Server Service is running and other servers are configured to look at this. Very often we have to patch the servers, and applying patch on the State Server requires few minutes of downtime. Is there a way to configure more than two ASP.NET State Server Services in a cluster, so if one goes down, the other takes over?
stateserver
iis6
server2003
cluster
null
null
open
Can you have more than one ASP.NET State Server Service in a cluster? === We have a 4 cluster server running ASP.NET web application using ASP.NET State Server Service for session. On one of the 4 servers ASP.NET State Server Service is running and other servers are configured to look at this. Very often we have to patch the servers, and applying patch on the State Server requires few minutes of downtime. Is there a way to configure more than two ASP.NET State Server Services in a cluster, so if one goes down, the other takes over?
0
74,206
09/16/2008 16:23:51
30,018
10/21/2008 16:17:51
1
2
MS Word: How do I create a shortcut or toolbar button for the "Paste Special..Unformatted Text" option?
I have been playing with this for a while, but the closest I have gotten is a button that opens the "Paste Special" dialog box and requires another couple of mouse clicks to paste the contents of the clipboard as unformatted text. So often I am doing a copy-paste from a web site into a document where I don't want the additional baggage of the HTML formatting, it would be nice to be able to do this with a shortcut key or a toolbar button.
microsoftoffice
office
null
null
null
null
open
MS Word: How do I create a shortcut or toolbar button for the "Paste Special..Unformatted Text" option? === I have been playing with this for a while, but the closest I have gotten is a button that opens the "Paste Special" dialog box and requires another couple of mouse clicks to paste the contents of the clipboard as unformatted text. So often I am doing a copy-paste from a web site into a document where I don't want the additional baggage of the HTML formatting, it would be nice to be able to do this with a shortcut key or a toolbar button.
0
74,218
09/16/2008 16:25:23
6,432
09/15/2008 09:51:05
16
3
How do you restart Rails under Mongrel, without stopping and starting Mongrel
Is there a way to restart the Rails app (e.g. when you've changed a plugin/config file) while Mongrel is running. Or alternatively quickly restart Mongrel. Mongrel gives these hints that you can but how do you do it? ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well.
ruby-on-rails
rubyonrails
mongrel
null
null
null
open
How do you restart Rails under Mongrel, without stopping and starting Mongrel === Is there a way to restart the Rails app (e.g. when you've changed a plugin/config file) while Mongrel is running. Or alternatively quickly restart Mongrel. Mongrel gives these hints that you can but how do you do it? ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well.
0
74,248
09/16/2008 16:29:26
7,346
09/15/2008 13:35:28
80
5
In JSTL/JSP, given a java.util.Date, how do I find the next day?
On a JSTL/JSP page, I have a java.util.Date object from my application. I need to find the day *after* the day specified by that object. I can use &lt;jsp:scriptlet&gt; to drop into Java and use java.util.Calendar to do the necessary calculations, but this feels clumsy and inelegant to me. Is there some way to use JSP or JSTL tags to achieve this end without having to switch into full-on Java, or is the latter the only way to accomplish this?
java
jsp
jstl
null
null
null
open
In JSTL/JSP, given a java.util.Date, how do I find the next day? === On a JSTL/JSP page, I have a java.util.Date object from my application. I need to find the day *after* the day specified by that object. I can use &lt;jsp:scriptlet&gt; to drop into Java and use java.util.Calendar to do the necessary calculations, but this feels clumsy and inelegant to me. Is there some way to use JSP or JSTL tags to achieve this end without having to switch into full-on Java, or is the latter the only way to accomplish this?
0
74,261
09/16/2008 16:31:31
2,581
08/23/2008 04:37:51
164
8
When is it time to change database backends?
Is there a general rule of thumb to follow when storing web application data to know what database backend should be used? Is the number of hits per day, number of rows of data, or other metrics that I should consider when choosing? My initial idea is that the order for this would look something like the following (but not necessarily, which is why I'm asking the question). 1. Flat Files 2. BDB 3. SQLite 4. MySQL 5. PostgreSQL 6. SQL Server 7. Oracle
sql
db
backend
null
null
null
open
When is it time to change database backends? === Is there a general rule of thumb to follow when storing web application data to know what database backend should be used? Is the number of hits per day, number of rows of data, or other metrics that I should consider when choosing? My initial idea is that the order for this would look something like the following (but not necessarily, which is why I'm asking the question). 1. Flat Files 2. BDB 3. SQLite 4. MySQL 5. PostgreSQL 6. SQL Server 7. Oracle
0
74,266
09/16/2008 16:31:59
3,193
08/27/2008 12:43:55
141
19
Rendering suggested values from an ext Combobox to an element in the DOM
I have an ext combobox which uses a store to suggest values to a user as they type. An example of which can be found here: [combobox example][1] Is there a way of making it so the **suggested text list** is rendered to an element in the DOM. Please note I do not mean the "applyTo" config option, as this would render the whole control, including the textbox to the DOM element. [1]: http://extjs.com/deploy/ext/examples/form/combos.html
javascript
ext
null
null
null
null
open
Rendering suggested values from an ext Combobox to an element in the DOM === I have an ext combobox which uses a store to suggest values to a user as they type. An example of which can be found here: [combobox example][1] Is there a way of making it so the **suggested text list** is rendered to an element in the DOM. Please note I do not mean the "applyTo" config option, as this would render the whole control, including the textbox to the DOM element. [1]: http://extjs.com/deploy/ext/examples/form/combos.html
0
74,267
09/16/2008 16:32:17
11,538
09/16/2008 08:59:15
7
0
How to get an Batch file .bat continue onto the next statement if there is an error.
I'm trying to script the shutdown of my VM Servers in a .bat. if one of the vmware-cmd commands fails (as the machine is already shutdown say), I'd like it to continue instead of bombing out. c: cd "c:\Program Files\VMWare\VmWare Server" vmware-cmd C:\VMImages\TCVMDEVSQL01\TCVMDEVSQL01.vmx suspend soft -q vmware-cmd C:\VMImages\DevEnv\DevEnv\DevEnv.vmx suspend soft -q vmware-cmd C:\VMImages\DevEnv\TCVMDEV02\TCVMDEV02.vmx suspend soft =q robocopy c:\vmimages\ \\tcedilacie1tb\VMShare\DevEnvironmentBackups\ /mir /z /r:0 /w:0 vmware-cmd C:\VMImages\TCVMDEVSQL01\TCVMDEVSQL01.vmx start vmware-cmd C:\VMImages\DevEnv\DevEnv\DevEnv.vmx start vmware-cmd C:\VMImages\DevEnv\TCVMDEV02\TCVMDEV02.vmx start
batch
null
null
null
null
null
open
How to get an Batch file .bat continue onto the next statement if there is an error. === I'm trying to script the shutdown of my VM Servers in a .bat. if one of the vmware-cmd commands fails (as the machine is already shutdown say), I'd like it to continue instead of bombing out. c: cd "c:\Program Files\VMWare\VmWare Server" vmware-cmd C:\VMImages\TCVMDEVSQL01\TCVMDEVSQL01.vmx suspend soft -q vmware-cmd C:\VMImages\DevEnv\DevEnv\DevEnv.vmx suspend soft -q vmware-cmd C:\VMImages\DevEnv\TCVMDEV02\TCVMDEV02.vmx suspend soft =q robocopy c:\vmimages\ \\tcedilacie1tb\VMShare\DevEnvironmentBackups\ /mir /z /r:0 /w:0 vmware-cmd C:\VMImages\TCVMDEVSQL01\TCVMDEVSQL01.vmx start vmware-cmd C:\VMImages\DevEnv\DevEnv\DevEnv.vmx start vmware-cmd C:\VMImages\DevEnv\TCVMDEV02\TCVMDEV02.vmx start
0
74,269
09/16/2008 16:32:36
4,540
09/04/2008 17:35:05
265
14
what is the difference between invalidateList and invalidateDisplayList?
I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- that's another question). In this situation, if I call InvalidateDisplayList() on the grid nothing seems to happen. But if I call invalidateList(), the updates happen. (And it's very smooth too -- no flicker like I would expect from invalidating a window in WIN32.) So the question: what is the difference between InvalidateList and InvalidateDisplayList? From the documentation it seems like either one should work.
flex
datagrid
null
null
null
null
open
what is the difference between invalidateList and invalidateDisplayList? === I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- that's another question). In this situation, if I call InvalidateDisplayList() on the grid nothing seems to happen. But if I call invalidateList(), the updates happen. (And it's very smooth too -- no flicker like I would expect from invalidating a window in WIN32.) So the question: what is the difference between InvalidateList and InvalidateDisplayList? From the documentation it seems like either one should work.
0
74,296
09/16/2008 16:35:53
3,957
09/01/2008 02:50:44
362
22
Is there a code review tool with Word review like functionality and TFS integration?
I'm looking for a code review tool that has something like Word's review tools. I would like the ability to add a note in the side bar that references a specific block of code as well as to have portions of the code that are changed tracked so that someone else can open the file later and accept/reject the changes. If it were integrated into Visual Studio and Team Foundation Server that would be even better. Has anyone seen a tool like this? I don't want a big server side application that I have to setup and manage, just something simple that outputs a CodeFile.cs.review and saves that next to the file would be great.
tfs
visual-studio-team-system
version-control
code-review
null
null
open
Is there a code review tool with Word review like functionality and TFS integration? === I'm looking for a code review tool that has something like Word's review tools. I would like the ability to add a note in the side bar that references a specific block of code as well as to have portions of the code that are changed tracked so that someone else can open the file later and accept/reject the changes. If it were integrated into Visual Studio and Team Foundation Server that would be even better. Has anyone seen a tool like this? I don't want a big server side application that I have to setup and manage, just something simple that outputs a CodeFile.cs.review and saves that next to the file would be great.
0
74,315
09/16/2008 16:37:26
12,870
09/16/2008 16:02:28
11
2
What is the best way to handle photo uploads?
I'm doing a website for a family member's wedding. A feature they requested was a photo section where all the guests could go after the wedding and upload their snaps. I said this was a stellar idea and I went off to build it. Well there's just the one problem: logistics. Upload speeds are slow and photos from modern cameras are huge (2-5+Megs). I will only need ~800px wide images and some of them might require rotating so ideally I'm looking about using a client-side editor to do three things: 1. Let users pick multiple files 2. Let them rotate some images so they're the right way up 3. Resize them and then upload And in my dream world, it'd be free and open source. Any ideas? Just a reminder: this is something the guests have to use. Some of them will be pretty computer savvy but others will be almost completely illiterate. Installing desktop apps isn't really an option. And I assume 98% of them have Flash and Java installed.
php
java
flash
javascript
null
null
open
What is the best way to handle photo uploads? === I'm doing a website for a family member's wedding. A feature they requested was a photo section where all the guests could go after the wedding and upload their snaps. I said this was a stellar idea and I went off to build it. Well there's just the one problem: logistics. Upload speeds are slow and photos from modern cameras are huge (2-5+Megs). I will only need ~800px wide images and some of them might require rotating so ideally I'm looking about using a client-side editor to do three things: 1. Let users pick multiple files 2. Let them rotate some images so they're the right way up 3. Resize them and then upload And in my dream world, it'd be free and open source. Any ideas? Just a reminder: this is something the guests have to use. Some of them will be pretty computer savvy but others will be almost completely illiterate. Installing desktop apps isn't really an option. And I assume 98% of them have Flash and Java installed.
0
74,326
09/16/2008 16:38:54
13,013
09/16/2008 16:38:54
1
0
How should I detect unnecessary #include files in a large C++ project?
I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include's. Sometimes the #include's are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the .cpp file. Are there any good tools for detecting both of these cases?
c++
visual-studio-2008
header
include
dependencies
null
open
How should I detect unnecessary #include files in a large C++ project? === I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include's. Sometimes the #include's are just artifacts and everything will compile fine with them removed, and in other cases classes could be forward declared and the #include could be moved to the .cpp file. Are there any good tools for detecting both of these cases?
0
74,350
09/16/2008 16:41:09
1,169
08/13/2008 09:39:24
211
18
How to fix an MFC Painting Glitch?
I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard drive. As part of some UI polish, I was hoping to implement a 'highlight' type feature. When dragging and dropping, windows that you can legally drop a material onto will very subtly change color to improve feedback to the user that this is a valid action. In the included screenshot, I am changing the bar with 'Basic Materials' (Just a CWnd with a CStatic) from having a medium gray background when unhighlighed to a blue background when hovered over. It all works well, the OnDragEnter and OnDragExit messages seem robust and set a flag indicating the highlight status. Then in OnCtrlColor I do this: if (!m_bHighlighted) { pDC->FillSolidRect(0, 0, m_SizeX, kGroupHeaderHeight, kBackgroundColour); } else { pDC->FillSolidRect(0, 0, m_SizeX, kGroupHeaderHeight, kHighlightedBackgroundColour); } ![Material Library Badness][1] However, as you can see in the screenshot, the painting 'glitches' below the dragged object, leaving the original gray in place. It looks really ugly and basically spoils the whole effect. Is there any way I can get around this? MFC isn't fun at the best of times, and this is causing me to tear my hair out. All help gratefully appreciated. [1]: http://www.aliparr.net/badmfcpaint.jpg
c++
mfc
painting
null
null
null
open
How to fix an MFC Painting Glitch? === I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard drive. As part of some UI polish, I was hoping to implement a 'highlight' type feature. When dragging and dropping, windows that you can legally drop a material onto will very subtly change color to improve feedback to the user that this is a valid action. In the included screenshot, I am changing the bar with 'Basic Materials' (Just a CWnd with a CStatic) from having a medium gray background when unhighlighed to a blue background when hovered over. It all works well, the OnDragEnter and OnDragExit messages seem robust and set a flag indicating the highlight status. Then in OnCtrlColor I do this: if (!m_bHighlighted) { pDC->FillSolidRect(0, 0, m_SizeX, kGroupHeaderHeight, kBackgroundColour); } else { pDC->FillSolidRect(0, 0, m_SizeX, kGroupHeaderHeight, kHighlightedBackgroundColour); } ![Material Library Badness][1] However, as you can see in the screenshot, the painting 'glitches' below the dragged object, leaving the original gray in place. It looks really ugly and basically spoils the whole effect. Is there any way I can get around this? MFC isn't fun at the best of times, and this is causing me to tear my hair out. All help gratefully appreciated. [1]: http://www.aliparr.net/badmfcpaint.jpg
0
74,358
09/16/2008 16:41:49
8,355
09/15/2008 15:47:12
11
7
Validate server certificate with LWP?
How can I get [LWP](http://search.cpan.org/perldoc?LWP) to verify that the certificate of the server I'm connecting to is signed by a trusted authority and issued to the correct host? As far as I can tell, it doesn't even check that the certificate claims to be for the hostname I'm connecting to. That seems like a major security hole (especially with the recent DNS vulnerabilities).
perl
lwp
https
ssl
null
null
open
Validate server certificate with LWP? === How can I get [LWP](http://search.cpan.org/perldoc?LWP) to verify that the certificate of the server I'm connecting to is signed by a trusted authority and issued to the correct host? As far as I can tell, it doesn't even check that the certificate claims to be for the hostname I'm connecting to. That seems like a major security hole (especially with the recent DNS vulnerabilities).
0
74,372
09/16/2008 16:43:05
13,029
09/16/2008 16:43:05
1
0
How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?
I am involved in the process of porting a system containing many ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #!/bin/ksh flag=false echo "a\nb" | while read x do flag=true done echo "flag = ${flag}" exit 0 On AIX, Solaris and HPUX the output is "flag = true" on Linux the output is "flag = false". My questions are: * Is there an environment variable that I can set to get Linux's ksh to behave like the other Os's'? Failing that: * Is there an option on Linux's ksh to get the required behavior? Failing that: * Is there a ksh implementation available for Linux with the desired behavior? Other notes: * On AIX, Solaris and HPUX ksh is a variant of ksh88. * On Linux, ksh is the public domain ksh (pdksh) * On AIX, Solaris and HPUX dtksh and ksh93 (where I have them installed) are consistent with ksh * The Windows NT systems I have access to: Cygwin and MKS NT, are consistent with Linux. * On AIX, Solaris and Linux, bash is consistent, giving the incorrect (from my perspective) result of "flag = false". The following table summarizes the systems the problem: uname -s uname -r which ksh ksh version flag = ======== ======== ========= =========== ====== Linux 2.6.9-55.0.0.0.2.ELsmp /bin/ksh PD KSH v5.2.14 99/07/13.2 false AIX 3 /bin/ksh Version M-11/16/88f true // AIX 5.3 /bin/ksh93 Version M-12/28/93e true SunOS 5.8, 5.9 and 5.10 /bin/ksh Version M-11/16/88i true /usr/dt/bin/dtksh Version M-12/28/93d true HP-UX B.11.11 and B.11.23 /bin/ksh Version 11/16/88 true /usr/dt/bin/dtksh Version M-12/28/93d true CYGWIN_NT-5.1 1.5.25(0.156/4/2) /bin/ksh PD KSH v5.2.14 99/07/13.2 false Windows_N 5 .../mksnt/ksh.exe Version 8.7.0 build 1859... false // MKS
ksh
linux
aix
solaris
null
null
open
How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX? === I am involved in the process of porting a system containing many ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #!/bin/ksh flag=false echo "a\nb" | while read x do flag=true done echo "flag = ${flag}" exit 0 On AIX, Solaris and HPUX the output is "flag = true" on Linux the output is "flag = false". My questions are: * Is there an environment variable that I can set to get Linux's ksh to behave like the other Os's'? Failing that: * Is there an option on Linux's ksh to get the required behavior? Failing that: * Is there a ksh implementation available for Linux with the desired behavior? Other notes: * On AIX, Solaris and HPUX ksh is a variant of ksh88. * On Linux, ksh is the public domain ksh (pdksh) * On AIX, Solaris and HPUX dtksh and ksh93 (where I have them installed) are consistent with ksh * The Windows NT systems I have access to: Cygwin and MKS NT, are consistent with Linux. * On AIX, Solaris and Linux, bash is consistent, giving the incorrect (from my perspective) result of "flag = false". The following table summarizes the systems the problem: uname -s uname -r which ksh ksh version flag = ======== ======== ========= =========== ====== Linux 2.6.9-55.0.0.0.2.ELsmp /bin/ksh PD KSH v5.2.14 99/07/13.2 false AIX 3 /bin/ksh Version M-11/16/88f true // AIX 5.3 /bin/ksh93 Version M-12/28/93e true SunOS 5.8, 5.9 and 5.10 /bin/ksh Version M-11/16/88i true /usr/dt/bin/dtksh Version M-12/28/93d true HP-UX B.11.11 and B.11.23 /bin/ksh Version 11/16/88 true /usr/dt/bin/dtksh Version M-12/28/93d true CYGWIN_NT-5.1 1.5.25(0.156/4/2) /bin/ksh PD KSH v5.2.14 99/07/13.2 false Windows_N 5 .../mksnt/ksh.exe Version 8.7.0 build 1859... false // MKS
0
74,385
09/16/2008 16:44:22
7,604
09/15/2008 14:02:40
1
1
How to convert DateTime to VarChar
I am working on a query where I need to convert a value in DateTime variable into a varchar variable in 'yyyy-mm-dd' format (without time part). Please help, thanks.
sql
sql-server
datetime-operation
null
null
null
open
How to convert DateTime to VarChar === I am working on a query where I need to convert a value in DateTime variable into a varchar variable in 'yyyy-mm-dd' format (without time part). Please help, thanks.
0
74,386
09/16/2008 16:44:27
12,999
09/16/2008 16:35:14
1
0
Using DLR from Unmanaged Code
Is it possible to call managed code, specifically IronRuby or IronPython from unamanaged code such as C++ or Delphi? For example, we have an application written in Delphi that is being moved to C#.NET We'd like to provide Ruby or Python scripting in our new application to replace VBSCRIPT. However, we would need to provide Ruby/Python scripting in the old Delphi application. Is it possible to use the managed dlls provided by IronRuby/IronPython from Delphi code?
.net
delphi
ironpython
unmanaged
ironruby
null
open
Using DLR from Unmanaged Code === Is it possible to call managed code, specifically IronRuby or IronPython from unamanaged code such as C++ or Delphi? For example, we have an application written in Delphi that is being moved to C#.NET We'd like to provide Ruby or Python scripting in our new application to replace VBSCRIPT. However, we would need to provide Ruby/Python scripting in the old Delphi application. Is it possible to use the managed dlls provided by IronRuby/IronPython from Delphi code?
0
74,391
09/16/2008 16:44:51
13,035
09/16/2008 16:44:51
1
0
Proving correctness of multithread algorithms
Does anyone have a good reference (books, articles) for this? Thanks!
algorithm
theory
multithreading
proof
correctness
null
open
Proving correctness of multithread algorithms === Does anyone have a good reference (books, articles) for this? Thanks!
0
74,392
09/16/2008 16:45:29
11,858
09/16/2008 11:50:28
1
0
Is it possible to use Jackpot outside of netbeans, without netbeans projects?
I know there is a Jackpot API <http://jackpot.netbeans.org/docs/org-netbeans-modules-jackpot/overview-summary.html> for programmatic access the the rules engine, has anyone had success seperating this from netbeans itself? So it can operate on any java source files?
java
netbeans
null
null
null
null
open
Is it possible to use Jackpot outside of netbeans, without netbeans projects? === I know there is a Jackpot API <http://jackpot.netbeans.org/docs/org-netbeans-modules-jackpot/overview-summary.html> for programmatic access the the rules engine, has anyone had success seperating this from netbeans itself? So it can operate on any java source files?
0
74,422
09/16/2008 16:48:52
13,046
09/16/2008 16:48:52
1
0
.NET CF Game Loop
Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case? Should the game form paint loop only should be overriden? or should i do an application.do events() in the main method? Please guide me regarding this. i am new to windows forms world
c#
gameloop
null
null
null
null
open
.NET CF Game Loop === Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case? Should the game form paint loop only should be overriden? or should i do an application.do events() in the main method? Please guide me regarding this. i am new to windows forms world
0
74,430
09/16/2008 16:49:33
13,050
09/16/2008 16:49:33
1
0
Random in python 2.5 not working?
I am trying to use the import random statement in python, but it doesn't appear to have any methods in it to use. Am I missing something?
python
null
null
null
null
null
open
Random in python 2.5 not working? === I am trying to use the import random statement in python, but it doesn't appear to have any methods in it to use. Am I missing something?
0
74,443
09/16/2008 16:50:57
11,105
09/16/2008 05:05:11
8
0
Managing authorized_keys on a large number of hosts.
What is the easiest way to manage the authorized_keys file for openssh across a large number of hosts? If I need to add or revoke a new key to an account on 10 hosts say, I must login and add the public key manually, or through a clumsy shell script, which is time consuming. Ideally there would be a central database linking keys to accounts@machines with some sort of grouping support (IE, add this key to username X on all servers in the web category). There's fork of SSH with ldap support, but I'd rather use the mainline SSH packages.
unix
authentication
ssh
openssh
null
null
open
Managing authorized_keys on a large number of hosts. === What is the easiest way to manage the authorized_keys file for openssh across a large number of hosts? If I need to add or revoke a new key to an account on 10 hosts say, I must login and add the public key manually, or through a clumsy shell script, which is time consuming. Ideally there would be a central database linking keys to accounts@machines with some sort of grouping support (IE, add this key to username X on all servers in the web category). There's fork of SSH with ldap support, but I'd rather use the mainline SSH packages.
0
74,447
09/16/2008 16:51:29
5,885
09/11/2008 15:03:17
100
5
Is it possible to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows?
If I attempt to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows, the client bombs after connecting. It only works when I set it to the highest color depth. I've tried with at least 3 windows VNC clients. Any ideas? There some setting I can set in Mac OS X? It takes about 20 seconds to repaint the screen with my current connection and high bit depth setting.
windows
osx
vnc
null
null
null
open
Is it possible to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows? === If I attempt to connect to Mac OS X 10.5 Leopard's built in vnc server at a low color depth from Windows, the client bombs after connecting. It only works when I set it to the highest color depth. I've tried with at least 3 windows VNC clients. Any ideas? There some setting I can set in Mac OS X? It takes about 20 seconds to repaint the screen with my current connection and high bit depth setting.
0
74,451
09/16/2008 16:51:45
6,799
09/15/2008 12:38:48
11
5
Getting actual file name (with proper casing) on Windows
Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the *actual* name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)? Some ways I know, all of which seem quite backwards: 1. Given the full path, search for each folder on the path (via FindFirstFile). This gives proper cased results of each folder. At the last step, search for the file itself. 2. Get filename from handle (as in [MSDN example][1]). This requires opening a file, creating file mapping, getting it's name, parsing device names etc. Pretty convoluted. And it does not work for folders or zero-size files. Am I missing some obvious WinAPI call? [1]: http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx
windows
winapi
null
null
null
null
open
Getting actual file name (with proper casing) on Windows === Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the *actual* name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)? Some ways I know, all of which seem quite backwards: 1. Given the full path, search for each folder on the path (via FindFirstFile). This gives proper cased results of each folder. At the last step, search for the file itself. 2. Get filename from handle (as in [MSDN example][1]). This requires opening a file, creating file mapping, getting it's name, parsing device names etc. Pretty convoluted. And it does not work for folders or zero-size files. Am I missing some obvious WinAPI call? [1]: http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx
0
74,460
09/16/2008 16:52:15
1,287
08/14/2008 12:06:53
74
5
Resume parsing library for a .Net project
I need to extract information from hundreds of resumes. The ideal would be .doc, .docx, .pdf, .rtf --> hr-xml but since more than 90% of the resumes are .doc, the other formats are not a must have. I'm looking to buy a third-party tool or a component. Do you have any good/bad experience solving a similar problem?
.net
third-party
components
null
null
null
open
Resume parsing library for a .Net project === I need to extract information from hundreds of resumes. The ideal would be .doc, .docx, .pdf, .rtf --> hr-xml but since more than 90% of the resumes are .doc, the other formats are not a must have. I'm looking to buy a third-party tool or a component. Do you have any good/bad experience solving a similar problem?
0
74,461
09/16/2008 16:52:20
12,413
09/16/2008 14:17:27
1
2
Silverlight- DataGrid control - Selection Changed event interfering with sorting
I'm currently playing with the Silverlight(Beta 2) Datagrid control. Before I wired up the SelectionChanged event, the grid would sort perfectly by clicking on the header. Now, when the grid is clicked, it will fire the SelectionChanged event when I click the header to sort. Is there any way around this? In a semi-related topic, I'd like to have the SelectionChanged event fire when I click on an already selected item (so that I can have a pop-up occur to allow the user to edit the selected value). Right now, you have to click on a different value and then back to the value you wanted in order for it to pop up. Is there another way? Included is my code. The Page: <UserControl x:Class="WebServicesApp.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" Width="1280" Height="1024" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <StackPanel Grid.Row="0" x:Name="OurStack" Orientation="Vertical" Margin="5,5,5,5"> <ContentControl VerticalAlignment="Center" HorizontalAlignment="Center"> <StackPanel x:Name="SearchStackPanel" Orientation="Horizontal" Margin="5,5,5,5"> <TextBlock x:Name="SearchEmail" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="Email Address:" Margin="5,5,5,5" /> <TextBox x:Name="InputText" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="150" Height="Auto" Margin="5,5,5,5"/> <Button x:Name="SearchButton" Content="Search" Click="CallServiceButton_Click" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Height="Auto" Background="#FFAFAFAF" Margin="5,5,5,5"/> </StackPanel> </ContentControl> <Grid x:Name="DisplayRoot" Background="White" ShowGridLines="True" HorizontalAlignment="Center" VerticalAlignment="Center" MaxHeight="300" MinHeight="100" MaxWidth="800" MinWidth="200" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"> <data:DataGrid ItemsSource="{Binding ''}" CanUserReorderColumns="False" CanUserResizeColumns="False" AutoGenerateColumns="False" AlternatingRowBackground="#FFAFAFAF" SelectionMode="Single" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,5,5,5" x:Name="IncidentGrid" SelectionChanged="IncidentGrid_SelectionChanged"> <data:DataGrid.Columns> <data:DataGridTextColumn DisplayMemberBinding="{Binding Address}" Header="Email Address" IsReadOnly="True" /> <!--Width="150"--> <data:DataGridTextColumn DisplayMemberBinding="{Binding whereClause}" Header="Where Clause" IsReadOnly="True" /> <!--Width="500"--> <data:DataGridTextColumn DisplayMemberBinding="{Binding Enabled}" Header="Enabled" IsReadOnly="True" /> </data:DataGrid.Columns> </data:DataGrid> </Grid> </StackPanel> <Grid x:Name="EditPersonPopupGrid" Visibility="Collapsed"> <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.765" Fill="#FF8A8A8A" /> <Border CornerRadius="30" Background="#FF2D1DCC" Width="700" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="1,1,1,1" BorderBrush="#FF000000"> <StackPanel x:Name="EditPersonStackPanel" Orientation="Vertical" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="650" > <ContentControl> <StackPanel x:Name="EmailEditStackPanel" Orientation="Horizontal"> <TextBlock Text="Email Address:" Width="200" Margin="5,0,5,0" /> <TextBox x:Name="EmailPopupTextBox" Width="200" /> </StackPanel> </ContentControl> <ContentControl> <StackPanel x:Name="AppliesToDropdownStackPanel" Orientation="Horizontal" Margin="2,2,2,0"> <TextBlock Text="Don't send when update was done by:" /> <StackPanel Orientation="Vertical" MaxHeight="275" MaxWidth="350" > <TextBlock x:Name="SelectedItemTextBlock" TextAlignment="Right" Width="200" Margin="5,0,5,0" /> <Grid x:Name="UserDropDownGrid" MaxHeight="75" MaxWidth="200" Visibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Hidden" > <Rectangle Fill="White" /> <Border Background="White"> <ListBox x:Name="UsersListBox" SelectionChanged="UsersListBox_SelectionChanged" ItemsSource="{Binding UserID}" /> </Border> </Grid> </StackPanel> <Button x:Name="DropDownButton" Click="DropDownButton_Click" VerticalAlignment="Top" Width="25" Height="25"> <Path Height="10" Width="10" Fill="#FF000000" Stretch="Fill" Stroke="#FF000000" Data="M514.66669,354 L542.16669,354 L527.74988,368.41684 z" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="1,1,1,1"/> </Button> </StackPanel> </ContentControl> <TextBlock Text="Where Clause Condition:" /> <TextBox x:Name="WhereClauseTextBox" Height="200" Width="800" AcceptsReturn="True" TextWrapping="Wrap" /> <ContentControl> <StackPanel Orientation="Vertical"> <StackPanel Orientation="Horizontal"> <Button x:Name="TestConditionButton" Content="Test Condition" Margin="5,5,5,5" Click="TestConditionButton_Click" /> <Button x:Name="Save" Content="Save" HorizontalAlignment="Right" Margin="5,5,5,5" Click="Save_Click" /> <Button x:Name="Cancel" Content="Cancel" HorizontalAlignment="Right" Margin="5,5,5,5" Click="Cancel_Click" /> </StackPanel> <TextBlock x:Name="TestContitionResults" Visibility="Collapsed" /> </StackPanel> </ContentControl> </StackPanel> </Border> </Grid> </Grid> </UserControl> And the call that occurs when the grid's selection is changed: Private Sub IncidentGrid_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) If mFirstTime Then mFirstTime = False Else Dim data As SimpleASMX.EMailMonitor = CType(IncidentGrid.SelectedItem, SimpleASMX.EMailMonitor) Dim selectedGridItem As SimpleASMX.EMailMonitor = Nothing If IncidentGrid.SelectedItem IsNot Nothing Then selectedGridItem = CType(IncidentGrid.SelectedItem, SimpleASMX.EMailMonitor) EmailPopupTextBox.Text = selectedGridItem.Address SelectedItemTextBlock.Text = selectedGridItem.AppliesToUserID WhereClauseTextBox.Text = selectedGridItem.whereClause IncidentGrid.SelectedIndex = mEmailMonitorData.IndexOf(selectedGridItem) End If If IncidentGrid.SelectedIndex > -1 Then EditPersonPopupGrid.Visibility = Windows.Visibility.Visible Else EditPersonPopupGrid.Visibility = Windows.Visibility.Collapsed End If End If End Sub Sorry if my code is atrocious, I'm still learning Silverlight.
vb.net
silverlight
xaml
webservice
datagrid
null
open
Silverlight- DataGrid control - Selection Changed event interfering with sorting === I'm currently playing with the Silverlight(Beta 2) Datagrid control. Before I wired up the SelectionChanged event, the grid would sort perfectly by clicking on the header. Now, when the grid is clicked, it will fire the SelectionChanged event when I click the header to sort. Is there any way around this? In a semi-related topic, I'd like to have the SelectionChanged event fire when I click on an already selected item (so that I can have a pop-up occur to allow the user to edit the selected value). Right now, you have to click on a different value and then back to the value you wanted in order for it to pop up. Is there another way? Included is my code. The Page: <UserControl x:Class="WebServicesApp.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" Width="1280" Height="1024" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <StackPanel Grid.Row="0" x:Name="OurStack" Orientation="Vertical" Margin="5,5,5,5"> <ContentControl VerticalAlignment="Center" HorizontalAlignment="Center"> <StackPanel x:Name="SearchStackPanel" Orientation="Horizontal" Margin="5,5,5,5"> <TextBlock x:Name="SearchEmail" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="Email Address:" Margin="5,5,5,5" /> <TextBox x:Name="InputText" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="150" Height="Auto" Margin="5,5,5,5"/> <Button x:Name="SearchButton" Content="Search" Click="CallServiceButton_Click" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Height="Auto" Background="#FFAFAFAF" Margin="5,5,5,5"/> </StackPanel> </ContentControl> <Grid x:Name="DisplayRoot" Background="White" ShowGridLines="True" HorizontalAlignment="Center" VerticalAlignment="Center" MaxHeight="300" MinHeight="100" MaxWidth="800" MinWidth="200" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"> <data:DataGrid ItemsSource="{Binding ''}" CanUserReorderColumns="False" CanUserResizeColumns="False" AutoGenerateColumns="False" AlternatingRowBackground="#FFAFAFAF" SelectionMode="Single" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,5,5,5" x:Name="IncidentGrid" SelectionChanged="IncidentGrid_SelectionChanged"> <data:DataGrid.Columns> <data:DataGridTextColumn DisplayMemberBinding="{Binding Address}" Header="Email Address" IsReadOnly="True" /> <!--Width="150"--> <data:DataGridTextColumn DisplayMemberBinding="{Binding whereClause}" Header="Where Clause" IsReadOnly="True" /> <!--Width="500"--> <data:DataGridTextColumn DisplayMemberBinding="{Binding Enabled}" Header="Enabled" IsReadOnly="True" /> </data:DataGrid.Columns> </data:DataGrid> </Grid> </StackPanel> <Grid x:Name="EditPersonPopupGrid" Visibility="Collapsed"> <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Opacity="0.765" Fill="#FF8A8A8A" /> <Border CornerRadius="30" Background="#FF2D1DCC" Width="700" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="1,1,1,1" BorderBrush="#FF000000"> <StackPanel x:Name="EditPersonStackPanel" Orientation="Vertical" Background="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="650" > <ContentControl> <StackPanel x:Name="EmailEditStackPanel" Orientation="Horizontal"> <TextBlock Text="Email Address:" Width="200" Margin="5,0,5,0" /> <TextBox x:Name="EmailPopupTextBox" Width="200" /> </StackPanel> </ContentControl> <ContentControl> <StackPanel x:Name="AppliesToDropdownStackPanel" Orientation="Horizontal" Margin="2,2,2,0"> <TextBlock Text="Don't send when update was done by:" /> <StackPanel Orientation="Vertical" MaxHeight="275" MaxWidth="350" > <TextBlock x:Name="SelectedItemTextBlock" TextAlignment="Right" Width="200" Margin="5,0,5,0" /> <Grid x:Name="UserDropDownGrid" MaxHeight="75" MaxWidth="200" Visibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Hidden" > <Rectangle Fill="White" /> <Border Background="White"> <ListBox x:Name="UsersListBox" SelectionChanged="UsersListBox_SelectionChanged" ItemsSource="{Binding UserID}" /> </Border> </Grid> </StackPanel> <Button x:Name="DropDownButton" Click="DropDownButton_Click" VerticalAlignment="Top" Width="25" Height="25"> <Path Height="10" Width="10" Fill="#FF000000" Stretch="Fill" Stroke="#FF000000" Data="M514.66669,354 L542.16669,354 L527.74988,368.41684 z" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="1,1,1,1"/> </Button> </StackPanel> </ContentControl> <TextBlock Text="Where Clause Condition:" /> <TextBox x:Name="WhereClauseTextBox" Height="200" Width="800" AcceptsReturn="True" TextWrapping="Wrap" /> <ContentControl> <StackPanel Orientation="Vertical"> <StackPanel Orientation="Horizontal"> <Button x:Name="TestConditionButton" Content="Test Condition" Margin="5,5,5,5" Click="TestConditionButton_Click" /> <Button x:Name="Save" Content="Save" HorizontalAlignment="Right" Margin="5,5,5,5" Click="Save_Click" /> <Button x:Name="Cancel" Content="Cancel" HorizontalAlignment="Right" Margin="5,5,5,5" Click="Cancel_Click" /> </StackPanel> <TextBlock x:Name="TestContitionResults" Visibility="Collapsed" /> </StackPanel> </ContentControl> </StackPanel> </Border> </Grid> </Grid> </UserControl> And the call that occurs when the grid's selection is changed: Private Sub IncidentGrid_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) If mFirstTime Then mFirstTime = False Else Dim data As SimpleASMX.EMailMonitor = CType(IncidentGrid.SelectedItem, SimpleASMX.EMailMonitor) Dim selectedGridItem As SimpleASMX.EMailMonitor = Nothing If IncidentGrid.SelectedItem IsNot Nothing Then selectedGridItem = CType(IncidentGrid.SelectedItem, SimpleASMX.EMailMonitor) EmailPopupTextBox.Text = selectedGridItem.Address SelectedItemTextBlock.Text = selectedGridItem.AppliesToUserID WhereClauseTextBox.Text = selectedGridItem.whereClause IncidentGrid.SelectedIndex = mEmailMonitorData.IndexOf(selectedGridItem) End If If IncidentGrid.SelectedIndex > -1 Then EditPersonPopupGrid.Visibility = Windows.Visibility.Visible Else EditPersonPopupGrid.Visibility = Windows.Visibility.Collapsed End If End If End Sub Sorry if my code is atrocious, I'm still learning Silverlight.
0
74,466
09/16/2008 16:52:34
3,047
08/26/2008 13:36:37
80
7
How do I use an icon that is a resource in WPF?
I have a .ico file that is embedded as a resource (build action set to resource). I am trying to create a NotifyIcon. How can I reference my icon? notifyIcon = new NotifyIcon(); notifyIcon.Icon = ?? // my icon file is called MyIcon.ico and is embedded
wpf
null
null
null
null
null
open
How do I use an icon that is a resource in WPF? === I have a .ico file that is embedded as a resource (build action set to resource). I am trying to create a NotifyIcon. How can I reference my icon? notifyIcon = new NotifyIcon(); notifyIcon.Icon = ?? // my icon file is called MyIcon.ico and is embedded
0
74,471
09/16/2008 16:52:36
8,741
09/15/2008 16:46:16
18
1
Redundant Call to Object.ToString()
I have a function that takes, amongst others, a parameter declared as *int privateCount*. When I want to call ToString() on this param, ReSharper greys it out and marks it as a redundant call. So, curious as I am, I remove the ToString(), and the code still builds! How can a C# compiler allow this, where *str* is a string? `str += privateCount +` ...
c#
.net
null
null
null
null
open
Redundant Call to Object.ToString() === I have a function that takes, amongst others, a parameter declared as *int privateCount*. When I want to call ToString() on this param, ReSharper greys it out and marks it as a redundant call. So, curious as I am, I remove the ToString(), and the code still builds! How can a C# compiler allow this, where *str* is a string? `str += privateCount +` ...
0
74,479
09/16/2008 16:53:08
224
08/03/2008 17:17:37
686
35
Scalable Moebius strip in WPF
A [moebius strip][1] is a surface with one side. How would one define such an object in XAML/WPF? How could such an object be manipulated in 3D, scaled up and down and rotated using C#? [1]: http://en.wikipedia.org/wiki/M%C3%B6bius_strip
c#
wpf
math
xaml
topology
null
open
Scalable Moebius strip in WPF === A [moebius strip][1] is a surface with one side. How would one define such an object in XAML/WPF? How could such an object be manipulated in 3D, scaled up and down and rotated using C#? [1]: http://en.wikipedia.org/wiki/M%C3%B6bius_strip
0
74,484
09/16/2008 16:53:40
9,328
09/15/2008 18:26:05
22
1
Why should I care about compacting an MS Access .mdb file?
We distribute an application that uses an MS Access .mdb file. Somebody has noticed that after opening the file in MS Access the file size shrinks a lot. That suggests that the file is a good candidate for compacting, but we don't supply the means for our users to do that. So, my question is, does it matter? Do we care? What bad things can happen if our users never compact the database?
ms-access
null
null
null
null
null
open
Why should I care about compacting an MS Access .mdb file? === We distribute an application that uses an MS Access .mdb file. Somebody has noticed that after opening the file in MS Access the file size shrinks a lot. That suggests that the file is a good candidate for compacting, but we don't supply the means for our users to do that. So, my question is, does it matter? Do we care? What bad things can happen if our users never compact the database?
0
74,494
09/16/2008 16:54:31
13,071
09/16/2008 16:54:31
1
0
Limit dev environment to e-mail only certain domains for testing (XP smtp IIS)
I'm developing a website on an XP virtual machine and have an SMTP virtual server set up in IIS -- it delivers mail just fine. What I would *like* is to confirm that any emails the site sends are only going to a specific domain. The XP firewall seems to only involve incoming connections, I can't block outgoing TCP on port 25. And I haven't been able to configure the SMTP server to filter by delivery address. With this setup, is there any easy way to filter outgoing email by destination address?
testing
iis
smtp
windows-xp
null
null
open
Limit dev environment to e-mail only certain domains for testing (XP smtp IIS) === I'm developing a website on an XP virtual machine and have an SMTP virtual server set up in IIS -- it delivers mail just fine. What I would *like* is to confirm that any emails the site sends are only going to a specific domain. The XP firewall seems to only involve incoming connections, I can't block outgoing TCP on port 25. And I haven't been able to configure the SMTP server to filter by delivery address. With this setup, is there any easy way to filter outgoing email by destination address?
0
74,514
09/16/2008 16:56:24
12,851
09/16/2008 15:59:00
1
2
What is the "best" canonical implementation of Equals() for reference types?
Implementing Equals() for reference types is harder than it seems. My current canonical implementation goes like this: public bool Equals( MyClass obj ) { // If both refer to the same reference they are equal. if( ReferenceEquals( obj, this ) ) return true; // If the other object is null they are not equal because in C# this cannot be null. if( ReferenceEquals( obj, null ) ) return false; // Compare data to evaluate equality return _data.Equals( obj._data ); } public override bool Equals( object obj ) { // If both refer to the same reference they are equal. if( ReferenceEquals( obj, this ) ) return true; // If the other object is null or is of a different types the objects are not equal. if( ReferenceEquals( obj, null ) || obj.GetType() != GetType() ) return false; // Use type-safe equality comparison return Equals( (MyClass)obj ); } public override int GetHashCode() { // Use data's hash code as our hashcode return _data.GetHashCode(); } I think that this covers all corner (inheritance and such) cases but I may be wrong. What do you guys think?
c#
.net
equals
null
null
null
open
What is the "best" canonical implementation of Equals() for reference types? === Implementing Equals() for reference types is harder than it seems. My current canonical implementation goes like this: public bool Equals( MyClass obj ) { // If both refer to the same reference they are equal. if( ReferenceEquals( obj, this ) ) return true; // If the other object is null they are not equal because in C# this cannot be null. if( ReferenceEquals( obj, null ) ) return false; // Compare data to evaluate equality return _data.Equals( obj._data ); } public override bool Equals( object obj ) { // If both refer to the same reference they are equal. if( ReferenceEquals( obj, this ) ) return true; // If the other object is null or is of a different types the objects are not equal. if( ReferenceEquals( obj, null ) || obj.GetType() != GetType() ) return false; // Use type-safe equality comparison return Equals( (MyClass)obj ); } public override int GetHashCode() { // Use data's hash code as our hashcode return _data.GetHashCode(); } I think that this covers all corner (inheritance and such) cases but I may be wrong. What do you guys think?
0
74,519
09/16/2008 16:57:03
13,054
09/16/2008 16:50:02
1
0
Using 7zip from delphi
I would like to use the 7zip dlls from delphi but have not been able to find decent documentation or examples. Does anyone know how to use the 7zip dlls from delphi?
delphi
7zip
null
null
null
null
open
Using 7zip from delphi === I would like to use the 7zip dlls from delphi but have not been able to find decent documentation or examples. Does anyone know how to use the 7zip dlls from delphi?
0
74,521
09/16/2008 16:57:11
11,994
09/16/2008 12:47:20
9
0
I'm looking to use Visual Studio to write and compile using the open source version of Qt4.
Does anyone have details in setting up Qt4 in Visual Studio 2008 for use in editing and compiling? I already know that the commercial version of Qt has applications to this end. I also realize that I'll probably need to compile from source as the installer for the open source does not support Visual Studio and installs Cygwin.
qt
visual-studio-2008
null
null
null
null
open
I'm looking to use Visual Studio to write and compile using the open source version of Qt4. === Does anyone have details in setting up Qt4 in Visual Studio 2008 for use in editing and compiling? I already know that the commercial version of Qt has applications to this end. I also realize that I'll probably need to compile from source as the installer for the open source does not support Visual Studio and installs Cygwin.
0
74,526
09/16/2008 16:57:52
8,114
09/15/2008 15:12:34
36
3
TFS annotate/blame summary report for a project
In Team Foundation Server, I know that you can use the "Annotate" feature to see who last edited each line in a particular file (equivalent to "Blame" in CVS). What I'd like to do is akin to running Annotate on every file in a project, and get a summary report of all the developers who have edited a file in the project, and how many lines of code they currently "own" in that project. Aside from systematically running Annotate of each file, I can't see a way to do this. Any ideas that would make this process faster? PS - I'm doing to this to see how much of a consultant's code still remains in a particular (rather large) project, not to keep tabs on my developers, in case you're worried about my motivation :)
visual-studio
tfs
codereview
annotate
null
null
open
TFS annotate/blame summary report for a project === In Team Foundation Server, I know that you can use the "Annotate" feature to see who last edited each line in a particular file (equivalent to "Blame" in CVS). What I'd like to do is akin to running Annotate on every file in a project, and get a summary report of all the developers who have edited a file in the project, and how many lines of code they currently "own" in that project. Aside from systematically running Annotate of each file, I can't see a way to do this. Any ideas that would make this process faster? PS - I'm doing to this to see how much of a consultant's code still remains in a particular (rather large) project, not to keep tabs on my developers, in case you're worried about my motivation :)
0
74,560
09/16/2008 17:01:03
1,463
08/15/2008 17:26:44
539
39
VisualSVN wants a username and password
I've renamed my server and am trying to get to the VisualSVN repository via TortoiseSVN. In [this post][1] Gordon helped me find the right command - thanks Gordon. Now VisualSVN is asking me for a username and password. I don't recall setting one and if I did I've forgotten it. Any idea how to reset this username / password? [1]: http://stackoverflow.com/questions/69646/svn-and-renaming-the-server-its-running-on
svn
tortoisesvn
visualsvn
null
null
null
open
VisualSVN wants a username and password === I've renamed my server and am trying to get to the VisualSVN repository via TortoiseSVN. In [this post][1] Gordon helped me find the right command - thanks Gordon. Now VisualSVN is asking me for a username and password. I don't recall setting one and if I did I've forgotten it. Any idea how to reset this username / password? [1]: http://stackoverflow.com/questions/69646/svn-and-renaming-the-server-its-running-on
0
74,570
09/16/2008 17:02:14
7,709
09/15/2008 14:16:49
31
5
CSS : Bad Gray Line to the side of the Navigation Bar on http://perl-begin.org/
I'm maintaining [the Perl Beginners' Site](http://perl-begin.org/) and used a modified template from Open Source Web Designs. Now, the problem is that I still have an undesired artifact: a gray line on the left side of the main frame, to the left of the navigation menu. Here's [an image](http://www.shlomifish.org/Files/files/images/Computer/Screenshots/perl-begin-bad-artif.png) highlighting the undesired effect. How can I fix the CSS to remedy this problem? Regards, -- Shlomi Fish
html
css
null
null
null
null
open
CSS : Bad Gray Line to the side of the Navigation Bar on http://perl-begin.org/ === I'm maintaining [the Perl Beginners' Site](http://perl-begin.org/) and used a modified template from Open Source Web Designs. Now, the problem is that I still have an undesired artifact: a gray line on the left side of the main frame, to the left of the navigation menu. Here's [an image](http://www.shlomifish.org/Files/files/images/Computer/Screenshots/perl-begin-bad-artif.png) highlighting the undesired effect. How can I fix the CSS to remedy this problem? Regards, -- Shlomi Fish
0
74,586
09/16/2008 17:04:03
6,799
09/15/2008 12:38:48
11
5
Installing just Quicktime libraries on Windows
There's [Quicktime SDK][1] for Windows, but any application that uses it needs quicktime runtime libraries to be installed on the system (SDK itself just has headers and library stubs, and not the actual DLLs). If my application uses Quicktime, I'd like to install the necessary libraries with it's installer, thus not requiring user to install Quicktime separately. What I'm looking for is some sort of "quicktime redistributable". As of now (quicktime 7.x), I can't find a way to do that. I could bundle whole quicktime installer (about 20 MiB), and launch it with MSI's silent/unattended flag. However, that way it has several side effects: 1. creates Quicktime player shortcut on desktop and in quick launch bar 2. hijacks file associations, (e.g. .mov becomes associated with Quicktime Player, even if it was associated with something else before) 3. installs some service/process (qttask) that presumably watches for Quicktime associations, or handles auto-updates. 4. installs Quicktime Player, which I don't need in fact. Of the above, first three are quite bad. Is there a way to "just install the libraries" for Quicktime? [1]: http://developer.apple.com/quicktime/download/
windows
installer
quicktime
null
null
null
open
Installing just Quicktime libraries on Windows === There's [Quicktime SDK][1] for Windows, but any application that uses it needs quicktime runtime libraries to be installed on the system (SDK itself just has headers and library stubs, and not the actual DLLs). If my application uses Quicktime, I'd like to install the necessary libraries with it's installer, thus not requiring user to install Quicktime separately. What I'm looking for is some sort of "quicktime redistributable". As of now (quicktime 7.x), I can't find a way to do that. I could bundle whole quicktime installer (about 20 MiB), and launch it with MSI's silent/unattended flag. However, that way it has several side effects: 1. creates Quicktime player shortcut on desktop and in quick launch bar 2. hijacks file associations, (e.g. .mov becomes associated with Quicktime Player, even if it was associated with something else before) 3. installs some service/process (qttask) that presumably watches for Quicktime associations, or handles auto-updates. 4. installs Quicktime Player, which I don't need in fact. Of the above, first three are quite bad. Is there a way to "just install the libraries" for Quicktime? [1]: http://developer.apple.com/quicktime/download/
0
74,604
09/16/2008 17:06:42
13,110
09/16/2008 17:06:41
1
0
How to make clipboard ring appear in VS2008 toolbox?
It seems as if making the clipboard ring appear in the VS2008 toolbox is pretty elusive. Does anyone know how to turn this on ? Ctrl-Shift-V works fine, but I'd like to see what on the ring.
visual-studio
null
null
null
null
null
open
How to make clipboard ring appear in VS2008 toolbox? === It seems as if making the clipboard ring appear in the VS2008 toolbox is pretty elusive. Does anyone know how to turn this on ? Ctrl-Shift-V works fine, but I'd like to see what on the ring.
0
74,612
09/16/2008 17:07:32
475
08/06/2008 07:16:20
556
35
How do I make an HTML table the same width as its containing div tag?
I have a table inside a div. I want the table to occupy the entire width of the div tag. In the CSS, I've set the width of the table to 100%. Unfortunately, when the div has some margin on it, the table ends up wider than the div it's in. I need to support IE6 and IE7 (as this is an internal app), although I'd obviously like a fully cross-browser solution if possible! I'm using the following DOCTYPE... <code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</code> Thanks!
html
css
null
null
null
null
open
How do I make an HTML table the same width as its containing div tag? === I have a table inside a div. I want the table to occupy the entire width of the div tag. In the CSS, I've set the width of the table to 100%. Unfortunately, when the div has some margin on it, the table ends up wider than the div it's in. I need to support IE6 and IE7 (as this is an internal app), although I'd obviously like a fully cross-browser solution if possible! I'm using the following DOCTYPE... <code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</code> Thanks!
0
74,616
09/16/2008 17:07:53
12,934
09/16/2008 16:18:12
1
0
How To Detect If Type is Another Generic Type
example: public static void DoSomething<K,V>(IDictionary<K,V> items) { items.Keys.Each(key => { if (V **is IEnumerable<?>**) { /* do something */ } else { /* do something else */ } } Can this be done without using reflection? How do I say IEnumerable<Whatever> in C#? Should I just use IEnumerable since IEnumerable<> implements IEnumerable?
c#
null
null
null
null
null
open
How To Detect If Type is Another Generic Type === example: public static void DoSomething<K,V>(IDictionary<K,V> items) { items.Keys.Each(key => { if (V **is IEnumerable<?>**) { /* do something */ } else { /* do something else */ } } Can this be done without using reflection? How do I say IEnumerable<Whatever> in C#? Should I just use IEnumerable since IEnumerable<> implements IEnumerable?
0
74,620
09/16/2008 17:08:16
10,675
09/16/2008 00:52:53
6
0
Java: Date.getTime() not including time?
Can't understand why the following takes place: String date = "06-04-2007 07:05"; SimpleDateFormat fmt = new SimpleDateFormat("MM-dd-yyyy HH:mm"); Date myDate = fmt.parse(date); System.out.println(myDate); //Mon Jun 04 07:05:00 EDT 2007 long timestamp = myDate.getTime(); System.out.println(timestamp); //1180955100000 -- where are the milliseconds? // on the other hand... myDate = new Date(); System.out.println(myDate); //Tue Sep 16 13:02:44 EDT 2008 timestamp = myDate.getTime(); System.out.println(timestamp); //1221584564703 -- why, oh, why?
java
date
gettime
unix
timestamp
null
open
Java: Date.getTime() not including time? === Can't understand why the following takes place: String date = "06-04-2007 07:05"; SimpleDateFormat fmt = new SimpleDateFormat("MM-dd-yyyy HH:mm"); Date myDate = fmt.parse(date); System.out.println(myDate); //Mon Jun 04 07:05:00 EDT 2007 long timestamp = myDate.getTime(); System.out.println(timestamp); //1180955100000 -- where are the milliseconds? // on the other hand... myDate = new Date(); System.out.println(myDate); //Tue Sep 16 13:02:44 EDT 2008 timestamp = myDate.getTime(); System.out.println(timestamp); //1221584564703 -- why, oh, why?
0