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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76,488 | 09/16/2008 20:18:50 | 13,594 | 09/16/2008 20:05:50 | 21 | 0 | Using MySQL with Entity Framework | Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it. | mysql | ado.net | framework | entity | null | null | open | Using MySQL with Entity Framework
===
Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it. | 0 |
76,499 | 09/16/2008 20:19:31 | 13,578 | 09/16/2008 19:59:10 | 1 | 0 | What is your favorite use of Resharper? | I've been trying resharper casually for about a week, without delving into it too deeply. What I've found useful so far is the ability to eliminate redundant Using statements, ToString() calls, and casts. I guess in theory this should reduce the expense of my code-behind and dlls and such. What is Resharper best at, what justifies its cost? Your answers will help whet my appetite for further Resharper delving. Thanks people. | resharper | jetbrains | c# | null | null | 05/18/2012 16:09:48 | not constructive | What is your favorite use of Resharper?
===
I've been trying resharper casually for about a week, without delving into it too deeply. What I've found useful so far is the ability to eliminate redundant Using statements, ToString() calls, and casts. I guess in theory this should reduce the expense of my code-behind and dlls and such. What is Resharper best at, what justifies its cost? Your answers will help whet my appetite for further Resharper delving. Thanks people. | 4 |
76,526 | 09/16/2008 20:21:25 | 4,200 | 09/02/2008 09:57:33 | 844 | 31 | I need this baby in a month - send me nine women! | Under what circumstances - if any - does adding programmers to a team actually speed development of an already late project?
| team | project-management | null | null | null | null | open | I need this baby in a month - send me nine women!
===
Under what circumstances - if any - does adding programmers to a team actually speed development of an already late project?
| 0 |
76,534 | 09/16/2008 20:21:54 | 13,653 | 09/16/2008 20:21:54 | 1 | 0 | How does the Multiview control handle its Viewstate? | Does the Multiview control contain the viewstate information for each of its views regardless of whether or not the view is currently visible? | .net | asp.net | .net-2.0 | null | null | null | open | How does the Multiview control handle its Viewstate?
===
Does the Multiview control contain the viewstate information for each of its views regardless of whether or not the view is currently visible? | 0 |
76,549 | 09/16/2008 20:23:02 | 974 | 08/11/2008 09:02:40 | 338 | 29 | How are Integer arrays stored internally, in the JVM? | An array of ints in java is stored as a block of 32-bit values in memory. How is an array of Integer objects stored? i.e.
int[] vs. Integer[]
I'd imagine that each element in the Integer array is a reference to an Integer object, and that the Integer object has object storage overheads, just like any other object.
I'm hoping however that the JVM does some magical cleverness under the hood given that Integers are immutable and stores it just like an array of ints.
Is my hope woefully naive? Is an Integer array much slower than an int array in an application where every last ounce of performance matters? | java | jvm | null | null | null | null | open | How are Integer arrays stored internally, in the JVM?
===
An array of ints in java is stored as a block of 32-bit values in memory. How is an array of Integer objects stored? i.e.
int[] vs. Integer[]
I'd imagine that each element in the Integer array is a reference to an Integer object, and that the Integer object has object storage overheads, just like any other object.
I'm hoping however that the JVM does some magical cleverness under the hood given that Integers are immutable and stores it just like an array of ints.
Is my hope woefully naive? Is an Integer array much slower than an int array in an application where every last ounce of performance matters? | 0 |
76,553 | 09/16/2008 20:23:17 | 2,239 | 08/21/2008 06:42:29 | 95 | 2 | Adding item to the Desktop context menu in Windows | I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop).
Something like Catalyst Control Center in this screenshot:

I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry.
So, how can I add a new item into the Desktop menu and how can I associate some code with it?
I think the solution is language independent, if it's not, I'd appreciate any code that helps. | windows | gui | desktop | null | null | null | open | Adding item to the Desktop context menu in Windows
===
I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop).
Something like Catalyst Control Center in this screenshot:

