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
34,065
08/29/2008 06:40:21
3,551
08/29/2008 04:53:01
1
0
How to read a value from the Windows registry
Given the key for some registry value (e.g. HKEY_LOCAL_MACHINE\blah\blah\blah\foo) how can I: 1. Safely determine that such a key exists. 2. Programmatically (i.e. with code) get its value. I have absolutely no intention of writing anything back to the registry (for the duration of my career if I can help it). So we can skip the lecture about every molecule in my body exploding at the speed of light if I write to the registry incorrectly. Prefer answers in C++, but mostly just need to know what the special Windows API incantation to get at the value is.
windows
windows-api
c++
registry
winapi
null
open
How to read a value from the Windows registry === Given the key for some registry value (e.g. HKEY_LOCAL_MACHINE\blah\blah\blah\foo) how can I: 1. Safely determine that such a key exists. 2. Programmatically (i.e. with code) get its value. I have absolutely no intention of writing anything back to the registry (for the duration of my career if I can help it). So we can skip the lecture about every molecule in my body exploding at the speed of light if I write to the registry incorrectly. Prefer answers in C++, but mostly just need to know what the special Windows API incantation to get at the value is.
0
34,076
08/29/2008 06:54:07
2,989
08/26/2008 10:30:26
1
0
Checking if userinput is a valid URI in XUL
Is there an built-in function/method that can check if a given string is a valid URI or not in the [Mozilla XUL](http://developer.mozilla.org/en/XUL) toolkit. (I have looked for one but found none, but since this is my first time using XUL and it's documentation it could be that I just overlooked it. So I'm just making sure before I start writing my own IsValidURI function)
xul
firefox
javascript
null
null
null
open
Checking if userinput is a valid URI in XUL === Is there an built-in function/method that can check if a given string is a valid URI or not in the [Mozilla XUL](http://developer.mozilla.org/en/XUL) toolkit. (I have looked for one but found none, but since this is my first time using XUL and it's documentation it could be that I just overlooked it. So I'm just making sure before I start writing my own IsValidURI function)
0
34,079
08/29/2008 06:55:54
3,573
08/29/2008 06:32:57
1
1
How to specify an authenticated proxy for a python http connection?
What's the best way to specify a proxy with username and password for an http connection in python?
python
http
proxy
null
null
null
open
How to specify an authenticated proxy for a python http connection? === What's the best way to specify a proxy with username and password for an http connection in python?
0
34,081
08/29/2008 06:57:20
3,577
08/29/2008 06:57:19
1
0
Parsing, where can I learn about it.
I've been given a job of 'translating' one language into another. The source is too flexible (complex) for a simple line by line approach with regex. Where can I go to learn more about lexical analysis and parsers?
lex
parse
null
null
null
null
open
Parsing, where can I learn about it. === I've been given a job of 'translating' one language into another. The source is too flexible (complex) for a simple line by line approach with regex. Where can I go to learn more about lexical analysis and parsers?
0
34,087
08/29/2008 07:03:42
1,786
08/18/2008 14:52:43
323
31
XSLT dividing a list of nodes in half
<xsl:for-each select="./node [position() &lt;= (count(*) div 2)]"> <li>foo</li> </xsl:for-each> <xsl:for-each select="./node [count(*) div 2 &lt; position()]"> <li>bar</li> </xsl:for-each> My list has 12 nodes, but the second list is always 8 and the first is always 4. What's wrong with my selects?
xslt
null
null
null
null
null
open
XSLT dividing a list of nodes in half === <xsl:for-each select="./node [position() &lt;= (count(*) div 2)]"> <li>foo</li> </xsl:for-each> <xsl:for-each select="./node [count(*) div 2 &lt; position()]"> <li>bar</li> </xsl:for-each> My list has 12 nodes, but the second list is always 8 and the first is always 4. What's wrong with my selects?
0
34,093
08/29/2008 07:10:31
2,260
08/21/2008 11:39:22
179
18
How to apply an XSLT Stylesheet in C#
I want to apply an XSLT Stylesheet to an XML Document using C# and write the output to a File.
c#
xml
null
null
null
null
open
How to apply an XSLT Stylesheet in C# === I want to apply an XSLT Stylesheet to an XML Document using C# and write the output to a File.
0
34,109
08/29/2008 07:22:46
3,580
08/29/2008 07:10:21
1
0
MS WF state machine workflows and MS CRM Dynamics 4.0
MS CRM Dynamics 4.0 incorporates the MS WF engine. The built in designer allows the creation of sequential workflows whos activities have native access to CRM entities. Is it possible to: - Create a state machine workflow outside of CRM (i.e. in visual studio) and import it into CRM? - Have this workflow access the CRM entities?
workflow
crm
workflow-foundation
null
null
null
open
MS WF state machine workflows and MS CRM Dynamics 4.0 === MS CRM Dynamics 4.0 incorporates the MS WF engine. The built in designer allows the creation of sequential workflows whos activities have native access to CRM entities. Is it possible to: - Create a state machine workflow outside of CRM (i.e. in visual studio) and import it into CRM? - Have this workflow access the CRM entities?
0
34,112
08/29/2008 07:28:08
45,603
08/25/2008 09:52:34
36
4
VS2008: Copy Web Site from command line
How do I execute the "Copy Web Site" command for an ASP.NET project in VS2008 from the command line? If I need to script this, let me have some pointers on where I can learn that.
vs2008
asp.net
command-line
null
null
null
open
VS2008: Copy Web Site from command line === How do I execute the "Copy Web Site" command for an ASP.NET project in VS2008 from the command line? If I need to script this, let me have some pointers on where I can learn that.
0
34,120
08/29/2008 07:32:15
3,575
08/29/2008 06:54:39
1
2
HTML Scraping in Php.
I've been doing some html scraping in PHP using regular expressions. This works, but the result is finicky and fragile. Has anyone used any packages that provide a more robust solution? A config driven solution would be ideal, but I'm not picky.
php
html
screen-scraping
null
null
null
open
HTML Scraping in Php. === I've been doing some html scraping in PHP using regular expressions. This works, but the result is finicky and fragile. Has anyone used any packages that provide a more robust solution? A config driven solution would be ideal, but I'm not picky.
0
34,125
08/29/2008 07:35:47
2,971
08/26/2008 09:17:59
76
2
Which, if any, C++ compilers do tail-recursion optimization?
It seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is kind of good, because the stack tells me how deep the recursion is. However, the optimization would be kind of nice as well. Do any C++ compilers do this optimization? Why? Why not?
c++
tail-recursion
optimization
null
null
null
open
Which, if any, C++ compilers do tail-recursion optimization? === It seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is kind of good, because the stack tells me how deep the recursion is. However, the optimization would be kind of nice as well. Do any C++ compilers do this optimization? Why? Why not?
0
34,126
08/29/2008 07:35:56
3,122
08/26/2008 18:58:15
1
1
What's the best way to add event in Javascript ?
I see mainly 2 ways to set events in JavaScript : 1. add event directly inside the tag like that : `<a href="" onclick="doFoo()">do foo</a>` Or 2. set them by javascript like that : `<a id="bar" href="">do bar</a>` and add event in a `<script>` section inside `<head>` or in an external JavaScript file, like that if you're using prototypeJS : Event.observe(window, 'load', function() { $('bar').observe('click', doBar); } I think the first method is easier to read and maintain (because the JavaScript action is directly bound to the link) but it's not so clean (because users can click on the link even if the page is not fully loaded, wich may cause JavaScript errors in some cases). The second method is cleaner (actions are added when the page is fully loaded) but it's more difficult to know that an action is linked to the tag. I don't know wich method is the best. So, a killer answer will be fully appreciated !
javascript
html
events
null
null
null
open
What's the best way to add event in Javascript ? === I see mainly 2 ways to set events in JavaScript : 1. add event directly inside the tag like that : `<a href="" onclick="doFoo()">do foo</a>` Or 2. set them by javascript like that : `<a id="bar" href="">do bar</a>` and add event in a `<script>` section inside `<head>` or in an external JavaScript file, like that if you're using prototypeJS : Event.observe(window, 'load', function() { $('bar').observe('click', doBar); } I think the first method is easier to read and maintain (because the JavaScript action is directly bound to the link) but it's not so clean (because users can click on the link even if the page is not fully loaded, wich may cause JavaScript errors in some cases). The second method is cleaner (actions are added when the page is fully loaded) but it's more difficult to know that an action is linked to the tag. I don't know wich method is the best. So, a killer answer will be fully appreciated !
0
34,128
08/29/2008 07:38:40
3,582
08/29/2008 07:38:40
26
3
How to you pass a variable amount of parmeters to web-service
We are trying to create a web-service that we plan to pass a variable amount of variables to it. Can this be done? Basically instead of pass all possible parameters we wish to pass only the set values and use the defaults set in the web-service. Here is an example of the XML we are looking to send, we would sent an unknown amount of functions depending on the needed return. <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <WebMethod xmlns="http://tempuri.org/"> <domains> <function1> <title>Some Title</title> <type>25</type> </function1> <function2 /> <function3> <param>13</param> </function3> </domains> </WebMethod> </soap:Body> </soap:Envelope> Will this work or should we do a different way? Paul
c#
web-services
soap
null
null
null
open
How to you pass a variable amount of parmeters to web-service === We are trying to create a web-service that we plan to pass a variable amount of variables to it. Can this be done? Basically instead of pass all possible parameters we wish to pass only the set values and use the defaults set in the web-service. Here is an example of the XML we are looking to send, we would sent an unknown amount of functions depending on the needed return. <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <WebMethod xmlns="http://tempuri.org/"> <domains> <function1> <title>Some Title</title> <type>25</type> </function1> <function2 /> <function3> <param>13</param> </function3> </domains> </WebMethod> </soap:Body> </soap:Envelope> Will this work or should we do a different way? Paul
0
34,144
08/29/2008 07:55:12
3,122
08/26/2008 18:58:15
1
1
In Maven 2, how do I know from which dependency comes a transitive dependency ?
I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory. To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to know which dependency in my pom.xml brings that.
java
build-process
maven-2
null
null
null
open
In Maven 2, how do I know from which dependency comes a transitive dependency ? === I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory. To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to know which dependency in my pom.xml brings that.
0
34,155
08/29/2008 08:07:58
2,797
08/25/2008 07:48:49
26
6
Looking for examples of "real" uses of continuations
I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the [Wikipedia article][1]: (define the-continuation #f) (define (test) (let ((i 0)) ; call/cc calls its first function argument, passing ; a continuation variable representing this point in ; the program as the argument to that function. ; ; In this case, the function argument assigns that ; continuation to the variable the-continuation. ; (call/cc (lambda (k) (set! the-continuation k))) ; ; The next time the-continuation is called, we start here. (set! i (+ i 1)) i)) I understand what this little function does, but I can't see any obvious application of it. While I don't expect to use continuations all over my code anytime soon, I wish I knew a few cases where they can be appropriate. So I'm looking for more explicitely usefull code samples of what continuations can offer me as a programmer. Cheers! [1]: http://en.wikipedia.org/wiki/Continuation [2]: http://www.seaside.st
continuations
null
null
null
null
null
open
Looking for examples of "real" uses of continuations === I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the [Wikipedia article][1]: (define the-continuation #f) (define (test) (let ((i 0)) ; call/cc calls its first function argument, passing ; a continuation variable representing this point in ; the program as the argument to that function. ; ; In this case, the function argument assigns that ; continuation to the variable the-continuation. ; (call/cc (lambda (k) (set! the-continuation k))) ; ; The next time the-continuation is called, we start here. (set! i (+ i 1)) i)) I understand what this little function does, but I can't see any obvious application of it. While I don't expect to use continuations all over my code anytime soon, I wish I knew a few cases where they can be appropriate. So I'm looking for more explicitely usefull code samples of what continuations can offer me as a programmer. Cheers! [1]: http://en.wikipedia.org/wiki/Continuation [2]: http://www.seaside.st
0
34,161
08/29/2008 08:10:21
2,717
08/24/2008 17:01:00
18
0
Delete Records from Access database, error while deleting
I have the following situation: I built an Access form with a subform (which records are linked to the records of main form via certain key). When I try to delete any record in the subform, I get the following message: “Access has suspended the action because you and another user tried to change the data” (approximate translation from German). Does anyone know how to delete those records from the subform (and, respectively, from the table behind the form).
ms-access
null
null
null
null
null
open
Delete Records from Access database, error while deleting === I have the following situation: I built an Access form with a subform (which records are linked to the records of main form via certain key). When I try to delete any record in the subform, I get the following message: “Access has suspended the action because you and another user tried to change the data” (approximate translation from German). Does anyone know how to delete those records from the subform (and, respectively, from the table behind the form).
0
34,182
08/29/2008 08:36:35
1,826
08/18/2008 18:27:20
1
1
Reading text files using .NET
I need to read from a variety of different text files. I've considered parsing the files line by line (slow) and reading the file using the ODBC text driver (fast) but does anyone have any other (better) suggestions? I'm using .NET/C#. Ideally any suggestions would need to be easily configurable and (less important) would let me include Excel files in the future.
.net
text-files
null
null
null
null
open
Reading text files using .NET === I need to read from a variety of different text files. I've considered parsing the files line by line (slow) and reading the file using the ODBC text driver (fast) but does anyone have any other (better) suggestions? I'm using .NET/C#. Ideally any suggestions would need to be easily configurable and (less important) would let me include Excel files in the future.
0
34,194
08/29/2008 08:45:19
2,429
08/22/2008 08:48:22
28
1
ASP.NET MVC and IIS6
Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6? I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in the U.S. So I was wondering on how you best build applications in ASP.NET MVC and make it easily available to deploy on both IIS6 and IIS7. Keep in mind that this is for standard web-hosts, so there is no access to ISAPI-filters or special settings inside IIS6. Are there anything else one should think about when developing ASP.NET MVC-applications to target IIS6? Any functions that doesn't work?
asp.net-mvc
iis6
null
null
null
null
open
ASP.NET MVC and IIS6 === Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6? I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in the U.S. So I was wondering on how you best build applications in ASP.NET MVC and make it easily available to deploy on both IIS6 and IIS7. Keep in mind that this is for standard web-hosts, so there is no access to ISAPI-filters or special settings inside IIS6. Are there anything else one should think about when developing ASP.NET MVC-applications to target IIS6? Any functions that doesn't work?
0
34,204
08/29/2008 08:53:58
45,603
08/25/2008 09:52:34
46
4
VS2008/TFS: Get Latest of solution from command line or macro
How do I get the latest version of my solution recursively like its done in the solution explorer context menu of Visual Studio? Need to do this from the command line or via a macro. /* 'tf get' only gets contents of a folder recursively (not solution). It does not look at project dependencies and so on. That won't work. */ I'm trying to automate a part of my daily routine by using a set of batch files. I am sure a lot of developers would love to have something like this.
tfs
vs2008
commandline
macro
null
null
open
VS2008/TFS: Get Latest of solution from command line or macro === How do I get the latest version of my solution recursively like its done in the solution explorer context menu of Visual Studio? Need to do this from the command line or via a macro. /* 'tf get' only gets contents of a folder recursively (not solution). It does not look at project dependencies and so on. That won't work. */ I'm trying to automate a part of my daily routine by using a set of batch files. I am sure a lot of developers would love to have something like this.
0
34,209
08/29/2008 09:03:27
3,594
08/29/2008 08:46:29
1
0
Django ImageField core=False in newforms admin
In the transition to <tt>newforms admin</tt> I'm having difficulty figuring out how specify <tt>core=False</tt> for <tt>ImageField</tt>s. I get the following error: TypeError: __init__() got an unexpected keyword argument 'core' I'm using svn revision 8696.
python
django
null
null
null
null
open
Django ImageField core=False in newforms admin === In the transition to <tt>newforms admin</tt> I'm having difficulty figuring out how specify <tt>core=False</tt> for <tt>ImageField</tt>s. I get the following error: TypeError: __init__() got an unexpected keyword argument 'core' I'm using svn revision 8696.
0
34,227
08/29/2008 09:13:26
2,168
08/20/2008 17:46:48
576
25
Is it possible to persist (without reloading) AJAX page state across BACK button clicks?
I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario. The pages I am working with are the search interface for a site. You enter terms in a normal search box, click "go and wind up at a search results page. On the search results page there are a ton of UI controls for filtering/sorting the search results to find what you are looking for. Some of the operations triggered by these controls may take a (relatively) long time to complete (e.g. several seconds). This latency is fine in case where the user is initially filtering/sorting their results... there's a nice AJAX spinner and so on... however when the user clicks on a search result and then clicks on the BACK button, I would like the page to instantly be restored to the state it was in when they clicked through. I can restore the states using IFRAMEs/fragment identifiers as a dictionary of page history, but what ends up happening is that when the user first hits the back button the initial page is loaded, then it (re) makes the AJAX query to get the page state back, which triggers the AJAX spinner and another wait of possible several seconds. Is there any approach that does not require this kind of two-stage load of the page when the user returns to the page via the BACK button? Edited to add: I am partial to jquery but I'd be happy with solutions that depend on other libraries/toolkits or that are standalone/raw javascript.
ajax
null
null
null
null
null
open
Is it possible to persist (without reloading) AJAX page state across BACK button clicks? === I am familiar with several approaches to making the back button work in AJAX applications in various situations, but I have not found a solution that will work gracefully in my specific scenario. The pages I am working with are the search interface for a site. You enter terms in a normal search box, click "go and wind up at a search results page. On the search results page there are a ton of UI controls for filtering/sorting the search results to find what you are looking for. Some of the operations triggered by these controls may take a (relatively) long time to complete (e.g. several seconds). This latency is fine in case where the user is initially filtering/sorting their results... there's a nice AJAX spinner and so on... however when the user clicks on a search result and then clicks on the BACK button, I would like the page to instantly be restored to the state it was in when they clicked through. I can restore the states using IFRAMEs/fragment identifiers as a dictionary of page history, but what ends up happening is that when the user first hits the back button the initial page is loaded, then it (re) makes the AJAX query to get the page state back, which triggers the AJAX spinner and another wait of possible several seconds. Is there any approach that does not require this kind of two-stage load of the page when the user returns to the page via the BACK button? Edited to add: I am partial to jquery but I'd be happy with solutions that depend on other libraries/toolkits or that are standalone/raw javascript.
0
34,234
08/29/2008 09:19:31
1,114
08/12/2008 12:54:42
35
6
GPG: How does key signing work and how is it done?
I've been reading various tutorials about GPG, and many of them mention that keys may be signed by other people to verify their authenticity. Unfortunately, I have been unable to find information regarding exactly how this process works. How does one sign a key, and how is the signed key used (different from the previous key)? Thank you.
gpg
null
null
null
null
null
open
GPG: How does key signing work and how is it done? === I've been reading various tutorials about GPG, and many of them mention that keys may be signed by other people to verify their authenticity. Unfortunately, I have been unable to find information regarding exactly how this process works. How does one sign a key, and how is the signed key used (different from the previous key)? Thank you.
0
34,237
08/29/2008 09:21:42
987
08/11/2008 12:14:17
923
82
How to hide the cancel button on an ASP.NET ChangePassword control
I'm considering using the ChangePassword control on an ASP.NET 2.0 Webform. I don't want the 'cancel' button to show. Is there a good way to hide it without resorting to silly "width = 0" sort of games? Or perhaps there's a generic way to walk through the parts of a composite control like this and hide individual parts?
asp.net
webform
null
null
null
null
open
How to hide the cancel button on an ASP.NET ChangePassword control === I'm considering using the ChangePassword control on an ASP.NET 2.0 Webform. I don't want the 'cancel' button to show. Is there a good way to hide it without resorting to silly "width = 0" sort of games? Or perhaps there's a generic way to walk through the parts of a composite control like this and hide individual parts?
0
34,243
08/29/2008 09:24:08
3,594
08/29/2008 08:46:29
1
0
Python descriptor protocol analog in other languages?
Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other languages. Is it likely absent from other languages because of the lookup overhead?
python
language-features
encapsulation
null
null
null
open
Python descriptor protocol analog in other languages? === Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other languages. Is it likely absent from other languages because of the lookup overhead?
0
34,249
08/29/2008 09:30:05
3,594
08/29/2008 08:46:29
1
0
Best algorithm to test if a linked list has a cycle
What's the best (halting) algorithm for determining if a linked list has a cycle in it?
interview-questions
algorithm
null
null
null
null
open
Best algorithm to test if a linked list has a cycle === What's the best (halting) algorithm for determining if a linked list has a cycle in it?
0
34,262
08/29/2008 09:36:27
2,798
08/25/2008 07:51:57
3
0
Query TFS for updated files
I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for. Thanks
tfs
null
null
null
null
null
open
Query TFS for updated files === I want to get an overview of files that are updated in TFS (that someone else checked in) that I don't have the latest version for. Thanks
0
34,270
08/29/2008 09:41:56
33
08/01/2008 12:32:10
519
26
COMException "Library not registered." while using System.DirectoryServices
I have only just started received the following error in my windows forms application under dot net 2 framework on windows 2000 when using System.DirectoryServices. {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException: {"Library not registered."} _className: Nothing _COMPlusExceptionCode: -532459699 _data: Nothing _dynamicMethods: Nothing _exceptionMethod: Nothing _exceptionMethodString: Nothing _helpURL: Nothing _HResult: -2147319779 _innerException: Nothing _message: "Library not registered." _remoteStackIndex: 0 _remoteStackTraceString: Nothing _source: Nothing _stackTrace: {System.Array} _stackTraceString: Nothing _xcode: -532459699 _xptrs: 0 Source: "System.DirectoryServices" StackTrace: " at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll() I have re-installed the framework and re-registered activeds.dll however this has not resolved the issue. I am guessing I need to find another dll and re-register it however it is not clear which dll this would be.
com
.net2
activedirectory
null
null
null
open
COMException "Library not registered." while using System.DirectoryServices === I have only just started received the following error in my windows forms application under dot net 2 framework on windows 2000 when using System.DirectoryServices. {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException: {"Library not registered."} _className: Nothing _COMPlusExceptionCode: -532459699 _data: Nothing _dynamicMethods: Nothing _exceptionMethod: Nothing _exceptionMethodString: Nothing _helpURL: Nothing _HResult: -2147319779 _innerException: Nothing _message: "Library not registered." _remoteStackIndex: 0 _remoteStackTraceString: Nothing _source: Nothing _stackTrace: {System.Array} _stackTraceString: Nothing _xcode: -532459699 _xptrs: 0 Source: "System.DirectoryServices" StackTrace: " at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindAll() I have re-installed the framework and re-registered activeds.dll however this has not resolved the issue. I am guessing I need to find another dll and re-register it however it is not clear which dll this would be.
0
34,276
08/29/2008 09:46:14
3,594
08/29/2008 08:46:29
8
0
Markdown versus ReStructuredText
What are people's thoughts on the pros and cons of Markdown versus ReStructuredText. Both seem like very usable and well-developed markup languages -- when might one want to use one over the other?
markdown
markup
restructuredtext
null
null
11/27/2011 16:06:51
not constructive
Markdown versus ReStructuredText === What are people's thoughts on the pros and cons of Markdown versus ReStructuredText. Both seem like very usable and well-developed markup languages -- when might one want to use one over the other?
4
34,284
08/29/2008 09:50:55
3,353
08/28/2008 07:32:01
13
0
How to fix the following build error in Visual Studio 2005: '"LC.exe" exited with code -1'
I get the following error when building my Windows Forms solution: '"LC.exe" exited with code -1' I use 2 commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my WinForms Projects. We also use Visual Sourcesafe as our Source Control. When the licenses.licx files are in the Projects I cannot build without the above error. However, when I exclude them from my projects the build works fine. But I need the licenses.licx files when I want to work with the commercial controls in the designer. This is a brand new developer machine with Windows XP SP3 (German) and Visual Studio 2005 Team Edition for Software Developers (German) with SP1. Any suggestions?
vs2005
winforms
visual-studio
null
null
null
open
How to fix the following build error in Visual Studio 2005: '"LC.exe" exited with code -1' === I get the following error when building my Windows Forms solution: '"LC.exe" exited with code -1' I use 2 commercial Windows Forms Libraries: Infragistics and the Gantt-Control from plexityhide.com, that's why I have licenses.licx files in my WinForms Projects. We also use Visual Sourcesafe as our Source Control. When the licenses.licx files are in the Projects I cannot build without the above error. However, when I exclude them from my projects the build works fine. But I need the licenses.licx files when I want to work with the commercial controls in the designer. This is a brand new developer machine with Windows XP SP3 (German) and Visual Studio 2005 Team Edition for Software Developers (German) with SP1. Any suggestions?
0
34,286
08/29/2008 09:52:47
45,603
08/25/2008 09:52:34
46
4
Tag/Mark a Window
Is there any software tool available which allows us to visually mark/tag a window? I'm not restricting this question to any OS. /* Aside: I once replaced a live production database containing thousands of records with an empty development version simply because the two instances of Enterprise Manager looked exactly the same. */
gui
null
null
null
null
null
open
Tag/Mark a Window === Is there any software tool available which allows us to visually mark/tag a window? I'm not restricting this question to any OS. /* Aside: I once replaced a live production database containing thousands of records with an empty development version simply because the two instances of Enterprise Manager looked exactly the same. */
0
34,294
08/29/2008 09:57:24
3,585
08/29/2008 07:43:38
1
0
64bit Memory allocation
I've been asked to create a Delphi compatible dll in C++ to do simple 64bit memory management. The background is that the system in Delphi needs to allocate a lots of chunks of memory that would go well outside 32bit addressable space. The Delphi developer explained to me that he could not allocate memory with the Delphi commands available to him. He says that he can hold a 64bit address, so he just wants to call a function I provide to allocate the memory and return a 64bit pointer to him. Then another function to free up the memory later. Now, I only have VS 2008 at my disposal so firstly I'm not even sure I can create a Delphi compatible dll in the first place. Any Delphi experts care to help me out. Maybe there is a way to achieve what he requires without re-inventing the wheel. Other developers must have come across this before in Delphi. All comments appreciated.
c++
delphi
memory
64bit
null
null
open
64bit Memory allocation === I've been asked to create a Delphi compatible dll in C++ to do simple 64bit memory management. The background is that the system in Delphi needs to allocate a lots of chunks of memory that would go well outside 32bit addressable space. The Delphi developer explained to me that he could not allocate memory with the Delphi commands available to him. He says that he can hold a 64bit address, so he just wants to call a function I provide to allocate the memory and return a 64bit pointer to him. Then another function to free up the memory later. Now, I only have VS 2008 at my disposal so firstly I'm not even sure I can create a Delphi compatible dll in the first place. Any Delphi experts care to help me out. Maybe there is a way to achieve what he requires without re-inventing the wheel. Other developers must have come across this before in Delphi. All comments appreciated.
0
34,300
08/29/2008 10:00:33
381
08/05/2008 10:39:26
1,455
27
Has .net made raw COM and DCOM programming redundant ?
Has the introduction of the .net framework made raw programming in COM and DCOM redundant ? (Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)
.net
com
com+
dcom
null
null
open
Has .net made raw COM and DCOM programming redundant ? === Has the introduction of the .net framework made raw programming in COM and DCOM redundant ? (Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)
0
34,301
08/29/2008 10:00:43
854
08/09/2008 15:23:13
34
1
Multiple web-sites running in IIS simulatenously
At work, we have multiple branches that we may be working on at any time. Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be. I just want to go to the URL, mapped in my hosts file, for that branch and it just work. Our client machines are XP machines with IIS 5.1. Is there any way to make IIS 5.1 run more than one web-site simultaneously?
iis
null
null
null
null
null
open
Multiple web-sites running in IIS simulatenously === At work, we have multiple branches that we may be working on at any time. Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be. I just want to go to the URL, mapped in my hosts file, for that branch and it just work. Our client machines are XP machines with IIS 5.1. Is there any way to make IIS 5.1 run more than one web-site simultaneously?
0
34,304
08/29/2008 10:03:47
2,471
08/22/2008 12:47:10
1
0
What Types of testing are part of your build process?
I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly. What other types of testing do you automate and include in your build process? what technologies do you use to do so? I'd thinking about smoke tests, performance tests, load tests but don't know how realistic it is to integrate these with Team Build.
testing
tfs
build-automation
null
null
null
open
What Types of testing are part of your build process? === I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly. What other types of testing do you automate and include in your build process? what technologies do you use to do so? I'd thinking about smoke tests, performance tests, load tests but don't know how realistic it is to integrate these with Team Build.
0
34,312
08/29/2008 10:08:06
2,976
08/26/2008 09:42:25
155
20
Simple test vs PHPunit
I was wondering if anyone that have experience in both these stuff can shed some light on the _significant_ difference between the two, if any? Any specific strength of each that makes it suitable for any specific case?
php
unit-testing
phpunit
simpletest
null
null
open
Simple test vs PHPunit === I was wondering if anyone that have experience in both these stuff can shed some light on the _significant_ difference between the two, if any? Any specific strength of each that makes it suitable for any specific case?
0
34,314
08/29/2008 10:08:12
184
08/03/2008 05:34:19
1,270
19
How to implement Search Functionality in a website?
I want to implement search functionality for a website (assume it is similar to SO). I don't want to use Google search of stuff like that. My question is: How do I implement this? There are two methods I am aware of: 1. Search all the databases in the application when the user gives his query. 2. Index all the data I have and store it somewhere else and query from there (like what Google does). Can anyone tell me which way to go? What are the pros and cons? Better, are there any better ways to do this?
search
null
null
null
null
null
open
How to implement Search Functionality in a website? === I want to implement search functionality for a website (assume it is similar to SO). I don't want to use Google search of stuff like that. My question is: How do I implement this? There are two methods I am aware of: 1. Search all the databases in the application when the user gives his query. 2. Index all the data I have and store it somewhere else and query from there (like what Google does). Can anyone tell me which way to go? What are the pros and cons? Better, are there any better ways to do this?
0
34,322
08/29/2008 10:14:21
2,471
08/22/2008 12:47:10
1
0
Do webtests need VS tester edition on the build server?
I have some webtests I'd like to run as part of a build. Can webtests be run on the TFS build server without VS 2008 team system tester edition installed?
tfs
build-process
null
null
null
null
open
Do webtests need VS tester edition on the build server? === I have some webtests I'd like to run as part of a build. Can webtests be run on the TFS build server without VS 2008 team system tester edition installed?
0
34,325
08/29/2008 10:17:08
1,034
08/11/2008 16:29:38
1
4
Should I use a cross-platform GUI-toolkit or rely on the native ones?
On my side job as programmer, I am to write a program in C++ to convert audio files from/to various formats. Probably, this will involve building a simple GUI. Will it be a great effort to build seperate GUIs for Mac and Windows using Cocoa and WinForms instead of a cross-platform toolkit like Qt or GTK? (I will have to maintain a seperate Windows-version and Mac-Version anyway) The GUI will probably be very simple and only need very basic functionality. I always felt that native GUIs feel far more intuitive than its cross-platform brethren...
c++
gui
mac
windows
crossplatform
null
open
Should I use a cross-platform GUI-toolkit or rely on the native ones? === On my side job as programmer, I am to write a program in C++ to convert audio files from/to various formats. Probably, this will involve building a simple GUI. Will it be a great effort to build seperate GUIs for Mac and Windows using Cocoa and WinForms instead of a cross-platform toolkit like Qt or GTK? (I will have to maintain a seperate Windows-version and Mac-Version anyway) The GUI will probably be very simple and only need very basic functionality. I always felt that native GUIs feel far more intuitive than its cross-platform brethren...
0
34,328
08/29/2008 10:18:21
2,077
08/20/2008 07:26:21
166
4
How do I make Windows aware of a service I have written in Python?
In [another question][1] I posted yesterday, I got very good advice on how a Python script could be run as a service in Windows. What I'm left wondering is: How is Windows aware of the services that can be managed in the native tools ("services" window in "administrative tools"). I. e. what is the Windows equivalent of putting a start/stop script in /etc/init.d under Linux? [1]: http://stackoverflow.com/questions/32404/can-i-run-a-python-script-as-a-service-in-windows-how "Python scripts as Windows service"
python
windows
crossplatform
null
null
null
open
How do I make Windows aware of a service I have written in Python? === In [another question][1] I posted yesterday, I got very good advice on how a Python script could be run as a service in Windows. What I'm left wondering is: How is Windows aware of the services that can be managed in the native tools ("services" window in "administrative tools"). I. e. what is the Windows equivalent of putting a start/stop script in /etc/init.d under Linux? [1]: http://stackoverflow.com/questions/32404/can-i-run-a-python-script-as-a-service-in-windows-how "Python scripts as Windows service"
0
34,345
08/29/2008 10:39:13
2,638
08/23/2008 20:10:14
323
24
Finding your own number in a box
100 (or some even number 2N :-) ) prisoners are in a room A. They are numbered from 1 to 100. One by one (from prisoner #1 to prisoner #100, in order), they will be let into a room B in which 100 boxes (numbered from 1 to 100) await them. Inside the (closed) boxes are numbers from 1 to 100 (the numbers inside the boxes are randomly permuted!). Once inside room B, each prisoner gets to open 50 boxes (he chooses which one he opens). If he finds the number that was assigned to him in one of these 50 boxes, the prisoner gets to walk into a room C and all boxes are closed again before the next one walks into room B from room A. Otherwise, all prisoners (in rooms A, B and C) gets killed. Before entering room B, the prisoners can agree on a strategy (algorithm). There is no way to communicate between rooms (and no message can be left in room B!). Find a strategy (algorithm) that maximizes the probability that all prisoners survive. What probability does your algorithm achieve?
puzzle
algorithm
null
null
null
null
open
Finding your own number in a box === 100 (or some even number 2N :-) ) prisoners are in a room A. They are numbered from 1 to 100. One by one (from prisoner #1 to prisoner #100, in order), they will be let into a room B in which 100 boxes (numbered from 1 to 100) await them. Inside the (closed) boxes are numbers from 1 to 100 (the numbers inside the boxes are randomly permuted!). Once inside room B, each prisoner gets to open 50 boxes (he chooses which one he opens). If he finds the number that was assigned to him in one of these 50 boxes, the prisoner gets to walk into a room C and all boxes are closed again before the next one walks into room B from room A. Otherwise, all prisoners (in rooms A, B and C) gets killed. Before entering room B, the prisoners can agree on a strategy (algorithm). There is no way to communicate between rooms (and no message can be left in room B!). Find a strategy (algorithm) that maximizes the probability that all prisoners survive. What probability does your algorithm achieve?
0
34,362
08/29/2008 11:01:59
2,661
08/24/2008 03:59:36
11
2
What if analysis on multi dimensional cubes (OLAP)
I have a multi dimensional OLAP cube with a number of dimensions. Some of these dimensions have hierarchies. The users would like to perform 'what-if' analysis on the measures in the cube by changing the hierarchies in the dimensions. For example, they want to know the impact on departmental resource budgets by moving employees between departments or the movement in cost of manufacture if a product is moved from one factory to another. Does anyone have a straight forward way to do this in a modern OLAP engine?
database-design
olap
null
null
null
null
open
What if analysis on multi dimensional cubes (OLAP) === I have a multi dimensional OLAP cube with a number of dimensions. Some of these dimensions have hierarchies. The users would like to perform 'what-if' analysis on the measures in the cube by changing the hierarchies in the dimensions. For example, they want to know the impact on departmental resource budgets by moving employees between departments or the movement in cost of manufacture if a product is moved from one factory to another. Does anyone have a straight forward way to do this in a modern OLAP engine?
0
34,365
08/29/2008 11:03:19
1,735
08/18/2008 11:27:42
1
0
Updating/Intercepting HttpContext.Current.Request.QueryString
Here's a wierd one. I'm reusing a code base that unfortunately, must not be updated. This code makes a call to HttpContext.Current.Request.QueryString. Ideally, I need to push a value into this collection with every request that is made. Is this possible - perhaps in an HTTP Module?
asp.net
.net-3.5
null
null
null
null
open
Updating/Intercepting HttpContext.Current.Request.QueryString === Here's a wierd one. I'm reusing a code base that unfortunately, must not be updated. This code makes a call to HttpContext.Current.Request.QueryString. Ideally, I need to push a value into this collection with every request that is made. Is this possible - perhaps in an HTTP Module?
0
34,390
08/29/2008 11:37:54
31,505
2008-09-01
781
30
How to make user controls know about css classes in ASP.NET
Since there are no header sections for user controls in asp.net, user controls have no way of knowing about stylesheet files. So css classes in the user controls are not recognized by visual studio and produces warnings. How can I make a user control know that it will relate to a css class, so if it is warning me about a non-existing css class, it means that the class really do not exist? Edit: Or should I go for a different design like exposing css classes as properties like "HeaderStyle-CssClass" of GridView?
vs2008
asp.net
userconrols
null
null
null
open
How to make user controls know about css classes in ASP.NET === Since there are no header sections for user controls in asp.net, user controls have no way of knowing about stylesheet files. So css classes in the user controls are not recognized by visual studio and produces warnings. How can I make a user control know that it will relate to a css class, so if it is warning me about a non-existing css class, it means that the class really do not exist? Edit: Or should I go for a different design like exposing css classes as properties like "HeaderStyle-CssClass" of GridView?
0
34,394
08/29/2008 14:51:10
3,187
08/27/2008 11:45:16
1
0
How would you abbriviate XHTML to an arbitrary number of words?
How would you programmacially abbriviate XHTML to an arbitrary number of words without leaving unclosed or corrupting tags? E.g. this: <p> Proin tristique dapibus neque. Nam eget purus sit amet leo tincidunt accumsan. </p> <p> Proin semper, orci at mattis blandit, augue justo blandit nulla. <span>Quisque ante congue justo</span>, ultrices aliquet, mattis eget, hendrerit, <em>justo</em>. </p> ...abbriviated to 25 words would be: <p> Proin tristique dapibus neque. Nam eget purus sit amet leo tincidunt accumsan. </p> <p> Proin semper, orci at mattis blandit, augue justo blandit nulla. <span>Quisque ante congue...</span> </p> Thanks, Nick
regex
xhtml
null
null
null
null
open
How would you abbriviate XHTML to an arbitrary number of words? === How would you programmacially abbriviate XHTML to an arbitrary number of words without leaving unclosed or corrupting tags? E.g. this: <p> Proin tristique dapibus neque. Nam eget purus sit amet leo tincidunt accumsan. </p> <p> Proin semper, orci at mattis blandit, augue justo blandit nulla. <span>Quisque ante congue justo</span>, ultrices aliquet, mattis eget, hendrerit, <em>justo</em>. </p> ...abbriviated to 25 words would be: <p> Proin tristique dapibus neque. Nam eget purus sit amet leo tincidunt accumsan. </p> <p> Proin semper, orci at mattis blandit, augue justo blandit nulla. <span>Quisque ante congue...</span> </p> Thanks, Nick
0
34,395
08/29/2008 14:51:24
2,348
08/21/2008 19:00:04
18
4
How do I truncate a string while converting to bytes in C#?
I would like to put a string into a byte array, but the string may be too big to fit. In the case where it's too large, I would like to put as much of the string as possible into the array. Is there an efficient way to find out how many characters will fit?
c#
.net
null
null
null
null
open
How do I truncate a string while converting to bytes in C#? === I would like to put a string into a byte array, but the string may be too big to fit. In the case where it's too large, I would like to put as much of the string as possible into the array. Is there an efficient way to find out how many characters will fit?
0
34,398
08/29/2008 14:53:55
404
08/05/2008 13:34:59
597
41
How should I model a field that can contain both numeric and string values in SQL Server 2005?
I have a new database table I need to create... It logically contains an ID, a name, and a "value." That value field could be either numeric or a character string in nature. I don't think I want to just make the field a varchar, because I also want to be able to query with filters like "WHERE value > 0.5" and such. What's the best way to model this concept in SQL Server 2005?
sql-server
database-design
null
null
null
null
open
How should I model a field that can contain both numeric and string values in SQL Server 2005? === I have a new database table I need to create... It logically contains an ID, a name, and a "value." That value field could be either numeric or a character string in nature. I don't think I want to just make the field a varchar, because I also want to be able to query with filters like "WHERE value > 0.5" and such. What's the best way to model this concept in SQL Server 2005?
0
34,399
08/29/2008 14:55:05
3,043
08/26/2008 13:24:14
508
55
Show unorded list inline, but keep the bullets
I have an html file with an unordered list. I want to show the list items horizontally but still keep the bullets. No matter what I try, whenever I set the style to inline to meet the horizontal requirement I can't get the bullets to display.
html
css
null
null
null
null
open
Show unorded list inline, but keep the bullets === I have an html file with an unordered list. I want to show the list items horizontally but still keep the bullets. No matter what I try, whenever I set the style to inline to meet the horizontal requirement I can't get the bullets to display.
0
34,401
08/29/2008 14:56:47
1,284
08/14/2008 11:34:29
7
6
Send email from Elmah?
Is anyone using Elmah to send exceptions via email? I've got Elmah logging set up via SQL Server, and can view the errors page via the Elmah.axd page, but I am unable to get the email component working. The idea here is to get the email notification so we can react more quickly to exceptions. Here is my web.config (unnecessary sectionss omitted), with all the sensitive data replaced by * * *. Even though I am specifying a server to connect to, does the SMTP service need to be running on the local machine? <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/> <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/> <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/> </sectionGroup> </configSections> <appSettings/> <connectionStrings> <add name="elmah-sql" connectionString="Data Source=***;Initial Catalog=***;Persist Security Info=True;User ID=***;Password=***" /> </connectionStrings> <elmah> <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="elmah-sql" > </errorLog> <errorMail from="[email protected]" to="[email protected]" subject="Application Exception" async="false" smtpPort="25" smtpServer="***" userName="***" password="***"> </errorMail> </elmah> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="CustomError.aspx"> <error statusCode="403" redirect="NotAuthorized.aspx" /> <!--<error statusCode="404" redirect="FileNotFound.htm" />--> </customErrors> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> </httpModules> </system.web> </configuration>
.net
asp.net
elmah
null
null
null
open
Send email from Elmah? === Is anyone using Elmah to send exceptions via email? I've got Elmah logging set up via SQL Server, and can view the errors page via the Elmah.axd page, but I am unable to get the email component working. The idea here is to get the email notification so we can react more quickly to exceptions. Here is my web.config (unnecessary sectionss omitted), with all the sensitive data replaced by * * *. Even though I am specifying a server to connect to, does the SMTP service need to be running on the local machine? <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/> <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/> <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/> </sectionGroup> </configSections> <appSettings/> <connectionStrings> <add name="elmah-sql" connectionString="Data Source=***;Initial Catalog=***;Persist Security Info=True;User ID=***;Password=***" /> </connectionStrings> <elmah> <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="elmah-sql" > </errorLog> <errorMail from="[email protected]" to="[email protected]" subject="Application Exception" async="false" smtpPort="25" smtpServer="***" userName="***" password="***"> </errorMail> </elmah> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="CustomError.aspx"> <error statusCode="403" redirect="NotAuthorized.aspx" /> <!--<error statusCode="404" redirect="FileNotFound.htm" />--> </customErrors> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> </httpModules> </system.web> </configuration>
0
34,403
08/29/2008 14:57:01
2,849
08/25/2008 14:24:20
76
10
Sqlite IDE???
Is there a tool out there that can interact with a Sqlite database in a similar way that Toad works with Oracle or Management Studio works with SQL Server? I'm looking for something that visually shows table structures, views, etc. Thanks!
sqlite
ide
null
null
null
null
open
Sqlite IDE??? === Is there a tool out there that can interact with a Sqlite database in a similar way that Toad works with Oracle or Management Studio works with SQL Server? I'm looking for something that visually shows table structures, views, etc. Thanks!
0
34,411
08/29/2008 14:58:58
2,108
08/20/2008 12:00:42
71
7
How do I generate a friendly URL in Symfony PHP?
I always tend to forget these built-in symfony functions for making links.
php
url
seo
symfony
null
null
open
How do I generate a friendly URL in Symfony PHP? === I always tend to forget these built-in symfony functions for making links.
0
34,413
08/29/2008 14:59:30
3,535
08/29/2008 02:26:17
11
4
Why am I getting a NoClassDefFoundError in Java?
I am getting a NoClassDefFoundError when I run my Java application. How do I fix it?
java
null
null
null
null
01/30/2012 18:01:49
not a real question
Why am I getting a NoClassDefFoundError in Java? === I am getting a NoClassDefFoundError when I run my Java application. How do I fix it?
1
34,428
08/29/2008 15:02:41
785
08/08/2008 22:08:29
117
13
How to Format Numbers in WinForms 1.1 DataGrid?
Is there a simple way to format numbers in a Winforms 1.1 datagrid? The Format property of the DataGridTextBoxColumn seems to be completely ignored. I know there are [ugly solutions](http://support.microsoft.com/kb/318581), but was hoping there might be simpler solutions, or perhaps some trick to making the Format property work. Thanks Mike
winforms
null
null
null
null
null
open
How to Format Numbers in WinForms 1.1 DataGrid? === Is there a simple way to format numbers in a Winforms 1.1 datagrid? The Format property of the DataGridTextBoxColumn seems to be completely ignored. I know there are [ugly solutions](http://support.microsoft.com/kb/318581), but was hoping there might be simpler solutions, or perhaps some trick to making the Format property work. Thanks Mike
0
34,430
08/29/2008 15:03:14
2,600
08/23/2008 13:40:14
350
26
Peopleware: 1st or 2nd edition
I'd like to read Peopleware, but the library here only has the 1st edition (from 1987), rather than the newer 2nd edition (1999). Can anyone tell me what the differences between the 1st and 2nd editions are? Is it worth trying to get a copy of the 2nd edition, or should I go for immediate gratification and just read the 1st ed?
books
management
null
null
null
null
open
Peopleware: 1st or 2nd edition === I'd like to read Peopleware, but the library here only has the 1st edition (from 1987), rather than the newer 2nd edition (1999). Can anyone tell me what the differences between the 1st and 2nd editions are? Is it worth trying to get a copy of the 2nd edition, or should I go for immediate gratification and just read the 1st ed?
0
34,437
08/29/2008 15:05:09
3,394
08/28/2008 12:35:39
181
25
What are good projects to develop C skills?
I wondered what projects would be good to develop C skills? I can think of many projects to develop C#, F#, IronRuby, etc. skills as the .net framework provides ample opportunity for any number of different applications; however I'm less knowledgable about the libraries provided with C, and the possible apps one can develop which are actually 'meaty' enough to develop practical coding skills. Does anyone have any practical specific projects I can use for this purpose? Thanks :-)
c
null
null
null
null
null
open
What are good projects to develop C skills? === I wondered what projects would be good to develop C skills? I can think of many projects to develop C#, F#, IronRuby, etc. skills as the .net framework provides ample opportunity for any number of different applications; however I'm less knowledgable about the libraries provided with C, and the possible apps one can develop which are actually 'meaty' enough to develop practical coding skills. Does anyone have any practical specific projects I can use for this purpose? Thanks :-)
0
34,439
08/29/2008 15:05:17
3,587
08/29/2008 07:51:40
11
2
Finding the methods an object has
Given a python object of any kind, is there an easy way to get a list of all methods that this object has? Or, if this is not possible, at least an easy way to check if it has a particular method other than simply checking if an error occurs when the method is called.
python
null
null
null
null
null
open
Finding the methods an object has === Given a python object of any kind, is there an easy way to get a list of all methods that this object has? Or, if this is not possible, at least an easy way to check if it has a particular method other than simply checking if an error occurs when the method is called.
0
34,463
08/29/2008 15:33:06
194
08/03/2008 10:56:49
2,007
144
Technical Hurdles for Win32 rsync port
Despite primarily being a windows user, I am a huge fan of rsync. Now, I don't want to argue the virtues of rsync vs any other tool...this is not my point. The only way I've ever found of running rsync on windows is via a version that is built to run on top of Cygwin, and as Cygwin has issues with Unicode, so does rsync. Is anyone familiar enough with the workings of rsync to say if there are any real technical programming hurdles to porting rsync to a native Win32 binary? Or is it maybe that there has just never been enough interest from windows users to care to port it over? Partly I ask because I'm am considering trying to take on the task of starting a port, but I want to make sure there's not something I'm missing in terms of why it may not be possible.
winapi
rsync
port
null
null
null
open
Technical Hurdles for Win32 rsync port === Despite primarily being a windows user, I am a huge fan of rsync. Now, I don't want to argue the virtues of rsync vs any other tool...this is not my point. The only way I've ever found of running rsync on windows is via a version that is built to run on top of Cygwin, and as Cygwin has issues with Unicode, so does rsync. Is anyone familiar enough with the workings of rsync to say if there are any real technical programming hurdles to porting rsync to a native Win32 binary? Or is it maybe that there has just never been enough interest from windows users to care to port it over? Partly I ask because I'm am considering trying to take on the task of starting a port, but I want to make sure there's not something I'm missing in terms of why it may not be possible.
0
34,476
08/29/2008 15:41:45
720
08/08/2008 08:47:12
123
7
What is in your javascript development toolbox?
I have to do some javascript in the future, so it is time to update my toolbox. Right now I use firefox with some addons: * Javascript Shell from https://www.squarefree.com/bookmarklets/webdevel.html * Firfox Dom Inspector * Firebug * Greasemonkey * Stylish I plan to use [Venkman Javascript debugger][1] as well as [jsunit][2] and [js-lint][3]. For programming I'm stick with vim. So what other tools do you use when developing javascript? [1]: http://www.hacksrus.com/~ginda/venkman/ [2]: http://www.jsunit.net/ [3]: http://www.crockford.com/javascript/lint.html
javascript
debugging
null
null
null
null
open
What is in your javascript development toolbox? === I have to do some javascript in the future, so it is time to update my toolbox. Right now I use firefox with some addons: * Javascript Shell from https://www.squarefree.com/bookmarklets/webdevel.html * Firfox Dom Inspector * Firebug * Greasemonkey * Stylish I plan to use [Venkman Javascript debugger][1] as well as [jsunit][2] and [js-lint][3]. For programming I'm stick with vim. So what other tools do you use when developing javascript? [1]: http://www.hacksrus.com/~ginda/venkman/ [2]: http://www.jsunit.net/ [3]: http://www.crockford.com/javascript/lint.html
0
34,486
08/29/2008 15:48:16
1,384,652
08/01/2008 12:01:23
1,648
79
What more is needed for Ajax than this function
I have a small JS function that does Ajax for me and another like it that adds in POST data to the request. With Ajax being such a big topic with so many libraries about it, what am I missing from my function, is it insecure or something else worrying? function loadPage(pagePath, displayElement) { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById(displayElement).innerHTML = xmlHttp.responseText; } } xmlHttp.open("GET", pagePath, true); xmlHttp.send(null); }
javascript
ajax
null
null
null
null
open
What more is needed for Ajax than this function === I have a small JS function that does Ajax for me and another like it that adds in POST data to the request. With Ajax being such a big topic with so many libraries about it, what am I missing from my function, is it insecure or something else worrying? function loadPage(pagePath, displayElement) { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { document.getElementById(displayElement).innerHTML = xmlHttp.responseText; } } xmlHttp.open("GET", pagePath, true); xmlHttp.send(null); }
0
34,488
08/29/2008 15:48:23
2,098
08/20/2008 11:21:16
203
15
Does limiting a query to one record improve performance
Will limiting a query to one result record, improve performance in a large(ish) MySQL table if the table only has one matching result? for example select * from people where name = "Re0sless" limit 1 if there is only one record with that name? and what about if `name` was the primary key/ set to unique? and is it worth updating the query or will the gain be minimal?
sql
database
mysql
null
null
null
open
Does limiting a query to one record improve performance === Will limiting a query to one result record, improve performance in a large(ish) MySQL table if the table only has one matching result? for example select * from people where name = "Re0sless" limit 1 if there is only one record with that name? and what about if `name` was the primary key/ set to unique? and is it worth updating the query or will the gain be minimal?
0
34,490
08/29/2008 15:49:08
3,624
08/29/2008 15:49:07
1
0
How do I create a SHA1 hash in ruby?
Use the built in Digest module: Digest::SHA1.hexdigest 'foo'
ruby
sha1
hash
null
null
null
open
How do I create a SHA1 hash in ruby? === Use the built in Digest module: Digest::SHA1.hexdigest 'foo'
0
34,493
08/29/2008 15:49:25
2,230
08/21/2008 03:03:34
476
10
Excel: list ranges targeted by INDIRECT formulas
We have a few very large Excel workbooks (dozens of tabs, over a MB each, very complex calculations) with many dozens, perhaps hundreds of formulas that use the dreaded INDIRECT function. These formulas are spread out throughout the workbook, and target several tables of data to look-up for values. Now I need to move the ranges of data that are targeted by these formulas to a different location in the same workbook. (The reason is not particularly relevant, but interesting on its own. We need to run these things in Excel Calculation Services and the latency hit of loading each of the rather large tables one at a time proved to be unacceptably high. We are moving the tables in a contiguous range so we can load them all in one shot.) **Is there any way to locate all the INDIRECT formulas that currently refer to the tables we want to move?** I don't need to do this on-line. I'll happily take something that takes 4 hours to run as long as it is reliable. Be aware that the .Precedent, .Dependent, etc methods only track direct formulas. (Also, rewriting the spreadsheets in *whatever* is not an option for us). Thanks!
excel
vba
null
null
null
null
open
Excel: list ranges targeted by INDIRECT formulas === We have a few very large Excel workbooks (dozens of tabs, over a MB each, very complex calculations) with many dozens, perhaps hundreds of formulas that use the dreaded INDIRECT function. These formulas are spread out throughout the workbook, and target several tables of data to look-up for values. Now I need to move the ranges of data that are targeted by these formulas to a different location in the same workbook. (The reason is not particularly relevant, but interesting on its own. We need to run these things in Excel Calculation Services and the latency hit of loading each of the rather large tables one at a time proved to be unacceptably high. We are moving the tables in a contiguous range so we can load them all in one shot.) **Is there any way to locate all the INDIRECT formulas that currently refer to the tables we want to move?** I don't need to do this on-line. I'll happily take something that takes 4 hours to run as long as it is reliable. Be aware that the .Precedent, .Dependent, etc methods only track direct formulas. (Also, rewriting the spreadsheets in *whatever* is not an option for us). Thanks!
0
34,506
08/29/2008 15:54:46
3,373
08/28/2008 09:40:18
6
3
Simulating a virtual static member of a class in c++?
Is there anyway to have a sort of virtual static member in C++? For example: class BaseClass { public: BaseClass(const string& name) : _name(name) {} string GetName() const { return _name; } virtual void UseClass() = 0; private: const string _name; }; class DerivedClass : public BaseClass { public: DerivedClass() : BaseClass("DerivedClass") {} virtual void UseClass() { /* do something */ } }; I know this example is trivial, but if I have a vector of complex data that is going to be always the same for all derived class but is needed to be accessed from base class methods? class BaseClass { public: BaseClass() {} virtual string GetName() const = 0; virtual void UseClass() = 0; }; class DerivedClass : public BaseClass { public: DerivedClass() {} virtual string GetName() const { return _name; } virtual void UseClass() { /* do something */ } private: static const string _name; }; string DerivedClass::_name = "DerivedClass"; This solution does not satify me because I need reimplement the member _name and its accessor GetName() in every class. In my case I have several members that follows _name behavior and tenths of derived classes. Any idea?
c++
virtual-functions
null
null
null
null
open
Simulating a virtual static member of a class in c++? === Is there anyway to have a sort of virtual static member in C++? For example: class BaseClass { public: BaseClass(const string& name) : _name(name) {} string GetName() const { return _name; } virtual void UseClass() = 0; private: const string _name; }; class DerivedClass : public BaseClass { public: DerivedClass() : BaseClass("DerivedClass") {} virtual void UseClass() { /* do something */ } }; I know this example is trivial, but if I have a vector of complex data that is going to be always the same for all derived class but is needed to be accessed from base class methods? class BaseClass { public: BaseClass() {} virtual string GetName() const = 0; virtual void UseClass() = 0; }; class DerivedClass : public BaseClass { public: DerivedClass() {} virtual string GetName() const { return _name; } virtual void UseClass() { /* do something */ } private: static const string _name; }; string DerivedClass::_name = "DerivedClass"; This solution does not satify me because I need reimplement the member _name and its accessor GetName() in every class. In my case I have several members that follows _name behavior and tenths of derived classes. Any idea?
0
34,509
08/29/2008 15:55:10
905
08/10/2008 09:37:14
2,887
189
Natural (human alpha-numeric) sort in Microsoft SQL 2005
We have a large database on which we have DB side pagination. This is quick, returning a page of 50 rows from millions of records in a small fraction of a second. Users can define their own sort, basically choosing what column to sort by. Columns are dynamic - some have numeric values, some dates and some text. While most sort as expected text sorts in a dumb way. Well, I say dumb, it makes sense to computers, but frustrates users. For instance, sorting by a string record id gives something like: rec1 rec10 rec14 rec2 rec20 rec3 rec4 ...and so on. I want this to take account of the number, so: rec1 rec2 rec3 rec4 rec10 rec14 rec20 I can't control the input (otherwise I'd just format in leading 000s) and I can't rely on a single format - some are things like "{alpha code}-{dept code}-{rec id}". I know a few ways to do this in C#, but can't pull down all the records to sort them, as that would be to slow. Does anyone know a way to quickly apply a natural sort in Sql server?
sql-server
sql-server-2005
sorting
null
null
null
open
Natural (human alpha-numeric) sort in Microsoft SQL 2005 === We have a large database on which we have DB side pagination. This is quick, returning a page of 50 rows from millions of records in a small fraction of a second. Users can define their own sort, basically choosing what column to sort by. Columns are dynamic - some have numeric values, some dates and some text. While most sort as expected text sorts in a dumb way. Well, I say dumb, it makes sense to computers, but frustrates users. For instance, sorting by a string record id gives something like: rec1 rec10 rec14 rec2 rec20 rec3 rec4 ...and so on. I want this to take account of the number, so: rec1 rec2 rec3 rec4 rec10 rec14 rec20 I can't control the input (otherwise I'd just format in leading 000s) and I can't rely on a single format - some are things like "{alpha code}-{dept code}-{rec id}". I know a few ways to do this in C#, but can't pull down all the records to sort them, as that would be to slow. Does anyone know a way to quickly apply a natural sort in Sql server?
0
34,510
08/29/2008 15:55:10
1,931
08/19/2008 14:28:16
1
1
What is a race condition?
When writing multi-threaded applications, one of the most common problems experienced are race conditions. My question to the community, is: What is a race condition? How do you detect them? How do you handle them? And finally, how do you prevent them from occurring?
concurrency
racecondition
multithreading
null
null
null
open
What is a race condition? === When writing multi-threaded applications, one of the most common problems experienced are race conditions. My question to the community, is: What is a race condition? How do you detect them? How do you handle them? And finally, how do you prevent them from occurring?
0
34,512
08/29/2008 15:56:27
1,931
08/19/2008 14:28:16
6
1
What is a deadlock?
When writing multi-threaded applications, one of the most common problems experienced are deadlocks. My question to the community, is: What is a deadlock? How do you detect them? Do you handle them? And finally, how do you prevent them from occurring?
concurrency
deadlock
multithreading
null
null
null
open
What is a deadlock? === When writing multi-threaded applications, one of the most common problems experienced are deadlocks. My question to the community, is: What is a deadlock? How do you detect them? Do you handle them? And finally, how do you prevent them from occurring?
0
34,516
08/29/2008 15:57:44
305
08/04/2008 14:04:19
1,020
69
Is there a standard (like phpdoc or python's docstring) for commenting C# code?
Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?
c#
comments
null
null
null
null
open
Is there a standard (like phpdoc or python's docstring) for commenting C# code? === Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?
0
34,518
08/29/2008 15:57:49
1,585
08/16/2008 21:03:55
340
18
Natural Sorting algorithm
How do you sort an array of strings [naturally][1] in different languages? Post your implementation and what language it is in in the answer. [1]: http://www.codinghorror.com/blog/archives/001018.html
natural
sorting
algorithm
language-agnostic
null
null
open
Natural Sorting algorithm === How do you sort an array of strings [naturally][1] in different languages? Post your implementation and what language it is in in the answer. [1]: http://www.codinghorror.com/blog/archives/001018.html
0
34,519
08/29/2008 15:58:15
1,931
08/19/2008 14:28:16
6
1
What is a semaphore?
A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What is a semaphore and how do you use it?
concurrency
semaphore
multithreading
null
null
null
open
What is a semaphore? === A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What is a semaphore and how do you use it?
0
34,524
08/29/2008 15:59:25
1,931
08/19/2008 14:28:16
26
1
What is a mutex?
A mutex is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What is a mutex and how do you use it?
concurrency
mutex
multithreading
null
null
null
open
What is a mutex? === A mutex is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What is a mutex and how do you use it?
0
34,536
08/29/2008 16:02:59
3,377
08/28/2008 10:04:24
1
1
How do you swap DIVs on mouseover? (jquery?)
This most be the second most simple rollover effect, still I don't find any simple solution. **Wanted:** I have a list of items and a correspoding list of slides (DIVs). After loading, the first list item should be selected (bold) and the first slide should be visible. When the user hovers over another list item, that list item should be selected instead and the corresponding slide be shown. The following code works, but *is awful*. How can I get this behavior in an elegant way? jquery has dozens of animated and complicated rollover effects, but I didn't come up with a clean way for this effect. <script type="text/javascript"> function switchTo(id) { document.getElementById('slide1').style.display=(id==1)?'block':'none'; document.getElementById('slide2').style.display=(id==2)?'block':'none'; document.getElementById('slide3').style.display=(id==3)?'block':'none'; document.getElementById('slide4').style.display=(id==4)?'block':'none'; document.getElementById('switch1').style.fontWeight=(id==1)?'bold':'normal'; document.getElementById('switch2').style.fontWeight=(id==2)?'bold':'normal'; document.getElementById('switch3').style.fontWeight=(id==3)?'bold':'normal'; document.getElementById('switch4').style.fontWeight=(id==4)?'bold':'normal'; } </script> <ul id="switches"> <li id="switch1" onmouseover="switchTo(1);" style="font-weight:bold;">First slide</li> <li id="switch2" onmouseover="switchTo(2);">Second slide</li> <li id="switch3" onmouseover="switchTo(3);">Third slide</li> <li id="switch4" onmouseover="switchTo(4);">Fourth slide</li> </ul> <div id="slides"> <div id="slide1">Well well.</div> <div id="slide2" style="display:none;">Oh no!</div> <div id="slide3" style="display:none;">You again?</div> <div id="slide4" style="display:none;">I'm gone!</div> </div>
javascript
jquery
html
null
null
null
open
How do you swap DIVs on mouseover? (jquery?) === This most be the second most simple rollover effect, still I don't find any simple solution. **Wanted:** I have a list of items and a correspoding list of slides (DIVs). After loading, the first list item should be selected (bold) and the first slide should be visible. When the user hovers over another list item, that list item should be selected instead and the corresponding slide be shown. The following code works, but *is awful*. How can I get this behavior in an elegant way? jquery has dozens of animated and complicated rollover effects, but I didn't come up with a clean way for this effect. <script type="text/javascript"> function switchTo(id) { document.getElementById('slide1').style.display=(id==1)?'block':'none'; document.getElementById('slide2').style.display=(id==2)?'block':'none'; document.getElementById('slide3').style.display=(id==3)?'block':'none'; document.getElementById('slide4').style.display=(id==4)?'block':'none'; document.getElementById('switch1').style.fontWeight=(id==1)?'bold':'normal'; document.getElementById('switch2').style.fontWeight=(id==2)?'bold':'normal'; document.getElementById('switch3').style.fontWeight=(id==3)?'bold':'normal'; document.getElementById('switch4').style.fontWeight=(id==4)?'bold':'normal'; } </script> <ul id="switches"> <li id="switch1" onmouseover="switchTo(1);" style="font-weight:bold;">First slide</li> <li id="switch2" onmouseover="switchTo(2);">Second slide</li> <li id="switch3" onmouseover="switchTo(3);">Third slide</li> <li id="switch4" onmouseover="switchTo(4);">Fourth slide</li> </ul> <div id="slides"> <div id="slide1">Well well.</div> <div id="slide2" style="display:none;">Oh no!</div> <div id="slide3" style="display:none;">You again?</div> <div id="slide4" style="display:none;">I'm gone!</div> </div>
0
34,544
08/29/2008 16:04:25
3,448
08/28/2008 16:07:36
46
1
Detect DOM modification in Internet Explorer BHO
I am writing a BHO for ie7, and I need to detect DOM modification (i.e. via AJAX). So far I couldn't find any feasible solutions.
internet-explorer
internet-explorer-7
bho
null
null
null
open
Detect DOM modification in Internet Explorer BHO === I am writing a BHO for ie7, and I need to detect DOM modification (i.e. via AJAX). So far I couldn't find any feasible solutions.
0
34,565
08/29/2008 16:08:47
3,624
08/29/2008 15:49:07
3
0
How do I generate a random 10 digit number in ruby?
Additionally, how can I format it as a string padded with zeros?
ruby
random
null
null
null
null
open
How do I generate a random 10 digit number in ruby? === Additionally, how can I format it as a string padded with zeros?
0
34,570
08/29/2008 16:10:41
577
08/06/2008 21:36:25
41
6
What is the best quick-read Python book out there?
I am taking a class that requires Python. We will review the language in class next week, and I am a quick study on new languages, but I was wondering if there are any really great Python books I can grab while I am struggling through the basics of setting up my IDE, server environment and all those other "gotchas" that come with a new programming language. Suggestions?
python
books
null
null
null
11/08/2011 16:11:43
off topic
What is the best quick-read Python book out there? === I am taking a class that requires Python. We will review the language in class next week, and I am a quick study on new languages, but I was wondering if there are any really great Python books I can grab while I am struggling through the basics of setting up my IDE, server environment and all those other "gotchas" that come with a new programming language. Suggestions?
2
34,571
08/29/2008 16:11:09
3,098
08/26/2008 16:22:49
21
3
What's the best way of unit testing private methods?
How do I use jUnit to test a class that has internal private methods? It seems bad to change the access modifier for a method just to be able to run a test. Thanks.
java
unit-testing
tdd
junit
null
null
open
What's the best way of unit testing private methods? === How do I use jUnit to test a class that has internal private methods? It seems bad to change the access modifier for a method just to be able to run a test. Thanks.
0
34,579
08/29/2008 16:12:31
655
08/07/2008 14:44:51
131
11
MySQL "Error 1005" when adding tables
I've recently been working with a MySQL Database, and using MySQL workbench to design the Database. When I use the export to SQL function - so I can actually get the layout in to the Database - I get "Error 1005: Cannot create table" from MySQL. This appears to be related to Foreign Keys in the create table statement. Does anybody have a work around for this that doesn't involve taking the constraints out and putting them back in later? That's a less than ideal solution given the size of the database.
mysql
null
null
null
null
null
open
MySQL "Error 1005" when adding tables === I've recently been working with a MySQL Database, and using MySQL workbench to design the Database. When I use the export to SQL function - so I can actually get the layout in to the Database - I get "Error 1005: Cannot create table" from MySQL. This appears to be related to Foreign Keys in the create table statement. Does anybody have a work around for this that doesn't involve taking the constraints out and putting them back in later? That's a less than ideal solution given the size of the database.
0
34,581
08/29/2008 16:13:11
3,635
08/29/2008 16:13:11
1
0
inline-block on span
I expected the two span tags in the following sample to display next to each other, instead they display one below the other. If I set the width of the class span.right to 49% they display next to each other. I am not able to figure out why the right span is pushed down like the right span has some invisible padding/margin which makes it take more than 50%. I am trying to get this done without using html tables. Any ideas? TIA <pre><code> <html> <head> <title>Test Page</title> <style type='text/css'> * { margin: 0; } html,body{ margin:0; padding:0; height:100%; width:100%; border:none; } div.header{ width:100%; height:80px; vertical-align:top; } span.left { height:80px; width:50%; display:inline-block; background-color:pink; } span.right { vertical-align:top; display:inline-block; text-align:right; height:80px; width:50%; background-color:red; } </style> </head> <body> <div class='header'> <span class='left'>Left Span 50% width</span> <span class='right'>Right Span 50% width</span> </div> </body> </html> </code></pre>
html
inline-block
null
null
null
null
open
inline-block on span === I expected the two span tags in the following sample to display next to each other, instead they display one below the other. If I set the width of the class span.right to 49% they display next to each other. I am not able to figure out why the right span is pushed down like the right span has some invisible padding/margin which makes it take more than 50%. I am trying to get this done without using html tables. Any ideas? TIA <pre><code> <html> <head> <title>Test Page</title> <style type='text/css'> * { margin: 0; } html,body{ margin:0; padding:0; height:100%; width:100%; border:none; } div.header{ width:100%; height:80px; vertical-align:top; } span.left { height:80px; width:50%; display:inline-block; background-color:pink; } span.right { vertical-align:top; display:inline-block; text-align:right; height:80px; width:50%; background-color:red; } </style> </head> <body> <div class='header'> <span class='left'>Left Span 50% width</span> <span class='right'>Right Span 50% width</span> </div> </body> </html> </code></pre>
0
34,588
08/29/2008 16:14:25
3,535
08/29/2008 02:26:17
29
6
How do I change the number of open files limit in Linux?
When running my application I sometimes get an error about "too many files open". Running "ulimit -a" reports that the limit is 1024. How do I increase the limit above 1024?
linux
null
null
null
null
null
open
How do I change the number of open files limit in Linux? === When running my application I sometimes get an error about "too many files open". Running "ulimit -a" reports that the limit is 1024. How do I increase the limit above 1024?
0
34,595
08/29/2008 16:15:37
3,485
08/28/2008 18:14:08
1
2
What is a good Hash Function?
What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a thumble rule to avoid collisions my professor said that: function Hash(key) return key mod PrimeNumber end (mod is the % operator in C and similar languages) with the primenumber to be the size of the hash table. I get that is a somewhat good function to avoid collisions and a fast one, but how can I make a better one? Is there better hash functions for string keys against numeric keys?
language-agnostic
algorithm
hash
null
null
null
open
What is a good Hash Function? === What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a thumble rule to avoid collisions my professor said that: function Hash(key) return key mod PrimeNumber end (mod is the % operator in C and similar languages) with the primenumber to be the size of the hash table. I get that is a somewhat good function to avoid collisions and a fast one, but how can I make a better one? Is there better hash functions for string keys against numeric keys?
0
34,600
08/29/2008 16:16:57
577
08/06/2008 21:36:25
46
6
Can you pair program remotely?
We have a team of about 7 engineers, whom I supervise. We do not have a formal office where we all work. Instead, a handful are located outside of our city, while the rest of us are scattered around the Bay Area. Quite frequently, I find myself attempting to teach concepts like TDD or refactoring to some of our more junior (or not) developers. The best technique I know is pair programming, where you both sit at the same computer and work on a problem together. Since we are not in the same place most of the time, the only option is to use some kind of screen sharing and Skype to have one of us "drive" while the other consults, and then switch. My question is has anyone tried this "virtual" pair programming, and did you find it at all useful?
tdd
remote
pair-programming
null
null
null
open
Can you pair program remotely? === We have a team of about 7 engineers, whom I supervise. We do not have a formal office where we all work. Instead, a handful are located outside of our city, while the rest of us are scattered around the Bay Area. Quite frequently, I find myself attempting to teach concepts like TDD or refactoring to some of our more junior (or not) developers. The best technique I know is pair programming, where you both sit at the same computer and work on a problem together. Since we are not in the same place most of the time, the only option is to use some kind of screen sharing and Skype to have one of us "drive" while the other consults, and then switch. My question is has anyone tried this "virtual" pair programming, and did you find it at all useful?
0
34,611
08/29/2008 16:20:43
1,447
08/15/2008 16:13:59
11
1
What's the best toolkit for doing 2d game programming with Python?
What's the best toolkit for doing 2d game programming with Python? I've heard of pygame but is there anything I should add to it or is there another group of modules that surpasses it?
python
null
null
null
null
null
open
What's the best toolkit for doing 2d game programming with Python? === What's the best toolkit for doing 2d game programming with Python? I've heard of pygame but is there anything I should add to it or is there another group of modules that surpasses it?
0
34,623
08/29/2008 16:21:47
2,108
08/20/2008 12:00:42
71
8
Why is HTML form redirection used in OpenID 2?
Why would you do an automatic HTML post rather than a simple redirect? Is this so developers can automatically generate a login form that posts directory to the remote server when the OpenID is known? eg. 1. User is not logged in and visits your login page. 2. You detect the user's openID from a cookie. 3. Form is generated that directly posts to remote OpenID server. 4. Remote server redirects user back to website. 5. Website logs in the user. If this is the case I can see the benefit. However this assumes that you keep the user's openID in a cookie when they log out. I can find very little information on how this spec should be best implemented. See HTML FORM Redirection in the official specs: [http://openid.net/specs/openid-authentication-2_0.html#indirect_comm][1] I found this out from looking at the [PHP OpenID Library][2] (version 2.1.1). // Redirect the user to the OpenID server for authentication. // Store the token for this authentication so we can verify the // response. // For OpenID 1, send a redirect. For OpenID 2, use a Javascript // form to send a POST request to the server. if ($auth_request->shouldSendRedirect()) { $redirect_url = $auth_request->redirectURL(getTrustRoot(), getReturnTo()); // If the redirect URL can't be built, display an error // message. if (Auth_OpenID::isFailure($redirect_url)) { displayError("Could not redirect to server: " . $redirect_url->message); } else { // Send redirect. header("Location: ".$redirect_url); } } else { // Generate form markup and render it. $form_id = 'openid_message'; $form_html = $auth_request->htmlMarkup(getTrustRoot(), getReturnTo(), false, array('id' => $form_id)); // Display an error if the form markup couldn't be generated; // otherwise, render the HTML. if (Auth_OpenID::isFailure($form_html)) { displayError("Could not redirect to server: " . $form_html->message); } else { print $form_html; } } [1]: http://openid.net/specs/openid-authentication-2_0.html#indirect_comm [2]: http://openidenabled.com/php-openid/
openid
redirect
openid2
null
null
null
open
Why is HTML form redirection used in OpenID 2? === Why would you do an automatic HTML post rather than a simple redirect? Is this so developers can automatically generate a login form that posts directory to the remote server when the OpenID is known? eg. 1. User is not logged in and visits your login page. 2. You detect the user's openID from a cookie. 3. Form is generated that directly posts to remote OpenID server. 4. Remote server redirects user back to website. 5. Website logs in the user. If this is the case I can see the benefit. However this assumes that you keep the user's openID in a cookie when they log out. I can find very little information on how this spec should be best implemented. See HTML FORM Redirection in the official specs: [http://openid.net/specs/openid-authentication-2_0.html#indirect_comm][1] I found this out from looking at the [PHP OpenID Library][2] (version 2.1.1). // Redirect the user to the OpenID server for authentication. // Store the token for this authentication so we can verify the // response. // For OpenID 1, send a redirect. For OpenID 2, use a Javascript // form to send a POST request to the server. if ($auth_request->shouldSendRedirect()) { $redirect_url = $auth_request->redirectURL(getTrustRoot(), getReturnTo()); // If the redirect URL can't be built, display an error // message. if (Auth_OpenID::isFailure($redirect_url)) { displayError("Could not redirect to server: " . $redirect_url->message); } else { // Send redirect. header("Location: ".$redirect_url); } } else { // Generate form markup and render it. $form_id = 'openid_message'; $form_html = $auth_request->htmlMarkup(getTrustRoot(), getReturnTo(), false, array('id' => $form_id)); // Display an error if the form markup couldn't be generated; // otherwise, render the HTML. if (Auth_OpenID::isFailure($form_html)) { displayError("Could not redirect to server: " . $form_html->message); } else { print $form_html; } } [1]: http://openid.net/specs/openid-authentication-2_0.html#indirect_comm [2]: http://openidenabled.com/php-openid/
0
34,635
08/29/2008 16:25:58
1,952
08/19/2008 15:09:45
11
9
How do I get the assembler output from a C file in VS2005
I think the file that is produced is an .asm file, any adea how to produce this in Visual Studio when you do a build?
visual-studio
c
assembler
null
null
null
open
How do I get the assembler output from a C file in VS2005 === I think the file that is produced is an .asm file, any adea how to produce this in Visual Studio when you do a build?
0
34,638
08/29/2008 16:27:43
3,295
08/27/2008 17:52:45
226
16
data 'security' with java and hibernate
The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of. However, there is also a requirement for data 'security'. That is, what information is visible to an end user. This effectively means reducing visibility to rows (and perhaps even columns) in the database. We are using Hibernate for our persistence. However, we are using our own annotations so as not to expose our persistence choice to the business domain experts. For row based security this means we could add an annotation such as '@Secured' at the entity level, which would cause an extra column to be added to the underlying table to constrain our selects? For column based security, we could perhaps have '@Secured' to either assist in query generation, or perhaps use an aspect to filter the information returned? I'm curious to know how this might affect hibernate's caching mechanisms as well? I'm sure a lot of others will have had the same issue, and I was wondering how you approached this? Much appreciated...
java
security
hibernate
java-ee
null
null
open
data 'security' with java and hibernate === The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of. However, there is also a requirement for data 'security'. That is, what information is visible to an end user. This effectively means reducing visibility to rows (and perhaps even columns) in the database. We are using Hibernate for our persistence. However, we are using our own annotations so as not to expose our persistence choice to the business domain experts. For row based security this means we could add an annotation such as '@Secured' at the entity level, which would cause an extra column to be added to the underlying table to constrain our selects? For column based security, we could perhaps have '@Secured' to either assist in query generation, or perhaps use an aspect to filter the information returned? I'm curious to know how this might affect hibernate's caching mechanisms as well? I'm sure a lot of others will have had the same issue, and I was wondering how you approached this? Much appreciated...
0
34,655
08/29/2008 16:34:05
1,983
08/19/2008 17:03:37
11
1
Making an iframe take vertical space
I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?
html
iframe
null
null
null
null
open
Making an iframe take vertical space === I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?
0
34,661
08/29/2008 16:35:53
298
08/04/2008 13:29:28
181
7
Automate test of web service communication
I have an application that send messages to an external web service. I build and deploy this application using [MSBuild][1] and [Cruisecontrol.NET][2]. As CCNET build and deploys the app it also runs a set of test using [NUnit][3]. I'd now like to test the web service communication as well. My idea is that as part of the build process a web service should be generated (based on the external web services WSDL) and deployed to the build servers local web server. All the web service should do is to receive the message and place it on the file system so I then can check it using ordinary NUnit for example. This would also make development easier as new developers would only have to run the build script and be up and running (not have to spend time to set up a connection to the third party service). Are there any **existing utilities out there** that easily mock a web service based on a WSDL? Anyone **done something similar using MSBuild?** Are there **other ways of testing this scenario?** [1]: http://msdn.microsoft.com/en-us/library/wea2sca5(VS.80).aspx [2]: http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET [3]: http://www.nunit.org/index.php
web-services
build-process
msbuild
cruisecontrol.net
nunit
null
open
Automate test of web service communication === I have an application that send messages to an external web service. I build and deploy this application using [MSBuild][1] and [Cruisecontrol.NET][2]. As CCNET build and deploys the app it also runs a set of test using [NUnit][3]. I'd now like to test the web service communication as well. My idea is that as part of the build process a web service should be generated (based on the external web services WSDL) and deployed to the build servers local web server. All the web service should do is to receive the message and place it on the file system so I then can check it using ordinary NUnit for example. This would also make development easier as new developers would only have to run the build script and be up and running (not have to spend time to set up a connection to the third party service). Are there any **existing utilities out there** that easily mock a web service based on a WSDL? Anyone **done something similar using MSBuild?** Are there **other ways of testing this scenario?** [1]: http://msdn.microsoft.com/en-us/library/wea2sca5(VS.80).aspx [2]: http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET [3]: http://www.nunit.org/index.php
0
34,664
08/29/2008 16:37:10
2,862
08/25/2008 16:03:02
41
2
DesignMode with Controls
Has anyone found a useful solution to the DesignMode problem when developing controls? The issue is that if you nest controls then DesignMode only works for the first level. The second and lower levels DesignMode will always return FALSE. The standard hack has been to look at the name of the process that is running and if it is "DevEnv.EXE" then it must be studio thus DesignMode is really TRUE. The problem with that is looking for the ProcessName works its way around through the registry and other strange parts with the end result that the user might not have the required rights to see the process name. In addition this strange route is very slow. So we have had to pile additional hacks to use a singleton and if an error is thrown when asking for the process name then assume that DesignMode is FALSE. A nice clean way to determine DesignMode is in order. Acually getting Microsoft to fix it internally to the framework would be even better!
.net
usercontrols
null
null
null
null
open
DesignMode with Controls === Has anyone found a useful solution to the DesignMode problem when developing controls? The issue is that if you nest controls then DesignMode only works for the first level. The second and lower levels DesignMode will always return FALSE. The standard hack has been to look at the name of the process that is running and if it is "DevEnv.EXE" then it must be studio thus DesignMode is really TRUE. The problem with that is looking for the ProcessName works its way around through the registry and other strange parts with the end result that the user might not have the required rights to see the process name. In addition this strange route is very slow. So we have had to pile additional hacks to use a singleton and if an error is thrown when asking for the process name then assume that DesignMode is FALSE. A nice clean way to determine DesignMode is in order. Acually getting Microsoft to fix it internally to the framework would be even better!
0
34,673
08/29/2008 16:39:45
1,782
08/18/2008 14:30:58
1,063
76
If you had to pick the best artifact in scrum, what would it be?
We are in the process of implemeting SCRUM, however, there's some resistence from managment, and I thought it'd be a good idea to start implementing some practices and add more incrementally, to avoid the initial rejection. How do you suggest I start?
scrum
null
null
null
null
null
open
If you had to pick the best artifact in scrum, what would it be? === We are in the process of implemeting SCRUM, however, there's some resistence from managment, and I thought it'd be a good idea to start implementing some practices and add more incrementally, to avoid the initial rejection. How do you suggest I start?
0
34,687
08/29/2008 16:43:21
3,625
08/29/2008 15:49:54
1
0
Subversion ignoring "--password" and "--username" options
When I try to do any svn command and supply the "--username" and/or "--password" options, it prompts me for my password anyways, and always will attempt to use my current user instead of the one specified in "--username". For example, logged in as user1: # svn update --username 'user2' --password 'password' # [email protected]'s password: Why does it prompt me? And why is it asking for user1's password instead of user2's? I'm 99% sure all of my permissions are set correctly. Is there some config option for svn that switches off command-line passwords? Or is it something else entirely? I'm running svn 1.3.2 (r19776) on Fedora Core 5 (Bordeaux).
svn
version-control
null
null
null
null
open
Subversion ignoring "--password" and "--username" options === When I try to do any svn command and supply the "--username" and/or "--password" options, it prompts me for my password anyways, and always will attempt to use my current user instead of the one specified in "--username". For example, logged in as user1: # svn update --username 'user2' --password 'password' # [email protected]'s password: Why does it prompt me? And why is it asking for user1's password instead of user2's? I'm 99% sure all of my permissions are set correctly. Is there some config option for svn that switches off command-line passwords? Or is it something else entirely? I'm running svn 1.3.2 (r19776) on Fedora Core 5 (Bordeaux).
0
34,698
08/29/2008 16:47:45
31,505
2008-09-01
801
32
How to Turn Off Sounds in Turtoise SVN
I do not want SVN to alert me with sounds, when it fails to update for e.g. How do I turn off sounds in SVN?
tortoisesvn
null
null
null
null
null
open
How to Turn Off Sounds in Turtoise SVN === I do not want SVN to alert me with sounds, when it fails to update for e.g. How do I turn off sounds in SVN?
0
34,705
08/29/2008 16:48:58
2,993
08/26/2008 10:45:59
344
13
Best practices with jQuery form binding code in an application
We have an application with a good amount of jQuery JSON calls to server side code. Because of this, we have a large amount of binding code to parse responses and bind the appropriate values to the form. This is a two part question. 1. What is the reccomended approach for dealing with a large number of forms that all have different data. Right now were are trying to take a structured approach in setting up a js "class" for each page, with an init, wireClickEvents etc.. to try to have everything conformed. 2. Is there any "best practices" with creating repetitive jQuery code or any type of reccomended structure other than just throwing a bunch of functions in a js file?
jquery
null
null
null
null
null
open
Best practices with jQuery form binding code in an application === We have an application with a good amount of jQuery JSON calls to server side code. Because of this, we have a large amount of binding code to parse responses and bind the appropriate values to the form. This is a two part question. 1. What is the reccomended approach for dealing with a large number of forms that all have different data. Right now were are trying to take a structured approach in setting up a js "class" for each page, with an init, wireClickEvents etc.. to try to have everything conformed. 2. Is there any "best practices" with creating repetitive jQuery code or any type of reccomended structure other than just throwing a bunch of functions in a js file?
0
34,708
08/29/2008 16:49:24
1,931
08/19/2008 14:28:16
86
3
How can I generate a unique, small, random, and user-friendly key?
A few months back I was tasked with implementing a unique and random code for our web application. The code would have to be user friendly and as small as possible, but still be essentially random (so users couldn't easily predict the next code in the sequence). It ended up generating values that looked something like this: Af3nT5Xf2 Unfortunately, I was never satisfied with the implementation. Guid's were out of the question, they were simply too big and difficult for users to type in. I was hoping for something more along the lines of 4 or 5 characters/digits, but our particular implementation would generate noticeably patterned sequences if we encoded to less than 9 characters. Here's what we ended up doing: We pulled a unique sequential 32bit id from the database. We then inserted it into the center bits of a 64bit RANDOM integer. We created a lookup table of easily typed and recognized characters (A-Z, a-z, 2-9 skipping easily confused characters such as L,l,1,O,0, etc.). Finally, we used that lookup table to base-54 encode the 64-bit integer. The high bits were random, the low bits were random, but the center bits were sequential. The final result was a code that was much smaller than a guid and looked random, even though it absolutely wasn't. I was never satisfied with this particular implementation. What would you guys have done?
encoding
cryptography
keys
null
null
null
open
How can I generate a unique, small, random, and user-friendly key? === A few months back I was tasked with implementing a unique and random code for our web application. The code would have to be user friendly and as small as possible, but still be essentially random (so users couldn't easily predict the next code in the sequence). It ended up generating values that looked something like this: Af3nT5Xf2 Unfortunately, I was never satisfied with the implementation. Guid's were out of the question, they were simply too big and difficult for users to type in. I was hoping for something more along the lines of 4 or 5 characters/digits, but our particular implementation would generate noticeably patterned sequences if we encoded to less than 9 characters. Here's what we ended up doing: We pulled a unique sequential 32bit id from the database. We then inserted it into the center bits of a 64bit RANDOM integer. We created a lookup table of easily typed and recognized characters (A-Z, a-z, 2-9 skipping easily confused characters such as L,l,1,O,0, etc.). Finally, we used that lookup table to base-54 encode the 64-bit integer. The high bits were random, the low bits were random, but the center bits were sequential. The final result was a code that was much smaller than a guid and looked random, even though it absolutely wasn't. I was never satisfied with this particular implementation. What would you guys have done?
0
34,709
08/29/2008 16:49:47
3,046
08/26/2008 13:34:07
6
0
How do you use the new ModelBinder classes in ASP.NET MVC Preview 5
You'll notice that Preview 5 includes the following in their release notes: > Added support for custom model binders. Custom binders allow you to define complex types as parameters to an action method. To use this feature, mark the complex type or the parameter declaration with [ModelBinder(…)]. So how do you go about actually using this facility so that I can have something like this work in my Controller: public ActionResult Insert(Contact contact) { if (this.ViewData.ModelState.IsValid) { this.contactService.SaveContact(contact); return this.RedirectToAction("Details", new { id = contact.ID} } }
asp.net-mvc
null
null
null
null
null
open
How do you use the new ModelBinder classes in ASP.NET MVC Preview 5 === You'll notice that Preview 5 includes the following in their release notes: > Added support for custom model binders. Custom binders allow you to define complex types as parameters to an action method. To use this feature, mark the complex type or the parameter declaration with [ModelBinder(…)]. So how do you go about actually using this facility so that I can have something like this work in my Controller: public ActionResult Insert(Contact contact) { if (this.ViewData.ModelState.IsValid) { this.contactService.SaveContact(contact); return this.RedirectToAction("Details", new { id = contact.ID} } }
0
34,711
08/29/2008 16:50:20
3,210
08/27/2008 13:14:20
1
2
Google Talk's Graphics Toolkit ?
What graphics toolkit is used for the Window's Google Talk application?
toolkits
null
null
null
null
null
open
Google Talk's Graphics Toolkit ? === What graphics toolkit is used for the Window's Google Talk application?
0
34,712
08/29/2008 16:50:22
3,648
08/29/2008 16:50:22
1
0
.Net - Detecting the Appearance Setting (Classic or XP?)
I have some UI in VB 2005 that looks great in XP Style, but goes hideous in Classic Style. Any ideas about how to detect which mode the user is in and re-format the forms on the fly? Thanks in Advance! -Chris
vb.net
windows-xp
display.properties
appearance
null
null
open
.Net - Detecting the Appearance Setting (Classic or XP?) === I have some UI in VB 2005 that looks great in XP Style, but goes hideous in Classic Style. Any ideas about how to detect which mode the user is in and re-format the forms on the fly? Thanks in Advance! -Chris
0
34,717
08/29/2008 16:52:41
1,753
08/18/2008 12:42:26
35
3
Embed audio object in infopath
Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled infopath form? If it is, how do you do it?
infopath
moss
sharepoint
null
null
null
open
Embed audio object in infopath === Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled infopath form? If it is, how do you do it?
0
34,726
08/29/2008 16:56:23
27
08/01/2008 12:21:40
161
5
Trouble using JRun to Host Java Servlets
I am being deploying new versions of java servlets with JRun as the host. I am having difficulty finding good sources for information about JRun and tutorials about how to configure and manage it. After installing JRun and opening the launcher it can't start the admin server that it creates by default...so obviously I'm running into some issues just getting started.
hosting
servlet
java
jrun
null
null
open
Trouble using JRun to Host Java Servlets === I am being deploying new versions of java servlets with JRun as the host. I am having difficulty finding good sources for information about JRun and tutorials about how to configure and manage it. After installing JRun and opening the launcher it can't start the admin server that it creates by default...so obviously I'm running into some issues just getting started.
0
34,728
08/29/2008 16:56:39
3,362
08/28/2008 08:38:32
1
1
SharePoint List Scalability
I am particularly interested in Document Libraries, but in terms of general SharePoint lists, can anyone answer the following...? 1. What is the maximum number of items that a SharePoint list can contain? 1. What is the maximum number of lists that a single SharePoint server can host? 1. When the number of items in the list approaches the maximum, does filtering slow down, and if so, what can be done to improve it?
sharepoint
null
null
null
null
null
open
SharePoint List Scalability === I am particularly interested in Document Libraries, but in terms of general SharePoint lists, can anyone answer the following...? 1. What is the maximum number of items that a SharePoint list can contain? 1. What is the maximum number of lists that a single SharePoint server can host? 1. When the number of items in the list approaches the maximum, does filtering slow down, and if so, what can be done to improve it?
0
34,732
08/29/2008 16:57:47
3,051
08/26/2008 13:43:22
38
3
symbols in a .so file
How do list the symbols being exported from a .so file. If possible, I'd also like to know there source (e.g. if they are pulled in from a static library). I'm using gcc 4.0.2, if that makes a difference
c++
c
gcc
symbols
null
null
open
symbols in a .so file === How do list the symbols being exported from a .so file. If possible, I'd also like to know there source (e.g. if they are pulled in from a static library). I'm using gcc 4.0.2, if that makes a difference
0
34,734
08/29/2008 16:58:01
1,284
08/14/2008 11:34:29
7
7
Best Way to ReUse Code When Using Visual Studio?
I've tried 2 different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of 2 ways. I have tried bringing the projects I need from this code library into my project. I have also tried compiling down to a .dll and referencing the .dll from a folder in the root of my current solution. While the 2nd method seems easier and lighter to implement, I always find myself making small tweaks to the original code to fit it into the context of my current project. I know this is a bit of a vague question, but has anyone had success with other methods of reusing class libraries on new solutions?
visual-studio
.net
null
null
null
null
open
Best Way to ReUse Code When Using Visual Studio? === I've tried 2 different methods of reusing code. I have a solution full of just class library projects with generic code that I reuse in almost every project I work on. When I get to work on a new project, I will reuse code from this code library in one of 2 ways. I have tried bringing the projects I need from this code library into my project. I have also tried compiling down to a .dll and referencing the .dll from a folder in the root of my current solution. While the 2nd method seems easier and lighter to implement, I always find myself making small tweaks to the original code to fit it into the context of my current project. I know this is a bit of a vague question, but has anyone had success with other methods of reusing class libraries on new solutions?
0
34,735
08/29/2008 16:58:02
1,585
08/16/2008 21:03:55
360
19
Using a rotary encoder with AVR Micro controller
I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical [ALPS encoder][1], and I'm using [Atmega168][2]. [1]: http://no.farnell.com/1520815/passives/product.us0?sku=alps-ec12d1524401 [2]: http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf
microcontroller
avr
encoder
atmega
null
null
open
Using a rotary encoder with AVR Micro controller === I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical [ALPS encoder][1], and I'm using [Atmega168][2]. [1]: http://no.farnell.com/1520815/passives/product.us0?sku=alps-ec12d1524401 [2]: http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf
0
34,768
08/29/2008 17:11:40
2,903
08/25/2008 20:52:48
11
1
Setting a form's action in .net 3.5 SP1
I have recently installed .net 3.5 SP1. When I deployed a compiled web site that contained a form with its action set I received this error. Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'. If a fellow developer who has not installed SP1 deploys the compiled site it works fine. Does anyone know of any solutions for this?
asp.net
.net3.5
sp1
null
null
null
open
Setting a form's action in .net 3.5 SP1 === I have recently installed .net 3.5 SP1. When I deployed a compiled web site that contained a form with its action set I received this error. Method not found: 'Void System.Web.UI.HtmlControls.HtmlForm.set_Action(System.String)'. If a fellow developer who has not installed SP1 deploys the compiled site it works fine. Does anyone know of any solutions for this?
0