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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,263 | 08/07/2008 20:23:51 | 173 | 08/03/2008 01:04:00 | 154 | 8 | How do you persist a tree structure to a database table with auto incrementing IDs using an ADO.NET DataSet and a DataAdapter | I have a self-referential Role table that represents a tree structure
ID [INT] AUTO INCREMENT
Name [VARCHAR]
ParentID [INT]
I am using an ADO.NET DataTable and DataAdapter to load and save values to this table. This works if I only create children of existing rows. If I make a child row, then make a child of that child, then Update, the temporary ID value generated by the DataTable is going into the ParentID column. I have the following data relation set:
dataset.Relations.Add(New DataRelation("RoleToRole",RoleTable.Columns("ID"), RoleTable.Columns("ParentID")))
And when I make new child rows in the DataTable I call the SetParentRow method
newRow.SetParentRow(parentRow)
Is there something special I have to do to get the ID generation to propagate recursively when I call Update on the DataAdapter? | .net | database | ado.net | null | null | null | open | How do you persist a tree structure to a database table with auto incrementing IDs using an ADO.NET DataSet and a DataAdapter
===
I have a self-referential Role table that represents a tree structure
ID [INT] AUTO INCREMENT
Name [VARCHAR]
ParentID [INT]
I am using an ADO.NET DataTable and DataAdapter to load and save values to this table. This works if I only create children of existing rows. If I make a child row, then make a child of that child, then Update, the temporary ID value generated by the DataTable is going into the ParentID column. I have the following data relation set:
dataset.Relations.Add(New DataRelation("RoleToRole",RoleTable.Columns("ID"), RoleTable.Columns("ParentID")))
And when I make new child rows in the DataTable I call the SetParentRow method
newRow.SetParentRow(parentRow)
Is there something special I have to do to get the ID generation to propagate recursively when I call Update on the DataAdapter? | 0 |
5,264 | 08/07/2008 20:24:34 | 326 | 08/04/2008 16:59:58 | 26 | 5 | How can I dynamically center an image in a MS Reporting Services report? | Out of the box, in MS Reporting Services, the image element does not allow for the centering of the image itself, when the dimensions are unknown at design time. In other words, the image (if smaller than the dimensions allotted on the design surface) will be anchored to the top left corner, not in the center.
My report will know the URL of the image at runtime, and I need to be able to center this image if it is smaller than the dimensions specified in my designer. | reporting-services | null | null | null | null | null | open | How can I dynamically center an image in a MS Reporting Services report?
===
Out of the box, in MS Reporting Services, the image element does not allow for the centering of the image itself, when the dimensions are unknown at design time. In other words, the image (if smaller than the dimensions allotted on the design surface) will be anchored to the top left corner, not in the center.
My report will know the URL of the image at runtime, and I need to be able to center this image if it is smaller than the dimensions specified in my designer. | 0 |
5,307 | 08/07/2008 20:58:14 | 398 | 08/05/2008 12:58:30 | 61 | 5 | Print a Winform/visual element | All the articles I've found via google are either obsolete or contradict one another, what's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog class by setting the Document, but how does this get converted? | c# | winforms | null | null | null | null | open | Print a Winform/visual element
===
All the articles I've found via google are either obsolete or contradict one another, what's the easiest way to print a form or, say, a richtextbox in c#? I think it's using the PrintDiaglog class by setting the Document, but how does this get converted? | 0 |
5,313 | 08/07/2008 21:07:24 | 680 | 08/07/2008 17:29:04 | 21 | 2 | Cross Platform, Language Agnostic GUI Markup Language? | I learned Swing back in the day but now I've moved to Python and want to make some apps with GUIs. I haven't had the time to learn a new GUI API so I've been using Jython, but I would prefer to use CPython.
It would be great if I can have one simple markup that allows me to switch GUI libraries. It would be even better if I can use the same markup language across languages so I can quickly make GUIs for any language I'm using. Does anyone know of such a markup/library? | gui | python | null | null | null | null | open | Cross Platform, Language Agnostic GUI Markup Language?
===
I learned Swing back in the day but now I've moved to Python and want to make some apps with GUIs. I haven't had the time to learn a new GUI API so I've been using Jython, but I would prefer to use CPython.
It would be great if I can have one simple markup that allows me to switch GUI libraries. It would be even better if I can use the same markup language across languages so I can quickly make GUIs for any language I'm using. Does anyone know of such a markup/library? | 0 |
5,323 | 08/07/2008 21:14:25 | 556 | 08/06/2008 16:48:23 | 166 | 9 | Is there a business reason for striving for pure CSS layout? | It seems like every time I try to create a pure CSS layout it takes me much longer than if I'd use a table or two. Getting three columns to be of equal lengths with different amount of data in them seems to require particular fancy hacks, especially when dealing with cross-browser issues.
So, my question is this: who are these few tables going to hurt? Tables seem to work particularly good on tabular data - why are they so reviled in this day and age? Google.com has a table its source code, so do many other sites (stackoverflow does not by the way). | css | trolling | null | null | null | null | open | Is there a business reason for striving for pure CSS layout?
===
It seems like every time I try to create a pure CSS layout it takes me much longer than if I'd use a table or two. Getting three columns to be of equal lengths with different amount of data in them seems to require particular fancy hacks, especially when dealing with cross-browser issues.
So, my question is this: who are these few tables going to hurt? Tables seem to work particularly good on tabular data - why are they so reviled in this day and age? Google.com has a table its source code, so do many other sites (stackoverflow does not by the way). | 0 |
5,326 | 08/07/2008 21:16:31 | 71 | 08/01/2008 15:05:56 | 304 | 37 | Templates for lifecycle documentation | Does anybody have some good templates (or links to) that they use for software lifecycle documents (feasibility, concept, requirements, architecture)?
I've taken some old ones I've had from school and slimmed them down a bit since none of the current projects that I work on are to that scale, but they always feel somewhat clugey. Sadly enough there isn't any kind of lifecycle support here at my current job, so I don't have anything here to base mine on. | documentation | software-engineering | lifecycle | null | null | null | open | Templates for lifecycle documentation
===
Does anybody have some good templates (or links to) that they use for software lifecycle documents (feasibility, concept, requirements, architecture)?
I've taken some old ones I've had from school and slimmed them down a bit since none of the current projects that I work on are to that scale, but they always feel somewhat clugey. Sadly enough there isn't any kind of lifecycle support here at my current job, so I don't have anything here to base mine on. | 0 |
5,328 | 08/07/2008 21:17:56 | 122 | 08/02/2008 07:56:07 | 1,043 | 55 | Why can't I use a try block around my super() call? | So, in Java, the first line of your constructor HAS to be a call to super... be it implicitly calling super(), or explicitly calling another constructor. What I want to know is, why can't I put a try block around that?
My specific case is that I have a mock class for a test. There is no default constructor, but I want one to make the tests simpler to read. I also want to wrap the exceptions thrown from the constructor into a RuntimeException.
So, what I want to do is effectively this:
public class MyClassMock extends MyClass {
public MyClassMock() {
try {
super(0);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
// Mocked methods
}
But Java complains that super isn't the first statement.
My workaround:
public class MyClassMock extends MyClass {
public static MyClassMock construct() {
try {
return new MyClassMock();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
public MyClassMock() throws Exception {
super(0);
}
// Mocked methods
}
Is this the best workaround? Why doesn't Java let me do the former? | java | exception | mocking | null | null | null | open | Why can't I use a try block around my super() call?
===
So, in Java, the first line of your constructor HAS to be a call to super... be it implicitly calling super(), or explicitly calling another constructor. What I want to know is, why can't I put a try block around that?
My specific case is that I have a mock class for a test. There is no default constructor, but I want one to make the tests simpler to read. I also want to wrap the exceptions thrown from the constructor into a RuntimeException.
So, what I want to do is effectively this:
public class MyClassMock extends MyClass {
public MyClassMock() {
try {
super(0);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
// Mocked methods
}
But Java complains that super isn't the first statement.
My workaround:
public class MyClassMock extends MyClass {
public static MyClassMock construct() {
try {
return new MyClassMock();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
public MyClassMock() throws Exception {
super(0);
}
// Mocked methods
}
Is this the best workaround? Why doesn't Java let me do the former? | 0 |
5,329 | 08/07/2008 21:17:58 | 327 | 08/04/2008 17:08:49 | 51 | 3 | What is the difference between a bug and a change request in MSF for CMMI? | I'm currently evaluating the MSF for CMMI process template under TFS for use on my development team, and I'm having trouble understanding the need for separate bug and change request work item types. I understand that it is beneficial to be able to differentiate between bugs (errors) and change requests (changing requirements) when generating reports. In our current system, however, we only have a single type of change request and just use a field to indicate whether it is a bug, requirement change, etc (this field can be used to build report queries). What are the benefits of having a separate workflow for bugs? I'm also confused by the fact that developers can submit work against a bug **or** a change request -- I thought the intended workflow was for bugs to generate change requests which are what the developer references when making changes. | tfs | msf | cmmi | workflow | bugtracking | null | open | What is the difference between a bug and a change request in MSF for CMMI?
===
I'm currently evaluating the MSF for CMMI process template under TFS for use on my development team, and I'm having trouble understanding the need for separate bug and change request work item types. I understand that it is beneficial to be able to differentiate between bugs (errors) and change requests (changing requirements) when generating reports. In our current system, however, we only have a single type of change request and just use a field to indicate whether it is a bug, requirement change, etc (this field can be used to build report queries). What are the benefits of having a separate workflow for bugs? I'm also confused by the fact that developers can submit work against a bug **or** a change request -- I thought the intended workflow was for bugs to generate change requests which are what the developer references when making changes. | 0 |
5,349 | 08/07/2008 21:31:59 | 556 | 08/06/2008 16:48:23 | 179 | 9 | Memcached chunk limit | Why is there a hardcoded chunk limit (.5 meg after compression) in memcached? Has anyone recompiled theirs to up it? I know I should not be sending big chunks like that around, but these extra heavy chunks happen for me from time to time and wreak havoc. | membership | null | null | null | null | null | open | Memcached chunk limit
===
Why is there a hardcoded chunk limit (.5 meg after compression) in memcached? Has anyone recompiled theirs to up it? I know I should not be sending big chunks like that around, but these extra heavy chunks happen for me from time to time and wreak havoc. | 0 |
5,374 | 08/07/2008 21:53:58 | 312 | 08/04/2008 15:01:41 | 84 | 8 | How do you use a variable in xsl when trying to select a node? | I would have thought this would be an easy one to Google, but I've been unsucessful.
I want to assign a variable the value out of an attribute (easy so far) then use that variable to select another node based on the value of that attribute.
ex:
<xsl:variable name="myId" select="@id" />
<xsl value-of select="//Root/Some/Other/Path/Where[@id='{@myId}']/@Name />
That does not work. If I replace the {@myId} with the value that is in the variable then it does find the right node, but doign it this way produces nothing. I'm sure I'm missing something, or perhaps there is a different way to do it.
The context is that there is related data under different top-level nodes that share the same id value so I need to get the related nodes in my template. | xslt | null | null | null | null | null | open | How do you use a variable in xsl when trying to select a node?
===
I would have thought this would be an easy one to Google, but I've been unsucessful.
I want to assign a variable the value out of an attribute (easy so far) then use that variable to select another node based on the value of that attribute.
ex:
<xsl:variable name="myId" select="@id" />
<xsl value-of select="//Root/Some/Other/Path/Where[@id='{@myId}']/@Name />
That does not work. If I replace the {@myId} with the value that is in the variable then it does find the right node, but doign it this way produces nothing. I'm sure I'm missing something, or perhaps there is a different way to do it.
The context is that there is related data under different top-level nodes that share the same id value so I need to get the related nodes in my template. | 0 |
5,396 | 08/07/2008 22:10:05 | 691 | 08/07/2008 21:53:57 | 1 | 0 | SQL Server 2008 FileStream on a Web Server | First of all, congrats to Jeff, Joel and the guys for getting this thing up and running!
OK, I've been developing a site using ASP.NET MVC, and have decided to use the new SQL Server 2008 FILESTREAM facility to store files 'within' the database rather than as separate entities. While initially working within VS2008 (using a trusted connection to the database), everything was fine and dandy. Issues arose, however, when I shifted the site to IIS7 and changed over to SQL authentication on the database.
It seems that streaming a FILESTREAM doesn't work with SQL authentication, only with Windows authentication. Given this, what is the best practice to follow?
1. Is there a way to force this wort of thing to work under SQL authentication?
2. Should I add NETWORK SERVICE as a database user and then use Trusted authentication?
3. Should I create another user, and run both the IIS site and the database connection under this?
4. Any other suggestions?
Thanks in advance. | sql-server | iis | null | null | null | null | open | SQL Server 2008 FileStream on a Web Server
===
First of all, congrats to Jeff, Joel and the guys for getting this thing up and running!
OK, I've been developing a site using ASP.NET MVC, and have decided to use the new SQL Server 2008 FILESTREAM facility to store files 'within' the database rather than as separate entities. While initially working within VS2008 (using a trusted connection to the database), everything was fine and dandy. Issues arose, however, when I shifted the site to IIS7 and changed over to SQL authentication on the database.
It seems that streaming a FILESTREAM doesn't work with SQL authentication, only with Windows authentication. Given this, what is the best practice to follow?
1. Is there a way to force this wort of thing to work under SQL authentication?
2. Should I add NETWORK SERVICE as a database user and then use Trusted authentication?
3. Should I create another user, and run both the IIS site and the database connection under this?
4. Any other suggestions?
Thanks in advance. | 0 |
5,397 | 08/07/2008 22:10:22 | 406 | 08/05/2008 13:38:24 | 98 | 3 | Implementing online ordering for a small cafe. | I am meeting with a cafe owner this weekend to discuss the feasibilty of implementing an online ordering system. I am starting to research this a bit, and wanted to throw it out here.
1. Is there any open source projects already started out there I could work with and contribute to?
2. Would it be easier to just roll my own?
-If so, any suggestions on where to start? ASP.NET, Ruby on Rails, PHP???
3. Payment processing? I am pretty sure I would go through Google Checkout. Any drawbacks to google checkout? | webdevelopment | softwaredevelopment | null | null | null | 10/26/2011 18:55:35 | off topic | Implementing online ordering for a small cafe.
===
I am meeting with a cafe owner this weekend to discuss the feasibilty of implementing an online ordering system. I am starting to research this a bit, and wanted to throw it out here.
1. Is there any open source projects already started out there I could work with and contribute to?
2. Would it be easier to just roll my own?
-If so, any suggestions on where to start? ASP.NET, Ruby on Rails, PHP???
3. Payment processing? I am pretty sure I would go through Google Checkout. Any drawbacks to google checkout? | 2 |
5,415 | 08/07/2008 22:24:27 | 680 | 08/07/2008 17:29:04 | 21 | 2 | Convert Bytes to Floating Point Numbers in Python | I have a binary file that I have to parse and I'm using Python. Is there a way to take 4 bytes and convert it to a single precision floating point number? | python | floating-point | null | null | null | null | open | Convert Bytes to Floating Point Numbers in Python
===
I have a binary file that I have to parse and I'm using Python. Is there a way to take 4 bytes and convert it to a single precision floating point number? | 0 |
5,419 | 08/07/2008 22:26:58 | 207 | 08/03/2008 13:51:13 | 51 | 3 | Python, Unicode, and the Windows console | When I try to print a Unicode string in a windows console, I get a "UnicodeEncodeError: 'charmap' codec can't encode character ...." error. I assume this is because the Windows console does not accept Unicode-only characters. What's the best way around this? Is there any way I can make Python automatically print a "?" instead of failing in this situation? | python | unicode | null | null | null | null | open | Python, Unicode, and the Windows console
===
When I try to print a Unicode string in a windows console, I get a "UnicodeEncodeError: 'charmap' codec can't encode character ...." error. I assume this is because the Windows console does not accept Unicode-only characters. What's the best way around this? Is there any way I can make Python automatically print a "?" instead of failing in this situation? | 0 |
5,425 | 08/07/2008 22:30:25 | 219 | 08/03/2008 16:25:07 | 380 | 10 | HTML comments break down | I have a page that is generated which inserts an HTML comment near the top of the page. Inside the comment is a *nix-style command.
<!-- command --option value --option2 value2 --option3 -->
This comment breaks the page completely. What is wrong with the comment to cause this to happen, and why is this the case? | html | sgml | comment | null | null | null | open | HTML comments break down
===
I have a page that is generated which inserts an HTML comment near the top of the page. Inside the comment is a *nix-style command.
<!-- command --option value --option2 value2 --option3 -->
This comment breaks the page completely. What is wrong with the comment to cause this to happen, and why is this the case? | 0 |
5,428 | 08/07/2008 22:31:13 | 659 | 08/07/2008 15:08:33 | 26 | 3 | Do people use the Hungarian Naming Conventions in the real world? | Is it worth learning the convention or is it a bane to readability and maintainability? | selfdocumentingcode | null | null | null | null | null | open | Do people use the Hungarian Naming Conventions in the real world?
===
Is it worth learning the convention or is it a bane to readability and maintainability? | 0 |
5,446 | 08/07/2008 22:46:00 | 1,384,652 | 08/01/2008 12:01:23 | 601 | 45 | A project with no leader | I've been asked to join in with a project and there is no actual leader (it's not a business setting), worse still there are about 8 members and because of this, there is no actual action plan. I'd volunteer myself as the leader or manager but I don't have the time or inclination to do so, should I just watch it struggle (and possibly never even take form) or is there something more constructive I can be doing? | project | teamwork | project-planning | leader | null | 07/08/2011 00:57:24 | off topic | A project with no leader
===
I've been asked to join in with a project and there is no actual leader (it's not a business setting), worse still there are about 8 members and because of this, there is no actual action plan. I'd volunteer myself as the leader or manager but I don't have the time or inclination to do so, should I just watch it struggle (and possibly never even take form) or is there something more constructive I can be doing? | 2 |
5,459 | 08/07/2008 22:58:42 | 117 | 08/02/2008 05:54:20 | 506 | 25 | Accessing a CONST attribute of series of Classes | This is how I wanted to do it which would work in PHP 5.3.0+
<?php
class MyClass
{
const CONSTANT = 'Const var';
}
$classname = 'MyClass';
echo $classname::CONSTANT; // As of PHP 5.3.0
?>
But I'm restricted to using PHP 5.2.6. Can anyone think of a simple way to simulate this behaviour without instantiating the class? | php | oop | null | null | null | null | open | Accessing a CONST attribute of series of Classes
===
This is how I wanted to do it which would work in PHP 5.3.0+
<?php
class MyClass
{
const CONSTANT = 'Const var';
}
$classname = 'MyClass';
echo $classname::CONSTANT; // As of PHP 5.3.0
?>
But I'm restricted to using PHP 5.2.6. Can anyone think of a simple way to simulate this behaviour without instantiating the class? | 0 |
5,460 | 08/07/2008 23:00:30 | 590 | 08/07/2008 00:24:39 | 36 | 7 | Telligent's Community Server | The company I work for is wanting to add blog functionality to our website and they were looking to spend an awful amount of money to have some crap being built on top of a CMS they purchased (sitecore). I pointed them to Telligent's Community Server and we had a sales like meeting today to get the Marketing folks on board.
My question is if anyone has had issues working with Community Server, skinning it and extending it? | community-server | null | null | null | null | null | open | Telligent's Community Server
===
The company I work for is wanting to add blog functionality to our website and they were looking to spend an awful amount of money to have some crap being built on top of a CMS they purchased (sitecore). I pointed them to Telligent's Community Server and we had a sales like meeting today to get the Marketing folks on board.
My question is if anyone has had issues working with Community Server, skinning it and extending it? | 0 |
5,473 | 08/07/2008 23:22:51 | 85 | 08/01/2008 16:38:08 | 16 | 0 | Undoing a git reset --hard HEAD~1 | Is it possible to undo the changes caused by the following:
git reset --hard HEAD~1
?
If so, how?
Thanks. | git | versioncontrol | null | null | null | null | open | Undoing a git reset --hard HEAD~1
===
Is it possible to undo the changes caused by the following:
git reset --hard HEAD~1
?
If so, how?
Thanks. | 0 |
5,482 | 08/07/2008 23:37:30 | 698 | 08/07/2008 23:31:56 | 1 | 0 | How to specify javascript to run when ModalPopupExtender is shown | The ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn't seem to have an OnShowScript property. I'd like to specify a javascript function to run each time the popup is shown.
In past situations, I set the TargetControlID to a dummy control and provide my own control that first does some JS code and then uses the JS methods to show the popup. But in this case, I am showing the popup from both client and server side code.
Anyone know of a way to do this? | ajax | asp.net | javascript | null | null | null | open | How to specify javascript to run when ModalPopupExtender is shown
===
The ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn't seem to have an OnShowScript property. I'd like to specify a javascript function to run each time the popup is shown.
In past situations, I set the TargetControlID to a dummy control and provide my own control that first does some JS code and then uses the JS methods to show the popup. But in this case, I am showing the popup from both client and server side code.
Anyone know of a way to do this? | 0 |
5,494 | 08/07/2008 23:53:55 | 697 | 08/07/2008 23:18:10 | 1 | 2 | Alternative Hostname for an IIS web site for internal access only | I'm using IIS in Windows 2003 Server for a SharePoint intranet. External incoming requests will be using the host header `portal.mycompany.com` and be forced to use SSL.
I was wondering if there's a way to set up an alternate host header such as `http://internalportal/` which only accepts requests from the internal network, but doesn't force the users to use SSL.
Any recommendations for how to set this up? | iis | sharepoint | moss | null | null | null | open | Alternative Hostname for an IIS web site for internal access only
===
I'm using IIS in Windows 2003 Server for a SharePoint intranet. External incoming requests will be using the host header `portal.mycompany.com` and be forced to use SSL.
I was wondering if there's a way to set up an alternate host header such as `http://internalportal/` which only accepts requests from the internal network, but doesn't force the users to use SSL.
Any recommendations for how to set this up? | 0 |
5,507 | 08/08/2008 00:29:13 | 861 | 08/09/2008 19:00:40 | 13 | 2 | Does it still make sense to learn low level WinAPI programming? | Does it make sense, having all of the C#-managed-bliss, to go back to Petzhold's [Programming Windows][1] and try to produce code w/ pure WinAPI?
What can be learn from it? Isn't it just too outdated to be useful?
[1]: www.amazon.com/Programming-Windows®-Fifth-Microsoft/dp/157231995X | windows | winapi | null | null | null | 04/30/2012 13:43:33 | not constructive | Does it still make sense to learn low level WinAPI programming?
===
Does it make sense, having all of the C#-managed-bliss, to go back to Petzhold's [Programming Windows][1] and try to produce code w/ pure WinAPI?
What can be learn from it? Isn't it just too outdated to be useful?
[1]: www.amazon.com/Programming-Windows®-Fifth-Microsoft/dp/157231995X | 4 |
5,509 | 08/08/2008 00:31:19 | 159 | 08/02/2008 18:20:52 | 159 | 8 | Rational Purify failng to jump to memory leaks. | So my company uses a delightfully buggy program called Rational Purify (as a plugin to Microsoft Visual Developer Studio) to manage memory leaks. The program is deigned to let you click on a memory after you have encountered it, and then jump to the line that the leak occurs on.
Unfortunately Purify is malfunctioning and Purify will not jump to the place that the leak occurred it only mentions the class and method that the leak occurs in. Unfortunately, sometimes this is about as useful as hiring a guide to help you hunt bears and having him point to the forest and tell you there are bears there.
Does anyone with Purify experience have any idea how I might fix this problem or have a good manual to look though? | rational | purify | null | null | null | null | open | Rational Purify failng to jump to memory leaks.
===
So my company uses a delightfully buggy program called Rational Purify (as a plugin to Microsoft Visual Developer Studio) to manage memory leaks. The program is deigned to let you click on a memory after you have encountered it, and then jump to the line that the leak occurs on.
Unfortunately Purify is malfunctioning and Purify will not jump to the place that the leak occurred it only mentions the class and method that the leak occurs in. Unfortunately, sometimes this is about as useful as hiring a guide to help you hunt bears and having him point to the forest and tell you there are bears there.
Does anyone with Purify experience have any idea how I might fix this problem or have a good manual to look though? | 0 |
5,511 | 08/08/2008 00:37:55 | 615 | 08/07/2008 11:06:07 | 51 | 5 | Numeric Data Entry in WPF | How are you handling the entry of numeric values in WPF applications?
Without a NumericUpDown control, I've been using a TextBox and handling its PreviewKeyDown event with the code below, but it's pretty ugly.
Has anyone found a more graceful way to get numeric data from the user without relying on a third-party control?
private void NumericEditPreviewKeyDown(object sender, KeyEventArgs e)
{
bool isNumPadNumeric = (e.Key >= Key.NumPad0 && e.Key <= Key.NumPad9) || e.Key == Key.Decimal;
bool isNumeric = (e.Key >= Key.D0 && e.Key <= Key.D9) || e.Key == Key.OemPeriod;
if ((isNumeric || isNumPadNumeric) && Keyboard.Modifiers != ModifierKeys.None)
{
e.Handled = true;
return;
}
bool isControl = ((Keyboard.Modifiers != ModifierKeys.None && Keyboard.Modifiers != ModifierKeys.Shift)
|| e.Key == Key.Back || e.Key == Key.Delete || e.Key == Key.Insert
|| e.Key == Key.Down || e.Key == Key.Left || e.Key == Key.Right || e.Key == Key.Up
|| e.Key == Key.Tab
|| e.Key == Key.PageDown || e.Key == Key.PageUp
|| e.Key == Key.Enter || e.Key == Key.Return || e.Key == Key.Escape
|| e.Key == Key.Home || e.Key == Key.End);
e.Handled = !isControl && !isNumeric && !isNumPadNumeric;
} | wpf | null | null | null | null | null | open | Numeric Data Entry in WPF
===
How are you handling the entry of numeric values in WPF applications?
Without a NumericUpDown control, I've been using a TextBox and handling its PreviewKeyDown event with the code below, but it's pretty ugly.
Has anyone found a more graceful way to get numeric data from the user without relying on a third-party control?
private void NumericEditPreviewKeyDown(object sender, KeyEventArgs e)
{
bool isNumPadNumeric = (e.Key >= Key.NumPad0 && e.Key <= Key.NumPad9) || e.Key == Key.Decimal;
bool isNumeric = (e.Key >= Key.D0 && e.Key <= Key.D9) || e.Key == Key.OemPeriod;
if ((isNumeric || isNumPadNumeric) && Keyboard.Modifiers != ModifierKeys.None)
{
e.Handled = true;
return;
}
bool isControl = ((Keyboard.Modifiers != ModifierKeys.None && Keyboard.Modifiers != ModifierKeys.Shift)
|| e.Key == Key.Back || e.Key == Key.Delete || e.Key == Key.Insert
|| e.Key == Key.Down || e.Key == Key.Left || e.Key == Key.Right || e.Key == Key.Up
|| e.Key == Key.Tab
|| e.Key == Key.PageDown || e.Key == Key.PageUp
|| e.Key == Key.Enter || e.Key == Key.Return || e.Key == Key.Escape
|| e.Key == Key.Home || e.Key == Key.End);
e.Handled = !isControl && !isNumeric && !isNumPadNumeric;
} | 0 |
5,514 | 08/08/2008 00:40:51 | 506 | 08/06/2008 12:56:30 | 21 | 4 | Public/Popular Websites using Java Server Faces | Are there any popular and/or public websites that utilize the Java Server Faces framework? I don't ever recall stumbling across any ever on the Internet. In my experience JSF is usually reserved for non-public enterprise and business level applications.
I am curious to know becuase I am researching how terrible of an idea it would be to construct - for example - a online dating website utilizing MVC with JSF and (lets say for the sake of argument) EJB 3.0. | java | mvc | framework | jsf | null | null | open | Public/Popular Websites using Java Server Faces
===
Are there any popular and/or public websites that utilize the Java Server Faces framework? I don't ever recall stumbling across any ever on the Internet. In my experience JSF is usually reserved for non-public enterprise and business level applications.
I am curious to know becuase I am researching how terrible of an idea it would be to construct - for example - a online dating website utilizing MVC with JSF and (lets say for the sake of argument) EJB 3.0. | 0 |
5,526 | 08/08/2008 01:02:02 | 547 | 08/06/2008 16:09:22 | 80 | 13 | Anyone out there implement(ing) microformats? is this useful? | I've seen the MF people talk and have heard my own fair share of MF evangelism, yet haven't done anything about it fearing the gains aren't really worth the hassle. Does anyone use this?
BTW, from [their website][1]:
> "microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging)."
/mp
[1]: http://microformats.org/about/ | microformats | null | null | null | null | null | open | Anyone out there implement(ing) microformats? is this useful?
===
I've seen the MF people talk and have heard my own fair share of MF evangelism, yet haven't done anything about it fearing the gains aren't really worth the hassle. Does anyone use this?
BTW, from [their website][1]:
> "microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging)."
/mp
[1]: http://microformats.org/about/ | 0 |
5,527 | 08/08/2008 01:04:02 | 122 | 08/02/2008 07:56:07 | 1,110 | 65 | Is there a real benefit of using J#? | I just saw a [comment of suggesting J#][1], and it made me wonder... is there a real, beneficial use of J# over Java? So, my feeling is that the only reason you would even consider using J# is that management has decreed that the company should jump on the Java bandwagon... and the .NET bandwagon. If you use J#, you are effectively losing the biggest benefit of picking Java... rich cross platform support. Sure there is Mono, but it's not as richly supported or as full featured right? I remember hearing Forms are not fully (perhaps at all) supported.
I'm not trying to bash .NET here, I'm just saying, if you are going to go the Microsoft route, why not just use C#? If you are going to go the Java route, why would J# enter the picture?
I'm hoping to find some real world cases here, so please especially respond if you've ACTUALLY used J# in a REAL project, and why.
[1]: http://stackoverflow.com/questions/5516/what-happened-to-all-of-the-java-developers-how-can-i-get-started-in-net#5522 | java | j# | null | null | null | null | open | Is there a real benefit of using J#?
===
I just saw a [comment of suggesting J#][1], and it made me wonder... is there a real, beneficial use of J# over Java? So, my feeling is that the only reason you would even consider using J# is that management has decreed that the company should jump on the Java bandwagon... and the .NET bandwagon. If you use J#, you are effectively losing the biggest benefit of picking Java... rich cross platform support. Sure there is Mono, but it's not as richly supported or as full featured right? I remember hearing Forms are not fully (perhaps at all) supported.
I'm not trying to bash .NET here, I'm just saying, if you are going to go the Microsoft route, why not just use C#? If you are going to go the Java route, why would J# enter the picture?
I'm hoping to find some real world cases here, so please especially respond if you've ACTUALLY used J# in a REAL project, and why.
[1]: http://stackoverflow.com/questions/5516/what-happened-to-all-of-the-java-developers-how-can-i-get-started-in-net#5522 | 0 |
5,544 | 08/08/2008 01:31:21 | 364 | 08/05/2008 05:33:41 | 71 | 6 | In ASP.NET MVC I encounter an incorrect type error when rendering a user control with the correct typed object | I encounter an error of the form: "The model item passed into the dictionary is of type FooViewData but this dictionary requires a model item of type bar" even though I am passing in an object of the correct type (bar) for the typed user control. | asp.net-mvc | null | null | null | null | null | open | In ASP.NET MVC I encounter an incorrect type error when rendering a user control with the correct typed object
===
I encounter an error of the form: "The model item passed into the dictionary is of type FooViewData but this dictionary requires a model item of type bar" even though I am passing in an object of the correct type (bar) for the typed user control. | 0 |
5,562 | 08/08/2008 01:50:18 | 492 | 08/06/2008 10:17:26 | 1 | 2 | Do you prefer to code on a Laptop or a Desktop, or both ? | What is your primary development machine - a Desktop or a laptop? Why?
Do you use both - if so, do you use source control to keep them synched?
This might seem like a dumb question but I'm on the steep part of the learning curve & I'd be interested in your insights. | laptop | desktop | null | null | null | null | open | Do you prefer to code on a Laptop or a Desktop, or both ?
===
What is your primary development machine - a Desktop or a laptop? Why?
Do you use both - if so, do you use source control to keep them synched?
This might seem like a dumb question but I'm on the steep part of the learning curve & I'd be interested in your insights. | 0 |
5,598 | 08/08/2008 02:42:48 | 699 | 08/07/2008 23:47:19 | 1 | 5 | Document or RPC based web services | My gut feel is that document based web services are preferred in practice - is this other peoples experience? are they easier to support? (I noted that Sharepoint uses Any for the "document type" in its WSDL interface, I guess that makes it Document based).
Also - are people offering both WSDL and Rest type services now for the same functionality? WSDL is popular for code generation, but for front ends like PHP and Rails they seem to prefer rest. | webservices | rest | null | null | null | null | open | Document or RPC based web services
===
My gut feel is that document based web services are preferred in practice - is this other peoples experience? are they easier to support? (I noted that Sharepoint uses Any for the "document type" in its WSDL interface, I guess that makes it Document based).
Also - are people offering both WSDL and Rest type services now for the same functionality? WSDL is popular for code generation, but for front ends like PHP and Rails they seem to prefer rest. | 0 |
5,600 | 08/08/2008 02:47:15 | 615 | 08/07/2008 11:06:07 | 71 | 5 | Tables with no Primary Key | I have several tables whose only unique data is a uniqueidentifier (a Guid) column. Because guids are non-sequential (and they're client-side generated so I can't use newsequentialid()), I have made a non-primary, non-clustered index on this ID field rather than giving the tables a clustered primary key.
I'm wondering what the performance implications are for this approach. I've seen some people suggest that tables should have an auto-incrementing ("identity") int as a clustered primary key even if it doesn't have any meaning, as it means that the database engine itself can use that value to quickly look up a row instead of having to use a bookmark.
My database is merge-replicated across a bunch of servers, so I've shied away from identity int columns as they're a bit hairy to get right in replication.
What are your thoughts? Should tables have primary keys? Or is it ok to not have any clustered indexes if there are no sensible columns to index that way? | mssql | indexing | null | null | null | null | open | Tables with no Primary Key
===
I have several tables whose only unique data is a uniqueidentifier (a Guid) column. Because guids are non-sequential (and they're client-side generated so I can't use newsequentialid()), I have made a non-primary, non-clustered index on this ID field rather than giving the tables a clustered primary key.
I'm wondering what the performance implications are for this approach. I've seen some people suggest that tables should have an auto-incrementing ("identity") int as a clustered primary key even if it doesn't have any meaning, as it means that the database engine itself can use that value to quickly look up a row instead of having to use a bookmark.
My database is merge-replicated across a bunch of servers, so I've shied away from identity int columns as they're a bit hairy to get right in replication.
What are your thoughts? Should tables have primary keys? Or is it ok to not have any clustered indexes if there are no sensible columns to index that way? | 0 |
5,605 | 08/08/2008 03:02:36 | 617 | 08/07/2008 11:16:21 | 1 | 1 | HTTP Libraries for Emacs | I recently discovered the org-mode in emacs and it works very well for me. I also like www.RememberTheMilk.com. I would like to be able to sync my org-mode file and RTM list. I know that RTM has its API exposed as web services. I am currently looking for a HTTP library that I could use to write my script. I found a couple of links but I am still not entirely satisfied.
[http://www.koders.com/lisp/fidB46CCCA8D57FBD093BAF6E08289CFB4DA7624B2B.aspx?s=TV+Raman][1]
[http://www.emacswiki.org/cgi-bin/wiki/http-post-simple.el][2]
Any pointers in doing web service interactions with emacs would be very useful. Also please keep in mind that I'm not a seasoned emacs expert. I have broken the initial barriers of emacs and can find my way around elisp. So, be gentle. :-)
[1]: http://www.koders.com/lisp/fidB46CCCA8D57FBD093BAF6E08289CFB4DA7624B2B.aspx?s=TV+Raman
[2]:
http://www.emacswiki.org/cgi-bin/wiki/http-post-simple.el | http | emacs | null | null | null | null | open | HTTP Libraries for Emacs
===
I recently discovered the org-mode in emacs and it works very well for me. I also like www.RememberTheMilk.com. I would like to be able to sync my org-mode file and RTM list. I know that RTM has its API exposed as web services. I am currently looking for a HTTP library that I could use to write my script. I found a couple of links but I am still not entirely satisfied.
[http://www.koders.com/lisp/fidB46CCCA8D57FBD093BAF6E08289CFB4DA7624B2B.aspx?s=TV+Raman][1]
[http://www.emacswiki.org/cgi-bin/wiki/http-post-simple.el][2]
Any pointers in doing web service interactions with emacs would be very useful. Also please keep in mind that I'm not a seasoned emacs expert. I have broken the initial barriers of emacs and can find my way around elisp. So, be gentle. :-)
[1]: http://www.koders.com/lisp/fidB46CCCA8D57FBD093BAF6E08289CFB4DA7624B2B.aspx?s=TV+Raman
[2]:
http://www.emacswiki.org/cgi-bin/wiki/http-post-simple.el | 0 |
5,606 | 08/08/2008 03:03:46 | 463 | 08/06/2008 00:13:18 | 31 | 4 | License Models | Pretty much all my career, I worked with building solutions (customized applications for a single customer). Now that my company is going in developing software for the masses, a lot of packaging is waiting for us.<br/>
I wanna ask about licensing software. How to generate serial numbers and activation numbers. What are my options for licensing software in general.<br/>
I realize that it's sort of a general question but it's a conversation starter.<br/> | productmanagement | null | null | null | null | null | open | License Models
===
Pretty much all my career, I worked with building solutions (customized applications for a single customer). Now that my company is going in developing software for the masses, a lot of packaging is waiting for us.<br/>
I wanna ask about licensing software. How to generate serial numbers and activation numbers. What are my options for licensing software in general.<br/>
I realize that it's sort of a general question but it's a conversation starter.<br/> | 0 |
5,611 | 08/08/2008 03:18:56 | 115 | 08/02/2008 05:44:40 | 129 | 17 | Better Random Generating PHP | I know that just using rand() is predictable, if you know what your doing, and have access to the server.<br />
I have a project that is HIGHLY dependent on choosing a random that is as unpredictable as possible. So I'm looking for suggestions, either other built in functions, or user functions that can generate a 'better' random number. | php | rng | random-number | random | null | null | open | Better Random Generating PHP
===
I know that just using rand() is predictable, if you know what your doing, and have access to the server.<br />
I have a project that is HIGHLY dependent on choosing a random that is as unpredictable as possible. So I'm looking for suggestions, either other built in functions, or user functions that can generate a 'better' random number. | 0 |
5,618 | 08/08/2008 03:38:38 | 668 | 08/07/2008 16:05:06 | 8 | 0 | Best ajax library for Sharepoint | For developing Windows Sharepoint Service application, what is the best ajax library available now? I'm thinking of free, customizable, and easy deployment, and its compatible with sharepoint, meaning it can run in 'quirks' mode. | .net | ajax | sharepoint | null | null | 09/14/2011 21:52:00 | not constructive | Best ajax library for Sharepoint
===
For developing Windows Sharepoint Service application, what is the best ajax library available now? I'm thinking of free, customizable, and easy deployment, and its compatible with sharepoint, meaning it can run in 'quirks' mode. | 4 |
5,619 | 08/08/2008 03:38:57 | 290 | 08/04/2008 12:57:50 | 115 | 7 | IE6 + SSL + AJAX + post form = 404 error (?) | **The setting:**
The program in question tries to post form data via an AJAX call to a target procedure contained in the same package as the caller. This is done for a site that uses a secure connection (https). The technology used here is PLSQL and the DOJO JavaScript library. The development tool is basically a text editor.
**The problem:**
When using IE6 (which the entire user-base uses), the response sent back from the target procedure is a 404 error.
**Observations:**
The program works fine in Firefox.
The calling procedure cannot target any procedures within the same package.
The calling procedure can target outside sites (both http, https).
The other AJAX calls in the package that are not posts of form data work fine.
I've searched the *internets* and consulted with senior-skilled team members and haven't discovered anything that satisfactorily addresses the issue.
**The Questions:**
What troubleshooting techniques do you recommend?
What troubleshooting tools do you recommend for HTTPS analyzing?
Any hypotheses on what the issue might be?
Any ideas for workarounds that aren't total (bad) hacks? | ajax | dojo | internet-explorer-6 | ssl | https | null | open | IE6 + SSL + AJAX + post form = 404 error (?)
===
**The setting:**
The program in question tries to post form data via an AJAX call to a target procedure contained in the same package as the caller. This is done for a site that uses a secure connection (https). The technology used here is PLSQL and the DOJO JavaScript library. The development tool is basically a text editor.
**The problem:**
When using IE6 (which the entire user-base uses), the response sent back from the target procedure is a 404 error.
**Observations:**
The program works fine in Firefox.
The calling procedure cannot target any procedures within the same package.
The calling procedure can target outside sites (both http, https).
The other AJAX calls in the package that are not posts of form data work fine.
I've searched the *internets* and consulted with senior-skilled team members and haven't discovered anything that satisfactorily addresses the issue.
**The Questions:**
What troubleshooting techniques do you recommend?
What troubleshooting tools do you recommend for HTTPS analyzing?
Any hypotheses on what the issue might be?
Any ideas for workarounds that aren't total (bad) hacks? | 0 |
5,628 | 08/08/2008 03:54:08 | 653 | 08/07/2008 14:31:07 | 1 | 1 | Is there a way to include a fragment identifier when using Asp.Net MVC ActionLink, RedirectToAction, etc. ? | I want some links to include a fragment identifier. Like some of the URLs on this site:
http://stackoverflow.com/questions/5619/ie6-ssl-ajax-post-form-404-error**#5626**
Is there a way to do this with any of the builtin methods in MVC? Or would I have to roll my own HTML helpers?
Thanks | aspnetmvc | null | null | null | null | null | open | Is there a way to include a fragment identifier when using Asp.Net MVC ActionLink, RedirectToAction, etc. ?
===
I want some links to include a fragment identifier. Like some of the URLs on this site:
http://stackoverflow.com/questions/5619/ie6-ssl-ajax-post-form-404-error**#5626**
Is there a way to do this with any of the builtin methods in MVC? Or would I have to roll my own HTML helpers?
Thanks | 0 |
5,629 | 08/08/2008 04:03:10 | 653 | 08/07/2008 14:31:07 | 1 | 1 | Any reason not to start using the HTML 5 doctype? | <!DOCTYPE html>
It is supposed to be backwards compatible with HTML4 and XHTML. [John Resig posted about some of the benefits][1].
[1]: http://ejohn.org/blog/html5-doctype/
As long as we don't use any of the new and not supported yet features, would there be any downside to start building sites with this doctype? | html | doctype | html5 | null | null | 08/27/2011 12:27:45 | too localized | Any reason not to start using the HTML 5 doctype?
===
<!DOCTYPE html>
It is supposed to be backwards compatible with HTML4 and XHTML. [John Resig posted about some of the benefits][1].
[1]: http://ejohn.org/blog/html5-doctype/
As long as we don't use any of the new and not supported yet features, would there be any downside to start building sites with this doctype? | 3 |
5,649 | 08/08/2008 04:25:11 | 703 | 08/08/2008 04:25:11 | 1 | 0 | x86 Assembly on a mac... | Does anyone know of any good tools (i'm looking for IDEs, primarily) to write assembly on the mac... XCode is a little cumbersome to me.
Also, on the Intel Macs, can I use generic x86 asm? or is there a modified instruction set? Any information about post Intel Mac assembly helps. | asm | osx | x86 | xcode | null | null | open | x86 Assembly on a mac...
===
Does anyone know of any good tools (i'm looking for IDEs, primarily) to write assembly on the mac... XCode is a little cumbersome to me.
Also, on the Intel Macs, can I use generic x86 asm? or is there a modified instruction set? Any information about post Intel Mac assembly helps. | 0 |
5,667 | 08/08/2008 04:36:30 | 164 | 08/02/2008 20:59:47 | 160 | 7 | Sleep from within an Informix SPL procedure | What's the best way to do the semantic equivalent of the traditional sleep() system call from within an Informix SPL routine? In other words, simply "pause" for N seconds (or milliseconds or whatever, but seconds are fine). I'm looking for a solution that does *not* involve linking some new (perhaps written by me) C code or other library into the Informix server. This has to be something I can do purely from SPL. A solution for IDS 10 or 11 would be fine. | informix | spl | null | null | null | null | open | Sleep from within an Informix SPL procedure
===
What's the best way to do the semantic equivalent of the traditional sleep() system call from within an Informix SPL routine? In other words, simply "pause" for N seconds (or milliseconds or whatever, but seconds are fine). I'm looking for a solution that does *not* involve linking some new (perhaps written by me) C code or other library into the Informix server. This has to be something I can do purely from SPL. A solution for IDS 10 or 11 would be fine. | 0 |
5,672 | 08/08/2008 04:41:48 | 225 | 08/03/2008 17:19:42 | 212 | 13 | What are you using for Web UI/layout design? | What are folks out there using for web/ui design? For the most part we use PowerPoint at my company. The UI folks will mock up a screen in PowerPoint and we (the development group) will take it from there. So, for a side gig of mine I decided to do some mock ups to show the client prior to dev and I'm quickly feeling that PowerPoint is not the right tool for this.
What are you using for this type of stuff - some other software? pen/paper? | gui | design | null | null | null | null | open | What are you using for Web UI/layout design?
===
What are folks out there using for web/ui design? For the most part we use PowerPoint at my company. The UI folks will mock up a screen in PowerPoint and we (the development group) will take it from there. So, for a side gig of mine I decided to do some mock ups to show the client prior to dev and I'm quickly feeling that PowerPoint is not the right tool for this.
What are you using for this type of stuff - some other software? pen/paper? | 0 |
5,674 | 08/08/2008 04:42:52 | 257 | 08/04/2008 07:30:01 | 64 | 15 | How do I create an HTML anchor in a FogBugz wiki page? | The StackOverflow transcripts are enormous, and sometimes I want to link to a little bit within it.
How do I create an HTML anchor in a FogBugz wiki page? | wiki | fogbugz | null | null | null | null | open | How do I create an HTML anchor in a FogBugz wiki page?
===
The StackOverflow transcripts are enormous, and sometimes I want to link to a little bit within it.
How do I create an HTML anchor in a FogBugz wiki page? | 0 |
5,682 | 08/08/2008 04:51:27 | 117 | 08/02/2008 05:54:20 | 504 | 25 | Is it just me, or are characters being rendered incorrectly more lately? | I'm not sure if it's my system, although I haven't done anything unusual with it, but I've started noticing incorrectly rendered characters popping up in web pages, text-files, [like this][1]:
![][2]
I have a hunch it's a related to the fairly recent trend to use unicode for everything, which is a good thing I think, combined with fonts that don't support all possible characters.
So, does anyone know what's causing these blips (am I right?), and how do I stop this showing up in my own content?
[1]: http://ejohn.org/blog/html5-doctype/
[2]: http://www.kbssource.com/strange-characters.gif | unicode | fonts | utf8 | null | null | null | open | Is it just me, or are characters being rendered incorrectly more lately?
===
I'm not sure if it's my system, although I haven't done anything unusual with it, but I've started noticing incorrectly rendered characters popping up in web pages, text-files, [like this][1]:
![][2]
I have a hunch it's a related to the fairly recent trend to use unicode for everything, which is a good thing I think, combined with fonts that don't support all possible characters.
So, does anyone know what's causing these blips (am I right?), and how do I stop this showing up in my own content?
[1]: http://ejohn.org/blog/html5-doctype/
[2]: http://www.kbssource.com/strange-characters.gif | 0 |
5,690 | 08/08/2008 05:03:42 | 364 | 08/05/2008 05:33:41 | 96 | 8 | MVC Preview 4 - No route in the route table matches the supplied values. | I have a route that I am calling through a RedirectToRoute like this:
return this.RedirectToRoute("Super-SuperRoute", new { year = selectedYear });
I have also tried:
return this.RedirectToRoute("Super-SuperRoute", new { controller = "Super", action = "SuperRoute", id = "RouteTopic", year = selectedYear });
The route in the global.asax is like this:
routes.MapRoute(
"Super-SuperRoute", // Route name
"Super.mvc/SuperRoute/{year}", // URL with parameters
new { controller = "Super", action = "SuperRoute", id = "RouteTopic" } // Parameter defaults
);
So why do I get the error: "No route in the route table matches the supplied values."? | asp.net-mvc | null | null | null | null | null | open | MVC Preview 4 - No route in the route table matches the supplied values.
===
I have a route that I am calling through a RedirectToRoute like this:
return this.RedirectToRoute("Super-SuperRoute", new { year = selectedYear });
I have also tried:
return this.RedirectToRoute("Super-SuperRoute", new { controller = "Super", action = "SuperRoute", id = "RouteTopic", year = selectedYear });
The route in the global.asax is like this:
routes.MapRoute(
"Super-SuperRoute", // Route name
"Super.mvc/SuperRoute/{year}", // URL with parameters
new { controller = "Super", action = "SuperRoute", id = "RouteTopic" } // Parameter defaults
);
So why do I get the error: "No route in the route table matches the supplied values."? | 0 |
5,694 | 08/08/2008 05:08:45 | 493 | 08/06/2008 10:25:05 | 391 | 37 | The imported project "C:\Microsoft.CSharp.targets" was not found | I got this error today when trying to open a Visual Studio 2008 **project** in Visual Studio 2005:
The imported project "C:\Microsoft.CSharp.targets" was not found
So I thought I'd post it here in case anyone else is interested | c# | visual-studio | null | null | null | null | open | The imported project "C:\Microsoft.CSharp.targets" was not found
===
I got this error today when trying to open a Visual Studio 2008 **project** in Visual Studio 2005:
The imported project "C:\Microsoft.CSharp.targets" was not found
So I thought I'd post it here in case anyone else is interested | 0 |
5,704 | 08/08/2008 05:36:12 | 143 | 08/02/2008 12:45:43 | 191 | 5 | Is there a lightweight, preferable open source, formatable label control for dotnet? | I have been looking for a way to utilize a simple markup language, or just plain html, when displaying text in WinForm applications. I would like to avoid embedding a webbrowser control since in most of the case I just want to highlight a single word or two in a sentence.
I have looked at using a RTFControl but I believe it's a bit heavy and I don't think the "language" used to do the formatting is easy.
Is there a simple control that allows me to display strings like:
This is a **sample string** *with* different formating.
I would be really neat if it was also possible to specify a font and/or size for the text. | .net | null | null | null | null | null | open | Is there a lightweight, preferable open source, formatable label control for dotnet?
===
I have been looking for a way to utilize a simple markup language, or just plain html, when displaying text in WinForm applications. I would like to avoid embedding a webbrowser control since in most of the case I just want to highlight a single word or two in a sentence.
I have looked at using a RTFControl but I believe it's a bit heavy and I don't think the "language" used to do the formatting is easy.
Is there a simple control that allows me to display strings like:
This is a **sample string** *with* different formating.
I would be really neat if it was also possible to specify a font and/or size for the text. | 0 |
5,706 | 08/08/2008 05:40:49 | 364 | 08/05/2008 05:33:41 | 98 | 8 | When do Request.Params and Request.Form differ? | I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Form. | asp.net | mvc | c# | null | null | null | open | When do Request.Params and Request.Form differ?
===
I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Form. | 0 |
5,724 | 08/08/2008 06:15:11 | 108,465 | 08/08/2008 06:06:33 | 1 | 2 | Better windows command line shells | Is there a better windows command line shell other than cmd which has better copy paste between Windows' windows and console windows? | windows | command.com | shells | null | null | null | open | Better windows command line shells
===
Is there a better windows command line shell other than cmd which has better copy paste between Windows' windows and console windows? | 0 |
5,727 | 08/08/2008 06:17:51 | 568 | 08/06/2008 19:50:58 | 21 | 5 | Understanding Pointers | Why are pointers such a leading factor of confusion for many new, and even old, college level students in the C/C++ language? Are there any tools or thought processes that helped you understand how pointers work at the variable, function, and beyond level?
What are some good practice things that can be done to bring somebody to the level of, "Ah-hah, I got it," without getting them bogged down in the overall concept? Basically, drill like scenarios. | c++ | c | null | null | null | null | open | Understanding Pointers
===
Why are pointers such a leading factor of confusion for many new, and even old, college level students in the C/C++ language? Are there any tools or thought processes that helped you understand how pointers work at the variable, function, and beyond level?
What are some good practice things that can be done to bring somebody to the level of, "Ah-hah, I got it," without getting them bogged down in the overall concept? Basically, drill like scenarios. | 0 |
5,741 | 08/08/2008 06:37:32 | 711 | 08/08/2008 06:34:28 | 1 | 0 | Firebug won't display console feeds for some of my sites | Using Firebug v1.20b7 with Firefox v3.0.1 I use firebug a lot for web devlopment.
I have very often the problem that Firebug won't show its web console for seeing the POSTs and GETs. I can view all the other tabs, including the NET tab that gives me a lot of the same information that the CONSOLE tab does.
Curious if anyone else has had this problem, and maybe a solution, or maybe this is a bug of Firebug.
Thanks | web | development | firefox | firebug | null | null | open | Firebug won't display console feeds for some of my sites
===
Using Firebug v1.20b7 with Firefox v3.0.1 I use firebug a lot for web devlopment.
I have very often the problem that Firebug won't show its web console for seeing the POSTs and GETs. I can view all the other tabs, including the NET tab that gives me a lot of the same information that the CONSOLE tab does.
Curious if anyone else has had this problem, and maybe a solution, or maybe this is a bug of Firebug.
Thanks | 0 |
5,743 | 08/08/2008 06:40:46 | 327 | 08/04/2008 17:08:49 | 68 | 6 | What is a good plotting library for .Net? | I'm writing some data acquisition software and need a gui plotting library that is fast enough to do realtime updated graphs. I've been using Nplot which is pretty good for a free library, but I'm wondering if there are any better libraries (preferably free or cheap). | .net | windows | graphing | null | null | null | open | What is a good plotting library for .Net?
===
I'm writing some data acquisition software and need a gui plotting library that is fast enough to do realtime updated graphs. I've been using Nplot which is pretty good for a free library, but I'm wondering if there are any better libraries (preferably free or cheap). | 0 |
5,759 | 08/08/2008 07:11:40 | 713 | 08/08/2008 06:44:13 | 1 | 2 | 'Break' equivalent keyword for VB | Just moved over to the 'vb team' here at work.
Quick easy one for my 1st question.
What is the 'Break' equivalent keyword for VB ie to exit a loop early but not the method.
Cheers. | vb.net | vb6 | loop | null | null | null | open | 'Break' equivalent keyword for VB
===
Just moved over to the 'vb team' here at work.
Quick easy one for my 1st question.
What is the 'Break' equivalent keyword for VB ie to exit a loop early but not the method.
Cheers. | 0 |
5,787 | 08/08/2008 09:28:41 | 383 | 08/05/2008 10:46:37 | 1,030 | 133 | C# Tab Escape Character | A simple question. I'm just in the process of parsing some text and can't remember what the escape character is for a tab in C#? | c# | null | null | null | null | null | open | C# Tab Escape Character
===
A simple question. I'm just in the process of parsing some text and can't remember what the escape character is for a tab in C#? | 0 |
5,791 | 08/08/2008 09:45:29 | 133 | 08/02/2008 09:06:05 | 61 | 3 | VB.NET - IsNothing versus Is Nothing | Does anyone here use VB.NET and have a strong preference for or against using 'IsNothing' as opposed to 'Is Nothing' (for example, 'If IsNothing(anObject)' or If anObject Is Nothing...')? If so, why? | vb.net | null | null | null | null | null | open | VB.NET - IsNothing versus Is Nothing
===
Does anyone here use VB.NET and have a strong preference for or against using 'IsNothing' as opposed to 'Is Nothing' (for example, 'If IsNothing(anObject)' or If anObject Is Nothing...')? If so, why? | 0 |
5,794 | 08/08/2008 09:58:11 | 1,384,652 | 08/01/2008 12:01:23 | 607 | 47 | Other browsers | I'm aware of IE, Safari, Firefox and Opera but are there any other browsers out there that are worth knowing about? I've had several friends that don't like IE but then some of the above don't work on their computer either and I felt it'd be nice to have a few more alternatives. | browser | safari | firefox | opera | null | null | open | Other browsers
===
I'm aware of IE, Safari, Firefox and Opera but are there any other browsers out there that are worth knowing about? I've had several friends that don't like IE but then some of the above don't work on their computer either and I felt it'd be nice to have a few more alternatives. | 0 |
5,795 | 08/08/2008 10:03:40 | 491 | 08/06/2008 10:06:45 | 21 | 3 | Recommended books for learning C#? | C# and .NET has become the official programming platform at my company for all new IT projects. I'm a bioinformatics scientist with 15 years of experience with C, C++, and Perl. And, fortunately, I'm not in IT, so I don't have to do my work using C#. But I anticipate having to work on a project with a C# programmer, so it's time for me to learn C#.
I'm old-fashioned, so I like to learn from books. In your experience, what books have you found useful for learning C#? | c# | books | null | null | null | 09/17/2011 22:45:51 | not constructive | Recommended books for learning C#?
===
C# and .NET has become the official programming platform at my company for all new IT projects. I'm a bioinformatics scientist with 15 years of experience with C, C++, and Perl. And, fortunately, I'm not in IT, so I don't have to do my work using C#. But I anticipate having to work on a project with a C# programmer, so it's time for me to learn C#.
I'm old-fashioned, so I like to learn from books. In your experience, what books have you found useful for learning C#? | 4 |
5,802 | 08/08/2008 10:41:00 | 191 | 08/03/2008 09:55:26 | 6 | 0 | Inheritance in database? | Is there any way to use inheritance in database (Specifically in SQL Server 2005)?
Suppose I have few field like **CreatedOn**, **CreatedBy** which I want to add on all of my entities. I looking for an alternative way instead of adding these fields to every table. | sql | database | inheritance | null | null | null | open | Inheritance in database?
===
Is there any way to use inheritance in database (Specifically in SQL Server 2005)?
Suppose I have few field like **CreatedOn**, **CreatedBy** which I want to add on all of my entities. I looking for an alternative way instead of adding these fields to every table. | 0 |
5,821 | 08/08/2008 11:56:36 | 383 | 08/05/2008 10:46:37 | 1,077 | 137 | SQL Server 2000/5 Escape an Underscore | How do I escape the underscore character?
I am writing something like the following where clause and want to be able to find actual entries with _d at the end.
Where Username Like '%_d' | sql | null | null | null | null | null | open | SQL Server 2000/5 Escape an Underscore
===
How do I escape the underscore character?
I am writing something like the following where clause and want to be able to find actual entries with _d at the end.
Where Username Like '%_d' | 0 |
5,831 | 08/08/2008 12:22:07 | 267 | 08/04/2008 10:11:06 | 888 | 57 | Binary patch-generation in C# | Does anyone have, or know of, a binary patch generation algorithm implementation in C#?
Basically, compare two files (designated *old* and *new*), and produce a patch file that can be used to upgrade the *old* file to have the same contents as the *new* file.
The implementation would have to be relatively fast, and work with huge files. It should exhibit O(n) or O(logn) runtimes.
My own algorithms tend to either be lousy (fast but produce huge patches) or slow (produce small patches but have O(n^2) runtime).
Any advice, or pointers for implementation would be nice.
Specifically, the implementation will be used to keep servers in sync for various large datafiles that we have one master server for. When the master server datafiles change, we need to update several off-site servers as well.
The most naive algorithm I have made, which only works for files that can be kept in memory, is as follows:
1. Grab the first four bytes from the *old* file, call this the *key*
2. Add those bytes to a dictionary, where *key -> position*, where *position* is the position where I grabbed those 4 bytes, 0 to begin with
3. Skip the first of these four bytes, grab another 4 (3 overlap, 1 one), and add to the dictionary the same way
4. Repeat steps 1-3 for all 4-byte blocks in the *old* file
5. From the start of the *new* file, grab 4 bytes, and attempt to look it up in the dictionary
6. If found, find the longest match if there are several, by comparing bytes from the two files
7. Encode a reference to that location in the *old* file, and skip the matched block in the *new* file
8. If not found, encode 1 byte from the *new* file, and skip it
9. Repeat steps 5-8 for the rest of the *new* file
This is somewhat like compression, without windowing, so it will use a lot of memory. It is, however, fairly fast, and produces quite small patches, as long as I try to make the codes output minimal.
A more memory-efficient algorithm uses windowing, but produces much bigger patch files.
There are more nuances to the above algorithm that I skipped in this post, but I can post more details if necessary. I do, however, feel that I need a different algorithm altogether, so improving on the above algorithm is probably not going to get me far enough. | c# | patchgeneration | file | null | null | null | open | Binary patch-generation in C#
===
Does anyone have, or know of, a binary patch generation algorithm implementation in C#?
Basically, compare two files (designated *old* and *new*), and produce a patch file that can be used to upgrade the *old* file to have the same contents as the *new* file.
The implementation would have to be relatively fast, and work with huge files. It should exhibit O(n) or O(logn) runtimes.
My own algorithms tend to either be lousy (fast but produce huge patches) or slow (produce small patches but have O(n^2) runtime).
Any advice, or pointers for implementation would be nice.
Specifically, the implementation will be used to keep servers in sync for various large datafiles that we have one master server for. When the master server datafiles change, we need to update several off-site servers as well.
The most naive algorithm I have made, which only works for files that can be kept in memory, is as follows:
1. Grab the first four bytes from the *old* file, call this the *key*
2. Add those bytes to a dictionary, where *key -> position*, where *position* is the position where I grabbed those 4 bytes, 0 to begin with
3. Skip the first of these four bytes, grab another 4 (3 overlap, 1 one), and add to the dictionary the same way
4. Repeat steps 1-3 for all 4-byte blocks in the *old* file
5. From the start of the *new* file, grab 4 bytes, and attempt to look it up in the dictionary
6. If found, find the longest match if there are several, by comparing bytes from the two files
7. Encode a reference to that location in the *old* file, and skip the matched block in the *new* file
8. If not found, encode 1 byte from the *new* file, and skip it
9. Repeat steps 5-8 for the rest of the *new* file
This is somewhat like compression, without windowing, so it will use a lot of memory. It is, however, fairly fast, and produces quite small patches, as long as I try to make the codes output minimal.
A more memory-efficient algorithm uses windowing, but produces much bigger patch files.
There are more nuances to the above algorithm that I skipped in this post, but I can post more details if necessary. I do, however, feel that I need a different algorithm altogether, so improving on the above algorithm is probably not going to get me far enough. | 0 |
5,833 | 08/08/2008 12:25:27 | 287 | 08/04/2008 12:43:38 | 58 | 6 | Looking for WYSIWYG HTML editor | Any suggestions for a relatively simple, free, WYSIWYG, HTML editor? I have a friend in need of a art portfolio website and I want to her feet wet without forcing her to learn raw HTML or an overly complex (and probably expensive) program.
Extra points if somehow this free editor is OSS | wysiwyg | html | editor | free | oss | null | open | Looking for WYSIWYG HTML editor
===
Any suggestions for a relatively simple, free, WYSIWYG, HTML editor? I have a friend in need of a art portfolio website and I want to her feet wet without forcing her to learn raw HTML or an overly complex (and probably expensive) program.
Extra points if somehow this free editor is OSS | 0 |
5,846 | 08/08/2008 12:34:20 | 1,384,652 | 08/01/2008 12:01:23 | 622 | 47 | Add 1 to a field (MySQL) | How do I turn the following 2 queries into 1 query
$sql = "SELECT level FROM skills WHERE id = $id LIMIT 1;";
$result = $db->sql_query($sql);
$level = (int) $db->sql_fetchfield('level');
$db->sql_freeresult($result);
++$level;
$sql = "UPDATE skills SET level = $level WHERE id = $id;";
$result = $db->sql_query($sql);
$db->sql_freeresult($result);
I'm using it in a phbBB mod but the gist is that I grab the level, add one to it then update, it seems that it'd be much easier and faster if I could do it as one query. | mysql | php | null | null | null | null | open | Add 1 to a field (MySQL)
===
How do I turn the following 2 queries into 1 query
$sql = "SELECT level FROM skills WHERE id = $id LIMIT 1;";
$result = $db->sql_query($sql);
$level = (int) $db->sql_fetchfield('level');
$db->sql_freeresult($result);
++$level;
$sql = "UPDATE skills SET level = $level WHERE id = $id;";
$result = $db->sql_query($sql);
$db->sql_freeresult($result);
I'm using it in a phbBB mod but the gist is that I grab the level, add one to it then update, it seems that it'd be much easier and faster if I could do it as one query. | 0 |
5,855 | 08/08/2008 12:40:02 | 728 | 08/08/2008 12:23:43 | 1 | 0 | Automate builds for Java RCP for deployment with JNLP | I've found many sources that talk about the automated Eclipse PDE process. I feel these sources don't do a good job explaining what's going on.
I can create the deployable package, in a semi-manual process via the Feature Export.
The automated process requires knowledge of how the org.eclipse.pde.build scripts work. I have gotten a build created, but not for JNLP.
Questions:
1. Has anyone ever deployed RCP through JNLP?
2. Were you able to automate the builds? | java | build-automation | rcp | jnlp | null | null | open | Automate builds for Java RCP for deployment with JNLP
===
I've found many sources that talk about the automated Eclipse PDE process. I feel these sources don't do a good job explaining what's going on.
I can create the deployable package, in a semi-manual process via the Feature Export.
The automated process requires knowledge of how the org.eclipse.pde.build scripts work. I have gotten a build created, but not for JNLP.
Questions:
1. Has anyone ever deployed RCP through JNLP?
2. Were you able to automate the builds? | 0 |
5,857 | 08/08/2008 12:40:48 | 730 | 08/08/2008 12:40:04 | 1 | 0 | mailto link for large bodies | I have a page upon which a user can choose up to many differ paragraphs. When the link is clicked (or button), an email will open up and put all those paragraphs into the body of the email, address it, and fill in the subject. However, the text can bee too long for a mailto link.
Any way around this?
Thanks | mailto | null | null | null | null | null | open | mailto link for large bodies
===
I have a page upon which a user can choose up to many differ paragraphs. When the link is clicked (or button), an email will open up and put all those paragraphs into the body of the email, address it, and fill in the subject. However, the text can bee too long for a mailto link.
Any way around this?
Thanks | 0 |
5,863 | 08/08/2008 12:48:25 | 377 | 08/05/2008 10:01:14 | 307 | 26 | C# WCF Service - Backward compatibility issue | I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications.
I've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the services using a basicHttpBinding endpoint (which I believe is required for the compatibility I need), the service refactors my method signatures. e.g.
>public bool MethodToReturnTrue(string seedValue);
appears to the client apps as
>public void MethodToReturnTrue(string seedValue, out bool result, out bool MethodToReturnTrueResultSpecified);
I've tried every configuration parameter I can think of in the app.config for my self-hosting console app, but I can't seem to make this function as expected. I suppose this might lead to the fact that my expectations are flawed, but I'd be surprised that a WCF service is incapable of handling a bool return type to a down-level client.
My current app.config looks like this.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="MyServiceTypeBehaviors" Name="MyCompany.Services.CentreService.CentreService">
<clear />
<endpoint address="http://localhost:8080/CSMEX" binding="basicHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<endpoint address="http://localhost:8080/CentreService" binding="basicHttpBinding" bindingName="Compatible" name="basicEndpoint" contract="MyCompany.Services.CentreService.ICentreService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors" >
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Can anyone advise, please? | c# | .net | webservices | wcf | compatibility | null | open | C# WCF Service - Backward compatibility issue
===
I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications.
I've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the services using a basicHttpBinding endpoint (which I believe is required for the compatibility I need), the service refactors my method signatures. e.g.
>public bool MethodToReturnTrue(string seedValue);
appears to the client apps as
>public void MethodToReturnTrue(string seedValue, out bool result, out bool MethodToReturnTrueResultSpecified);
I've tried every configuration parameter I can think of in the app.config for my self-hosting console app, but I can't seem to make this function as expected. I suppose this might lead to the fact that my expectations are flawed, but I'd be surprised that a WCF service is incapable of handling a bool return type to a down-level client.
My current app.config looks like this.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="MyServiceTypeBehaviors" Name="MyCompany.Services.CentreService.CentreService">
<clear />
<endpoint address="http://localhost:8080/CSMEX" binding="basicHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<endpoint address="http://localhost:8080/CentreService" binding="basicHttpBinding" bindingName="Compatible" name="basicEndpoint" contract="MyCompany.Services.CentreService.ICentreService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors" >
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Can anyone advise, please? | 0 |
5,864 | 08/08/2008 12:49:34 | 512 | 08/06/2008 13:26:59 | 1 | 2 | Geographically Distributed Development | My company is using me as a sort of guinea pig for having developers on both sides of the US. The main office is located in Denver, and I'm in Louisville, KY. I've been trying to come up with ideas to make the remote development experience line up better with the experience in the main office. It obviously will never line up perfectly, but I think we can still make it better.
For reference, we work primarily in Java with Eclipse being the preferred IDE.
So far I've come up with:
- Instant Messaging/Skype - Can act as both a basic in/out/busy system and a quick communication system.
- Development Portal - A simple web page with links to important documentation or references for packages we use in each project and any other useful information.
- Cruise Control - So we don't waste as much time pulling down and then worrying about broken builds.
- VNC - For the times I want to show someone code that has no business being checked into Git yet, or when I need to walk through a series of screens for critique/advice.
What other tools are available that we can use to help me feel less like I'm stranded on a desert island? | codereview | collaboration | remote | null | null | null | open | Geographically Distributed Development
===
My company is using me as a sort of guinea pig for having developers on both sides of the US. The main office is located in Denver, and I'm in Louisville, KY. I've been trying to come up with ideas to make the remote development experience line up better with the experience in the main office. It obviously will never line up perfectly, but I think we can still make it better.
For reference, we work primarily in Java with Eclipse being the preferred IDE.
So far I've come up with:
- Instant Messaging/Skype - Can act as both a basic in/out/busy system and a quick communication system.
- Development Portal - A simple web page with links to important documentation or references for packages we use in each project and any other useful information.
- Cruise Control - So we don't waste as much time pulling down and then worrying about broken builds.
- VNC - For the times I want to show someone code that has no business being checked into Git yet, or when I need to walk through a series of screens for critique/advice.
What other tools are available that we can use to help me feel less like I'm stranded on a desert island? | 0 |
5,872 | 08/08/2008 12:57:55 | 58 | 08/01/2008 13:56:33 | 1,536 | 67 | Making a production build of a PHP project with Subversion | If you are working in PHP (or I guess any programming language...) and using subversion as your source control, is there a way to take your project (for example):
> C:\Projects\test\\.svn
> C:\Projects\test\docs\
> C:\Projects\test\faq.php
> C:\Projects\test\guestbook.php
> C:\Projects\test\index.php
> C:\Projects\test\test.php
and build/copy/whatever it so it weeds out certain files and becomes:
> C:\Projects\test\faq.php
> C:\Projects\test\guestbook.php
> C:\Projects\test\index.php
automagically? I'm getting tired of making a branch, and then going through the branch and deleting all of the ".svn" folders, the docs directory, and my prototyping files. I know I could probably use a .bat file to only copy the specific files I want, but I was hoping there was some way with subversion to sort of pseudo ignore a file, to where it will still version it, but where you could make a snapshot of the project that ignores the files you told it to psuedo ignore.
I know I read online somewhere about some functionality that at least lets you copy without the .svn folders, but I can't find it now... | toroisesvn | svn | buildprocess | null | null | null | open | Making a production build of a PHP project with Subversion
===
If you are working in PHP (or I guess any programming language...) and using subversion as your source control, is there a way to take your project (for example):
> C:\Projects\test\\.svn
> C:\Projects\test\docs\
> C:\Projects\test\faq.php
> C:\Projects\test\guestbook.php
> C:\Projects\test\index.php
> C:\Projects\test\test.php
and build/copy/whatever it so it weeds out certain files and becomes:
> C:\Projects\test\faq.php
> C:\Projects\test\guestbook.php
> C:\Projects\test\index.php
automagically? I'm getting tired of making a branch, and then going through the branch and deleting all of the ".svn" folders, the docs directory, and my prototyping files. I know I could probably use a .bat file to only copy the specific files I want, but I was hoping there was some way with subversion to sort of pseudo ignore a file, to where it will still version it, but where you could make a snapshot of the project that ignores the files you told it to psuedo ignore.
I know I read online somewhere about some functionality that at least lets you copy without the .svn folders, but I can't find it now... | 0 |
5,874 | 08/08/2008 13:00:37 | 556 | 08/06/2008 16:48:23 | 196 | 9 | Drag and drop ftp file upload web widgets | It seems like drag and drop upload widgets disappeared from the face of Web 2.0. The last one of these I remember using was an activex widget, and inability of using it in anything other than IE doomed it. Have you used or seen one of these recently? | ftp | upload | null | null | null | null | open | Drag and drop ftp file upload web widgets
===
It seems like drag and drop upload widgets disappeared from the face of Web 2.0. The last one of these I remember using was an activex widget, and inability of using it in anything other than IE doomed it. Have you used or seen one of these recently? | 0 |
5,876 | 08/08/2008 13:01:48 | 726 | 08/08/2008 12:04:53 | 1 | 0 | How do I prevent dnsmasq from appending my domain name to invalid domain requests? | I use [dnsmasq][1] to resolve DNS queries on my home network. Unfortunately, if a domain name is not known, it will append my own domain name to the request which means that I always end up viewing my own site in a browser.
For example, if I enter http://dlksfhoiahdsfiuhsdf.com in a browser, I end up viewing my own site with that URL. If I try something like:
host dlksfhoiahdsfiuhsdf.com
Instead of the expected:
Host dlksfhoiahdsfiuhsdf.com not found: 3(NXDOMAIN)
I get this:
dlksfhoiahdsfiuhsdf.com.mydomainname.com has address W.X.Y.Z.
Clearly, dnsmasq is appending my domain name to impossible name requests in an effort to resolve them, but I'd rather see the not found error instead.
I've tried playing with the _expand-hosts_ and _domain_ configuration settings, but to no avail. Is there anything else I can try?
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html | dns | dnsmasq | null | null | null | null | open | How do I prevent dnsmasq from appending my domain name to invalid domain requests?
===
I use [dnsmasq][1] to resolve DNS queries on my home network. Unfortunately, if a domain name is not known, it will append my own domain name to the request which means that I always end up viewing my own site in a browser.
For example, if I enter http://dlksfhoiahdsfiuhsdf.com in a browser, I end up viewing my own site with that URL. If I try something like:
host dlksfhoiahdsfiuhsdf.com
Instead of the expected:
Host dlksfhoiahdsfiuhsdf.com not found: 3(NXDOMAIN)
I get this:
dlksfhoiahdsfiuhsdf.com.mydomainname.com has address W.X.Y.Z.
Clearly, dnsmasq is appending my domain name to impossible name requests in an effort to resolve them, but I'd rather see the not found error instead.
I've tried playing with the _expand-hosts_ and _domain_ configuration settings, but to no avail. Is there anything else I can try?
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html | 0 |
5,880 | 08/08/2008 13:04:02 | 721 | 08/08/2008 11:28:03 | 11 | 3 | Is there any negative reasons to use an N-Tier solution? | I'm pretty new to my company (2 weeks) and we're starting a new platform for our system using .NET 3.5 Team Foundation from DotNetNuke. Our "architect" is suggesting we use one class project. Of course, I chime back with a "3-tier" architecture (Business, Data, Web class projects).
Is there any disadvantages to using this architecture? Pro's would be separation of code from data, keeping class objects away from your code, etc. | .net | n-tier | architecture | null | null | null | open | Is there any negative reasons to use an N-Tier solution?
===
I'm pretty new to my company (2 weeks) and we're starting a new platform for our system using .NET 3.5 Team Foundation from DotNetNuke. Our "architect" is suggesting we use one class project. Of course, I chime back with a "3-tier" architecture (Business, Data, Web class projects).
Is there any disadvantages to using this architecture? Pro's would be separation of code from data, keeping class objects away from your code, etc. | 0 |
5,892 | 08/08/2008 13:13:08 | 342 | 08/04/2008 19:59:52 | 195 | 31 | Link issues (VC6) | This is making me feel like a real noob. I've opened an old workspace that is a libray and its test harness. It used to work fine and older versions of the code don't work either with the same errors. I've tried recreating the project and that causes the same errors too. Nothing seems out of order in project settings and the code generated works in the main app.
I've stripped out most of the files and got it down to the bare minimum to generate the error. Unfortunately I can't post the project as this is used in production code.
The LNK2001 linker error I get usually means I've left off a library or forgot to implement a virtual function. However this is part of the standard template library - and is a header at that.
The code that is listed as having the problem in IOCompletionPort.obj doesn't actually use std::string directly, but does call a class that does: Comms::Exception accepts a std::string and the value of GetLastError or WSAGetLastError.
The function mentioned in the error (GetMessage) is implemented, but is a virtual function so other classes can override it if need be. However it appears that the compiler has made it as an Ansi version, but I can't find any options in the settings that would control that. I suspect that might be the problem but since there's very little in the way of options for the library I have no way of knowing for sure. However both projects to specify _MBCS in the compiler options.
<pre>--------------------Configuration: TestComms - Win32 Debug--------------------
Linking...
Comms.lib(IOCompletionPort.obj) : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Comms::Exception::GetMessageA(void)const " (?GetMessageA@
Exception@Comms@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
Debug/TestComms.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
TestComms.exe - 2 error(s), 0 warning(s)</pre>
Any suggestions? I've lost most of the morning to this and don't want to lose most of the afternoon too.
Thanks, G. | vc6 | c++ | linker | null | null | null | open | Link issues (VC6)
===
This is making me feel like a real noob. I've opened an old workspace that is a libray and its test harness. It used to work fine and older versions of the code don't work either with the same errors. I've tried recreating the project and that causes the same errors too. Nothing seems out of order in project settings and the code generated works in the main app.
I've stripped out most of the files and got it down to the bare minimum to generate the error. Unfortunately I can't post the project as this is used in production code.
The LNK2001 linker error I get usually means I've left off a library or forgot to implement a virtual function. However this is part of the standard template library - and is a header at that.
The code that is listed as having the problem in IOCompletionPort.obj doesn't actually use std::string directly, but does call a class that does: Comms::Exception accepts a std::string and the value of GetLastError or WSAGetLastError.
The function mentioned in the error (GetMessage) is implemented, but is a virtual function so other classes can override it if need be. However it appears that the compiler has made it as an Ansi version, but I can't find any options in the settings that would control that. I suspect that might be the problem but since there's very little in the way of options for the library I have no way of knowing for sure. However both projects to specify _MBCS in the compiler options.
<pre>--------------------Configuration: TestComms - Win32 Debug--------------------
Linking...
Comms.lib(IOCompletionPort.obj) : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Comms::Exception::GetMessageA(void)const " (?GetMessageA@
Exception@Comms@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
Debug/TestComms.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
TestComms.exe - 2 error(s), 0 warning(s)</pre>
Any suggestions? I've lost most of the morning to this and don't want to lose most of the afternoon too.
Thanks, G. | 0 |
5,894 | 08/08/2008 13:15:34 | 733 | 08/08/2008 12:53:16 | 1 | 2 | Genealogy Tree Control | I've been tasked (by my wife) with creating a program to allow her to track the family trees on both sides of our family.
Does anyone know of a cost effective (free) control to represent this type of information.
What I'm looking for is a modified org-chart type chart/tree. The modification is that any node should have 2 parent nodes (E.G. a child should have a Mother/Father).
The solution I've came up with so far is to have 2 trees, an ancestor tree and a descendants tree, with the individual being inspected as the root node for each tree. It works, but is sort of clunky.
I'm working primarily in c# WinForms, so .Net type controls or source code is preferrable.
Thanks. | c# | control | tree | null | null | null | open | Genealogy Tree Control
===
I've been tasked (by my wife) with creating a program to allow her to track the family trees on both sides of our family.
Does anyone know of a cost effective (free) control to represent this type of information.
What I'm looking for is a modified org-chart type chart/tree. The modification is that any node should have 2 parent nodes (E.G. a child should have a Mother/Father).
The solution I've came up with so far is to have 2 trees, an ancestor tree and a descendants tree, with the individual being inspected as the root node for each tree. It works, but is sort of clunky.
I'm working primarily in c# WinForms, so .Net type controls or source code is preferrable.
Thanks. | 0 |
5,908 | 08/08/2008 13:34:38 | 71 | 08/01/2008 15:05:56 | 374 | 42 | User access log to SQL Server | Greetings all,
I need to get a log of user access to our SQL Server so I can track average and peak concurrency usage. Is there a hidden table or something I'm missing that has this information for me? To my knowledge the application I'm looking at does not track this at the application level.
I'm currently working on SQL Server 2000, but will moving to 2005 shortly, so solutions for both are greatly appreciated. | sql-server | logging | statistics | null | null | null | open | User access log to SQL Server
===
Greetings all,
I need to get a log of user access to our SQL Server so I can track average and peak concurrency usage. Is there a hidden table or something I'm missing that has this information for me? To my knowledge the application I'm looking at does not track this at the application level.
I'm currently working on SQL Server 2000, but will moving to 2005 shortly, so solutions for both are greatly appreciated. | 0 |
5,909 | 08/08/2008 13:35:19 | 394 | 08/05/2008 12:36:16 | 61 | 9 | Get size of a file before downloading in Python | I'm downloading an entire directory from a web server. It works OK, but I can't figure how to get the file size before download to compare if it was updated on the server or not. Can this be done as if I was downloading the file from a FTP server?
import urllib
import re
url = "http://www.someurl.com"
# Download the page locally
f = urllib.urlopen(url)
html = f.read()
f.close()
f = open ("temp.htm", "w")
f.write (html)
f.close()
# List only the .TXT / .ZIP files
fnames = re.findall('^.*<a href="(\w+(?:\.txt|.zip)?)".*$', html, re.MULTILINE)
for fname in fnames:
print fname, "..."
f = urllib.urlopen(url + "/" + fname)
#### Here I want to check the filesize to download or not ####
file = f.read()
f.close()
f = open (fname, "w")
f.write (file)
f.close() | python | null | null | null | null | null | open | Get size of a file before downloading in Python
===
I'm downloading an entire directory from a web server. It works OK, but I can't figure how to get the file size before download to compare if it was updated on the server or not. Can this be done as if I was downloading the file from a FTP server?
import urllib
import re
url = "http://www.someurl.com"
# Download the page locally
f = urllib.urlopen(url)
html = f.read()
f.close()
f = open ("temp.htm", "w")
f.write (html)
f.close()
# List only the .TXT / .ZIP files
fnames = re.findall('^.*<a href="(\w+(?:\.txt|.zip)?)".*$', html, re.MULTILINE)
for fname in fnames:
print fname, "..."
f = urllib.urlopen(url + "/" + fname)
#### Here I want to check the filesize to download or not ####
file = f.read()
f.close()
f = open (fname, "w")
f.write (file)
f.close() | 0 |
5,913 | 08/08/2008 13:36:16 | 1,384,652 | 08/01/2008 12:01:23 | 634 | 49 | Getting the text from a drop-down box | This gets the value of whatever is selected in my dropdown menu.
document.getElementById('newSkill').value
I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at [W3Schools][1] but that didn't have the answer, does anybody here know?
For those not sure, here's the HTML for a drop down box.
<select name="newSkill" id="newSkill">
<option value="1">A skill</option>
<option value="2">Another skill</option>
<option value="3">Yet another skill</option>
</select>
Thanks
[1]: http://w3schools.com/ | javascript | js | null | null | null | null | open | Getting the text from a drop-down box
===
This gets the value of whatever is selected in my dropdown menu.
document.getElementById('newSkill').value
I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at [W3Schools][1] but that didn't have the answer, does anybody here know?
For those not sure, here's the HTML for a drop down box.
<select name="newSkill" id="newSkill">
<option value="1">A skill</option>
<option value="2">Another skill</option>
<option value="3">Yet another skill</option>
</select>
Thanks
[1]: http://w3schools.com/ | 0 |
5,916 | 08/08/2008 13:38:30 | 396 | 08/05/2008 12:46:44 | 95 | 8 | How do you feeling about code folding? | For those of you in the Visual Studio environment, how do feel about wrapping any of your code in #regions? (or if any other IDE has something similar...) | codefolding | folding | visual-studio | visual | studio | null | open | How do you feeling about code folding?
===
For those of you in the Visual Studio environment, how do feel about wrapping any of your code in #regions? (or if any other IDE has something similar...) | 0 |
5,918 | 08/08/2008 13:39:03 | 482 | 08/06/2008 08:54:09 | 11 | 7 | API Yahoo India Maps | Yahoo has separate map for India ( which has more details than the regular maps.yahoo.com) at http://in.maps.yahoo.com/ . But when I use the API it goes to default map. How do I get API access to YMaps India? | api | map | yahoo | null | null | null | open | API Yahoo India Maps
===
Yahoo has separate map for India ( which has more details than the regular maps.yahoo.com) at http://in.maps.yahoo.com/ . But when I use the API it goes to default map. How do I get API access to YMaps India? | 0 |
5,948 | 08/08/2008 13:55:04 | 383 | 08/05/2008 10:46:37 | 1,130 | 143 | Always Commit the same file with SVN | In my web application I have a file which hold the current revision number via $Rev$. This work fine except, if I don't make any changes to that file, it doesn't get committed.
Is there anyway I can force a single file to always get committed to the SVN server? | svn | null | null | null | null | null | open | Always Commit the same file with SVN
===
In my web application I have a file which hold the current revision number via $Rev$. This work fine except, if I don't make any changes to that file, it doesn't get committed.
Is there anyway I can force a single file to always get committed to the SVN server? | 0 |
5,966 | 08/08/2008 14:05:45 | 745 | 08/08/2008 13:47:26 | 11 | 1 | Best way to abstract season/show/episode data | Basically, I've written an API to www.thetvdb.com in Python. The current code can be found [here](http://github.com/dbr/tvdb_api/tree/master/tvdb_api.py).
It grabs data from the API as requested, and has to store the data somehow, and make it available by doing:
print tvdbinstance[1][23]['episodename'] # get the name of episode 23 of season 1
What is the "best" way to abstract this data in the Tvdb() class?
I originally used a extended Dict() that automatically created sub-dicts (so you could do `x[1][2][3][4] = "something"` without having to do `if x[1].has_key(2): x[1][2] = []` and so on)
This worked okay, but there was no easy way of checking if x[3][24] was supposed to exist or not (so I couldn't raise the season_not_found exception)
Currently it's using four classes. ShowContainer, Show, Season and Episode. Each one is a very basic dict, which I can easily add extra functionality in (the search() function on Show() for example). Each has a `__setitem__`, `__getitem_` and `has_key`
This works mostly fine, I can check in Shows if it has that season in it's self.data dict, if not, raise season_not_found. Check in Season() if it has that episode and so on.
The problem now is it's presenting itself as a dict, but doesn't have all the functionality, and because I'm overriding the __getitem__ and __setitem__ functions, it's easy to accidently recursively call __getitem__ (so I'm not sure if extending the Dict class will cause problems)
The other slight problem is adding data into the dict is a lot more work than the old Ddict method (which was `self.data[seas_no][ep_no]['attribute'] = 'something'`). See _setItem and _setData. It's not too bad, since it's currently only a read-only API interface (so the users of the API should only ever retrieve data, not add more), but it's hardly.. elegant..
I think the series-of-classes system is probably the best way, but does anyone have a better idea for storing the data? And would extending the ShowContainer/etc classes with Dict cause problems? | python | datastructure | null | null | null | null | open | Best way to abstract season/show/episode data
===
Basically, I've written an API to www.thetvdb.com in Python. The current code can be found [here](http://github.com/dbr/tvdb_api/tree/master/tvdb_api.py).
It grabs data from the API as requested, and has to store the data somehow, and make it available by doing:
print tvdbinstance[1][23]['episodename'] # get the name of episode 23 of season 1
What is the "best" way to abstract this data in the Tvdb() class?
I originally used a extended Dict() that automatically created sub-dicts (so you could do `x[1][2][3][4] = "something"` without having to do `if x[1].has_key(2): x[1][2] = []` and so on)
This worked okay, but there was no easy way of checking if x[3][24] was supposed to exist or not (so I couldn't raise the season_not_found exception)
Currently it's using four classes. ShowContainer, Show, Season and Episode. Each one is a very basic dict, which I can easily add extra functionality in (the search() function on Show() for example). Each has a `__setitem__`, `__getitem_` and `has_key`
This works mostly fine, I can check in Shows if it has that season in it's self.data dict, if not, raise season_not_found. Check in Season() if it has that episode and so on.
The problem now is it's presenting itself as a dict, but doesn't have all the functionality, and because I'm overriding the __getitem__ and __setitem__ functions, it's easy to accidently recursively call __getitem__ (so I'm not sure if extending the Dict class will cause problems)
The other slight problem is adding data into the dict is a lot more work than the old Ddict method (which was `self.data[seas_no][ep_no]['attribute'] = 'something'`). See _setItem and _setData. It's not too bad, since it's currently only a read-only API interface (so the users of the API should only ever retrieve data, not add more), but it's hardly.. elegant..
I think the series-of-classes system is probably the best way, but does anyone have a better idea for storing the data? And would extending the ShowContainer/etc classes with Dict cause problems? | 0 |
5,982 | 08/08/2008 14:18:09 | 22 | 08/01/2008 12:11:11 | 140 | 13 | AS3 - How to fix "multiple describeType entries for 'selectedItem' on type 'mx.controls::ComboBox'" | Does anyone know why when using BindingUtils on the selectedItem property of a ComboBox you get the following warning? Any ideas how to resolve the issue?
The binding still works properly, but it would be nice to get rid of the warning.
warning: multiple describeType entries for 'selectedItem' on type 'mx.controls::ComboBox':
<accessor name="selectedItem" access="readwrite" type="Object" declaredBy="mx.controls::ComboBase">
<metadata name="Bindable">
<arg key="" value="valueCommit"/>
</metadata>
...
Thanks,
Matt | flex | actionscript-3 | air | null | null | null | open | AS3 - How to fix "multiple describeType entries for 'selectedItem' on type 'mx.controls::ComboBox'"
===
Does anyone know why when using BindingUtils on the selectedItem property of a ComboBox you get the following warning? Any ideas how to resolve the issue?
The binding still works properly, but it would be nice to get rid of the warning.
warning: multiple describeType entries for 'selectedItem' on type 'mx.controls::ComboBox':
<accessor name="selectedItem" access="readwrite" type="Object" declaredBy="mx.controls::ComboBase">
<metadata name="Bindable">
<arg key="" value="valueCommit"/>
</metadata>
...
Thanks,
Matt | 0 |
5,989 | 08/08/2008 14:24:17 | 750 | 08/08/2008 14:24:17 | 1 | 0 | What's the best way to kick ass in programming? | I've been programming since college, was a hobbyist programmer as a kid, but never got serious until I was a freshman. That was almost a decade and a half ago. One thing I've noticed is that when people reach a certain point in their skills they never really move beyond that. That is if they suck as a developer when you hire them, they will always suck. 10 years of C# experience doesn't necessarily make you a better developer than someone with 6 months of experience. (yeah, yeah, some people will get angry at reading this, but it's true, live with it).
So my question is, just how the hell do you get to be one of those super programming freaks that everyone worships? I've been doing coding puzzles as often as I can -- example: reverse a string in place using no swap buffers. (that is a fun one) and I've noticed myself get a little sharper. I'm not improving as fast as I wish I could so I would love to hear some tips from people here. | improvement | null | null | null | null | 12/20/2011 17:50:33 | not constructive | What's the best way to kick ass in programming?
===
I've been programming since college, was a hobbyist programmer as a kid, but never got serious until I was a freshman. That was almost a decade and a half ago. One thing I've noticed is that when people reach a certain point in their skills they never really move beyond that. That is if they suck as a developer when you hire them, they will always suck. 10 years of C# experience doesn't necessarily make you a better developer than someone with 6 months of experience. (yeah, yeah, some people will get angry at reading this, but it's true, live with it).
So my question is, just how the hell do you get to be one of those super programming freaks that everyone worships? I've been doing coding puzzles as often as I can -- example: reverse a string in place using no swap buffers. (that is a fun one) and I've noticed myself get a little sharper. I'm not improving as fast as I wish I could so I would love to hear some tips from people here. | 4 |
5,997 | 08/08/2008 14:35:25 | 445 | 08/05/2008 19:37:25 | 71 | 4 | Should I provide accessor methods / Getter Setters for public/protected components on a form? | If I have .Net Form with a component/object such as a textbox that I need to access from a parent or other form I obviously need to "upgrade" the modifier to this component to an Internal or Public level variable.
Now, if I were providing a public variable of an int or string type etc. in my form class I wouldn't think twice about using Getters and (maybe) Setters around this, even if they didn't do anything other than provide direct access to the variable.
However, the VS designer doesn't seem to implement such Getters/Setters for those public objects that are components on a form (and therefore does not comply with good programming practice).
So, the question is; In order to do the "right thing" should I wrap such VS designer components or objects in a Getter and/or Setter?? | .net | windowsforms | null | null | null | null | open | Should I provide accessor methods / Getter Setters for public/protected components on a form?
===
If I have .Net Form with a component/object such as a textbox that I need to access from a parent or other form I obviously need to "upgrade" the modifier to this component to an Internal or Public level variable.
Now, if I were providing a public variable of an int or string type etc. in my form class I wouldn't think twice about using Getters and (maybe) Setters around this, even if they didn't do anything other than provide direct access to the variable.
However, the VS designer doesn't seem to implement such Getters/Setters for those public objects that are components on a form (and therefore does not comply with good programming practice).
So, the question is; In order to do the "right thing" should I wrap such VS designer components or objects in a Getter and/or Setter?? | 0 |
6,007 | 08/08/2008 14:43:11 | 230 | 08/03/2008 19:32:46 | 295 | 17 | Log4Net configuring log level | How do I make Log4net only log Info level logs? Is that even possible? Can you only set a threshold?
This is what i have, and it logs Info and above as i would expect. Is there anything i can do to make it only log info.
<logger name="BrokerCollection.Model.XmlDocumentCreationTask">
<appender-ref ref="SubmissionAppender"/>
<level value="Info" />
</logger> | log4net | null | null | null | null | null | open | Log4Net configuring log level
===
How do I make Log4net only log Info level logs? Is that even possible? Can you only set a threshold?
This is what i have, and it logs Info and above as i would expect. Is there anything i can do to make it only log info.
<logger name="BrokerCollection.Model.XmlDocumentCreationTask">
<appender-ref ref="SubmissionAppender"/>
<level value="Info" />
</logger> | 0 |
6,009 | 08/08/2008 14:44:25 | 556 | 08/06/2008 16:48:23 | 201 | 10 | How do you deal with configuration files in source control? | Let's say you have a typical web app and with a file configuration.whatever. Every developer working on the project will have one version for their dev boxes, there will be a dev, prod and stage versions. How do you deal with this in source control? Not check in this file at all, check it with different names or do something fancy altogether? | svn | configuration | git | cvs | sourcecontrol | null | open | How do you deal with configuration files in source control?
===
Let's say you have a typical web app and with a file configuration.whatever. Every developer working on the project will have one version for their dev boxes, there will be a dev, prod and stage versions. How do you deal with this in source control? Not check in this file at all, check it with different names or do something fancy altogether? | 0 |
6,023 | 08/08/2008 14:53:36 | 305 | 08/04/2008 14:04:19 | 41 | 9 | What are good tools for creating compiled HTML help files (.chm)? | I've seen a number of places recently that offer online HTML API documentation and also offer downloadable (usually .chm) help files.
I really love using .chm help files, mainly because of the index tree on the left.
What are the best tools for creating those types of files? Is there something that would allow me to have a bunch of HTML files that can be put online and also compiled into a .chm? | html | helpfile | chm | null | null | null | open | What are good tools for creating compiled HTML help files (.chm)?
===
I've seen a number of places recently that offer online HTML API documentation and also offer downloadable (usually .chm) help files.
I really love using .chm help files, mainly because of the index tree on the left.
What are the best tools for creating those types of files? Is there something that would allow me to have a bunch of HTML files that can be put online and also compiled into a .chm? | 0 |
6,068 | 08/08/2008 15:27:46 | 703 | 08/08/2008 04:25:11 | 28 | 2 | Source control for web projects. | I'm looking for good suggestions on how to implement version and source control for web projects.
I've looked into subversion, but it seems to only take care of code. I'm really looking for something that can do good version-ing, branching, archival, etc. with not only source code, but other web assets like art files, movie clips, and even database backups.
We work in a mixed mac/pc environment, so Visual Source Safe or anything purely PC based would be a no go. Any help? | subversion | osx | version-control | pc | internet | null | open | Source control for web projects.
===
I'm looking for good suggestions on how to implement version and source control for web projects.
I've looked into subversion, but it seems to only take care of code. I'm really looking for something that can do good version-ing, branching, archival, etc. with not only source code, but other web assets like art files, movie clips, and even database backups.
We work in a mixed mac/pc environment, so Visual Source Safe or anything purely PC based would be a no go. Any help? | 0 |
6,076 | 08/08/2008 15:32:15 | 225 | 08/03/2008 17:19:42 | 242 | 13 | Default Form Button in FireFox | I am building a server control that will search our db and return results. The server control is contains an ASP:Panel. I have set the default button on the panel equal to my button id and have set the form default button equal to my button id.
On the Panel:
<pre><code> MyPanel.DefaultButton = SearchButton.ID</code></pre>
On the Control:
<pre><code>Me.Page.Form.DefaultButton = SearchButton.UniqueID </code></pre>
Works fine in IE & Safari I can type a search term and hit the enter key and it searches fine. If I do it in FireFox I get an alert box saying "Object reference not set to an instance of an a object.
Anyone run across this before? | asp.net | vb.net | null | null | null | null | open | Default Form Button in FireFox
===
I am building a server control that will search our db and return results. The server control is contains an ASP:Panel. I have set the default button on the panel equal to my button id and have set the form default button equal to my button id.
On the Panel:
<pre><code> MyPanel.DefaultButton = SearchButton.ID</code></pre>
On the Control:
<pre><code>Me.Page.Form.DefaultButton = SearchButton.UniqueID </code></pre>
Works fine in IE & Safari I can type a search term and hit the enter key and it searches fine. If I do it in FireFox I get an alert box saying "Object reference not set to an instance of an a object.
Anyone run across this before? | 0 |
6,080 | 08/08/2008 15:40:58 | 758 | 08/08/2008 15:40:58 | 1 | 0 | What to use for login ID? | We are in the early design stages of a major rewrite of our product. Right now our customers are mostly businesses. We manage accounts. User names for an account are each on their own namespace but it means that we can't move assets between servers.
We want to move to a single namespace. But that brings the problem of unique user names.
So what's the best idea?
* Email address (w/verification) ?
* Unique alpha-numeric string ("johnsmith9234")?
* Should we look at OpenID? | authentication | webapplications | account | null | null | null | open | What to use for login ID?
===
We are in the early design stages of a major rewrite of our product. Right now our customers are mostly businesses. We manage accounts. User names for an account are each on their own namespace but it means that we can't move assets between servers.
We want to move to a single namespace. But that brings the problem of unique user names.
So what's the best idea?
* Email address (w/verification) ?
* Unique alpha-numeric string ("johnsmith9234")?
* Should we look at OpenID? | 0 |
6,085 | 08/08/2008 15:44:25 | 755 | 08/08/2008 15:28:16 | 1 | 0 | Gathering OS and tool version numbers for build archive purposes | Our automated build machine needs to archive the version numbers of the OS plus various tools used during each build. (In case we ever need to replicate exactly the same build later on, perhaps when the machine is long dead.)
I see the command "msinfo32.exe" can be used to dump a whole load of system version information, which we might as well archive.
Does anyone know of a way to easily archive the version numbers of the Visual Studio tools?
What mechanisms do other developers use to gather this kind of information for archive purposes? | version | archive | build-automation | null | null | null | open | Gathering OS and tool version numbers for build archive purposes
===
Our automated build machine needs to archive the version numbers of the OS plus various tools used during each build. (In case we ever need to replicate exactly the same build later on, perhaps when the machine is long dead.)
I see the command "msinfo32.exe" can be used to dump a whole load of system version information, which we might as well archive.
Does anyone know of a way to easily archive the version numbers of the Visual Studio tools?
What mechanisms do other developers use to gather this kind of information for archive purposes? | 0 |
6,110 | 08/08/2008 16:19:20 | 754 | 08/08/2008 15:16:29 | 1 | 0 | Normalizing a Table with Low Integrity | I've been handed a table with about 18000 rows. Each record describes one customer location. The issue is, that when the person created the table, they did not add a field for "Company Name", only "Location Name," and one company can have many locations.
For example, here are some records that describe the same customer:
+----+-------------------+
| ID | Location Name |
+----+-------------------+
| 1 | TownShop#1 |
| 2 | Town Shop - Loc 2 |
| 3 | The Town Shop |
| 4 | TTS - Someplace |
| 5 | Town Shop,the 3 |
| 6 | Toen Shop4 |
+----+-------------------+
My goal is to make it look like:
+----+---------------+-------------------+
| ID | Company Name | Location Name |
+----+---------------+-------------------+
| 1 | The Town Shop | Town Shop#1 |
| 2 | The Town Shop | Town Shop - Loc 2 |
| 3 | The Town Shop | The Town Shop |
| 4 | The Town Shop | TTS - Someplace |
| 5 | The Town Shop | Town Shop,the 3 |
| 6 | The Town Shop | Toen Shop4 |
+----+---------------+-------------------+
Any suggestions on how I can approach this is appreciated. | database | null | null | null | null | null | open | Normalizing a Table with Low Integrity
===
I've been handed a table with about 18000 rows. Each record describes one customer location. The issue is, that when the person created the table, they did not add a field for "Company Name", only "Location Name," and one company can have many locations.
For example, here are some records that describe the same customer:
+----+-------------------+
| ID | Location Name |
+----+-------------------+
| 1 | TownShop#1 |
| 2 | Town Shop - Loc 2 |
| 3 | The Town Shop |
| 4 | TTS - Someplace |
| 5 | Town Shop,the 3 |
| 6 | Toen Shop4 |
+----+-------------------+
My goal is to make it look like:
+----+---------------+-------------------+
| ID | Company Name | Location Name |
+----+---------------+-------------------+
| 1 | The Town Shop | Town Shop#1 |
| 2 | The Town Shop | Town Shop - Loc 2 |
| 3 | The Town Shop | The Town Shop |
| 4 | The Town Shop | TTS - Someplace |
| 5 | The Town Shop | Town Shop,the 3 |
| 6 | The Town Shop | Toen Shop4 |
+----+---------------+-------------------+
Any suggestions on how I can approach this is appreciated. | 0 |
6,113 | 08/08/2008 16:32:30 | 702 | 08/08/2008 01:31:17 | 1 | 2 | What is the best way to store connection string in .NET DLLs? | The application my team is currently developing has a DLL that is used to perform all database access. The application can not use a trusted connection because the database is behind a firewall and the domain server is not. So it appears that the connection string needs to have a DB username and password. The DLL currently has the database connection string hard coded, but I don't want to do this when we launch as the assembly can be disassembled and the username and password would be right there in the open.
One of the requirements is that the password needs to be changed once every few months, so we would need to roll that out to our internal user base.
Is there a way to store the password encrypted in such a way we can easily distribute to the entire user base without storing it in the assembly?
Thanks in advance! | .net | sql-server | connectionstring | null | null | null | open | What is the best way to store connection string in .NET DLLs?
===
The application my team is currently developing has a DLL that is used to perform all database access. The application can not use a trusted connection because the database is behind a firewall and the domain server is not. So it appears that the connection string needs to have a DB username and password. The DLL currently has the database connection string hard coded, but I don't want to do this when we launch as the assembly can be disassembled and the username and password would be right there in the open.
One of the requirements is that the password needs to be changed once every few months, so we would need to roll that out to our internal user base.
Is there a way to store the password encrypted in such a way we can easily distribute to the entire user base without storing it in the assembly?
Thanks in advance! | 0 |
6,126 | 08/08/2008 16:45:58 | 1,384,652 | 08/01/2008 12:01:23 | 677 | 50 | How do you handle huge if-conditions? | It's something that's bugged me in every language I've used, I have an if statement but the conditional part has so many checks that I have to split it over multiple lines, use a nested if statement or just accept that it's ugly and move on with my life.
Are there any other methods that you've found that might be of use to me and anybody else that's hit the same problem?
Example, all on one line:
if (var1 = true && var2 = true && var2 = true && var3 = true && var4 = true && var5 = true && var6 = true)
{
Example, multi-line:
if (var1 = true && var2 = true && var2 = true
&& var3 = true && var4 = true && var5 = true
&& var6 = true)
{
Example-nested:
if (var1 = true && var2 = true && var2 = true && var3 = true)
{
if (var4 = true && var5 = true && var6 = true)
{ | language-agnostic | if | null | null | null | null | open | How do you handle huge if-conditions?
===
It's something that's bugged me in every language I've used, I have an if statement but the conditional part has so many checks that I have to split it over multiple lines, use a nested if statement or just accept that it's ugly and move on with my life.
Are there any other methods that you've found that might be of use to me and anybody else that's hit the same problem?
Example, all on one line:
if (var1 = true && var2 = true && var2 = true && var3 = true && var4 = true && var5 = true && var6 = true)
{
Example, multi-line:
if (var1 = true && var2 = true && var2 = true
&& var3 = true && var4 = true && var5 = true
&& var6 = true)
{
Example-nested:
if (var1 = true && var2 = true && var2 = true && var3 = true)
{
if (var4 = true && var5 = true && var6 = true)
{ | 0 |
6,130 | 08/08/2008 16:49:17 | 763 | 08/08/2008 16:17:13 | 1 | 0 | Repair SVN Checksum | I'm using subclipse in Flex Builder 3, and recently received this error when trying to commit:
`svn: Checksum mismatch for '/Users/redacted/Documents/Flex Builder 3/path/to/my/file.mxml'; expected: 'f8cb275de72776657406154dd3c10348', actual: 'null'`
I worked around it by:
1. Committing all the other changed files, omitting the troublesome one.
2. Copying the contents of the trouble file to a TextMate window
3. Deleting my project in FlexBuilder/Eclipse
4. Checking my project out fresh from SVN
5. Copying the text of the trouble file back in from the TextMate Window
6. Committing the changes.
It worked, but I can't help but think there's a better way. What's actaully happening to cause the svn:checksum error, and what's the best fix.
Maybe more important -- is this a symptom of a greater problem? | subclipse | subversion | null | null | null | null | open | Repair SVN Checksum
===
I'm using subclipse in Flex Builder 3, and recently received this error when trying to commit:
`svn: Checksum mismatch for '/Users/redacted/Documents/Flex Builder 3/path/to/my/file.mxml'; expected: 'f8cb275de72776657406154dd3c10348', actual: 'null'`
I worked around it by:
1. Committing all the other changed files, omitting the troublesome one.
2. Copying the contents of the trouble file to a TextMate window
3. Deleting my project in FlexBuilder/Eclipse
4. Checking my project out fresh from SVN
5. Copying the text of the trouble file back in from the TextMate Window
6. Committing the changes.
It worked, but I can't help but think there's a better way. What's actaully happening to cause the svn:checksum error, and what's the best fix.
Maybe more important -- is this a symptom of a greater problem? | 0 |
6,134 | 08/08/2008 16:50:46 | 726 | 08/08/2008 12:04:53 | 41 | 7 | How do you find the age of a long-running Linux process? | I have a problem with some zombie-like processes on a certain server that need to be killed every now and then. How can I best identify the ones that have run for longer than an hour or so? | linux | bash | process | null | null | null | open | How do you find the age of a long-running Linux process?
===
I have a problem with some zombie-like processes on a certain server that need to be killed every now and then. How can I best identify the ones that have run for longer than an hour or so? | 0 |
6,151 | 08/08/2008 17:04:25 | 327 | 08/04/2008 17:08:49 | 78 | 6 | How do I edit work items in the Visual Studio 2008 xml editor? | I'm trying to customize some TFS work items via the VS2008 xml editor, but every time I open a work item xml file it jumps to the graphical designer. All that gives me is a "View XML" button that doesn't let you edit the xml directly. | windows | visual-studio | tfs | null | null | null | open | How do I edit work items in the Visual Studio 2008 xml editor?
===
I'm trying to customize some TFS work items via the VS2008 xml editor, but every time I open a work item xml file it jumps to the graphical designer. All that gives me is a "View XML" button that doesn't let you edit the xml directly. | 0 |
6,155 | 08/08/2008 17:08:51 | 204 | 08/03/2008 13:27:56 | 295 | 22 | Common Types of Subversion Hooks | What kinds of hook scripts are people using for Subversion? Just general ideas but code would be great too! | svn | subversion | version-control | scripting | null | null | open | Common Types of Subversion Hooks
===
What kinds of hook scripts are people using for Subversion? Just general ideas but code would be great too! | 0 |
6,166 | 08/08/2008 17:17:52 | 567 | 08/06/2008 19:14:16 | 103 | 14 | Any good PHP IDE, preferably free or cheap? | Does anyone know of any good IDE (Code completion, Syntax coloring, etc) that will handle php. Looking for anything that might be relatively cheap or free and doesn't run like crap (IE: Eclipse) | php | ide | null | null | null | null | open | Any good PHP IDE, preferably free or cheap?
===
Does anyone know of any good IDE (Code completion, Syntax coloring, etc) that will handle php. Looking for anything that might be relatively cheap or free and doesn't run like crap (IE: Eclipse) | 0 |
6,173 | 08/08/2008 17:24:19 | 322 | 08/04/2008 16:38:52 | 104 | 9 | Regular expression for parsing links from a webpage? | I'm looking for a .NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link.
And a side question:
Is there 'one regex to rule them all'? Or am I better off using a series of less complicated regular expressions and just using mutliple passes against the raw HTML? (Speed vs. Maintainability) | .net | regularexpression | null | null | null | null | open | Regular expression for parsing links from a webpage?
===
I'm looking for a .NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link.
And a side question:
Is there 'one regex to rule them all'? Or am I better off using a series of less complicated regular expressions and just using mutliple passes against the raw HTML? (Speed vs. Maintainability) | 0 |
6,184 | 08/08/2008 17:32:41 | 756 | 08/08/2008 15:31:50 | 61 | 3 | How do I make event callbacks into my win forms thread safe? | When you subscribe to an event on an object from within a form, you are essentially handing over control of your callback method to the event source. You have no idea whether that event source will choose to trigger the event on a different thread.
The problem is that when the callback is invoked, you cannot assume that you can make update controls on your form because sometimes those controls will throw an expection if the event callback was called on a thread different than the thread the form was run on. | .net | c# | winforms | multithreaded | events | null | open | How do I make event callbacks into my win forms thread safe?
===
When you subscribe to an event on an object from within a form, you are essentially handing over control of your callback method to the event source. You have no idea whether that event source will choose to trigger the event on a different thread.
The problem is that when the callback is invoked, you cannot assume that you can make update controls on your form because sometimes those controls will throw an expection if the event callback was called on a thread different than the thread the form was run on. | 0 |
6,207 | 08/08/2008 17:59:41 | 770 | 08/08/2008 17:20:44 | 1 | 1 | Experiences of the Smart Client Software Factory | Has anyone had any experience in building a 'real world' application with the [Smart Client Software Factory][1], from Microsofts Patterns and Practices group? I'm looking for advice on how difficult it was to master, whether it decreased your time to market and any other general pitfalls.
[1]: http://www.codeplex.com/smartclient | scsf | .net | softwarefactory | visualstudio | softwaredevelopment | null | open | Experiences of the Smart Client Software Factory
===
Has anyone had any experience in building a 'real world' application with the [Smart Client Software Factory][1], from Microsofts Patterns and Practices group? I'm looking for advice on how difficult it was to master, whether it decreased your time to market and any other general pitfalls.
[1]: http://www.codeplex.com/smartclient | 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.