I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry.
So, how can I add a new item into the Desktop menu and how can I associate some code with it?
I think the solution is language independent, if it's not, I'd appreciate any code that helps. | 0 |
76,564 | 09/16/2008 20:23:47 | 7,072 | 09/15/2008 13:07:03 | 18 | 2 | Is there an easy way to change the color of a bullet in a list? | All I want is to be able to change the color of a bullet in a list to a light gray. It defaults to black, and I can't figure out how to change it.
I know I could just use an image; I'd rather not do that if I can help it. | html | css | null | null | null | null | open | Is there an easy way to change the color of a bullet in a list?
===
All I want is to be able to change the color of a bullet in a list to a light gray. It defaults to black, and I can't figure out how to change it.
I know I could just use an image; I'd rather not do that if I can help it. | 0 |
76,571 | 09/16/2008 20:24:23 | 6,264 | 09/13/2008 12:34:05 | 8 | 10 | Prototype's Enumerable#pluck in F#? | In JavaScript, using the Prototype library, the following functional construction is possible:
var words = ["aqueous", "strength", "hated", "sesquicentennial", "area"];
words.pluck('length');
//-> [7, 8, 5, 16, 4]
Note that this example code is equivalent to
words.map( function(word) { return word.length; } );
I wondered if something similar is possible in F#:
let words = ["aqueous"; "strength"; "hated";"sesquicentennial"; "area"]
//val words: string list
List.pluck 'Length' words
//int list = [7; 8; 5; 16; 4]
without having to write:
List.map (fun (s:string) -> s.Length) words
This would seem quite useful to me because then you don't have to write functions for every property to access them.
| javascript | functional-programming | f# | prototype | null | null | open | Prototype's Enumerable#pluck in F#?
===
In JavaScript, using the Prototype library, the following functional construction is possible:
var words = ["aqueous", "strength", "hated", "sesquicentennial", "area"];
words.pluck('length');
//-> [7, 8, 5, 16, 4]
Note that this example code is equivalent to
words.map( function(word) { return word.length; } );
I wondered if something similar is possible in F#:
let words = ["aqueous"; "strength"; "hated";"sesquicentennial"; "area"]
//val words: string list
List.pluck 'Length' words
//int list = [7; 8; 5; 16; 4]
without having to write:
List.map (fun (s:string) -> s.Length) words
This would seem quite useful to me because then you don't have to write functions for every property to access them.
| 0 |
76,584 | 09/16/2008 20:25:27 | 5,056 | 09/07/2008 15:43:17 | 1,003 | 73 | Rhino Mocks: Is there any way to verify a constraint on an object property's property? | If I have
class ObjA {
public ObjB B;
}
class ObjB {
public bool Val;
}
and
class ObjectToMock {
public DoSomething(ObjA obj){...}
}
Is there any way to define an expectation that not only will DoSomething get called but that obj.B.Val == true?
I have tried
Expect.Call(delegate { mockObj.DoSomething(null);}).Constraints(new PropertyIs("B.Val", true));
but it seems to fail no matter what the value is.
| .net | rhino-mocks | null | null | null | null | open | Rhino Mocks: Is there any way to verify a constraint on an object property's property?
===
If I have
class ObjA {
public ObjB B;
}
class ObjB {
public bool Val;
}
and
class ObjectToMock {
public DoSomething(ObjA obj){...}
}
Is there any way to define an expectation that not only will DoSomething get called but that obj.B.Val == true?
I have tried
Expect.Call(delegate { mockObj.DoSomething(null);}).Constraints(new PropertyIs("B.Val", true));
but it seems to fail no matter what the value is.
| 0 |
76,591 | 09/16/2008 20:25:55 | 4,893 | 09/06/2008 12:55:06 | 363 | 27 | persistence.xml not found during maven testing | I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to `target/test-classes/META-INF/` correctly, but I get this exception when the test is run.
> javax.persistence.PersistenceException:
> No Persistence provider for
> EntityManager named aimDatabase
It looks like it's not finding or loading persistence.xml. | java | testing | maven-2 | automated-tests | jpa | null | open | persistence.xml not found during maven testing
===
I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to `target/test-classes/META-INF/` correctly, but I get this exception when the test is run.
> javax.persistence.PersistenceException:
> No Persistence provider for
> EntityManager named aimDatabase
It looks like it's not finding or loading persistence.xml. | 0 |
76,595 | 09/16/2008 20:26:17 | 13,276 | 09/16/2008 18:01:15 | 91 | 6 | SOAP or REST | Is REST a better approach to doing Web Services or is SOAP? Or are they different tools for different problems? Or is it a nuanced issue - that is, is one slightly better in certain arenas than another, etc? | soap | rest | webservices | null | null | null | open | SOAP or REST
===
Is REST a better approach to doing Web Services or is SOAP? Or are they different tools for different problems? Or is it a nuanced issue - that is, is one slightly better in certain arenas than another, etc? | 0 |
76,601 | 09/16/2008 20:26:44 | 13,666 | 09/16/2008 20:26:44 | 1 | 0 | Page can not be displayed | I've got a client that sees the "Page can not be displayed" (nothing else) whenever they perform a certain action in their website. I don't get the error, ever. I've tried IE, FF, Chrome, and I do not see the error. The client sees the error on IE.
The error occurs when they press a form submit button that has only hidden fields.
I'm thinking this could be some kind of anti-malware / virus issue. has anyone ever dealt with this issue? | html | null | null | null | null | null | open | Page can not be displayed
===
I've got a client that sees the "Page can not be displayed" (nothing else) whenever they perform a certain action in their website. I don't get the error, ever. I've tried IE, FF, Chrome, and I do not see the error. The client sees the error on IE.
The error occurs when they press a form submit button that has only hidden fields.
I'm thinking this could be some kind of anti-malware / virus issue. has anyone ever dealt with this issue? | 0 |
76,624 | 09/16/2008 20:28:33 | 9,236 | 09/15/2008 18:09:29 | 23 | 2 | 64 bit enum in C++? | Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.
For some reason I thought the following might work:
enum MY_ENUM : unsigned __int64
{
LARGE_VALUE = 0x1000000000000000,
}; | c++ | 64bit | enums | null | null | null | open | 64 bit enum in C++?
===
Is there a way to have a 64 bit enum in C++? Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.
For some reason I thought the following might work:
enum MY_ENUM : unsigned __int64
{
LARGE_VALUE = 0x1000000000000000,
}; | 0 |
76,629 | 09/16/2008 20:28:49 | 13,673 | 09/16/2008 20:28:48 | 1 | 0 | Mixing C# Code and umanaged C++ code on Windows with Visual Studio. | I would like to call my umanaged C++ libraries from my C# code. What are the potential pitfalls and precautions that need to be taken. Thank you for your time. | c# | unmanaged | windows | visual-c++ | null | null | open | Mixing C# Code and umanaged C++ code on Windows with Visual Studio.
===
I would like to call my umanaged C++ libraries from my C# code. What are the potential pitfalls and precautions that need to be taken. Thank you for your time. | 0 |
76,637 | 09/16/2008 20:29:25 | 13,676 | 09/16/2008 20:29:25 | 1 | 0 | Printings using CUPS, when can my app quit? | I have an linux app that uses cups for printing, but I've noticed that if I print and then quit my app right away my printout never appears. So I assume that my app has to wait for it to actually come out of the printer before quitting, so does anyone know how to tell when it's finished printing?? | linux | printing | cups | null | null | null | open | Printings using CUPS, when can my app quit?
===
I have an linux app that uses cups for printing, but I've noticed that if I print and then quit my app right away my printout never appears. So I assume that my app has to wait for it to actually come out of the printer before quitting, so does anyone know how to tell when it's finished printing?? | 0 |
76,680 | 09/16/2008 20:32:10 | 13,636 | 09/16/2008 20:17:58 | 1 | 0 | Fetch unread messages, by user | I want to maintain a list of global messages that will be displayed to all users of a web app. I want each user to be able to mark these messages as read individually. I've created 2 tables; `messages (id, body)` and `messages_read (user_id, message_id)`.
Can you provide an sql statement that selects the unread messages for a single user? Or do you have any suggestions for a better way to handle this?
Thanks! | sql | database | mysql | null | null | null | open | Fetch unread messages, by user
===
I want to maintain a list of global messages that will be displayed to all users of a web app. I want each user to be able to mark these messages as read individually. I've created 2 tables; `messages (id, body)` and `messages_read (user_id, message_id)`.
Can you provide an sql statement that selects the unread messages for a single user? Or do you have any suggestions for a better way to handle this?
Thanks! | 0 |
76,689 | 09/16/2008 20:32:54 | 13,281 | 09/16/2008 18:02:24 | 16 | 4 | Advice on building a distributed CMS? | I'm in the process of designing a PHP-based content management system for personal use and eventually to be distributed. I know there are a lot of CMS's already out there, but I really haven't found one that meets my all of my needs and I also would like to have the learning experience. Security is a large focus, as are extensibility and ease of use. For those of you out there who have built your own CMS, what advice can you offer? What features are essential for a core? What are must have add-ons? What did you wish you knew before starting? What's the biggest potential roadblock/problem? Any and all advice is welcome. | content-management-system | php | null | null | null | null | open | Advice on building a distributed CMS?
===
I'm in the process of designing a PHP-based content management system for personal use and eventually to be distributed. I know there are a lot of CMS's already out there, but I really haven't found one that meets my all of my needs and I also would like to have the learning experience. Security is a large focus, as are extensibility and ease of use. For those of you out there who have built your own CMS, what advice can you offer? What features are essential for a core? What are must have add-ons? What did you wish you knew before starting? What's the biggest potential roadblock/problem? Any and all advice is welcome. | 0 |
76,691 | 09/16/2008 20:32:56 | 13,036 | 09/16/2008 16:45:02 | 1 | 0 | Who to contact at HP for misbehaving drivers? | I'm working on som printing code that doesn't behave correctly when used against certain HP drivers. The PrintDlgEx structure will actually come back empty in some cases when a printer is selected. We can duplicate the behavior in a simple test program that has allowed us to track it back to the printer being selected (in this case a M9040). It always works on the first try, but on subsequent attempts it fails.
How and who do I contact at HP to report this as a bug? | bug | printing | driver | hp | printdlgex | null | open | Who to contact at HP for misbehaving drivers?
===
I'm working on som printing code that doesn't behave correctly when used against certain HP drivers. The PrintDlgEx structure will actually come back empty in some cases when a printer is selected. We can duplicate the behavior in a simple test program that has allowed us to track it back to the printer being selected (in this case a M9040). It always works on the first try, but on subsequent attempts it fails.
How and who do I contact at HP to report this as a bug? | 0 |
76,700 | 09/16/2008 20:33:39 | 12,624 | 09/16/2008 15:00:34 | 74 | 9 | What's a simple method to dump pipe input to a file? (Linux) | I'm looking for a little shell script that will take anything piped into it, and dump it to a file.. for email debugging purposes. Any ideas?
Alex | linux | sendmail | exim | pipe | null | null | open | What's a simple method to dump pipe input to a file? (Linux)
===
I'm looking for a little shell script that will take anything piped into it, and dump it to a file.. for email debugging purposes. Any ideas?
Alex | 0 |
76,712 | 09/16/2008 20:34:39 | 4,330 | 09/02/2008 21:22:24 | 29 | 3 | What is the best way to handle sessions for a PHP site on multiple hosts? | PHP stores its session information on the file system of the host of the server establishing that session. In a multiple-host PHP environment, where load is unintelligently distributed amongst each host, PHP session variables are not available to each request (unless by chance the request is assigned to the same host -- assume we have no control over the load balancer).
[This site, dubbed "The Hitchhikers Guide to PHP Load Balancing"](http://porteightyeight.com/archives/121-The-Hitchhikers-Guide-to-PHP-Load-Balancing.html) suggests overriding PHPs session handler and storing session information in the shared database.
What, in your humble opinion, is the *best* way to maintain session information in a multiple PHP host environment? | php | session | load-balancing | null | null | null | open | What is the best way to handle sessions for a PHP site on multiple hosts?
===
PHP stores its session information on the file system of the host of the server establishing that session. In a multiple-host PHP environment, where load is unintelligently distributed amongst each host, PHP session variables are not available to each request (unless by chance the request is assigned to the same host -- assume we have no control over the load balancer).
[This site, dubbed "The Hitchhikers Guide to PHP Load Balancing"](http://porteightyeight.com/archives/121-The-Hitchhikers-Guide-to-PHP-Load-Balancing.html) suggests overriding PHPs session handler and storing session information in the shared database.
What, in your humble opinion, is the *best* way to maintain session information in a multiple PHP host environment? | 0 |
76,760 | 09/16/2008 20:38:21 | 13,726 | 09/16/2008 20:38:04 | 1 | 0 | VS2008 Setup Project: Shared (By All Users) Application Data Files? | fellow anthropoids and lily pads and paddlewheels! Yes, yes!
I'm developing a Windows desktop app in C#/.NET/WPF, using VS 2008. The app is required to install and run on Vista and XP machines. I'm working on a Setup project to install the app.
My app requires read/modify/write access to a SQLCE database file (.sdf) and some other database-type files related to a third-party control I'm using. These files should be shared among all users/log-ins on the PC, none of which can be required to be an Administrator. This means, of course, that the files can't go in the program's own installation directory (as such things often did before the arrival of Vista, yes, yes!).
I had expected the solution to be simple. Vista and XP both have shared-application-data folders intended for this purpose. ("\ProgramData" in Vista, "\Documents and Settings\All Users\Application Data" in XP.) The .NET Environment.GetFolderPath() call exists to find the paths to these folders on a given PC, yes, yes!
But I can't figure out how to specify the shared-app-data folder in the Setup project.
There is a "Common Files" folder, but that's intended for shared program components (not data files), is usually located under "\Program Files," and has the same security restrictions anything else in "\Program files" does, yes, yes!
There is also a "User's Application Data" folder, but that's a per-user folder, which is exactly what I'm trying to avoid, yes, yes!
Is it possible to add files to the shared-app-data folder in a robust, cross-Windows-version way from a VS 2008 setup project? Can anyone tell me how? | windows | desktop | deployment | setup | vs2008 | null | open | VS2008 Setup Project: Shared (By All Users) Application Data Files?
===
fellow anthropoids and lily pads and paddlewheels! Yes, yes!
I'm developing a Windows desktop app in C#/.NET/WPF, using VS 2008. The app is required to install and run on Vista and XP machines. I'm working on a Setup project to install the app.
My app requires read/modify/write access to a SQLCE database file (.sdf) and some other database-type files related to a third-party control I'm using. These files should be shared among all users/log-ins on the PC, none of which can be required to be an Administrator. This means, of course, that the files can't go in the program's own installation directory (as such things often did before the arrival of Vista, yes, yes!).
I had expected the solution to be simple. Vista and XP both have shared-application-data folders intended for this purpose. ("\ProgramData" in Vista, "\Documents and Settings\All Users\Application Data" in XP.) The .NET Environment.GetFolderPath() call exists to find the paths to these folders on a given PC, yes, yes!
But I can't figure out how to specify the shared-app-data folder in the Setup project.
There is a "Common Files" folder, but that's intended for shared program components (not data files), is usually located under "\Program Files," and has the same security restrictions anything else in "\Program files" does, yes, yes!
There is also a "User's Application Data" folder, but that's a per-user folder, which is exactly what I'm trying to avoid, yes, yes!
Is it possible to add files to the shared-app-data folder in a robust, cross-Windows-version way from a VS 2008 setup project? Can anyone tell me how? | 0 |
76,762 | 09/16/2008 20:38:25 | 13,594 | 09/16/2008 20:05:50 | 26 | 0 | Scaling cheaply: MySQL and MS SQL | How cheap can MySQL be compared to MS SQL when you have tons of data (and joins/search)? Consider a site like stackoverflow full of Q&As already and after getting dugg.
My ASP.NET sites are currently on SQL Server Express so I don't have any idea how cost compares in the long run. Although after a quick research, I'm starting to envy the savings MySQL folks get. | sql | sql-server | mysql | scalability | scaling | null | open | Scaling cheaply: MySQL and MS SQL
===
How cheap can MySQL be compared to MS SQL when you have tons of data (and joins/search)? Consider a site like stackoverflow full of Q&As already and after getting dugg.
My ASP.NET sites are currently on SQL Server Express so I don't have any idea how cost compares in the long run. Although after a quick research, I'm starting to envy the savings MySQL folks get. | 0 |
76,764 | 09/16/2008 20:38:30 | 8,633 | 09/15/2008 16:30:34 | 8 | 1 | Where can I find a good introductory tutorial for Spring? | I am a Java developer but up to now have not had any hands on experience using the Spring framework.
Does anyone know of anyone good online tutorials that explain the basics and offer good examples and sample code. | java | tutorials | spring | frameworks | null | null | open | Where can I find a good introductory tutorial for Spring?
===
I am a Java developer but up to now have not had any hands on experience using the Spring framework.
Does anyone know of anyone good online tutorials that explain the basics and offer good examples and sample code. | 0 |
76,781 | 09/16/2008 20:40:05 | 9,938 | 09/15/2008 20:31:28 | 130 | 0 | How do I TDD a custom membership provider and custom membership user? | I need to create a custom membership user and provider for an ASP.NET mvc app and I'm looking to use TDD. I have created a User class which inherits from the MembershipUser class, but when I try to test it I get an error that I can't figure out. How do I give it a valid provider name? Do I just need to add it to web.config? But I'm not even testing the web app at this point.
[failure] UserTests.SetUp.UserShouldHaveMembershipUserProperties
TestCase 'UserTests.SetUp.UserShouldHaveMembershipUserProperties'
failed: The membership provider name specified is invalid.
Parameter name: providerName
System.ArgumentException
Message: The membership provider name specified is invalid.
Parameter name: providerName
Source: System.Web | c# | asp.net | authentication | null | null | null | open | How do I TDD a custom membership provider and custom membership user?
===
I need to create a custom membership user and provider for an ASP.NET mvc app and I'm looking to use TDD. I have created a User class which inherits from the MembershipUser class, but when I try to test it I get an error that I can't figure out. How do I give it a valid provider name? Do I just need to add it to web.config? But I'm not even testing the web app at this point.
[failure] UserTests.SetUp.UserShouldHaveMembershipUserProperties
TestCase 'UserTests.SetUp.UserShouldHaveMembershipUserProperties'
failed: The membership provider name specified is invalid.
Parameter name: providerName
System.ArgumentException
Message: The membership provider name specified is invalid.
Parameter name: providerName
Source: System.Web | 0 |
76,793 | 09/16/2008 20:41:01 | 13,611 | 09/16/2008 20:11:45 | 1 | 0 | .NET XML Seralization | I'm working on a set of classes that will be used to serialize to XML. The XML is not controlled by me and is organized rather well. Unfortunately, there are several sets of nested nodes, the purpose of some of them is just to hold a collection of their children. Based on my current knowledge of XML Serialization, those nodes require another class.
Is there a way to make a class serialize to a set of XML nodes instead of just one. Because I feel like I'm being as clear as mud, say we have the xml:
<root>
<users>
<user id="">
<firstname />
<lastname />
...
</user>
<user id="">
<firstname />
<lastname />
...
</user>
</users>
<groups>
<group id="" groupname="">
<userid />
<userid />
</group>
<group id="" groupname="">
<userid />
<userid />
</group>
</groups>
</root>
Ideally, 3 classes would be best. A class `root` with collections of `user` and `group` objects. However, best I can figure is that I need a class for `root`, `users`, `user`, `groups` and `group`, where `users` and `groups` contain only collections of `user` and `group` respectively, and `root` contains a `users`, and `groups` object.
Anyone out there who knows better than me? (don't lie, I know there are). | .net | xml | serialization | xmlserialization | null | null | open | .NET XML Seralization
===
I'm working on a set of classes that will be used to serialize to XML. The XML is not controlled by me and is organized rather well. Unfortunately, there are several sets of nested nodes, the purpose of some of them is just to hold a collection of their children. Based on my current knowledge of XML Serialization, those nodes require another class.
Is there a way to make a class serialize to a set of XML nodes instead of just one. Because I feel like I'm being as clear as mud, say we have the xml:
<root>
<users>
<user id="">
<firstname />
<lastname />
...
</user>
<user id="">
<firstname />
<lastname />
...
</user>
</users>
<groups>
<group id="" groupname="">
<userid />
<userid />
</group>
<group id="" groupname="">
<userid />
<userid />
</group>
</groups>
</root>
Ideally, 3 classes would be best. A class `root` with collections of `user` and `group` objects. However, best I can figure is that I need a class for `root`, `users`, `user`, `groups` and `group`, where `users` and `groups` contain only collections of `user` and `group` respectively, and `root` contains a `users`, and `groups` object.
Anyone out there who knows better than me? (don't lie, I know there are). | 0 |
76,809 | 09/16/2008 20:42:02 | 479 | 08/06/2008 08:37:10 | 382 | 27 | Anyone out there using web2py? | Is anyone out there using [web2py][1]?
Specifically:
- In production?
- With what database?
- With Google Application Engine?
[1]: http://mdp.cti.depaul.edu/ | python | web2py | null | null | null | 01/13/2012 06:56:00 | not constructive | Anyone out there using web2py?
===
Is anyone out there using [web2py][1]?
Specifically:
- In production?
- With what database?
- With Google Application Engine?
[1]: http://mdp.cti.depaul.edu/ | 4 |
76,812 | 09/16/2008 20:42:12 | 337 | 08/04/2008 18:11:42 | 400 | 10 | DoSomethingToThing(Thing n) vs Thing.DoSomething() | What factors determine which approach is more appropriate? | language-agnostic | code-style | null | null | null | null | open | DoSomethingToThing(Thing n) vs Thing.DoSomething()
===
What factors determine which approach is more appropriate? | 0 |
76,817 | 09/16/2008 20:42:30 | 11,897 | 09/16/2008 12:08:08 | 1 | 9 | How to send SOAP requests in ISO-8859-1 whith Flex ? | Flex uses by default UTF-8. I have not fount a way to specify a different encoding/charset on the actionscript WebService class.
Thanks in advance for your help
| flex | actionscript | encoding | character-encoding | soap | null | open | How to send SOAP requests in ISO-8859-1 whith Flex ?
===
Flex uses by default UTF-8. I have not fount a way to specify a different encoding/charset on the actionscript WebService class.
Thanks in advance for your help
| 0 |
76,854 | 09/16/2008 20:46:07 | 13,419 | 09/16/2008 18:55:34 | 1 | 0 | CSS "frameworks" that account for browser irregularities? | I build websites for a small-ish media company. Unfortunately, around 45-50% of our client base uses IE6, while the other half are pretty much equally split between Firefox and Webkit-based browsers, with a sprinkling of Opera users.
I start every one of my sites with a reset stylesheet similar to Eric Meyer's, with a few modificaions. I've been using the Blueprint CSS "framework" a lot recently, and it's made my life a lot easier, though I am not especially attached to it.
Roughly 60% of my development time is spent making sure the sites I create don't look incredibly different in each browser. I code for Firefox 3 then tweak from there.
Does anyone know of any stylesheets/frameworks out there that attempt to preemptively account for all of those stupid little browser quirks? I know that nothing out there can totally account for all the browser weirdness, but it would be nice to have something a little more solid to start with.
I'm working on creating my own, but it would be nice to have something to start with. | html | css | frameworks | crossbrowser | null | null | open | CSS "frameworks" that account for browser irregularities?
===
I build websites for a small-ish media company. Unfortunately, around 45-50% of our client base uses IE6, while the other half are pretty much equally split between Firefox and Webkit-based browsers, with a sprinkling of Opera users.
I start every one of my sites with a reset stylesheet similar to Eric Meyer's, with a few modificaions. I've been using the Blueprint CSS "framework" a lot recently, and it's made my life a lot easier, though I am not especially attached to it.
Roughly 60% of my development time is spent making sure the sites I create don't look incredibly different in each browser. I code for Firefox 3 then tweak from there.
Does anyone know of any stylesheets/frameworks out there that attempt to preemptively account for all of those stupid little browser quirks? I know that nothing out there can totally account for all the browser weirdness, but it would be nice to have something a little more solid to start with.
I'm working on creating my own, but it would be nice to have something to start with. | 0 |
76,855 | 09/16/2008 20:46:21 | 12,842 | 09/16/2008 15:56:46 | 11 | 2 | What the best way to remotely reset the server cache in a web farm? | Each of our production web servers maintains its own cache for separate web sites (ASP.NET Web Applications). Currently to clear a cache we log into the server and "touch" the web.config file.
Does anyone have an example of a safe/secure way to **remotely** reset the cache for a specific web application? Ideally we'd be able to say "clear the cache for app X running on all servers" but also "clear the cache for app X running on server Y". | caching | null | null | null | null | null | open | What the best way to remotely reset the server cache in a web farm?
===
Each of our production web servers maintains its own cache for separate web sites (ASP.NET Web Applications). Currently to clear a cache we log into the server and "touch" the web.config file.
Does anyone have an example of a safe/secure way to **remotely** reset the cache for a specific web application? Ideally we'd be able to say "clear the cache for app X running on all servers" but also "clear the cache for app X running on server Y". | 0 |
76,864 | 09/16/2008 20:47:05 | 1,228 | 08/13/2008 13:58:55 | 2,198 | 155 | Can I alter how types are resolved and instantiated in .NET? | In some languages you can override the "new" keyword to control how types are instantiated. You can't do this directly in .NET. However, I was wondering if there is a way to, say, handle a "Type not found" exception and manually resolve a type before whoever "new"ed up that type blows up?
I'm using a serializer that reads in an xml-based file and instantiates types described within it. I don't have any control over the serializer, but I'd like to interact with the process, hopefully without writing my own appdomain host.
Please don't suggest alternative serialization methods. | .net | new-operator | typeresolution | null | null | null | open | Can I alter how types are resolved and instantiated in .NET?
===
In some languages you can override the "new" keyword to control how types are instantiated. You can't do this directly in .NET. However, I was wondering if there is a way to, say, handle a "Type not found" exception and manually resolve a type before whoever "new"ed up that type blows up?
I'm using a serializer that reads in an xml-based file and instantiates types described within it. I don't have any control over the serializer, but I'd like to interact with the process, hopefully without writing my own appdomain host.
Please don't suggest alternative serialization methods. | 0 |
76,870 | 09/16/2008 20:47:26 | 9,052 | 09/15/2008 17:35:10 | 1 | 6 | Is there a way to dynamically load a properties file in NAnt? | I want to load a different properties file based upon one variable.
Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file. | .net | automation | nant | build | null | null | open | Is there a way to dynamically load a properties file in NAnt?
===
I want to load a different properties file based upon one variable.
Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file. | 0 |
76,891 | 09/16/2008 20:48:30 | 5,416 | 09/09/2008 13:41:43 | 124 | 23 | Troubleshooting Timeout SqlExceptions | I have some curious behavior that I'm having trouble figuring out why is occurring. I'm seeing intermittent timeout exceptions. I'm pretty sure it's related to volume because it's not reproducible in our development environment. As a bandaid solution, I tried upping the sql command timeout to sixty seconds, but as I've found, this doesn't seem to help. Here's the strange part, when I check my logs on the process that is failing, here are the start and end times:
- 09/16/2008 16:21:49
- 09/16/2008 16:22:19
So how could it be that it's timing out in thirty seconds when I've set the command timeout to sixty??
Just for reference, here's the exception being thrown:
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at SetClear.DataAccess.SqlHelper.ExecuteReader(CommandType commandType, String commandText, SqlParameter[] commandArgs)
| sql-server | ado.net | sqlexception | null | null | null | open | Troubleshooting Timeout SqlExceptions
===
I have some curious behavior that I'm having trouble figuring out why is occurring. I'm seeing intermittent timeout exceptions. I'm pretty sure it's related to volume because it's not reproducible in our development environment. As a bandaid solution, I tried upping the sql command timeout to sixty seconds, but as I've found, this doesn't seem to help. Here's the strange part, when I check my logs on the process that is failing, here are the start and end times:
- 09/16/2008 16:21:49
- 09/16/2008 16:22:19
So how could it be that it's timing out in thirty seconds when I've set the command timeout to sixty??
Just for reference, here's the exception being thrown:
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at SetClear.DataAccess.SqlHelper.ExecuteReader(CommandType commandType, String commandText, SqlParameter[] commandArgs)
| 0 |
76,925 | 09/16/2008 20:51:35 | 10,004 | 09/15/2008 20:46:51 | 1 | 0 | How do I perform an HTTP post from VBScript / ASP to a WCF service and get a response? | Ideally I'd be able to construct a message and use WinHTTP to perform a post to a WCF service (hosted in IIS) and get a response, but so far I've been unable to construct something that works properly.
Does anyone have an example of doing this that is straightforward?
In the 2.0 Web Service world this was as easy as putting a setting in the web.config to get the service to respond to a post and then calling the appropriate web method with the right parameters. There seems to be no analogue for this in the WCF world. | vbscript | asp | wcf | null | null | null | open | How do I perform an HTTP post from VBScript / ASP to a WCF service and get a response?
===
Ideally I'd be able to construct a message and use WinHTTP to perform a post to a WCF service (hosted in IIS) and get a response, but so far I've been unable to construct something that works properly.
Does anyone have an example of doing this that is straightforward?
In the 2.0 Web Service world this was as easy as putting a setting in the web.config to get the service to respond to a post and then calling the appropriate web method with the right parameters. There seems to be no analogue for this in the WCF world. | 0 |
76,930 | 09/16/2008 20:52:02 | 5,975 | 09/11/2008 20:20:29 | 91 | 4 | What is the easiest way to adjust EXIF timestamps on photos from multiple cameras in Windows Vista? | **Scenario:** Several people go on holiday together, armed with digital cameras, and snap away. Some people remembered to adjust their camera clocks to local time, some left them at their home time, some left them at local time of the country they were born in, and some left their cameras on factory time.
**The Problem:** Timestamps in the EXIF metadata of photos will not be synchronised, making it difficult to aggregate all the photos into one combined collection.
**The Question:** Assuming that you have discovered the deltas between all of the camera clocks, What is the *simplest* way to correct these timestamp differences in Windows Vista? | exif | photo-management | null | null | null | null | open | What is the easiest way to adjust EXIF timestamps on photos from multiple cameras in Windows Vista?
===
**Scenario:** Several people go on holiday together, armed with digital cameras, and snap away. Some people remembered to adjust their camera clocks to local time, some left them at their home time, some left them at local time of the country they were born in, and some left their cameras on factory time.
**The Problem:** Timestamps in the EXIF metadata of photos will not be synchronised, making it difficult to aggregate all the photos into one combined collection.
**The Question:** Assuming that you have discovered the deltas between all of the camera clocks, What is the *simplest* way to correct these timestamp differences in Windows Vista? | 0 |
76,933 | 09/16/2008 20:52:13 | 2,833 | 08/25/2008 12:57:53 | 41 | 4 | App referencing Microsoft.SqlServer.Smo requires additional assemblies to be included on Target Machine? | I have a small app which references the Microsoft.SqlServer.Smo assembly (so I can display to the user a list of servers & databases to which they can connect).
My application originally referenced Microsoft.SqlServer.Smo and Microsoft.SqlServer.ConnectionInfo. Things worked as expected on my dev box.
When I installed the application on a test machine, I received a **System.IO.FileNotFoundException**. The details of the message included the following:
**Could not load file or assembly Microsoft.SqlServer.SmoEnum**
I eventually resolved the issue by referencing the following assemblies in addition to the ones mentioned above:
- Microsoft.SqlServer.SmoEnum
- Microsoft.SqlServer.SqlEnum
- Microsoft.SqlServer.BatchParser
- Microsoft.SqlServer.Replication
Can anyone confirm that I do indeed need to include each of these additional assemblies in my application (and therefore install them on user's machines) even though the app builds fine on my development box without them referenced? | .net | reference | null | null | null | null | open | App referencing Microsoft.SqlServer.Smo requires additional assemblies to be included on Target Machine?
===
I have a small app which references the Microsoft.SqlServer.Smo assembly (so I can display to the user a list of servers & databases to which they can connect).
My application originally referenced Microsoft.SqlServer.Smo and Microsoft.SqlServer.ConnectionInfo. Things worked as expected on my dev box.
When I installed the application on a test machine, I received a **System.IO.FileNotFoundException**. The details of the message included the following:
**Could not load file or assembly Microsoft.SqlServer.SmoEnum**
I eventually resolved the issue by referencing the following assemblies in addition to the ones mentioned above:
- Microsoft.SqlServer.SmoEnum
- Microsoft.SqlServer.SqlEnum
- Microsoft.SqlServer.BatchParser
- Microsoft.SqlServer.Replication
Can anyone confirm that I do indeed need to include each of these additional assemblies in my application (and therefore install them on user's machines) even though the app builds fine on my development box without them referenced? | 0 |
76,934 | 09/16/2008 20:52:24 | 13,790 | 09/16/2008 20:52:24 | 1 | 0 | How important is a database in managing information? | I have been hired to help write an application that manages certain information for the end user. It is intended to manage a few megabytes of information, but also manage scanned images in full resolution. Should this project use a database, and why or why not? | database | null | null | null | null | null | open | How important is a database in managing information?
===
I have been hired to help write an application that manages certain information for the end user. It is intended to manage a few megabytes of information, but also manage scanned images in full resolution. Should this project use a database, and why or why not? | 0 |
76,939 | 09/16/2008 20:52:58 | 3,291 | 08/27/2008 17:46:47 | 8 | 1 | x86 Remote Debugger Service on x64 | Is it possible to install the x86 Remote Debugger as a Service on a 64bit machine? I need to attach a debugger to a Session 0 process. The process runs 32bit but the debugger service that gets installed is 64bit and wont attach to the 32bit process. I need to attach to managed code. | visual-studio | debugging | remote-debugging | null | null | null | open | x86 Remote Debugger Service on x64
===
Is it possible to install the x86 Remote Debugger as a Service on a 64bit machine? I need to attach a debugger to a Session 0 process. The process runs 32bit but the debugger service that gets installed is 64bit and wont attach to the 32bit process. I need to attach to managed code. | 0 |
76,945 | 09/16/2008 20:53:45 | 10,019 | 09/15/2008 20:51:43 | 16 | 4 | Which library should I use to generate RSS in Common Lisp? | What's the best library to use to generate RSS for a webserver written in Common Lisp?
| lisp | rss | null | null | null | null | open | Which library should I use to generate RSS in Common Lisp?
===
What's the best library to use to generate RSS for a webserver written in Common Lisp?
| 0 |
76,967 | 09/16/2008 20:55:50 | 5,552 | 09/10/2008 13:38:06 | 271 | 14 | Mending bad BAD database design once data is in the system. | I know that that is not a question... erm anyway HERE is the question.
I have inherited a database that has 1(one) table in that looks much like this. Its aim is to record what species are found in the various (200 odd) countries.
ID
Species
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
....
Western Sahara
Yemen
Zambia
Zimbabwe
A sample of the data would be something like this
id Species Afghanistan Albania American Samoa
1 SP1 null null null
2 SP2 1 1 null
3 SP3 null null 1
It seems to me this is a typical many to many situation and I want 3 tables.
Species, Country, and SpeciesFoundInCountry
The link table (SpeciesFoundInCountry) would have foreign keys in both the species and Country tables.
(It is hard to draw the diagram!)
Species
SpeciesID SpeciesName
Country
CountryID CountryName
SpeciesFoundInCountry
CountryID SpeciesID
Is there a magic way I can generate an insert statement that will get the CountryID from the new Country table based on the column name and the SpeciesID where there is a 1 in the original mega table?
I can do it for one Country (this is a select to show what I want out)
SELECT Species.ID, Country.CountryID
FROM Country, Species
WHERE (((Species.Afghanistan)=1)) AND (((Country.Country)="Afghanistan"));
(the mega table is called species)
But using this strategy I would need to do the query for each column in the original table.
Is there a way of doing this in sql?
I guess I can OR a load of my where clauses together and write a script to make the sql, seems inelegant though!
Any thoughts (or clarification required)?
Cheers for reading all that :D
| sql | database-design | data | access | bad | null | open | Mending bad BAD database design once data is in the system.
===
I know that that is not a question... erm anyway HERE is the question.
I have inherited a database that has 1(one) table in that looks much like this. Its aim is to record what species are found in the various (200 odd) countries.
ID
Species
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
....
Western Sahara
Yemen
Zambia
Zimbabwe
A sample of the data would be something like this
id Species Afghanistan Albania American Samoa
1 SP1 null null null
2 SP2 1 1 null
3 SP3 null null 1
It seems to me this is a typical many to many situation and I want 3 tables.
Species, Country, and SpeciesFoundInCountry
The link table (SpeciesFoundInCountry) would have foreign keys in both the species and Country tables.
(It is hard to draw the diagram!)
Species
SpeciesID SpeciesName
Country
CountryID CountryName
SpeciesFoundInCountry
CountryID SpeciesID
Is there a magic way I can generate an insert statement that will get the CountryID from the new Country table based on the column name and the SpeciesID where there is a 1 in the original mega table?
I can do it for one Country (this is a select to show what I want out)
SELECT Species.ID, Country.CountryID
FROM Country, Species
WHERE (((Species.Afghanistan)=1)) AND (((Country.Country)="Afghanistan"));
(the mega table is called species)
But using this strategy I would need to do the query for each column in the original table.
Is there a way of doing this in sql?
I guess I can OR a load of my where clauses together and write a script to make the sql, seems inelegant though!
Any thoughts (or clarification required)?
Cheers for reading all that :D
| 0 |
76,988 | 09/16/2008 20:57:21 | 13,817 | 09/16/2008 20:57:21 | 1 | 0 | How is it possible to run a traceroute-like program without needing root privileges? | I have seen another program provide traceroute functionality within it but without needing root (superuser) privileges? I've always assumed that raw sockets need to be root, but is there some other way? (I think somebody mentioned "supertrace" or "tracepath"?)
Thanks for your responses :) | traceroute | raw | sockets | nonadmin | null | null | open | How is it possible to run a traceroute-like program without needing root privileges?
===
I have seen another program provide traceroute functionality within it but without needing root (superuser) privileges? I've always assumed that raw sockets need to be root, but is there some other way? (I think somebody mentioned "supertrace" or "tracepath"?)
Thanks for your responses :) | 0 |
76,993 | 09/16/2008 20:57:43 | 12,597 | 09/16/2008 14:53:25 | 8 | 2 | How to double buffer .NET controls on a form? | How can i set the protected DoubleBuffered property of the controls on a form that are suffering from flicker? | c# | winforms | doublebuffered | null | null | null | open | How to double buffer .NET controls on a form?
===
How can i set the protected DoubleBuffered property of the controls on a form that are suffering from flicker? | 0 |
77,005 | 09/16/2008 20:58:35 | 13,676 | 09/16/2008 20:29:25 | 1 | 0 | ( revised ) how to generate a stacktrace when my C++ app crashes ( using gcc compiler ) | When my c++ app crashes I would like to generate a stacktrace.
I already asked this but I guess I needed to clarify my needs.
My app is being run by many different users and it also runs on Linux, Windows and Macintosh ( all versions are compiled using gcc ).
I would like my program to be able to generate a stack trace when it crashes and the next time the user run's it, it will ask them if it is ok to send the stack trace to me so I can track down the problem. I can handle the sending the info to me but I don't know how to generate the trace string. Any ideas?
| stack | trace | crash | c++ | assert | null | open | ( revised ) how to generate a stacktrace when my C++ app crashes ( using gcc compiler )
===
When my c++ app crashes I would like to generate a stacktrace.
I already asked this but I guess I needed to clarify my needs.
My app is being run by many different users and it also runs on Linux, Windows and Macintosh ( all versions are compiled using gcc ).
I would like my program to be able to generate a stack trace when it crashes and the next time the user run's it, it will ask them if it is ok to send the stack trace to me so I can track down the problem. I can handle the sending the info to me but I don't know how to generate the trace string. Any ideas?
| 0 |
77,013 | 09/16/2008 20:59:34 | 13,790 | 09/16/2008 20:52:24 | 1 | 0 | Which open-source project should I help with? | I am looking for an open-source project involving c++ GUI(s) working with a database. I have not done it before, and am looking for a way to get my feet wet. Which can I work on? | database | open-source | c++ | qt | qt4 | 11/13/2011 22:44:11 | not constructive | Which open-source project should I help with?
===
I am looking for an open-source project involving c++ GUI(s) working with a database. I have not done it before, and am looking for a way to get my feet wet. Which can I work on? | 4 |
77,025 | 09/16/2008 21:00:25 | 7,936 | 09/15/2008 14:44:19 | 1 | 1 | What is the best way the _DoPostBack javascript method in Asp.net | I want to set a breakpoint on the __DoPostBack method, but it's a pain to find the correct file to set the breakpoint in.
The method __DoPostBack is contained in an auto-generated js file called something like: ScriptResource.axd?d=P_lo2...
After a few post-backs visual studio gets littered with many of these files, and it's a bit of a bear to check which one the current page is referencing. Any thoughts? | asp.net | asp.net-ajax | null | null | null | null | open | What is the best way the _DoPostBack javascript method in Asp.net
===
I want to set a breakpoint on the __DoPostBack method, but it's a pain to find the correct file to set the breakpoint in.
The method __DoPostBack is contained in an auto-generated js file called something like: ScriptResource.axd?d=P_lo2...
After a few post-backs visual studio gets littered with many of these files, and it's a bit of a bear to check which one the current page is referencing. Any thoughts? | 0 |
77,034 | 09/16/2008 21:01:16 | 13,842 | 09/16/2008 21:01:16 | 1 | 0 | How can I get Google Charts to display multiple colors in a scatter chart? | I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?
Thanks,
Kent Beck | google | charts | scatter | null | null | null | open | How can I get Google Charts to display multiple colors in a scatter chart?
===
I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?
Thanks,
Kent Beck | 0 |
77,082 | 09/16/2008 21:05:02 | 13,732 | 09/16/2008 20:39:59 | 1 | 0 | Cleanest way to implement collapsable entries in a table generated via asp:Repeater? | Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of a very large system, so it really wouldn't be wise for me to revise the table structure (the app is filled with similar tables).
This is a webapp in C# .NET - data comes in from a webservice and is displayed onscreen in a table. The table's rows are generated with asp:Repeaters, so that the rows alternate colers nicely. The table previously held one item of data per row. Now, essentially, the table has sub-headers... The first row is the date, the second row shows a line of data, and all the next rows are data rows until data of a new date comes in, in which case there will be another sub-header row.
At first I thought I could cheat a little and do this pretty easily to keep the current repeater structure- I just need to feed some cells the empty string so that no data appears in them. Now, however, we're considering one of those +/- collapsers next to each date, so that they can collapse all the data. My mind immediately went to hiding rows when a button is pressed... but I don't know how to hide rows from the code behind unless the row has a unique id, and I'm not sure if you can do that with repeaters.
I hope I've expressed the problem well. I'm sure I'll find a way TBH but I just saw this site on slashdot and thought I'd give it a whirl :) | c# | .net | repeater | null | null | null | open | Cleanest way to implement collapsable entries in a table generated via asp:Repeater?
===
Before anyone suggests scrapping the table tags altogether, I'm just modifying this part of a very large system, so it really wouldn't be wise for me to revise the table structure (the app is filled with similar tables).
This is a webapp in C# .NET - data comes in from a webservice and is displayed onscreen in a table. The table's rows are generated with asp:Repeaters, so that the rows alternate colers nicely. The table previously held one item of data per row. Now, essentially, the table has sub-headers... The first row is the date, the second row shows a line of data, and all the next rows are data rows until data of a new date comes in, in which case there will be another sub-header row.
At first I thought I could cheat a little and do this pretty easily to keep the current repeater structure- I just need to feed some cells the empty string so that no data appears in them. Now, however, we're considering one of those +/- collapsers next to each date, so that they can collapse all the data. My mind immediately went to hiding rows when a button is pressed... but I don't know how to hide rows from the code behind unless the row has a unique id, and I'm not sure if you can do that with repeaters.
I hope I've expressed the problem well. I'm sure I'll find a way TBH but I just saw this site on slashdot and thought I'd give it a whirl :) | 0 |
77,086 | 09/16/2008 21:05:26 | 13,778 | 09/16/2008 20:50:03 | 1 | 0 | Which is faster, python webpages or php webpages? | Does anyone know how the speed of pylons(or any of the other frameworks) compares to a similar website made with php?
I know that serving a python base webpage via cgi is slower than php because of its long start up every time.
I enjoy using pylons and I would still use it if it was slower than php. But if pylons was faster than php, I could maybe, hopefully, eventually convince my employer to allow me to convert the site over to pylons. | python | pylons | php | performance | null | null | open | Which is faster, python webpages or php webpages?
===
Does anyone know how the speed of pylons(or any of the other frameworks) compares to a similar website made with php?
I know that serving a python base webpage via cgi is slower than php because of its long start up every time.
I enjoy using pylons and I would still use it if it was slower than php. But if pylons was faster than php, I could maybe, hopefully, eventually convince my employer to allow me to convert the site over to pylons. | 0 |
77,090 | 09/16/2008 21:06:04 | 13,812 | 09/16/2008 20:56:34 | 1 | 0 | Are there any good Continuous Testing plugins for Eclipse out right now? | I've used the [MIT Continuous testing][1] plugin in the past, but it has long since passed out of date and is no longer compatible with anything approaching a modern release of Eclipse.
Does anyone have a good replacement? Free, naturally, is preferred.
[1]: http://groups.csail.mit.edu/pag/continuoustesting/ | testing | eclipse | null | null | null | null | open | Are there any good Continuous Testing plugins for Eclipse out right now?
===
I've used the [MIT Continuous testing][1] plugin in the past, but it has long since passed out of date and is no longer compatible with anything approaching a modern release of Eclipse.
Does anyone have a good replacement? Free, naturally, is preferred.
[1]: http://groups.csail.mit.edu/pag/continuoustesting/ | 0 |
77,102 | 09/16/2008 21:07:06 | 166 | 08/02/2008 21:28:38 | 131 | 4 | Adobe Reader Error Codes | I am programmatically creating PDFs, and a recent change to my generator is creating documents that crash both Mac Preview and Adobe Reader on my Mac. Before Adobe Reader crashes, it reports:
> There was an error processing a page.
> There was a problem reading this document (18).
I suspect that that "18" might give me some information on what is wrong with the PDF I've created. Is there a document explaining the meaning of these status codes? | pdf | pdf-generation | null | null | null | null | open | Adobe Reader Error Codes
===
I am programmatically creating PDFs, and a recent change to my generator is creating documents that crash both Mac Preview and Adobe Reader on my Mac. Before Adobe Reader crashes, it reports:
> There was an error processing a page.
> There was a problem reading this document (18).
I suspect that that "18" might give me some information on what is wrong with the PDF I've created. Is there a document explaining the meaning of these status codes? | 0 |
77,126 | 09/16/2008 21:09:00 | 13,846 | 09/16/2008 21:01:52 | 1 | 0 | What are some good compilers to use when learning C++? | What are some suggestions for easy to use C++ compilers for a beginner? Free or open-source ones would be preferred. | c++ | compiler | null | null | null | 06/06/2012 12:20:29 | not constructive | What are some good compilers to use when learning C++?
===
What are some suggestions for easy to use C++ compilers for a beginner? Free or open-source ones would be preferred. | 4 |
77,127 | 09/16/2008 21:09:02 | 279,750 | 09/16/2008 18:49:26 | 1 | 0 | When to throw an exception | I have exceptions created for every condition that my application does not expect. UserNameNotValidException, PasswordNotCorrectException etc.
However I was told I should not create exceptions for those conditions. In my UML those ARE exceptions to the main flow, so why should it not be an exception?
Any guidance or best practices for creating exceptions? | .net | null | null | null | null | null | open | When to throw an exception
===
I have exceptions created for every condition that my application does not expect. UserNameNotValidException, PasswordNotCorrectException etc.
However I was told I should not create exceptions for those conditions. In my UML those ARE exceptions to the main flow, so why should it not be an exception?
Any guidance or best practices for creating exceptions? | 0 |
77,128 | 09/16/2008 21:09:04 | 9,114 | 09/15/2008 17:45:21 | 1 | 6 | PHP Deployment to windows/unix servers | We have various php projects developed on windows (xampp) that need to be deployed to a mix of linux/windows servers.
We've used [capistrano][1] in the past to deploy from windows to the linux servers, but recent changes in architecture and windows servers left the old config not working.
Currently we're using svn-update for the windows servers, which i dislike. And manual updating of files using winscp and syncing the directories with their linux counterparts.
My question is, what tools/setup do you suggest to automatize this deployment scenario:
**"Various php windows developers deploying to 2+ mixed windows/linux machines"**
(ps: we have no problems using linux tools or anything working through cygwin, we simply need to make deployment a simple one-step operation)
[1]: http://www.capify.org/ | automation | php | windows | linux | deployment | null | open | PHP Deployment to windows/unix servers
===
We have various php projects developed on windows (xampp) that need to be deployed to a mix of linux/windows servers.
We've used [capistrano][1] in the past to deploy from windows to the linux servers, but recent changes in architecture and windows servers left the old config not working.
Currently we're using svn-update for the windows servers, which i dislike. And manual updating of files using winscp and syncing the directories with their linux counterparts.
My question is, what tools/setup do you suggest to automatize this deployment scenario:
**"Various php windows developers deploying to 2+ mixed windows/linux machines"**
(ps: we have no problems using linux tools or anything working through cygwin, we simply need to make deployment a simple one-step operation)
[1]: http://www.capify.org/ | 0 |
77,131 | 09/16/2008 21:09:09 | 180,142 | 09/09/2008 11:17:42 | 1 | 1 | kSOAP Marshalling help needed | Does anyone have a good complex object marshalling example using the kSOAP package? | soap | java-me | ksoap | null | null | null | open | kSOAP Marshalling help needed
===
Does anyone have a good complex object marshalling example using the kSOAP package? | 0 |
77,133 | 09/16/2008 21:09:12 | 1,849 | 08/18/2008 21:46:57 | 163 | 8 | Is it possible to send WM_QUERYENDSESSION messages to a window in a different process? | I want to debug a windows C++ application I've written to see why it isn't responding to WM_QUERYENDSESSION how I expect it to. Clearly it's a little tricky to do this by just shutting the system down. Is there any utility or code which I can use to send a fake WM_QUERYENDSESSION to my application windows myself? | winapi | message | null | null | null | null | open | Is it possible to send WM_QUERYENDSESSION messages to a window in a different process?
===
I want to debug a windows C++ application I've written to see why it isn't responding to WM_QUERYENDSESSION how I expect it to. Clearly it's a little tricky to do this by just shutting the system down. Is there any utility or code which I can use to send a fake WM_QUERYENDSESSION to my application windows myself? | 0 |
77,171 | 09/16/2008 21:12:29 | 2,133 | 08/20/2008 13:53:25 | 138 | 6 | data access in DDD? | After reading Evan's and Nilsson's books I am still not sure how to manage Data access in a domain driven project. Should the CRUD methods be part of the repositories, i.e. OrderRepository.GetOrdersByCustomer(customer) or should they be part of the entities: Customer.GetOrders(). The latter approach seems more OO, but it will distribute Data Access for a single entity type among multiple objects, i.e. Customer.GetOrders(), Invoice.GetOrders(), ShipmentBatch.GetOrders() ,etc. What about Inserting and updating? | ddd | data-access | null | null | null | null | open | data access in DDD?
===
After reading Evan's and Nilsson's books I am still not sure how to manage Data access in a domain driven project. Should the CRUD methods be part of the repositories, i.e. OrderRepository.GetOrdersByCustomer(customer) or should they be part of the entities: Customer.GetOrders(). The latter approach seems more OO, but it will distribute Data Access for a single entity type among multiple objects, i.e. Customer.GetOrders(), Invoice.GetOrders(), ShipmentBatch.GetOrders() ,etc. What about Inserting and updating? | 0 |
77,172 | 09/16/2008 21:12:35 | 7,856 | 09/15/2008 14:33:04 | 128 | 9 | Stored procedures/DB schema in source control | Do you guys keep track of stored procedures and database schema in your source control system of choice?
When you make a chance (add a table, update an stored proc, how do you get the changes into source control?
We use SQL Server at work, and I've begun using darcs for versioning, but I'd be curious about general strategies as well as any handy tools. | database | version-control | sql-server | null | null | null | open | Stored procedures/DB schema in source control
===
Do you guys keep track of stored procedures and database schema in your source control system of choice?
When you make a chance (add a table, update an stored proc, how do you get the changes into source control?
We use SQL Server at work, and I've begun using darcs for versioning, but I'd be curious about general strategies as well as any handy tools. | 0 |
77,193 | 09/16/2008 21:14:11 | 13,899 | 09/16/2008 21:14:11 | 1 | 0 | How do you justify Refactoring work to your penny-pinching boss? | You've just written a pile of code to deliver some important feature under pressure. You've cut a few corners, you've mashed some code into some over-bloated classes with names like SerialIndirectionShutoffManager..
You tell your boss you're going to need a week to clean this stuff up.
"Clean what up?"
"My code - its a pigsty!"
"You mean there's some more bug fixing?"
"Not really, its more like.."
"You're gonna make it run faster?"
"Perhaps, buts thats not.."
"Then you should have written it properly when you had the chance. Now I'm glad you're here, yeah, I'm gonna have to go ahead and ask you to come in this weekend.. "
I've read Matin Fowler's book, but I'm not sure I agree with his advice on this matter:
* Encourage regular code reviews, so refactoring work is encouraged as a natural part of the development process.
* Just don't tell, you're the developer and its part of your duty.
Both these methods squirm out of the need to communicate with your manager.
What do you tell your boss? | refactoring | null | null | null | null | null | open | How do you justify Refactoring work to your penny-pinching boss?
===
You've just written a pile of code to deliver some important feature under pressure. You've cut a few corners, you've mashed some code into some over-bloated classes with names like SerialIndirectionShutoffManager..
You tell your boss you're going to need a week to clean this stuff up.
"Clean what up?"
"My code - its a pigsty!"
"You mean there's some more bug fixing?"
"Not really, its more like.."
"You're gonna make it run faster?"
"Perhaps, buts thats not.."
"Then you should have written it properly when you had the chance. Now I'm glad you're here, yeah, I'm gonna have to go ahead and ask you to come in this weekend.. "
I've read Matin Fowler's book, but I'm not sure I agree with his advice on this matter:
* Encourage regular code reviews, so refactoring work is encouraged as a natural part of the development process.
* Just don't tell, you're the developer and its part of your duty.
Both these methods squirm out of the need to communicate with your manager.
What do you tell your boss? | 0 |
77,198 | 09/16/2008 21:15:02 | 4,787 | 09/05/2008 15:36:12 | 34 | 1 | What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do? | I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc).
Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't? | python | ruby | ruby-on-rails | flex | blazeds | null | open | What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?
===
I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc).
Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't? | 0 |
77,213 | 09/16/2008 21:15:52 | 2,648 | 08/23/2008 22:40:47 | 3 | 4 | eliminating duplicate Enum code | I have a large number of Enums that implement this interface:
/**
* Interface for an enumeration, each element of which can be uniquely identified by it's code
*/
public interface CodableEnum {
/**
* Get the element with a particular code
* @param code
* @return
*/
public CodableEnum getByCode(String code);
/**
* Get the code that identifies an element of the enum
* @return
*/
public String getCode();
}
A typical example is:
public enum IMType implements CodableEnum {
MSN_MESSENGER("msn_messenger"),
GOOGLE_TALK("google_talk"),
SKYPE("skype"),
YAHOO_MESSENGER("yahoo_messenger");
private final String code;
IMType (String code) {
this.code = code;
}
public String getCode() {
return code;
}
public IMType getByCode(String code) {
for (IMType e : IMType.values()) {
if (e.getCode().equalsIgnoreCase(code)) {
return e;
}
}
}
}
As you can imagine these methods are virtually identical in all implementations of CodableEnum. I would like to eliminate this duplication, but frankly don't know how. I tried using a class such as the following:
public abstract class DefaultCodableEnum implements CodableEnum {
private final String code;
DefaultCodableEnum(String code) {
this.code = code;
}
public String getCode() {
return this.code;
}
public abstract CodableEnum getByCode(String code);
}
But this turns out to be fairly useless because:
1. An enum cannot extend a class
2. Elements of an enum (SKYPE, GOOGLE_TALK, etc.) cannot extend a class
3. I cannot provide a default implementation of getByCode(), because DefaultCodableEnum is not itself an Enum. I tried changing DefaultCodableEnum to extend java.lang.Enum, but this doesn't appear to be allowed.
Any suggestions?
Thanks,
Don | java | enums | enumeration | null | null | null | open | eliminating duplicate Enum code
===
I have a large number of Enums that implement this interface:
/**
* Interface for an enumeration, each element of which can be uniquely identified by it's code
*/
public interface CodableEnum {
/**
* Get the element with a particular code
* @param code
* @return
*/
public CodableEnum getByCode(String code);
/**
* Get the code that identifies an element of the enum
* @return
*/
public String getCode();
}
A typical example is:
public enum IMType implements CodableEnum {
MSN_MESSENGER("msn_messenger"),
GOOGLE_TALK("google_talk"),
SKYPE("skype"),
YAHOO_MESSENGER("yahoo_messenger");
private final String code;
IMType (String code) {
this.code = code;
}
public String getCode() {
return code;
}
public IMType getByCode(String code) {
for (IMType e : IMType.values()) {
if (e.getCode().equalsIgnoreCase(code)) {
return e;
}
}
}
}
As you can imagine these methods are virtually identical in all implementations of CodableEnum. I would like to eliminate this duplication, but frankly don't know how. I tried using a class such as the following:
public abstract class DefaultCodableEnum implements CodableEnum {
private final String code;
DefaultCodableEnum(String code) {
this.code = code;
}
public String getCode() {
return this.code;
}
public abstract CodableEnum getByCode(String code);
}
But this turns out to be fairly useless because:
1. An enum cannot extend a class
2. Elements of an enum (SKYPE, GOOGLE_TALK, etc.) cannot extend a class
3. I cannot provide a default implementation of getByCode(), because DefaultCodableEnum is not itself an Enum. I tried changing DefaultCodableEnum to extend java.lang.Enum, but this doesn't appear to be allowed.
Any suggestions?
Thanks,
Don | 0 |
77,217 | 09/16/2008 21:16:07 | 4,808 | 09/05/2008 17:41:47 | 96 | 5 | Moving SQL2005 app to SQL2008 | I will be moving our production SQL2005 application to SQL2008 soon. Any things to lookout for before/after the move? Any warnings, advices?
Thank you! | sqlserver | sql-server-2005 | sql2005 | migration | sql2008 | null | open | Moving SQL2005 app to SQL2008
===
I will be moving our production SQL2005 application to SQL2008 soon. Any things to lookout for before/after the move? Any warnings, advices?
Thank you! | 0 |
77,226 | 09/16/2008 21:17:00 | 13,912 | 09/16/2008 21:17:00 | 1 | 0 | perl capitalize first letter | what is the easiest way to capitalize the first letter in each word of a string. | perl | null | null | null | null | null | open | perl capitalize first letter
===
what is the easiest way to capitalize the first letter in each word of a string. | 0 |
77,266 | 09/16/2008 21:22:34 | 1,359,466 | 09/16/2008 21:07:30 | 1 | 0 | Can operator>> read an int hex AND decimal? | Can I persuade operator>> in C++ to read both a hex value AND and a decimal value? The following program demonstrates how reading hex goes wrong. I'd like the same istringstream to be able to read both hex and decimal.
#include <iostream>
#include <sstream>
int main(int argc, char** argv)
{
int result = 0;
// std::istringstream is("5"); // this works
std::istringstream is("0x5"); // this fails
while ( is.good() ) {
if ( is.peek() != EOF )
is >> result;
else
break;
}
if ( is.fail() )
std::cout << "failed to read string" << std::endl;
else
std::cout << "successfully read string" << std::endl;
std::cout << "result: " << result << std::endl;
} | c++ | null | null | null | null | null | open | Can operator>> read an int hex AND decimal?
===
Can I persuade operator>> in C++ to read both a hex value AND and a decimal value? The following program demonstrates how reading hex goes wrong. I'd like the same istringstream to be able to read both hex and decimal.
#include <iostream>
#include <sstream>
int main(int argc, char** argv)
{
int result = 0;
// std::istringstream is("5"); // this works
std::istringstream is("0x5"); // this fails
while ( is.good() ) {
if ( is.peek() != EOF )
is >> result;
else
break;
}
if ( is.fail() )
std::cout << "failed to read string" << std::endl;
else
std::cout << "successfully read string" << std::endl;
std::cout << "result: " << result << std::endl;
} | 0 |
77,278 | 09/16/2008 21:23:41 | 11,827 | 09/16/2008 11:36:33 | 83 | 3 | How can I package my perl script to run on a machine without perl? | People also often ask "How can I compile perl?" while what they really want is to create an executable that can run on machines even if they don't have perl installed.
There are several solutions, I know of:
1. <a href="http://www.indigostar.com/perl2exe.htm">perl2exe</a> of IndigoStar
It is commercial. I never tried. Its web site says it can cross compile Win32, Linux, Solaris ...
2. <a href="http://www.activestate.com/Products/perl_dev_kit/">Perl Dev Kit</a> of ActiveState.
It is commercial. I used it several years ago on Windows and it worked well for my needs. According to its web site it works on Windows, Mac OS X, Linux, Solaris, AIX and HP-UX.
3. <a href="http://search.cpan.org/dist/PAR/">PAR</a> or rather <a href="http://search.cpan.org/dist/PAR-Packer/">PAR::Packer</a> that is free and open source. Based on the test reports it works on the Windows, Mac OS X, Linux, NetBSD and Solaris but theoretically it should work on other UNIX systems as well.
Recently I have started to use PAR for packaging on Linux and will use it on Windows as well.
Other recommended solutions?
| linux | perl | win32 | executable | distribution | null | open | How can I package my perl script to run on a machine without perl?
===
People also often ask "How can I compile perl?" while what they really want is to create an executable that can run on machines even if they don't have perl installed.
There are several solutions, I know of:
1. <a href="http://www.indigostar.com/perl2exe.htm">perl2exe</a> of IndigoStar
It is commercial. I never tried. Its web site says it can cross compile Win32, Linux, Solaris ...
2. <a href="http://www.activestate.com/Products/perl_dev_kit/">Perl Dev Kit</a> of ActiveState.
It is commercial. I used it several years ago on Windows and it worked well for my needs. According to its web site it works on Windows, Mac OS X, Linux, Solaris, AIX and HP-UX.
3. <a href="http://search.cpan.org/dist/PAR/">PAR</a> or rather <a href="http://search.cpan.org/dist/PAR-Packer/">PAR::Packer</a> that is free and open source. Based on the test reports it works on the Windows, Mac OS X, Linux, NetBSD and Solaris but theoretically it should work on other UNIX systems as well.
Recently I have started to use PAR for packaging on Linux and will use it on Windows as well.
Other recommended solutions?
| 0 |
77,280 | 09/16/2008 21:23:52 | 13,913 | 09/16/2008 21:17:03 | 1 | 0 | How do you set up an API key system for your website? | Let say that I have a website with some information that could be accesss externally. Those information need to be only change byt the respected client. Exemple: Google Analytic or WordPress API key. How can I create a system that work like that (no mather the programming language)? | api | website | null | null | null | null | open | How do you set up an API key system for your website?
===
Let say that I have a website with some information that could be accesss externally. Those information need to be only change byt the respected client. Exemple: Google Analytic or WordPress API key. How can I create a system that work like that (no mather the programming language)? | 0 |
77,287 | 09/16/2008 21:24:21 | 8,131 | 09/15/2008 15:14:20 | 1 | 5 | Trouble having a modal YUI dialog to open a secondary dialog | I have a modal dialog form which has some "help links" within it which should open other non-modal panels or dialogs on top of it (while keeping the main dialog otherwise modal). However, these always end up behind the mask. YUI seems to be recognizing the highest z-index out there and setting the mask and modal dialog to be higher than that.
If i wait to panel-ize the help content, then i can set those to have a higher z-index. So far, so good. The problem then is that fields within the secondary, non-modal dialogs are unfocusable. The modal dialog beneath them seems to somehow be preventing the focus from going to anything not in the initial, modal dialog.
Help! | javascript | yui | null | null | null | null | open | Trouble having a modal YUI dialog to open a secondary dialog
===
I have a modal dialog form which has some "help links" within it which should open other non-modal panels or dialogs on top of it (while keeping the main dialog otherwise modal). However, these always end up behind the mask. YUI seems to be recognizing the highest z-index out there and setting the mask and modal dialog to be higher than that.
If i wait to panel-ize the help content, then i can set those to have a higher z-index. So far, so good. The problem then is that fields within the secondary, non-modal dialogs are unfocusable. The modal dialog beneath them seems to somehow be preventing the focus from going to anything not in the initial, modal dialog.
Help! | 0 |
77,293 | 09/16/2008 21:24:44 | 9,058 | 09/15/2008 17:35:57 | 13 | 0 | What is an easy way to create a MessageBox with custom button text in Managed C++? | I would like to keep the overhead at a minimum. Right now I have:
// Launch a Message Box with advice to the user
DialogResult result = MessageBox::Show("This may take awhile, do you wish to continue?", "Warning", MessageBoxButtons::YesNo, MessageBoxIcon::Exclamation);
// The test will only be launched if the user has selected Yes on the Message Box
if(result == DialogResult::Yes)
{
// Execute code
}
Unfortunately my client would prefer "Continue" and "Cancel" in place of the default "Yes" and "No" button text. It seems like there should be an easy way to do this. | c++ | null | null | null | null | null | open | What is an easy way to create a MessageBox with custom button text in Managed C++?
===
I would like to keep the overhead at a minimum. Right now I have:
// Launch a Message Box with advice to the user
DialogResult result = MessageBox::Show("This may take awhile, do you wish to continue?", "Warning", MessageBoxButtons::YesNo, MessageBoxIcon::Exclamation);
// The test will only be launched if the user has selected Yes on the Message Box
if(result == DialogResult::Yes)
{
// Execute code
}
Unfortunately my client would prefer "Continue" and "Cancel" in place of the default "Yes" and "No" button text. It seems like there should be an easy way to do this. | 0 |
77,299 | 09/16/2008 21:24:58 | 2,745 | 08/24/2008 20:58:00 | 711 | 32 | Common comment tags | What common comment tags do you find useful, and how do you use them?
For instance, we standardize on:
//TODO: blah blah
//FIXME: blah blah
//NOTE: blah blah
We have an IDE plugin that is able to pick these up project wide as a reminder.
Do you use any of these aide memoirs? How do you use them? Are they useful? Do you find there are soon too many of them to be useful? Or do you find they clutter up your code when you never go back and tidy them out?
| comments | null | null | null | null | 04/05/2012 13:07:19 | not constructive | Common comment tags
===
What common comment tags do you find useful, and how do you use them?
For instance, we standardize on:
//TODO: blah blah
//FIXME: blah blah
//NOTE: blah blah
We have an IDE plugin that is able to pick these up project wide as a reminder.
Do you use any of these aide memoirs? How do you use them? Are they useful? Do you find there are soon too many of them to be useful? Or do you find they clutter up your code when you never go back and tidy them out?
| 4 |
77,317 | 09/16/2008 21:27:38 | 13,959 | 09/16/2008 21:27:37 | 1 | 0 | Infopath 2007 - How do I perform data validation on the current view ONLY? | I have an infopath 2007 form that I am developing which uses 3 different views.
The 3 different views are basically the same form, but have different text boxes shown, depending upon what button the user selects.
I run into a problem where 'view 1' has some form validation, but the user has selected 'view 2' and submits it. The form validation on 'view 1' is triggered, and the user cannot submit the form.
How can I ignore the form validation on 'view 1' if the user is currently submitting 'view 2'? | validation | data | infopath | views | 2007 | null | open | Infopath 2007 - How do I perform data validation on the current view ONLY?
===
I have an infopath 2007 form that I am developing which uses 3 different views.
The 3 different views are basically the same form, but have different text boxes shown, depending upon what button the user selects.
I run into a problem where 'view 1' has some form validation, but the user has selected 'view 2' and submits it. The form validation on 'view 1' is triggered, and the user cannot submit the form.
How can I ignore the form validation on 'view 1' if the user is currently submitting 'view 2'? | 0 |
77,342 | 09/16/2008 21:31:06 | 13,930 | 09/16/2008 21:20:53 | 1 | 0 | Why has XSLT never seen the popularity of many other languages that came out during the internet boom? | The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successful companies (i.e. Blizzard Entertainment), it has never seemed to reach mainstream. Why do you think this is? | xml | xslt | null | null | null | 04/05/2012 13:06:36 | not constructive | Why has XSLT never seen the popularity of many other languages that came out during the internet boom?
===
The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successful companies (i.e. Blizzard Entertainment), it has never seemed to reach mainstream. Why do you think this is? | 4 |
77,371 | 09/16/2008 21:34:34 | 419,165 | 09/16/2008 21:34:33 | 1 | 0 | Zend or CakePHP? | My group is going to attempt to build a new CMS from scratch, designed to serve the needs of our organization. It should be noted that none of us have any formal programming education, but we've picked up this and that from developing different websites, among others the one our community uses now. We've decided to program the new CMS in PHP, with total MVC seperation. Not wanting to re-invent all the little cogs and wheels needed for such a potentially large project as this, we've been looking into using a PHP framework, and some googling and blog-surfing landed us in a discussion: Zend vs Cake?
Anyone have any useful input here? Also, any other tips for embarking on this project would be appreciated. (Except for suggestions for existing CMSes, we know they're out there.) | cakephp | zend | framework | content-management-system | null | null | open | Zend or CakePHP?
===
My group is going to attempt to build a new CMS from scratch, designed to serve the needs of our organization. It should be noted that none of us have any formal programming education, but we've picked up this and that from developing different websites, among others the one our community uses now. We've decided to program the new CMS in PHP, with total MVC seperation. Not wanting to re-invent all the little cogs and wheels needed for such a potentially large project as this, we've been looking into using a PHP framework, and some googling and blog-surfing landed us in a discussion: Zend vs Cake?
Anyone have any useful input here? Also, any other tips for embarking on this project would be appreciated. (Except for suggestions for existing CMSes, we know they're out there.) | 0 |
77,387 | 09/16/2008 21:36:10 | 13,979 | 09/16/2008 21:36:10 | 1 | 0 | How to instantiate a Java array given an array type at runtime? | In the Java collections framework, the Collection interface declares the following method:
[<T> T[] toArray(T[] a)][1]
"Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. If the collection fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection."
If you wanted to implement this method, how would you create an array of the type of **a**, known only at runtime?
[1]: http://java.sun.com/javase/6/docs/api/java/util/Collection.html#toArray(T[]) | java | arrays | collections | null | null | null | open | How to instantiate a Java array given an array type at runtime?
===
In the Java collections framework, the Collection interface declares the following method:
[<T> T[] toArray(T[] a)][1]
"Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. If the collection fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection."
If you wanted to implement this method, how would you create an array of the type of **a**, known only at runtime?
[1]: http://java.sun.com/javase/6/docs/api/java/util/Collection.html#toArray(T[]) | 0 |
77,407 | 09/16/2008 21:38:07 | 9,922 | 09/15/2008 20:26:19 | 1 | 1 | Any good open-source load / stress tools to test EJBs? | There are a number of commercial offerings that I've come across but nothing open-source.
I realise that you could do something simiilar with JUnit / JMeter but I'm looking for something a bit more specific.
| ejb | stresstesting | loadtesting | null | null | null | open | Any good open-source load / stress tools to test EJBs?
===
There are a number of commercial offerings that I've come across but nothing open-source.
I realise that you could do something simiilar with JUnit / JMeter but I'm looking for something a bit more specific.
| 0 |
77,418 | 09/16/2008 21:38:57 | 12,386 | 09/16/2008 14:11:53 | 11 | 0 | Does such a piece of software exist? | I'm looking for an open source package written in java that implements a registration, authentication (like securityfilter) with captchas and email link verification and all that. I could write it, but why reinvent the wheel. I've looked all over the place and haven't found anything. Does such a thing exist?
| open-source | java | registration | authentication | null | null | open | Does such a piece of software exist?
===
I'm looking for an open source package written in java that implements a registration, authentication (like securityfilter) with captchas and email link verification and all that. I could write it, but why reinvent the wheel. I've looked all over the place and haven't found anything. Does such a thing exist?
| 0 |
77,428 | 09/16/2008 21:39:36 | 10,893 | 09/16/2008 02:47:19 | 1 | 3 | What is the best way to handle URL mappings between an RIA version and plain old HTML version of a site? | So if you have a RIA version (Silverlight or Flash) and a standard HTML version (or AJAX even), should you have the same URL for both, or is it ok to have a different one for the RIA app and just redirect accordingly?
So, for instance, if you have a site (http://example.com), is it ok to have the about page URL for the RIA app be http://example.com/#/about and the html be http://example.com/about? Does it matter?
Of course if you take the route with different URLs you will need to map between them. | ria | url | mapping | null | null | null | open | What is the best way to handle URL mappings between an RIA version and plain old HTML version of a site?
===
So if you have a RIA version (Silverlight or Flash) and a standard HTML version (or AJAX even), should you have the same URL for both, or is it ok to have a different one for the RIA app and just redirect accordingly?
So, for instance, if you have a site (http://example.com), is it ok to have the about page URL for the RIA app be http://example.com/#/about and the html be http://example.com/about? Does it matter?
Of course if you take the route with different URLs you will need to map between them. | 0 |
77,431 | 09/16/2008 21:40:15 | 13,978 | 09/16/2008 21:35:53 | 1 | 1 | Whats a good Javascript plugin color picker? | I make a lot of web applications and from time to time I need a color picker. Whats one that I can use like an API and doesn't require a lot of code to plug in? I also need it to work in all browsers. | javascript | color-picker | null | null | null | null | open | Whats a good Javascript plugin color picker?
===
I make a lot of web applications and from time to time I need a color picker. Whats one that I can use like an API and doesn't require a lot of code to plug in? I also need it to work in all browsers. | 0 |
77,434 | 09/16/2008 21:40:29 | 14,008 | 09/16/2008 21:40:29 | 1 | 0 | [R] How to access the last value in a vector? | Yes people, even though I'm talking about the R Project for Statistical Computing, it can still require programming!
Suppose I have a vector that is nested in a dataframe one or two levels. Is there a quick and dirty way to access the last value, without using the length() function? Something ala PERL's $# special var?
So I would like something like dat$vec1$vec2[$#], instead of dat$vec1$vec2[length(dat$vec1$vec2)]
Thanks! | statistics | r | vector | length | null | null | open | [R] How to access the last value in a vector?
===
Yes people, even though I'm talking about the R Project for Statistical Computing, it can still require programming!
Suppose I have a vector that is nested in a dataframe one or two levels. Is there a quick and dirty way to access the last value, without using the length() function? Something ala PERL's $# special var?
So I would like something like dat$vec1$vec2[$#], instead of dat$vec1$vec2[length(dat$vec1$vec2)]
Thanks! | 0 |
77,436 | 09/16/2008 21:40:43 | 8,621 | 09/15/2008 16:29:02 | 1 | 1 | Ant is not able to delete some files on windows | I have an ant build that makes directories, calls javac and all the regular stuff. The issue I am having is that when I try to do a clean (delete all the stuff that was generated) the delete task reports that is was unable to delete some files. When I try to delete them manually it works just fine. The files are apparently not open by any other process but ant still does not manage to delete them. What can I do? | java | windows | ant | build-automation | null | null | open | Ant is not able to delete some files on windows
===
I have an ant build that makes directories, calls javac and all the regular stuff. The issue I am having is that when I try to do a clean (delete all the stuff that was generated) the delete task reports that is was unable to delete some files. When I try to delete them manually it works just fine. The files are apparently not open by any other process but ant still does not manage to delete them. What can I do? | 0 |
77,473 | 09/16/2008 21:44:04 | 11,989 | 09/16/2008 12:45:19 | 1 | 0 | SQL Server Backup/Restore Process | The backup and restore process of a large database or collection of databases on sql server is very important for disaster & recovery purposes. However, I have not found a robust solution that will guarantee the whole process is as efficient as possible, 100% reliable and easily maintainable and configurable accross multiple servers.
Microsft's Maintenance Plans doesn't seem to be sufficient. The best solution I have used is one that I created manually using many jobs with many steps per database running on the source server (backup) and destination server (restore). The jobs use stored procedures to do the backup, copying & restoring. This runs once a day (full backup/restore) and intraday every 5 mins (transaction log shipping).
Although my current process works and reports any job failures via email, I know the whole process isn't very reliable and cannot be easily maintained/configured on all our servers by a non-DBA without having in-depth knowledge of the process.
I would like to know if others have this same backup/restore process and how others overcome this issue. | sqlserver | mssql | sql2005 | backup | restore | null | open | SQL Server Backup/Restore Process
===
The backup and restore process of a large database or collection of databases on sql server is very important for disaster & recovery purposes. However, I have not found a robust solution that will guarantee the whole process is as efficient as possible, 100% reliable and easily maintainable and configurable accross multiple servers.
Microsft's Maintenance Plans doesn't seem to be sufficient. The best solution I have used is one that I created manually using many jobs with many steps per database running on the source server (backup) and destination server (restore). The jobs use stored procedures to do the backup, copying & restoring. This runs once a day (full backup/restore) and intraday every 5 mins (transaction log shipping).
Although my current process works and reports any job failures via email, I know the whole process isn't very reliable and cannot be easily maintained/configured on all our servers by a non-DBA without having in-depth knowledge of the process.
I would like to know if others have this same backup/restore process and how others overcome this issue. | 0 |
77,485 | 09/16/2008 21:45:09 | 13,750 | 09/16/2008 20:44:07 | 1 | 0 | What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar? | What do folks here see as the relative strengths and weaknesses of Git, Mercurial, and Bazaar?
In considering each of them with one another and against version control systems like SVN and Perforce, what issues should be considered?
In planning a migration from SVN to one of these distributed version control systems, what factors would you consider? | configurationmanagement | versioncontrol | subversion | git | mercurial | null | open | What are the relative strengths and weaknesses of Git, Mercurial, and Bazaar?
===
What do folks here see as the relative strengths and weaknesses of Git, Mercurial, and Bazaar?
In considering each of them with one another and against version control systems like SVN and Perforce, what issues should be considered?
In planning a migration from SVN to one of these distributed version control systems, what factors would you consider? | 0 |
77,503 | 09/16/2008 21:46:33 | 8,664 | 09/15/2008 16:33:50 | 1 | 1 | C# Datatype for large sorted collection with position? | I am trying to compare two large datasets from a SQL query. Right now the SQL query is done externally and the results from each dataset is saved into its own csv file. My little C# console application loads up the two text/csv files and compares them for differences and saves the differences to a text file.
Its a very simple application that just loads all the data from the first file into an arraylist and does a .compare() on the arraylist as each line is read from the second csv file. Then saves the records that don't match.
The application works but I would like to improve the performance. I figure I can greatly improve performance if I can take advantage of the fact that both files are sorted, but I don't know a datatype in C# that keeps order and would allow me to select a specific position. Theres a basic array, but I don't know how many items are going to be in each list. I could have over a million records. Is there a data type available that I should be looking at?
| c# | comparision | datatype | sorted | null | null | open | C# Datatype for large sorted collection with position?
===
I am trying to compare two large datasets from a SQL query. Right now the SQL query is done externally and the results from each dataset is saved into its own csv file. My little C# console application loads up the two text/csv files and compares them for differences and saves the differences to a text file.
Its a very simple application that just loads all the data from the first file into an arraylist and does a .compare() on the arraylist as each line is read from the second csv file. Then saves the records that don't match.
The application works but I would like to improve the performance. I figure I can greatly improve performance if I can take advantage of the fact that both files are sorted, but I don't know a datatype in C# that keeps order and would allow me to select a specific position. Theres a basic array, but I don't know how many items are going to be in each list. I could have over a million records. Is there a data type available that I should be looking at?
| 0 |
77,507 | 09/16/2008 21:46:52 | 13,967 | 09/16/2008 21:31:46 | 1 | 0 | What are your favourite ZX Spectrum development tools? | What are your favourite assemblers, compilers, environments, interpreters for the good old ZX Spectrum? | z80 | zxspectrum | null | null | null | null | open | What are your favourite ZX Spectrum development tools?
===
What are your favourite assemblers, compilers, environments, interpreters for the good old ZX Spectrum? | 0 |
77,528 | 09/16/2008 21:48:52 | 4,115 | 09/01/2008 20:54:03 | 82 | 4 | How do you run CMD.exe under the Local System Account? | I'm currently running Vista and I would like to manually complete the same operations as my Windows Service. Since the Windows Service is running under the Local System Account, I would like to emulate this same behavior. Basically, I would like to run CMD.EXE under the Local System Account.
I found information online which suggests lauching the CMD.exe using the DOS Task Scheduler AT command, but I received a Vista warning that "due to security enhancements, this task will run at the time excepted but not interactively." Here's a sample command:
AT 12:00 /interactive cmd.exe
Another solution suggested creating a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
C:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact
C:\sc start RunCMDAsLSA
In this case the service fails to start and results it the following error message:
FAILED 1053: The service did not respond to the start or control request in a timely fashion.
The third suggestion was to launch CMD.exe via a Scheduled Task. Though you may run scheduled tasks under various accounts, I don't believe the Local System Account is one of them.
I've tried using the Runas as well, but think I'm running into the same restriction as found when running a scheduled task.
Thus far, each of my attempts have ended in failure. Any suggestions? | windows | services | account | null | null | null | open | How do you run CMD.exe under the Local System Account?
===
I'm currently running Vista and I would like to manually complete the same operations as my Windows Service. Since the Windows Service is running under the Local System Account, I would like to emulate this same behavior. Basically, I would like to run CMD.EXE under the Local System Account.
I found information online which suggests lauching the CMD.exe using the DOS Task Scheduler AT command, but I received a Vista warning that "due to security enhancements, this task will run at the time excepted but not interactively." Here's a sample command:
AT 12:00 /interactive cmd.exe
Another solution suggested creating a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
C:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact
C:\sc start RunCMDAsLSA
In this case the service fails to start and results it the following error message:
FAILED 1053: The service did not respond to the start or control request in a timely fashion.
The third suggestion was to launch CMD.exe via a Scheduled Task. Though you may run scheduled tasks under various accounts, I don't believe the Local System Account is one of them.
I've tried using the Runas as well, but think I'm running into the same restriction as found when running a scheduled task.
Thus far, each of my attempts have ended in failure. Any suggestions? | 0 |
77,531 | 09/16/2008 21:49:01 | 1,463 | 08/15/2008 17:26:44 | 571 | 41 | Where do I enter the Windows Server 2008 key after installing it? | When I installed Windows Server 2008 I didn't have the (activation) key. Now that I have it I can't find where to enter it. Anybody know? | server2008 | null | null | null | null | null | open | Where do I enter the Windows Server 2008 key after installing it?
===
When I installed Windows Server 2008 I didn't have the (activation) key. Now that I have it I can't find where to enter it. Anybody know? | 0 |
77,534 | 09/16/2008 21:49:14 | 5,726 | 09/11/2008 04:45:12 | 56 | 3 | wsdl.exe Error: Unable to import binding '...' from namespace '...' | When running wsdl.exe on a wsdl I created, I get this error:
Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'.
- Unable to import operation 'someOperation'.
- These members may not be derived.
I'm using the document-literal style, and to the best of my knowledge I'm following all the rules.
Anyone have similar experience and can share some advice? | .net | soap | wsdl | null | null | null | open | wsdl.exe Error: Unable to import binding '...' from namespace '...'
===
When running wsdl.exe on a wsdl I created, I get this error:
Error: Unable to import binding 'SomeBinding' from namespace 'SomeNS'.
- Unable to import operation 'someOperation'.
- These members may not be derived.
I'm using the document-literal style, and to the best of my knowledge I'm following all the rules.
Anyone have similar experience and can share some advice? | 0 |
77,535 | 09/16/2008 21:49:18 | 14,046 | 09/16/2008 21:49:18 | 1 | 0 | Need gcc/g++ working on SCO6 | Has anyone found a way to get gcc to build/install on SCO6? With 2.95 and 4.3 I get to the point where it needs to use (2.95) or find (4.3) the assembler and that's where it fails.
If anyone has figured this out I would appreciate the info!
Thanks | c++ | c | gcc | gnu | sco | null | open | Need gcc/g++ working on SCO6
===
Has anyone found a way to get gcc to build/install on SCO6? With 2.95 and 4.3 I get to the point where it needs to use (2.95) or find (4.3) the assembler and that's where it fails.
If anyone has figured this out I would appreciate the info!
Thanks | 0 |
77,552 | 09/16/2008 21:50:58 | 5,926 | 09/11/2008 17:20:07 | 56 | 1 | 'id' is a bad variable name in Python | Why is it bad to name a variable 'id' in Python? | python | null | null | null | null | null | open | 'id' is a bad variable name in Python
===
Why is it bad to name a variable 'id' in Python? | 0 |
77,558 | 09/16/2008 21:51:45 | 10,333 | 09/15/2008 22:28:36 | 81 | 1 | How can I use the PHP File api to write raw bytes? | I want to write a raw byte/byte stream to a position in a file.
This is what I have currently:
<pre>
<code>
$fpr = fopen($out, 'r+');
fseek($fpr, 1); //seek to second byte
fwrite($fpr, 0x63);
fclose($fpr);
</code>
</pre>
This currently writes the actually string value of "99" starting at byte offset 1. IE, it writes bytes "9" and "9". I just want to write the actual one byte value 0x63 which happens to represent number 99.
Thanks for your time. | php | file-io | null | null | null | null | open | How can I use the PHP File api to write raw bytes?
===
I want to write a raw byte/byte stream to a position in a file.
This is what I have currently:
<pre>
<code>
$fpr = fopen($out, 'r+');
fseek($fpr, 1); //seek to second byte
fwrite($fpr, 0x63);
fclose($fpr);
</code>
</pre>
This currently writes the actually string value of "99" starting at byte offset 1. IE, it writes bytes "9" and "9". I just want to write the actual one byte value 0x63 which happens to represent number 99.
Thanks for your time. | 0 |
77,582 | 09/16/2008 21:54:04 | 13,923 | 09/16/2008 21:19:57 | 1 | 1 | Test framework for black box regression testing | I am looking for a tool for regression testing a suite of equipment we are building.
The current concept is that you create an input file (text/csv) to the tool specifying inputs to the system under test. The tool then captures the outputs from the system and records the inputs and outputs to an output file.
The output is in the same format as the original input file and can be used as an input for following runs of the tool, with the measured outputs matched with the values from the previous run.
We would have to write our own interfaces to pass the commands from the tool to the equipment and to capture the output of the equipment.
| embedded | test | regression-test | null | null | null | open | Test framework for black box regression testing
===
I am looking for a tool for regression testing a suite of equipment we are building.
The current concept is that you create an input file (text/csv) to the tool specifying inputs to the system under test. The tool then captures the outputs from the system and records the inputs and outputs to an output file.
The output is in the same format as the original input file and can be used as an input for following runs of the tool, with the measured outputs matched with the values from the previous run.
We would have to write our own interfaces to pass the commands from the tool to the equipment and to capture the output of the equipment.
| 0 |
77,587 | 09/16/2008 21:54:17 | 9,922 | 09/15/2008 20:26:19 | 6 | 1 | Is there an integrated Eclipse plugin to debug Jython? | [JyDT](http://www.redrobinsoftware.net/jydt/) is a good Jython Eclipse plugin.
However, it doesn't allow Jython debugging in the Debug perspective.
Jython provides a command-line debugger (Pdb) but it operates outside Eclipse.
| debugging | eclipse-plugin | jython | null | null | null | open | Is there an integrated Eclipse plugin to debug Jython?
===
[JyDT](http://www.redrobinsoftware.net/jydt/) is a good Jython Eclipse plugin.
However, it doesn't allow Jython debugging in the Debug perspective.
Jython provides a command-line debugger (Pdb) but it operates outside Eclipse.
| 0 |
77,603 | 09/16/2008 21:55:16 | 13,688 | 09/16/2008 20:31:11 | 1 | 1 | Performance Testing | We are developing automated regression tests using VMWare and NUnit. We have divided tests into steps and now I would like to see each step be examined for performance regression. Simply timing the tests, as NUnit does, does not seem reliable. I have figured in a acceptance factor of about 15% but our steps can differ sometimes to over 35%. In such a resource dependent test environment is there any consistent way of testing performance? Is a "smart" timing system my only option? | .net | vmware | nunit | regressiontesting | null | null | open | Performance Testing
===
We are developing automated regression tests using VMWare and NUnit. We have divided tests into steps and now I would like to see each step be examined for performance regression. Simply timing the tests, as NUnit does, does not seem reliable. I have figured in a acceptance factor of about 15% but our steps can differ sometimes to over 35%. In such a resource dependent test environment is there any consistent way of testing performance? Is a "smart" timing system my only option? | 0 |
77,637 | 09/16/2008 21:58:03 | 10,922 | 09/16/2008 03:00:41 | 1 | 0 | SWFAddress Deeplinks and C# library? | Is there a C# class for interacting with SWFAddress deeplink URL strings (reading deeplink parameters, building SWFAddress URLs, etc.)? Planning to write one myself otherwise; but I wanted to make sure I wasn't reinventing the wheel first. | asp.net | flash | swf | null | null | null | open | SWFAddress Deeplinks and C# library?
===
Is there a C# class for interacting with SWFAddress deeplink URL strings (reading deeplink parameters, building SWFAddress URLs, etc.)? Planning to write one myself otherwise; but I wanted to make sure I wasn't reinventing the wheel first. | 0 |
77,639 | 09/16/2008 21:58:08 | 14,050 | 09/16/2008 21:50:00 | 1 | 0 | When is it right for a constructor to throw an exception? | When is it right for a constructor to throw an exception? (Or in the case of Objective C: when is it right for an init'er to return nil?)
It seems to me that a constructor should fail -- and thus refuse to create an object -- if the object isn't complete. I.e., the constructor should have a contract with its caller to provide a functional and working object on which methods can be called meaningfully? Is that reasonable?
| constructor | exception | null | null | null | null | open | When is it right for a constructor to throw an exception?
===
When is it right for a constructor to throw an exception? (Or in the case of Objective C: when is it right for an init'er to return nil?)
It seems to me that a constructor should fail -- and thus refuse to create an object -- if the object isn't complete. I.e., the constructor should have a contract with its caller to provide a functional and working object on which methods can be called meaningfully? Is that reasonable?
| 0 |
77,645 | 09/16/2008 21:58:28 | 12,016 | 09/16/2008 12:52:25 | 49 | 2 | Best practice: How to handle concurrency of brower and website navigation. | It is a well known problem to every web developer. As far as I tried to find a good solution to this problem - there was none (or at least I could not find it).
###_Lets assume the following:_
**_The user does not behave, as he was expected to._** The actual project I'm working in uses a navigation within the web portal. But if the user uses the browsers back button, the whole tings becommes jeoprady and the result was not allways predictable.
We used the struts framework and stored the back-url into forms - at some places, where we needed a back-url - this has been rendered out of this form's back-url. For there was only a singe field for this information and therefore it was not possible of going back multiple steps.
When you change the "struts-flow" - which may result in using a **different form** - this information will be lost.
If the user dares to put a **bookmark** somewhere within your webapp - this information may never have been set and again the result will again be either unpredictable or not flexible enough!
**My "solution"**:
I was storing every navigation-relevant page the user visited onto a **stack-like** storage into the **session**. This means a navigation-path is collected and stored for later navigations.
At any page within the webapp, where back-navigations are involved I used a self-made tag wich renders the stack-content into the url.
**And thats it**.
When this back-url was clicked, the stack has been filled with the contet from the back-url clicked by the user (which holds all informations from the stack once the back-link was rendered).
This is quite clear, because a click on a link is a clear state, where the web developer exactly knows, where the user "is" a this very moment - absolutely independant from whatever the user did before (e.g. hitting the browser back button multiple times). Then ne navigation stack is build upon this new state.
**Resumé:**
It commes clear, that this won't be the best solution. But it allows storing additional information on the stack like page parameters and some other usefull stuff (further developments possible).
**So, what were your solutions to this problem?**
cheers,
mana | struts | navigation | browser | null | null | null | open | Best practice: How to handle concurrency of brower and website navigation.
===
It is a well known problem to every web developer. As far as I tried to find a good solution to this problem - there was none (or at least I could not find it).
###_Lets assume the following:_
**_The user does not behave, as he was expected to._** The actual project I'm working in uses a navigation within the web portal. But if the user uses the browsers back button, the whole tings becommes jeoprady and the result was not allways predictable.
We used the struts framework and stored the back-url into forms - at some places, where we needed a back-url - this has been rendered out of this form's back-url. For there was only a singe field for this information and therefore it was not possible of going back multiple steps.
When you change the "struts-flow" - which may result in using a **different form** - this information will be lost.
If the user dares to put a **bookmark** somewhere within your webapp - this information may never have been set and again the result will again be either unpredictable or not flexible enough!
**My "solution"**:
I was storing every navigation-relevant page the user visited onto a **stack-like** storage into the **session**. This means a navigation-path is collected and stored for later navigations.
At any page within the webapp, where back-navigations are involved I used a self-made tag wich renders the stack-content into the url.
**And thats it**.
When this back-url was clicked, the stack has been filled with the contet from the back-url clicked by the user (which holds all informations from the stack once the back-link was rendered).
This is quite clear, because a click on a link is a clear state, where the web developer exactly knows, where the user "is" a this very moment - absolutely independant from whatever the user did before (e.g. hitting the browser back button multiple times). Then ne navigation stack is build upon this new state.
**Resumé:**
It commes clear, that this won't be the best solution. But it allows storing additional information on the stack like page parameters and some other usefull stuff (further developments possible).
**So, what were your solutions to this problem?**
cheers,
mana | 0 |
77,646 | 09/16/2008 21:58:34 | 383 | 08/05/2008 10:46:37 | 3,384 | 269 | Commodore C64 Emulator? | I'm kind of feeling nostalgic and want to play on a C64 like I did when I was 10, but I don't have one to hand.
Is there an emulator available?
(Preferably with game support too) | c64 | emulator | null | null | null | 04/11/2012 14:27:26 | off topic | Commodore C64 Emulator?
===
I'm kind of feeling nostalgic and want to play on a C64 like I did when I was 10, but I don't have one to hand.
Is there an emulator available?
(Preferably with game support too) | 2 |
77,659 | 09/16/2008 22:00:27 | 13,791 | 09/16/2008 20:52:40 | 1 | 0 | WebBrowser.ScriptErrorsSuppressed not working properly | I have a .NET **2.0** WebBrowser control used to navigate some pages with no user interaction (don't ask...long story). Because of the user-less nature of this application, I have set the WebBrowser control's ScriptErrorsSuppressed property to true, which the documentation included with VS 2005 states will [...]"hide all its dialog boxes that originate from the underlying ActiveX control, not just script errors." The [MSDN article] [1] doesn't mention this, however.
I have managed to cancel the NewWindow event, which prevents popups, so that's taken care of.
Anyone have any experience using one of these and successfully blocking **all** dialogs, script errors, etc?
[1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.scripterrorssuppressed(VS.80).aspx | .net | null | null | null | null | null | open | WebBrowser.ScriptErrorsSuppressed not working properly
===
I have a .NET **2.0** WebBrowser control used to navigate some pages with no user interaction (don't ask...long story). Because of the user-less nature of this application, I have set the WebBrowser control's ScriptErrorsSuppressed property to true, which the documentation included with VS 2005 states will [...]"hide all its dialog boxes that originate from the underlying ActiveX control, not just script errors." The [MSDN article] [1] doesn't mention this, however.
I have managed to cancel the NewWindow event, which prevents popups, so that's taken care of.
Anyone have any experience using one of these and successfully blocking **all** dialogs, script errors, etc?
[1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.scripterrorssuppressed(VS.80).aspx | 0 |
77,664 | 09/16/2008 22:00:46 | 5,055 | 09/07/2008 15:43:03 | 66 | 11 | Sql Server compatibility mode | Were currently running a server on Compatability mode 8 and I want to update it.
- What are the implications of just going in and changing it?
- What is likely to break?
- Is there anything that checks the data will survive before I perform it?
- Can I rollback to mode 8 without performing a restore and without loss of data? | sql-server | data | compatibility | update | upgrade | null | open | Sql Server compatibility mode
===
Were currently running a server on Compatability mode 8 and I want to update it.
- What are the implications of just going in and changing it?
- What is likely to break?
- Is there anything that checks the data will survive before I perform it?
- Can I rollback to mode 8 without performing a restore and without loss of data? | 0 |
77,670 | 09/16/2008 22:01:01 | 13,937 | 09/16/2008 21:21:53 | 1 | 2 | What is the best way to create a security architecture? | I'm designing a portal's security architecture. The site has pages, videos, pictures, users, databases, file system objects, etc. What is the best way to control access to all of these objects? How would you store permissions? Is a 64-bit database variable enough for storing permissions?
E.g. Windows employs [ACLs][1] and [SIDs][2]. Do you have a more up-to-date solution?
[1]: http://en.wikipedia.org/wiki/Access_control_list
[2]: http://en.wikipedia.org/wiki/Security_Identifier | security | design | architecture | webdesign | permissions | null | open | What is the best way to create a security architecture?
===
I'm designing a portal's security architecture. The site has pages, videos, pictures, users, databases, file system objects, etc. What is the best way to control access to all of these objects? How would you store permissions? Is a 64-bit database variable enough for storing permissions?
E.g. Windows employs [ACLs][1] and [SIDs][2]. Do you have a more up-to-date solution?
[1]: http://en.wikipedia.org/wiki/Access_control_list
[2]: http://en.wikipedia.org/wiki/Security_Identifier | 0 |
77,683 | 09/16/2008 22:02:12 | 14,113 | 09/16/2008 22:02:12 | 1 | 0 | Is there a specification-based testing framework for .Net 2.0? | For example, [Reductio](http://reductiotest.org/) (for Java/Scala) and [QuickCheck](http://www.cs.chalmers.se/~rjmh/QuickCheck/) (for Haskell). The kind of framework I'm thinking of would provide "generators" for built-in data types and allow the programmer to define new generators. Then, the programmer would define a property of the method in question, taking variables of the appropriate types as parameters. The framework then generates a bunch of random data for the parameters, and runs hundreds of tests of that method.
For example, if I implemented a Vector class, and it had an add() method, I might want to check that my addition commutes. So I would write something like (in pseudocode):
boolean testAddCommutes(Vector v1, Vector v2) {
return v1.add(v2).equals(v2.add(v1));
}
If I provide a way to generate random Vectors, the framework would let me run testAddCommutes with hundreds of different inputs. Does this ring a bell for anyone? | c# | testing | .net2.0 | automated-tests | null | null | open | Is there a specification-based testing framework for .Net 2.0?
===
For example, [Reductio](http://reductiotest.org/) (for Java/Scala) and [QuickCheck](http://www.cs.chalmers.se/~rjmh/QuickCheck/) (for Haskell). The kind of framework I'm thinking of would provide "generators" for built-in data types and allow the programmer to define new generators. Then, the programmer would define a property of the method in question, taking variables of the appropriate types as parameters. The framework then generates a bunch of random data for the parameters, and runs hundreds of tests of that method.
For example, if I implemented a Vector class, and it had an add() method, I might want to check that my addition commutes. So I would write something like (in pseudocode):
boolean testAddCommutes(Vector v1, Vector v2) {
return v1.add(v2).equals(v2.add(v1));
}
If I provide a way to generate random Vectors, the framework would let me run testAddCommutes with hundreds of different inputs. Does this ring a bell for anyone? | 0 |
77,686 | 09/16/2008 22:02:23 | 1,432 | 08/15/2008 15:33:54 | 1,052 | 67 | Java Applet - Partially Signed? | Is it possible to sign only part of an applet? Ie, have an applet that pops up no security warnings about being signed, but if some particular function is used (that requires privileges) then use the signed jar?
From what I can tell, some (perhaps most) browsers will pop up the warning for a signed applet even if you don't request privileges at all at execution time. I'd rather avoid that if possible. | java | security | applet | signing | null | null | open | Java Applet - Partially Signed?
===
Is it possible to sign only part of an applet? Ie, have an applet that pops up no security warnings about being signed, but if some particular function is used (that requires privileges) then use the signed jar?
From what I can tell, some (perhaps most) browsers will pop up the warning for a signed applet even if you don't request privileges at all at execution time. I'd rather avoid that if possible. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.