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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,369 | 08/26/2008 15:27:03 | 3,002 | 08/26/2008 11:21:07 | 1 | 1 | Is "safe_eval" really safe? | I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy).
The functionality to do this (the [rexec module][1]) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks out there that purport to do this - the most thought-out solution that I have found is
[this Python Cookbok recipe][2], "safe_eval".
Am I reasonably safe if I use this (or something similar), to protect from malicious code, or am I stuck with writing my own parser? Does anyone know of any better alternatives?
[1]: http://docs.python.org/lib/module-rexec.html
[2]: http://code.activestate.com/recipes/496746/ | python | security | null | null | null | null | open | Is "safe_eval" really safe?
===
I'm looking for a "safe" eval function, to implement spreadsheet-like calculations (using numpy/scipy).
The functionality to do this (the [rexec module][1]) has been removed from Python since 2.3 due to apparently unfixable security problems. There are several third-party hacks out there that purport to do this - the most thought-out solution that I have found is
[this Python Cookbok recipe][2], "safe_eval".
Am I reasonably safe if I use this (or something similar), to protect from malicious code, or am I stuck with writing my own parser? Does anyone know of any better alternatives?
[1]: http://docs.python.org/lib/module-rexec.html
[2]: http://code.activestate.com/recipes/496746/ | 0 |
28,377 | 08/26/2008 15:29:45 | 299 | 08/04/2008 13:31:09 | 316 | 28 | IIf vs. If | In Visual Basic, is there a performance difference when using the IIf function instead of the If statement? | iif | if | null | null | null | null | open | IIf vs. If
===
In Visual Basic, is there a performance difference when using the IIf function instead of the If statement? | 0 |
28,380 | 08/26/2008 15:30:38 | 1,281 | 08/14/2008 11:19:51 | 1 | 1 | Proxy with Android Emulator | Has anybody managed to get the Android Emulator working behind a proxy which requires authentication?
I've tried setting the -http-proxy argument to
http://DOMAIN/USERNAME:PASSWORD@IP:PORT
but am having no success.
I've tried following the docs to no avail. I've also tried the -verbose-proxy setting but this no longer seems to exist.
Any pointers? | proxy | android | null | null | null | null | open | Proxy with Android Emulator
===
Has anybody managed to get the Android Emulator working behind a proxy which requires authentication?
I've tried setting the -http-proxy argument to
http://DOMAIN/USERNAME:PASSWORD@IP:PORT
but am having no success.
I've tried following the docs to no avail. I've also tried the -verbose-proxy setting but this no longer seems to exist.
Any pointers? | 0 |
28,387 | 08/26/2008 15:33:05 | 292 | 08/04/2008 13:14:31 | 385 | 14 | SQL Server 2k5 memory consumption? | I have a development vm which is running sql server as well as some other apps for my stack, and I found that the other apps are performing awfully. after doing some digging, SQL Server was hogging the memory. After quick web search I discovered that by default, it will consume as much memory as it can in order to cache data and give it back to the system as other apps request it, but this process often doesn't happen fast enough, apparently my situation is a common problem. There however is a way to limit the memroy SQL Server is allowed to have. my question is, how should I set this limit. obviously I'm going to need to do some guess and check, but is there an absolute minimum threshhold? any recommendations are appreciated. I'll note that are developer machines have 2 gigs of memory so id like to be able to run the vm on 768 mb or less if possible. | sql-server | performance | null | null | null | null | open | SQL Server 2k5 memory consumption?
===
I have a development vm which is running sql server as well as some other apps for my stack, and I found that the other apps are performing awfully. after doing some digging, SQL Server was hogging the memory. After quick web search I discovered that by default, it will consume as much memory as it can in order to cache data and give it back to the system as other apps request it, but this process often doesn't happen fast enough, apparently my situation is a common problem. There however is a way to limit the memroy SQL Server is allowed to have. my question is, how should I set this limit. obviously I'm going to need to do some guess and check, but is there an absolute minimum threshhold? any recommendations are appreciated. I'll note that are developer machines have 2 gigs of memory so id like to be able to run the vm on 768 mb or less if possible. | 0 |
28,395 | 08/26/2008 15:35:07 | 2,863 | 08/25/2008 16:09:56 | 11 | 3 | Passing $_POST values with cURL | How do you pass $_POST values to a page using cURL? | php | null | null | null | null | null | open | Passing $_POST values with cURL
===
How do you pass $_POST values to a page using cURL? | 0 |
28,428 | 08/26/2008 15:43:09 | 1,288 | 08/14/2008 12:14:17 | 236 | 22 | How do I get the path where the user installed my Java application? | I want to bring up a file dialog in Java that defaults to the application installation directory. What's the best way to get that information programmatically? | java | null | null | null | null | null | open | How do I get the path where the user installed my Java application?
===
I want to bring up a file dialog in Java that defaults to the application installation directory. What's the best way to get that information programmatically? | 0 |
28,433 | 08/26/2008 15:43:54 | 3,095 | 08/26/2008 15:43:54 | 1 | 0 | Comparing two XML Schemas | Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas. | xml | null | null | null | null | null | open | Comparing two XML Schemas
===
Are there any tools to effectively compare two XML schema's? I have seen some generic XML diff tools, but I was wondering if there is anything that knows more about schemas. | 0 |
28,441 | 08/26/2008 15:45:43 | 3,055 | 08/26/2008 13:54:44 | 1 | 4 | Optimizing for low bandwidth | I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight if that will help with the limited development time and user experience.
The heavy part of the geographical data are chunked into tiles and loaded like map tiles in Google Maps but that means I need a lot of HTTP requests.
Should I go with just javascript + HTML? Would I end up with a faster application regarding Flash/Silverlight? Since I can do some complex algorithm on those 2 tech (like DeepZoom). Deploying desktop app though, is out of the question since we don't have that much maintenance funds.
It just needs to be fast... really fast..
p.s. faster is in the sense of "download faster" | optimization | networking | web-applications | null | null | null | open | Optimizing for low bandwidth
===
I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight if that will help with the limited development time and user experience.
The heavy part of the geographical data are chunked into tiles and loaded like map tiles in Google Maps but that means I need a lot of HTTP requests.
Should I go with just javascript + HTML? Would I end up with a faster application regarding Flash/Silverlight? Since I can do some complex algorithm on those 2 tech (like DeepZoom). Deploying desktop app though, is out of the question since we don't have that much maintenance funds.
It just needs to be fast... really fast..
p.s. faster is in the sense of "download faster" | 0 |
28,464 | 08/26/2008 15:55:44 | 1,574 | 08/16/2008 19:31:12 | 478 | 20 | When do you use dependency injection? | I've been using StructureMap recently and have enjoyed the experience thoroughly. However, I can see how one can easily get carried away with interfacing everything out and end up with classes that take in a boatload of interfaces into their constructors. Even though that really isn't a huge problem when you're using a dependency injection framework, it still feels that there are certain properties that really don't need to be interfaced out just for the sake of interfacing them.
Where do you draw the line on what to interface out vs just adding a property to the class? | dependency-injection | null | null | null | null | null | open | When do you use dependency injection?
===
I've been using StructureMap recently and have enjoyed the experience thoroughly. However, I can see how one can easily get carried away with interfacing everything out and end up with classes that take in a boatload of interfaces into their constructors. Even though that really isn't a huge problem when you're using a dependency injection framework, it still feels that there are certain properties that really don't need to be interfaced out just for the sake of interfacing them.
Where do you draw the line on what to interface out vs just adding a property to the class? | 0 |
28,478 | 08/26/2008 16:03:37 | 299 | 08/04/2008 13:31:09 | 316 | 29 | If, IIf and If | I recently asked a question about [IIf vs. If][1] and found out that there is another function in VB called **If** which basically does the same thing as **IIf** but is a short-circuit.
Does this **If** function perform better than the **IIf** function? Does the **If** statement trump the **If** and **IIf** functions?
[1]: http://stackoverflow.com/questions/28377/iif-vs-if | vb | if-statement | iif-function | if-function | null | null | open | If, IIf and If
===
I recently asked a question about [IIf vs. If][1] and found out that there is another function in VB called **If** which basically does the same thing as **IIf** but is a short-circuit.
Does this **If** function perform better than the **IIf** function? Does the **If** statement trump the **If** and **IIf** functions?
[1]: http://stackoverflow.com/questions/28377/iif-vs-if | 0 |
28,481 | 08/26/2008 16:04:53 | 1,341 | 08/14/2008 15:30:17 | 179 | 8 | What is the purpose of the designer files in Visual Studio 2008 Web application projects? | There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a <web form name>.designer.<language extension> file for every aspx when you right click on a file or the project itself in Solution Explorer and select 'Convert to Web Application.'
What is the purpose of these designer files? And these won't exist on a release build of the web application, they are just intermediate files used during development, hopefully? | vs2008 | web-application | null | null | null | null | open | What is the purpose of the designer files in Visual Studio 2008 Web application projects?
===
There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a <web form name>.designer.<language extension> file for every aspx when you right click on a file or the project itself in Solution Explorer and select 'Convert to Web Application.'
What is the purpose of these designer files? And these won't exist on a release build of the web application, they are just intermediate files used during development, hopefully? | 0 |
28,484 | 08/26/2008 16:05:52 | 572 | 08/06/2008 20:56:54 | 1,651 | 151 | How do you choose a Linux/Unix/BSD distribution? | I am attempting to choose a Linux, Unix, and/or BSD distribution for development purposes. I want to be able to do things like write shell scripts, develop C, C++, Java, Ruby, Python, etc. apps in a *nix environment, and see things from a different perspective. I'm planning on using a Virtual Machine to do all of this. My first stop was [distowatch][1], but I'm not sure what I'm even looking for in a distribution.
1. What are the crucial differences between Linux, Unix, and BSD?
2. What features do I want in a *nix distribution for software development?
3. Since I'll be virtualizing and can probably run a dozen different distros, what distos would you recommend for:
1. Linux?
2. Unix?
3. BSD?
----------
This is an experiment. I deleted an old question that did not get any good answer with an idea that maybe, if I refocused the entire question, I could get the same information I wanted in a better way. I hope this works. :)
[1]: http://distrowatch.com/ | linux | unix | bsd | operating-systems | development-environment | 09/28/2011 17:09:02 | not constructive | How do you choose a Linux/Unix/BSD distribution?
===
I am attempting to choose a Linux, Unix, and/or BSD distribution for development purposes. I want to be able to do things like write shell scripts, develop C, C++, Java, Ruby, Python, etc. apps in a *nix environment, and see things from a different perspective. I'm planning on using a Virtual Machine to do all of this. My first stop was [distowatch][1], but I'm not sure what I'm even looking for in a distribution.
1. What are the crucial differences between Linux, Unix, and BSD?
2. What features do I want in a *nix distribution for software development?
3. Since I'll be virtualizing and can probably run a dozen different distros, what distos would you recommend for:
1. Linux?
2. Unix?
3. BSD?
----------
This is an experiment. I deleted an old question that did not get any good answer with an idea that maybe, if I refocused the entire question, I could get the same information I wanted in a better way. I hope this works. :)
[1]: http://distrowatch.com/ | 4 |
28,526 | 08/26/2008 16:23:14 | 3,099 | 08/26/2008 16:23:14 | 1 | 0 | Vista and VS2008 strangenesses | Has anyone noticed odd behaviours when using VS2008 on a Vista box? My main dev machine is a Dell SomethingOrOther running Vista Home Premium which is fully patched as is my VS2008.
Some quirks are just quirks: when running VS2008 the play/pause media controls on my keyboard don't work (a Microsoft Wireless Natural Multimedia Keyboard ~ a snappy title if ever I saw one...).
Other quirks are more of a problem: a particular VS Solution makes use of a 'utility' class. I edited that class to add another field. No matter how many times I recompile/clean/manually delete the old dlls etc the compiler tells me there's no such field. I check the solution into SVN and check it out on my laptop (XP SP3 with fully patched VS2008) and it all works fine. No idea why.
Anyone found any other oddities?
SAL | vs2008 | windows-vista | null | null | null | null | open | Vista and VS2008 strangenesses
===
Has anyone noticed odd behaviours when using VS2008 on a Vista box? My main dev machine is a Dell SomethingOrOther running Vista Home Premium which is fully patched as is my VS2008.
Some quirks are just quirks: when running VS2008 the play/pause media controls on my keyboard don't work (a Microsoft Wireless Natural Multimedia Keyboard ~ a snappy title if ever I saw one...).
Other quirks are more of a problem: a particular VS Solution makes use of a 'utility' class. I edited that class to add another field. No matter how many times I recompile/clean/manually delete the old dlls etc the compiler tells me there's no such field. I check the solution into SVN and check it out on my laptop (XP SP3 with fully patched VS2008) and it all works fine. No idea why.
Anyone found any other oddities?
SAL | 0 |
28,529 | 08/26/2008 16:26:45 | 1,403 | 08/15/2008 08:22:55 | 111 | 5 | How would you handle errors when using jQuery.ajax() ? | When using [jQuery][1]'s [ajax method][2] to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:
$.ajax({
url: "userCreation.ashx",
data: { u:userName, p:password, e:email },
type: "POST",
beforeSend: function(){disableSubmitButton();},
complete: function(){enableSubmitButton();},
error: function(xhr, statusText, errorThrown){
// Work out what the error was and display the appropriate message
},
success: function(data){
displayUserCreatedMessage();
refreshUserList();
}
});
The request might fail for a number of reasons, such as duplicate user name, duplicate email address etc, and the ashx is written to throw an exception when this happens.
My problem seems to be that by throwing an exception the ashx causes the statusText and errorThrown to be undefined. I can get to the XMLHttpRequest.responseText which contains the HTML that makes up the standard .net error page.
I am finding the page title in the responseText and using the title to work out which error was thrown. Although I have a suspicion that this will fall apart when I enable custom error handling pages.
Should I be throwing the errors in the ashx, or should I be returning a status code as part of the data returned by the call to userCreation.ashx, then using this to decide what action to take? How do you handle these situations?
[1]: http://jquery.com/
[2]: http://docs.jquery.com/Ajax/jQuery.ajax#options | jquery | ajax | null | null | null | null | open | How would you handle errors when using jQuery.ajax() ?
===
When using [jQuery][1]'s [ajax method][2] to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:
$.ajax({
url: "userCreation.ashx",
data: { u:userName, p:password, e:email },
type: "POST",
beforeSend: function(){disableSubmitButton();},
complete: function(){enableSubmitButton();},
error: function(xhr, statusText, errorThrown){
// Work out what the error was and display the appropriate message
},
success: function(data){
displayUserCreatedMessage();
refreshUserList();
}
});
The request might fail for a number of reasons, such as duplicate user name, duplicate email address etc, and the ashx is written to throw an exception when this happens.
My problem seems to be that by throwing an exception the ashx causes the statusText and errorThrown to be undefined. I can get to the XMLHttpRequest.responseText which contains the HTML that makes up the standard .net error page.
I am finding the page title in the responseText and using the title to work out which error was thrown. Although I have a suspicion that this will fall apart when I enable custom error handling pages.
Should I be throwing the errors in the ashx, or should I be returning a status code as part of the data returned by the call to userCreation.ashx, then using this to decide what action to take? How do you handle these situations?
[1]: http://jquery.com/
[2]: http://docs.jquery.com/Ajax/jQuery.ajax#options | 0 |
28,530 | 08/26/2008 16:26:51 | 2,141 | 08/20/2008 14:38:34 | 225 | 4 | Corporate-Friendly Open Source Licenses | What open source licenses are more corporate-friendly, i.e., they can be used in commercial products without the need to open source the commercial product? | licensing | null | null | null | null | null | open | Corporate-Friendly Open Source Licenses
===
What open source licenses are more corporate-friendly, i.e., they can be used in commercial products without the need to open source the commercial product? | 0 |
28,538 | 08/26/2008 16:30:07 | 2,887 | 08/25/2008 18:11:29 | 1 | 2 | Java import/export dependencies | I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.
I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports'. Is it possible to do this?
This would be similar to the dumpbin utility in Windows development which can be used to list the exports and imports of a DLL.
| java | null | null | null | null | null | open | Java import/export dependencies
===
I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.
I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports'. Is it possible to do this?
This would be similar to the dumpbin utility in Windows development which can be used to list the exports and imports of a DLL.
| 0 |
28,542 | 08/26/2008 16:31:25 | 616 | 08/07/2008 11:16:13 | 23 | 4 | Is GCC broken when taking the address of an argument on ARM7TDMI? | My C code snippet takes the address of an argument and stores it in a volatile memory location (preprocessed code):
void foo(unsigned int x) {
*(volatile unsigned int*)(0x4000000 + 0xd4) = (unsigned int)(&x);
}
int main() {
foo(1);
while(1);
}
I used an SVN version of GCC for compiling this code. At the end of function `foo` I would expect to have the value `1` stored in the stack and, at `0x40000d4`, an address pointing to that value. When I compile without optimizations using the flag `-O0`, I get the expected ARM7TMDI assembly output (commented for your convenience):
.align 2
.global foo
.type foo, %function
foo:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #8
str r0, [sp, #4] @ 3. Store the argument on the stack
mov r3, #67108864
add r3, r3, #212
add r2, sp, #4 @ 4. Address of the stack variable
str r2, [r3, #0] @ 5. Store the address at 0x40000d4
add sp, sp, #8
bx lr
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
mov r0, #1 @ 1. Pass the argument in register 0
bl foo @ 2. Call function foo
.L4:
b .L4
.size main, .-main
.ident "GCC: (GNU) 4.4.0 20080820 (experimental)"
It clearly stores the argument first on the stack and from there stores it at `0x40000d4`. When I compile with optimizations using `-O1`, I get something unexpected:
.align 2
.global foo
.type foo, %function
foo:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #8
mov r2, #67108864
add r3, sp, #4 @ 3. Address of *something* on the stack
str r3, [r2, #212] @ 4. Store the address at 0x40000d4
add sp, sp, #8
bx lr
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
mov r0, #1 @ 1. Pass the argument in register 0
bl foo @ 2. Call function foo
.L4:
b .L4
.size main, .-main
.ident "GCC: (GNU) 4.4.0 20080820 (experimental)"
This time the argument is never stored on the stack even though *something* from the stack is still stored at `0x40000d4`.
Is this just expected/undefined behaviour? Have I done something wrong or have I in fact found a Compiler Bug™? | c | gcc | arm | null | null | null | open | Is GCC broken when taking the address of an argument on ARM7TDMI?
===
My C code snippet takes the address of an argument and stores it in a volatile memory location (preprocessed code):
void foo(unsigned int x) {
*(volatile unsigned int*)(0x4000000 + 0xd4) = (unsigned int)(&x);
}
int main() {
foo(1);
while(1);
}
I used an SVN version of GCC for compiling this code. At the end of function `foo` I would expect to have the value `1` stored in the stack and, at `0x40000d4`, an address pointing to that value. When I compile without optimizations using the flag `-O0`, I get the expected ARM7TMDI assembly output (commented for your convenience):
.align 2
.global foo
.type foo, %function
foo:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #8
str r0, [sp, #4] @ 3. Store the argument on the stack
mov r3, #67108864
add r3, r3, #212
add r2, sp, #4 @ 4. Address of the stack variable
str r2, [r3, #0] @ 5. Store the address at 0x40000d4
add sp, sp, #8
bx lr
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
mov r0, #1 @ 1. Pass the argument in register 0
bl foo @ 2. Call function foo
.L4:
b .L4
.size main, .-main
.ident "GCC: (GNU) 4.4.0 20080820 (experimental)"
It clearly stores the argument first on the stack and from there stores it at `0x40000d4`. When I compile with optimizations using `-O1`, I get something unexpected:
.align 2
.global foo
.type foo, %function
foo:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
sub sp, sp, #8
mov r2, #67108864
add r3, sp, #4 @ 3. Address of *something* on the stack
str r3, [r2, #212] @ 4. Store the address at 0x40000d4
add sp, sp, #8
bx lr
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, lr}
mov r0, #1 @ 1. Pass the argument in register 0
bl foo @ 2. Call function foo
.L4:
b .L4
.size main, .-main
.ident "GCC: (GNU) 4.4.0 20080820 (experimental)"
This time the argument is never stored on the stack even though *something* from the stack is still stored at `0x40000d4`.
Is this just expected/undefined behaviour? Have I done something wrong or have I in fact found a Compiler Bug™? | 0 |
28,551 | 08/26/2008 16:35:06 | 1,043 | 08/11/2008 18:08:32 | 1,087 | 53 | Tips for a successful AppStore submission? | In a day or two I'll be ready to submit my iPhone app to the AppStore and I'm curious whether people who have gone through this process have any tips / suggestions for a smooth submission process.
Here's things I've covered;
- No memory leaks
- Tested performance on an actual device
- Doesn't crash :)
- Using correct certificates / profile
What I'm a little unsure about are how to configure the "Bundle Display Name" /"Bundle Identifier" and "Bundle Name". I understand the first is the text that's shown on the iPhone itself, but what about the last? Does this have to match Bundle Identifier?
Many thanks!
| iphone | null | null | null | null | 01/19/2012 08:00:28 | off topic | Tips for a successful AppStore submission?
===
In a day or two I'll be ready to submit my iPhone app to the AppStore and I'm curious whether people who have gone through this process have any tips / suggestions for a smooth submission process.
Here's things I've covered;
- No memory leaks
- Tested performance on an actual device
- Doesn't crash :)
- Using correct certificates / profile
What I'm a little unsure about are how to configure the "Bundle Display Name" /"Bundle Identifier" and "Bundle Name". I understand the first is the text that's shown on the iPhone itself, but what about the last? Does this have to match Bundle Identifier?
Many thanks!
| 2 |
28,559 | 08/26/2008 16:37:52 | 116 | 08/02/2008 05:51:57 | 3,959 | 205 | Most Pythonic way to while ((x = next()) != END) | What's the best Python idiom for this C construct?
while ((x = next()) != END) {
....
} | c | python | null | null | null | null | open | Most Pythonic way to while ((x = next()) != END)
===
What's the best Python idiom for this C construct?
while ((x = next()) != END) {
....
} | 0 |
28,560 | 08/26/2008 16:38:05 | 1,534 | 08/16/2008 12:20:49 | 650 | 41 | Is it possible to use nHibernate with Paradox database? | Is it possible to configure nHibernate to connect to Paradox database (*.db files)? | database | nhibernate | paradox | null | null | null | open | Is it possible to use nHibernate with Paradox database?
===
Is it possible to configure nHibernate to connect to Paradox database (*.db files)? | 0 |
28,567 | 08/26/2008 16:43:28 | 1,190 | 08/13/2008 12:15:38 | 761 | 69 | How do I name a consulting company? | At some point, I'd like to follow some of the advice on SOFlow and start my own small consulting / software shop. (Consulting because it's easy to get work, software because it scales much better.)
I understand the naming behind "[Less Everything][1]" - they make minimalist products. But where does "[37 Signals][2]" come from? And "[Fog Creek][3]"?
I want to avoid using my name, because I'd like to build the business up to at least a few people. I'd also like to avoid the stuff that [random-band-name generators][4] spew out.
[1]: http://lesseverything.com/
[2]: http://37signals.com/
[3]: http://fogcreek.com/
[4]: http://www.bandnamemaker.com/ | consulting | management | entrepreneurship | null | null | 05/06/2012 23:06:37 | off topic | How do I name a consulting company?
===
At some point, I'd like to follow some of the advice on SOFlow and start my own small consulting / software shop. (Consulting because it's easy to get work, software because it scales much better.)
I understand the naming behind "[Less Everything][1]" - they make minimalist products. But where does "[37 Signals][2]" come from? And "[Fog Creek][3]"?
I want to avoid using my name, because I'd like to build the business up to at least a few people. I'd also like to avoid the stuff that [random-band-name generators][4] spew out.
[1]: http://lesseverything.com/
[2]: http://37signals.com/
[3]: http://fogcreek.com/
[4]: http://www.bandnamemaker.com/ | 2 |
28,577 | 08/26/2008 16:48:46 | 2,972 | 08/26/2008 09:20:36 | 1 | 0 | Globalization architecture | I need to store products for an e-commerce solution in a database. Each product should have descriptive information, such as name, description etc.
I need any product to be localized to x number of languages.
What I've done so far, is to make any column that should be localized and nvarchar(MAX) and then i store an XML string like this:
<cultures><culture code="en-us">Super fast laptop</culture><culture code="da-dk">Super hurtig bærbar</culture></cultures>
And when I load it from the database, into my business logic objects, I parse the XML string to a Dictionary<string, string> where the key is the culture/language code.
So when I want to display the name of a product, I do this:
lblName.Text = product.Name["en-us"];
Does anyone have a better solution? | c# | architecture | localization | globalization | null | null | open | Globalization architecture
===
I need to store products for an e-commerce solution in a database. Each product should have descriptive information, such as name, description etc.
I need any product to be localized to x number of languages.
What I've done so far, is to make any column that should be localized and nvarchar(MAX) and then i store an XML string like this:
<cultures><culture code="en-us">Super fast laptop</culture><culture code="da-dk">Super hurtig bærbar</culture></cultures>
And when I load it from the database, into my business logic objects, I parse the XML string to a Dictionary<string, string> where the key is the culture/language code.
So when I want to display the name of a product, I do this:
lblName.Text = product.Name["en-us"];
Does anyone have a better solution? | 0 |
28,578 | 08/26/2008 16:48:51 | 327 | 08/04/2008 17:08:49 | 424 | 23 | How can I merge my files when the folder structure has changed using Borland StarTeam? | I'm in the process of refactoring some code which includes moving folders around, and I would like to regularly merge to keep things current. What is the best way to merge after I've moved folders around in my working copy? | version-control | refactoring | merge | starteam | null | null | open | How can I merge my files when the folder structure has changed using Borland StarTeam?
===
I'm in the process of refactoring some code which includes moving folders around, and I would like to regularly merge to keep things current. What is the best way to merge after I've moved folders around in my working copy? | 0 |
28,588 | 08/26/2008 16:53:12 | 3,102 | 08/26/2008 16:44:42 | 1 | 1 | How do you set up an OpenID server in Ubuntu? | I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own server, just because it's harder :) How do you do this in Ubuntu? | ubuntu | openid | linux | null | null | null | open | How do you set up an OpenID server in Ubuntu?
===
I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own server, just because it's harder :) How do you do this in Ubuntu? | 0 |
28,590 | 08/26/2008 16:53:53 | 1,344 | 08/14/2008 16:03:00 | 1,212 | 96 | Why is it bad practice to make multiple database connections in one request? | A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first thought is the expense to your script of making that many requests to the DB, but then I counter myself with the question: wouldn't multiple connections make concurrent querying more efficient?
How about some answers (with evidence, folks) from some people in the know? | database | resources | database-connection | null | null | null | open | Why is it bad practice to make multiple database connections in one request?
===
A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first thought is the expense to your script of making that many requests to the DB, but then I counter myself with the question: wouldn't multiple connections make concurrent querying more efficient?
How about some answers (with evidence, folks) from some people in the know? | 0 |
28,599 | 08/26/2008 16:57:52 | 1,190 | 08/13/2008 12:15:38 | 765 | 69 | How do I support SSL Client Certificate authentication? | I want to do what myopenid does -- once you've logged, you can click a button that generates you an SSL certificate; the browser then downloads this certificate and stores it. When you later go back to yourid.myopenid.com, your browser can use its stored certificate for authentication so you don't ever need a password.
So my questions is what is required to get this working? How do I generate certificates? How do I validate them once they're presented back to me?
My stack is Rails on Apache using Passenger, but I'm not too particular. | ruby-on-rails | apache | ssl | null | null | null | open | How do I support SSL Client Certificate authentication?
===
I want to do what myopenid does -- once you've logged, you can click a button that generates you an SSL certificate; the browser then downloads this certificate and stores it. When you later go back to yourid.myopenid.com, your browser can use its stored certificate for authentication so you don't ever need a password.
So my questions is what is required to get this working? How do I generate certificates? How do I validate them once they're presented back to me?
My stack is Rails on Apache using Passenger, but I'm not too particular. | 0 |
28,605 | 08/26/2008 16:59:00 | 356 | 08/05/2008 01:13:09 | 1 | 0 | C on Visual Studio | I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:
- learn the ins and out of C in Visual Studio
- recommend a better C IDE + compiler | c | c++ | ide | compiler | null | null | open | C on Visual Studio
===
I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:
- learn the ins and out of C in Visual Studio
- recommend a better C IDE + compiler | 0 |
28,607 | 08/26/2008 16:59:48 | 2,313 | 08/21/2008 15:27:23 | 13 | 2 | Why do my exception stack traces always point to the last method line? | I have a problem with my Visual Studio installation. When I got an exception I always have incorrect line numbers in it's stack trace. There are always point to last line of each method in my codebase. At the same time it's OK when I'm tracing programs with debugger. What's happed with PDBs? | visual-studio | .net | c# | null | null | null | open | Why do my exception stack traces always point to the last method line?
===
I have a problem with my Visual Studio installation. When I got an exception I always have incorrect line numbers in it's stack trace. There are always point to last line of each method in my codebase. At the same time it's OK when I'm tracing programs with debugger. What's happed with PDBs? | 0 |
28,637 | 08/26/2008 17:09:45 | 2,469 | 08/22/2008 12:41:47 | 23 | 7 | C# is DateTime.Now the best way to measure a functions preformance? | I need to find a bottleneck and need to accurately as possible measure time.
Is the following Code Snippet the best way to measure the performance?
DateTime startTime = DateTime.Now;
// Some Execution Process
DateTime endTime = DateTime.Now;
TimeSpan totalTimeTaken = endTime.Subtract(startTime);
| c# | .net | datetime | timer | null | null | open | C# is DateTime.Now the best way to measure a functions preformance?
===
I need to find a bottleneck and need to accurately as possible measure time.
Is the following Code Snippet the best way to measure the performance?
DateTime startTime = DateTime.Now;
// Some Execution Process
DateTime endTime = DateTime.Now;
TimeSpan totalTimeTaken = endTime.Subtract(startTime);
| 0 |
28,642 | 08/26/2008 17:11:41 | 1,212 | 08/13/2008 13:17:40 | 105 | 4 | Finding controls that use a certain interface in ASP.NET | Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebControls.Button, IMyButtonInterface { ... }
In the codebehind of a page, I'd like to find all instances of this button from the ASPX. Because I don't really know what the *type* is going to be, just the *interface* it implements, that's all I have to go on when looping through the control tree. Thing is, I've never had to determine if an object uses an interface versus just testing its type. **How can I loop through the control tree and yank anything that implements IMyButtonInterface in a clean way** (Linq would be fine)?
Again, know it's something obvious, but just now started using interfaces heavily and I can't seem to focus my Google results enough to figure it out :)
| asp.net | c# | null | null | null | null | open | Finding controls that use a certain interface in ASP.NET
===
Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebControls.Button, IMyButtonInterface { ... }
In the codebehind of a page, I'd like to find all instances of this button from the ASPX. Because I don't really know what the *type* is going to be, just the *interface* it implements, that's all I have to go on when looping through the control tree. Thing is, I've never had to determine if an object uses an interface versus just testing its type. **How can I loop through the control tree and yank anything that implements IMyButtonInterface in a clean way** (Linq would be fine)?
Again, know it's something obvious, but just now started using interfaces heavily and I can't seem to focus my Google results enough to figure it out :)
| 0 |
28,652 | 08/26/2008 17:14:23 | 2,118 | 08/20/2008 12:54:09 | 274 | 14 | Elastic tabstop editors and plugins | What win code editors allow the use of [elastic tabstops][1], either natively or through a plugin?
I know about a gedit plugin, but gedit that only works on *nix.
[1]: http://en.wikipedia.org/wiki/Elastic_tabstop | editor | tabs | null | null | null | null | open | Elastic tabstop editors and plugins
===
What win code editors allow the use of [elastic tabstops][1], either natively or through a plugin?
I know about a gedit plugin, but gedit that only works on *nix.
[1]: http://en.wikipedia.org/wiki/Elastic_tabstop | 0 |
28,654 | 08/26/2008 17:14:55 | 1,076 | 08/12/2008 10:25:44 | 6 | 1 | Debugging Web Service with SOAP Packet | I have a web service that I created in C# and a test harness that was provided by my client. Unfortunately my web service doesn't seem to be parsing the objects created by the test harness. I believe the problem lies with serializing the soap packet.
Using TCPTrace I was able to get the soap packet passed to the web service but only on a remote machine so I can't debug it there. Is there a way of calling my local webservice with the soap packet generated rather than my current test harness where I manually create objects and call the web service through a web reference?
Thanks in advance | soap | c# | web-services | null | null | null | open | Debugging Web Service with SOAP Packet
===
I have a web service that I created in C# and a test harness that was provided by my client. Unfortunately my web service doesn't seem to be parsing the objects created by the test harness. I believe the problem lies with serializing the soap packet.
Using TCPTrace I was able to get the soap packet passed to the web service but only on a remote machine so I can't debug it there. Is there a way of calling my local webservice with the soap packet generated rather than my current test harness where I manually create objects and call the web service through a web reference?
Thanks in advance | 0 |
28,664 | 08/26/2008 17:18:21 | 572 | 08/06/2008 20:56:54 | 1,677 | 152 | What is the best/a very good meta-data reader library? | Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?), but the more it can do (eg EXIF from images?) the better without compromising the ID3 tag reading abilities.
I'm interested in making a script that goes through my media (right now, my music files) and makes sure the file name and directory path correspond to the file's metadata and then create a log of mismatched files so I can check to see which is accurate and make the proper changes. I'm thinking Ruby or Python (see [a related question specifically for Python][1]) would be best for this, but I'm open to using any language really (and would actually probably prefer an application language like C, C++, Java, C# in case this project goes off).
[1]: http://stackoverflow.com/questions/8948/accessing-mp3-meta-data-with-python | meta-data | null | null | null | null | null | open | What is the best/a very good meta-data reader library?
===
Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?), but the more it can do (eg EXIF from images?) the better without compromising the ID3 tag reading abilities.
I'm interested in making a script that goes through my media (right now, my music files) and makes sure the file name and directory path correspond to the file's metadata and then create a log of mismatched files so I can check to see which is accurate and make the proper changes. I'm thinking Ruby or Python (see [a related question specifically for Python][1]) would be best for this, but I'm open to using any language really (and would actually probably prefer an application language like C, C++, Java, C# in case this project goes off).
[1]: http://stackoverflow.com/questions/8948/accessing-mp3-meta-data-with-python | 0 |
28,668 | 08/26/2008 17:20:47 | 1,892 | 08/19/2008 06:17:29 | 226 | 14 | Best way to extract data from a FileMaker Pro database in a script? | My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker database is on the same LAN running on an OS X machine. I can log into the webby interface from my machine.
I'm quite handy with SQL, and if somebody could point me to some FileMaker plug-in that could give me SQL access to the data within FileMaker, I would be pleased as punch. Everything I've found only goes the other way: Having FileMaker get data from SQL sources. Not useful.
It's not my first choice, but I'd use Perl instead of Python if there was a Perl-y solution at hand. | python | linux | perl | scripting | filemaker | null | open | Best way to extract data from a FileMaker Pro database in a script?
===
My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker database is on the same LAN running on an OS X machine. I can log into the webby interface from my machine.
I'm quite handy with SQL, and if somebody could point me to some FileMaker plug-in that could give me SQL access to the data within FileMaker, I would be pleased as punch. Everything I've found only goes the other way: Having FileMaker get data from SQL sources. Not useful.
It's not my first choice, but I'd use Perl instead of Python if there was a Perl-y solution at hand. | 0 |
28,675 | 08/26/2008 17:23:01 | 2,612 | 08/23/2008 15:44:45 | 1 | 0 | How to avoid OutOfMemoryError when using Bytebuffers and NIO? | I'm using ByteBuffers and FileChannels to write binary data to a file. When doing that for big files or successively for multiple files, I get a OutOfMemoryError exception.
I've read elsewhere that using Bytebuffers with NIO is broken and should be avoided. Does any of you already faced this kind of problem and found a solution to efficiently save large amounts of binary data in a file in java?
Is the jvm option -XX:MaxDirectMemorySize the way to go? | java | filechannel | nio | bytebuffer | null | null | open | How to avoid OutOfMemoryError when using Bytebuffers and NIO?
===
I'm using ByteBuffers and FileChannels to write binary data to a file. When doing that for big files or successively for multiple files, I get a OutOfMemoryError exception.
I've read elsewhere that using Bytebuffers with NIO is broken and should be avoided. Does any of you already faced this kind of problem and found a solution to efficiently save large amounts of binary data in a file in java?
Is the jvm option -XX:MaxDirectMemorySize the way to go? | 0 |
28,708 | 08/26/2008 17:48:01 | 941 | 08/10/2008 21:04:56 | 1,418 | 138 | Process.StartTime Access Denied | My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a security setting or a policy setting, or *something* that I need to twiddle with to fix this, as I can't believe the StartTime property is in the Framework just so that it can fail 100% of the time.
A Google search indicated that I could resolve this by adding the user whose credentials the querying code is running under to the "Performance Log Users" group. However, no such user group exists on this machine. | c# | .net-1.1 | windows-server-2000 | null | null | null | open | Process.StartTime Access Denied
===
My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime request. This is a process running with a User's credentials (ie, not a high-privilege process). There's clearly a security setting or a policy setting, or *something* that I need to twiddle with to fix this, as I can't believe the StartTime property is in the Framework just so that it can fail 100% of the time.
A Google search indicated that I could resolve this by adding the user whose credentials the querying code is running under to the "Performance Log Users" group. However, no such user group exists on this machine. | 0 |
28,709 | 08/26/2008 17:48:04 | 1,539 | 08/16/2008 13:31:36 | 1 | 2 | Eclipse 3.2.2 content assist not finding classes in the project | In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris. | eclipse | content | assisit | linux | null | null | open | Eclipse 3.2.2 content assist not finding classes in the project
===
In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris. | 0 |
28,713 | 08/26/2008 17:50:24 | 276 | 08/04/2008 10:44:14 | 88 | 9 | Is there a simple way to make html textarea and input type text equally wide? | Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?
A CSS/HTML solution would be brilliant. PHP would be OK. I would prefer not to have to use Javascript.
Thanks
/Erik | php | css | html | textarea | null | null | open | Is there a simple way to make html textarea and input type text equally wide?
===
Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?
A CSS/HTML solution would be brilliant. PHP would be OK. I would prefer not to have to use Javascript.
Thanks
/Erik | 0 |
28,716 | 08/26/2008 17:50:53 | 2,633 | 08/23/2008 19:14:06 | 31 | 5 | Which PHP opcode cacher should I use to improve performance? | I'm trying to improve performance under high load and would like to implement opcode caching. Which of the following should I use?
* APC
* eAccelerator
* XCache
I'm also open to any other alternatives that have slipped under my radar.
Currently running on a stock Debian Etch with Apache 2 and PHP 5.2 | php | performance | caching | null | null | null | open | Which PHP opcode cacher should I use to improve performance?
===
I'm trying to improve performance under high load and would like to implement opcode caching. Which of the following should I use?
* APC
* eAccelerator
* XCache
I'm also open to any other alternatives that have slipped under my radar.
Currently running on a stock Debian Etch with Apache 2 and PHP 5.2 | 0 |
28,723 | 08/26/2008 17:53:56 | 3,046 | 08/26/2008 13:34:07 | 1 | 0 | Best way to unit test ASP.NET MVC action methods that use BindingHelperExtensions.UpdateFrom? | In handling a form post I have something like
public ActionResult Insert()
{
Order order = new Order();
BindingHelperExtensions.UpdateFrom(order, this.Request.Form);
this.orderService.Save(order);
return this.RedirectToAction("Details", new { id = order.ID });
}
I am not using explicit parameters in the method as I anticipate having to adapt to variable number of fields etc. and a method with 20+ parameters is not appealing.
I suppose my only option here is mock up the whole HttpRequest, equivalent to what Rob Conery has done. Is this a best practice? Hard to tell with a framework which is so new.
I've also seen solutions involving using an ActionFilter so that you can transform the above method signature to something like
[SomeFilter]
public Insert(Contact contact)
| asp.net-mvc | null | null | null | null | null | open | Best way to unit test ASP.NET MVC action methods that use BindingHelperExtensions.UpdateFrom?
===
In handling a form post I have something like
public ActionResult Insert()
{
Order order = new Order();
BindingHelperExtensions.UpdateFrom(order, this.Request.Form);
this.orderService.Save(order);
return this.RedirectToAction("Details", new { id = order.ID });
}
I am not using explicit parameters in the method as I anticipate having to adapt to variable number of fields etc. and a method with 20+ parameters is not appealing.
I suppose my only option here is mock up the whole HttpRequest, equivalent to what Rob Conery has done. Is this a best practice? Hard to tell with a framework which is so new.
I've also seen solutions involving using an ActionFilter so that you can transform the above method signature to something like
[SomeFilter]
public Insert(Contact contact)
| 0 |
28,739 | 08/26/2008 18:00:52 | 72 | 08/01/2008 15:09:58 | 1,125 | 55 | Get `df` to show updated information on FreeBSD | I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected when running `df`. When I run `du -d0` on the partition it shows the correct value. Is there any way to force this information to be updated? What is causing the output here to be different? | filesystems | sysadmin | freebsd | null | null | null | open | Get `df` to show updated information on FreeBSD
===
I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected when running `df`. When I run `du -d0` on the partition it shows the correct value. Is there any way to force this information to be updated? What is causing the output here to be different? | 0 |
28,756 | 08/26/2008 18:09:30 | 2,993 | 08/26/2008 10:45:59 | 78 | 4 | The best way to get a count of IEnumerable<T> | Whats the best/easiest way to obtain a count of items within an IEnumerable<T> collection without enumerating over all of the items in the collection?
Possible with LINQ or Lambda? | c# | null | null | null | null | null | open | The best way to get a count of IEnumerable<T>
===
Whats the best/easiest way to obtain a count of items within an IEnumerable<T> collection without enumerating over all of the items in the collection?
Possible with LINQ or Lambda? | 0 |
28,757 | 08/26/2008 18:09:36 | 37 | 08/01/2008 12:44:00 | 299 | 18 | Any good Subversion 1.5 virtual appliance recommendations? | I'm looking for a quick-and-dirty solution to this, I have to set up a Subversion server really quickly, like by the end of the day tomorrow. My initial thought was to just download a virtual appliance that we could load onto our host machine. The problem I am having however is that all the appliances I have found so far are stuck in svn version 1.4 or lower.
Does anybody know of an appliance that has svn 1.5 running? I don't need any of the other bits like issue tracking, WebSVN or any of that stuff.
Thanks,
Wally | version-control | svn | null | null | null | null | open | Any good Subversion 1.5 virtual appliance recommendations?
===
I'm looking for a quick-and-dirty solution to this, I have to set up a Subversion server really quickly, like by the end of the day tomorrow. My initial thought was to just download a virtual appliance that we could load onto our host machine. The problem I am having however is that all the appliances I have found so far are stuck in svn version 1.4 or lower.
Does anybody know of an appliance that has svn 1.5 running? I don't need any of the other bits like issue tracking, WebSVN or any of that stuff.
Thanks,
Wally | 0 |
28,765 | 08/26/2008 18:13:13 | 1,341 | 08/14/2008 15:30:17 | 182 | 9 | Using VIsual Studio 2008 Web Deployment projects - getting an error finding aspnet_merge.exe | I recently upgraded a VS2005 web deployment project to VS2008 - and how I get the following error when building:
The specified task executable location "bin\aspnet_merge.exe" is invalid.
Here is the source of the error (from the web deployment targets file):
<Target Name="AspNetMerge" Condition="'$(UseMerge)' == 'true'" DependsOnTargets="$(MergeDependsOn)">
<AspNetMerge
ExePath="$(FrameworkSDKDir)bin"
ApplicationPath="$(TempBuildDir)"
KeyFile="$(_FullKeyFile)"
DelaySign="$(DelaySign)"
Prefix="$(AssemblyPrefixName)"
SingleAssemblyName="$(SingleAssemblyName)"
Debug="$(DebugSymbols)"
Nologo="$(NoLogo)"
ContentAssemblyName="$(ContentAssemblyName)"
ErrorStack="$(ErrorStack)"
RemoveCompiledFiles="$(DeleteAppCodeCompiledFiles)"
CopyAttributes="$(CopyAssemblyAttributes)"
AssemblyInfo="$(AssemblyInfoDll)"
MergeXmlDocs="$(MergeXmlDocs)"
ErrorLogFile="$(MergeErrorLogFile)"
/>
What is the solution to this problem? | vs2008 | asp.net | null | null | null | null | open | Using VIsual Studio 2008 Web Deployment projects - getting an error finding aspnet_merge.exe
===
I recently upgraded a VS2005 web deployment project to VS2008 - and how I get the following error when building:
The specified task executable location "bin\aspnet_merge.exe" is invalid.
Here is the source of the error (from the web deployment targets file):
<Target Name="AspNetMerge" Condition="'$(UseMerge)' == 'true'" DependsOnTargets="$(MergeDependsOn)">
<AspNetMerge
ExePath="$(FrameworkSDKDir)bin"
ApplicationPath="$(TempBuildDir)"
KeyFile="$(_FullKeyFile)"
DelaySign="$(DelaySign)"
Prefix="$(AssemblyPrefixName)"
SingleAssemblyName="$(SingleAssemblyName)"
Debug="$(DebugSymbols)"
Nologo="$(NoLogo)"
ContentAssemblyName="$(ContentAssemblyName)"
ErrorStack="$(ErrorStack)"
RemoveCompiledFiles="$(DeleteAppCodeCompiledFiles)"
CopyAttributes="$(CopyAssemblyAttributes)"
AssemblyInfo="$(AssemblyInfoDll)"
MergeXmlDocs="$(MergeXmlDocs)"
ErrorLogFile="$(MergeErrorLogFile)"
/>
What is the solution to this problem? | 0 |
28,768 | 08/26/2008 18:14:42 | 12,081 | 08/08/2008 17:40:28 | 271 | 11 | Simple Object to Database Product | I've been taking a look at some different products for .NET which propose to speed up development time by providing a way for business objects to map seamlessly to an automatically generated database. I've never had a problem writing a data access layer, but I'm wondering if this type of product will really save the time it claims. I also worry that I will be giving up too much control over the database and make it harder to track down any data level problems. Do these type of products make it better or worse in the already tough case that the database and business object structure must change?
For example:
[Object Relation Mapping from Dev Express][1]
In essence, is it worth it? Will I save "THAT" much time, effort, and future bugs?
[1]: http://www.devexpress.com/Products/NET/ORM/ | c# | .net | database | null | null | null | open | Simple Object to Database Product
===
I've been taking a look at some different products for .NET which propose to speed up development time by providing a way for business objects to map seamlessly to an automatically generated database. I've never had a problem writing a data access layer, but I'm wondering if this type of product will really save the time it claims. I also worry that I will be giving up too much control over the database and make it harder to track down any data level problems. Do these type of products make it better or worse in the already tough case that the database and business object structure must change?
For example:
[Object Relation Mapping from Dev Express][1]
In essence, is it worth it? Will I save "THAT" much time, effort, and future bugs?
[1]: http://www.devexpress.com/Products/NET/ORM/ | 0 |
28,793 | 08/26/2008 18:26:07 | 2,328 | 08/21/2008 16:45:54 | 277 | 17 | vim commands in Eclipse | I have been doing some java development lately and have started using Eclipse. For the most part, I think it is great, but being a C/C++ guy used to doing all of his editing in vim, I find myself needlessly hitting the Esc key over and over.
It would be really nice if I got all the nice features of Eclipse, but still could do basic editing the same way I can in vim. Anyone know of any Eclipse pluggins that would help with this? | eclipse | vim | null | null | null | null | open | vim commands in Eclipse
===
I have been doing some java development lately and have started using Eclipse. For the most part, I think it is great, but being a C/C++ guy used to doing all of his editing in vim, I find myself needlessly hitting the Esc key over and over.
It would be really nice if I got all the nice features of Eclipse, but still could do basic editing the same way I can in vim. Anyone know of any Eclipse pluggins that would help with this? | 0 |
28,796 | 08/26/2008 18:26:51 | 2,900 | 08/25/2008 20:47:19 | 21 | 9 | What refactoring tools do people use for Python ? | I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class names.
Simple search and replace only gets me so far. In my case, I want to rename AdminAction to AdminActionPlug and AdminActionLogger to AdminActionLoggerPlug, so the first one's search-and-replace would also hit the second, wrongly.
Does anyone have experience with Python refactoring tools ? Bonus points if they can fix class names in the XML documents too. | python | refactoring | null | null | null | null | open | What refactoring tools do people use for Python ?
===
I have a bunch of classes I want to rename. Some of them have names that are small and that name is reused in other class names, where I don't want that name changed. Most of this lives in Python code, but we also have some XML code that references class names.
Simple search and replace only gets me so far. In my case, I want to rename AdminAction to AdminActionPlug and AdminActionLogger to AdminActionLoggerPlug, so the first one's search-and-replace would also hit the second, wrongly.
Does anyone have experience with Python refactoring tools ? Bonus points if they can fix class names in the XML documents too. | 0 |
28,808 | 08/26/2008 18:32:35 | 5 | 07/31/2008 14:22:31 | 2,234 | 95 | PAD (Portable Application Description) files for shareware / freeware | I've been told that I should include [PAD files][1] with the freeware applications I distribute so hosting sites can list the information correctly and check for updates, etc.
Can you give me some info on using PAD files? Here are general questions which come to mind:
- Is it worth the effort?
- Do you use PADGen or an online tool like [www.padbuilder.com][2]?
- Do you digitally sign yours?
[1]: http://en.wikipedia.org/wiki/Portable_Application_Description
[2]: http://www.padbuilder.com | open-source | freeware | software-distribution | null | null | null | open | PAD (Portable Application Description) files for shareware / freeware
===
I've been told that I should include [PAD files][1] with the freeware applications I distribute so hosting sites can list the information correctly and check for updates, etc.
Can you give me some info on using PAD files? Here are general questions which come to mind:
- Is it worth the effort?
- Do you use PADGen or an online tool like [www.padbuilder.com][2]?
- Do you digitally sign yours?
[1]: http://en.wikipedia.org/wiki/Portable_Application_Description
[2]: http://www.padbuilder.com | 0 |
28,817 | 08/26/2008 18:40:27 | 2,877 | 08/25/2008 17:28:04 | 1 | 1 | How to find out which tags cover which directories? | There is a legacy CVS repository, which contains a large number of directories and sub-directories. There is also a large number of branches and tags that do not necessarilly cover all directories - usually a subset. How can I find out, which branch / tag covers, which directories and, optionally, files?
CVS log already provides the list of tags per file. The task requires me to transpose this into directories / files per tag. I could not find such functionality in current WinCVS (CVSNT) implementation. Given ample empty cycles I can write a Perl script that would do that, the algorithm is not complex, but it needs to be done.
I would imagine there are lots of people who needed such information and solved this problem. Thus, I think there should be a readily available (open source / free) tool for that. | cvs | null | null | null | null | null | open | How to find out which tags cover which directories?
===
There is a legacy CVS repository, which contains a large number of directories and sub-directories. There is also a large number of branches and tags that do not necessarilly cover all directories - usually a subset. How can I find out, which branch / tag covers, which directories and, optionally, files?
CVS log already provides the list of tags per file. The task requires me to transpose this into directories / files per tag. I could not find such functionality in current WinCVS (CVSNT) implementation. Given ample empty cycles I can write a Perl script that would do that, the algorithm is not complex, but it needs to be done.
I would imagine there are lots of people who needed such information and solved this problem. Thus, I think there should be a readily available (open source / free) tool for that. | 0 |
28,820 | 08/26/2008 18:42:14 | 636 | 08/07/2008 12:32:33 | 356 | 27 | Windows Mobile - What scripting platforms are available? | We have a number of users with Windows Mobile 6 and need to apply minor changes. eg. update a registry setting. One option is push and execute an executable file using our device management software.
I'd like this to be a little more friendly for the admins who are familiar with scripting in VBScript/JScript etc. What are the options for scripting on Windows Mobile devices? | windows-mobile | scripting | sysadmin | administration | null | null | open | Windows Mobile - What scripting platforms are available?
===
We have a number of users with Windows Mobile 6 and need to apply minor changes. eg. update a registry setting. One option is push and execute an executable file using our device management software.
I'd like this to be a little more friendly for the admins who are familiar with scripting in VBScript/JScript etc. What are the options for scripting on Windows Mobile devices? | 0 |
28,823 | 08/26/2008 18:44:40 | 2,293 | 08/21/2008 14:02:56 | 105 | 7 | XML => HTML with Hpricot and Rails | I've never worked with web services and rails, and obviously this is something I need to learn.
I've chosen to use hpricot because it looks great.
Anyway, _why's been nice enough to provide the following example on the [hpricot website][1]:
#!ruby
require 'hpricot'
require 'open-uri'
# load the RedHanded home page
doc = Hpricot(open("http://redhanded.hobix.com/index.html"))
# change the CSS class on links
(doc/"span.entryPermalink").set("class", "newLinks")
# remove the sidebar
(doc/"#sidebar").remove
# print the altered HTML
puts doc
Which looks simple, elegant, and easy peasey.
Works great in Ruby, but my question is: How do I break this up in rails?
I experimented with adding this all to a single controller, but couldn't think of the best way to call it in a view.
So let's say you were parsing an XML file from a web API and printing it in nice clean HTML with Hpricot.
How would you break up the activity over the models, views, and controllers, and what would you put where?
[1]: http://code.whytheluckystiff.net/hpricot/ | hpricot | rubyonrails | ruby | ruby-on-rails | open-uri | null | open | XML => HTML with Hpricot and Rails
===
I've never worked with web services and rails, and obviously this is something I need to learn.
I've chosen to use hpricot because it looks great.
Anyway, _why's been nice enough to provide the following example on the [hpricot website][1]:
#!ruby
require 'hpricot'
require 'open-uri'
# load the RedHanded home page
doc = Hpricot(open("http://redhanded.hobix.com/index.html"))
# change the CSS class on links
(doc/"span.entryPermalink").set("class", "newLinks")
# remove the sidebar
(doc/"#sidebar").remove
# print the altered HTML
puts doc
Which looks simple, elegant, and easy peasey.
Works great in Ruby, but my question is: How do I break this up in rails?
I experimented with adding this all to a single controller, but couldn't think of the best way to call it in a view.
So let's say you were parsing an XML file from a web API and printing it in nice clean HTML with Hpricot.
How would you break up the activity over the models, views, and controllers, and what would you put where?
[1]: http://code.whytheluckystiff.net/hpricot/ | 0 |
28,826 | 08/26/2008 18:49:25 | 572 | 08/06/2008 20:56:54 | 1,698 | 155 | What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio? | My university is part of MSDNAA, so I downloaded it a while back, but I just got around to installing it. I guess part of it replaces FrontPage for web editing, and there appears to be a video editor and a vector graphics editor, but I don't think I've even scratched the surface of what it is and what it can do. Could someone enlighten me, especially since I haven't found an "Expression Studio for Dummies" type website. | expression-studio | visual-studio | integration | microsoft | null | null | open | What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio?
===
My university is part of MSDNAA, so I downloaded it a while back, but I just got around to installing it. I guess part of it replaces FrontPage for web editing, and there appears to be a video editor and a vector graphics editor, but I don't think I've even scratched the surface of what it is and what it can do. Could someone enlighten me, especially since I haven't found an "Expression Studio for Dummies" type website. | 0 |
28,832 | 08/26/2008 18:51:41 | 2,697 | 08/24/2008 15:36:34 | 21 | 4 | Java and manually executing finalize | If I call finalize on an object from my program code, will the JVM still run the method again when the garbage collector processes this object? | java | null | null | null | null | null | open | Java and manually executing finalize
===
If I call finalize on an object from my program code, will the JVM still run the method again when the garbage collector processes this object? | 0 |
28,839 | 08/26/2008 18:53:57 | 2,213 | 08/20/2008 22:31:55 | 308 | 19 | What causes Visual Studio to fail to load an assembly incorrectly? | I had been happily coding along on a decent sized solution (just over 13k LOC, 5 projects) which utilizes Linq to Sql for it's data access. All of sudden I performed a normal build and I received a sweet, sweet ambiguous message:
**Error 1 Build failed due to validation errors in C:\xxx\xxx.dbml. Open the file and resolve the issues in the Error List, then try rebuilding the project. C:\xxx\xxx.dbml**
I had not touched my data access layer for weeks and no adjustments had been made to the DBML file. I tried plenty of foolhardy tricks like re-creating the layout file, making copies and re-adding the existing files back to the project after restarting Visual Studio (in case of some file-level corruption); all to no avail.
I forgot to wear my Visual Studio Skills +5 talismans, so I began searching around and the only answer that I found which made sense was to reset my packages because Visual Studio was not loading an assembly correctly. After running "*devenv.exe /resetskippkgs*" I was, in fact, able to add the dbml file back to the DAL project and rebuild the solution.
I’m glad it’s fixed, but I would rather also gain a deeper understand from this experience. **Does anyone know how or why this happens in Visual Studio 2008?**
| visual-studio-2008 | visual-studio | linq-to-sql | errors | null | null | open | What causes Visual Studio to fail to load an assembly incorrectly?
===
I had been happily coding along on a decent sized solution (just over 13k LOC, 5 projects) which utilizes Linq to Sql for it's data access. All of sudden I performed a normal build and I received a sweet, sweet ambiguous message:
**Error 1 Build failed due to validation errors in C:\xxx\xxx.dbml. Open the file and resolve the issues in the Error List, then try rebuilding the project. C:\xxx\xxx.dbml**
I had not touched my data access layer for weeks and no adjustments had been made to the DBML file. I tried plenty of foolhardy tricks like re-creating the layout file, making copies and re-adding the existing files back to the project after restarting Visual Studio (in case of some file-level corruption); all to no avail.
I forgot to wear my Visual Studio Skills +5 talismans, so I began searching around and the only answer that I found which made sense was to reset my packages because Visual Studio was not loading an assembly correctly. After running "*devenv.exe /resetskippkgs*" I was, in fact, able to add the dbml file back to the DAL project and rebuild the solution.
I’m glad it’s fixed, but I would rather also gain a deeper understand from this experience. **Does anyone know how or why this happens in Visual Studio 2008?**
| 0 |
28,840 | 08/26/2008 18:54:01 | 2,839 | 08/25/2008 13:34:44 | 1 | 2 | SCRUM - How to get better input from the functional/commercial team | We are a small team of 3 developers (2 experienced but new to this particular business sector) developing a functionally complex product. We're using SCRUM and have a demo at the end of each sprint. Its clear that the functional team have plenty of ideas but these are not well communicated to the development team and the demo poses more questions than answers.
Have you any recommendations for improving the the quality of input from the functional people?
TIA | methodology | scrum | requirements | null | null | null | open | SCRUM - How to get better input from the functional/commercial team
===
We are a small team of 3 developers (2 experienced but new to this particular business sector) developing a functionally complex product. We're using SCRUM and have a demo at the end of each sprint. Its clear that the functional team have plenty of ideas but these are not well communicated to the development team and the demo poses more questions than answers.
Have you any recommendations for improving the the quality of input from the functional people?
TIA | 0 |
28,843 | 08/26/2008 18:54:48 | 3,022 | 08/26/2008 12:28:45 | 31 | 2 | Can Slickedit automatically update it's tag files? | I prefer SlickEdit for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the code base that happen after project creation.
This problem is especially noticeable when working on large shared code bases where I must check out files that have been modified by other users. | slickedit | ide | null | null | null | null | open | Can Slickedit automatically update it's tag files?
===
I prefer SlickEdit for my IDE but the only way I can get it to update the tag files to incorporate code changes is to recreate the project and/or run start a re-tag manually. Is there a way to setup Slick Edit so that it automatically incorporates changes in the code base that happen after project creation.
This problem is especially noticeable when working on large shared code bases where I must check out files that have been modified by other users. | 0 |
28,858 | 08/26/2008 19:00:22 | 3,055 | 08/26/2008 13:54:44 | 36 | 10 | Coolest C# LINQ/Lambdas trick you've ever pulled? | Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...
> What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written?
Bonus if it has went into production too! | c# | linq | lambda | functional-programming | null | null | open | Coolest C# LINQ/Lambdas trick you've ever pulled?
===
Saw a post about hidden features in C# but not a lot of people have written linq/lambdas example so... I wonder...
> What's the coolest (as in the most elegant) use of the C# LINQ and/or Lambdas/anonymous delegates you have ever saw/written?
Bonus if it has went into production too! | 0 |
28,862 | 08/26/2008 19:03:01 | 290 | 08/04/2008 12:57:50 | 586 | 57 | How do you do lightweight CMMI? | In my organization, people believe lightweight CMMI is a myth, despite [evidence to the contrary][1]. What are your experiences with lightweight CMMI? Have you done it and is it working well for you?
[1]: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1609821 | process | software-engineering | methodology | sqa | cmmi | null | open | How do you do lightweight CMMI?
===
In my organization, people believe lightweight CMMI is a myth, despite [evidence to the contrary][1]. What are your experiences with lightweight CMMI? Have you done it and is it working well for you?
[1]: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1609821 | 0 |
28,872 | 08/26/2008 19:09:33 | 1,365 | 08/14/2008 18:28:56 | 76 | 7 | Free Windows based .EMF editor? | Does anybody have any first hand experience using a free windows based graphics editor that can handle [EMF][1] files?
[1]: http://en.wikipedia.org/wiki/Enhanced_Metafile | emf | null | null | null | null | null | open | Free Windows based .EMF editor?
===
Does anybody have any first hand experience using a free windows based graphics editor that can handle [EMF][1] files?
[1]: http://en.wikipedia.org/wiki/Enhanced_Metafile | 0 |
28,877 | 08/26/2008 19:13:14 | 1,327 | 08/14/2008 14:37:22 | 183 | 15 | Why does SQL Server work faster when you index a table after filling it? | I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling the table. (The index is an integer in a single column, the table being indexed is just two columns each a single integer.)
This seems a little off to me, but then I don't have the firmest understanding of what goes on under the hood. Does anyone have an answer for this? | sql-server | tsql | null | null | null | null | open | Why does SQL Server work faster when you index a table after filling it?
===
I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling the table. (The index is an integer in a single column, the table being indexed is just two columns each a single integer.)
This seems a little off to me, but then I don't have the firmest understanding of what goes on under the hood. Does anyone have an answer for this? | 0 |
28,878 | 08/26/2008 19:14:01 | 2,601 | 08/23/2008 13:45:18 | 1 | 1 | PHP - Determine Parent Node Of DOMElement | I'm translating my C# code for YouTube video comments into PHP. In order to properly nest comment replies I need to re-arrange XML nodes. In PHP I'm using DOMDocument and DOMXPath which closely corresponds to C# XmlDocument. I've gotten pretty far in my translation but now I'm stuck on getting the parent node of a DOMElement. A DOMElement does not have a parent_node() property, only a DOMNode provides that property.
After determining that a comment is a reply to a previous comment based in the string "in-reply-to" in a link element, I need to get its parent node in order to nest it beneath the comment it is in reply to:
// Get the parent entry node of this link element
$importnode = $objReplyXML->importNode($link->parent_node(), true); | php | xml | dom | null | null | null | open | PHP - Determine Parent Node Of DOMElement
===
I'm translating my C# code for YouTube video comments into PHP. In order to properly nest comment replies I need to re-arrange XML nodes. In PHP I'm using DOMDocument and DOMXPath which closely corresponds to C# XmlDocument. I've gotten pretty far in my translation but now I'm stuck on getting the parent node of a DOMElement. A DOMElement does not have a parent_node() property, only a DOMNode provides that property.
After determining that a comment is a reply to a previous comment based in the string "in-reply-to" in a link element, I need to get its parent node in order to nest it beneath the comment it is in reply to:
// Get the parent entry node of this link element
$importnode = $objReplyXML->importNode($link->parent_node(), true); | 0 |
28,881 | 08/26/2008 19:15:47 | 1,438 | 08/15/2008 15:44:20 | 369 | 22 | Why doesn't **sort** sort the same on every machine? | Using the same sort command with the same input produces different results on different machines. How do I fix that? | unix | bash | ksh | sorting | null | null | open | Why doesn't **sort** sort the same on every machine?
===
Using the same sort command with the same input produces different results on different machines. How do I fix that? | 0 |
28,894 | 08/26/2008 19:20:09 | 3,059 | 08/26/2008 13:59:08 | 1 | 1 | .NET Compiler -- DEBUG vs. RELEASE | For years I have been using the DEBUG compiler constant in VB.NET to write messages to the console. I've also been using System.Diagnostics.Debug.Write in similar fashion. It was always my understanding that when RELEASE was used as the build option, that all of these statements were left out by the compiler, freeing your production code of the overhead of debug statements. Recently when working with Silverlight 2 Beta 2, I noticed that Visual Studio actually attached to a RELEASE build that I was running off of a public website and displayed DEBUG statements which I assumed weren't even compiled! Now, my first inclination is to assume that that there is something wrong with my environment, but I also want to ask anyone with deep knowledge on System.Diagnostics.Debug and the DEBUG build option in general what I may be misunderstanding here. | .net | compiler | debugging | null | null | null | open | .NET Compiler -- DEBUG vs. RELEASE
===
For years I have been using the DEBUG compiler constant in VB.NET to write messages to the console. I've also been using System.Diagnostics.Debug.Write in similar fashion. It was always my understanding that when RELEASE was used as the build option, that all of these statements were left out by the compiler, freeing your production code of the overhead of debug statements. Recently when working with Silverlight 2 Beta 2, I noticed that Visual Studio actually attached to a RELEASE build that I was running off of a public website and displayed DEBUG statements which I assumed weren't even compiled! Now, my first inclination is to assume that that there is something wrong with my environment, but I also want to ask anyone with deep knowledge on System.Diagnostics.Debug and the DEBUG build option in general what I may be misunderstanding here. | 0 |
28,896 | 08/26/2008 19:20:35 | 1,782 | 08/18/2008 14:30:58 | 941 | 65 | Datatypes for physics | I'm currently designing a program that will involve some physics (nothing too fancy, a few balls crashing to each other)
What's the most exact datatype I can use to represent position (without a feeling of discrete jumps) in c#?
Also, what's the smallest ammount of time I can get between t and t+1? One tick? | physics | c# | types | null | null | null | open | Datatypes for physics
===
I'm currently designing a program that will involve some physics (nothing too fancy, a few balls crashing to each other)
What's the most exact datatype I can use to represent position (without a feeling of discrete jumps) in c#?
Also, what's the smallest ammount of time I can get between t and t+1? One tick? | 0 |
28,922 | 08/26/2008 19:32:20 | 2,486 | 08/22/2008 13:39:26 | 1 | 1 | SQL DB Results not what expected | I have a database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:
WHERE database.foobar = NULL
and it does not return anything. However, I know that there is at least one result because I created an instance in the database where 'foobar' is equal to null. If I take out the where statement it shows data so I know it is not the rest of the query
can anyone help me out | sql | server | null | null | null | null | open | SQL DB Results not what expected
===
I have a database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:
WHERE database.foobar = NULL
and it does not return anything. However, I know that there is at least one result because I created an instance in the database where 'foobar' is equal to null. If I take out the where statement it shows data so I know it is not the rest of the query
can anyone help me out | 0 |
28,932 | 08/26/2008 19:36:20 | 1,363 | 08/14/2008 18:24:19 | 104 | 3 | Best javascript compressor | What is the the best Javascript compressor available? I'm looking for a tool that:
- Easy to use
- High compression rate
- Reliable end results (doesn't mess up the code) | javascript | null | null | null | null | 06/09/2012 16:55:42 | not constructive | Best javascript compressor
===
What is the the best Javascript compressor available? I'm looking for a tool that:
- Easy to use
- High compression rate
- Reliable end results (doesn't mess up the code) | 4 |
28,941 | 08/26/2008 19:42:47 | 750 | 08/08/2008 14:24:17 | 249 | 6 | Best architecture for handling file system changes? | Here is the scenario:
I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this:
GUID.dat where GUID == xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(the internal contents aren't relevant, but it's just text data)
My app will be a form that has one single text box that shows all the files that are being added and deleted in real time. Every time a new file comes in I have to update the textbox with this file, BUT I must first make sure that this semi-unique GUID is really unique, if it is, update the textbox with this new file.
When a file is removed from that directory, make sure it exists, then delete it, update textbox accordingly.
The problem is that I've been using the .NET filewatcher and it seems that there is an internal buffer that gets blown up every time the (buffersize + 1)-th file comes in. I also tried to keep an internal List in my app, and just add every single file that comes in, but do the unique-GUID check later, but no dice.
Anyone have any advice?
| .net | filewatcher | architecture | concurrency | null | null | open | Best architecture for handling file system changes?
===
Here is the scenario:
I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this:
GUID.dat where GUID == xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(the internal contents aren't relevant, but it's just text data)
My app will be a form that has one single text box that shows all the files that are being added and deleted in real time. Every time a new file comes in I have to update the textbox with this file, BUT I must first make sure that this semi-unique GUID is really unique, if it is, update the textbox with this new file.
When a file is removed from that directory, make sure it exists, then delete it, update textbox accordingly.
The problem is that I've been using the .NET filewatcher and it seems that there is an internal buffer that gets blown up every time the (buffersize + 1)-th file comes in. I also tried to keep an internal List in my app, and just add every single file that comes in, but do the unique-GUID check later, but no dice.
Anyone have any advice?
| 0 |
28,946 | 08/26/2008 19:45:49 | 64 | 08/01/2008 14:27:12 | 108 | 12 | Expanding Virtual Disk | Hey everyone, I'm using Virtual PC and working with a virtual hard disk (*.vhd) that is only sized at 8.2 GB. I would like to double the size to something like 16-20GB. I see options for compacting the VHD but nothing to expand it. It's set to "dynamically expand" but I'm installing some software and it doesn't seem to resize itself to a larger space.
Thanks much. | virtual-pc | vhd | null | null | null | null | open | Expanding Virtual Disk
===
Hey everyone, I'm using Virtual PC and working with a virtual hard disk (*.vhd) that is only sized at 8.2 GB. I would like to double the size to something like 16-20GB. I see options for compacting the VHD but nothing to expand it. It's set to "dynamically expand" but I'm installing some software and it doesn't seem to resize itself to a larger space.
Thanks much. | 0 |
28,949 | 08/26/2008 19:46:46 | 572 | 08/06/2008 20:56:54 | 1,725 | 158 | Why do you not explicitly call finalize() or start the garbage collector? | After reading [this question][1], I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the reasoning for this down to a few sentences? I'm sure I could read a technical report from Sun on this matter, but I think a nice, short, simple answer would satisfy my curiosity.
[1]: http://stackoverflow.com/questions/28832/java-and-manually-executing-finalize | java | garbage-collection | null | null | null | null | open | Why do you not explicitly call finalize() or start the garbage collector?
===
After reading [this question][1], I was reminded of when I was taught Java and told never to call finalize() or run the garbage collector because "it's a big black box that you never need to worry about". Can someone boil the reasoning for this down to a few sentences? I'm sure I could read a technical report from Sun on this matter, but I think a nice, short, simple answer would satisfy my curiosity.
[1]: http://stackoverflow.com/questions/28832/java-and-manually-executing-finalize | 0 |
28,950 | 08/26/2008 19:46:56 | 636 | 08/07/2008 12:32:33 | 366 | 29 | Guide to choosing between REST vs SOAP services? | Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other. | architecture | rest | soap | null | null | null | open | Guide to choosing between REST vs SOAP services?
===
Does anyone have links to documentation or guides on making the decision between REST vs. SOAP? I understand both of these but am looking for some references on the key decision points, eg, security, which may make you lean towards one or the other. | 0 |
28,952 | 08/26/2008 19:48:09 | 1,690 | 08/18/2008 01:39:04 | 88 | 11 | CPU utilization by database? | *I've always thought the answer to this was "no", but let's give CrackOverflow a shot...*
Is it possible to get a breakdown of CPU utilization **by database**? I'm ideally looking for a task manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like taskmgr) or each SPID (like spwho2k5), I want to view the total CPU utilization of each database. Assume a single SQL instance.
I realize that tools could be written to collect this data and report on it, but I'm wondering if there is any tool that lets me see a live view of which databases are contributing most to the sqlservr.exe CPU load.
Thanks in advance. | mssql | sql-server | null | null | null | null | open | CPU utilization by database?
===
*I've always thought the answer to this was "no", but let's give CrackOverflow a shot...*
Is it possible to get a breakdown of CPU utilization **by database**? I'm ideally looking for a task manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like taskmgr) or each SPID (like spwho2k5), I want to view the total CPU utilization of each database. Assume a single SQL instance.
I realize that tools could be written to collect this data and report on it, but I'm wondering if there is any tool that lets me see a live view of which databases are contributing most to the sqlservr.exe CPU load.
Thanks in advance. | 0 |
28,961 | 08/26/2008 19:49:54 | 3,117 | 08/26/2008 18:40:00 | 1 | 0 | What's the best way to use web services in python? | I have a medium sized application that runs as a .net web-service which I do not control,
and I want to create a loose pythonic API above it to enable easy scripting.
I wanted to know what is the best/most practical solution for using web-services in python. | python | web-services | null | null | null | null | open | What's the best way to use web services in python?
===
I have a medium sized application that runs as a .net web-service which I do not control,
and I want to create a loose pythonic API above it to enable easy scripting.
I wanted to know what is the best/most practical solution for using web-services in python. | 0 |
28,964 | 08/26/2008 19:50:49 | 470 | 08/06/2008 02:58:55 | 18 | 7 | How to bring a new hire up to speed on an existing project? | My boss hired a new dev right out of CompSci onto a project with a fair amount of technical debt. It will be my task to get this guy up to speed and making a decent contribution ASAP. Any suggestions on how best to do this? Any first hand experience on how precisely not to do it?
My instincts are to do some code reviews on code written by the dev he is replacing, pair programming on new code I'm writing, or working with him on writing unit tests for the code he is to inherit. | unit-testing | hiring | training | codereview | pair-programming | null | open | How to bring a new hire up to speed on an existing project?
===
My boss hired a new dev right out of CompSci onto a project with a fair amount of technical debt. It will be my task to get this guy up to speed and making a decent contribution ASAP. Any suggestions on how best to do this? Any first hand experience on how precisely not to do it?
My instincts are to do some code reviews on code written by the dev he is replacing, pair programming on new code I'm writing, or working with him on writing unit tests for the code he is to inherit. | 0 |
28,965 | 08/26/2008 19:51:32 | 116 | 08/02/2008 05:51:57 | 4,039 | 206 | Checklist for Web Site Programming Vunerabilities | Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.
- What categories of vunerabilities?
- crashing site
- breaking into server
- breaking into other people's logins
- spam
- handpuppeting, meatpuppeting
- etc...
- What kind of defensive programming techniques?
- etc...
Help me flesh out this list... thanks! | security | defensive-programming | null | null | null | null | open | Checklist for Web Site Programming Vunerabilities
===
Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.
- What categories of vunerabilities?
- crashing site
- breaking into server
- breaking into other people's logins
- spam
- handpuppeting, meatpuppeting
- etc...
- What kind of defensive programming techniques?
- etc...
Help me flesh out this list... thanks! | 0 |
28,975 | 08/26/2008 19:55:29 | 2,745 | 08/24/2008 20:58:00 | 1 | 1 | Anyone using CouchDB? | I've followed the [CouchDB](http://incubator.apache.org/couchdb/index.html) project with interest over the last couple of years, and see it is now an Apache Incubator project. Prior to that, the CouchDB web site was full of *do not use for production code* type disclaimers, so I'd done no more than keep an eye on it. I'd be interested to know your experiences if you've been using CouchDB either for a live project, or a technology pilot. | database | server | technologies | null | null | null | open | Anyone using CouchDB?
===
I've followed the [CouchDB](http://incubator.apache.org/couchdb/index.html) project with interest over the last couple of years, and see it is now an Apache Incubator project. Prior to that, the CouchDB web site was full of *do not use for production code* type disclaimers, so I'd done no more than keep an eye on it. I'd be interested to know your experiences if you've been using CouchDB either for a live project, or a technology pilot. | 0 |
28,982 | 08/26/2008 19:58:57 | 2,745 | 08/24/2008 20:58:00 | 1 | 1 | Simple explanation of MapReduce | Related to my [CouchDB](http://stackoverflow.com/questions/28975/anyone-using-couchdb) question....
Can anyone explain MapReduce in terms a numbnuts could understand? | framework | null | null | null | null | null | open | Simple explanation of MapReduce
===
Related to my [CouchDB](http://stackoverflow.com/questions/28975/anyone-using-couchdb) question....
Can anyone explain MapReduce in terms a numbnuts could understand? | 0 |
28,999 | 08/26/2008 20:08:27 | 757 | 08/08/2008 15:38:57 | 11 | 4 | Favorite IDE feature | What is your favorite feature of your IDE/code editor? What makes you like it so much? Is there a feature that it doesn't have that would be a strong enough pull to cause you to switch IDE's (code editors)? | ide | null | null | null | null | null | open | Favorite IDE feature
===
What is your favorite feature of your IDE/code editor? What makes you like it so much? Is there a feature that it doesn't have that would be a strong enough pull to cause you to switch IDE's (code editors)? | 0 |
29,004 | 08/26/2008 20:09:40 | 261 | 08/04/2008 08:51:21 | 1 | 0 | Parsing XML using unix terminal | Sometimes I need to quickly extract some arbitrary data from XML files to put into a CSV format. What's your best practices for doing this in the Unix terminal? I would love some code examples, so for instance how can I get the following problem solved?
Example XML input:
<root>
<myel name="Foo" />
<myel name="Bar" />
</root>
My desired CSV output:
Foo,
Bar, | xml | unix | shell | parse | csv | null | open | Parsing XML using unix terminal
===
Sometimes I need to quickly extract some arbitrary data from XML files to put into a CSV format. What's your best practices for doing this in the Unix terminal? I would love some code examples, so for instance how can I get the following problem solved?
Example XML input:
<root>
<myel name="Foo" />
<myel name="Bar" />
</root>
My desired CSV output:
Foo,
Bar, | 0 |
29,011 | 08/26/2008 20:13:46 | 1,190 | 08/13/2008 12:15:38 | 823 | 73 | Is there a way to combine named scopes into a new named scope? | I have
class Foo < ActiveRecord::Base
named_scope :a, lambda { |a| :conditions => { :a => a } }
named_scope :b, lambda { |b| :conditions => { :b => b } }
end
I'd like
class Foo < ActiveRecord::Base
named_scope :ab, lambda { |a,b| :conditions => { :a => a, :b => b } }
end
but I'd prefer to do it in a DRY fashion. I can get the same effect by using
Foo.a(something).b(something_else)
but it's not particularly lovely. | ruby-on-rails | named-scope | dry | null | null | null | open | Is there a way to combine named scopes into a new named scope?
===
I have
class Foo < ActiveRecord::Base
named_scope :a, lambda { |a| :conditions => { :a => a } }
named_scope :b, lambda { |b| :conditions => { :b => b } }
end
I'd like
class Foo < ActiveRecord::Base
named_scope :ab, lambda { |a,b| :conditions => { :a => a, :b => b } }
end
but I'd prefer to do it in a DRY fashion. I can get the same effect by using
Foo.a(something).b(something_else)
but it's not particularly lovely. | 0 |
29,030 | 08/26/2008 21:47:22 | 404 | 08/05/2008 13:34:59 | 582 | 38 | SharePoint SPContext.List in a custom application page | I have a custom SharePoint application page deployed to the _layouts folder. It's a custom "new form" for a custom content type. During my interactions with this page, I will need to add an item to my list. When the page first loads, I can use SPContext.Current.List to see the current list I'm working with. But after I fill in my form and the form posts back onto itself and IsPostBack is true, then SPContext.Current.List is null so I can't find the list that I need to add my stuff into.
Is this expected?
How should I retain some info about my context list across the postback? Should I just populate some asp:hidden control with my list's guid and then just pull it back from that on the postback? That seems safe, I guess.
FWIW, this is the MOSS 2007 Standard version. | sharepoint | applicationpage | spcontext | null | null | null | open | SharePoint SPContext.List in a custom application page
===
I have a custom SharePoint application page deployed to the _layouts folder. It's a custom "new form" for a custom content type. During my interactions with this page, I will need to add an item to my list. When the page first loads, I can use SPContext.Current.List to see the current list I'm working with. But after I fill in my form and the form posts back onto itself and IsPostBack is true, then SPContext.Current.List is null so I can't find the list that I need to add my stuff into.
Is this expected?
How should I retain some info about my context list across the postback? Should I just populate some asp:hidden control with my list's guid and then just pull it back from that on the postback? That seems safe, I guess.
FWIW, this is the MOSS 2007 Standard version. | 0 |
29,040 | 08/26/2008 21:55:09 | 2,385 | 08/22/2008 00:18:38 | 28 | 5 | How do I avoid LazyLoad in Linq in some field of joins | I have one table "orders" with a foreing key "ProductID".
I want to show the orders in a grid with the **product name**, without **LazyLoad** for better performance, but I if use **DataLoadOptions** it retrieves **all** Product fields, which seams like a **overkill**.
Is there a way to retrieve **only** the Product name in the first query?
Can I set some attribute in the DBML?
| .net | sql | performance | linq | null | null | open | How do I avoid LazyLoad in Linq in some field of joins
===
I have one table "orders" with a foreing key "ProductID".
I want to show the orders in a grid with the **product name**, without **LazyLoad** for better performance, but I if use **DataLoadOptions** it retrieves **all** Product fields, which seams like a **overkill**.
Is there a way to retrieve **only** the Product name in the first query?
Can I set some attribute in the DBML?
| 0 |
29,044 | 08/26/2008 21:57:21 | 2,820 | 08/25/2008 11:37:16 | 3 | 2 | Good Free Alternative To MS Access | I'd like to develop a lightweight desktop DB app that could be done fairly easily with MS Access but I'd like to be able to distribute it to others and I don't want to pay for a runtime license. I've looked at Base in OpenOffice and it just doesn't seem terribly stable. Installing MySQL and writing custom DB code in C++ or Python or whatever seems like a rather heavy-handed solution. Is there some low cost or free platform alternative to MS Access?
| ms-access | db | desktop | lightweight | null | null | open | Good Free Alternative To MS Access
===
I'd like to develop a lightweight desktop DB app that could be done fairly easily with MS Access but I'd like to be able to distribute it to others and I don't want to pay for a runtime license. I've looked at Base in OpenOffice and it just doesn't seem terribly stable. Installing MySQL and writing custom DB code in C++ or Python or whatever seems like a rather heavy-handed solution. Is there some low cost or free platform alternative to MS Access?
| 0 |
29,050 | 08/26/2008 22:00:16 | 914 | 08/10/2008 10:32:48 | 300 | 22 | What are good resources for taking the step up from entry level MySQL? | I've sort of slipped into the area of web development by chance, and because of this I lack training in the handling of databases (mostly MySQL in my case). I've come to know the basic stuff (SELECT, WHERE and even JOIN) but I'm often frustrated when I need to do more advanced queries.
The problem for me is not finding resources describing HAVING, it's figuring out that HAVING is what I'm looking for. I can do most of the things I need to do using "regular" code once I've retrieved the data, but that defeats the whole point.
**Where would be a good place to start to move from the basics into slightly more advanced stuff?**
I'd prefer online resources but books are good too. | mysql | books | null | null | null | null | open | What are good resources for taking the step up from entry level MySQL?
===
I've sort of slipped into the area of web development by chance, and because of this I lack training in the handling of databases (mostly MySQL in my case). I've come to know the basic stuff (SELECT, WHERE and even JOIN) but I'm often frustrated when I need to do more advanced queries.
The problem for me is not finding resources describing HAVING, it's figuring out that HAVING is what I'm looking for. I can do most of the things I need to do using "regular" code once I've retrieved the data, but that defeats the whole point.
**Where would be a good place to start to move from the basics into slightly more advanced stuff?**
I'd prefer online resources but books are good too. | 0 |
29,053 | 08/26/2008 22:00:38 | 384 | 08/05/2008 11:03:36 | 347 | 21 | Javascript Browser Quirks - array.Length | Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unusual Array Lengths!</title>
<script type="text/javascript">
var arrayList = new Array();
arrayList = [1, 2, 3, 4, 5, ];
alert(arrayList.length);
</script>
</head>
<body>
</body>
</html>
Notice the extra comma in the array declaration.
The code above gives different outputs for various browsers:
Safari: 5
Firefox: 5
IE: 6
The extra comma in the array is being ignored by Safari and FF while IE treats it as another object in the array.
On some search, I have found mixed opinions about which answer is correct. Most people say that IE is correct but then Safari is also doing the same thing as Firefox. I haven't tested this on other browsers like Opera but I assume that there are discrepancies.
My questions:
1. Which one of these is correct?
2. Are there any other such Javascript browser quirks that I should be wary of?
3. How do I avoid errors such as these?
| javascript | null | null | null | null | null | open | Javascript Browser Quirks - array.Length
===
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unusual Array Lengths!</title>
<script type="text/javascript">
var arrayList = new Array();
arrayList = [1, 2, 3, 4, 5, ];
alert(arrayList.length);
</script>
</head>
<body>
</body>
</html>
Notice the extra comma in the array declaration.
The code above gives different outputs for various browsers:
Safari: 5
Firefox: 5
IE: 6
The extra comma in the array is being ignored by Safari and FF while IE treats it as another object in the array.
On some search, I have found mixed opinions about which answer is correct. Most people say that IE is correct but then Safari is also doing the same thing as Firefox. I haven't tested this on other browsers like Opera but I assume that there are discrepancies.
My questions:
1. Which one of these is correct?
2. Are there any other such Javascript browser quirks that I should be wary of?
3. How do I avoid errors such as these?
| 0 |
29,067 | 08/26/2008 22:10:38 | 1,965 | 08/19/2008 15:51:08 | 1,454 | 91 | Creating a UserControl Programmaticly within a repeater? | I have a a repeater that is bound to some data.
I bind to the ItemDataBound event, and I am attempting to programmaticly create a UserControl:
In a nutshell:
void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
CCTask task = (CCTask)e.Item.DataItem;
if (task is ExecTask)
{
ExecTaskControl foo = new ExecTaskControl();
e.Item.Controls.Add(foo);
}
}
The problem is that while the binding works, the user control is not rendered to the main page.
Any ideas?
| asp.net | webforms | usercontrols | null | null | null | open | Creating a UserControl Programmaticly within a repeater?
===
I have a a repeater that is bound to some data.
I bind to the ItemDataBound event, and I am attempting to programmaticly create a UserControl:
In a nutshell:
void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
CCTask task = (CCTask)e.Item.DataItem;
if (task is ExecTask)
{
ExecTaskControl foo = new ExecTaskControl();
e.Item.Controls.Add(foo);
}
}
The problem is that while the binding works, the user control is not rendered to the main page.
Any ideas?
| 0 |
29,088 | 08/26/2008 22:23:25 | 1,463 | 08/15/2008 17:26:44 | 227 | 17 | What is the difference between a group and match in .NET's RegEx? | What is the difference between a group and match in .NET's RegEx? | .net | regex | null | null | null | null | open | What is the difference between a group and match in .NET's RegEx?
===
What is the difference between a group and match in .NET's RegEx? | 0 |
29,099 | 08/26/2008 22:28:19 | 3,121 | 08/26/2008 18:58:01 | 1 | 1 | What makes a language Object-Oriented? | Since debate without meaningful terms is [meaningless](http://stackoverflow.com/questions/24270/whats-the-point-of-oop), I figured I would point at the elephant in the room and ask: What exactly makes a language "object-oriented"? I'm not looking for a textbook answer here, but one based on your experiences with OO languages that work well in your domain, whatever it may be.
A related question that might help to answer first is: What is the archetype of object-oriented languages and why? | oop | language-agnostic | programming-languages | null | null | null | open | What makes a language Object-Oriented?
===
Since debate without meaningful terms is [meaningless](http://stackoverflow.com/questions/24270/whats-the-point-of-oop), I figured I would point at the elephant in the room and ask: What exactly makes a language "object-oriented"? I'm not looking for a textbook answer here, but one based on your experiences with OO languages that work well in your domain, whatever it may be.
A related question that might help to answer first is: What is the archetype of object-oriented languages and why? | 0 |
29,100 | 08/26/2008 22:28:22 | 290 | 08/04/2008 12:57:50 | 582 | 52 | How are you generating tests from specifications? | I came across a printed article by Bertrand Meyer where he states that tests can be generated from specifications. My development team does nothing like this, but it sounds like a good technique to consider. How are you generating tests from specifications? How would you describe the success your having in discovering program faults via this method? | testing | automated-tests | specifications | faults | null | null | open | How are you generating tests from specifications?
===
I came across a printed article by Bertrand Meyer where he states that tests can be generated from specifications. My development team does nothing like this, but it sounds like a good technique to consider. How are you generating tests from specifications? How would you describe the success your having in discovering program faults via this method? | 0 |
29,104 | 08/26/2008 22:31:13 | 1,375 | 08/14/2008 21:41:25 | 103 | 4 | Requirements Gathering | How do you go about the requirements gathering phase? Does anyone have a good set of guidelines or tips to follow? What are some good questions to ask the stakeholders?
I am currently working on a new project and there are a lot of unknowns. I am in the process of coming up with a list of questions to ask the stakeholders. However I cant help but to feel that I am missing something or forgetting to ask a critical question. | requirements | design-patterns | software-engineering | null | null | null | open | Requirements Gathering
===
How do you go about the requirements gathering phase? Does anyone have a good set of guidelines or tips to follow? What are some good questions to ask the stakeholders?
I am currently working on a new project and there are a lot of unknowns. I am in the process of coming up with a list of questions to ask the stakeholders. However I cant help but to feel that I am missing something or forgetting to ask a critical question. | 0 |
29,107 | 08/26/2008 22:32:51 | 708 | 08/08/2008 06:10:02 | 371 | 12 | Generic IBindingListView Implementations | Can anyone suggest a good implementation of a generic collection class that implements the IBindingListView & IBindingList interfaces?
I see my current options as:<br />
- Using a class that someone else has written and tested
- Inheriting from BindingList<T>, and implementing the IBindingListView interfaces
- Write a custom collection from scratch, implementing IBindingListView and IBindingList.
Obviously, the first option is my preferred choice.
Thanking you. | .net | data-binding | null | null | null | null | open | Generic IBindingListView Implementations
===
Can anyone suggest a good implementation of a generic collection class that implements the IBindingListView & IBindingList interfaces?
I see my current options as:<br />
- Using a class that someone else has written and tested
- Inheriting from BindingList<T>, and implementing the IBindingListView interfaces
- Write a custom collection from scratch, implementing IBindingListView and IBindingList.
Obviously, the first option is my preferred choice.
Thanking you. | 0 |
29,126 | 08/26/2008 22:42:08 | 3,111 | 08/26/2008 17:47:14 | 1 | 2 | PHP frameworks for simplifying CRUD | Based on experience which PHP framework makes implementing CRUD operations the easiest so that time can be spent on the more 'interesting' parts of the application? | php | frameworks | null | null | null | null | open | PHP frameworks for simplifying CRUD
===
Based on experience which PHP framework makes implementing CRUD operations the easiest so that time can be spent on the more 'interesting' parts of the application? | 0 |
29,141 | 08/26/2008 22:55:37 | 3,135 | 08/26/2008 22:55:37 | 1 | 0 | Using Interop with C#, Excel Save changing original. How to negate this? | The problem: Loading an excel spreadsheet template. Using the Save command with a different filename and then quitting the interop object. This ends up saving the original template file. Not the result that is liked.
public void saveAndExit(string filename)
{
excelApplication.Save(filename);
excelApplication.Quit();
}
Original file opened is c:\testing\template.xls
The file name that is passed in is c:\testing\7777 (date).xls
Does anyone have an answer? | c# | excel | null | null | null | null | open | Using Interop with C#, Excel Save changing original. How to negate this?
===
The problem: Loading an excel spreadsheet template. Using the Save command with a different filename and then quitting the interop object. This ends up saving the original template file. Not the result that is liked.
public void saveAndExit(string filename)
{
excelApplication.Save(filename);
excelApplication.Quit();
}
Original file opened is c:\testing\template.xls
The file name that is passed in is c:\testing\7777 (date).xls
Does anyone have an answer? | 0 |
29,142 | 08/26/2008 22:55:58 | 171 | 08/02/2008 23:47:08 | 11 | 4 | Getting ssh to execute a command in the background on target machine | This is a follow-on question to the [How do you use ssh in a shell script?][1] question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return? When I try to just include the ampersand (&) at the end of the command it just hangs. The exact form of the command looks like this:
ssh user@target "cd /some/directory; program-to-execute &"
Any ideas? One thing to note is that logins to the the target machine always produce a text banner and I have ssh keys set up so no password is required.
[1]: http://stackoverflow.com/questions/29061/how-do-you-use-ssh-in-a-shell-script | bash | ssh | background | csh | null | null | open | Getting ssh to execute a command in the background on target machine
===
This is a follow-on question to the [How do you use ssh in a shell script?][1] question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return? When I try to just include the ampersand (&) at the end of the command it just hangs. The exact form of the command looks like this:
ssh user@target "cd /some/directory; program-to-execute &"
Any ideas? One thing to note is that logins to the the target machine always produce a text banner and I have ssh keys set up so no password is required.
[1]: http://stackoverflow.com/questions/29061/how-do-you-use-ssh-in-a-shell-script | 0 |
29,144 | 08/26/2008 22:58:43 | 2,975 | 08/26/2008 09:40:04 | 36 | 8 | What is the more efficient version control methodology - checkout or merge (ie Perforce vs Subversion) | I've always used Subversion or CVS for version control, which use a 'merge' methodology. One of my friends raves about Perforce and how great it is with its change lists and check-out methodology.
While I'm sure a lot of it comes down to experience & personal preference, I was wondering if any research had been done into which method of version control is more efficient to work in? | svn | perforce | version-control | null | null | null | open | What is the more efficient version control methodology - checkout or merge (ie Perforce vs Subversion)
===
I've always used Subversion or CVS for version control, which use a 'merge' methodology. One of my friends raves about Perforce and how great it is with its change lists and check-out methodology.
While I'm sure a lot of it comes down to experience & personal preference, I was wondering if any research had been done into which method of version control is more efficient to work in? | 0 |
29,145 | 08/26/2008 22:58:58 | 2,841 | 08/25/2008 13:38:48 | 21 | 2 | Generating database tables from object definitions | I know that there are a few (automatic) ways to create a data access layer to manipulate an existing database (LINQ to SQL, Hibernate, etc...). But I'm getting kind of tired (and I believe that there should be a better way of doing things) of stuff like:
1. Creating/altering tables on Vision
2. Using Visio's "Update Database" to create/alter the database
3. Importing the tables into a "LINQ to SQL classes" object
4. Changing the code accordingly
5. Compiling
What about a way to generate the database schema from the objects/entities definition? I can't seem to find good references for tools like this (and I would expect some kind of built-in support in at least some frameworks).
It would be perfect if I could just:
1. Change the object definition
2. Change the code that manipulates the object
3. Compile (the database changes are done auto-magically) | database | orm | code-generation | null | null | null | open | Generating database tables from object definitions
===
I know that there are a few (automatic) ways to create a data access layer to manipulate an existing database (LINQ to SQL, Hibernate, etc...). But I'm getting kind of tired (and I believe that there should be a better way of doing things) of stuff like:
1. Creating/altering tables on Vision
2. Using Visio's "Update Database" to create/alter the database
3. Importing the tables into a "LINQ to SQL classes" object
4. Changing the code accordingly
5. Compiling
What about a way to generate the database schema from the objects/entities definition? I can't seem to find good references for tools like this (and I would expect some kind of built-in support in at least some frameworks).
It would be perfect if I could just:
1. Change the object definition
2. Change the code that manipulates the object
3. Compile (the database changes are done auto-magically) | 0 |
29,155 | 08/26/2008 23:06:31 | 2,993 | 08/26/2008 10:45:59 | 104 | 4 | What is the difference between a delegate and events? | What is the difference between a delegate and an event? Don't both hold references to functions to be executed? | c# | events | null | null | null | null | open | What is the difference between a delegate and events?
===
What is the difference between a delegate and an event? Don't both hold references to functions to be executed? | 0 |
29,157 | 08/26/2008 23:07:30 | 2,543 | 08/22/2008 18:27:05 | 77 | 14 | How do I make a PictureBox use Nearest Neighbor resampling? | I am using StretchImage because the box is resizable with splitters. It looks like the default is some kind of smooth bilinear filtering, causing my image to be blurry and have moire patterns. | c# | gui | .net | null | null | null | open | How do I make a PictureBox use Nearest Neighbor resampling?
===
I am using StretchImage because the box is resizable with splitters. It looks like the default is some kind of smooth bilinear filtering, causing my image to be blurry and have moire patterns. | 0 |
29,168 | 08/26/2008 23:15:41 | 574 | 08/06/2008 21:11:23 | 49 | 16 | Deploying a Git subdirectory in Capistrano | My master branch layout is like this:
/ <-- top level
/client <-desktop client source files
/server <- Rails app
What I'd like to do is only pull down the /server directory in my deploy.rb, but I can't seem to find any way to do that. The /client directory is huge, so setting up a hook to copy /server to / won't work very well, it needs to only pull down the Rails app. | ruby-on-rails | deployment | git | capistrano | null | null | open | Deploying a Git subdirectory in Capistrano
===
My master branch layout is like this:
/ <-- top level
/client <-desktop client source files
/server <- Rails app
What I'd like to do is only pull down the /server directory in my deploy.rb, but I can't seem to find any way to do that. The /client directory is huge, so setting up a hook to copy /server to / won't work very well, it needs to only pull down the Rails app. | 0 |
29,174 | 08/26/2008 23:19:47 | 2,363 | 08/21/2008 20:55:49 | 260 | 13 | SimpleModal breaks ASP.Net Postbacks | I'm using [jQuery](http://jquery.com/) and [SimpleModal](http://www.ericmmartin.com/projects/simplemodal/) in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which is not really acceptable.
There is one source I've found with a [workaround](http://blog.hurlman.com/post/jQuery2c-simpleModal2c-and-ASPNet-postbacks-do-not-play-well-together.aspx), but for the life of me I can't get it to work, mostly because I am not fully understanding all of the necessary steps.
I also have a workaround, which is to replace the postbacks, but it's ugly and probably not the most reliable. I would really like to make the postbacks work again. Any ideas? | jquery | asp.net | javascript | postback | simplemodal | null | open | SimpleModal breaks ASP.Net Postbacks
===
I'm using [jQuery](http://jquery.com/) and [SimpleModal](http://www.ericmmartin.com/projects/simplemodal/) in an ASP.Net project to make some nice dialogs for a web app. Unfortunately, any buttons in a modal dialog can no longer execute their postbacks, which is not really acceptable.
There is one source I've found with a [workaround](http://blog.hurlman.com/post/jQuery2c-simpleModal2c-and-ASPNet-postbacks-do-not-play-well-together.aspx), but for the life of me I can't get it to work, mostly because I am not fully understanding all of the necessary steps.
I also have a workaround, which is to replace the postbacks, but it's ugly and probably not the most reliable. I would really like to make the postbacks work again. Any ideas? | 0 |
29,175 | 08/26/2008 23:21:31 | 3,068 | 08/26/2008 14:28:42 | 61 | 6 | (IIS/Win2000Pro) Granting Registry read rights to IIS user? | Okay, so I'm running a small test webserver on my private network. I've got a machine running Windows 2000 Pro, and I'm trying to run an ASP.NET app through IIS.
I wrote it so that the webpage would use the registry to store certain settings (connection strings, potentially volatile locations of other web services, paths in the local filesystem where certain information is stored etc...) Of course, it worked fine when testing with VStudio.NET 2005, because the user running the app has elevated privileges. However, running it on IIS I get a "Access to the registry key 'HKEY_LOCAL_MACHINE\Software' is denied.", which suggests the IIS user doesn't have read access to that part of the registry (I only do reads through the website itself, never writes).
I was like "okay, simple enough, I'll just go give that user rights to that part of the registry through regedit." The problem is, I don't see an option anywhere in regedit to change security settings... at all. Which got me thinking... I don't think I've ever actually had to change security settings for registry hives/keys before, and I don't think I know how to do it.
Half an hour of searching the web later, I haven't found any usable information on this subject. What I'm wondering is... how DO you change security rights to portions of the registry? I'm stumped, and it seems my ability to find the answer on Google is failing me utterly... and since I just signed up here, I figured I'd see if anyone here knew. =) | security | iis | registry | windows-server-2000 | null | null | open | (IIS/Win2000Pro) Granting Registry read rights to IIS user?
===
Okay, so I'm running a small test webserver on my private network. I've got a machine running Windows 2000 Pro, and I'm trying to run an ASP.NET app through IIS.
I wrote it so that the webpage would use the registry to store certain settings (connection strings, potentially volatile locations of other web services, paths in the local filesystem where certain information is stored etc...) Of course, it worked fine when testing with VStudio.NET 2005, because the user running the app has elevated privileges. However, running it on IIS I get a "Access to the registry key 'HKEY_LOCAL_MACHINE\Software' is denied.", which suggests the IIS user doesn't have read access to that part of the registry (I only do reads through the website itself, never writes).
I was like "okay, simple enough, I'll just go give that user rights to that part of the registry through regedit." The problem is, I don't see an option anywhere in regedit to change security settings... at all. Which got me thinking... I don't think I've ever actually had to change security settings for registry hives/keys before, and I don't think I know how to do it.
Half an hour of searching the web later, I haven't found any usable information on this subject. What I'm wondering is... how DO you change security rights to portions of the registry? I'm stumped, and it seems my ability to find the answer on Google is failing me utterly... and since I just signed up here, I figured I'd see if anyone here knew. =) | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.