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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,860 | 08/14/2008 10:23:05 | 377 | 08/05/2008 10:01:14 | 435 | 41 | Data Layer Best Practices | I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application.
One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively.
The opposing viewpoint is that the data layer should be object-agnostic, and purely handle simple data types (strings, bools, dates, etc.)
I can see that both approaches may be valid, but my own viewpoint is that I prefer the former. That way, if the data storage medium changes, the business layer doesn't (necessarily) have to change to accommodate the new data layer. It would therefore be a trivial thing to change from a SQL data store to a serialized xml filesystem store.
My colleague's point of view is that the data layer shouldn't have to know about object definitions, and that as long as the data is passed about appropriately, that is enough.
Now, I know that this is one of those questions that has the potential to start a religious war, but I'd appreciate any feedback from the community on how you approach such things.
TIA
| .net | n-tier | null | null | null | null | open | Data Layer Best Practices
===
I am in the middle of a "discussion" with a colleague about the best way to implement the data layer in a new application.
One viewpoint is that the data layer should be aware of business objects (our own classes that represent an entity), and be able to work with that object natively.
The opposing viewpoint is that the data layer should be object-agnostic, and purely handle simple data types (strings, bools, dates, etc.)
I can see that both approaches may be valid, but my own viewpoint is that I prefer the former. That way, if the data storage medium changes, the business layer doesn't (necessarily) have to change to accommodate the new data layer. It would therefore be a trivial thing to change from a SQL data store to a serialized xml filesystem store.
My colleague's point of view is that the data layer shouldn't have to know about object definitions, and that as long as the data is passed about appropriately, that is enough.
Now, I know that this is one of those questions that has the potential to start a religious war, but I'd appreciate any feedback from the community on how you approach such things.
TIA
| 0 |
10,870 | 08/14/2008 10:32:52 | 1,109 | 08/12/2008 12:16:58 | 48 | 11 | How can I "unaccept" a drag in Flex? | Once I've called <code>DragManager.acceptDrag</code> is there any way to "unaccept" the drag? Say that I have a view which can accept drag and drop, but only in certain areas. Once the user drags over one of these areas I call <code>DragManager.acceptDrag(this)</code> (from a <code>DragEvent.DRAG_OVER</code> handler), but if the user then moves out of this area I'd like to change the status of the drag to not accepted and show the <code>DragManager.NONE</code> feedback. However, neither calling <code>DragManager.acceptDrag(null)</code> nor <code>DragManager.showFeedback(DragManager.NONE)</code> seems to have any effect. Once I've accepted the drag an set the feedback type I can't seem to change it.
Just to make it clear: the areas where the user should be able to drop are not components or even display objects, in fact they are just ranges in the text of a text field (like the selection). Had they been components of their own I could have solved it by making each of them accept drag events individually. I guess I could create proxy components that float over the text to emulate it, but I'd rather not if it isn't necessary. | flex | dragdrop | null | null | null | null | open | How can I "unaccept" a drag in Flex?
===
Once I've called <code>DragManager.acceptDrag</code> is there any way to "unaccept" the drag? Say that I have a view which can accept drag and drop, but only in certain areas. Once the user drags over one of these areas I call <code>DragManager.acceptDrag(this)</code> (from a <code>DragEvent.DRAG_OVER</code> handler), but if the user then moves out of this area I'd like to change the status of the drag to not accepted and show the <code>DragManager.NONE</code> feedback. However, neither calling <code>DragManager.acceptDrag(null)</code> nor <code>DragManager.showFeedback(DragManager.NONE)</code> seems to have any effect. Once I've accepted the drag an set the feedback type I can't seem to change it.
Just to make it clear: the areas where the user should be able to drop are not components or even display objects, in fact they are just ranges in the text of a text field (like the selection). Had they been components of their own I could have solved it by making each of them accept drag events individually. I guess I could create proxy components that float over the text to emulate it, but I'd rather not if it isn't necessary. | 0 |
10,872 | 08/14/2008 10:34:05 | 1,384,652 | 08/01/2008 12:01:23 | 912 | 58 | How to encourage someone to learn programming? | I have a friend that has a little bit of a holiday coming up and they want ideas on what they should do during the holiday, I plan to suggest programming to them, what are the pros and cons that I need to mention?
I'll add to the list below as people reply.
**Pros I have so far**
1. Minimal money requirement (they already have a computer)
2. Will help them to think in new ways
**Cons I have so far**
1. Can be frustrating when it's not working
2. Not physical exercise | language-agnostic | null | null | null | null | null | open | How to encourage someone to learn programming?
===
I have a friend that has a little bit of a holiday coming up and they want ideas on what they should do during the holiday, I plan to suggest programming to them, what are the pros and cons that I need to mention?
I'll add to the list below as people reply.
**Pros I have so far**
1. Minimal money requirement (they already have a computer)
2. Will help them to think in new ways
**Cons I have so far**
1. Can be frustrating when it's not working
2. Not physical exercise | 0 |
10,891 | 08/14/2008 11:05:21 | 1,075 | 08/12/2008 10:13:30 | 234 | 25 | Best way to connect To Sql Server with MFC | Soooo, I am starting this new job soon where most of the code is legacy MFC. The end goal is to convert/rewrite to C#.
I'm a little rusty with MFC so writing some code so I can try and spark my memory.
Anyway, was wondering the best way to connect to a SS2005 database with MFC. Back in the day CDatabase via ODBC was the way to go, has that changed in the last few years? I see you can use ATL and ADO, but looked a little, well verbose, for my liking? | mssql | mfc | null | null | null | null | open | Best way to connect To Sql Server with MFC
===
Soooo, I am starting this new job soon where most of the code is legacy MFC. The end goal is to convert/rewrite to C#.
I'm a little rusty with MFC so writing some code so I can try and spark my memory.
Anyway, was wondering the best way to connect to a SS2005 database with MFC. Back in the day CDatabase via ODBC was the way to go, has that changed in the last few years? I see you can use ATL and ADO, but looked a little, well verbose, for my liking? | 0 |
10,898 | 08/14/2008 11:18:39 | 162 | 08/02/2008 20:09:15 | 59 | 5 | How to set up a DB2 linked server on a 64-bit SQL Server 2005 | I need to create a linked server to a DB2 database on a mainframe. Has anyone done this successfully on a 64-bit version of SQL Server 2005? If so, which provider and settings were used.
It's important that the linked server work whether we are using a windows authenticated account to login to SQL Server or a SQL Server login. It's also important that both the 4-part name and OPENQUERY query methods are functional. We have one set up on a SQL Server 2000 machine that works well, but it uses a provider that's not available for 64-bit SS 2005. | sql-server | sqlserver2005 | null | null | null | null | open | How to set up a DB2 linked server on a 64-bit SQL Server 2005
===
I need to create a linked server to a DB2 database on a mainframe. Has anyone done this successfully on a 64-bit version of SQL Server 2005? If so, which provider and settings were used.
It's important that the linked server work whether we are using a windows authenticated account to login to SQL Server or a SQL Server login. It's also important that both the 4-part name and OPENQUERY query methods are functional. We have one set up on a SQL Server 2000 machine that works well, but it uses a provider that's not available for 64-bit SS 2005. | 0 |
10,901 | 08/14/2008 11:26:02 | 1,169 | 08/13/2008 09:39:24 | 11 | 2 | Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms? | My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is older than me (originally written in the late 70s) and some members of our team are still on Visual Studio 6.
However, a conclusion has thankfully been reached internally that our product is looking somewhat antiquated compared to our competitors', and that something needs to be done.
I am currently working on a new area of the UI which is quite separate from the rest of the product. I have therefore been given the chance to try out 'new' technology stacks as a sort of proving ground before the long process of moving over the rest of the UI begins.
I have been using C# with Windows Forms and the .net framework for a while in my spare time and enjoy it, but am somewhat worried about the headaches caused by interop. While this particular branch of the UI won't require much interop with the legacy C++ codebase, I can forsee this becoming an issue in the future.
The alternative is just to continue with MFC, but try and take advantage of the new feature pack that shipped with VS2008. This I guess is the easiest option, but I worry about longevity and not taking advantage of the goodness that is .net...
So, which do I pick? We're a small team so my recommendation will quite probably be accepted as a future direction for our development - I want to get it right.
Is MFC dead? Is C#/Winforms the way forward? Is there anything else I'm totally missing? Help greatly appreciated!
| c++ | mfc | ui | c++cli | null | null | open | Future proofing a large UI Application - MFC with 2008 Feature pack, or C# and Winforms?
===
My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is older than me (originally written in the late 70s) and some members of our team are still on Visual Studio 6.
However, a conclusion has thankfully been reached internally that our product is looking somewhat antiquated compared to our competitors', and that something needs to be done.
I am currently working on a new area of the UI which is quite separate from the rest of the product. I have therefore been given the chance to try out 'new' technology stacks as a sort of proving ground before the long process of moving over the rest of the UI begins.
I have been using C# with Windows Forms and the .net framework for a while in my spare time and enjoy it, but am somewhat worried about the headaches caused by interop. While this particular branch of the UI won't require much interop with the legacy C++ codebase, I can forsee this becoming an issue in the future.
The alternative is just to continue with MFC, but try and take advantage of the new feature pack that shipped with VS2008. This I guess is the easiest option, but I worry about longevity and not taking advantage of the goodness that is .net...
So, which do I pick? We're a small team so my recommendation will quite probably be accepted as a future direction for our development - I want to get it right.
Is MFC dead? Is C#/Winforms the way forward? Is there anything else I'm totally missing? Help greatly appreciated!
| 0 |
10,905 | 08/14/2008 11:30:54 | 905 | 08/10/2008 09:37:14 | 607 | 49 | Can you use genric forms in C#? | You should be able to create a genric form:
public partial class MyGenericForm<T> :
Form where T : class
{
/* form code */
public List<T> TypedList { get; set; }
}
Is valid C#, and compiles. However the designer won't work and the form will throw a runtime exception if you have any images stating that it cannot find the resource.
I think this is because the windows forms designer assumes that the resources will be stored under the simple type's name.
| c# | windowsforms | .net | null | null | null | open | Can you use genric forms in C#?
===
You should be able to create a genric form:
public partial class MyGenericForm<T> :
Form where T : class
{
/* form code */
public List<T> TypedList { get; set; }
}
Is valid C#, and compiles. However the designer won't work and the form will throw a runtime exception if you have any images stating that it cannot find the resource.
I think this is because the windows forms designer assumes that the resources will be stored under the simple type's name.
| 0 |
10,915 | 08/14/2008 11:56:29 | 1,284 | 08/14/2008 11:34:29 | 1 | 0 | Best way to model Many-To-One Relationships in NHibernate When Dealing With a Legacy DB? | Warning - I am very new to NHibernate. I know this question seems simple - and I'm sure there's a simple answer, but I've been spinning my wheels for some time on this one. I am dealing with a legacy db which really can't be altered structurally. I have a details table which lists payment plans that have been accepted by a customer. Each payment plan has an ID which links back to a reference table to get the plan's terms, conditions, etc. In my object model, I have an AcceptedPlan class, and a Plan class. Originally, I used a many-to-one relationship from the detail table back to the ref table to model this relationship in NHibernate. I also created a one-to-many relationship going in the opposite direction from the Plan class over to the AcceptedPlan class. This was fine while I was simply reading data. I could go to my Plan object, which was a property of my AcceptedPlan class to read the plan's details. My problem arose when I had to start inserting new rows to the details table. From my reading, it seems the only way to create a new child object is to add it to the parent object and then save the session. But I don't want to have to create a new parent Plan object every time I want to create a new detail record. This seems like unnecessary overhead. Does anyone know if I am going about this in the wrong way? | c# | nhibernate | null | null | null | null | open | Best way to model Many-To-One Relationships in NHibernate When Dealing With a Legacy DB?
===
Warning - I am very new to NHibernate. I know this question seems simple - and I'm sure there's a simple answer, but I've been spinning my wheels for some time on this one. I am dealing with a legacy db which really can't be altered structurally. I have a details table which lists payment plans that have been accepted by a customer. Each payment plan has an ID which links back to a reference table to get the plan's terms, conditions, etc. In my object model, I have an AcceptedPlan class, and a Plan class. Originally, I used a many-to-one relationship from the detail table back to the ref table to model this relationship in NHibernate. I also created a one-to-many relationship going in the opposite direction from the Plan class over to the AcceptedPlan class. This was fine while I was simply reading data. I could go to my Plan object, which was a property of my AcceptedPlan class to read the plan's details. My problem arose when I had to start inserting new rows to the details table. From my reading, it seems the only way to create a new child object is to add it to the parent object and then save the session. But I don't want to have to create a new parent Plan object every time I want to create a new detail record. This seems like unnecessary overhead. Does anyone know if I am going about this in the wrong way? | 0 |
10,919 | 08/14/2008 12:07:27 | 383 | 08/05/2008 10:46:37 | 1,705 | 194 | How do you measure SQL Fill Factor value | Usually when I'm creating indexes on tables, I generally guess what the Fill Factor should be based on an educated guess of how the table will be used (many reads or many writes).
Is there a more scientific way to determine a more accurate Fill Factor value? | sql-server | fillfactor | null | null | null | null | open | How do you measure SQL Fill Factor value
===
Usually when I'm creating indexes on tables, I generally guess what the Fill Factor should be based on an educated guess of how the table will be used (many reads or many writes).
Is there a more scientific way to determine a more accurate Fill Factor value? | 0 |
10,926 | 08/14/2008 12:27:00 | 1,290 | 08/14/2008 12:26:59 | 1 | 0 | Deleting / Replacing A Node in E4X (AS3 - Flex) | I'm building a listing/grid control in a Flex application and using it in a .NET web application. To make a really long story short I am getting XML from a webservice of serialized objects. I have a page limit of how many things can be on a page. I've taken a data grid and made it page, sort across pages, and handle some basic filtering.
In regards to paging I'm using a Dictionary keyed on the page and storing the XML for that page. This way whenever a user comes back to a page that I've saved into this dictionary I can grab the XML from local memory instead of hitting the webservice. Basically, I'm caching the data retrieved from each call to the webservice for a page of data.
There are several things that can expire my cache. Filtering and sorting are the main reason. However, a user may edit a row of data in the grid by opening an editor. The data they edit could cause the data displayed in the row to be stale. I could easily go to the webservice and get the whole page of data, but since the page size is set at runtime I could be looking at a large amount of records to retrieve.
So let me now get to the heart of the issue that I am experiencing. In order to prevent getting the whole page of data back I make a call to the webservice asking for the completely updated record (the editor handles saving its data).
Since I'm using custom objects I need to serialize them on the server to XML (this is handled already for other portions of our software). All data is handled through XML in e4x. The cache in the Dictionary is stored as an XMLList.
Now let me show you my code...
var idOfReplacee:String = this._WebService.GetSingleModelXml.lastResult.*[0].*[0].@Id;
var xmlToReplace:XMLList = this._DataPages[this._Options.PageIndex].Data.(@Id == idOfReplacee);
if(xmlToReplace.length() > 0)
{
delete (this._DataPages[this._Options.PageIndex].Data.(@Id == idOfReplacee)[0]);
this._DataPages[this._Options.PageIndex].Data += this._WebService.GetSingleModelXml.lastResult.*[0].*[0];
}
Basically, I get the id of the node I want to replace. Then I find it in the cache's Data property (XMLList). I make sure it exists since the filter on the second line returns the XMLList.
The problem I have is with the delete line. I cannot make that line delete that node from the list. The line following the delete line works. I've added the node to the list.
How do I replace or delete that node (meaning the node that I find from the filter statement out of the .Data property of the cache)???
Hopefully the underscores for all of my variables do not stay escaped when this is posted! otherwise this._ == this._
| flex | actionscript-3 | e4x | null | null | null | open | Deleting / Replacing A Node in E4X (AS3 - Flex)
===
I'm building a listing/grid control in a Flex application and using it in a .NET web application. To make a really long story short I am getting XML from a webservice of serialized objects. I have a page limit of how many things can be on a page. I've taken a data grid and made it page, sort across pages, and handle some basic filtering.
In regards to paging I'm using a Dictionary keyed on the page and storing the XML for that page. This way whenever a user comes back to a page that I've saved into this dictionary I can grab the XML from local memory instead of hitting the webservice. Basically, I'm caching the data retrieved from each call to the webservice for a page of data.
There are several things that can expire my cache. Filtering and sorting are the main reason. However, a user may edit a row of data in the grid by opening an editor. The data they edit could cause the data displayed in the row to be stale. I could easily go to the webservice and get the whole page of data, but since the page size is set at runtime I could be looking at a large amount of records to retrieve.
So let me now get to the heart of the issue that I am experiencing. In order to prevent getting the whole page of data back I make a call to the webservice asking for the completely updated record (the editor handles saving its data).
Since I'm using custom objects I need to serialize them on the server to XML (this is handled already for other portions of our software). All data is handled through XML in e4x. The cache in the Dictionary is stored as an XMLList.
Now let me show you my code...
var idOfReplacee:String = this._WebService.GetSingleModelXml.lastResult.*[0].*[0].@Id;
var xmlToReplace:XMLList = this._DataPages[this._Options.PageIndex].Data.(@Id == idOfReplacee);
if(xmlToReplace.length() > 0)
{
delete (this._DataPages[this._Options.PageIndex].Data.(@Id == idOfReplacee)[0]);
this._DataPages[this._Options.PageIndex].Data += this._WebService.GetSingleModelXml.lastResult.*[0].*[0];
}
Basically, I get the id of the node I want to replace. Then I find it in the cache's Data property (XMLList). I make sure it exists since the filter on the second line returns the XMLList.
The problem I have is with the delete line. I cannot make that line delete that node from the list. The line following the delete line works. I've added the node to the list.
How do I replace or delete that node (meaning the node that I find from the filter statement out of the .Data property of the cache)???
Hopefully the underscores for all of my variables do not stay escaped when this is posted! otherwise this._ == this._
| 0 |
10,933 | 08/14/2008 12:37:21 | 905 | 08/10/2008 09:37:14 | 652 | 53 | Can you recommend a good .Net web-based repository browser for SVN? | We have a SVN repository running on a Windows server, and I want to link internal documentation, feature changes, bugs and so on to code changes.
We've found WebSVN to be amazingly slow - the repository is too large for it (I think).
The team using it is primarily coding in C#, and while some have experience with other languages I'd really like a tool anyone on the team can maintain.
Most of the tools I've seen are based on PHP, Java, Python etc. All languages the team could learn, but I'd rather something that uses the skills we already have.
Can you recommend a good web-based repository browser for SVN, ideally one that uses ASP.Net? | .net | asp.net | svn | null | null | null | open | Can you recommend a good .Net web-based repository browser for SVN?
===
We have a SVN repository running on a Windows server, and I want to link internal documentation, feature changes, bugs and so on to code changes.
We've found WebSVN to be amazingly slow - the repository is too large for it (I think).
The team using it is primarily coding in C#, and while some have experience with other languages I'd really like a tool anyone on the team can maintain.
Most of the tools I've seen are based on PHP, Java, Python etc. All languages the team could learn, but I'd rather something that uses the skills we already have.
Can you recommend a good web-based repository browser for SVN, ideally one that uses ASP.Net? | 0 |
10,935 | 08/14/2008 12:41:43 | 1,100 | 08/12/2008 11:58:29 | 6 | 1 | How to trace COM objects exceptions? | I have a **DLL** with some **COM objects**. Sometimes, this objects **crashes** and register an error event in the Windows Event Log with lots of hexadecimal informations. I have no clue why this crashes happens.
**So, How can I trace those COM objects exceptions?**
| exception | com | dll | trace | null | null | open | How to trace COM objects exceptions?
===
I have a **DLL** with some **COM objects**. Sometimes, this objects **crashes** and register an error event in the Windows Event Log with lots of hexadecimal informations. I have no clue why this crashes happens.
**So, How can I trace those COM objects exceptions?**
| 0 |
10,936 | 08/14/2008 12:42:14 | 572 | 08/06/2008 20:56:54 | 267 | 25 | "Projects" for learning a new language | When you are learning a new programming language, what are some good projects that can be done across a spectrum of languages?
I'm familiar with [programming puzzles][1] and [read the other related question][2], but as I think about how I learn a language, I go through stages. First, I learn the basic syntax, then I learn the more advanced (and often language specific features), finally I learn how to manage a project in that language. Programming puzzles are OK for learning the basic syntax and, from my experience, very good for learning the more advanced features of the language, I'm looking for ideas that go from the very basics of the language to the most advanced aspects.
[1]: http://projecteuler.net/
[2]: http://stackoverflow.com/questions/10583/what-do-you-do-when-youre-learning-a-new-programming-language | education | programming-languages | new-language | null | null | null | open | "Projects" for learning a new language
===
When you are learning a new programming language, what are some good projects that can be done across a spectrum of languages?
I'm familiar with [programming puzzles][1] and [read the other related question][2], but as I think about how I learn a language, I go through stages. First, I learn the basic syntax, then I learn the more advanced (and often language specific features), finally I learn how to manage a project in that language. Programming puzzles are OK for learning the basic syntax and, from my experience, very good for learning the more advanced features of the language, I'm looking for ideas that go from the very basics of the language to the most advanced aspects.
[1]: http://projecteuler.net/
[2]: http://stackoverflow.com/questions/10583/what-do-you-do-when-youre-learning-a-new-programming-language | 0 |
10,949 | 08/14/2008 12:49:03 | 987 | 08/11/2008 12:14:17 | 258 | 29 | Unit tests for deep cloning | Let's say I have a complex .NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object - so I write a Clone() method, and implement it with a simple BinaryFormatter serialize/deserialize - or perhaps I do the deep clone using some other technique which is more error prone and I'd like to make sure is tested.
OK, so now (ok, I should have done it first) I'd like write tests which cover the cloning. All the members of the class are private, and my architecture is so good (!) that I haven't needed to write hundreds of public properties or other accessors. The class isn't IComparable or IEquatable, because that's not needed by the application. My unit tests are in a separate assembly to the production code.
What approaches do people take to testing that the cloned object is a good copy? Do you write (or *rewrite* once you discover the need for the clone) all your unit tests for the class so that they can be invoked with *either* a 'virgin' object *or* with a clone of it? How would you test if part of the cloning wasn't deep enough - as this is just the kind of problem which can give hideous-to-find bugs later?
| c# | .net | unittesting | null | null | null | open | Unit tests for deep cloning
===
Let's say I have a complex .NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object - so I write a Clone() method, and implement it with a simple BinaryFormatter serialize/deserialize - or perhaps I do the deep clone using some other technique which is more error prone and I'd like to make sure is tested.
OK, so now (ok, I should have done it first) I'd like write tests which cover the cloning. All the members of the class are private, and my architecture is so good (!) that I haven't needed to write hundreds of public properties or other accessors. The class isn't IComparable or IEquatable, because that's not needed by the application. My unit tests are in a separate assembly to the production code.
What approaches do people take to testing that the cloned object is a good copy? Do you write (or *rewrite* once you discover the need for the clone) all your unit tests for the class so that they can be invoked with *either* a 'virgin' object *or* with a clone of it? How would you test if part of the cloning wasn't deep enough - as this is just the kind of problem which can give hideous-to-find bugs later?
| 0 |
10,953 | 08/14/2008 12:51:37 | 1,219 | 08/13/2008 13:44:47 | 46 | 18 | What's the ideal development team composition? | This question might be a little too open-ended, because there are so many variables involved. I'm sure someone could describe a modern take on Brooks' Surgical Team from MMM.
I'm wondering what people's opinions are on specialists vs. generalists. Should you build a team of people who can pretty much do it all (jack-of-all-trades), or should each person be totaly focused on one aspect of software engineering, leaving the big picture to the development lead?
I tend to prefer generalists, because it gives you a lot more flexibility when things change, and developers who understand the big picture, how every part of an application interacts with every other part, tend to waste less time designing things that just won't fit.
The counter-argument to that, of course, is that a generalist doesn't have time to truly master all the intricate details of each technology, and therefore will be less effective than a specialist. | team | null | null | null | null | 02/07/2012 19:52:26 | off topic | What's the ideal development team composition?
===
This question might be a little too open-ended, because there are so many variables involved. I'm sure someone could describe a modern take on Brooks' Surgical Team from MMM.
I'm wondering what people's opinions are on specialists vs. generalists. Should you build a team of people who can pretty much do it all (jack-of-all-trades), or should each person be totaly focused on one aspect of software engineering, leaving the big picture to the development lead?
I tend to prefer generalists, because it gives you a lot more flexibility when things change, and developers who understand the big picture, how every part of an application interacts with every other part, tend to waste less time designing things that just won't fit.
The counter-argument to that, of course, is that a generalist doesn't have time to truly master all the intricate details of each technology, and therefore will be less effective than a specialist. | 2 |
10,980 | 08/14/2008 13:16:37 | 96 | 08/01/2008 18:33:48 | 176 | 14 | IKVM and Licensing | I have been looking into IKVMing Apache's FOP project to use with our .NET app. It's a commercial product, and looking into licensing, IKVM runs into some sticky areas because of its use of GNU Classpath. From what I've seen, no one can say for sure if this stuff can be used in a commercial product. Has anyone used IKVM, or an IKVM'd product, in a commercial product? Here's what I've found so far:
[IKVM license page][1], which notes that one dll contains code from other projects, their license [GPLv2 + Classpath Exception][2]
[Saxon for .NET][3] is generated with IKVM, but released under the Apache license...
Anyone have experience with this?
[1]: http://weblog.ikvm.net/story.aspx/license
[2]: http://openjdk.java.net/legal/gplv2+ce.html
[3]: http://saxon.sourceforge.net/ | .net | java | licensing | ikvm | null | null | open | IKVM and Licensing
===
I have been looking into IKVMing Apache's FOP project to use with our .NET app. It's a commercial product, and looking into licensing, IKVM runs into some sticky areas because of its use of GNU Classpath. From what I've seen, no one can say for sure if this stuff can be used in a commercial product. Has anyone used IKVM, or an IKVM'd product, in a commercial product? Here's what I've found so far:
[IKVM license page][1], which notes that one dll contains code from other projects, their license [GPLv2 + Classpath Exception][2]
[Saxon for .NET][3] is generated with IKVM, but released under the Apache license...
Anyone have experience with this?
[1]: http://weblog.ikvm.net/story.aspx/license
[2]: http://openjdk.java.net/legal/gplv2+ce.html
[3]: http://saxon.sourceforge.net/ | 0 |
10,985 | 08/14/2008 13:19:08 | 1,304 | 08/14/2008 13:19:08 | 1 | 0 | How to prevent an object being created on the heap? | Does nayone know how I can, in platform-independant C++ code prevent an object from being created on the heap? That is, for a class "Foo", I want to prevent users from doing this:
Foo *ptr = new Foo;
and only allow them to do this:
Foo myfooObject;
Does anyone have any ideas?
Cheers, | c++ | stack | heap | null | null | null | open | How to prevent an object being created on the heap?
===
Does nayone know how I can, in platform-independant C++ code prevent an object from being created on the heap? That is, for a class "Foo", I want to prevent users from doing this:
Foo *ptr = new Foo;
and only allow them to do this:
Foo myfooObject;
Does anyone have any ideas?
Cheers, | 0 |
10,990 | 08/14/2008 13:22:25 | 1,153 | 08/12/2008 23:20:02 | 1 | 0 | What are the proper permissions for an upload folder with PHP/Apache? | Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups...
I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I created the folder and then set permissions as such:
chown apache:apache -R uploads/
chmod 755 -R uploads/
The only problem now is that the FTP user can not modify the uploaded files at all.
Is there a permission setting that will allow me to still upload files and then modify them later as a user other than the webserver user?
Thanks!
| php | apache | upload | null | null | null | open | What are the proper permissions for an upload folder with PHP/Apache?
===
Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups...
I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I created the folder and then set permissions as such:
chown apache:apache -R uploads/
chmod 755 -R uploads/
The only problem now is that the FTP user can not modify the uploaded files at all.
Is there a permission setting that will allow me to still upload files and then modify them later as a user other than the webserver user?
Thanks!
| 0 |
10,999 | 08/14/2008 13:27:40 | 1,122 | 08/12/2008 14:00:43 | 114 | 15 | MS Team Foundation Server in distributed environments - hints tips tricks needed | Is anyone out there using Team Foundation Server within a team that is geographically distributed? We're in the UK, trying work with a team in Australia and we're finding it quite tough.
For example, things are being checked out to us without us asking on a get latest. Even when using a proxy, most thing take a while to happen. Lot's of really annoying little things like this are hardening our arteries, stopping us from delivering code and is frankly creating a user experience akin to pushing golden syrup up a sand dune.
Is *anyone* out there actually using TFS in this manner, on a daily basis with (relative) success?
If so, do you have any hints, tips, tricks or gotchas that would be worth knowing?
P.S. Upgrading to CruiseControl.NET is not an option. | tfs | teamfoundationserver | null | null | null | null | open | MS Team Foundation Server in distributed environments - hints tips tricks needed
===
Is anyone out there using Team Foundation Server within a team that is geographically distributed? We're in the UK, trying work with a team in Australia and we're finding it quite tough.
For example, things are being checked out to us without us asking on a get latest. Even when using a proxy, most thing take a while to happen. Lot's of really annoying little things like this are hardening our arteries, stopping us from delivering code and is frankly creating a user experience akin to pushing golden syrup up a sand dune.
Is *anyone* out there actually using TFS in this manner, on a daily basis with (relative) success?
If so, do you have any hints, tips, tricks or gotchas that would be worth knowing?
P.S. Upgrading to CruiseControl.NET is not an option. | 0 |
11,028 | 08/14/2008 13:44:43 | 1,030 | 08/11/2008 15:40:52 | 81 | 12 | What are the advantages of explicit Join Transitive Closure in SQL? | When I'm joining three or more tables together by a common column, I'd write my query like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
a colleague recently asked my why I didn't do explicit _Join Transitive Closure_ in my queries like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
AND c.id = a.id
are the really any advantages to this? Surely the optimiser can imply this for itself? | sql | jointransitiveclosure | null | null | null | null | open | What are the advantages of explicit Join Transitive Closure in SQL?
===
When I'm joining three or more tables together by a common column, I'd write my query like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
a colleague recently asked my why I didn't do explicit _Join Transitive Closure_ in my queries like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
AND c.id = a.id
are the really any advantages to this? Surely the optimiser can imply this for itself? | 0 |
11,043 | 08/14/2008 13:53:33 | 637 | 08/07/2008 12:33:15 | 119 | 2 | SQL Table Aliases - Good or Bad? | What are the pros and cons of using table aliases in SQL? I personally try to avoid them, as I think they make the code less readable (especially when reading through large where/and statements), but I'd be interested in hearing any counter-points to this. When is it generally a good idea to use table aliases, and do you have any preferred formats? | sql | table | alias | null | null | null | open | SQL Table Aliases - Good or Bad?
===
What are the pros and cons of using table aliases in SQL? I personally try to avoid them, as I think they make the code less readable (especially when reading through large where/and statements), but I'd be interested in hearing any counter-points to this. When is it generally a good idea to use table aliases, and do you have any preferred formats? | 0 |
11,045 | 08/14/2008 13:54:43 | 767 | 08/08/2008 17:04:18 | 1 | 1 | Refresh Excel VBA Function Results | Does anyone know how I can get a user-defined function to re-evaluate itself (based on changed data in the spreadsheet)? I've tried F9 and Shift+F9, but those don't work. The only thing that seems to work is editing the cell with the function call and then pressing Enter. Any ideas? I seem to remember being able to do this... | excel | vba | null | null | null | null | open | Refresh Excel VBA Function Results
===
Does anyone know how I can get a user-defined function to re-evaluate itself (based on changed data in the spreadsheet)? I've tried F9 and Shift+F9, but those don't work. The only thing that seems to work is editing the cell with the function call and then pressing Enter. Any ideas? I seem to remember being able to do this... | 0 |
11,046 | 08/14/2008 13:54:56 | 810 | 08/09/2008 03:49:52 | 439 | 28 | Forum software recommandations (.net) | Do you use or do you know a good .net forum software?
It can be free or not. It should have the common features normally found in a forum software.
So far, the best I've come up with is: [YetAnotherForum][1]
[1]: http://www.yetanotherforum.net/ | .net | forum | null | null | null | 11/20/2011 15:43:37 | not constructive | Forum software recommandations (.net)
===
Do you use or do you know a good .net forum software?
It can be free or not. It should have the common features normally found in a forum software.
So far, the best I've come up with is: [YetAnotherForum][1]
[1]: http://www.yetanotherforum.net/ | 4 |
11,055 | 08/14/2008 13:57:20 | 543 | 08/06/2008 15:41:31 | 100 | 12 | How big would such a database be? | I'm trying to figure out how big a certain database would be (it hasn't been created yet). I know how many rows and what the tables will be. Is there a feature in Oracle that will tell me the size of such a theoretical database? Is there a known math formula I can use? I know there is a feature to determine the size of an existing database, but I want to know how big it will be before I create it. | sql | databases | oracle | null | null | null | open | How big would such a database be?
===
I'm trying to figure out how big a certain database would be (it hasn't been created yet). I know how many rows and what the tables will be. Is there a feature in Oracle that will tell me the size of such a theoretical database? Is there a known math formula I can use? I know there is a feature to determine the size of an existing database, but I want to know how big it will be before I create it. | 0 |
11,060 | 08/14/2008 13:59:21 | 912 | 08/10/2008 10:09:35 | 3 | 4 | How should I unit test a code-generator? | This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and see if anyone had any interesting suggestions.
I have developed a code-generator that takes our python interface to our C++ code (generated via SWIG) and generates code needed to expose this as WebServices. When I developed this code I did it using TDD, but I've found my tests to be brittle as hell. Because each test essentially wanted to verify that for a given bit of input code (which happens to be a C++ header) I'd get a given bit of outputted code I wrote a small engine that reads test definitions from XML input files and generates test cases from these expectations.
The problem is I dread going in to modify the code at all. That and the fact that the unit tests themselves are a: complex, and b: brittle.
So I'm trying to think of alternative approaches to this problem, and it strikes me I'm perhaps tackling it the wrong way. Maybe I need to focus more on the outcome, IE: does the code I generate actually run and do what I want it to, rather than, does the code look the way I want it to.
Has anyone got any experiences of something similar to this they would care to share? | c++ | python | unittesting | swig | codegeneration | null | open | How should I unit test a code-generator?
===
This is a difficult and open-ended question I know, but I thought I'd throw it to the floor and see if anyone had any interesting suggestions.
I have developed a code-generator that takes our python interface to our C++ code (generated via SWIG) and generates code needed to expose this as WebServices. When I developed this code I did it using TDD, but I've found my tests to be brittle as hell. Because each test essentially wanted to verify that for a given bit of input code (which happens to be a C++ header) I'd get a given bit of outputted code I wrote a small engine that reads test definitions from XML input files and generates test cases from these expectations.
The problem is I dread going in to modify the code at all. That and the fact that the unit tests themselves are a: complex, and b: brittle.
So I'm trying to think of alternative approaches to this problem, and it strikes me I'm perhaps tackling it the wrong way. Maybe I need to focus more on the outcome, IE: does the code I generate actually run and do what I want it to, rather than, does the code look the way I want it to.
Has anyone got any experiences of something similar to this they would care to share? | 0 |
11,070 | 08/14/2008 14:02:00 | 1,309 | 08/14/2008 13:27:05 | 11 | 2 | Indispensable Books | If you were to be stuck on a desert island (in a sea of cubicles) with 5 CS/Engineering/Programming references - what would they be?
Code Complete by Steve McConnell?
Design Patterns by the gang of four?
The venerable K&R?
What are your favorites, and which do you find yourself coming back to most often? | books | reference | desert | island | null | 09/18/2011 21:58:02 | not constructive | Indispensable Books
===
If you were to be stuck on a desert island (in a sea of cubicles) with 5 CS/Engineering/Programming references - what would they be?
Code Complete by Steve McConnell?
Design Patterns by the gang of four?
The venerable K&R?
What are your favorites, and which do you find yourself coming back to most often? | 4 |
11,085 | 08/14/2008 14:11:42 | 166 | 08/02/2008 21:28:38 | 51 | 2 | How to determine the type of a blessed reference in Perl | In Perl, an object is just a reference to any of the basic Perl data types that has been blessed into a particular class. When you use the ref() function on an unblessed reference, you are told what data type the reference points to. However, when you call ref() on a blessed reference, you are returned the name of the package that reference has been blessed into.
I want to know the actual underlying type of the blessed reference. How can I determine this? | perl | null | null | null | null | null | open | How to determine the type of a blessed reference in Perl
===
In Perl, an object is just a reference to any of the basic Perl data types that has been blessed into a particular class. When you use the ref() function on an unblessed reference, you are told what data type the reference points to. However, when you call ref() on a blessed reference, you are returned the name of the package that reference has been blessed into.
I want to know the actual underlying type of the blessed reference. How can I determine this? | 0 |
11,088 | 08/14/2008 14:14:03 | 1,309 | 08/14/2008 13:27:05 | 11 | 3 | What is the best way to work around the fact that ALL Java bytes are signed? | In Java, there is no such thing as an unsigned byte.
Working with some low level code, occasionally you need to work with bytes that have unsigned values greater than 128, which causes Java to interpret them as a negative number due to the MSB being used for sign.
What's a good way to work around this? (Saying don't use Java is not an option) | java | byte | signed | unsigned | null | null | open | What is the best way to work around the fact that ALL Java bytes are signed?
===
In Java, there is no such thing as an unsigned byte.
Working with some low level code, occasionally you need to work with bytes that have unsigned values greater than 128, which causes Java to interpret them as a negative number due to the MSB being used for sign.
What's a good way to work around this? (Saying don't use Java is not an option) | 0 |
11,099 | 08/14/2008 14:23:11 | 1,185 | 08/13/2008 12:02:03 | 78 | 13 | What is the prefered style for single decision and action statements? | In the case of languages that support single decision and action without brackets, such as the following example:
if (var == true)
doSomething();
What is the preferred way of writing this? Should brackets always be used, or should their usage be left as a preference of the individual developer? Additionally, does this practice depend on the size of the code block, such as in the following example:
if (var == 1)
doSomething(1);
else if (var > 1 && var < 10)
doSomething(2);
else
{
validate(var);
doSomething(var);
} | language-agnostic | bestpractices | documentation | language-features | readablity | null | open | What is the prefered style for single decision and action statements?
===
In the case of languages that support single decision and action without brackets, such as the following example:
if (var == true)
doSomething();
What is the preferred way of writing this? Should brackets always be used, or should their usage be left as a preference of the individual developer? Additionally, does this practice depend on the size of the code block, such as in the following example:
if (var == 1)
doSomething(1);
else if (var > 1 && var < 10)
doSomething(2);
else
{
validate(var);
doSomething(var);
} | 0 |
11,112 | 08/14/2008 14:30:17 | 1,175 | 08/13/2008 10:21:54 | 41 | 7 | Best Wiki for Mobile Users | Most wiki software I've presents lots of "features" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the content, along with maybe an Edit button and a Search button.
What is a good wiki package for mobile users? | wiki | iphone | mobile-web | null | null | null | open | Best Wiki for Mobile Users
===
Most wiki software I've presents lots of "features" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the content, along with maybe an Edit button and a Search button.
What is a good wiki package for mobile users? | 0 |
11,127 | 08/14/2008 14:37:27 | 179 | 08/03/2008 02:38:27 | 13 | 3 | In C++/Windows how do I get the network name of the computer I'm on? | In a C++ Windows (XP and NT, if it makes a difference) application I'm working on, I need to get the network name associated with the computer the code is executing on, so that I can convert local filenames from C:\filename.ext to \\\network_name\C$\filename.ext. How would I do this?
Alternatively, if there's a function that will just do the conversion I described, that would be even better. I looked into WNetGetUniversalName, but that doesn't seem to work with local (C drive) files. | c++ | windows | xp | nt | networking | null | open | In C++/Windows how do I get the network name of the computer I'm on?
===
In a C++ Windows (XP and NT, if it makes a difference) application I'm working on, I need to get the network name associated with the computer the code is executing on, so that I can convert local filenames from C:\filename.ext to \\\network_name\C$\filename.ext. How would I do this?
Alternatively, if there's a function that will just do the conversion I described, that would be even better. I looked into WNetGetUniversalName, but that doesn't seem to work with local (C drive) files. | 0 |
11,135 | 08/14/2008 14:42:50 | 1,311 | 08/14/2008 13:43:09 | 1 | 0 | How to remote shell scripts from ASP pages? | I need to create and ASP page (not .NET, yes I know its ancient) should run remote shell scripts on a UNIX server and then capture the output into variables in VBScript within the page itself.
I ahve never done ASP or VBScipt before. I have tried to google this stuff, but all I find are references to remote server side scripting, nothing concrete.
I could really use
1. An elementary example of how this could be done.
2. Any other better alternatives to achieve this in a secure manner.
Thanks. | asp | vbscript | remote-scripting | null | null | null | open | How to remote shell scripts from ASP pages?
===
I need to create and ASP page (not .NET, yes I know its ancient) should run remote shell scripts on a UNIX server and then capture the output into variables in VBScript within the page itself.
I ahve never done ASP or VBScipt before. I have tried to google this stuff, but all I find are references to remote server side scripting, nothing concrete.
I could really use
1. An elementary example of how this could be done.
2. Any other better alternatives to achieve this in a secure manner.
Thanks. | 0 |
11,141 | 08/14/2008 14:46:30 | 1,144 | 08/12/2008 19:00:54 | 19 | 4 | ASP.NET Caching | Recently I have been investigating the possibilities of caching in ASP.NET.
I rolled my own "Cache", because I didn't know any better, it looked a bit like this:
public class DataManager
{
private static DataManager s_instance;
public static DataManager GetInstance()
{
}
private Data[] m_myData;
private DataTime m_cacheTime;
public Data[] GetData()
{
TimeSpan span = DateTime.Now.Substract(m_cacheTime);
if(span.TotalSeconds > 10)
{
// Do SQL to get data
m_myData = data;
m_cacheTime = DateTime.Now;
return m_myData;
}
else
{
return m_myData;
}
}
}
So the values are stored for a while in a singleton, and when the time expires, the values are renewed. If time has not expired, and a request for the data is done, the stored values in the field are returned.
What are the benefits over using the real method ([http://msdn.microsoft.com/en-us/library/aa478965.aspx][1]) instead of this?
[1]: http://msdn.microsoft.com/en-us/library/aa478965.aspx | asp.net | null | null | null | null | null | open | ASP.NET Caching
===
Recently I have been investigating the possibilities of caching in ASP.NET.
I rolled my own "Cache", because I didn't know any better, it looked a bit like this:
public class DataManager
{
private static DataManager s_instance;
public static DataManager GetInstance()
{
}
private Data[] m_myData;
private DataTime m_cacheTime;
public Data[] GetData()
{
TimeSpan span = DateTime.Now.Substract(m_cacheTime);
if(span.TotalSeconds > 10)
{
// Do SQL to get data
m_myData = data;
m_cacheTime = DateTime.Now;
return m_myData;
}
else
{
return m_myData;
}
}
}
So the values are stored for a while in a singleton, and when the time expires, the values are renewed. If time has not expired, and a request for the data is done, the stored values in the field are returned.
What are the benefits over using the real method ([http://msdn.microsoft.com/en-us/library/aa478965.aspx][1]) instead of this?
[1]: http://msdn.microsoft.com/en-us/library/aa478965.aspx | 0 |
11,145 | 08/14/2008 14:51:28 | 1,311 | 08/14/2008 13:43:09 | 1 | 0 | Drawing Library for Ruby | I am trying to code a flowchart generator for a language using Ruby.
I wanted to know if there were any libraries that I could use to draw various shapes for the various flowchart elements and write out text to those shapes.
I would really prefer not having to write code for drawing basic shapes, if I can help it. If someone could point me to some reference documentation with examples of using that library, it would be great.
Thanks! | ruby | graphics | drawing | null | null | null | open | Drawing Library for Ruby
===
I am trying to code a flowchart generator for a language using Ruby.
I wanted to know if there were any libraries that I could use to draw various shapes for the various flowchart elements and write out text to those shapes.
I would really prefer not having to write code for drawing basic shapes, if I can help it. If someone could point me to some reference documentation with examples of using that library, it would be great.
Thanks! | 0 |
11,147 | 08/14/2008 14:53:32 | 673 | 08/07/2008 16:33:05 | 232 | 30 | Pie Chart Drawing in PHP | I would like to be able to create a pie chart in PHP. Are there any libraries that will allow me to easily create a pie chart from a list of names and percentages? | php | null | null | null | null | null | open | Pie Chart Drawing in PHP
===
I would like to be able to create a pie chart in PHP. Are there any libraries that will allow me to easily create a pie chart from a list of names and percentages? | 0 |
11,152 | 08/14/2008 14:56:30 | 1,010 | 08/11/2008 13:02:11 | 1 | 0 | How do I create a workflow instance reliably based on an external event? | a little new to the windows workflow stuff so go easy :)
I wish to design a workflow host environment that has high availability - a minimum of 2 WF runtime hosts on separate hardware both pointing to the same persistance or tracking SQL database.
I am looking for a pattern whereby I can asynchronously create new workflow instances based on some external event (i.e. some piece of data is updated in DB by a different application). For each event I need to create exactly one workflow instance and doesn't matter which host that instance is created on. There is also some flexibility regarding the duration of time between the event and when the workflow instance is actually created.
One solution I am considering is having a WCF interface on the WF hosts and placing them behind some sort of load balancer. It would then be up to whatever part of the system that is firing the "event" to make the WCF call.
I'm not really happy with this because if both\all WF hosts are down, or otherwise unavailable, the event could be "lost". Also, I won't be able manage load the way I would like to. I envisage a situation where there may be lots of events in a small period of time, but it's perfectly acceptable to handle those events some time later.
So I reckon I need to persist the events somehow and decouple the event creation from the event handling.
Is putting these events into MSMQ, or a simple event table in SQL Server, and having the WF host just poll the queue periodically a viable solution? Polling seems to be a such a dirty word though...
Would NServiceBus and durable messaging be useful here?
Any insights would be much appreciated.
| .net | workflow | workflow-foundation | null | null | null | open | How do I create a workflow instance reliably based on an external event?
===
a little new to the windows workflow stuff so go easy :)
I wish to design a workflow host environment that has high availability - a minimum of 2 WF runtime hosts on separate hardware both pointing to the same persistance or tracking SQL database.
I am looking for a pattern whereby I can asynchronously create new workflow instances based on some external event (i.e. some piece of data is updated in DB by a different application). For each event I need to create exactly one workflow instance and doesn't matter which host that instance is created on. There is also some flexibility regarding the duration of time between the event and when the workflow instance is actually created.
One solution I am considering is having a WCF interface on the WF hosts and placing them behind some sort of load balancer. It would then be up to whatever part of the system that is firing the "event" to make the WCF call.
I'm not really happy with this because if both\all WF hosts are down, or otherwise unavailable, the event could be "lost". Also, I won't be able manage load the way I would like to. I envisage a situation where there may be lots of events in a small period of time, but it's perfectly acceptable to handle those events some time later.
So I reckon I need to persist the events somehow and decouple the event creation from the event handling.
Is putting these events into MSMQ, or a simple event table in SQL Server, and having the WF host just poll the queue periodically a viable solution? Polling seems to be a such a dirty word though...
Would NServiceBus and durable messaging be useful here?
Any insights would be much appreciated.
| 0 |
11,156 | 08/14/2008 14:58:51 | 195 | 08/03/2008 11:02:15 | 62 | 3 | managing two computers as if extended desktop is used | <p>I need to control two computers each connected to its own screen, using one mouse & KB. switching between them by mouse moving to the side-end of the screen (as in extended desktop supporting graphics cards).</p>
<p>regular KVM which forces some aware user input to choose the computer in work is not optimal.</p>
<p>the computers have obviously a network between them.</p>
<p>any ideas ?</p>
<p>thanks.</p> | keyboard | mouse | null | null | null | null | open | managing two computers as if extended desktop is used
===
<p>I need to control two computers each connected to its own screen, using one mouse & KB. switching between them by mouse moving to the side-end of the screen (as in extended desktop supporting graphics cards).</p>
<p>regular KVM which forces some aware user input to choose the computer in work is not optimal.</p>
<p>the computers have obviously a network between them.</p>
<p>any ideas ?</p>
<p>thanks.</p> | 0 |
11,194 | 08/14/2008 15:20:26 | 1,204 | 08/13/2008 13:02:12 | 1 | 0 | Conditional Linq Queries | We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses? | linq | linq-to-sql | c# | null | null | null | open | Conditional Linq Queries
===
We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses? | 0 |
11,199 | 08/14/2008 15:25:44 | 299 | 08/04/2008 13:31:09 | 173 | 16 | .NET Framework dependency | When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applications? | .net | dependency | null | null | null | null | open | .NET Framework dependency
===
When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applications? | 0 |
11,200 | 08/14/2008 15:26:11 | 26 | 08/01/2008 12:18:14 | 471 | 75 | T-Sql date format for seconds since last epoch | I'm guessing it needs to be something like:
CONVERT(CHAR(24), lastModified, 101)
However I'm not sure of the right value for the third parameter.
Thanks! | tsql | date | null | null | null | null | open | T-Sql date format for seconds since last epoch
===
I'm guessing it needs to be something like:
CONVERT(CHAR(24), lastModified, 101)
However I'm not sure of the right value for the third parameter.
Thanks! | 0 |
11,219 | 08/14/2008 15:34:26 | 160 | 08/02/2008 18:35:58 | 41 | 3 | Calling REST web services from a classic asp page | I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then, for them to benefit from the advantages of a unique set of web APIs, it would have to be called from Classic ASP pages.
I haven't the slightest idea how to do that.
Thank you all for your time! | webservices | asp | classicasp | rest | null | null | open | Calling REST web services from a classic asp page
===
I'd like to start moving our application business layers into a collection of REST web services. However, most of our Intranet has been built using Classic ASP and most of the developers where I work keep programming in Classic ASP. Ideally, then, for them to benefit from the advantages of a unique set of web APIs, it would have to be called from Classic ASP pages.
I haven't the slightest idea how to do that.
Thank you all for your time! | 0 |
11,248 | 08/14/2008 15:59:25 | 1,145 | 08/12/2008 19:03:34 | 31 | 2 | Trial wrapping | We have been using a third party trial wrapping solution for a while where I work to give users 15 or 30 day trial versions of our commercial software (the commercial versions are recompiled to use a USB hard key) - however I would like to see what other options are out there for creating trial software. What do you recommend? | trialware | null | null | null | null | null | open | Trial wrapping
===
We have been using a third party trial wrapping solution for a while where I work to give users 15 or 30 day trial versions of our commercial software (the commercial versions are recompiled to use a USB hard key) - however I would like to see what other options are out there for creating trial software. What do you recommend? | 0 |
11,263 | 08/14/2008 16:09:55 | 1,192 | 08/13/2008 12:17:17 | 1 | 4 | Do you know any patterns for GUI programming? (Not patterns on designing GUIs) | I'm looking for patterns that concern coding parts of a GUI. **Not** as global as **MVC**, that I'm quite familiar with, but patterns and good ideas and best practices concerning single controls and inputs.
Let say I want to make a control that display some objects that may overlap. Now if I click on an object, I need to find out what to do (Just finding the object I can do in several ways, such as an quad-tree and Z-order, thats not the problem). And also I might hold down a modifier key, or some object is active from the beginning, making the selection or whatever a bit more complicated. Should I have an object instance representing a screen object, handle the user-action when clicked, or a master class. etc.. What kind of patterns or solutions are there for problems like this? | gui | designpatterns | null | null | null | null | open | Do you know any patterns for GUI programming? (Not patterns on designing GUIs)
===
I'm looking for patterns that concern coding parts of a GUI. **Not** as global as **MVC**, that I'm quite familiar with, but patterns and good ideas and best practices concerning single controls and inputs.
Let say I want to make a control that display some objects that may overlap. Now if I click on an object, I need to find out what to do (Just finding the object I can do in several ways, such as an quad-tree and Z-order, thats not the problem). And also I might hold down a modifier key, or some object is active from the beginning, making the selection or whatever a bit more complicated. Should I have an object instance representing a screen object, handle the user-action when clicked, or a master class. etc.. What kind of patterns or solutions are there for problems like this? | 0 |
11,267 | 08/14/2008 16:14:36 | 832 | 08/09/2008 06:51:40 | 446 | 47 | ASP.NET UserControl's and DefaultEvent | #Outline
OK, I have Google'd this and already expecting a big fat **NO!!** But I thought I should ask since I know sometimes there can be the odd little gem of knowledge lurking around in peoples heads ^_^
I am working my way through some excercises in a book for study, and this particular exercise is User Controls. I have cobbled together a control and would like to set the DefaultEvent for it (having done this for previous controls) so when I double-click it, the default event created is whatever I specify it to be.
**NOTE:** This is a standard User Control (.ascx), _NOT_ a custom rendered control.
##Current Code
Here is the class & event definition:
[System.ComponentModel.DefaultEvent("OKClicked")]
public partial class AddressBox : System.Web.UI.UserControl
{
public event EventHandler OKClicked;
##Current Result
Now, when I double click the the control when it is on a ASPX page, the following is created:
protected void AddressBox1_Load(object sender, EventArgs e)
{
}
Not quite what I was expecting! So, my question:
##Is it possible to define a DefaultEvent for a UserControl? Is it a hack? It it [not] supported for a reason?
_ _ _
**Side Note**: How do we put underscores in code? I cant seem to put and escape char in? | asp.net | usercontrols | attributes | c# | null | null | open | ASP.NET UserControl's and DefaultEvent
===
#Outline
OK, I have Google'd this and already expecting a big fat **NO!!** But I thought I should ask since I know sometimes there can be the odd little gem of knowledge lurking around in peoples heads ^_^
I am working my way through some excercises in a book for study, and this particular exercise is User Controls. I have cobbled together a control and would like to set the DefaultEvent for it (having done this for previous controls) so when I double-click it, the default event created is whatever I specify it to be.
**NOTE:** This is a standard User Control (.ascx), _NOT_ a custom rendered control.
##Current Code
Here is the class & event definition:
[System.ComponentModel.DefaultEvent("OKClicked")]
public partial class AddressBox : System.Web.UI.UserControl
{
public event EventHandler OKClicked;
##Current Result
Now, when I double click the the control when it is on a ASPX page, the following is created:
protected void AddressBox1_Load(object sender, EventArgs e)
{
}
Not quite what I was expecting! So, my question:
##Is it possible to define a DefaultEvent for a UserControl? Is it a hack? It it [not] supported for a reason?
_ _ _
**Side Note**: How do we put underscores in code? I cant seem to put and escape char in? | 0 |
11,275 | 08/14/2008 16:19:49 | 1,154 | 08/12/2008 23:39:07 | 94 | 15 | Standard Signature a Text in a Message using Exchange Server | Anyone know how to do this without using a third party program? If there no way to do it with a add-on someone can recommend one?
Thanks
| exchange | outlook | null | null | null | null | open | Standard Signature a Text in a Message using Exchange Server
===
Anyone know how to do this without using a third party program? If there no way to do it with a add-on someone can recommend one?
Thanks
| 0 |
11,279 | 08/14/2008 16:25:12 | 305 | 08/04/2008 14:04:19 | 247 | 23 | Automaticaly incremented revision # doesn't show up in the About Box. | I suspect this is going to be a really easy one but I'm a .NET newbie so be gentle.
I have a small VB .NET app that I'm working on using the full version of Visual Studio 2005. In the **Publish** properties of the project, I have it set to *Automatically increment revision with each publish*.
The issue is that it's only incrementing the revision in the Setup files. It doesn't seem to be updating the version # in the About Box (which is the generic, built-in, About Box template). That version # seems to be coming from *My.Application.Info.Version*.
What should I be using instead so that I my automatically incrementing revision # shows up in the about box.
| visualbasic | dotnet | visual-studio | null | null | null | open | Automaticaly incremented revision # doesn't show up in the About Box.
===
I suspect this is going to be a really easy one but I'm a .NET newbie so be gentle.
I have a small VB .NET app that I'm working on using the full version of Visual Studio 2005. In the **Publish** properties of the project, I have it set to *Automatically increment revision with each publish*.
The issue is that it's only incrementing the revision in the Setup files. It doesn't seem to be updating the version # in the About Box (which is the generic, built-in, About Box template). That version # seems to be coming from *My.Application.Info.Version*.
What should I be using instead so that I my automatically incrementing revision # shows up in the about box.
| 0 |
11,288 | 08/14/2008 16:30:49 | 1,346 | 08/14/2008 16:14:44 | 1 | 0 | WPF - Sorting a composite collection | So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so what would be a best practice for solving tihs problem.
There are two or more object collections of different types. You want to combine them into a single sortable and filterable collection (withing having to manually implement sort or filter).
One of the approaches I've considered is to create a new object collection with only a few core properties, including the ones that I would want the collection sorted on, and an object instance of each type.
class MyCompositeObject
{
enum ObjectType;
DateTime CreatedDate;
string SomeAttribute;
myObjectType1 Obj1;
myObjectType2 Obj2;
{
class MyCompositeObjects : List<MyCompositeObject> { }
And then loop through my two object collectiosn to build the new composite collection. Obviously this is a bit of a brute force method, but it would work. I'd get all the default view sorting and filtering behavior on my new composite object collection, and I'd be able to put a data template on it to display my list items properly depending on which type is actually stored in that composite item.
What suggestions are there for doing this in a more elegant way? | c# | wpf | data-binding | collections | null | null | open | WPF - Sorting a composite collection
===
So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so what would be a best practice for solving tihs problem.
There are two or more object collections of different types. You want to combine them into a single sortable and filterable collection (withing having to manually implement sort or filter).
One of the approaches I've considered is to create a new object collection with only a few core properties, including the ones that I would want the collection sorted on, and an object instance of each type.
class MyCompositeObject
{
enum ObjectType;
DateTime CreatedDate;
string SomeAttribute;
myObjectType1 Obj1;
myObjectType2 Obj2;
{
class MyCompositeObjects : List<MyCompositeObject> { }
And then loop through my two object collectiosn to build the new composite collection. Obviously this is a bit of a brute force method, but it would work. I'd get all the default view sorting and filtering behavior on my new composite object collection, and I'd be able to put a data template on it to display my list items properly depending on which type is actually stored in that composite item.
What suggestions are there for doing this in a more elegant way? | 0 |
11,291 | 08/14/2008 16:32:22 | 1,344 | 08/14/2008 16:03:00 | 11 | 2 | Cocoa - best way to capture key events in NSTextView? | Well?
I'm slowly learning Objective-C and Cocoa, and the only way I see so far to capture key events in Text Views is to use delegation, but I'm having trouble finding useful documentation and examples on how to implement such a solution. Can anyone point me in the right direction or supply some first-hand help? Thanks in advance! | gui | osx | cocoa | events | objectivec | null | open | Cocoa - best way to capture key events in NSTextView?
===
Well?
I'm slowly learning Objective-C and Cocoa, and the only way I see so far to capture key events in Text Views is to use delegation, but I'm having trouble finding useful documentation and examples on how to implement such a solution. Can anyone point me in the right direction or supply some first-hand help? Thanks in advance! | 0 |
11,305 | 08/14/2008 16:41:25 | 895 | 08/10/2008 08:40:28 | 1 | 0 | How to parse XML in VBA | I work in VBA, and want to parse a string eg
<PointN xsi:type='typens:PointN'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xs='http://www.w3.org/2001/XMLSchema'><X>24.365</X><Y>78.63</Y></PointN>
and get the X & Y values into two separate integer variables.
I'm a newbie when it comes to XML, since I'm stuck in VB6 and VBA, because of the field I work in.
How do I do this? | xml | vba | vb6 | null | null | null | open | How to parse XML in VBA
===
I work in VBA, and want to parse a string eg
<PointN xsi:type='typens:PointN'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xs='http://www.w3.org/2001/XMLSchema'><X>24.365</X><Y>78.63</Y></PointN>
and get the X & Y values into two separate integer variables.
I'm a newbie when it comes to XML, since I'm stuck in VB6 and VBA, because of the field I work in.
How do I do this? | 0 |
11,311 | 08/14/2008 16:43:03 | 299 | 08/04/2008 13:31:09 | 185 | 17 | Formatting text in WinForm Label | Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out.
For example:
Dim myLabel As New Label
myLabel.Text = "This is <b>bold</b> text. This is <green>green</green> text."
Which would produce the text in the label as:
> This is <b>bold</b> text. This is <span style="color:green;">green</span> text.
| formatting | text | label | winform | null | null | open | Formatting text in WinForm Label
===
Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out.
For example:
Dim myLabel As New Label
myLabel.Text = "This is <b>bold</b> text. This is <green>green</green> text."
Which would produce the text in the label as:
> This is <b>bold</b> text. This is <span style="color:green;">green</span> text.
| 0 |
11,318 | 08/14/2008 16:44:42 | 322 | 08/04/2008 16:38:52 | 232 | 14 | Simple animation in WinForms | Imagine you want to animate some object on a WinForm. You setup a timer to update the state or model, and override the paint event of the Form. But from there, what's the best way to continually repaint the Form for the animation?
- Invalidate the Form as soon as you are done drawing?
- Setup a second timer and invalidate the form on a regular interval?
- Perhaps there is a common pattern for this thing?
- Are there any useful .NET classes to help out?
Each time I need to do this I discover a new method with a new drawback. What are the experiences and recommendations from the SO community?
| .net | winforms | animation | null | null | null | open | Simple animation in WinForms
===
Imagine you want to animate some object on a WinForm. You setup a timer to update the state or model, and override the paint event of the Form. But from there, what's the best way to continually repaint the Form for the animation?
- Invalidate the Form as soon as you are done drawing?
- Setup a second timer and invalidate the form on a regular interval?
- Perhaps there is a common pattern for this thing?
- Are there any useful .NET classes to help out?
Each time I need to do this I discover a new method with a new drawback. What are the experiences and recommendations from the SO community?
| 0 |
11,330 | 08/14/2008 16:51:07 | 432 | 08/05/2008 17:18:46 | 638 | 37 | Passing more parameters in C function pointers | Let's say I'm creating a chess program. I have a function
void foreachMove( void (*action)(chess_move*), chess_game* game);
which will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the action function? For example:
chess_move getNextMove(chess_game* game, int depth){
//for each valid move, determine how good the move is
foreachMove(moveHandler, game);
}
void moveHandler(chess_move* move){
//uh oh, now I need the variables "game" and "depth" from the above function
}
How can I pass extra parameters to a function that I'm calling through a pointer? | c | pointer | architecture | null | null | null | open | Passing more parameters in C function pointers
===
Let's say I'm creating a chess program. I have a function
void foreachMove( void (*action)(chess_move*), chess_game* game);
which will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the action function? For example:
chess_move getNextMove(chess_game* game, int depth){
//for each valid move, determine how good the move is
foreachMove(moveHandler, game);
}
void moveHandler(chess_move* move){
//uh oh, now I need the variables "game" and "depth" from the above function
}
How can I pass extra parameters to a function that I'm calling through a pointer? | 0 |
11,333 | 08/14/2008 16:56:24 | 1,124 | 08/12/2008 15:13:50 | 66 | 10 | Open Source Licensing Options for ASP.NET MVC Application? | I'm working on a personal project in ASP.NET MVC that I plan on making open source. In the past, I've open-sourced quite a few PHP scripts and UNIX-based stuff. For those, I typically went with a BSD/Apache style license, unless I was including a library that prevented it. On the Linux/PHP side of things, that usually meant something that was GPL-ed, thus still resulting in a fairly clear-cut arrangement.
For this project, however, I'm trying to figure out which licenses are even **possible** to apply to this project and not finding any good resource to answer the question. I know that the only "real" answer to this question would involve a lawyer. However, as this isn't something that's going to generate revenue, if I'm going to kick in $1000 toward the project, I'd rather hire a graphic designer or a usability expert to take a pass at the application than pay a lawyer.
This particular project also uses Subsonic for database access and Argotic for RSS parsing, further complicating the issue.
I know that I'm allowed to use all of those pieces and that I can redistribute my project that uses them all. However, what I'm left with is confusion over what the resulting project can/must be licensed under.
I can probably negotiate my way through the maze for the Subsonic and Argotic bits because they're already under open source licenses, but I can't be the only one trying to figure out what license I can apply to a project I write on top of ASP.NET MVC. | asp.net | mvc | opensource | licensing | subsonic | null | open | Open Source Licensing Options for ASP.NET MVC Application?
===
I'm working on a personal project in ASP.NET MVC that I plan on making open source. In the past, I've open-sourced quite a few PHP scripts and UNIX-based stuff. For those, I typically went with a BSD/Apache style license, unless I was including a library that prevented it. On the Linux/PHP side of things, that usually meant something that was GPL-ed, thus still resulting in a fairly clear-cut arrangement.
For this project, however, I'm trying to figure out which licenses are even **possible** to apply to this project and not finding any good resource to answer the question. I know that the only "real" answer to this question would involve a lawyer. However, as this isn't something that's going to generate revenue, if I'm going to kick in $1000 toward the project, I'd rather hire a graphic designer or a usability expert to take a pass at the application than pay a lawyer.
This particular project also uses Subsonic for database access and Argotic for RSS parsing, further complicating the issue.
I know that I'm allowed to use all of those pieces and that I can redistribute my project that uses them all. However, what I'm left with is confusion over what the resulting project can/must be licensed under.
I can probably negotiate my way through the maze for the Subsonic and Argotic bits because they're already under open source licenses, but I can't be the only one trying to figure out what license I can apply to a project I write on top of ASP.NET MVC. | 0 |
11,338 | 08/14/2008 17:04:25 | 1,318 | 08/14/2008 14:00:08 | 1 | 1 | Getting Java and Twain to play together nicely | I'm working on building an app to scan directly from TWAIN scanner to a Java applet.
I'm already aware of [Morena][1] and [JTwain][2], but they cost money. I need free.
I could re-invent the wheel with JNI, but it seems like someone has probably already done this as a FOSS tool. Is anyone familiar with a **free** tool that can save me some time and effort?
[1]: http://www.gnome.sk/Twain/jtp.html
[2]: http://asprise.com/product/jtwain/ | java | twain | scanner | null | null | null | open | Getting Java and Twain to play together nicely
===
I'm working on building an app to scan directly from TWAIN scanner to a Java applet.
I'm already aware of [Morena][1] and [JTwain][2], but they cost money. I need free.
I could re-invent the wheel with JNI, but it seems like someone has probably already done this as a FOSS tool. Is anyone familiar with a **free** tool that can save me some time and effort?
[1]: http://www.gnome.sk/Twain/jtp.html
[2]: http://asprise.com/product/jtwain/ | 0 |
11,341 | 08/14/2008 17:06:46 | 1,104 | 08/12/2008 12:02:17 | 41 | 6 | Create PDFs from multipage forms in WebObjects | I would like to automatically generate PDF documents from WebObjects based on mulitpage forms. Assuming I have a class which can assemble the related forms (java/wod files) is there a good way to then parse the individaul forms into a PDF instead of going to the screen? | java | pdf | webobjects | null | null | null | open | Create PDFs from multipage forms in WebObjects
===
I would like to automatically generate PDF documents from WebObjects based on mulitpage forms. Assuming I have a class which can assemble the related forms (java/wod files) is there a good way to then parse the individaul forms into a PDF instead of going to the screen? | 0 |
11,345 | 08/14/2008 17:09:43 | 64 | 08/01/2008 14:27:12 | 4 | 4 | XPATHS and Default Namespaces | What is the story behind XPATH and support for namespaces? Did XPATH as a specification precede namespaces? If I have a document where elements have been given a default namespace:
>> <foo xmlns="uri" />
It appears as though some of the XPATH processor libraries won't recognize //foo because of the namespace whereas others will. The option my team has thought about is to add a namespace prefix using regular expressions to the XPATH (you can add a namespace prefix via XmlNameTable) but this seems brittle since XPATH is such a flexible language when it comes to node tests.
Is there a standard that applies to this?
My approach is a bit hackish but it seems to work fine; I remove the xmlns declaration with a search/replace and then apply xpaths.
>string readyForXpath = Regex.Replace( xmldocument, "xmlns=\".+\"", String.Empty );
Is that a fair approach or has anyone solved this differently? | c# | xml | namespace | xpath | null | null | open | XPATHS and Default Namespaces
===
What is the story behind XPATH and support for namespaces? Did XPATH as a specification precede namespaces? If I have a document where elements have been given a default namespace:
>> <foo xmlns="uri" />
It appears as though some of the XPATH processor libraries won't recognize //foo because of the namespace whereas others will. The option my team has thought about is to add a namespace prefix using regular expressions to the XPATH (you can add a namespace prefix via XmlNameTable) but this seems brittle since XPATH is such a flexible language when it comes to node tests.
Is there a standard that applies to this?
My approach is a bit hackish but it seems to work fine; I remove the xmlns declaration with a search/replace and then apply xpaths.
>string readyForXpath = Regex.Replace( xmldocument, "xmlns=\".+\"", String.Empty );
Is that a fair approach or has anyone solved this differently? | 0 |
11,350 | 08/14/2008 17:15:08 | 25 | 08/01/2008 12:15:23 | 491 | 42 | What questions should you ask a potential future employer during an interview? | I'm going to start interviewing again over the next couple of months. I'm about three years out of school, got some good programming experience under my belt that I can boast about, and finally feel like I can call some of the shots. A question that has been bouncing around in my head for awhile is what *are* the best questions I should ask my potential future employer to find out if they are on the up-and-up and worthy of my talent (Ha!).
I realize that a good place to start is to rattle off [the Joel Test][1], but what other questions/resources can I gleam from the SO hive mind?
[1]: http://www.joelonsoftware.com/articles/fog0000000043.html | interview-questions | joeltest | null | null | null | null | open | What questions should you ask a potential future employer during an interview?
===
I'm going to start interviewing again over the next couple of months. I'm about three years out of school, got some good programming experience under my belt that I can boast about, and finally feel like I can call some of the shots. A question that has been bouncing around in my head for awhile is what *are* the best questions I should ask my potential future employer to find out if they are on the up-and-up and worthy of my talent (Ha!).
I realize that a good place to start is to rattle off [the Joel Test][1], but what other questions/resources can I gleam from the SO hive mind?
[1]: http://www.joelonsoftware.com/articles/fog0000000043.html | 0 |
11,359 | 08/14/2008 17:17:30 | 327 | 08/04/2008 17:08:49 | 282 | 14 | What is good remote performance monitoring software for Windows? | I'm looking for some software to monitor a single server for performance alerts. Preferably free and with a reasonable default configuration. | windows | performance | sysadmin | null | null | null | open | What is good remote performance monitoring software for Windows?
===
I'm looking for some software to monitor a single server for performance alerts. Preferably free and with a reasonable default configuration. | 0 |
11,381 | 08/14/2008 17:25:29 | 1,030 | 08/11/2008 15:40:52 | 103 | 12 | Making human readable representations of an Integer | Here's a coding problem for those that like this kind of thing. Let's see your implementations (in your language of choice, of course) of a function which returns a human readable String representation of a specified Integer. For example:
<ul>
<li>humanReadable(1) returns "one".
<li>humanReadable(53) returns "fifty-three".
<li>humanReadable(723603) returns "seven hundred and twenty-three thousand, six hundred and three".
<li>humanReadable(1456376562) returns "one billion, four hundred and fifty-six million, three hundred and seventy-six thousand, five hundred and sixty-two".
</ul>
Bonus points for particularly clever/elegant solutions!
It might seem like a pointless exercise, but there are number of real world applications for this kind of algorithm (although supporting numbers as high as a billion may be overkill :-)
| practice | null | null | null | null | null | open | Making human readable representations of an Integer
===
Here's a coding problem for those that like this kind of thing. Let's see your implementations (in your language of choice, of course) of a function which returns a human readable String representation of a specified Integer. For example:
<ul>
<li>humanReadable(1) returns "one".
<li>humanReadable(53) returns "fifty-three".
<li>humanReadable(723603) returns "seven hundred and twenty-three thousand, six hundred and three".
<li>humanReadable(1456376562) returns "one billion, four hundred and fifty-six million, three hundred and seventy-six thousand, five hundred and sixty-two".
</ul>
Bonus points for particularly clever/elegant solutions!
It might seem like a pointless exercise, but there are number of real world applications for this kind of algorithm (although supporting numbers as high as a billion may be overkill :-)
| 0 |
11,405 | 08/14/2008 17:39:46 | 112 | 08/02/2008 05:39:11 | 1 | 1 | template problem with gcc | The following code doesn't compile with gcc, but does with Visual Studio:
template <typename T> class A {
public:
T foo;
};
template <typename T> class B: public A <T> {
public:
void bar() { cout << foo << endl; }
};
I get the error:
test.cpp: In member function ‘void B<T>::bar()’:
test.cpp:11: error: ‘foo’ was not declared in this scope
But it should be! If I change <code>bar</code> to
void bar() { cout << this->foo << endl; }
then it *does* compile, but I don't think I have to do this. Is there something in the official specs of C++ that gcc is following here, or is it just a quirk? | c++ | gcc | templates | null | null | null | open | template problem with gcc
===
The following code doesn't compile with gcc, but does with Visual Studio:
template <typename T> class A {
public:
T foo;
};
template <typename T> class B: public A <T> {
public:
void bar() { cout << foo << endl; }
};
I get the error:
test.cpp: In member function ‘void B<T>::bar()’:
test.cpp:11: error: ‘foo’ was not declared in this scope
But it should be! If I change <code>bar</code> to
void bar() { cout << this->foo << endl; }
then it *does* compile, but I don't think I have to do this. Is there something in the official specs of C++ that gcc is following here, or is it just a quirk? | 0 |
11,423 | 08/14/2008 18:04:45 | 1,356 | 08/14/2008 17:53:58 | 1 | 0 | How to host a WPF form in a MFC application | I'm looking for any resources on hosting a WPF form within an existing MFC application. Can anyone point me in the right direction on how to do this?
Thanks,
--Mark | c# | wpf | mfc | null | null | null | open | How to host a WPF form in a MFC application
===
I'm looking for any resources on hosting a WPF form within an existing MFC application. Can anyone point me in the right direction on how to do this?
Thanks,
--Mark | 0 |
11,430 | 08/14/2008 18:08:00 | 1,194 | 08/13/2008 12:27:52 | 1 | 0 | SQL 2008 .NET CLR | Does SQL 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features? | mssql | null | null | null | null | null | open | SQL 2008 .NET CLR
===
Does SQL 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features? | 0 |
11,439 | 08/14/2008 18:11:31 | 1,360 | 08/14/2008 18:11:31 | 1 | 0 | Visual Studio Setup Project Custom Dialog | I have created a custom dialog for Visual Studio Setup Project using the steps described here:
[http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2640482&fr=26][1]
[1]: http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2640482&fr=26
Now I have a combobox in one of my dialogs. I want to populate the combobox with a list of all SQL Server instances running on the local network. It's trivial to get the server list ... but I'm completely lost on how to make them display in the combobox. I would appreciate your help and some code might also be nice as I'm beginner :). | .net | project | setup | visual | studio | null | open | Visual Studio Setup Project Custom Dialog
===
I have created a custom dialog for Visual Studio Setup Project using the steps described here:
[http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2640482&fr=26][1]
[1]: http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx?fid=419622&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2640482&fr=26
Now I have a combobox in one of my dialogs. I want to populate the combobox with a list of all SQL Server instances running on the local network. It's trivial to get the server list ... but I'm completely lost on how to make them display in the combobox. I would appreciate your help and some code might also be nice as I'm beginner :). | 0 |
11,459 | 08/14/2008 18:28:31 | 145 | 08/02/2008 14:40:17 | 298 | 15 | Increasing Battery Life Under Linux | All right, this is something I think everyone can agree would be nice to have:
**Longer Battery Life**
I have a Thinkpad T61p and am currently running Fedora 9 on it. I love sitting outside and coding (required software tyin... check) and it would be nice to not have to worry about my battery running out while I'm doing so. Vista seems to get more time out of my battery because of the ThinkVantage software that comes with the laptop. **Is there any way I could eek a few extra minutes out of my battery under linux?** | laptop | linux | battery | null | null | 10/25/2011 20:35:58 | off topic | Increasing Battery Life Under Linux
===
All right, this is something I think everyone can agree would be nice to have:
**Longer Battery Life**
I have a Thinkpad T61p and am currently running Fedora 9 on it. I love sitting outside and coding (required software tyin... check) and it would be nice to not have to worry about my battery running out while I'm doing so. Vista seems to get more time out of my battery because of the ThinkVantage software that comes with the laptop. **Is there any way I could eek a few extra minutes out of my battery under linux?** | 2 |
11,460 | 08/14/2008 18:28:42 | 1,154 | 08/12/2008 23:39:07 | 94 | 17 | ASP.NET Proxy Application | Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, then it gets the response and publish the the info. For the client this should be totally transparent.
For different reasons I cannot redirect the port to the internal server. What I can do but no know how - maybe the answer is there - is to create a new Web Site that its host in the other server.
Any help?
| .net | asp.net | iis | windowsserver | null | null | open | ASP.NET Proxy Application
===
Let me try to explain what I need. I have a server that is visible from the internet. What I need is to create a ASP.NET application that get the request of a web Site and send to a internal server, then it gets the response and publish the the info. For the client this should be totally transparent.
For different reasons I cannot redirect the port to the internal server. What I can do but no know how - maybe the answer is there - is to create a new Web Site that its host in the other server.
Any help?
| 0 |
11,462 | 08/14/2008 18:30:01 | 730 | 08/08/2008 12:40:04 | 6 | 9 | Sharepoint Wikis | Ok, I've seen a few posts that *mention* a few other posts about not using SP wikis because they suck.
Since we are looking at doing our wiki *in* SP, I need to know why we shouldn't do it for a group of 6 automation-developers to document the steps in various automated processes and the changes that have to be made from time to time.
Thanks. | sharepoint | automation | mediawiki | sharepointwiki | null | null | open | Sharepoint Wikis
===
Ok, I've seen a few posts that *mention* a few other posts about not using SP wikis because they suck.
Since we are looking at doing our wiki *in* SP, I need to know why we shouldn't do it for a group of 6 automation-developers to document the steps in various automated processes and the changes that have to be made from time to time.
Thanks. | 0 |
11,489 | 08/14/2008 18:49:30 | 572 | 08/06/2008 20:56:54 | 337 | 36 | Increasing Battery Life Under Windows | Are there any good (free?) tools for monitoring power consumption and aiding in reducing power consumption on a Windows laptop?
I currently have a Lenovo T60p and the tools that Lenovo provides are OK, but nothing really that good. They really just provide a new interface to the Windows Power Manager options, at least from what I've found. | windows | laptop | battery | null | null | 01/09/2012 13:50:31 | off topic | Increasing Battery Life Under Windows
===
Are there any good (free?) tools for monitoring power consumption and aiding in reducing power consumption on a Windows laptop?
I currently have a Lenovo T60p and the tools that Lenovo provides are OK, but nothing really that good. They really just provide a new interface to the Windows Power Manager options, at least from what I've found. | 2 |
11,491 | 08/14/2008 18:49:47 | 1,366 | 08/14/2008 18:30:52 | 1 | 0 | String To Lower/Upper in C++ | What is the best way people have found to do String to Lower case / Upper case in C++?
The issue is complicated by the fact that C++ isn't an English only programming language. Is there a good multilingual method? | c++ | null | null | null | null | null | open | String To Lower/Upper in C++
===
What is the best way people have found to do String to Lower case / Upper case in C++?
The issue is complicated by the fact that C++ isn't an English only programming language. Is there a good multilingual method? | 0 |
11,500 | 08/14/2008 18:52:54 | 149 | 08/02/2008 15:03:56 | 167 | 16 | Speeding up an ASP.Net Web Site or Application | I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site and the database are out of my control as is the database's schema. In testing on hardware I do control the site performs well however on the client's hardware, there are noticeable delays when reloading or changing pages.
What I would like to do is make my application as compact and speedy as possible when I deliver it. One idea is to set expiration dates for all of the site's static resources so they aren't recalled on page loads. By resources I mean images, linked style sheets and JavaScript source files. Is there an easy way to do this?
What other ways are there to optimize a .Net web site? | asp.net | ajax.net | ajax | performance | optimization | null | open | Speeding up an ASP.Net Web Site or Application
===
I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site and the database are out of my control as is the database's schema. In testing on hardware I do control the site performs well however on the client's hardware, there are noticeable delays when reloading or changing pages.
What I would like to do is make my application as compact and speedy as possible when I deliver it. One idea is to set expiration dates for all of the site's static resources so they aren't recalled on page loads. By resources I mean images, linked style sheets and JavaScript source files. Is there an easy way to do this?
What other ways are there to optimize a .Net web site? | 0 |
11,520 | 08/14/2008 19:03:53 | 1,327 | 08/14/2008 14:37:22 | 11 | 3 | What are the list of Resharper like plugins for VS I should consider? | My license for Whole Tomatoes Visual AssistX is about to expire and I'm not really planning on renewing it. I use it for spell checking but that's about it. The refactoring abilities have been a little disappointing. Before I just jump into Resharper though what are your thoughts on other possible plugins? | .net | visual | studio | null | null | null | open | What are the list of Resharper like plugins for VS I should consider?
===
My license for Whole Tomatoes Visual AssistX is about to expire and I'm not really planning on renewing it. I use it for spell checking but that's about it. The refactoring abilities have been a little disappointing. Before I just jump into Resharper though what are your thoughts on other possible plugins? | 0 |
11,532 | 08/14/2008 19:08:21 | 1,142 | 08/12/2008 18:52:53 | 39 | 2 | Tool to find unused functions in php project | Does anyone know of a tool that can find unused functions in a php project? | php | null | null | null | null | null | open | Tool to find unused functions in php project
===
Does anyone know of a tool that can find unused functions in a php project? | 0 |
11,540 | 08/14/2008 19:12:29 | 381 | 08/05/2008 10:39:26 | 709 | 14 | Automation - what's your tipping point ? | If you're doing some textual manipulation of a file/files, at what point do you decide to automate the process (using your favorite scripting language or writing a macro in a tool) ?
Is it after a certain number of repetitions or based on the likelihood you'll need to repeat the process ?
Is it productive to automate a task if creating the automation takes longer than completing the process by hand ?
| productivity | language-agnostic | null | null | null | 04/29/2012 05:55:24 | not constructive | Automation - what's your tipping point ?
===
If you're doing some textual manipulation of a file/files, at what point do you decide to automate the process (using your favorite scripting language or writing a macro in a tool) ?
Is it after a certain number of repetitions or based on the likelihood you'll need to repeat the process ?
Is it productive to automate a task if creating the automation takes longer than completing the process by hand ?
| 4 |
11,561 | 08/14/2008 19:23:54 | 1,310 | 08/14/2008 13:42:16 | 41 | 6 | What is the difference between an endpoint, a service, and a port when working with webservices? | I've used Apache CXF to expose about ten java classes as web services.
I've generated clients using CXF, Axis, and .NET.
In Axis and CXF a "Service" or "Locator" is generated.
From this service you can get a "Port".
The "Port" is used to make individual calls to the methods exposed by the web service.
In .NET the "Service" directly exposes the calls to the web service.
Can someone explain the difference between a port, a service, a locator, and an endpoint when it comes to web services?
Axis:
PatientServiceImplServiceLocator locator =
new PatientServiceImplServiceLocator();
PatientService service = locator.getPatientServiceImplPort();
CXF:
PatientServiceImplService locator = new PatientServiceImplService();
PatientService service = locator.getPatientServiceImplPort();
.net:
PatientServiceImplService service = new PatientServiceImplService();
| .net | java | webservices | apache | axis | null | open | What is the difference between an endpoint, a service, and a port when working with webservices?
===
I've used Apache CXF to expose about ten java classes as web services.
I've generated clients using CXF, Axis, and .NET.
In Axis and CXF a "Service" or "Locator" is generated.
From this service you can get a "Port".
The "Port" is used to make individual calls to the methods exposed by the web service.
In .NET the "Service" directly exposes the calls to the web service.
Can someone explain the difference between a port, a service, a locator, and an endpoint when it comes to web services?
Axis:
PatientServiceImplServiceLocator locator =
new PatientServiceImplServiceLocator();
PatientService service = locator.getPatientServiceImplPort();
CXF:
PatientServiceImplService locator = new PatientServiceImplService();
PatientService service = locator.getPatientServiceImplPort();
.net:
PatientServiceImplService service = new PatientServiceImplService();
| 0 |
11,562 | 08/14/2008 19:24:17 | 1,366 | 08/14/2008 18:30:52 | 13 | 0 | How to override std::swap() | std::swap() is used by many std containers (such as std::list and std::vector) during sorting and even assignment.
But the std implementation of swap() is very generalized and rather inefficient for custom types.
Thus efficiency can be gained by overriding std::swap() with a custom type specific implementation. But how can you implement it so it will be used by the std containers? | c++ | null | null | null | null | null | open | How to override std::swap()
===
std::swap() is used by many std containers (such as std::list and std::vector) during sorting and even assignment.
But the std implementation of swap() is very generalized and rather inefficient for custom types.
Thus efficiency can be gained by overriding std::swap() with a custom type specific implementation. But how can you implement it so it will be used by the std containers? | 0 |
11,585 | 08/14/2008 19:39:32 | 383 | 08/05/2008 10:46:37 | 1,759 | 200 | Clearing Page Cache in ASP.NET | For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine...
<%@OutputCache Duration="600" VaryByParam="*" %>
However, if someone posts a comment, I want to clear the cache so that the page is refreshed and the comment can be seen.
How do I do this in ASP.Net C#? | asp.net | csharp | outputcache | null | null | null | open | Clearing Page Cache in ASP.NET
===
For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around 10 minutes, and thats fine...
<%@OutputCache Duration="600" VaryByParam="*" %>
However, if someone posts a comment, I want to clear the cache so that the page is refreshed and the comment can be seen.
How do I do this in ASP.Net C#? | 0 |
11,586 | 08/14/2008 19:39:32 | 322 | 08/04/2008 16:38:52 | 242 | 14 | Do you use design patterns? | What's the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do they remain more of an academic concept?
Do they actually provide actual value to your job? Or are they just something that people talk about to sound smart?
Note: For the purpose of this question ignore 'simple' design patterns like *Singleton*. I'm talking about designing your code so you can take advantage of *Model View Controller*, etc.
| language-agnostic | designpatterns | null | null | null | null | open | Do you use design patterns?
===
What's the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do they remain more of an academic concept?
Do they actually provide actual value to your job? Or are they just something that people talk about to sound smart?
Note: For the purpose of this question ignore 'simple' design patterns like *Singleton*. I'm talking about designing your code so you can take advantage of *Model View Controller*, etc.
| 0 |
11,612 | 08/14/2008 19:51:52 | 1,014 | 08/11/2008 13:25:25 | 1 | 0 | Is there any wiki engine that supports page creation by email? | I want to consolidate all the loose information of the company I work for into a knowledge base. A wiki seems to be the way to go, but most of the relevant information is buried inside PST files, and it would take ages to convince people to manually translate their emails one by one (including attachments) into wiki pages. So I'm looking for a wiki engine that supports page creation by email, that is, capable of receiving email (supporting plain text, html and attachments) and then create the corresponding page. Supporting file indexing and looking for duplicates would be a huge bonus.
I tried with [WikiMatrix][1], but didn't find what I was looking for. I wouldn’t mind to build my own engine (borrowing a couple of snippets here and there for [MIME decoding][2]), but I don’t think is that a rare problem so there is no implementation.
Any help will be greatly appreciated. Thanks in advance.
[1]: http://www.wikimatrix.org/
[2]: http://www.codeproject.com/KB/cs/MIME_De_Encode_in_C_.aspx | email | wiki | mime | wiki-engine | null | null | open | Is there any wiki engine that supports page creation by email?
===
I want to consolidate all the loose information of the company I work for into a knowledge base. A wiki seems to be the way to go, but most of the relevant information is buried inside PST files, and it would take ages to convince people to manually translate their emails one by one (including attachments) into wiki pages. So I'm looking for a wiki engine that supports page creation by email, that is, capable of receiving email (supporting plain text, html and attachments) and then create the corresponding page. Supporting file indexing and looking for duplicates would be a huge bonus.
I tried with [WikiMatrix][1], but didn't find what I was looking for. I wouldn’t mind to build my own engine (borrowing a couple of snippets here and there for [MIME decoding][2]), but I don’t think is that a rare problem so there is no implementation.
Any help will be greatly appreciated. Thanks in advance.
[1]: http://www.wikimatrix.org/
[2]: http://www.codeproject.com/KB/cs/MIME_De_Encode_in_C_.aspx | 0 |
11,615 | 08/14/2008 19:52:54 | 1,370 | 08/14/2008 19:52:54 | 1 | 0 | Good Resources for Relational Database Design | I'm looking for a book/site/tutorial on best practices for relational database design, tuning for performance etc. It turns out this kind of resource is a bit difficult to find; there's a lot of "here's normalization, here's ER diagrams, have at it," but not much in the way of real examples. Anyone have any ideas? | sql | performance | bestpractices | design | databases | null | open | Good Resources for Relational Database Design
===
I'm looking for a book/site/tutorial on best practices for relational database design, tuning for performance etc. It turns out this kind of resource is a bit difficult to find; there's a lot of "here's normalization, here's ER diagrams, have at it," but not much in the way of real examples. Anyone have any ideas? | 0 |
11,620 | 08/14/2008 19:54:25 | 1,341 | 08/14/2008 15:30:17 | 66 | 4 | How do you kill all current connections to a SQL Server 2005 database? | I want to rename a database, but keep getting the error that 'couldnt get exclusive lock' on the database, which implies there is some connection(s) still active.
How can I kill all the connections to the database so that I can rename it? | sql-server-2005 | null | null | null | null | null | open | How do you kill all current connections to a SQL Server 2005 database?
===
I want to rename a database, but keep getting the error that 'couldnt get exclusive lock' on the database, which implies there is some connection(s) still active.
How can I kill all the connections to the database so that I can rename it? | 0 |
11,632 | 08/14/2008 19:59:40 | 337 | 08/04/2008 18:11:42 | 46 | 1 | What are the most important functional differences between C# and VB.NET? | Certainly there's the difference in general syntax, but what other critical distinctions exist? There are *some* differences, right? | c# | vb.net | comparison | null | null | null | open | What are the most important functional differences between C# and VB.NET?
===
Certainly there's the difference in general syntax, but what other critical distinctions exist? There are *some* differences, right? | 0 |
11,635 | 08/14/2008 20:01:28 | 1,366 | 08/14/2008 18:30:52 | 15 | 0 | Case insensitive string comparison in C++ | What is the best way of doing case insensitive string comparison in C++ with out transforming a string to all upper or lower case?
Also, what ever methods you present, are they Unicode friendly? | c++ | null | null | null | null | null | open | Case insensitive string comparison in C++
===
What is the best way of doing case insensitive string comparison in C++ with out transforming a string to all upper or lower case?
Also, what ever methods you present, are they Unicode friendly? | 0 |
11,665 | 08/14/2008 20:25:07 | 26 | 08/01/2008 12:18:14 | 511 | 78 | How do I restyle an Adobe Flex Accordion to include a button in each canvas header? | Here is the sample code for my accordion:
<mx:Accordion x="15" y="15" width="230" height="599" styleName="myAccordion">
<mx:Canvas id="pnlSpotlight" label="SPOTLIGHT" height="100%" width="100%" horizontalScrollPolicy="off">
<mx:VBox width="100%" height="80%" paddingTop="2" paddingBottom="1" verticalGap="1">
<mx:Repeater id="rptrSpotlight" dataProvider="{aSpotlight}">
<sm:SmallCourseListItem
viewClick="PlayFile(event.currentTarget.getRepeaterItem().fileID);"
Description="{rptrSpotlight.currentItem.fileDescription}"
FileID = "{rptrSpotlight.currentItem.fileID}"
detailsClick="{detailsView.SetFile(event.currentTarget.getRepeaterItem().fileID,this)}"
Title="{rptrSpotlight.currentItem.fileTitle}"
FileIcon="{iconLibrary.getIcon(rptrSpotlight.currentItem.fileExtension)}" />
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
</mx:Accordion>
I would like to include a button in each header like so:
<center>![wishful" onclick="alert('xss')][1]</center>
[1]: http://www.kevinx.net/tf2/uploads/helpme.jpg
Thanks in advance... | flex | actionscript-3 | wishfulthinking | null | null | null | open | How do I restyle an Adobe Flex Accordion to include a button in each canvas header?
===
Here is the sample code for my accordion:
<mx:Accordion x="15" y="15" width="230" height="599" styleName="myAccordion">
<mx:Canvas id="pnlSpotlight" label="SPOTLIGHT" height="100%" width="100%" horizontalScrollPolicy="off">
<mx:VBox width="100%" height="80%" paddingTop="2" paddingBottom="1" verticalGap="1">
<mx:Repeater id="rptrSpotlight" dataProvider="{aSpotlight}">
<sm:SmallCourseListItem
viewClick="PlayFile(event.currentTarget.getRepeaterItem().fileID);"
Description="{rptrSpotlight.currentItem.fileDescription}"
FileID = "{rptrSpotlight.currentItem.fileID}"
detailsClick="{detailsView.SetFile(event.currentTarget.getRepeaterItem().fileID,this)}"
Title="{rptrSpotlight.currentItem.fileTitle}"
FileIcon="{iconLibrary.getIcon(rptrSpotlight.currentItem.fileExtension)}" />
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
</mx:Accordion>
I would like to include a button in each header like so:
<center>![wishful" onclick="alert('xss')][1]</center>
[1]: http://www.kevinx.net/tf2/uploads/helpme.jpg
Thanks in advance... | 0 |
11,676 | 08/14/2008 20:34:07 | 1,368 | 08/14/2008 18:57:47 | 1 | 0 | Creating a development environment for SharePoint. | I haven't touched sharepoint in years. If I want to setup a development environment to get up to speed, what options do I have? I don't have an MSDN license, is there anyway I can get up and running for free? (for development only) | sharepoint | null | null | null | null | null | open | Creating a development environment for SharePoint.
===
I haven't touched sharepoint in years. If I want to setup a development environment to get up to speed, what options do I have? I don't have an MSDN license, is there anyway I can get up and running for free? (for development only) | 0 |
11,680 | 08/14/2008 20:36:07 | 1,048 | 08/11/2008 19:34:31 | 18 | 4 | File Parse Design Pattern | Does anybody recommend a design pattern for taking a binary data file, parsing parts of it into objects and storing the resultant data into a database?
I think a similar pattern could be used for taking an XML or tab-delimited file and parse it into their representative objects.
A common data structure would include:
> (Header) (DataElement1) (DataElement1SubData1) (DataElement1SubData2)(DataElement2) (DataElement2SubData1) (DataElement2SubData2) (EOF)
I think a good design would include a way to change out the parsing definition based on the file type or some defined metadata included in the header. So a [Factory Pattern][1] would be part of the overall design for the Parser part.
Keith
[1]: http://www.oodesign.com/factory-method-pattern.html | designpatterns | fileparse | null | null | null | null | open | File Parse Design Pattern
===
Does anybody recommend a design pattern for taking a binary data file, parsing parts of it into objects and storing the resultant data into a database?
I think a similar pattern could be used for taking an XML or tab-delimited file and parse it into their representative objects.
A common data structure would include:
> (Header) (DataElement1) (DataElement1SubData1) (DataElement1SubData2)(DataElement2) (DataElement2SubData1) (DataElement2SubData2) (EOF)
I think a good design would include a way to change out the parsing definition based on the file type or some defined metadata included in the header. So a [Factory Pattern][1] would be part of the overall design for the Parser part.
Keith
[1]: http://www.oodesign.com/factory-method-pattern.html | 0 |
11,686 | 08/14/2008 20:47:06 | 1,343 | 08/14/2008 15:46:01 | 1 | 3 | Is there any kind of non text interface to MySQL? | I have a MySQL query that returns a result with a single column of integers. Is there any way to get the MySQL C API to transfer this as actually integers rather than as ASCII text? For that matter is there a way to get MySQL to do /any/ of the API stuff as other than ASCII text. I'm thinking this would save a bit of time in sprintf/sscanf or whatever else is used as well as in bandwidth. | mysql | api | null | null | null | null | open | Is there any kind of non text interface to MySQL?
===
I have a MySQL query that returns a result with a single column of integers. Is there any way to get the MySQL C API to transfer this as actually integers rather than as ASCII text? For that matter is there a way to get MySQL to do /any/ of the API stuff as other than ASCII text. I'm thinking this would save a bit of time in sprintf/sscanf or whatever else is used as well as in bandwidth. | 0 |
11,689 | 08/14/2008 20:50:11 | 1,190 | 08/13/2008 12:15:38 | 210 | 16 | Design debate: versioned temporal objects | I am intentionally leaving this quite vague at first. I'm looking for discussion and what issues are important more than I'm looking for hard answers.
I'm in the middle of designing an app that does something like portfolio management. The design I have so far is
* Problem: a problem that needs to be solved
* Solution: a proposed solution to one or more problems
* Relationship: a relationship among two problems, two solutions, or a problem and a solution. Further broken down into:
* Parent-child - some sort of categorization / tree hierarchy
* Overlap - the degree to which two solutions or two problems really address the same concept
* Addresses - the degree to which a problem addresses a solution
My question is about the temporal nature of these things. Problems crop up, then fade. Solutions have an expected resolution date, but that might be modified as they are developed. The degree of a relationship might change over time as problems and solutions evolve.
So, the question: what is the best design for versioning of these things so I can get both a current and an historical perspective of my portfolio? | time | design | portfolio-management | risk-management | null | null | open | Design debate: versioned temporal objects
===
I am intentionally leaving this quite vague at first. I'm looking for discussion and what issues are important more than I'm looking for hard answers.
I'm in the middle of designing an app that does something like portfolio management. The design I have so far is
* Problem: a problem that needs to be solved
* Solution: a proposed solution to one or more problems
* Relationship: a relationship among two problems, two solutions, or a problem and a solution. Further broken down into:
* Parent-child - some sort of categorization / tree hierarchy
* Overlap - the degree to which two solutions or two problems really address the same concept
* Addresses - the degree to which a problem addresses a solution
My question is about the temporal nature of these things. Problems crop up, then fade. Solutions have an expected resolution date, but that might be modified as they are developed. The degree of a relationship might change over time as problems and solutions evolve.
So, the question: what is the best design for versioning of these things so I can get both a current and an historical perspective of my portfolio? | 0 |
11,690 | 08/14/2008 20:50:31 | 337 | 08/04/2008 18:11:42 | 46 | 1 | How can I get Unicode characters to display properly for the tooltip for the IMG ALT in IE7? | I've got some Japanese in the ALT attribute, but the tooltip is showing me the ugly block characters in the tooltip. The rest of the content on the page renders correctly. So far, it seems to be limited to the tooltips. | unicode | internet-explorer | null | null | null | null | open | How can I get Unicode characters to display properly for the tooltip for the IMG ALT in IE7?
===
I've got some Japanese in the ALT attribute, but the tooltip is showing me the ugly block characters in the tooltip. The rest of the content on the page renders correctly. So far, it seems to be limited to the tooltips. | 0 |
11,699 | 08/14/2008 21:04:11 | 580 | 08/06/2008 22:30:28 | 158 | 20 | EFS encryption key pop up | I'm getting notifications to back up my encryption key for EFS in Vista, however i haven't enabled bit locker or drive encryption.
Anyone know how to find out what files may be encrypted or have an explanation for why it would notify me? | windows-vista | efs | null | null | null | null | open | EFS encryption key pop up
===
I'm getting notifications to back up my encryption key for EFS in Vista, however i haven't enabled bit locker or drive encryption.
Anyone know how to find out what files may be encrypted or have an explanation for why it would notify me? | 0 |
11,711 | 08/14/2008 21:18:39 | 627 | 08/07/2008 12:03:09 | 16 | 3 | How to use Scrum and Visual Studio without Team System | I'm interested in possibly using Scrum with my development team (yes, I know it'll be a little painful to transition over to it). However, we don't have Team System and probably can't currently afford to get it immediately.
What are some possible tools for getting a team up and running on Scrum in a .NET/Visual Studio environment without Team System? | .net | visual-studio | scrum | agile | visual-studio-team-system | null | open | How to use Scrum and Visual Studio without Team System
===
I'm interested in possibly using Scrum with my development team (yes, I know it'll be a little painful to transition over to it). However, we don't have Team System and probably can't currently afford to get it immediately.
What are some possible tools for getting a team up and running on Scrum in a .NET/Visual Studio environment without Team System? | 0 |
11,720 | 08/14/2008 21:32:34 | 1,341 | 08/14/2008 15:30:17 | 83 | 6 | How can I create virtual machines as part of a build process using MSBuild and MS Virtual Server? | What I would like to do is create a clean virtual machine image as the output of a build of an application.
So a new virtual machine would be created (from a template is fine, with the OS installed, and some base software installed) --- a new web site would be created in IIS, and the web app build output copied to a location on the virtual machine hard disk, and IIS configured correctly, the VM would start up and run.
I know there are MSBuild tasks to script all the administrative actions in IIS, but how do you script all the actions with Virtual machines? Specifically, creating a new virtual machine from a template, naming it uniquely, starting it, configuring it, etc... | msbuild | virtualization | microsoft | null | null | null | open | How can I create virtual machines as part of a build process using MSBuild and MS Virtual Server?
===
What I would like to do is create a clean virtual machine image as the output of a build of an application.
So a new virtual machine would be created (from a template is fine, with the OS installed, and some base software installed) --- a new web site would be created in IIS, and the web app build output copied to a location on the virtual machine hard disk, and IIS configured correctly, the VM would start up and run.
I know there are MSBuild tasks to script all the administrative actions in IIS, but how do you script all the actions with Virtual machines? Specifically, creating a new virtual machine from a template, naming it uniquely, starting it, configuring it, etc... | 0 |
11,724 | 08/14/2008 21:48:45 | 459 | 08/05/2008 21:54:42 | 21 | 8 | In Visual Studio you must be a member of Debug Users or Administrators to start debugging. What if you are but it doesn't work? | On my machine Visual Studio 2003 2005 and 2008 all complain that I cannot start debugging because I must either be a member of the Debug Users group or of the Administrators group. So, I am an Administrator and I added Debug Users just in case, and it still complains.
Short of reformatting my machine and starting over, has anyone encountered this and fixed it [with some undocumented command]? | visual-studio | debugging | permissions | null | null | null | open | In Visual Studio you must be a member of Debug Users or Administrators to start debugging. What if you are but it doesn't work?
===
On my machine Visual Studio 2003 2005 and 2008 all complain that I cannot start debugging because I must either be a member of the Debug Users group or of the Administrators group. So, I am an Administrator and I added Debug Users just in case, and it still complains.
Short of reformatting my machine and starting over, has anyone encountered this and fixed it [with some undocumented command]? | 0 |
11,734 | 08/14/2008 22:29:57 | 1,254 | 08/13/2008 22:34:57 | 11 | 4 | How to intercept and cancel auto play from my application? | I am developing an application to install a large number of data files from multiple DVDs. The application will prompt the user to insert the next disk, however Windows will automatically try to open that disk either in an explorer window or ask the user what to do with the new disk. How can I intercept and cancel auto play messages from my application? | windows | disk | null | null | null | null | open | How to intercept and cancel auto play from my application?
===
I am developing an application to install a large number of data files from multiple DVDs. The application will prompt the user to insert the next disk, however Windows will automatically try to open that disk either in an explorer window or ask the user what to do with the new disk. How can I intercept and cancel auto play messages from my application? | 0 |
11,737 | 08/14/2008 22:30:50 | 1,144 | 08/12/2008 19:00:54 | 17 | 4 | .NET Library to unzip ZIP and RAR files | What are good libraries to use Unzip RAR and Zip files in .NET? Do they even exist? Do they cost money or are there also free ones? | .net | null | null | null | null | null | open | .NET Library to unzip ZIP and RAR files
===
What are good libraries to use Unzip RAR and Zip files in .NET? Do they even exist? Do they cost money or are there also free ones? | 0 |
11,740 | 08/14/2008 22:32:58 | 1,336 | 08/14/2008 15:06:49 | 61 | 6 | Configurable Table Prefixes with a .Net OR/M? | In a web application like wiki or forums or blogging software, it is often useful to store your data in a relational database. Since many hosting companies offer a single database with their hosting plans (with additional databases costing extra) it is very useful for your users when your database objects (tables, views, constraints, and stored procedures) have a common prefix. It is typical for applications aware of database scarcity to have a hard-coded table prefix. I want more, however. Specifically, I'd like to have a table prefix that users can designate—say in the web.config file (with an appropriate default, of course).
Since I hate coding [CRUD](http://en.wikipedia.org/wiki/Create%2C_read%2C_update_and_delete) operations by hand, I prefer to work through a competent OR/M and have used (and enjoyed) LINQ to SQL, Subsonic, and ADO.Net. I'm having some thrash in a new project, however, when it comes to putting a table prefix in a user's web.config file. Are there any .Net-based OR/M products that can handle this scenario elegantly?
The best I have been able to come up with so far is using LINQ to SQL with an external mapping file that I'd have to update somehow based on an as-yet hypothetical web.config setting.
Anyone have a better solution? I tried to make it happen in Entity Framework, but that turned into a mess quickly. (Due to my unfamiliarity with EF? Possibly.) How about SubSonic? Does it have an option to apply a table prefix besides at code generation time? | .net | orm | data | table | null | null | open | Configurable Table Prefixes with a .Net OR/M?
===
In a web application like wiki or forums or blogging software, it is often useful to store your data in a relational database. Since many hosting companies offer a single database with their hosting plans (with additional databases costing extra) it is very useful for your users when your database objects (tables, views, constraints, and stored procedures) have a common prefix. It is typical for applications aware of database scarcity to have a hard-coded table prefix. I want more, however. Specifically, I'd like to have a table prefix that users can designate—say in the web.config file (with an appropriate default, of course).
Since I hate coding [CRUD](http://en.wikipedia.org/wiki/Create%2C_read%2C_update_and_delete) operations by hand, I prefer to work through a competent OR/M and have used (and enjoyed) LINQ to SQL, Subsonic, and ADO.Net. I'm having some thrash in a new project, however, when it comes to putting a table prefix in a user's web.config file. Are there any .Net-based OR/M products that can handle this scenario elegantly?
The best I have been able to come up with so far is using LINQ to SQL with an external mapping file that I'd have to update somehow based on an as-yet hypothetical web.config setting.
Anyone have a better solution? I tried to make it happen in Entity Framework, but that turned into a mess quickly. (Due to my unfamiliarity with EF? Possibly.) How about SubSonic? Does it have an option to apply a table prefix besides at code generation time? | 0 |
11,743 | 08/14/2008 22:37:53 | 1,378 | 08/14/2008 22:37:53 | 1 | 0 | Useful math for programmers | In your experience as a practicioner, what's the most useful math knowledge for a programmer? If "it depends", what's your field of expertise and what do you need there most as far as math is concerned?
Can you point to any learning material for a beginner? | math | null | null | null | null | null | open | Useful math for programmers
===
In your experience as a practicioner, what's the most useful math knowledge for a programmer? If "it depends", what's your field of expertise and what do you need there most as far as math is concerned?
Can you point to any learning material for a beginner? | 0 |
11,761 | 08/14/2008 23:13:32 | 1,381 | 08/14/2008 23:13:32 | 1 | 0 | Persisting data in .NET Web Service memory | I have a web service that queries data from this json file, but i don't want the web service to have to access the file every time. I'm thinking that maybe i can store the data somewhere else (maybe in memory) so the web service can just get the data from there the next time it's trying to query the same data. I kinda understand what needs to be done but I'm just not sure how to actually do it. How do we persist data in a web service? | .net | webservice | persistence | memory | json | null | open | Persisting data in .NET Web Service memory
===
I have a web service that queries data from this json file, but i don't want the web service to have to access the file every time. I'm thinking that maybe i can store the data somewhere else (maybe in memory) so the web service can just get the data from there the next time it's trying to query the same data. I kinda understand what needs to be done but I'm just not sure how to actually do it. How do we persist data in a web service? | 0 |
11,762 | 08/14/2008 23:14:38 | 369 | 08/05/2008 08:33:43 | 115 | 15 | C# - CryptographicException: Padding is invalid and cannot be removed | I needed some simple string encryption, so I wrote the following code (with a great deal of "inspiration" from [here][1]):
// create and initialize a crypto algorithm
private static SymmetricAlgorithm getAlgorithm(string password) {
SymmetricAlgorithm algorithm = Rijndael.Create();
Rfc2898DeriveBytes rdb = new Rfc2898DeriveBytes(
password, new byte[] {
0x53,0x6f,0x64,0x69,0x75,0x6d,0x20, // salty goodness
0x43,0x68,0x6c,0x6f,0x72,0x69,0x64,0x65
}
);
algorithm.Padding = PaddingMode.ISO10126;
algorithm.Key = rdb.GetBytes(32);
algorithm.IV = rdb.GetBytes(16);
return algorithm;
}
/*
* encryptString
* provides simple encryption of a string, with a given password
*/
public static string encryptString(string clearText, string password) {
SymmetricAlgorithm algorithm = getAlgorithm(password);
byte[] clearBytes = System.Text.Encoding.Unicode.GetBytes(clearText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, algorithm.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(clearBytes, 0, clearBytes.Length);
cs.Close();
return Convert.ToBase64String(ms.ToArray());
}
/*
* decryptString
* provides simple decryption of a string, with a given password
*/
public static string decryptString(string cipherText, string password) {
SymmetricAlgorithm algorithm = getAlgorithm(password);
byte[] cipherBytes = Convert.FromBase64String(cipherText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, algorithm.CreateDecryptor(), CryptoStreamMode.Write);
cs.Write(cipherBytes, 0, cipherBytes.Length);
cs.Close();
return System.Text.Encoding.Unicode.GetString(ms.ToArray());
}
The code appears to work fine, except that when decrypting data with an <u>incorrect</u> key, I get a CryptographicException - "Padding is invalid and cannot be removed" - on the cs.Close() line in decryptString.
example code:
string password1 = "password";
string password2 = "letmein";
string startClearText = "The quick brown fox jumps over the lazy dog";
string cipherText = encryptString(startClearText, password1);
string endClearText = decryptString(cipherText, password2); // exception thrown
My question is, is this to be expected? I would have thought that decrypting with the wrong password would just result in nonsense output, rather than an exception.
[1]: http://www.codeproject.com/KB/security/DotNetCrypto.aspx | c# | .net | exception | encryption | null | null | open | C# - CryptographicException: Padding is invalid and cannot be removed
===
I needed some simple string encryption, so I wrote the following code (with a great deal of "inspiration" from [here][1]):
// create and initialize a crypto algorithm
private static SymmetricAlgorithm getAlgorithm(string password) {
SymmetricAlgorithm algorithm = Rijndael.Create();
Rfc2898DeriveBytes rdb = new Rfc2898DeriveBytes(
password, new byte[] {
0x53,0x6f,0x64,0x69,0x75,0x6d,0x20, // salty goodness
0x43,0x68,0x6c,0x6f,0x72,0x69,0x64,0x65
}
);
algorithm.Padding = PaddingMode.ISO10126;
algorithm.Key = rdb.GetBytes(32);
algorithm.IV = rdb.GetBytes(16);
return algorithm;
}
/*
* encryptString
* provides simple encryption of a string, with a given password
*/
public static string encryptString(string clearText, string password) {
SymmetricAlgorithm algorithm = getAlgorithm(password);
byte[] clearBytes = System.Text.Encoding.Unicode.GetBytes(clearText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, algorithm.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(clearBytes, 0, clearBytes.Length);
cs.Close();
return Convert.ToBase64String(ms.ToArray());
}
/*
* decryptString
* provides simple decryption of a string, with a given password
*/
public static string decryptString(string cipherText, string password) {
SymmetricAlgorithm algorithm = getAlgorithm(password);
byte[] cipherBytes = Convert.FromBase64String(cipherText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, algorithm.CreateDecryptor(), CryptoStreamMode.Write);
cs.Write(cipherBytes, 0, cipherBytes.Length);
cs.Close();
return System.Text.Encoding.Unicode.GetString(ms.ToArray());
}
The code appears to work fine, except that when decrypting data with an <u>incorrect</u> key, I get a CryptographicException - "Padding is invalid and cannot be removed" - on the cs.Close() line in decryptString.
example code:
string password1 = "password";
string password2 = "letmein";
string startClearText = "The quick brown fox jumps over the lazy dog";
string cipherText = encryptString(startClearText, password1);
string endClearText = decryptString(cipherText, password2); // exception thrown
My question is, is this to be expected? I would have thought that decrypting with the wrong password would just result in nonsense output, rather than an exception.
[1]: http://www.codeproject.com/KB/security/DotNetCrypto.aspx | 0 |
11,764 | 08/14/2008 23:15:59 | 1,380 | 08/14/2008 23:07:58 | 1 | 0 | Publishing to IIS - Best Practices | I'm not new to web publishing, BUT I am new to publishing against a web site that is frequently used. Previously, the apps on this server were not hit very often, but we're rolling out a high demand application. So, what is the best practice for publishing to a live web server?
1. Is it best to wait until the middle
of the night when people won't be on
it (Yes, I can pretty much rely on
that -- it's an intranet and
therefore will have times of
non-use)
2. Publish when new updates are made to
the trunk (dependent on build
success of course)
3. If 2 is true, then that seems bad if someone is using that specific page or DLL and it gets overwritten.
...I'm sure there are lots of great places for this kind of thing, but I didn't use the right google search terms.
| iis | publish | null | null | null | null | open | Publishing to IIS - Best Practices
===
I'm not new to web publishing, BUT I am new to publishing against a web site that is frequently used. Previously, the apps on this server were not hit very often, but we're rolling out a high demand application. So, what is the best practice for publishing to a live web server?
1. Is it best to wait until the middle
of the night when people won't be on
it (Yes, I can pretty much rely on
that -- it's an intranet and
therefore will have times of
non-use)
2. Publish when new updates are made to
the trunk (dependent on build
success of course)
3. If 2 is true, then that seems bad if someone is using that specific page or DLL and it gets overwritten.
...I'm sure there are lots of great places for this kind of thing, but I didn't use the right google search terms.
| 0 |
11,767 | 08/14/2008 23:18:52 | 234 | 08/03/2008 20:25:38 | 1,077 | 100 | Browse for a directory in C# | How can I preset a control to the user that allows them to select a directory?
There doesn't seem to be any native .net controls which do this? | c# | .net | null | null | null | null | open | Browse for a directory in C#
===
How can I preset a control to the user that allows them to select a directory?
There doesn't seem to be any native .net controls which do this? | 0 |
11,782 | 08/14/2008 23:33:01 | 831 | 08/09/2008 06:37:00 | 45 | 2 | File Uploads via Web Services | Is it possible to upload a file from a client's computer to the server through a web service? The client can be running anything from a native desktop app to a thin ajax client. | .net | webservices | upload | null | null | null | open | File Uploads via Web Services
===
Is it possible to upload a file from a client's computer to the server through a web service? The client can be running anything from a native desktop app to a thin ajax client. | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.