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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64,059 | 09/15/2008 15:41:42 | 2,577 | 08/23/2008 03:18:09 | 194 | 12 | Is there a way to keep a page from rendering once a person has logged out but hit the "back" button? | I have some website which requires a logon and shows sensitive information.
The person goes to the page, is prompted to log in, then gets to see the information.
The person logs out of the site, and is redirected back to the login page.
The person then can hit "back" and go right back to the page where the sensitive information is contained. Since the browser just thinks of it as rendered HTML, it shows it to them no problem.
Is there a way to prevent that information from being displayed when the person hits the "back" button from the logged out screen? I'm not trying to disable the back button itself, I'm just trying to keep the sensitive information from being displayed again because the person is not logged into the site anymore.
For the sake of argument, the above site/scenario is in ASP.NET with Forms Authentication (so when the user goes to the first page, which is the page they want, they're redirected to the logon page - in case that makes a difference). | asp.net | security | backbutton | null | null | null | open | Is there a way to keep a page from rendering once a person has logged out but hit the "back" button?
===
I have some website which requires a logon and shows sensitive information.
The person goes to the page, is prompted to log in, then gets to see the information.
The person logs out of the site, and is redirected back to the login page.
The person then can hit "back" and go right back to the page where the sensitive information is contained. Since the browser just thinks of it as rendered HTML, it shows it to them no problem.
Is there a way to prevent that information from being displayed when the person hits the "back" button from the logged out screen? I'm not trying to disable the back button itself, I'm just trying to keep the sensitive information from being displayed again because the person is not logged into the site anymore.
For the sake of argument, the above site/scenario is in ASP.NET with Forms Authentication (so when the user goes to the first page, which is the page they want, they're redirected to the logon page - in case that makes a difference). | 0 |
64,061 | 09/15/2008 15:41:56 | 7,346 | 09/15/2008 13:35:28 | 3 | 3 | What Feed Reader libraries for Java are best? | What Java library would you say is the best for consuming and parsing feeds? Requirements:
- Embeddable
- Supports Atom & RSS
- Has caching architecture
- Should be able to deal with any feed format the same way | java | rss | feeds | null | null | null | open | What Feed Reader libraries for Java are best?
===
What Java library would you say is the best for consuming and parsing feeds? Requirements:
- Embeddable
- Supports Atom & RSS
- Has caching architecture
- Should be able to deal with any feed format the same way | 0 |
64,072 | 09/15/2008 15:43:01 | 8,167 | 09/15/2008 15:18:16 | 1 | 0 | Is there a Delphi/FreePascal BitTorrent library? | I'm doing a feed reader type of application for torrents. Something to give you a sound when it's sitting in the tray and a new torrent shows up on one of your categories of choice.
This will be done in Delphi or FreePascal when it's solid.
My question is due to the possible need to integrate a BT client in the future. | delphi | bittorrent | freepascal | null | null | null | open | Is there a Delphi/FreePascal BitTorrent library?
===
I'm doing a feed reader type of application for torrents. Something to give you a sound when it's sitting in the tray and a new torrent shows up on one of your categories of choice.
This will be done in Delphi or FreePascal when it's solid.
My question is due to the possible need to integrate a BT client in the future. | 0 |
64,092 | 09/15/2008 15:45:30 | 8,220 | 09/15/2008 15:27:27 | 1 | 0 | Autoproxy configuration script parsing in .Net/C# | In order for my application (.Net 1.1) to use the system configured proxy server (trough a proxy.pac script) I was using an interop calls to WinHTTP function WinHttpGetProxyForUrl, passing the proxy.pac url I got from the registry.
Unfortunately, I hit a deployment scenario, where this does not work, as the proxy.pac file is deployed locally on the user's hard drive, and the url is "file://C://xxxx"
As clearly stated in the WinHttpGetProxyForUrl docs, it works only with http and https schemes, so it fails with file://
I'm considering 2 "ugly" solutions to the problem (the pac file is javascript):
1. Creating a separate JScript.NET project, with a single class with single static method Eval(string), and use it to eval in runtime the function read from the pac file
2. Building at runtime a JScript.NET assembly and load it.
As these solutions are really ugly :), does anybody know a better approach? Is there a Windows function which I can use trough interop?
If not, what are you guys thinking about the above 2 solutions - which one would you prefer? | c# | autoproxy | jscript.net | null | null | null | open | Autoproxy configuration script parsing in .Net/C#
===
In order for my application (.Net 1.1) to use the system configured proxy server (trough a proxy.pac script) I was using an interop calls to WinHTTP function WinHttpGetProxyForUrl, passing the proxy.pac url I got from the registry.
Unfortunately, I hit a deployment scenario, where this does not work, as the proxy.pac file is deployed locally on the user's hard drive, and the url is "file://C://xxxx"
As clearly stated in the WinHttpGetProxyForUrl docs, it works only with http and https schemes, so it fails with file://
I'm considering 2 "ugly" solutions to the problem (the pac file is javascript):
1. Creating a separate JScript.NET project, with a single class with single static method Eval(string), and use it to eval in runtime the function read from the pac file
2. Building at runtime a JScript.NET assembly and load it.
As these solutions are really ugly :), does anybody know a better approach? Is there a Windows function which I can use trough interop?
If not, what are you guys thinking about the above 2 solutions - which one would you prefer? | 0 |
64,117 | 09/15/2008 15:48:33 | 4,096 | 09/01/2008 18:43:59 | 5 | 2 | Fastest way to delete all the data in a large table | I had to delete all the rows from a log table that contained about 5 million rows. My initial try was to issue the following command in query analyzer:
delete from client_log
which took a very long time.
| sql | server | transact-sql | null | null | null | open | Fastest way to delete all the data in a large table
===
I had to delete all the rows from a log table that contained about 5 million rows. My initial try was to issue the following command in query analyzer:
delete from client_log
which took a very long time.
| 0 |
64,139 | 09/15/2008 15:50:45 | 194 | 08/03/2008 10:56:49 | 2,191 | 135 | UserControl Property of type Enum displays in designer as bool or not at all | I have a usercontrol that has several public properties. These properties automatically show up in the properties window of the VS2005 designer under the "Misc" category. Except two of the properties which are enumerations don't show up correctly.
The first on uses the following enum:
public enum VerticalControlAlign
{
Center,
Top,
Bottom
}
This does not show up in the designer *at all.*
The second uses this enum:
public enum AutoSizeMode
{
None,
KeepInControl
}
This one shows up, but the designer seems to think it's a bool and only shows True and False. And when you build a project using the controls it will say that it can't convert type bool to AutoSizeMode.
Also, these enums are declared globably to the Namespace, so they are accessible everywhere.
Any ideas?
| c# | visual-studio | enums | usercontrols | null | null | open | UserControl Property of type Enum displays in designer as bool or not at all
===
I have a usercontrol that has several public properties. These properties automatically show up in the properties window of the VS2005 designer under the "Misc" category. Except two of the properties which are enumerations don't show up correctly.
The first on uses the following enum:
public enum VerticalControlAlign
{
Center,
Top,
Bottom
}
This does not show up in the designer *at all.*
The second uses this enum:
public enum AutoSizeMode
{
None,
KeepInControl
}
This one shows up, but the designer seems to think it's a bool and only shows True and False. And when you build a project using the controls it will say that it can't convert type bool to AutoSizeMode.
Also, these enums are declared globably to the Namespace, so they are accessible everywhere.
Any ideas?
| 0 |
64,141 | 09/15/2008 15:51:02 | 8,324 | 09/15/2008 15:44:04 | 1 | 0 | classes in python | In python is there any way to make a class then make a second version of that class with identical data but which can be changed then reverted to be the same as the data in the original class? So I would make a class with the numbers 1 to 5 as the data in it then make a second class with the same names for sections or very similiar. Mess around with the numbers in the second class then with one function then reset them to be the same as in the first class. The only alternative I've found is to make one aggravatingly long class with too many separate pieces of data in it to be readily usable. | python | classes | null | null | null | null | open | classes in python
===
In python is there any way to make a class then make a second version of that class with identical data but which can be changed then reverted to be the same as the data in the original class? So I would make a class with the numbers 1 to 5 as the data in it then make a second class with the same names for sections or very similiar. Mess around with the numbers in the second class then with one function then reset them to be the same as in the first class. The only alternative I've found is to make one aggravatingly long class with too many separate pieces of data in it to be readily usable. | 0 |
64,146 | 09/15/2008 15:52:10 | 6,311 | 09/13/2008 22:48:19 | 1 | 0 | What is the best way to format a localized string in AppleScript? | When a script is saved as a bundle, it can use the `localized string` command to find the appropriate string, e.g. in `Contents/Resources/English.lproj/Localizable.strings`. If this is a format string, what is the best way to fill in the placeholders? In other words, what is the AppleScript equivalent of `+[NSString stringWithFormat:]`?
One idea I had was to use `do shell script` with `printf(1)`. Is there a better way? | applescript | null | null | null | null | null | open | What is the best way to format a localized string in AppleScript?
===
When a script is saved as a bundle, it can use the `localized string` command to find the appropriate string, e.g. in `Contents/Resources/English.lproj/Localizable.strings`. If this is a format string, what is the best way to fill in the placeholders? In other words, what is the AppleScript equivalent of `+[NSString stringWithFormat:]`?
One idea I had was to use `do shell script` with `printf(1)`. Is there a better way? | 0 |
64,148 | 09/15/2008 15:52:31 | 6,856 | 09/15/2008 12:44:01 | 1 | 0 | How to upgrade database schema built with an ORM tool? | I'm looking for a general solution for upgrading database schema with ORM tools, like JPOX or Hibernate. How do you do it in your projects?
The first solution that comes to my mind is to create my own mechanism for upgrading databases, with SQL scripts doing all the work. But in this case I'll have to remember about creating new scripts every time the object mappings are updated. And I'll still have to deal with low-level SQL queries, instead of just defining mappings and allowing the ORM tools to do all the job...
So the question is how to do it properly. Maybe some tools allow for simplifying this task (for example, I heard that Rails have such mechanism built-in), if so please help me decide which ORM tool to choose. | java | orm | database | migration | null | null | open | How to upgrade database schema built with an ORM tool?
===
I'm looking for a general solution for upgrading database schema with ORM tools, like JPOX or Hibernate. How do you do it in your projects?
The first solution that comes to my mind is to create my own mechanism for upgrading databases, with SQL scripts doing all the work. But in this case I'll have to remember about creating new scripts every time the object mappings are updated. And I'll still have to deal with low-level SQL queries, instead of just defining mappings and allowing the ORM tools to do all the job...
So the question is how to do it properly. Maybe some tools allow for simplifying this task (for example, I heard that Rails have such mechanism built-in), if so please help me decide which ORM tool to choose. | 0 |
64,170 | 09/15/2008 15:55:42 | 8,349 | 09/15/2008 15:45:45 | 1 | 0 | Is there good .sol editor for Flash Player 9 Local Shared Objects? Can we build one? | There's plenty of them out there but none of them do what I would like them to do.
Most of them crash when opening a file or simply corrupt the data. Many don't run at all. It seems to me that most were written 3-4 years ago for AS2 .sols and no longer work with FP9/AS3 sols. I'd attempt to write my own using AIR but I can't find a new spec of the byte format.
There's an explanation of the file format here:
http://sourceforge.net/docman/display_doc.php?docid=27026&group_id=131628
and another here:
http://sourceforge.net/docman/display_doc.php?docid=27026&group_id=131628
but it looks as though both of these docs are a good 4 years old (pre-FP9) and as I'm not skilled or experienced in file formats, writing a new one, especially without an updated spec, is seeming like less and less of a viable option.
Ideally I'd like one that can not only read the .sol, but edit and save new values also.
Thanks! | flash | actionscript | 3 | 9 | null | null | open | Is there good .sol editor for Flash Player 9 Local Shared Objects? Can we build one?
===
There's plenty of them out there but none of them do what I would like them to do.
Most of them crash when opening a file or simply corrupt the data. Many don't run at all. It seems to me that most were written 3-4 years ago for AS2 .sols and no longer work with FP9/AS3 sols. I'd attempt to write my own using AIR but I can't find a new spec of the byte format.
There's an explanation of the file format here:
http://sourceforge.net/docman/display_doc.php?docid=27026&group_id=131628
and another here:
http://sourceforge.net/docman/display_doc.php?docid=27026&group_id=131628
but it looks as though both of these docs are a good 4 years old (pre-FP9) and as I'm not skilled or experienced in file formats, writing a new one, especially without an updated spec, is seeming like less and less of a viable option.
Ideally I'd like one that can not only read the .sol, but edit and save new values also.
Thanks! | 0 |
64,174 | 09/15/2008 15:56:00 | 8,404 | 09/15/2008 15:56:00 | 1 | 0 | How to change Firefox icon? | Is there any way to change Firefox system icon (the one on the left top of the window)? | firefox | icons | null | null | null | null | open | How to change Firefox icon?
===
Is there any way to change Firefox system icon (the one on the left top of the window)? | 0 |
64,185 | 09/15/2008 15:57:48 | 6,525 | 09/15/2008 12:00:06 | 21 | 4 | Nice Python wrapper for Yahoo's Geoplanet web service? | Has anybody created a nice wrapper around Yahoo's geo webservice "GeoPlanet" yet? | python | geo | null | null | null | null | open | Nice Python wrapper for Yahoo's Geoplanet web service?
===
Has anybody created a nice wrapper around Yahoo's geo webservice "GeoPlanet" yet? | 0 |
64,193 | 09/15/2008 15:58:52 | 7,316 | 09/15/2008 13:32:01 | 1 | 0 | Ajax Control Toolkit Calendar Control CSS | I am using the AJAX Control Toolkit Popup Calendar Control in a datagrid. When it is in the footer it looks fine. When it is in the edit side of the datagrid it is inheriting the style from the datagrid and looks completely different (i.e. too big).
Is there a way to alter the CSS so that it does not inherit the style from the datagrid? | css | ajaxtoolkit | null | null | null | null | open | Ajax Control Toolkit Calendar Control CSS
===
I am using the AJAX Control Toolkit Popup Calendar Control in a datagrid. When it is in the footer it looks fine. When it is in the edit side of the datagrid it is inheriting the style from the datagrid and looks completely different (i.e. too big).
Is there a way to alter the CSS so that it does not inherit the style from the datagrid? | 0 |
64,197 | 09/15/2008 15:59:53 | 7,851 | 09/15/2008 14:32:38 | 1 | 1 | Make Test.QuickCheck.Batch use a default type for testing list functions | I am testing a function called extractions that operates over any list.
extractions :: [a] -> [(a,[a])]
extractions [] = []
extractions l = extract l []
where extract [] _ = []
extract (x:xs) prev = (x, prev++xs) : extract xs (x : prev)
I want to test it, for example, with
import Test.QuickCheck.Batch
prop_len l = length l == length (extractions l)
main = runTests "extractions" defOpt [run prop_len]
But this won't compile; I have to supply a type either for `run` or `prop_len`, because QuickCheck can't generate `[a]`, it has to generate something concrete. So I chose `Int`:
main = runTests "extractions" defOpt [r prop_len]
where r = run :: ([Int] -> Bool) -> TestOptions -> IO TestResult
Is there any way to get QuickCheck to choose `a` for me instead of having it specified in the type of `run`? | testing | haskell | typeinference | null | null | null | open | Make Test.QuickCheck.Batch use a default type for testing list functions
===
I am testing a function called extractions that operates over any list.
extractions :: [a] -> [(a,[a])]
extractions [] = []
extractions l = extract l []
where extract [] _ = []
extract (x:xs) prev = (x, prev++xs) : extract xs (x : prev)
I want to test it, for example, with
import Test.QuickCheck.Batch
prop_len l = length l == length (extractions l)
main = runTests "extractions" defOpt [run prop_len]
But this won't compile; I have to supply a type either for `run` or `prop_len`, because QuickCheck can't generate `[a]`, it has to generate something concrete. So I chose `Int`:
main = runTests "extractions" defOpt [r prop_len]
where r = run :: ([Int] -> Bool) -> TestOptions -> IO TestResult
Is there any way to get QuickCheck to choose `a` for me instead of having it specified in the type of `run`? | 0 |
64,202 | 09/15/2008 16:00:00 | 2,253 | 08/21/2008 10:34:11 | 93 | 12 | How to add a constant column when replicating a database? | I am using SQL Server 2000 and I have two databases that both replicate (transactional push subscription) to a single database. I need to know which database the records came from.
So I want to add a fixed column specified in the publication to my table so I can tell which database the row originated from.
How do I go about doing this? | sql-server | replication | null | null | null | null | open | How to add a constant column when replicating a database?
===
I am using SQL Server 2000 and I have two databases that both replicate (transactional push subscription) to a single database. I need to know which database the records came from.
So I want to add a fixed column specified in the publication to my table so I can tell which database the row originated from.
How do I go about doing this? | 0 |
64,204 | 09/15/2008 16:00:21 | 7,668 | 09/15/2008 14:11:18 | 1 | 0 | Can I filter the messages I receive from a message queue (MSMQ) by some property? (a.k.a. topic) | I am creating a Windows Service in C# that processes messages from a queue. I want to give ops the flexibility of partitioning the service in production according to properties of the message. For example, they should be able to say that one instance processes web orders from Customer A, another batch orders from Customer A, a third web or batch orders from Customer B, and so on.
My current solution is to assign separate queues to each customer\source combination. The process that puts orders into the queues has to make the right decision. My Windows Service can be configured to pull messages from one or more queues. It's messy, but it works. | msmq | null | null | null | null | null | open | Can I filter the messages I receive from a message queue (MSMQ) by some property? (a.k.a. topic)
===
I am creating a Windows Service in C# that processes messages from a queue. I want to give ops the flexibility of partitioning the service in production according to properties of the message. For example, they should be able to say that one instance processes web orders from Customer A, another batch orders from Customer A, a third web or batch orders from Customer B, and so on.
My current solution is to assign separate queues to each customer\source combination. The process that puts orders into the queues has to make the right decision. My Windows Service can be configured to pull messages from one or more queues. It's messy, but it works. | 0 |
64,208 | 09/15/2008 16:00:46 | 4,550 | 09/04/2008 17:50:43 | 124 | 12 | How to force nolock hint for sql server logins | Does anyone know of a way to force a nolock hint on all transactions issued by a certain user? I'd like to provide a login for a support team to query the production system, but I want to protect it by forcing a nolock on everything they do. I'm using SQL Server 2005. | sql-server | security | sql2005 | query | queryoptimization | null | open | How to force nolock hint for sql server logins
===
Does anyone know of a way to force a nolock hint on all transactions issued by a certain user? I'd like to provide a login for a support team to query the production system, but I want to protect it by forcing a nolock on everything they do. I'm using SQL Server 2005. | 0 |
64,209 | 09/15/2008 16:01:02 | 8,406 | 09/15/2008 15:56:27 | 1 | 0 | Detect changes in random ordered input (hash function?) | I'm reading lines of text that can come in any order. The problem is that the output can actually be indentical to the previous output. How can I detect this, without sorting the output first?
Is there some kind of hash function that can take identical input, but in any order, and still produce the same result? | java | multithreading | hash | null | null | null | open | Detect changes in random ordered input (hash function?)
===
I'm reading lines of text that can come in any order. The problem is that the output can actually be indentical to the previous output. How can I detect this, without sorting the output first?
Is there some kind of hash function that can take identical input, but in any order, and still produce the same result? | 0 |
64,213 | 09/15/2008 16:01:12 | 8,330 | 09/15/2008 15:44:22 | 1 | 0 | What is the most useful multi-purpose open-source library? | Are there any open-source libraries that all programmers should know about? I'm thinking
something general, a sort of extension to the standard `java.util` that contains basic functions that are useful for all kinds of application. | java | open-source | null | null | null | null | open | What is the most useful multi-purpose open-source library?
===
Are there any open-source libraries that all programmers should know about? I'm thinking
something general, a sort of extension to the standard `java.util` that contains basic functions that are useful for all kinds of application. | 0 |
64,214 | 09/15/2008 16:01:15 | 7,898 | 09/15/2008 14:39:30 | 1 | 0 | Should rails models be concerned with other models for the sake of skinny controllers? | I read everywhere that business logic belongs in the models and not in controller but where is the limit?
I am toying with a personnal accounting application.
Account
Entry
Operation
When creating an operation it is only valid if the corresponding entries are created and linked to accounts so that the operation is balanced for exemple buy a 6-pack :
o=Operation.new({:description=>"b33r", :user=>current_user, :date=>"2008/09/15"})
o.entries.build({:account_id=>1, :amount=>15})
o.valid? #=>false
o.entries.build({:account_id=>2, :amount=>-15})
o.valid? #=>true
Now the form shown to the user in the case of *basic operations* is simplified to hide away the entries details, the accounts are selected among 5 default by the kind of operation requested by the user (intialise account -> equity to accout, spend assets->expenses, earn revenues->assets, borrow liabilities->assets, pay debt assets->liabilities ...) I want the entries created from default values.
I also want to be able to create more complex operations (more than 2 entries). For this second use case I will have a different form where the additional complexity is exposed.This second use case prevents me from including a debit and credit field on the Operation and getting rid of the Entry link.
Which is the best form ? Using the above code in a SimpleOperationController as I do for the moment, or defining a new method on the Operation class so I can call Operation.new_simple_operation(params[:operation])
Isn't it breaking the separation of concerns to actually create and manipulate Entry objects from the Operation class ?
I am not looking for advice on my twisted accounting principles :) | ruby | ruby-on-rails | best-practice | null | null | null | open | Should rails models be concerned with other models for the sake of skinny controllers?
===
I read everywhere that business logic belongs in the models and not in controller but where is the limit?
I am toying with a personnal accounting application.
Account
Entry
Operation
When creating an operation it is only valid if the corresponding entries are created and linked to accounts so that the operation is balanced for exemple buy a 6-pack :
o=Operation.new({:description=>"b33r", :user=>current_user, :date=>"2008/09/15"})
o.entries.build({:account_id=>1, :amount=>15})
o.valid? #=>false
o.entries.build({:account_id=>2, :amount=>-15})
o.valid? #=>true
Now the form shown to the user in the case of *basic operations* is simplified to hide away the entries details, the accounts are selected among 5 default by the kind of operation requested by the user (intialise account -> equity to accout, spend assets->expenses, earn revenues->assets, borrow liabilities->assets, pay debt assets->liabilities ...) I want the entries created from default values.
I also want to be able to create more complex operations (more than 2 entries). For this second use case I will have a different form where the additional complexity is exposed.This second use case prevents me from including a debit and credit field on the Operation and getting rid of the Entry link.
Which is the best form ? Using the above code in a SimpleOperationController as I do for the moment, or defining a new method on the Operation class so I can call Operation.new_simple_operation(params[:operation])
Isn't it breaking the separation of concerns to actually create and manipulate Entry objects from the Operation class ?
I am not looking for advice on my twisted accounting principles :) | 0 |
64,233 | 09/15/2008 16:03:08 | 8,428 | 09/15/2008 15:59:53 | 1 | 0 | Warnings fatal on Windows | While working between a Windows MySQL server and a Debian MySQL server, I noticed that warnings were fatal on Windows, but silently ignored on Debian. I'd like to make the warnings fatal on both servers while I'm doing development, but I wasn't able to find a setting that effected this behavior. Anyone have any ideas? | mysql | null | null | null | null | null | open | Warnings fatal on Windows
===
While working between a Windows MySQL server and a Debian MySQL server, I noticed that warnings were fatal on Windows, but silently ignored on Debian. I'd like to make the warnings fatal on both servers while I'm doing development, but I wasn't able to find a setting that effected this behavior. Anyone have any ideas? | 0 |
64,237 | 09/15/2008 16:03:22 | 8,420 | 09/15/2008 15:59:11 | 1 | 1 | When to create a new app (with startapp) in Django? | I've googled around for this, but I still have trouble relating to what Django defines as "apps".
Should I create a new app for each piece of functionality in a site, even though it uses models from the main project?
Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality together with the "main project" or other apps? | python | django | null | null | null | null | open | When to create a new app (with startapp) in Django?
===
I've googled around for this, but I still have trouble relating to what Django defines as "apps".
Should I create a new app for each piece of functionality in a site, even though it uses models from the main project?
Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality together with the "main project" or other apps? | 0 |
64,238 | 09/15/2008 16:03:46 | 5,056 | 09/07/2008 15:43:17 | 855 | 65 | Castle Windsor: How do you add a call to a factory facility not in xml? | I know how to tell Castle Windsor to resolve a reference from a factory's method using XML, but can I do it programmatically via the Container.AddComponent() interface? If not is there any other way to do it from code? | castlle-windsor | .net | null | null | null | null | open | Castle Windsor: How do you add a call to a factory facility not in xml?
===
I know how to tell Castle Windsor to resolve a reference from a factory's method using XML, but can I do it programmatically via the Container.AddComponent() interface? If not is there any other way to do it from code? | 0 |
64,242 | 09/15/2008 16:03:59 | 5,487 | 09/09/2008 23:17:20 | 299 | 8 | Rhino Mocks, TypeMock, Moq, or NMock? Which one do you use and why? | Which one do you use (if you the listed ones) and what do you love and hate about it? | .net | unit-testing | mocking | null | null | null | open | Rhino Mocks, TypeMock, Moq, or NMock? Which one do you use and why?
===
Which one do you use (if you the listed ones) and what do you love and hate about it? | 0 |
64,258 | 09/15/2008 16:06:03 | 1,683 | 08/18/2008 00:30:32 | 160 | 11 | CryptUnprotectData in Vista not working | I'm using an identical call to "CryptUnprotectData" (exposed from Crypt32.dll) between XP and Vista. Works fine in XP. I get the following exception when I run in Vista:
"Decryption failed. Key not valid for use in specified state."
As expected, the versions of crypt32.dll are different between XP and Vista (w/XP actually having the more recent, possibly as a result of SP3 or some other update).
Anyone seen this one before? | encryption | crypt | windows-vista | null | null | null | open | CryptUnprotectData in Vista not working
===
I'm using an identical call to "CryptUnprotectData" (exposed from Crypt32.dll) between XP and Vista. Works fine in XP. I get the following exception when I run in Vista:
"Decryption failed. Key not valid for use in specified state."
As expected, the versions of crypt32.dll are different between XP and Vista (w/XP actually having the more recent, possibly as a result of SP3 or some other update).
Anyone seen this one before? | 0 |
64,272 | 09/15/2008 16:07:51 | 7,305 | 09/15/2008 13:30:18 | 1 | 0 | How to eliminate flicker in Windows.Forms custom control when scrolling? | I want to create a custom control in C#. But every time I have to fully redraw my control, it flickers, even if I use double buffering (drawing to an Image first, and blitting that).
How do I eliminate flicker when I have to fully redraw? | gdi+ | .net | c# | null | null | null | open | How to eliminate flicker in Windows.Forms custom control when scrolling?
===
I want to create a custom control in C#. But every time I have to fully redraw my control, it flickers, even if I use double buffering (drawing to an Image first, and blitting that).
How do I eliminate flicker when I have to fully redraw? | 0 |
64,284 | 09/15/2008 16:09:15 | 1,115,144 | 09/15/2008 16:09:15 | 1 | 0 | What's the best way to load highly re-used data in a .net web application | Let's say I have a list of categories for navigation on a web app. Rather than selecting from the database for evey user, should I add a function call in the application_onStart of the global.asax to fetch that data into an array or collection that is re-used over and over. If my data does not change at all, would this be the best way? | design | application | global-asax | onstart | null | null | open | What's the best way to load highly re-used data in a .net web application
===
Let's say I have a list of categories for navigation on a web app. Rather than selecting from the database for evey user, should I add a function call in the application_onStart of the global.asax to fetch that data into an array or collection that is re-used over and over. If my data does not change at all, would this be the best way? | 0 |
64,293 | 09/15/2008 16:10:05 | 7,621 | 09/15/2008 14:04:58 | 11 | 5 | Does emacs have something like vi's "set number" | So that each line starts with its line number? | emacs | editor | null | null | null | null | open | Does emacs have something like vi's "set number"
===
So that each line starts with its line number? | 0 |
64,303 | 09/15/2008 16:11:20 | 7,532 | 09/15/2008 13:55:10 | 1 | 0 | Convert WAV to WMA using .NET | What is the best solution for converting WAV files to WMA (and vice versa) in C#? I have actually implemented this once already using the Windows Media Encoder SDK, but having to distribute Windows Media Encoder with my application is cumbersome to say the least. The Windows Media Format SDK has large sections of the API marked as deprecated. It looks like there might be some DirectX Media Objects (DMOs) I could use from the Windows SDK, but there would be an awful lot of interop to write.
I am wondering if there perhaps is a good managed wrapper for an unmanaged library that can perform the conversions. It would need a license that allows it to be distributed as part of a closed source commercial application. | .net | audio | wma | null | null | null | open | Convert WAV to WMA using .NET
===
What is the best solution for converting WAV files to WMA (and vice versa) in C#? I have actually implemented this once already using the Windows Media Encoder SDK, but having to distribute Windows Media Encoder with my application is cumbersome to say the least. The Windows Media Format SDK has large sections of the API marked as deprecated. It looks like there might be some DirectX Media Objects (DMOs) I could use from the Windows SDK, but there would be an awful lot of interop to write.
I am wondering if there perhaps is a good managed wrapper for an unmanaged library that can perform the conversions. It would need a license that allows it to be distributed as part of a closed source commercial application. | 0 |
64,311 | 09/15/2008 16:13:15 | 4,284 | 09/02/2008 16:44:32 | 31 | 2 | How do you vertically center a custom image in a <li> element across browsers? | The design for the website I am working on calls for a custom image on lists instead of a bullet. Using the image is fine, but I have been having difficulties ensuring that it is centered against the text of the list item across all browsers. Does anyone know of a standard solution for this? | css | null | null | null | null | null | open | How do you vertically center a custom image in a <li> element across browsers?
===
The design for the website I am working on calls for a custom image on lists instead of a bullet. Using the image is fine, but I have been having difficulties ensuring that it is centered against the text of the list item across all browsers. Does anyone know of a standard solution for this? | 0 |
64,314 | 09/15/2008 16:13:34 | 5,891 | 09/11/2008 15:16:20 | 51 | 6 | Copying databases to remote locations | Our EPOS system copies data by compressing the database into a zip file, and manually copying to each till, using shared directories.
Each branched is liked to the main location, using VPN which can be problematic, but is required for the file sharing to work correctly.
Since our database system currently does not support replication, is there another solution for copying data or should we migrate our software to another database? | database | vpn | file-sharing | epos | null | null | open | Copying databases to remote locations
===
Our EPOS system copies data by compressing the database into a zip file, and manually copying to each till, using shared directories.
Each branched is liked to the main location, using VPN which can be problematic, but is required for the file sharing to work correctly.
Since our database system currently does not support replication, is there another solution for copying data or should we migrate our software to another database? | 0 |
64,321 | 09/15/2008 16:14:18 | 8,522 | 09/15/2008 16:14:17 | 1 | 0 | refactoring in assembly | you write a function, and looking at the resulting assembly, you see it can be improved. you improve the assembly, but what is the relationship between the function you wrote and the new assembly? | disassembling | bumming | optimizing | null | null | null | open | refactoring in assembly
===
you write a function, and looking at the resulting assembly, you see it can be improved. you improve the assembly, but what is the relationship between the function you wrote and the new assembly? | 0 |
64,333 | 09/15/2008 16:15:50 | 8,509 | 09/15/2008 16:11:39 | 1 | 0 | What is the downside to Test Driven Development? | What do I lose by adopting test driven design. I am not looking for the positives, only the negatives. | unit-testing | testing | tdd | null | null | 10/07/2011 17:34:50 | not constructive | What is the downside to Test Driven Development?
===
What do I lose by adopting test driven design. I am not looking for the positives, only the negatives. | 4 |
64,351 | 09/15/2008 16:18:02 | 8,534 | 09/15/2008 16:16:10 | 1 | 0 | using load() to load page that also uses jQuery | I'm trying to load a page that is basically an edit form inside a
dialog (ui.dialog). I can load this page fine from an external (I'm
using asp.net) page.
The problem is that inside of my "popup" form, I need to $(function()
{my function here}); syntax to do some stuff when the page loads,
along with registering some .fn extensions for some dynamic dropdowns
using ajax calls.
I have created my <script type="text/javascript" src="jquery.js"> but
I don't think these are being included, and also my $(function) is not
being called.
Is this possible to do or do I need to find another way of
accomplishing what I need to do? | jquery | jquery-ui | null | null | null | null | open | using load() to load page that also uses jQuery
===
I'm trying to load a page that is basically an edit form inside a
dialog (ui.dialog). I can load this page fine from an external (I'm
using asp.net) page.
The problem is that inside of my "popup" form, I need to $(function()
{my function here}); syntax to do some stuff when the page loads,
along with registering some .fn extensions for some dynamic dropdowns
using ajax calls.
I have created my <script type="text/javascript" src="jquery.js"> but
I don't think these are being included, and also my $(function) is not
being called.
Is this possible to do or do I need to find another way of
accomplishing what I need to do? | 0 |
64,360 | 09/15/2008 16:18:55 | 8,522 | 09/15/2008 16:14:17 | 1 | 0 | how to copy text from emacs to another application | when i yank text in emacs, i can't paste it anywhere else. i'm reduced to opening kate to copy the text with ^C. is there a better way? | emacs | editing | copy-paste | null | null | null | open | how to copy text from emacs to another application
===
when i yank text in emacs, i can't paste it anywhere else. i'm reduced to opening kate to copy the text with ^C. is there a better way? | 0 |
64,362 | 09/15/2008 16:18:59 | 8,548 | 09/15/2008 16:18:58 | 1 | 0 | How can I access App Engine through a Corporate proxy? | I have corporate proxy that supports https but not HTTP CONNECT. It is well documented the urllib2 does not work with https thru a proxy. App Engine trys to connect to a https URL using urllib2 to
update the app.
On *nix, urllib2 expects proxies to set using env variables.
export http_proxy="http://mycorporateproxy:8080"
export https_proxy="https://mycorporateproxy:8080"
This is sited as a work around: [http://code.activestate.com/recipes/456195/][1]. Also see [http://code.google.com/p/googleappengine/issues/detail?id=126][2].
None of these fixes have worked for me. They seem to rely on the proxy server supporting HTTP CONNECT. Does anyone have any other work arounds? I sure I am not the only
one behind a restrictive corporate proxy.
[1]: http://code.activestate.com/recipes/456195/
[2]: http://code.google.com/p/googleappengine/issues/detail?id=126 | python | appengine | null | null | null | null | open | How can I access App Engine through a Corporate proxy?
===
I have corporate proxy that supports https but not HTTP CONNECT. It is well documented the urllib2 does not work with https thru a proxy. App Engine trys to connect to a https URL using urllib2 to
update the app.
On *nix, urllib2 expects proxies to set using env variables.
export http_proxy="http://mycorporateproxy:8080"
export https_proxy="https://mycorporateproxy:8080"
This is sited as a work around: [http://code.activestate.com/recipes/456195/][1]. Also see [http://code.google.com/p/googleappengine/issues/detail?id=126][2].
None of these fixes have worked for me. They seem to rely on the proxy server supporting HTTP CONNECT. Does anyone have any other work arounds? I sure I am not the only
one behind a restrictive corporate proxy.
[1]: http://code.activestate.com/recipes/456195/
[2]: http://code.google.com/p/googleappengine/issues/detail?id=126 | 0 |
64,364 | 09/15/2008 16:19:14 | 6,216 | 09/13/2008 00:09:37 | 21 | 4 | Jabber Openfire server v3.6.0a+ - how do I use Hybrid authentication? | I'm setting up a Jabber server for my website. I've already got some user accounts in place in the openfire database, and working IMs between them.
I'm now looking to add (some) of the users from my main database ('members' table, with 'login', 'password'[plain text]) and 'allowed_to_IM'[0 or 1] fields) to allow them to communicate between themselves. The 'Hybrid' authentication is a new feature in v3.6.0a however, and there's little documentation in what configuration is required in the 'openfire.xml' file for the database connectivity (to a second database), and what else may go in the properties (which have also taken much of the config's info away of the XML file).
My question is - does anyone have a complete example that checks multiple databases? All the examples I'm seen seem to be just fragments.
Thanks. | configuration | xmpp | openfire | null | null | null | open | Jabber Openfire server v3.6.0a+ - how do I use Hybrid authentication?
===
I'm setting up a Jabber server for my website. I've already got some user accounts in place in the openfire database, and working IMs between them.
I'm now looking to add (some) of the users from my main database ('members' table, with 'login', 'password'[plain text]) and 'allowed_to_IM'[0 or 1] fields) to allow them to communicate between themselves. The 'Hybrid' authentication is a new feature in v3.6.0a however, and there's little documentation in what configuration is required in the 'openfire.xml' file for the database connectivity (to a second database), and what else may go in the properties (which have also taken much of the config's info away of the XML file).
My question is - does anyone have a complete example that checks multiple databases? All the examples I'm seen seem to be just fragments.
Thanks. | 0 |
64,380 | 09/15/2008 16:22:00 | 732 | 08/08/2008 12:46:21 | 21 | 5 | Using Apache mod_rewrite to remove sub-directories from URL | I'm managing an instance of Wordpress where the URLs are in the following format:
http://www.example.com/example-category/blog-post-permalink/
The blog author did an inconsistent job of adding categories to posts, so while some of them had legitimate categories in their URLS, at least half are "uncategorized".
I can easily change Wordpress to render the URL w/o the category name (e.g., `http://www.example.com/blog-post-permalink/`), but I'd like to create a mod_rewrite rule to automatically redirect any requests for the previous format to the new, cleaner one.
Do you have a good mod_rewrite recipe to handle this, taking into account that I want to honor requests for the real WordPress directories that are in my webroot? | apache | wordpress | mod-rewrite | null | null | null | open | Using Apache mod_rewrite to remove sub-directories from URL
===
I'm managing an instance of Wordpress where the URLs are in the following format:
http://www.example.com/example-category/blog-post-permalink/
The blog author did an inconsistent job of adding categories to posts, so while some of them had legitimate categories in their URLS, at least half are "uncategorized".
I can easily change Wordpress to render the URL w/o the category name (e.g., `http://www.example.com/blog-post-permalink/`), but I'd like to create a mod_rewrite rule to automatically redirect any requests for the previous format to the new, cleaner one.
Do you have a good mod_rewrite recipe to handle this, taking into account that I want to honor requests for the real WordPress directories that are in my webroot? | 0 |
64,388 | 09/15/2008 16:23:46 | 8,586 | 09/15/2008 16:23:46 | 1 | 0 | Visual Studio Extensibility: Adding existing folders to a project | I'm trying to use Visual Studio 2008's extensibility to write an addin that will create a project folder with various messages in it after parsing an interface. I'm having trouble at the step of creating/adding the folder, however. I've tried using
ProjectItem folder =
item.ProjectItem.Collection.AddFolder(newDirectoryName, string.Empty);
(item is my target file next to which I'm creating a folder with the same name but "Messages" appended to it) but it chokes when a folder already exists (no big surprise).
I tried deleting it if it already exists, such as:
DirectoryInfo dirInfo = new DirectoryInfo(newDirectoryParent +
newDirectoryName);
if (dirInfo.Exists)
{
dirInfo.Delete(true);
}
ProjectItem folder =
item.ProjectItem.Collection.AddFolder(newDirectoryName, string.Empty);
I can SEE that the folder gets deleted when in debug, but it still
seems to think the folder is still there and dies on a folder already
exists exception.
Any ideas???
Thanks.
AK
| visual-studio | extensibility | addin | null | null | null | open | Visual Studio Extensibility: Adding existing folders to a project
===
I'm trying to use Visual Studio 2008's extensibility to write an addin that will create a project folder with various messages in it after parsing an interface. I'm having trouble at the step of creating/adding the folder, however. I've tried using
ProjectItem folder =
item.ProjectItem.Collection.AddFolder(newDirectoryName, string.Empty);
(item is my target file next to which I'm creating a folder with the same name but "Messages" appended to it) but it chokes when a folder already exists (no big surprise).
I tried deleting it if it already exists, such as:
DirectoryInfo dirInfo = new DirectoryInfo(newDirectoryParent +
newDirectoryName);
if (dirInfo.Exists)
{
dirInfo.Delete(true);
}
ProjectItem folder =
item.ProjectItem.Collection.AddFolder(newDirectoryName, string.Empty);
I can SEE that the folder gets deleted when in debug, but it still
seems to think the folder is still there and dies on a folder already
exists exception.
Any ideas???
Thanks.
AK
| 0 |
64,392 | 09/15/2008 16:23:52 | 103,373 | 09/15/2008 16:23:52 | 1 | 0 | Game programming in Java? | What are the best practices for programming commerical games in Java? What libraries should be used?
Are there any succesfull commercial games projects in Java?
| java | null | null | null | null | null | open | Game programming in Java?
===
What are the best practices for programming commerical games in Java? What libraries should be used?
Are there any succesfull commercial games projects in Java?
| 0 |
64,397 | 09/15/2008 16:24:18 | 6,068 | 09/12/2008 08:42:06 | 11 | 2 | What is the best way to store big files in Plone 3? | I want to serve a lot of big files in a Plone site. By big files I mean around 5MB (music) and a lot of them. I've already do it straight to the ZODB, not a good idea. I'm running Plone 3.1.1 and Zope 2.10.6. | plone | null | null | null | null | null | open | What is the best way to store big files in Plone 3?
===
I want to serve a lot of big files in a Plone site. By big files I mean around 5MB (music) and a lot of them. I've already do it straight to the ZODB, not a good idea. I'm running Plone 3.1.1 and Zope 2.10.6. | 0 |
64,400 | 09/15/2008 16:25:08 | 69,503 | 09/15/2008 15:25:15 | 21 | 5 | Is there any AIM API for PHP that would allow a user to set their status from a website? | Some users on a site I have been working on have requested the ability to allow the server to set their aim status when they are listening to a song though our flash music player. I looked at the AIM developer pages, but didn't see any API for PHP.
I would be more than willing to write my own, but first I want to make sure that it will be possible to update a user's status from a website, and secondly a library doesn't already exist.
What would you suggest? | php | api | aim | null | null | null | open | Is there any AIM API for PHP that would allow a user to set their status from a website?
===
Some users on a site I have been working on have requested the ability to allow the server to set their aim status when they are listening to a song though our flash music player. I looked at the AIM developer pages, but didn't see any API for PHP.
I would be more than willing to write my own, but first I want to make sure that it will be possible to update a user's status from a website, and secondly a library doesn't already exist.
What would you suggest? | 0 |
64,408 | 09/15/2008 16:26:03 | 1,113 | 08/12/2008 12:53:12 | 33 | 1 | How do I get rid of "Cannot resolve property key" in fmt:message tags in JSPs in Intellij | This one has been bugging me for a while now.
Is there a way I can stop Intellj IDEA from reporting missing keys in <fmt:message> tags?
My messages are not stored in property files so the issue does not apply in my case. | java | ide | jsp | intellij | jstl | null | open | How do I get rid of "Cannot resolve property key" in fmt:message tags in JSPs in Intellij
===
This one has been bugging me for a while now.
Is there a way I can stop Intellj IDEA from reporting missing keys in <fmt:message> tags?
My messages are not stored in property files so the issue does not apply in my case. | 0 |
64,420 | 09/15/2008 16:27:33 | 8,597 | 09/15/2008 16:25:13 | 1 | 0 | How can I write an iPhone app entirely in JavaScript without making it just a web app? | I don't want to take the time to learn Obj-C. I've spent 7+ years doing web application programming. Shouldn't there be a way to use the WebView and just write the whole app in javascript, pulling the files right from the resources of the project? | javascript | iphone | objectivec | null | null | null | open | How can I write an iPhone app entirely in JavaScript without making it just a web app?
===
I don't want to take the time to learn Obj-C. I've spent 7+ years doing web application programming. Shouldn't there be a way to use the WebView and just write the whole app in javascript, pulling the files right from the resources of the project? | 0 |
64,426 | 09/15/2008 16:27:47 | 8,585 | 09/15/2008 16:23:30 | 1 | 0 | Best Python supported server/client protocol? | I'm looking for a good server/client protocol supported in Python for making data requests/file transfers between one server and many clients. Security is also an issue - so secure login would be a plus. I've been looking into XML-RPC, but it looks to be a pretty old (and possibly unused these days?) protocol. Thanks for your help in advance. | python | client | null | null | null | null | open | Best Python supported server/client protocol?
===
I'm looking for a good server/client protocol supported in Python for making data requests/file transfers between one server and many clients. Security is also an issue - so secure login would be a plus. I've been looking into XML-RPC, but it looks to be a pretty old (and possibly unused these days?) protocol. Thanks for your help in advance. | 0 |
64,432 | 09/15/2008 16:28:08 | 8,563 | 09/15/2008 16:20:55 | 1 | 0 | How do I programatically sanitise coldfusion cfquery parameters. | I have inherited a large legacy coldfusion app. There are hundreds of <cfquery>some sql here #variable#</cfquery> statements that need to be parameterized along the lines of: <cfquery> some sql here <cfqueryparam value="#variable#"/> </cfquery>
How can I go about adding parameterization programatically?
I have thought about writing some regular expression or sed/awk'y sort of solution, but it seems like somebody somewhere has tackled such a problem. Bonus points awarded for inferring the sql type automatically.
Thanks.
| coldfusion | cfquery | cfqueryparam | sqlinjection | null | null | open | How do I programatically sanitise coldfusion cfquery parameters.
===
I have inherited a large legacy coldfusion app. There are hundreds of <cfquery>some sql here #variable#</cfquery> statements that need to be parameterized along the lines of: <cfquery> some sql here <cfqueryparam value="#variable#"/> </cfquery>
How can I go about adding parameterization programatically?
I have thought about writing some regular expression or sed/awk'y sort of solution, but it seems like somebody somewhere has tackled such a problem. Bonus points awarded for inferring the sql type automatically.
Thanks.
| 0 |
64,434 | 09/15/2008 16:28:23 | 672 | 08/07/2008 16:18:07 | 733 | 57 | Convert Parallels VM to Virtual PC 2007 VM | I'd like to convert a Parallels Virtual Machine image on my mac into an image usable by Virtual PC 2007. Does anyone know how to do that, or if it is possible? | virtualization | virtual-pc | parallels | null | null | null | open | Convert Parallels VM to Virtual PC 2007 VM
===
I'd like to convert a Parallels Virtual Machine image on my mac into an image usable by Virtual PC 2007. Does anyone know how to do that, or if it is possible? | 0 |
64,436 | 09/15/2008 16:28:28 | 69,157 | 09/05/2008 13:30:56 | 1 | 0 | Function Overloading in Excel VBA | I'm using Excel VBA to a write a UDF. I would like to overload my own UDF with a couple of different versions so that different arguments will call different functions.
As VBA doesn't seem to support this, could anyone suggest a good, non-messy way of achieving the same goal? Should I be using Optional arguments or is there a better way?
Thanks,
Patrick | excel | vba | null | null | null | null | open | Function Overloading in Excel VBA
===
I'm using Excel VBA to a write a UDF. I would like to overload my own UDF with a couple of different versions so that different arguments will call different functions.
As VBA doesn't seem to support this, could anyone suggest a good, non-messy way of achieving the same goal? Should I be using Optional arguments or is there a better way?
Thanks,
Patrick | 0 |
64,451 | 09/15/2008 16:30:44 | 1,341 | 08/14/2008 15:30:17 | 442 | 14 | How do you convert a physical machine into a virtual machine image for use in MS Virtual Server or Hyper-V? | I'd like to use free tools if they exist... | microsoft | virtualization | hyper-v | null | null | null | open | How do you convert a physical machine into a virtual machine image for use in MS Virtual Server or Hyper-V?
===
I'd like to use free tools if they exist... | 0 |
64,454 | 09/15/2008 16:31:02 | 8,315 | 09/15/2008 15:42:47 | 1 | 0 | What is the best way to make a .net client consume service from a Java server ? | I have a user interface in .net which needs to receive data from a server, on a request/reply/update model. The only constraint is to use Java only on the server box.
What is the best approach to achieve this ? Is it by creating a Webservice in Java and then accessing it in .net, or should I create Java proxies and convert them in .net by using IKM ? Or do you have any better idea ? It can be HTTP based, used a direct socket connection, or any middleware.
Thanks. | java | c# | interop | null | null | null | open | What is the best way to make a .net client consume service from a Java server ?
===
I have a user interface in .net which needs to receive data from a server, on a request/reply/update model. The only constraint is to use Java only on the server box.
What is the best approach to achieve this ? Is it by creating a Webservice in Java and then accessing it in .net, or should I create Java proxies and convert them in .net by using IKM ? Or do you have any better idea ? It can be HTTP based, used a direct socket connection, or any middleware.
Thanks. | 0 |
64,468 | 09/15/2008 16:32:48 | 8,324 | 09/15/2008 15:44:04 | 4 | 0 | leaving a time delay in python | is there any way to leave a time delay between the execution of two lines of code? | python | timedelay | null | null | null | null | open | leaving a time delay in python
===
is there any way to leave a time delay between the execution of two lines of code? | 0 |
64,469 | 09/15/2008 16:32:52 | 8,482 | 09/15/2008 16:07:44 | 1 | 0 | VB.NET on Vista, trying to get date (Today) causes security exception | I have a VB6 program that someone recently helped me convert to VB.NET
In the program, when saving files, I stamp them with the date which I was getting by calling the Today() function.
When I try to run the new VB.NET code in Vista it throws a permission exception for the Today() . If I run Visual Studio Express in Admin mode, then the problem doesn't occur, but clearly I want to end up with a stand-alone program which runs for all users without fancy permissions.
So how can a normal VB.NET program in Vista get today's date? | vb.net | security | date | today | null | null | open | VB.NET on Vista, trying to get date (Today) causes security exception
===
I have a VB6 program that someone recently helped me convert to VB.NET
In the program, when saving files, I stamp them with the date which I was getting by calling the Today() function.
When I try to run the new VB.NET code in Vista it throws a permission exception for the Today() . If I run Visual Studio Express in Admin mode, then the problem doesn't occur, but clearly I want to end up with a stand-alone program which runs for all users without fancy permissions.
So how can a normal VB.NET program in Vista get today's date? | 0 |
64,498 | 09/15/2008 16:35:36 | 8,524 | 09/15/2008 16:14:54 | 1 | 0 | C++ method expansion | Can you specialize a template method within a template class without specializing the class template parameter?
This seems to compile under Visual Studio 2008 SP1 complier, but not GCC 4.2.4.
#include <iostream>
using namespace std;
template <typename T>
class A
{
private:
template <bool b>
void testme();
template <>
void testme<true>() { cout << "true" << endl; };
template <>
void testme<false>() { cout << "false" << endl; };
public:
void test();
};
template<typename T> struct select {};
template<> struct select<int> { static const bool value = true; };
template<> struct select<double> { static const bool value = false; };
template <class T>
void A<T>::test() { testme<select<T>::value>(); }
int main(int argc, const char* argv[])
{
A<int> aInt;
A<double> aDouble;
aInt.test();
aDouble.test();
return 0;
}
GCC tells me:"error: explicit specialization in non-namespace scope ‘class A<T>’"
If it is not supported in the standard, can anyone tell me why?
| c++ | templates | null | null | null | null | open | C++ method expansion
===
Can you specialize a template method within a template class without specializing the class template parameter?
This seems to compile under Visual Studio 2008 SP1 complier, but not GCC 4.2.4.
#include <iostream>
using namespace std;
template <typename T>
class A
{
private:
template <bool b>
void testme();
template <>
void testme<true>() { cout << "true" << endl; };
template <>
void testme<false>() { cout << "false" << endl; };
public:
void test();
};
template<typename T> struct select {};
template<> struct select<int> { static const bool value = true; };
template<> struct select<double> { static const bool value = false; };
template <class T>
void A<T>::test() { testme<select<T>::value>(); }
int main(int argc, const char* argv[])
{
A<int> aInt;
A<double> aDouble;
aInt.test();
aDouble.test();
return 0;
}
GCC tells me:"error: explicit specialization in non-namespace scope ‘class A<T>’"
If it is not supported in the standard, can anyone tell me why?
| 0 |
64,505 | 09/15/2008 16:36:35 | 8,206 | 09/15/2008 15:24:06 | 1 | 3 | Sending mail from Python using SMTP | I'm using the following method to send mail from Python using SMTP. Is it the right method to use or are there gotchas I'm missing ?
from smtplib import SMTP
import datetime
debuglevel = 0
smtp = SMTP()
smtp.set_debuglevel(debuglevel)
smtp.connect('YOUR.MAIL.SERVER', 26)
smtp.login('USERNAME@DOMAIN', 'PASSWORD')
from_addr = "John Doe <[email protected]>"
to_addr = "[email protected]"
subj = "hello"
date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
message_text = "Hello\nThis is a mail from your server\n\nBye\n"
msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s"
% ( from_addr, to_addr, subj, date, message_text )
smtp.sendmail(from_addr, to_addr, msg)
smtp.quit()
| python | smtp | null | null | null | null | open | Sending mail from Python using SMTP
===
I'm using the following method to send mail from Python using SMTP. Is it the right method to use or are there gotchas I'm missing ?
from smtplib import SMTP
import datetime
debuglevel = 0
smtp = SMTP()
smtp.set_debuglevel(debuglevel)
smtp.connect('YOUR.MAIL.SERVER', 26)
smtp.login('USERNAME@DOMAIN', 'PASSWORD')
from_addr = "John Doe <[email protected]>"
to_addr = "[email protected]"
subj = "hello"
date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
message_text = "Hello\nThis is a mail from your server\n\nBye\n"
msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s"
% ( from_addr, to_addr, subj, date, message_text )
smtp.sendmail(from_addr, to_addr, msg)
smtp.quit()
| 0 |
64,508 | 09/15/2008 16:36:44 | 8,689 | 09/15/2008 16:36:44 | 1 | 0 | Guile scheme period at end of a list? | What does the following Guile scheme code do?
(eq? y '.)
(cons x '.)
The code is not valid in MzScheme, is there a portable equivalent across scheme implementations? | scheme | guile | null | null | null | null | open | Guile scheme period at end of a list?
===
What does the following Guile scheme code do?
(eq? y '.)
(cons x '.)
The code is not valid in MzScheme, is there a portable equivalent across scheme implementations? | 0 |
64,537 | 09/15/2008 16:41:30 | 8,676 | 09/15/2008 16:34:42 | 1 | 0 | create graphs in perl on Windows | How do I use perl to create graphs?
(background: I'm running scheduled job that creates text reports. I'd like to move this to the next step (for the management) and also create some graphs that go along with this. Is this possible / feasible? It'd be great if I could do this using Office some how.) | perl | graph | report | null | null | null | open | create graphs in perl on Windows
===
How do I use perl to create graphs?
(background: I'm running scheduled job that creates text reports. I'd like to move this to the next step (for the management) and also create some graphs that go along with this. Is this possible / feasible? It'd be great if I could do this using Office some how.) | 0 |
64,547 | 09/15/2008 16:43:00 | 8,351 | 09/15/2008 15:46:07 | 11 | 2 | Open Source Role Model Projects | What would you consider to be the best open source role model projects? I am curious about what projects to look at for inspiration in working on large projects, but I have heard rumors about some projects being over grown and quite messy. So what projects do you think have the best design, the best use of algorithms, the best tests, etc.? | opensource | rollmodel | null | null | null | 05/05/2012 13:42:30 | not constructive | Open Source Role Model Projects
===
What would you consider to be the best open source role model projects? I am curious about what projects to look at for inspiration in working on large projects, but I have heard rumors about some projects being over grown and quite messy. So what projects do you think have the best design, the best use of algorithms, the best tests, etc.? | 4 |
64,559 | 09/15/2008 16:43:44 | 361 | 08/05/2008 04:20:27 | 602 | 25 | Paths in master pages | I've started to work a bit with master pages for an ASP.net mvc site and I've come across a question. When I link in a stylesheet on the master page it seems to update the path to the sheet correctly. That is in the code I have
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
but looking at the source once the page is fed to a browser I get
<link href="Content/Site.css" rel="stylesheet" type="text/css" />
which is perfect. However the same path translation doesn't seem to work for script files.
<script src="../../Content/menu.js" type="text/javascript"></script>
just comes out as the same thing. It still seems to work on a top level page but I suspect that is just the browser/web server correcting my error. Is there a way to get the src path to be globbed too? | asp.net-mvc | master-pages | null | null | null | null | open | Paths in master pages
===
I've started to work a bit with master pages for an ASP.net mvc site and I've come across a question. When I link in a stylesheet on the master page it seems to update the path to the sheet correctly. That is in the code I have
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
but looking at the source once the page is fed to a browser I get
<link href="Content/Site.css" rel="stylesheet" type="text/css" />
which is perfect. However the same path translation doesn't seem to work for script files.
<script src="../../Content/menu.js" type="text/javascript"></script>
just comes out as the same thing. It still seems to work on a top level page but I suspect that is just the browser/web server correcting my error. Is there a way to get the src path to be globbed too? | 0 |
64,570 | 09/15/2008 16:45:06 | 5,726 | 09/11/2008 04:45:12 | 1 | 0 | Explode that doesn't return empty strings? | PHP's explode function returns an array of strings split on some provided substring. It will return empty strings like this:
var_dump(explode('/', '1/2//3/'));
array(5) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(0) ""
[3]=>
string(1) "3"
[4]=>
string(0) ""
}
Is there some different function or option or anything that would return everything _except_ the empty strings?
var_dump(different_explode('/', '1/2//3/'));
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
}
| php | null | null | null | null | null | open | Explode that doesn't return empty strings?
===
PHP's explode function returns an array of strings split on some provided substring. It will return empty strings like this:
var_dump(explode('/', '1/2//3/'));
array(5) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(0) ""
[3]=>
string(1) "3"
[4]=>
string(0) ""
}
Is there some different function or option or anything that would return everything _except_ the empty strings?
var_dump(different_explode('/', '1/2//3/'));
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
}
| 0 |
64,575 | 09/15/2008 16:45:31 | 1,942 | 08/19/2008 14:45:43 | 543 | 36 | .NET Web Application Portability to SilverLight | The company where I work created this application which is core to our business and relies on the web browser to enforce certain "rules" that without them renders the application kinda useless to our customers. Sorry about having to be circumspect, An NDA along with a host of other things prevents me from saying exactly what the application is. Essentially, JavaScript controls certain timed events (that have to be accurate down to at least the second) that make it difficult to control with ajax/postbacks etc.
My question is this: how hard is it to convert an ASP.NET application to SilverLight assuming that most of the code is really C# business logic and not asp.net controls? I just got finished listening to Deep Fried bytes and the MS people make it sounds like this really isn't that big of a deal. Is this true for web apps, or mainly Win32 ones?
I know the asp.net front end is fundamentally different from SilverLight, but there is a bunch of C# code I would like to not have to rewrite if necessary. The replacement of the javascript code to silverlight I am assuming is trivial (i know bad assumption, but I have to start somewhere) since it deals with timed events, so I am not really concerned with that. I need to come up with a solution on how to mitigate this problem, and I am hoping this is a middle ground between: do nothing and watch us get pounded by our clients, and rewrite the whole application in something more secure than a web page with only front end validation. Has anyone tried to convert ASP.NET code to a SilverLight project? | asp.net | silverlight | null | null | null | null | open | .NET Web Application Portability to SilverLight
===
The company where I work created this application which is core to our business and relies on the web browser to enforce certain "rules" that without them renders the application kinda useless to our customers. Sorry about having to be circumspect, An NDA along with a host of other things prevents me from saying exactly what the application is. Essentially, JavaScript controls certain timed events (that have to be accurate down to at least the second) that make it difficult to control with ajax/postbacks etc.
My question is this: how hard is it to convert an ASP.NET application to SilverLight assuming that most of the code is really C# business logic and not asp.net controls? I just got finished listening to Deep Fried bytes and the MS people make it sounds like this really isn't that big of a deal. Is this true for web apps, or mainly Win32 ones?
I know the asp.net front end is fundamentally different from SilverLight, but there is a bunch of C# code I would like to not have to rewrite if necessary. The replacement of the javascript code to silverlight I am assuming is trivial (i know bad assumption, but I have to start somewhere) since it deals with timed events, so I am not really concerned with that. I need to come up with a solution on how to mitigate this problem, and I am hoping this is a middle ground between: do nothing and watch us get pounded by our clients, and rewrite the whole application in something more secure than a web page with only front end validation. Has anyone tried to convert ASP.NET code to a SilverLight project? | 0 |
64,582 | 09/15/2008 16:46:04 | 7,545 | 09/15/2008 13:56:58 | 21 | 0 | C++/Java Performance for Neural Networks? | I was discussing neural networks (NN) with a friend over lunch the other day and he claimed the the performance of a NN written in Java would be similar to one written in C++. I know that with 'just in time' compiler techniques Java can do very well, but somehow I just don't buy it. Does anyone have any experience that would shed light on this issue? [This page][1] is the extend of my reading on the subject.
[1]: http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B#Performance | java | c++ | performance | neural-network | null | null | open | C++/Java Performance for Neural Networks?
===
I was discussing neural networks (NN) with a friend over lunch the other day and he claimed the the performance of a NN written in Java would be similar to one written in C++. I know that with 'just in time' compiler techniques Java can do very well, but somehow I just don't buy it. Does anyone have any experience that would shed light on this issue? [This page][1] is the extend of my reading on the subject.
[1]: http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B#Performance | 0 |
64,599 | 09/15/2008 16:47:26 | 7,856 | 09/15/2008 14:33:04 | 1 | 3 | .net: System.Web.Mail vs System.Net.Mail | I am considering converting a project that I've inherited from .net 1.1 to .net 2.0. The main warning I'm concerned about is that it wants me to switch from System.Web.Mail to using System.Net.Mail.
I'm not ready to re-write all the components using the obsolete System.Web.Mail, so I'm curious to hear if any community members have had problems using it under .net 2.0? | .net | .net-2.0 | null | null | null | null | open | .net: System.Web.Mail vs System.Net.Mail
===
I am considering converting a project that I've inherited from .net 1.1 to .net 2.0. The main warning I'm concerned about is that it wants me to switch from System.Web.Mail to using System.Net.Mail.
I'm not ready to re-write all the components using the obsolete System.Web.Mail, so I'm curious to hear if any community members have had problems using it under .net 2.0? | 0 |
64,602 | 09/15/2008 16:47:38 | 2,361 | 08/21/2008 20:41:09 | 584 | 29 | What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion? | There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ignore the rest?
----------
MSDN says:
- [AssemblyVersion][1]:
> Specifies the version of the assembly being attributed.
- [AssemblyFileVersion][2]:
> Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number.
- [AssemblyInformationalVersion][3]:
> Defines additional version information for an assembly manifest.
----------
*This is follow up to [What are the best practices for using Assembly Attributes?][4]*
[1]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyinformationalversionattribute.aspx
[4]: http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes | .net | assembly | attributes | null | null | null | open | What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?
===
There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ignore the rest?
----------
MSDN says:
- [AssemblyVersion][1]:
> Specifies the version of the assembly being attributed.
- [AssemblyFileVersion][2]:
> Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number.
- [AssemblyInformationalVersion][3]:
> Defines additional version information for an assembly manifest.
----------
*This is follow up to [What are the best practices for using Assembly Attributes?][4]*
[1]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute.aspx
[3]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyinformationalversionattribute.aspx
[4]: http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes | 0 |
64,605 | 09/15/2008 16:48:05 | 5,616 | 09/10/2008 14:55:47 | 93 | 4 | Can I Mix VBScript and JScript in a Single HTA? | Is it possible to use both JScript and VBScript in the same HTA? Can I call VBScript functions from JScript and vice-versa? | vbscript | null | null | null | null | null | open | Can I Mix VBScript and JScript in a Single HTA?
===
Is it possible to use both JScript and VBScript in the same HTA? Can I call VBScript functions from JScript and vice-versa? | 0 |
64,631 | 09/15/2008 16:51:11 | 5,564 | 09/10/2008 14:08:33 | 8 | 0 | What does a PHP developer need to know about https / secure socket layer connections? | I know next to nothing when it comes to the how and why of https connections. Obviously, when I'm transmitting secure data like passwords or especially credit card information, https is a critical tool. What do I need to know about it, though? What are the most common mistakes you see developers making when they implement it in their projects? Are there times when https is just a bad idea? Thanks! | php | security | ssl | https | null | null | open | What does a PHP developer need to know about https / secure socket layer connections?
===
I know next to nothing when it comes to the how and why of https connections. Obviously, when I'm transmitting secure data like passwords or especially credit card information, https is a critical tool. What do I need to know about it, though? What are the most common mistakes you see developers making when they implement it in their projects? Are there times when https is just a bad idea? Thanks! | 0 |
64,639 | 09/15/2008 16:52:06 | 2,488 | 08/22/2008 13:41:55 | 8 | 1 | Convert from scientific notation string to float in C# | What's the proper way to convert from a scientific notation string such as "1.234567E-06" to a floating point variable using C#?
| c# | floating-point | scientific-notation | null | null | null | open | Convert from scientific notation string to float in C#
===
What's the proper way to convert from a scientific notation string such as "1.234567E-06" to a floating point variable using C#?
| 0 |
64,640 | 09/15/2008 16:52:25 | 7,311 | 09/15/2008 13:30:54 | 1 | 0 | Parsing exact dates in C# shouldn't force you to create an IFormatProvider | Someone please correct me if I'm wrong, but parsing a yyyy/MM/dd (or other specific formats) dates in C# **should** be as easy as
DateTime.ParseExact(theDate, "yyyy/MM/dd");
but no, C# forces you to create an IFormatProvider. Is there an app.config friendly way of setting this so I don't need to do this each time?
DateTime.PraseExact(theDate, "yyyy/MM/dd", new CultureInfo("en-CA", true);
Thanks in advance.
Alan. | c# | globalization | dotnet | parsing | datetime | null | open | Parsing exact dates in C# shouldn't force you to create an IFormatProvider
===
Someone please correct me if I'm wrong, but parsing a yyyy/MM/dd (or other specific formats) dates in C# **should** be as easy as
DateTime.ParseExact(theDate, "yyyy/MM/dd");
but no, C# forces you to create an IFormatProvider. Is there an app.config friendly way of setting this so I don't need to do this each time?
DateTime.PraseExact(theDate, "yyyy/MM/dd", new CultureInfo("en-CA", true);
Thanks in advance.
Alan. | 0 |
64,645 | 09/15/2008 16:52:59 | 8,661 | 09/15/2008 16:33:37 | 1 | 1 | Define an interface in C++ that needs to be implemented in C# and C++ | I have an interface that I have defined in C++ which now needs to be implemented in C#. What is the best way to go about this? I don't want to use COM at all in my interface definition. The way I have solved this right now is to to have two interface definitions, one in C++ and one in C#. I then expose the C# interfaces as a COM server. This was my application which is written in C++ can call into C#. Is there anyway I can avoid having to define my implementation in C++ as well as C#? | .net | c++ | interop | interface | null | null | open | Define an interface in C++ that needs to be implemented in C# and C++
===
I have an interface that I have defined in C++ which now needs to be implemented in C#. What is the best way to go about this? I don't want to use COM at all in my interface definition. The way I have solved this right now is to to have two interface definitions, one in C++ and one in C#. I then expose the C# interfaces as a COM server. This was my application which is written in C++ can call into C#. Is there anyway I can avoid having to define my implementation in C++ as well as C#? | 0 |
64,649 | 09/15/2008 16:53:13 | 700 | 08/08/2008 00:32:27 | 119 | 13 | How do I get the unix find command to print out the file size with the file name? | If I issue the find command as follows:
$find . -name *.ear
It prints out:
./dir1/dir2/earFile1.ear
./dir1/dir2/earFile2.ear
./dir1/dir3/earFile1.ear
What I want to 'print' to the command line is the name and the size:
./dir1/dir2/earFile1.ear 5000 KB
./dir1/dir2/earFile2.ear 5400 KB
./dir1/dir3/earFile1.ear 5400 KB
| unix | command-line | solaris | null | null | null | open | How do I get the unix find command to print out the file size with the file name?
===
If I issue the find command as follows:
$find . -name *.ear
It prints out:
./dir1/dir2/earFile1.ear
./dir1/dir2/earFile2.ear
./dir1/dir3/earFile1.ear
What I want to 'print' to the command line is the name and the size:
./dir1/dir2/earFile1.ear 5000 KB
./dir1/dir2/earFile2.ear 5400 KB
./dir1/dir3/earFile1.ear 5400 KB
| 0 |
64,653 | 09/15/2008 16:53:54 | 8,344 | 09/15/2008 15:45:08 | 1 | 3 | MySQL: "lock wait timeout exceeded" | I am trying to delete several rows from a MySQL 5.0.45 database:
delete from bundle_inclusions;
The client works for a while and then returns the error:
Lock wait timeout exceeded; try restarting transaction
It's possible there is some uncommitted transaction out there that has a lock on this table, but I need this process to trump any such locks. How do I break the lock in MySQL? | database | mysql | null | null | null | null | open | MySQL: "lock wait timeout exceeded"
===
I am trying to delete several rows from a MySQL 5.0.45 database:
delete from bundle_inclusions;
The client works for a while and then returns the error:
Lock wait timeout exceeded; try restarting transaction
It's possible there is some uncommitted transaction out there that has a lock on this table, but I need this process to trump any such locks. How do I break the lock in MySQL? | 0 |
64,689 | 09/15/2008 16:58:25 | 1,463 | 08/15/2008 17:26:44 | 508 | 34 | C pointers in C# | Is this function declaration in C#:
void foo(string mystring)
the same as this one in C:
void foo(char *)
i.e. In C#, does the called function receive a pointer behind the scenes? | c# | c | pointers | null | null | null | open | C pointers in C#
===
Is this function declaration in C#:
void foo(string mystring)
the same as this one in C:
void foo(char *)
i.e. In C#, does the called function receive a pointer behind the scenes? | 0 |
64,693 | 09/15/2008 16:58:45 | 6,766 | 09/15/2008 12:36:45 | 1 | 0 | Simple haskell string manage | Theres is a little problem I want to solve with Haskell:
let substitute a function that change all of the wildcards in a string for one concrete parameter. The function has de signature of:
subs :: String -> String -> String -> String
-- example:
-- subs 'x' "x^3 + x + sin(x)" "6.2" will generate
-- "6.2^3 + 6.2 + sin(6.2)" | string | haskell | newbies | null | null | null | open | Simple haskell string manage
===
Theres is a little problem I want to solve with Haskell:
let substitute a function that change all of the wildcards in a string for one concrete parameter. The function has de signature of:
subs :: String -> String -> String -> String
-- example:
-- subs 'x' "x^3 + x + sin(x)" "6.2" will generate
-- "6.2^3 + 6.2 + sin(6.2)" | 0 |
64,723 | 09/15/2008 17:02:17 | 8,852 | 09/15/2008 17:02:17 | 1 | 0 | I need an algorithm for deciding whether a passed in amount can be built additively from a set of numbers. | I need a **non recursive** algorithm for deciding whether a passed in amount can be built additively from a set of numbers. In my case I'm determining whether a certain currency amount (such as $40) can be met by adding up some combination of a set of bills (such as $5, $10 and $20 bills). That is a simple example, but the algorithm needs to work for any currency set (some currencies use funky bill amounts and some bills may not be available at a given time). So $50 can be met with a set of ($20 and $30), but cannot be met with a set of ($20 and $40). The algorithm cannot be recursive. | algorithm | null | null | null | null | null | open | I need an algorithm for deciding whether a passed in amount can be built additively from a set of numbers.
===
I need a **non recursive** algorithm for deciding whether a passed in amount can be built additively from a set of numbers. In my case I'm determining whether a certain currency amount (such as $40) can be met by adding up some combination of a set of bills (such as $5, $10 and $20 bills). That is a simple example, but the algorithm needs to work for any currency set (some currencies use funky bill amounts and some bills may not be available at a given time). So $50 can be met with a set of ($20 and $30), but cannot be met with a set of ($20 and $40). The algorithm cannot be recursive. | 0 |
64,748 | 09/15/2008 17:05:19 | 7,216 | 09/15/2008 13:22:18 | 1 | 0 | Disk Activity in Applescript | How can I poll disk activity in Applescript? Check to see if disk X is being read, written, or idle every N seconds and do something. | osx | io | applescript | null | null | null | open | Disk Activity in Applescript
===
How can I poll disk activity in Applescript? Check to see if disk X is being read, written, or idle every N seconds and do something. | 0 |
64,749 | 09/15/2008 17:05:24 | 7,648 | 09/15/2008 14:08:05 | 11 | 1 | '^M' character at end of lines | When I run a particular SQL script in Unix environments, I'm am seeing a '^M' character at the end of each line of the SQL script as it is echoed to the command-line. I don't know on which OS the SQL script was originally created.
What is causing this and how do I fix it? | newline | os-dependent | null | null | null | null | open | '^M' character at end of lines
===
When I run a particular SQL script in Unix environments, I'm am seeing a '^M' character at the end of each line of the SQL script as it is echoed to the command-line. I don't know on which OS the SQL script was originally created.
What is causing this and how do I fix it? | 0 |
64,759 | 09/15/2008 17:06:48 | 6,824 | 09/15/2008 12:41:22 | 1 | 0 | Placing a PDF inside another PDF document with Zend_PDF | I have a pdf file of a logo, about 1"x2" in dimension. Can anybody provide the code snippet to import that PDF logo into another PDF file using the [Zend_PDF][1] API's?
Ideally, I'd like to be able to place it like the PNG, TIFF or JPG objects with the Zend_Pdf_Image object. TIA!
[1]: http://framework.zend.com/manual/en/zend.pdf.html | php | pdf | zend | null | null | null | open | Placing a PDF inside another PDF document with Zend_PDF
===
I have a pdf file of a logo, about 1"x2" in dimension. Can anybody provide the code snippet to import that PDF logo into another PDF file using the [Zend_PDF][1] API's?
Ideally, I'd like to be able to place it like the PNG, TIFF or JPG objects with the Zend_Pdf_Image object. TIA!
[1]: http://framework.zend.com/manual/en/zend.pdf.html | 0 |
64,760 | 09/15/2008 17:06:50 | 8,509 | 09/15/2008 16:11:39 | 21 | 0 | HTML in Code? | In a web application is it acceptable to use HTML in your code (non-scripted languages, Java, .NET) ? | html | organizing | gui | null | null | null | open | HTML in Code?
===
In a web application is it acceptable to use HTML in your code (non-scripted languages, Java, .NET) ? | 0 |
64,768 | 09/15/2008 17:08:02 | 6,770 | 09/15/2008 12:36:56 | 6 | 2 | Is there a terminal program that differentiates between input, output, and commands? | Is there a terminal program that shows the difference between input, standard output, error output, the prompt, and user-entered commands? It should also show when standard input is needed vs. running a command.
One way would be to highlight each differently. The cursor could change color depending on if it was waiting for a command, running a command, or waiting for standard input.
Another way would be to have 3 frames -- a large frame on the top for output (including prompt and commands running), a small frame near the bottom for standard input, and an one-line frame at the bottom for command line input. That would possibly even allow running another command to provide input while the previous command is still waiting for standard input.
From [http://jamesjava.blogspot.com/2007/09/terminal-window-with-3-frames.html][1]
[1]: http://jamesjava.blogspot.com/2007/09/terminal-window-with-3-frames.html | terminal | null | null | null | null | null | open | Is there a terminal program that differentiates between input, output, and commands?
===
Is there a terminal program that shows the difference between input, standard output, error output, the prompt, and user-entered commands? It should also show when standard input is needed vs. running a command.
One way would be to highlight each differently. The cursor could change color depending on if it was waiting for a command, running a command, or waiting for standard input.
Another way would be to have 3 frames -- a large frame on the top for output (including prompt and commands running), a small frame near the bottom for standard input, and an one-line frame at the bottom for command line input. That would possibly even allow running another command to provide input while the previous command is still waiting for standard input.
From [http://jamesjava.blogspot.com/2007/09/terminal-window-with-3-frames.html][1]
[1]: http://jamesjava.blogspot.com/2007/09/terminal-window-with-3-frames.html | 0 |
64,781 | 09/15/2008 17:09:27 | 686 | 08/07/2008 19:26:04 | 168 | 5 | Batch insert using JPA/Toplink | I have a web application that receives messages through an HTTP interface, e.g.:
http://server/application?source=123&destination=234&text=hello
This request contains the ID of the sender, the ID of the recipient and the text of the message.
This message should be processed like:
- finding the matching User object for both the source and the destination from the database
- creating a tree of objects: a Message that contains a field for the message text and two User objects for the source and the destination
- persisting this tree to a database.
The tree will be loaded by other applications that I can't touch.
I use Oracle as the backing database and JPA with Toplink for the database handling tasks. If possible, I'd stay with these.
Without much optimization I can achieve ~30 requests/sec throughput in my environment. That's not much, I'd require ~300 requests/sec. So I measured where the performance bottleneck is and found that the calls to `em.persist()` takes most of the time. If I simply comment out that line, the throughput go well over 1000 requests/sec.
I tried to write a small test application that used simple JDBC calls to persist 1 million messages to the same database. I used batching, meaning I did 100 inserts then a commit, and repeated until all the records was in the database. I measured ~500 requests/sec throughput in this scenario, that would meet my needs.
It is clear that I need to optimize insert performance here. However as I mentioned earlier I would like to keep using JPA and Toplink for this, not pure JDBC.
Do you know a way to create batch inserts with JPA and Toplink? Can you recommend any other technique for improving JPA persist performance?
| java | oracle | jpa | toplink | null | null | open | Batch insert using JPA/Toplink
===
I have a web application that receives messages through an HTTP interface, e.g.:
http://server/application?source=123&destination=234&text=hello
This request contains the ID of the sender, the ID of the recipient and the text of the message.
This message should be processed like:
- finding the matching User object for both the source and the destination from the database
- creating a tree of objects: a Message that contains a field for the message text and two User objects for the source and the destination
- persisting this tree to a database.
The tree will be loaded by other applications that I can't touch.
I use Oracle as the backing database and JPA with Toplink for the database handling tasks. If possible, I'd stay with these.
Without much optimization I can achieve ~30 requests/sec throughput in my environment. That's not much, I'd require ~300 requests/sec. So I measured where the performance bottleneck is and found that the calls to `em.persist()` takes most of the time. If I simply comment out that line, the throughput go well over 1000 requests/sec.
I tried to write a small test application that used simple JDBC calls to persist 1 million messages to the same database. I used batching, meaning I did 100 inserts then a commit, and repeated until all the records was in the database. I measured ~500 requests/sec throughput in this scenario, that would meet my needs.
It is clear that I need to optimize insert performance here. However as I mentioned earlier I would like to keep using JPA and Toplink for this, not pure JDBC.
Do you know a way to create batch inserts with JPA and Toplink? Can you recommend any other technique for improving JPA persist performance?
| 0 |
64,790 | 09/15/2008 17:10:26 | 8,761 | 09/15/2008 16:49:11 | 1 | 0 | Why aren't my breakpoints working in Xcode? | I have breakpoints set but Xcode appears to ignore them. | mac | xcode | breakpoints | null | null | null | open | Why aren't my breakpoints working in Xcode?
===
I have breakpoints set but Xcode appears to ignore them. | 0 |
64,808 | 09/15/2008 17:12:49 | 8,913 | 09/15/2008 17:12:49 | 1 | 0 | How do I see the list of open files within emacs? Or browse a directory within emacs? | Most text editors have a navigation pane that lets you see all the files you currently have open. Or a pane that lets you browse a file directory.
How do I do this in emacs? | emacs | null | null | null | null | null | open | How do I see the list of open files within emacs? Or browse a directory within emacs?
===
Most text editors have a navigation pane that lets you see all the files you currently have open. Or a pane that lets you browse a file directory.
How do I do this in emacs? | 0 |
64,813 | 09/15/2008 17:13:48 | 6,777 | 09/15/2008 12:37:03 | 56 | 6 | Private Accessor class ignores generic constraint | These days, i came across a problem with Team System Unit Testing. I found that the automatically created accessor class ignores generic constraints - at least in the following case:
Assume you have the following class:
namespace MyLibrary
{
public class MyClass
{
public Nullable<T> MyMethod<T>(string s) where T : struct
{
return (T)Enum.Parse(typeof(T), s, true);
}
}
}
If you want to test MyMethod, you can create a test project with the following test method:
public enum TestEnum { Item1, Item2, Item3 }
[TestMethod()]
public void MyMethodTest()
{
MyClass c = new MyClass();
PrivateObject po = new PrivateObject(c);
MyClass_Accessor target = new MyClass_Accessor(po);
// The following line produces the following error:
// Unit Test Adapter threw exception: GenericArguments[0], 'T', on
// 'System.Nullable`1[T]' violates the constraint of type parameter 'T'..
TestEnum? e1 = target.MyMethod("item2");
// The following line works great but does not work for testing private methods.
TestEnum? e2 = c.MyMethod("item2");
}
Running the test will fail with the error mentioned in the comment of the snippet above. The problem is the accessor class created by Visual Studio. If you go into it, you will come up to the following code:
namespace MyLibrary
{
[Shadowing("MyLibrary.MyClass")]
public class MyClass_Accessor : BaseShadow
{
protected static PrivateType m_privateType;
[Shadowing(".ctor@0")]
public MyClass_Accessor();
public MyClass_Accessor(PrivateObject __p1);
public static PrivateType ShadowedType { get; }
public static MyClass_Accessor AttachShadow(object __p1);
[Shadowing("MyMethod@1")]
public T? MyMethod(string s);
}
}
As you can see, there is no constraint for the generic type parameter of the MyMethod method.
Is that a bug? Is that by design? Who knows how to work around that problem?
| c# | .net | unit-testing | vs2008 | mstest | null | open | Private Accessor class ignores generic constraint
===
These days, i came across a problem with Team System Unit Testing. I found that the automatically created accessor class ignores generic constraints - at least in the following case:
Assume you have the following class:
namespace MyLibrary
{
public class MyClass
{
public Nullable<T> MyMethod<T>(string s) where T : struct
{
return (T)Enum.Parse(typeof(T), s, true);
}
}
}
If you want to test MyMethod, you can create a test project with the following test method:
public enum TestEnum { Item1, Item2, Item3 }
[TestMethod()]
public void MyMethodTest()
{
MyClass c = new MyClass();
PrivateObject po = new PrivateObject(c);
MyClass_Accessor target = new MyClass_Accessor(po);
// The following line produces the following error:
// Unit Test Adapter threw exception: GenericArguments[0], 'T', on
// 'System.Nullable`1[T]' violates the constraint of type parameter 'T'..
TestEnum? e1 = target.MyMethod("item2");
// The following line works great but does not work for testing private methods.
TestEnum? e2 = c.MyMethod("item2");
}
Running the test will fail with the error mentioned in the comment of the snippet above. The problem is the accessor class created by Visual Studio. If you go into it, you will come up to the following code:
namespace MyLibrary
{
[Shadowing("MyLibrary.MyClass")]
public class MyClass_Accessor : BaseShadow
{
protected static PrivateType m_privateType;
[Shadowing(".ctor@0")]
public MyClass_Accessor();
public MyClass_Accessor(PrivateObject __p1);
public static PrivateType ShadowedType { get; }
public static MyClass_Accessor AttachShadow(object __p1);
[Shadowing("MyMethod@1")]
public T? MyMethod(string s);
}
}
As you can see, there is no constraint for the generic type parameter of the MyMethod method.
Is that a bug? Is that by design? Who knows how to work around that problem?
| 0 |
64,820 | 09/15/2008 17:14:15 | 8,832 | 09/15/2008 16:58:09 | 1 | 0 | how to implement shortcut key combination of CTRL or SHIFT + <letter> through javascript? | ASP.NET 2.0 web application, how to implement shortcut key combination of CTRL + <letter>, preferably through javascript, to make web application ergonomically better? How to capture multiple-key keyboard events through javascript? | keyboard-shortcuts | ergonomics | javascript | asp.net | null | null | open | how to implement shortcut key combination of CTRL or SHIFT + <letter> through javascript?
===
ASP.NET 2.0 web application, how to implement shortcut key combination of CTRL + <letter>, preferably through javascript, to make web application ergonomically better? How to capture multiple-key keyboard events through javascript? | 0 |
64,827 | 09/15/2008 17:15:03 | 6,805 | 09/15/2008 12:39:08 | 1 | 3 | Rails, Restful Authentication & RSpec - How to test new models that require authentication | I've created a learning application using [Bort][1], which is a base app that includes Restful Authentication and RSpec. I've got it up and running and added a new object that requires users to be logged in before they can do anything(`before_filter :login_required` in the controller).
I've created the new model/controller using Rspec's generators which have created a number of default tests. They all pass if there is no `before_filter` but several fail, as should be expected, once the `before_filter` is in place.
How do I get the generated tests to run as if there is/is not a logged in user? Do I need a whole batch of matching not logged in - redirect tests? I assume it is some sort of mocking or fixture technique but I am new to RSpec and a bit adrift. Good RSpec tutorial links would also be appreciated.
[1]: http://jimneath.org/2008/09/09/bort-base-rails-application/ | ruby-on-rails | rspec | restful-authentication | testing | null | null | open | Rails, Restful Authentication & RSpec - How to test new models that require authentication
===
I've created a learning application using [Bort][1], which is a base app that includes Restful Authentication and RSpec. I've got it up and running and added a new object that requires users to be logged in before they can do anything(`before_filter :login_required` in the controller).
I've created the new model/controller using Rspec's generators which have created a number of default tests. They all pass if there is no `before_filter` but several fail, as should be expected, once the `before_filter` is in place.
How do I get the generated tests to run as if there is/is not a logged in user? Do I need a whole batch of matching not logged in - redirect tests? I assume it is some sort of mocking or fixture technique but I am new to RSpec and a bit adrift. Good RSpec tutorial links would also be appreciated.
[1]: http://jimneath.org/2008/09/09/bort-base-rails-application/ | 0 |
64,833 | 09/15/2008 17:15:58 | 7,475 | 09/15/2008 13:49:04 | 1 | 0 | Writing C# client to consume a Java web service that returns array of objects | I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok.
The service was changed to return an array of objects, and the client does not properly parse the returned SOAP message.
MyResponse[] MyFunc(string p)
class MyResponse
{
long id;
string reason;
}
When my generated C# proxy calls the web service (using SoapHttpClientProtocol.Invoke), I am expecting a MyResponse[] array with length of 1, ie a single element. What I am getting after the Invoke call is an element with id=0 and reason=null, regardless of what the service actually returns. Using a packet sniffer, I can see that the service is returning what appears to be a legitimate soap message with id and reason set to non-null values.
Is there some trick to getting a C# client to call a Java web service that returns someobject[] ? I will work on getting a sanitized demo if necessary. | c# | java | web-services | null | null | null | open | Writing C# client to consume a Java web service that returns array of objects
===
I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok.
The service was changed to return an array of objects, and the client does not properly parse the returned SOAP message.
MyResponse[] MyFunc(string p)
class MyResponse
{
long id;
string reason;
}
When my generated C# proxy calls the web service (using SoapHttpClientProtocol.Invoke), I am expecting a MyResponse[] array with length of 1, ie a single element. What I am getting after the Invoke call is an element with id=0 and reason=null, regardless of what the service actually returns. Using a packet sniffer, I can see that the service is returning what appears to be a legitimate soap message with id and reason set to non-null values.
Is there some trick to getting a C# client to call a Java web service that returns someobject[] ? I will work on getting a sanitized demo if necessary. | 0 |
64,839 | 09/15/2008 17:16:54 | 8,939 | 09/15/2008 17:16:54 | 1 | 0 | Visual studio 2008 is it worth the upgrade from 2005? | As of the fall of 2008 I'm about to embark on a new development cycle for a major product that has a winform and an asp.net interface. We use Telerik, DevExpress and Infragistics components in it and all are going to have a release within a month or so which will be the one I target for our spring release of our product.
They all support VS2005 and we will continue to target .net 2+ so I can't see any compelling reason so far to upgrade to VS2008.
Has anyone found a compelling reason for upgrading to VS2008 in the realm of .net development? | vs2005 | upgrade | vs2008 | null | null | null | open | Visual studio 2008 is it worth the upgrade from 2005?
===
As of the fall of 2008 I'm about to embark on a new development cycle for a major product that has a winform and an asp.net interface. We use Telerik, DevExpress and Infragistics components in it and all are going to have a release within a month or so which will be the one I target for our spring release of our product.
They all support VS2005 and we will continue to target .net 2+ so I can't see any compelling reason so far to upgrade to VS2008.
Has anyone found a compelling reason for upgrading to VS2008 in the realm of .net development? | 0 |
64,841 | 09/15/2008 17:17:34 | 572 | 08/06/2008 20:56:54 | 3,984 | 283 | What do I need to manage XML files? | I believe I need a DTD to define the schema and an XSLT if I want to display it in a browser and have it look "pretty". But I'm not sure what else I would need to have a well-defined XML document that can be queried using XQuery and displayed in a web browser. | xml | null | null | null | null | null | open | What do I need to manage XML files?
===
I believe I need a DTD to define the schema and an XSLT if I want to display it in a browser and have it look "pretty". But I'm not sure what else I would need to have a well-defined XML document that can be queried using XQuery and displayed in a web browser. | 0 |
64,843 | 09/15/2008 17:18:06 | 1,992 | 08/19/2008 18:04:16 | 572 | 21 | Write a Servelt that Talks to JMS (ActiveMQ) | I am building a site that uses a simple AJAX Servelt to talk JMS (ActiveMQ) and when a message arrives from the topic to update the site.
I have Javascript that creates an XMLHttpRequest for data. The Servelt processes the Get Request and sends back JSON. However I have no idea how to connect my Servlet into my ActiveMQ Message Broker. It just sends back dummy data right now. | java | javascript | servlets | activemq | jms | null | open | Write a Servelt that Talks to JMS (ActiveMQ)
===
I am building a site that uses a simple AJAX Servelt to talk JMS (ActiveMQ) and when a message arrives from the topic to update the site.
I have Javascript that creates an XMLHttpRequest for data. The Servelt processes the Get Request and sends back JSON. However I have no idea how to connect my Servlet into my ActiveMQ Message Broker. It just sends back dummy data right now. | 0 |
64,851 | 09/15/2008 17:19:52 | 4,528 | 09/04/2008 16:33:27 | 231 | 21 | Macro to test weather an integer type is signed or unsigned | How would you write (in C/C++) a macro which tests if an integer type (given as a parameter) is signed or unsigned?
<pre><code>
#define is_this_type_signed (my_type) ...
<code></pre>
| c | c++ | null | null | null | null | open | Macro to test weather an integer type is signed or unsigned
===
How would you write (in C/C++) a macro which tests if an integer type (given as a parameter) is signed or unsigned?
<pre><code>
#define is_this_type_signed (my_type) ...
<code></pre>
| 0 |
64,856 | 09/15/2008 17:20:44 | 8,617 | 09/15/2008 16:28:07 | 21 | 3 | Senior J2EE interview questions | What are the best questions to ask when running a technical interview for a senior level j2ee developer? | java | interview-questions | java-ee | null | null | 11/29/2011 05:50:22 | not constructive | Senior J2EE interview questions
===
What are the best questions to ask when running a technical interview for a senior level j2ee developer? | 4 |
64,860 | 09/15/2008 17:21:31 | 2,948 | 08/26/2008 08:39:22 | 1,219 | 28 | Best way to convert text files between character sets? | What is the fastest, easiest tool or method to convert text files between character sets?
Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.
Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc. | unicode | text | utf8 | null | null | null | open | Best way to convert text files between character sets?
===
What is the fastest, easiest tool or method to convert text files between character sets?
Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.
Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc. | 0 |
64,873 | 09/15/2008 17:22:56 | 6,788 | 09/15/2008 12:37:49 | -4 | 2 | Is there a good tutorial on Websphere 6.1 ND deployments? | I need to deploy an application on the WAS ND 6.1 and do not know anything about it and cannot afford to go to training...
I thank you in advance for your help! | websphere | was | null | null | null | null | open | Is there a good tutorial on Websphere 6.1 ND deployments?
===
I need to deploy an application on the WAS ND 6.1 and do not know anything about it and cannot afford to go to training...
I thank you in advance for your help! | 0 |
64,875 | 09/15/2008 17:23:13 | 6,992 | 09/15/2008 12:58:25 | 6 | 0 | replace a character programatically in Oracle 8.x series | Due to repetitive errors with one of our Java applications:
Engine engine_0: Error in application action.
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x13)
was found in the element content of the document.
I need to "fix" some Unicode character in an Oracle database, ideally in a programmatic fashion. Once identified, what would be a simple way to "search and replace" it? | java | sql | oracle | unicode | exception | null | open | replace a character programatically in Oracle 8.x series
===
Due to repetitive errors with one of our Java applications:
Engine engine_0: Error in application action.
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x13)
was found in the element content of the document.
I need to "fix" some Unicode character in an Oracle database, ideally in a programmatic fashion. Once identified, what would be a simple way to "search and replace" it? | 0 |
64,881 | 09/15/2008 17:24:01 | 8,761 | 09/15/2008 16:49:11 | 1 | 1 | Why is my cocoa program getting EXC_BAD_ACCESS during startup? | During the load of my cocoa application, my program crashes with the messsage EXC_BAD_ACCESS. The stack trace is not helpful. Any clues to how I can find the problem? | osx | xcode | cocoa | exc-bad-access | null | null | open | Why is my cocoa program getting EXC_BAD_ACCESS during startup?
===
During the load of my cocoa application, my program crashes with the messsage EXC_BAD_ACCESS. The stack trace is not helpful. Any clues to how I can find the problem? | 0 |
64,898 | 09/15/2008 17:25:32 | 5,056 | 09/07/2008 15:43:17 | 872 | 65 | Are Tests Valid Documentation? | As suggested, I have closed the question posed [here][1] and have broken it up into separate questions regarding code documentation to be posed throughout the day.
----------
The first part: [How do you document your methods?][2]
This question is about documentation as it relates to automated tests, especially unit tests.
Do you think it is appropriate to use well written unit tests as a replacement for documentation? When starting in on an unfamiliar piece of code do you go first to the tests or the doc comments?
On the flip side, when does a test need its own documentation? Is it ever acceptable to have a test so complicated? What do you do to minimize the friction? What are the guidelines that you follow and would like to see others follow as well?
As before, do you find that your opinions differ depending on project size/type? On language you're using? On tools available?
[1]: http://stackoverflow.com/questions/63297/how-do-you-do-documentation
[2]: http://stackoverflow.com/questions/63801?sort=votes#sort-top | documentation | guidance | null | null | null | null | open | Are Tests Valid Documentation?
===
As suggested, I have closed the question posed [here][1] and have broken it up into separate questions regarding code documentation to be posed throughout the day.
----------
The first part: [How do you document your methods?][2]
This question is about documentation as it relates to automated tests, especially unit tests.
Do you think it is appropriate to use well written unit tests as a replacement for documentation? When starting in on an unfamiliar piece of code do you go first to the tests or the doc comments?
On the flip side, when does a test need its own documentation? Is it ever acceptable to have a test so complicated? What do you do to minimize the friction? What are the guidelines that you follow and would like to see others follow as well?
As before, do you find that your opinions differ depending on project size/type? On language you're using? On tools available?
[1]: http://stackoverflow.com/questions/63297/how-do-you-do-documentation
[2]: http://stackoverflow.com/questions/63801?sort=votes#sort-top | 0 |
64,905 | 09/15/2008 17:26:28 | 7,001 | 09/15/2008 12:59:17 | 1 | 2 | How do you create templates for SQL Server 2005 Reporting Services reports? | I want to create templates for base new reports on to have common designs. How do you do it? | reporting | services | report | templates | null | null | open | How do you create templates for SQL Server 2005 Reporting Services reports?
===
I want to create templates for base new reports on to have common designs. How do you do it? | 0 |
64,907 | 09/15/2008 17:26:42 | 8,979 | 09/15/2008 17:23:27 | 1 | 0 | Best PHP image processing library? | for resizing images and creating thumbnails, preferably works on most shared hosts | php | image-manipulation | null | null | null | 09/15/2011 13:01:43 | not constructive | Best PHP image processing library?
===
for resizing images and creating thumbnails, preferably works on most shared hosts | 4 |
64,933 | 09/15/2008 17:29:18 | 8,865 | 09/15/2008 17:03:47 | 1 | 0 | exposition on arrows | What would be a good place to go to understand arrows? ideally, i am just looking for some place with a concise definition with motivation from some good examples. Something similar to Wadler's exposition on monads. | haskell | arrows | category-theory | null | null | null | open | exposition on arrows
===
What would be a good place to go to understand arrows? ideally, i am just looking for some place with a concise definition with motivation from some good examples. Something similar to Wadler's exposition on monads. | 0 |
64,951 | 09/15/2008 17:30:42 | 8,986 | 09/15/2008 17:24:25 | 1 | 0 | Where can i find the XML schema (XSD-file) for the Glade markup language? | As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language?
Wikipedia states that **Glade** is a schema based markup language ([list of schemas at wikipedia][1]). I tried to search the web, wikipedia and the glade website,but i couldn't find an XSD for Glade.
Thx,
Juve
[1]: http://en.wikipedia.org/wiki/List_of_XML_Schemas#Graphical_User_Interfaces | xml | xsd | markup | glade | null | null | open | Where can i find the XML schema (XSD-file) for the Glade markup language?
===
As stated in the title, i'm looking for an XML schema (XSD-file) for the Glade markup language?
Wikipedia states that **Glade** is a schema based markup language ([list of schemas at wikipedia][1]). I tried to search the web, wikipedia and the glade website,but i couldn't find an XSD for Glade.
Thx,
Juve
[1]: http://en.wikipedia.org/wiki/List_of_XML_Schemas#Graphical_User_Interfaces | 0 |
64,953 | 09/15/2008 17:31:04 | 8,995 | 09/15/2008 17:25:51 | 1 | 0 | Anyone using Lisp for a MySQL-backended web app? | I keep hearing that Lisp is a really productive language, and I'm enjoying [SICP][1]. Still, I'm missing something useful that would let me replace PHP for server-side database interaction in web applications.
Is there something like PHP's [PDO][2] library for Lisp or Arc or Scheme or one of the dialects?
[1]: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/
[2]: http://us2.php.net/manual/en/book.pdo.php | database | mysql | lisp | null | null | null | open | Anyone using Lisp for a MySQL-backended web app?
===
I keep hearing that Lisp is a really productive language, and I'm enjoying [SICP][1]. Still, I'm missing something useful that would let me replace PHP for server-side database interaction in web applications.
Is there something like PHP's [PDO][2] library for Lisp or Arc or Scheme or one of the dialects?
[1]: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/
[2]: http://us2.php.net/manual/en/book.pdo.php | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.