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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,615 | 08/04/2008 21:42:37 | 25 | 08/01/2008 12:15:23 | 35 | 11 | How can I modify .xfdl files? | The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how to view XFDL files using a file viewer I found <a href = "http://www.e-publishing.af.mil/viewerdownload.asp">here</a>. I'd like, however, to modify these files on the fly. Any suggestions? | xfdl | language-agnostic | null | null | null | null | open | How can I modify .xfdl files?
===
The .XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, contains a level of encryption for use in secure communications.
I know how to view XFDL files using a file viewer I found <a href = "http://www.e-publishing.af.mil/viewerdownload.asp">here</a>. I'd like, however, to modify these files on the fly. Any suggestions? | 0 |
1,623 | 08/04/2008 22:00:41 | 230 | 08/03/2008 19:32:46 | 34 | 2 | Folders or Projects in a Visual Studio Solution? | When spliting a solution in to logical layers, when is it best to use a separate project over just grouping by a folder? | visual-studio | design | null | null | null | null | open | Folders or Projects in a Visual Studio Solution?
===
When spliting a solution in to logical layers, when is it best to use a separate project over just grouping by a folder? | 0 |
1,625 | 08/04/2008 22:01:10 | 204 | 08/03/2008 13:27:56 | 163 | 9 | XML Editing/Viewing Software | What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files. | windows | linux | xml | null | null | null | open | XML Editing/Viewing Software
===
What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files. | 0 |
1,644 | 08/04/2008 22:17:08 | 91 | 08/01/2008 17:55:22 | 932 | 84 | What good Podcasts are out there? | Yes, Podcasts, those nice little Audiobooks I can listen to on the way to work. With the current amount of Podcasts, it's like searching a needle in a haystack, except that the haystack happens to be the internet and is filled with too many of these "Hot new Gadgets" stuff :(
Now, even though **I** am mainly a .net Developer nowadays, maybe anyone knows some good Podcasts from people regarding the whole software lifecycle? Unit Testing, Continous Integration, Documentation, Deployment...
Currently, the only two Podcasts i subscribe to are [StackOverflow][1] and [Hanselminutes][2], but [.net Rocks!][3] also sounds interesting.
So - what are you guys listening to?
[1]: http://blog.stackoverflow.com/category/podcasts/
[2]: http://www.hanselminutes.com/
[3]: http://www.dotnetrocks.com/ | podcast | null | null | null | null | null | open | What good Podcasts are out there?
===
Yes, Podcasts, those nice little Audiobooks I can listen to on the way to work. With the current amount of Podcasts, it's like searching a needle in a haystack, except that the haystack happens to be the internet and is filled with too many of these "Hot new Gadgets" stuff :(
Now, even though **I** am mainly a .net Developer nowadays, maybe anyone knows some good Podcasts from people regarding the whole software lifecycle? Unit Testing, Continous Integration, Documentation, Deployment...
Currently, the only two Podcasts i subscribe to are [StackOverflow][1] and [Hanselminutes][2], but [.net Rocks!][3] also sounds interesting.
So - what are you guys listening to?
[1]: http://blog.stackoverflow.com/category/podcasts/
[2]: http://www.hanselminutes.com/
[3]: http://www.dotnetrocks.com/ | 0 |
1,669 | 08/04/2008 22:46:36 | 340 | 08/04/2008 18:49:59 | 1 | 0 | Learning to write a compiler | I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby so I prefer resources that involve one those three, but any good resource is acceptable. | education | null | null | null | null | null | open | Learning to write a compiler
===
I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby so I prefer resources that involve one those three, but any good resource is acceptable. | 0 |
1,679 | 08/04/2008 22:56:45 | 55 | 08/01/2008 13:40:09 | 463 | 34 | How do I calculate these statistics? | I'm writing an app to help facilitate some research, and part of this involves doing some statistical calculations. Right now, the researchers are using a program called SPSS. Part of the output that they care about looks like this:
![Part of the SPSS output](http://img204.imageshack.us/img204/9596/spssfg1.png)
They're really only concerned about the 'F' and 'Sig.' values. My problem is that I have no background in stats, and I can't figure out what the tests are called, or how to calculate them.
I thought the 'F' value might be the result of the [F-test](http://en.wikipedia.org/wiki/F-test#Table_on_F-test), but after following the steps given on Wikipedia, I got a result that was different from what SPSS gives. | statistics | null | null | null | null | null | open | How do I calculate these statistics?
===
I'm writing an app to help facilitate some research, and part of this involves doing some statistical calculations. Right now, the researchers are using a program called SPSS. Part of the output that they care about looks like this:
![Part of the SPSS output](http://img204.imageshack.us/img204/9596/spssfg1.png)
They're really only concerned about the 'F' and 'Sig.' values. My problem is that I have no background in stats, and I can't figure out what the tests are called, or how to calculate them.
I thought the 'F' value might be the result of the [F-test](http://en.wikipedia.org/wiki/F-test#Table_on_F-test), but after following the steps given on Wikipedia, I got a result that was different from what SPSS gives. | 0 |
1,683 | 08/04/2008 23:06:23 | 350 | 08/04/2008 23:06:23 | 1 | 0 | ASP.NET built in user profile, Vs old stile user class/tables | I am looking for the spiritual guidance of what is the best practice around the use of Profile feature in ASP.NET.
How do you decide what should be kept in the built in user Profile, or if you should just go and create your own DB Table and add a column for that? For example, a user has a zip code, should I save the zip code in my own table, or should I add it to the web.config xml profile and then access it via the user profile ASP.NEt mechanize?
The pros/cons I can think of are that since I don't know the profile so well, (it is a bit of a *Matrix* right now) I probably can do whatever I want if I go the table route (like, SQL to get all the users in the same zip code as the current user), I don't know ifI can do the same if I use the ASP.NET profile. | asp.net | profile | null | null | null | null | open | ASP.NET built in user profile, Vs old stile user class/tables
===
I am looking for the spiritual guidance of what is the best practice around the use of Profile feature in ASP.NET.
How do you decide what should be kept in the built in user Profile, or if you should just go and create your own DB Table and add a column for that? For example, a user has a zip code, should I save the zip code in my own table, or should I add it to the web.config xml profile and then access it via the user profile ASP.NEt mechanize?
The pros/cons I can think of are that since I don't know the profile so well, (it is a bit of a *Matrix* right now) I probably can do whatever I want if I go the table route (like, SQL to get all the users in the same zip code as the current user), I don't know ifI can do the same if I use the ASP.NET profile. | 0 |
1,708 | 08/04/2008 23:43:17 | 72 | 08/01/2008 15:09:58 | 159 | 9 | Any online resources for learning Lingo/Shockwave Director? | I've been doing bits and pieces of work in Lingo while helping a friend with some projects he's working on, but I haven't found any good resources for actually learning the language. I'm sure I could pick up an old book somewhere that explains it, but I really just want a quick lesson and I think a website with some sample code and function reference would be perfect.
Does this exist? My experience searching for lingo documentation in the past leads me to believe that it's just not on the web anywhere. | shockwave | lingo | null | null | null | null | open | Any online resources for learning Lingo/Shockwave Director?
===
I've been doing bits and pieces of work in Lingo while helping a friend with some projects he's working on, but I haven't found any good resources for actually learning the language. I'm sure I could pick up an old book somewhere that explains it, but I really just want a quick lesson and I think a website with some sample code and function reference would be perfect.
Does this exist? My experience searching for lingo documentation in the past leads me to believe that it's just not on the web anywhere. | 0 |
1,709 | 08/04/2008 23:43:34 | 349 | 08/04/2008 23:02:07 | 1 | 0 | How to pass enumerated values to a web service | My dilemma is, basically, how to share an enumeration between two applications.
The users upload documents through a front-end application that is on the web. This application calls a web service of the back-end application and passes the document to it. The back-end app saves the document and inserts a row in the *Document* table.
The document type (7 possible document types: *Invoice*, *Contract* etc.) is passed as a parameter to the web service's *UploadDocument* method. The question is, what should the type (and possible values) of this parameter be?
Since you need to hardcode these values in both applications, I think it is O.K. to use a descriptive string (*Invoice*, *Contract*, *WorkOrder*, *SignedWorkOrder*).
Is it maybe a better approach to create a *DocumentTypes* enumeration in the first application, and to reproduce it also in the second application, and then pass the corresponding integer value to the web service between them? | web-service | application-integration | null | null | null | null | open | How to pass enumerated values to a web service
===
My dilemma is, basically, how to share an enumeration between two applications.
The users upload documents through a front-end application that is on the web. This application calls a web service of the back-end application and passes the document to it. The back-end app saves the document and inserts a row in the *Document* table.
The document type (7 possible document types: *Invoice*, *Contract* etc.) is passed as a parameter to the web service's *UploadDocument* method. The question is, what should the type (and possible values) of this parameter be?
Since you need to hardcode these values in both applications, I think it is O.K. to use a descriptive string (*Invoice*, *Contract*, *WorkOrder*, *SignedWorkOrder*).
Is it maybe a better approach to create a *DocumentTypes* enumeration in the first application, and to reproduce it also in the second application, and then pass the corresponding integer value to the web service between them? | 0 |
1,711 | 08/04/2008 23:50:22 | 303 | 08/04/2008 13:48:50 | 1 | 0 | What is the single most influential book every programmer should read? | If you could go back in time and tell yourself to read a specific book at the beginning of your career as a developer, what book would it be?
I expect this list to be varied and a wide range of things covered. For me, the book would be Code Complete. After reading that book, I was able to get out of the immediate task mindset and begin to thing about the bigger picture, quality and maintainability. | books | fundamentals | null | null | null | 01/11/2012 13:32:24 | not constructive | What is the single most influential book every programmer should read?
===
If you could go back in time and tell yourself to read a specific book at the beginning of your career as a developer, what book would it be?
I expect this list to be varied and a wide range of things covered. For me, the book would be Code Complete. After reading that book, I was able to get out of the immediate task mindset and begin to thing about the bigger picture, quality and maintainability. | 4 |
1,734 | 08/05/2008 00:12:55 | 59 | 08/01/2008 14:02:13 | 306 | 16 | Any experiences with Protocol Buffers? | I was just looking through some information about Google's [protocol buffers][1] data interchange format. Has anyone played around with the code or even created a project around it?
I'm currently using XML in a Python project for structured content created by hand in a text editor, and I was wondering what the general opinion was on Protocol Buffers as a user-facing input format. The speed and brevity benefits definitely seem to be there, but there are so many factors when it comes to actually generating and processing the data.
[1]: http://code.google.com/apis/protocolbuffers/ | database | xml | null | null | null | null | open | Any experiences with Protocol Buffers?
===
I was just looking through some information about Google's [protocol buffers][1] data interchange format. Has anyone played around with the code or even created a project around it?
I'm currently using XML in a Python project for structured content created by hand in a text editor, and I was wondering what the general opinion was on Protocol Buffers as a user-facing input format. The speed and brevity benefits definitely seem to be there, but there are so many factors when it comes to actually generating and processing the data.
[1]: http://code.google.com/apis/protocolbuffers/ | 0 |
1,746 | 08/05/2008 00:35:17 | 137 | 08/02/2008 10:46:12 | 221 | 21 | How can I get at the matches when using preg_replace in PHP? | I am trying to grab the capital letters of a couple of words and wrap them in spans. I am using preg_replace, but it's not outputting anything.
preg_replace("/[A-Z]/", "<span class=\"initial\">$1</span>", $str) | php | regex | null | null | null | null | open | How can I get at the matches when using preg_replace in PHP?
===
I am trying to grab the capital letters of a couple of words and wrap them in spans. I am using preg_replace, but it's not outputting anything.
preg_replace("/[A-Z]/", "<span class=\"initial\">$1</span>", $str) | 0 |
1,760 | 08/05/2008 00:51:49 | 234 | 08/03/2008 20:25:38 | 209 | 17 | .NET Unit Testing packages? | Getting back into a bit of .NET after a few-year hiatus, and wondering what the good unit testing packages are these days.
I'm familiar with NUnit (a few years ago), and have played briefly around with IronRuby, with the goal of getting something like rspec going, but don't know much beyond that.
I realise I could google for this and call it a day but I believe I'm likely to get a better and more informed response from asking a question here :-)
Suggestions? | c# | .net | unit-testing | testing | null | null | open | .NET Unit Testing packages?
===
Getting back into a bit of .NET after a few-year hiatus, and wondering what the good unit testing packages are these days.
I'm familiar with NUnit (a few years ago), and have played briefly around with IronRuby, with the goal of getting something like rspec going, but don't know much beyond that.
I realise I could google for this and call it a day but I believe I'm likely to get a better and more informed response from asking a question here :-)
Suggestions? | 0 |
1,762 | 08/05/2008 00:56:43 | 137 | 08/02/2008 10:46:12 | 246 | 23 | Why is my ternary expression not working? | I am trying to set a flag to show or hide a page element, but it always displays even when the expression is false.
$canMerge = ($condition1 && $condition2) ? 'true' : 'false';
...
<?php if ($canMerge) { ?>Stuff<?php } ?>
What's up? | php | null | null | null | null | null | open | Why is my ternary expression not working?
===
I am trying to set a flag to show or hide a page element, but it always displays even when the expression is false.
$canMerge = ($condition1 && $condition2) ? 'true' : 'false';
...
<?php if ($canMerge) { ?>Stuff<?php } ?>
What's up? | 0 |
1,766 | 08/05/2008 00:58:21 | 50 | 08/01/2008 13:29:54 | 187 | 13 | Html Css Editor | I'm looking for a good editor for both HTML and CSS. I currently use the Firebug Firefox extension, and this is a great tool, but I'm looking for something I can use without necessarily firing up a browser. Ideally it would have a live preview of what I'm coding. | html | css | editor | null | null | 08/01/2012 16:00:17 | not constructive | Html Css Editor
===
I'm looking for a good editor for both HTML and CSS. I currently use the Firebug Firefox extension, and this is a great tool, but I'm looking for something I can use without necessarily firing up a browser. Ideally it would have a live preview of what I'm coding. | 4 |
1,790 | 08/05/2008 01:27:34 | 194 | 08/03/2008 10:56:49 | 21 | 4 | Federated (Synced) Subversion servers? | Is it possible to create "federated" Subversion servers?
As in one server at location A and another at location B that sync up their local versions of the repository automatically. That way when someone at either location interacts with the repository they are accessing their respective local server and therefore has faster response times. | subversion | server | sourcecontrol | federated | null | null | open | Federated (Synced) Subversion servers?
===
Is it possible to create "federated" Subversion servers?
As in one server at location A and another at location B that sync up their local versions of the repository automatically. That way when someone at either location interacts with the repository they are accessing their respective local server and therefore has faster response times. | 0 |
1,823 | 08/05/2008 02:17:45 | 145 | 08/02/2008 14:40:17 | 93 | 5 | Writing A "Conway's Game of Life" Program | Alright, so I've always wanted to write myself a nice little **Game of Life** program where you could play with the rules and adjust the number of cells and such; I've just never really had the time to mess around to do this (until recently). I understand the basic algorithm and such (if you don't, go to the [Game of Life](http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) Wikipedia page to check it out.) but only have a little experience with GUI programming. I'm considering doing this in python, but I was really wanting to figure out how to go about doing this in general, so feel free to give code snippets in your language of choice.
To summarise:
- **How would you go about programming a "Conway's Game of Life" simulation in your language of choice?** | language-agnostic | gui | simulation | null | null | 05/21/2012 17:07:23 | not constructive | Writing A "Conway's Game of Life" Program
===
Alright, so I've always wanted to write myself a nice little **Game of Life** program where you could play with the rules and adjust the number of cells and such; I've just never really had the time to mess around to do this (until recently). I understand the basic algorithm and such (if you don't, go to the [Game of Life](http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) Wikipedia page to check it out.) but only have a little experience with GUI programming. I'm considering doing this in python, but I was really wanting to figure out how to go about doing this in general, so feel free to give code snippets in your language of choice.
To summarise:
- **How would you go about programming a "Conway's Game of Life" simulation in your language of choice?** | 4 |
1,829 | 08/05/2008 02:39:23 | 30 | 08/01/2008 12:25:44 | 203 | 14 | How do I make a menu in python that does not require the user to press (enter) to make a selection? | I've got a menu in python. That part was easy. I'm using raw_input() to get the selection from the user.
The problem is that raw_input (and input) require the user to press Enter after they make a selection. Is there any way to make the program act immediately upon a keystroke? Here's what I've got so far:
import sys
print """Menu
1) Say Foo
2) Say Bar"""
answer = raw_input("Make a selection> ")
if "1" in answer: print "foo"
elif "2" in answer: print "bar"
It would be great to have something like
print menu
while lastKey = "":
lastKey = check_for_recent_keystrokes()
if "1" in lastKey: #do stuff... | python | null | null | null | null | null | open | How do I make a menu in python that does not require the user to press (enter) to make a selection?
===
I've got a menu in python. That part was easy. I'm using raw_input() to get the selection from the user.
The problem is that raw_input (and input) require the user to press Enter after they make a selection. Is there any way to make the program act immediately upon a keystroke? Here's what I've got so far:
import sys
print """Menu
1) Say Foo
2) Say Bar"""
answer = raw_input("Make a selection> ")
if "1" in answer: print "foo"
elif "2" in answer: print "bar"
It would be great to have something like
print menu
while lastKey = "":
lastKey = check_for_recent_keystrokes()
if "1" in lastKey: #do stuff... | 0 |
1,836 | 08/05/2008 02:51:37 | 172 | 08/02/2008 23:55:05 | 3 | 1 | Wiggling the mouse using C# | OK. This is a bit of a vanity app, but I had a situation today at work where I was in a training class and the machine was set to lock every 10 minutes. Well, if the trainers got excited about talking - as opposed to changing slides - the machine would lock up.
I'd like to write a teeny app that has nothing but a taskbar icon that does nothing but move the mouse by 1 pixel every 4 minutes.
I can do that in 3 ways with Delphi (my strong language) but I'm moving to C# for work and I'd like to know the path of least resistance there. | c# | mouse | windows-api | null | null | null | open | Wiggling the mouse using C#
===
OK. This is a bit of a vanity app, but I had a situation today at work where I was in a training class and the machine was set to lock every 10 minutes. Well, if the trainers got excited about talking - as opposed to changing slides - the machine would lock up.
I'd like to write a teeny app that has nothing but a taskbar icon that does nothing but move the mouse by 1 pixel every 4 minutes.
I can do that in 3 ways with Delphi (my strong language) but I'm moving to C# for work and I'd like to know the path of least resistance there. | 0 |
1,848 | 08/05/2008 03:04:43 | 36 | 08/01/2008 12:43:55 | 21 | 2 | Locating Text within image | I am currently working on a project and my goal is to locate text in an image. OCR'ing the text is not my intention as of yet. I want to basically obtain the bounds of text within an image. I am using the AForge.Net imaging component for manipulation. Any assistance in some sense or another?
Thanks. | c# | image | processing | null | null | null | open | Locating Text within image
===
I am currently working on a project and my goal is to locate text in an image. OCR'ing the text is not my intention as of yet. I want to basically obtain the bounds of text within an image. I am using the AForge.Net imaging component for manipulation. Any assistance in some sense or another?
Thanks. | 0 |
1,854 | 08/05/2008 03:23:18 | 116 | 08/02/2008 05:51:57 | 344 | 28 | Python - How do I tell what OS I'm running on? | What do I need to look at to see if I'm on Windows, Unix, etc? | python | null | null | null | null | null | open | Python - How do I tell what OS I'm running on?
===
What do I need to look at to see if I'm on Windows, Unix, etc? | 0 |
1,869 | 08/05/2008 03:50:42 | 358 | 08/05/2008 01:41:40 | 31 | 2 | Which tools do people use to create Data Dictionaries? | On the project that I am working on I have a couple of databases. Each table and each column in the database has a description set (as an extended property in SQL 2005). As a part of the documentation going to the client we need to produce a data dictionary showing all of the tables and columns along with a collection of meta data (data-type, optionality, constraints).
Is anyone using a tool to automatically create this kind of document? If so, which tools do you use? I have used [Data Dictionary Creator][1] which is awesome but it doesn't seem to do data types or optionality (unless you want to add in custom fields and fill them in yourself).
[1]: http://www.codeplex.com/datadictionary | database | documentation | null | null | null | null | open | Which tools do people use to create Data Dictionaries?
===
On the project that I am working on I have a couple of databases. Each table and each column in the database has a description set (as an extended property in SQL 2005). As a part of the documentation going to the client we need to produce a data dictionary showing all of the tables and columns along with a collection of meta data (data-type, optionality, constraints).
Is anyone using a tool to automatically create this kind of document? If so, which tools do you use? I have used [Data Dictionary Creator][1] which is awesome but it doesn't seem to do data types or optionality (unless you want to add in custom fields and fill them in yourself).
[1]: http://www.codeplex.com/datadictionary | 0 |
1,873 | 08/05/2008 04:05:53 | 242 | 08/03/2008 22:55:19 | 1 | 2 | Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET? | How do I delimit a Javascript databound string parameter in an anchor OnClick event?
I have an anchor tag in an ASP.NET Repeater control.
The OnClick event of the anchor contains a call to a Javascript function.
The Javascript funciton takes a string for it's input parameter.
The string parameter is populated with a databound value from the Repeater.
I need the 'double quotes' for the Container.DataItem.
I need the 'single quotes' for the OnClick.
And I still need *one more delimiter* (triple quotes?) for the input string parameter of the Javascript function call.
Since I can't use 'single quotes' again, how do I ensure the Javascript function knows the input parameter is a string and not an integer?
Without the extra quotes around the input string parameter, the Javascript function thinks I'm passing in an integer.
Cheers in advance for any knowledge you can drop.
The anchor:
<a id="aShowHide" onclick='ToggleDisplay(<%# DataBinder.Eval(Container.DataItem, "JobCode") %>);' >Show/Hide</a>
and
here is the Javascript:
<script language="JavaScript" type="text/javascript">
/* Shows/Hides the Jobs Div */
function ToggleDisplay(jobCode)
{
/* Each div has it's ID set dynamically ('d' plus the JobCode) */
var elem = document.getElementById('d' + jobCode);
if (elem)
{
if (elem.style.display != 'block')
{
elem.style.display = 'block';
elem.style.visibility = 'visible';
}
else
{
elem.style.display = 'none';
elem.style.visibility = 'hidden';
}
}
}
</script> | asp.net | javascript | anchor | display | single | null | open | Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET?
===
How do I delimit a Javascript databound string parameter in an anchor OnClick event?
I have an anchor tag in an ASP.NET Repeater control.
The OnClick event of the anchor contains a call to a Javascript function.
The Javascript funciton takes a string for it's input parameter.
The string parameter is populated with a databound value from the Repeater.
I need the 'double quotes' for the Container.DataItem.
I need the 'single quotes' for the OnClick.
And I still need *one more delimiter* (triple quotes?) for the input string parameter of the Javascript function call.
Since I can't use 'single quotes' again, how do I ensure the Javascript function knows the input parameter is a string and not an integer?
Without the extra quotes around the input string parameter, the Javascript function thinks I'm passing in an integer.
Cheers in advance for any knowledge you can drop.
The anchor:
<a id="aShowHide" onclick='ToggleDisplay(<%# DataBinder.Eval(Container.DataItem, "JobCode") %>);' >Show/Hide</a>
and
here is the Javascript:
<script language="JavaScript" type="text/javascript">
/* Shows/Hides the Jobs Div */
function ToggleDisplay(jobCode)
{
/* Each div has it's ID set dynamically ('d' plus the JobCode) */
var elem = document.getElementById('d' + jobCode);
if (elem)
{
if (elem.style.display != 'block')
{
elem.style.display = 'block';
elem.style.visibility = 'visible';
}
else
{
elem.style.display = 'none';
elem.style.visibility = 'hidden';
}
}
}
</script> | 0 |
1,898 | 08/05/2008 04:43:22 | 81 | 08/01/2008 16:28:33 | 1 | 0 | CSV File Imports in .Net | I realize this is a newbie question, but I'm looking for a simple solution - it seems like there should be one.
What's the best way to import a CSV file into a strongly-typed data structure? Again simple = better.
Thanks. | c# | vb.net | file | csv | import | null | open | CSV File Imports in .Net
===
I realize this is a newbie question, but I'm looking for a simple solution - it seems like there should be one.
What's the best way to import a CSV file into a strongly-typed data structure? Again simple = better.
Thanks. | 0 |
1,908 | 08/05/2008 04:55:28 | 79 | 08/01/2008 16:05:09 | 6 | 0 | Mapping latitude/longitude to a distorted map | I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map.
Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this?
At first I decided to create a system of linear equations for the three nearest lat/long points and compute a transformation from these, but this doesn't work well at all. Since that's a linear system, I can't use more nearby points either.
You can't assume North is up: all you have is the existing lat/long->x/y mappings. | map | latitude | longitude | math | mapping | null | open | Mapping latitude/longitude to a distorted map
===
I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map.
Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this?
At first I decided to create a system of linear equations for the three nearest lat/long points and compute a transformation from these, but this doesn't work well at all. Since that's a linear system, I can't use more nearby points either.
You can't assume North is up: all you have is the existing lat/long->x/y mappings. | 0 |
1,935 | 08/05/2008 05:31:30 | 102 | 08/01/2008 22:04:10 | 1 | 1 | Best way to learn flash? | I am interested in learning how to write Flash programs, but I'm not ready to shell out the big bucks for Flash CS3 Professional. What's the best compromise between affordability and education? | flash | null | null | null | null | 09/12/2011 00:17:16 | not constructive | Best way to learn flash?
===
I am interested in learning how to write Flash programs, but I'm not ready to shell out the big bucks for Flash CS3 Professional. What's the best compromise between affordability and education? | 4 |
1,936 | 08/05/2008 05:33:41 | 364 | 08/05/2008 05:33:41 | 1 | 0 | How to RedirectToAction in ASP.NET MVC (Preview 4) without losing request data | Using ASP.NET MVC (Preview 4) there are situations (such as form submission) that may require a RedirectToAction.
One such situation is when you encounter validation errors after a form submission and need to redirect back to the form, but would like the URL to reflect the URL of the form, not the action page it submits to.
As I require the form to contain the originally POSTed data, for user convenience, as well as validation purposes, how can I pass the data through the RedirectToAction()? If I use the viewData parameter, my POST parameters will be changed to GET parameters.
## Heading ## | c# | asp.net | mvc | null | null | null | open | How to RedirectToAction in ASP.NET MVC (Preview 4) without losing request data
===
Using ASP.NET MVC (Preview 4) there are situations (such as form submission) that may require a RedirectToAction.
One such situation is when you encounter validation errors after a form submission and need to redirect back to the form, but would like the URL to reflect the URL of the form, not the action page it submits to.
As I require the form to contain the originally POSTed data, for user convenience, as well as validation purposes, how can I pass the data through the RedirectToAction()? If I use the viewData parameter, my POST parameters will be changed to GET parameters.
## Heading ## | 0 |
1,939 | 08/05/2008 05:39:36 | 260 | 08/04/2008 08:21:41 | 11 | 0 | Howto articles for iphone development | I am looking for an introduction into developing for the iphone. Any recommendation? I do not speak Objective-C either, so tutorials on that would not hurt either. | iphone | ipodtouch | null | null | null | 06/05/2012 13:13:38 | not constructive | Howto articles for iphone development
===
I am looking for an introduction into developing for the iphone. Any recommendation? I do not speak Objective-C either, so tutorials on that would not hurt either. | 4 |
1,949 | 08/05/2008 05:54:34 | 51 | 08/01/2008 13:31:13 | 166 | 15 | How many DataContexts are appropriate? | In order to fully use LinqToSql in an ASP.net 3.5 application, it is necessary to create [DataContext][1] [classes][2] (which is usually done using the designer in VS 2008). From the UI perspective, the DataContext is a design of the sections of your database that you would like to expose to through LinqToSql and is integral in setting up the ORM features of LinqToSql.
My question is: I am setting up a project that uses a large database where all tables are interconnected in some way through Foreign Keys. My first inclination is to make one huge DataContext class that models the entire datbase. That way I could in theory (though I don't know if this would be needed in practice) use the Foreign Key connections that are generated through LinqToSql to easily go between related objects in my code, insert related objects, etc.
However, after giving it some thought, I am now thinking that it may make more sense to create multiple DataContext classes, each one relating to a specific namespace or logical interrelated section within my database. My main concern is that instantiating and disposing one huge DataContext class all the time for individual operations that relate to specific areas of the Database would be impose an unnecessary imposition on application resources. Additionally, it is easier to create and manage smaller DataContext files than one big one. The thing that I would lose is that there would be some distant sections of the database that would not be navigable through LinqToSql (even though a chain of relationships connects them in the actual database). Additionally, there would be some table classes that would exist in more than one DataContext.
Any thoughts or experience on whether multiple DataContexts (corresponding to DB namespaces) are appropriate in place of (or in addition to) one very large DataContext class (corresponding to the whole DB)?
[1]: http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.aspx
[2]: http://dotnetslackers.com/articles/csharp/InsideTheLINQToSQLDataContextClass.aspx | .net | asp.net | datacontext | database | linq-to-sql | null | open | How many DataContexts are appropriate?
===
In order to fully use LinqToSql in an ASP.net 3.5 application, it is necessary to create [DataContext][1] [classes][2] (which is usually done using the designer in VS 2008). From the UI perspective, the DataContext is a design of the sections of your database that you would like to expose to through LinqToSql and is integral in setting up the ORM features of LinqToSql.
My question is: I am setting up a project that uses a large database where all tables are interconnected in some way through Foreign Keys. My first inclination is to make one huge DataContext class that models the entire datbase. That way I could in theory (though I don't know if this would be needed in practice) use the Foreign Key connections that are generated through LinqToSql to easily go between related objects in my code, insert related objects, etc.
However, after giving it some thought, I am now thinking that it may make more sense to create multiple DataContext classes, each one relating to a specific namespace or logical interrelated section within my database. My main concern is that instantiating and disposing one huge DataContext class all the time for individual operations that relate to specific areas of the Database would be impose an unnecessary imposition on application resources. Additionally, it is easier to create and manage smaller DataContext files than one big one. The thing that I would lose is that there would be some distant sections of the database that would not be navigable through LinqToSql (even though a chain of relationships connects them in the actual database). Additionally, there would be some table classes that would exist in more than one DataContext.
Any thoughts or experience on whether multiple DataContexts (corresponding to DB namespaces) are appropriate in place of (or in addition to) one very large DataContext class (corresponding to the whole DB)?
[1]: http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.aspx
[2]: http://dotnetslackers.com/articles/csharp/InsideTheLINQToSQLDataContextClass.aspx | 0 |
9,750,131 | 03/17/2012 12:51:28 | 769,449 | 05/25/2011 11:24:19 | 125 | 3 | asp.net button in dynamic loaded page in jQuery popup breaks out of popup | This is probably very easy but I cant get it to work as I'd like.
I found this: http://www.devcurry.com/2010/06/load-page-dynamically-inside-jquery-ui.html
I need to load a dynamic lightbox using jQuery and asp.net. This is what I need exactly:
1 - on default.aspx user clicks button
2 - lightbox is shown which dynamically loads page placereview.aspx
3 - user has a few options:
clicks 'cancel', lightbox is closed
clicks 'ok', if error, show errors in lightbox, dont close it. if no error close the lightbox again
What I have now is:
*default.aspx*
<script type="text/javascript">
$(function () {
$('<div>').dialog({
modal: true,
close: function (e, i) { $(this).remove(); },
open: function () {
$(this).load('sendemail.aspx');
},
height: 400,
width: 400,
title: 'Dynamically Loaded Page'
});
});
</script>
*sendemail.aspx*
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="sendemail.aspx.vb" Inherits="sendemail" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Here I can send an email!
</div>
<asp:LinkButton ID="lbtnOk" CssClass="round" Text="<span>Send</span>" runat="server" />
<asp:LinkButton ID="lbtnCancel" CssClass="round_grey" Text="<span>Cancel</span>" runat="server" />
</form>
</body>
</html>
What happens is that when I click 'Send', the page which was shown IN the popup now is loaded in the browser..so it breaks out of the modalpopup it was in earlier.
What can I do about this?
Thanks! | jquery | asp.net | null | null | null | null | open | asp.net button in dynamic loaded page in jQuery popup breaks out of popup
===
This is probably very easy but I cant get it to work as I'd like.
I found this: http://www.devcurry.com/2010/06/load-page-dynamically-inside-jquery-ui.html
I need to load a dynamic lightbox using jQuery and asp.net. This is what I need exactly:
1 - on default.aspx user clicks button
2 - lightbox is shown which dynamically loads page placereview.aspx
3 - user has a few options:
clicks 'cancel', lightbox is closed
clicks 'ok', if error, show errors in lightbox, dont close it. if no error close the lightbox again
What I have now is:
*default.aspx*
<script type="text/javascript">
$(function () {
$('<div>').dialog({
modal: true,
close: function (e, i) { $(this).remove(); },
open: function () {
$(this).load('sendemail.aspx');
},
height: 400,
width: 400,
title: 'Dynamically Loaded Page'
});
});
</script>
*sendemail.aspx*
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="sendemail.aspx.vb" Inherits="sendemail" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Here I can send an email!
</div>
<asp:LinkButton ID="lbtnOk" CssClass="round" Text="<span>Send</span>" runat="server" />
<asp:LinkButton ID="lbtnCancel" CssClass="round_grey" Text="<span>Cancel</span>" runat="server" />
</form>
</body>
</html>
What happens is that when I click 'Send', the page which was shown IN the popup now is loaded in the browser..so it breaks out of the modalpopup it was in earlier.
What can I do about this?
Thanks! | 0 |
9,745,216 | 03/16/2012 22:18:04 | 457,500 | 09/24/2010 16:08:49 | 652 | 25 | Extract interface from EF entity | Obviously we can extract interface from repositories to inject dependencies. But what happens when the dependency is the ententy directly like this?
checkCompatibility.IsCompatible(doer, activity)
These entities are generated by EF4 and contain a lot of relations. | c# | entity-framework | entity-framework-4 | dependency-injection | null | null | open | Extract interface from EF entity
===
Obviously we can extract interface from repositories to inject dependencies. But what happens when the dependency is the ententy directly like this?
checkCompatibility.IsCompatible(doer, activity)
These entities are generated by EF4 and contain a lot of relations. | 0 |
9,750,134 | 03/17/2012 12:52:29 | 870,578 | 07/30/2011 10:51:07 | 81 | 0 | Facebook API not working perfectly for IOS5 | I ve Downloaded Facebook API fro IOS 5....But its showing some errors regrading the memory release...Since apple has introduced autorelease in IOS 5....
I referred [this][1] and tried blocking ARC for certain files ,bt it doesn't work for me...
Is there any other methods to stop ARC in IOS 5?
How to overcome this?
Any one plz provide me the link for downloading the Facebook API for IOS 5...
[1]: http://sugartin.info/2011/08/10/ios5-how-to-turn-off-arc-on-individual-files/ | iphone | facebook | arc | null | null | null | open | Facebook API not working perfectly for IOS5
===
I ve Downloaded Facebook API fro IOS 5....But its showing some errors regrading the memory release...Since apple has introduced autorelease in IOS 5....
I referred [this][1] and tried blocking ARC for certain files ,bt it doesn't work for me...
Is there any other methods to stop ARC in IOS 5?
How to overcome this?
Any one plz provide me the link for downloading the Facebook API for IOS 5...
[1]: http://sugartin.info/2011/08/10/ios5-how-to-turn-off-arc-on-individual-files/ | 0 |
9,750,152 | 03/17/2012 12:54:41 | 333,390 | 05/05/2010 11:48:51 | 1,420 | 0 | QStyleOptionViewItem rgument in paint function - what to do with it? | in paint function:
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex &index) const
the option argument is const so it cannot/shouldn't be changed, for what purpose is this argument there and how one can use it? | c++ | qt | null | null | null | null | open | QStyleOptionViewItem rgument in paint function - what to do with it?
===
in paint function:
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex &index) const
the option argument is const so it cannot/shouldn't be changed, for what purpose is this argument there and how one can use it? | 0 |
1,970 | 08/05/2008 06:39:31 | 116 | 08/02/2008 05:51:57 | 451 | 37 | What language do you use for Postgresql triggers and stored procedures? | Postgresql is interesting in that it supports several languages for writing stored procedures. Which one do you use, and why? | sql | database | postgresql | null | null | null | open | What language do you use for Postgresql triggers and stored procedures?
===
Postgresql is interesting in that it supports several languages for writing stored procedures. Which one do you use, and why? | 0 |
1,973 | 08/05/2008 06:48:38 | 116 | 08/02/2008 05:51:57 | 456 | 37 | What is the best way to avoid SQL injection attacks? | I've provided a solution for Python... please flesh this out with examples for other languages. | database | sql | security | null | null | null | open | What is the best way to avoid SQL injection attacks?
===
I've provided a solution for Python... please flesh this out with examples for other languages. | 0 |
1,982 | 08/05/2008 07:11:08 | 222 | 08/03/2008 16:45:02 | 10 | 2 | CPU throttling in C++ | I was just wandering if there is an elegant way to set the maximum CPU load for a particular thread doing intensive calculations. Right now I have located the most time consuming loop in the thread (it does only compression) and use GetTickCount() and Sleep() with hardcoded values. It makes sure that the loop continues for a certain period of time and than sleeps for a certain minimal time. It more or less does the job i.e. guarantees that the thread will not use more than 50% of CPU. However behavior is dependent on the number of CPU cores (huge disadvantage) and simply ugly (smaller disadvantage :)). Any ideas? | c++ | cpu | throttle | null | null | null | open | CPU throttling in C++
===
I was just wandering if there is an elegant way to set the maximum CPU load for a particular thread doing intensive calculations. Right now I have located the most time consuming loop in the thread (it does only compression) and use GetTickCount() and Sleep() with hardcoded values. It makes sure that the loop continues for a certain period of time and than sleeps for a certain minimal time. It more or less does the job i.e. guarantees that the thread will not use more than 50% of CPU. However behavior is dependent on the number of CPU cores (huge disadvantage) and simply ugly (smaller disadvantage :)). Any ideas? | 0 |
1,983 | 08/05/2008 07:18:55 | 116 | 08/02/2008 05:51:57 | 471 | 38 | Python: what is the difference between (1,2,3) and [1,2,3], and when should I use each? | In many places,(1,2,3) and [1,2,3] can be used interchangably.
When should I use one or the other, and why? | python | null | null | null | null | null | open | Python: what is the difference between (1,2,3) and [1,2,3], and when should I use each?
===
In many places,(1,2,3) and [1,2,3] can be used interchangably.
When should I use one or the other, and why? | 0 |
1,988 | 08/05/2008 07:32:54 | 122 | 08/02/2008 07:56:07 | 444 | 21 | How far can LISP macros go? | I have read a lot that LISP can redefine syntax on the fly, presumably with macros. I am curious how far does this actually go? Can you redefine the language structure so much that it borderline becomes a compiler for another language? For example, could you change the functional nature of LISP into a more object oriented syntax and semantics, maybe say having syntax closer to something like Ruby?
Especially, is it possible to get rid of the parenthesis hell using macros? I have learned enough (Emacs-)LISP to customize Emacs with my own micro-features, but I am very curious how far macros can go in customizing the language. | lisp | macros | null | null | null | 06/18/2012 19:00:39 | not constructive | How far can LISP macros go?
===
I have read a lot that LISP can redefine syntax on the fly, presumably with macros. I am curious how far does this actually go? Can you redefine the language structure so much that it borderline becomes a compiler for another language? For example, could you change the functional nature of LISP into a more object oriented syntax and semantics, maybe say having syntax closer to something like Ruby?
Especially, is it possible to get rid of the parenthesis hell using macros? I have learned enough (Emacs-)LISP to customize Emacs with my own micro-features, but I am very curious how far macros can go in customizing the language. | 4 |
1,994 | 08/05/2008 07:45:38 | 195 | 08/03/2008 11:02:15 | 1 | 1 | databinding in C# - any solution to the "illegal cross thread call" ? | <p>when you data bind in C#, the thread that changes the data causes the control to change too. but if this thread is not the one on which the control was created, youll get the above exceptions. </p>
<p>surfed the net - no good answer. </p>
<p>anyone ?</p> | c# | data-binding | null | null | null | null | open | databinding in C# - any solution to the "illegal cross thread call" ?
===
<p>when you data bind in C#, the thread that changes the data causes the control to change too. but if this thread is not the one on which the control was created, youll get the above exceptions. </p>
<p>surfed the net - no good answer. </p>
<p>anyone ?</p> | 0 |
1,995 | 08/05/2008 07:49:11 | 51 | 08/01/2008 13:31:13 | 176 | 16 | Most Efficient Way to Test Object Type | I have values stored as strings in a DataTable where each value could really represent an int, double, or string (they were all converted to strings during an import process from an external data source). I need to test and see what type each value really is.
What is more efficient for the application (or is there no practical difference)?
1. Try to convert to int (and then double). If conversion works, the return true. If an exception is thrown, return false.
2. Regular expressions designed to match the pattern of an int or double
3. Some other method? | c# | .net | double | int | null | null | open | Most Efficient Way to Test Object Type
===
I have values stored as strings in a DataTable where each value could really represent an int, double, or string (they were all converted to strings during an import process from an external data source). I need to test and see what type each value really is.
What is more efficient for the application (or is there no practical difference)?
1. Try to convert to int (and then double). If conversion works, the return true. If an exception is thrown, return false.
2. Regular expressions designed to match the pattern of an int or double
3. Some other method? | 0 |
2,018 | 08/05/2008 08:25:33 | 33 | 08/01/2008 12:32:10 | 109 | 8 | Best Book for a new Database Developer | We have just had a graduate join the team with the end aim of assisting out our DBA.
He has only a basic SQL knowledge from his degree so we are looking for a really good getting started book preferably based on MS SQL server. | sql | books | mssql | training | null | 09/15/2011 07:17:42 | off topic | Best Book for a new Database Developer
===
We have just had a graduate join the team with the end aim of assisting out our DBA.
He has only a basic SQL knowledge from his degree so we are looking for a really good getting started book preferably based on MS SQL server. | 2 |
2,027 | 08/05/2008 08:56:01 | 46 | 08/01/2008 13:13:21 | 113 | 12 | pass by reference or pass by value? | When learning a new programming language, one of the possible roadblocks you might encounter is the question whether the language is, by default, *pass-by-value or pass-by-reference*
So here is my question to all of you, in your favorite language, *how* is it actually done? and what are the *possible pitfalls*?
your favorite language can, of course, be anything you have ever played with: popular, obscure, esoteric, new, old ... | language-agnostic | oo | oop | byvalue | byreference | null | open | pass by reference or pass by value?
===
When learning a new programming language, one of the possible roadblocks you might encounter is the question whether the language is, by default, *pass-by-value or pass-by-reference*
So here is my question to all of you, in your favorite language, *how* is it actually done? and what are the *possible pitfalls*?
your favorite language can, of course, be anything you have ever played with: popular, obscure, esoteric, new, old ... | 0 |
2,034 | 08/05/2008 09:11:54 | 137 | 08/02/2008 10:46:12 | 272 | 26 | What do the result codes in svn mean? | I need a quick reference | subversion | null | null | null | null | null | open | What do the result codes in svn mean?
===
I need a quick reference | 0 |
2,041 | 08/05/2008 09:25:29 | 269 | 08/04/2008 10:13:44 | 189 | 35 | How do I create a branch in SVN? | How do I create a branch in SVN? | svn | version-control | subversion | null | null | null | open | How do I create a branch in SVN?
===
How do I create a branch in SVN? | 0 |
2,043 | 08/05/2008 09:34:49 | 369 | 08/05/2008 08:33:43 | 1 | 3 | Can a windows dll retrieve its own filename? | So a windows exe file has access to the command string which invoked it, including its path and filename. eg. "C:\MyApp\MyApp.exe --help".
But this is not so for a dll invoked via LoadLibrary. Does anyone know of a way for a dll to find out what its path and filename is?
Specifically I'm interested in a Delphi solution, but I suspect that the answer would be pretty much the same for any language. | windows-api | dll | null | null | null | null | open | Can a windows dll retrieve its own filename?
===
So a windows exe file has access to the command string which invoked it, including its path and filename. eg. "C:\MyApp\MyApp.exe --help".
But this is not so for a dll invoked via LoadLibrary. Does anyone know of a way for a dll to find out what its path and filename is?
Specifically I'm interested in a Delphi solution, but I suspect that the answer would be pretty much the same for any language. | 0 |
2,046 | 08/05/2008 09:43:01 | 372 | 08/05/2008 09:16:41 | 1 | 0 | How do I unit test persistence? | As a novice in practicing test-driven development, I often end up on a quandary as to how to unit test persistence to a database.
I know that technically this would technically be an integration test (not a unit test), but I want to find out the best strategies for the ff:
1. Testing queries.
2. Testing inserts. How do I know that it is the insert that has gone wrong if it fails? I may test it by inserting and then querying -- how do I know that it isn't the querying that went wrong?
3. Testing updates and deletes -- same as testing inserts
What are the best practices doing these? | sql-server | unit-testing | tdd | null | null | null | open | How do I unit test persistence?
===
As a novice in practicing test-driven development, I often end up on a quandary as to how to unit test persistence to a database.
I know that technically this would technically be an integration test (not a unit test), but I want to find out the best strategies for the ff:
1. Testing queries.
2. Testing inserts. How do I know that it is the insert that has gone wrong if it fails? I may test it by inserting and then querying -- how do I know that it isn't the querying that went wrong?
3. Testing updates and deletes -- same as testing inserts
What are the best practices doing these? | 0 |
2,048 | 08/05/2008 09:45:41 | 298 | 08/04/2008 13:29:28 | 1 | 1 | Monitor a specific RSS | For all the RSS feeds I subscribe to I use [Google Reader][1] which I love. I do however have a couple of specific RSS feeds that I'd like to be notified as soon as when they get updated (say for example a RSS feed for a forum I like to monitor and respond to as quick as possible).
Are there any tools out there for this kind of monitoring and that has some kind of alert functionality (a prompt window for example)?
I've tried [Simbolic RSS Alert][2] but I found it a bit buggy and couldn't get it to alert my as often as I liked.
Suggestions? Different experience of Simbolic?
[1]: http://www.google.com/reader/
[2]: http://www.simbolic.net/software/RSSAlert/ | rss | null | null | null | null | null | open | Monitor a specific RSS
===
For all the RSS feeds I subscribe to I use [Google Reader][1] which I love. I do however have a couple of specific RSS feeds that I'd like to be notified as soon as when they get updated (say for example a RSS feed for a forum I like to monitor and respond to as quick as possible).
Are there any tools out there for this kind of monitoring and that has some kind of alert functionality (a prompt window for example)?
I've tried [Simbolic RSS Alert][2] but I found it a bit buggy and couldn't get it to alert my as often as I liked.
Suggestions? Different experience of Simbolic?
[1]: http://www.google.com/reader/
[2]: http://www.simbolic.net/software/RSSAlert/ | 0 |
2,056 | 08/05/2008 10:06:33 | 358 | 08/05/2008 01:41:40 | 51 | 4 | What are MVP and MVC and what is the difference? | When looking beyond the RAD (drag-drop and configure) way of building User Interfaces that many tools encourage you are likely to come across 2 design patterns called Model-View-Controller and Model-View-Presenter. My question has two parts to it:
1. What issues do these patterns address?
2. How are they similar?
3. How are they different? | gui | design | mvc | patterns | mvp | null | open | What are MVP and MVC and what is the difference?
===
When looking beyond the RAD (drag-drop and configure) way of building User Interfaces that many tools encourage you are likely to come across 2 design patterns called Model-View-Controller and Model-View-Presenter. My question has two parts to it:
1. What issues do these patterns address?
2. How are they similar?
3. How are they different? | 0 |
2,084 | 08/05/2008 10:55:31 | 375 | 08/05/2008 09:55:57 | 1 | 1 | Can you recommend a good CSS online resource or book? | Are there any favorite online references or good introductory and intermediate/advanced books on this topic that you'd recommend?
The backstory is that I'm working on a web development project that is "re-skinning" our existing web site to make it more usable and visually appealing given current technologies that either weren't available or widely adopted as the site evolved (over the last ten-plus years). Of the new technologies and methods, CSS, although not really all that new, is the most interesting to me because it is clear that it has great power beyond simple styling of fonts and colors - and, as the saying goes, "With great power comes great responsibility." In other words, it is (now) clear to me that CSS is more than a way to apply a look and feel to page markup but is a way to *apply behaviors* to web pages. So it seems to me that it will be required to understand at a fundamental level "how CSS works" not so much from a page designer's perspective but from that of a programmer or software engineer in order to find and correct "bugs" in the behaviors of a given web page.
So, I'm looking for a place to start... | css | books | null | null | null | 09/17/2011 22:45:57 | not constructive | Can you recommend a good CSS online resource or book?
===
Are there any favorite online references or good introductory and intermediate/advanced books on this topic that you'd recommend?
The backstory is that I'm working on a web development project that is "re-skinning" our existing web site to make it more usable and visually appealing given current technologies that either weren't available or widely adopted as the site evolved (over the last ten-plus years). Of the new technologies and methods, CSS, although not really all that new, is the most interesting to me because it is clear that it has great power beyond simple styling of fonts and colors - and, as the saying goes, "With great power comes great responsibility." In other words, it is (now) clear to me that CSS is more than a way to apply a look and feel to page markup but is a way to *apply behaviors* to web pages. So it seems to me that it will be required to understand at a fundamental level "how CSS works" not so much from a page designer's perspective but from that of a programmer or software engineer in order to find and correct "bugs" in the behaviors of a given web page.
So, I'm looking for a place to start... | 4 |
2,101 | 08/05/2008 11:29:21 | 383 | 08/05/2008 10:46:37 | 28 | 3 | C# Unit Testing Example | I've now found out [what Unit Testing is][1], does anyone have an example of Unit Testing in C#?
The example must be simple :)
[1]: http://stackoverflow.com/questions/1383/#1393 | c# | unit-testing | null | null | null | null | open | C# Unit Testing Example
===
I've now found out [what Unit Testing is][1], does anyone have an example of Unit Testing in C#?
The example must be simple :)
[1]: http://stackoverflow.com/questions/1383/#1393 | 0 |
2,120 | 08/05/2008 11:49:11 | 383 | 08/05/2008 10:46:37 | 36 | 5 | Convert HashBytes to VarChar | I want to get the MD5 Hash of a string value in SQL Server 2005, I do this with the following command:
SELECT HashBytes('MD5', 'HelloWorld')
However, this returns a VarBinary instead of a VarChar value. If I attempt to convert "0x68E109F0F40CA72A15E05CC22786F8E6" into a VarChar I get "há ðô§*à\Â'†øæ" instead of "68E109F0F40CA72A15E05CC22786F8E6".
Is there any SQL based solution? | sql | 2005 | md5 | null | null | null | open | Convert HashBytes to VarChar
===
I want to get the MD5 Hash of a string value in SQL Server 2005, I do this with the following command:
SELECT HashBytes('MD5', 'HelloWorld')
However, this returns a VarBinary instead of a VarChar value. If I attempt to convert "0x68E109F0F40CA72A15E05CC22786F8E6" into a VarChar I get "há ðô§*à\Â'†øæ" instead of "68E109F0F40CA72A15E05CC22786F8E6".
Is there any SQL based solution? | 0 |
2,123 | 08/05/2008 11:51:16 | 193 | 08/03/2008 10:44:38 | 1 | 0 | How do I make a checkbox toggle from clicking on the text label as well? | Checkboxes in html forms don't have implicit labels with them. Adding an explicit label (some text) next to it doesn't toggle the checkbox. | html | checkbox | null | null | null | null | open | How do I make a checkbox toggle from clicking on the text label as well?
===
Checkboxes in html forms don't have implicit labels with them. Adding an explicit label (some text) next to it doesn't toggle the checkbox. | 0 |
2,131 | 08/05/2008 11:58:47 | 227 | 08/03/2008 17:53:19 | 140 | 12 | A good freeware ICL browser? | *Pre-emptive justification: You need to fiddle with icons when programming, so this counts as a programming question, right?*
Do you know of any good freeware applications that can browse the contents of Windows Icon Library (.ICL) files? I'm not interested in simple extraction. I'm looking for explorer-like browsing within libraries and good display of different icon formats. | freeware | icon | null | null | null | null | open | A good freeware ICL browser?
===
*Pre-emptive justification: You need to fiddle with icons when programming, so this counts as a programming question, right?*
Do you know of any good freeware applications that can browse the contents of Windows Icon Library (.ICL) files? I'm not interested in simple extraction. I'm looking for explorer-like browsing within libraries and good display of different icon formats. | 0 |
2,134 | 08/05/2008 12:00:28 | 380 | 08/05/2008 10:39:18 | 1 | 4 | Do sealed classes really offer performance Benefits? | I have come across a lot of optimization tips which say that you should mark your classes as sealed to get extra performance benefits.
I ran some tests to check the performance differential and found none. Am I doing something wrong? Am I missing the case where sealed classes will give better results?
Has anyone run tests and seen a difference?
Help me learn :) | .net | framework | null | null | null | null | open | Do sealed classes really offer performance Benefits?
===
I have come across a lot of optimization tips which say that you should mark your classes as sealed to get extra performance benefits.
I ran some tests to check the performance differential and found none. Am I doing something wrong? Am I missing the case where sealed classes will give better results?
Has anyone run tests and seen a difference?
Help me learn :) | 0 |
2,138 | 08/05/2008 12:03:10 | 373 | 08/05/2008 09:37:52 | 1 | 1 | LINQ on the .NET 2.0 Runtime | Can a LINQ enabled app run on a machine that only has the .NET 2.0 runtime installed?
In theory, LINQ is nothing more than syntactic sugar, and the resulting IL code should look the same as it would have in .NET 2.0.
How can I write LINQ without using the .NET 3.5 libraries? Will it run on .NET 2.0? | .net | linq | clr | null | null | null | open | LINQ on the .NET 2.0 Runtime
===
Can a LINQ enabled app run on a machine that only has the .NET 2.0 runtime installed?
In theory, LINQ is nothing more than syntactic sugar, and the resulting IL code should look the same as it would have in .NET 2.0.
How can I write LINQ without using the .NET 3.5 libraries? Will it run on .NET 2.0? | 0 |
2,154 | 08/05/2008 12:13:40 | 383 | 08/05/2008 10:46:37 | 84 | 8 | ASP.NET MVC Without Visual Studio | Instead of writing my ASP.NET C# applications in Visual Studio, I used my favourite text editor UltraEdit32.
Is there anyway I can implement MVC without the use of VS? | c# | asp.net | visual-studio | mvc | null | null | open | ASP.NET MVC Without Visual Studio
===
Instead of writing my ASP.NET C# applications in Visual Studio, I used my favourite text editor UltraEdit32.
Is there anyway I can implement MVC without the use of VS? | 0 |
2,155 | 08/05/2008 12:13:40 | 371 | 08/05/2008 09:14:27 | 1 | 2 | How do I define custom web.config sections with potential child elements and attributes for the properties? | The web applications I develop often require co-dependant configuration settings and there are also settings that have to change as we move between each of our environments.
All our settings are currently simple key value pairs but it would be useful to create custom config sections so that it is obvious when two values need to change together or when the settings need to change for an environment.
What's the best way to create custom config sections and are there any special considerations to make when retrieving the values? | asp.net | bestpractices | null | null | null | null | open | How do I define custom web.config sections with potential child elements and attributes for the properties?
===
The web applications I develop often require co-dependant configuration settings and there are also settings that have to change as we move between each of our environments.
All our settings are currently simple key value pairs but it would be useful to create custom config sections so that it is obvious when two values need to change together or when the settings need to change for an environment.
What's the best way to create custom config sections and are there any special considerations to make when retrieving the values? | 0 |
2,158 | 08/05/2008 12:15:08 | 340 | 08/04/2008 18:49:59 | 26 | 0 | Creating a custom button in Java | Is there a way to make a JButton with your own button graphic not just with an image inside the button? If not is another way to create a custom button in java? | java | button | null | null | null | null | open | Creating a custom button in Java
===
Is there a way to make a JButton with your own button graphic not just with an image inside the button? If not is another way to create a custom button in java? | 0 |
2,196 | 08/05/2008 12:40:30 | 192 | 08/03/2008 10:15:38 | 124 | 11 | Easy way to AJAX WebControls | I've got an web application that I'm trying to optimise. Some of the controls are hidden in dialog-style DIVs, so I'd like to have them load in via AJAX only when the user wants to see them. This is fine for controls that are mostly Literal-based (various menus and widgets), but when I have what I call "dirty" controls - ones that write extensive information to the ViewState, put tons of CSS or script on the page, require lots of references etc - these are seemingly impossible to move "out of page", especially considering how ASP.NET will react on postback.
I was considering some kind of step where I override Render, find markers for the bits I want to move out and put AJAX placeholders in there, but not only does the server overhead seem extreme, it also feels like a complete hack. Besides, the key element here is the dialog boxes that contain forms with validation controls on them, and I can't imagine how I would move the controls _and_ their required scripts.
In my fevered imagination, I want to do this:
AJAXifier.AJAXify(ctlEditForm);
Sadly, I know this is a dream. How close can I really get to quick-and-easy AJAXification without causing too much load on the server? | asp.net | ajax | null | null | null | null | open | Easy way to AJAX WebControls
===
I've got an web application that I'm trying to optimise. Some of the controls are hidden in dialog-style DIVs, so I'd like to have them load in via AJAX only when the user wants to see them. This is fine for controls that are mostly Literal-based (various menus and widgets), but when I have what I call "dirty" controls - ones that write extensive information to the ViewState, put tons of CSS or script on the page, require lots of references etc - these are seemingly impossible to move "out of page", especially considering how ASP.NET will react on postback.
I was considering some kind of step where I override Render, find markers for the bits I want to move out and put AJAX placeholders in there, but not only does the server overhead seem extreme, it also feels like a complete hack. Besides, the key element here is the dialog boxes that contain forms with validation controls on them, and I can't imagine how I would move the controls _and_ their required scripts.
In my fevered imagination, I want to do this:
AJAXifier.AJAXify(ctlEditForm);
Sadly, I know this is a dream. How close can I really get to quick-and-easy AJAXification without causing too much load on the server? | 0 |
2,209 | 08/05/2008 12:46:45 | 396 | 08/05/2008 12:46:44 | 1 | 0 | How can I change the background of a masterpage from the code behind of a content page? | I specifically want to add the style of background-color to the body tag of a master page from the code behind (C#) of a content page that uses that master page.
I have different content pages that need to make the master page have different colors depending on which content page is loaded in such that the master page matches the content page's theme. | c# | asp.net | master | page | content | null | open | How can I change the background of a masterpage from the code behind of a content page?
===
I specifically want to add the style of background-color to the body tag of a master page from the code behind (C#) of a content page that uses that master page.
I have different content pages that need to make the master page have different colors depending on which content page is loaded in such that the master page matches the content page's theme. | 0 |
2,214 | 08/05/2008 12:50:15 | 395 | 08/05/2008 12:45:51 | 1 | 0 | What's the best way to implement BDD/TDD in .NET 2.0? | I'm looking to add a testing suite to my application, however I can't move to the newer testing frameworks for .NET 3.5. Does anyone have a suggestion about good testing frameworks to use? | c# | .net | testing | tdd | bdd | null | open | What's the best way to implement BDD/TDD in .NET 2.0?
===
I'm looking to add a testing suite to my application, however I can't move to the newer testing frameworks for .NET 3.5. Does anyone have a suggestion about good testing frameworks to use? | 0 |
2,222 | 08/05/2008 12:52:42 | 266 | 08/04/2008 10:02:44 | 156 | 7 | How can I unit test Flex applications from within the IDE or a build script? | I'm currently working on an application with a frontend written in Adobe Flex 3. I'm aware of [FlexUnit][1] but what I'd really like is a unit test runner for Ant/NAnt and a runner that integrates with the Flex Builder IDE (AKA Eclipse). Does one exist?
Also, are there any other resources on how to do Flex development "the right way" besides the [Cairngorm microarchitecture][2] example?
[1]: http://code.google.com/p/as3flexunitlib/
[2]: http://labs.adobe.com/wiki/index.php/Cairngorm | unit-testing | flex | tdd | eclipse | build-automation | null | open | How can I unit test Flex applications from within the IDE or a build script?
===
I'm currently working on an application with a frontend written in Adobe Flex 3. I'm aware of [FlexUnit][1] but what I'd really like is a unit test runner for Ant/NAnt and a runner that integrates with the Flex Builder IDE (AKA Eclipse). Does one exist?
Also, are there any other resources on how to do Flex development "the right way" besides the [Cairngorm microarchitecture][2] example?
[1]: http://code.google.com/p/as3flexunitlib/
[2]: http://labs.adobe.com/wiki/index.php/Cairngorm | 0 |
2,232 | 08/05/2008 12:56:52 | 25 | 08/01/2008 12:15:23 | 77 | 14 | Calling Bash Commands From Ruby | How do I call console/bash commands from inside of a Ruby Program? Also, how do I get output from these commands back into my program? | ruby | bash | console | null | null | null | open | Calling Bash Commands From Ruby
===
How do I call console/bash commands from inside of a Ruby Program? Also, how do I get output from these commands back into my program? | 0 |
2,250 | 08/05/2008 13:07:40 | 383 | 08/05/2008 10:46:37 | 99 | 15 | Datatable vs Dataset | I current use a datatable to get results from a database which I can use in my code.
However, many example on the web show using a dataset instead and accessing the tables through the collections method.
Is there any advantage, performance wise or otherwise, of using datasets or datatables as a storage method for sql results? | sql | dataset | datatable | null | null | null | open | Datatable vs Dataset
===
I current use a datatable to get results from a database which I can use in my code.
However, many example on the web show using a dataset instead and accessing the tables through the collections method.
Is there any advantage, performance wise or otherwise, of using datasets or datatables as a storage method for sql results? | 0 |
2,253 | 08/05/2008 13:10:14 | 398 | 08/05/2008 12:58:30 | 1 | 0 | Is ReSharper worth the adjustment, is there a good tutorial for 4? | I was watching a couple of episodes of dnr.tv and was given my first glimpse of ReSharper, I was very impressed so I decided to give it a try, fully aware that it'd take some getting used to, but is it worth depending on this dependency? Also I learn best by following tutorials first then experimenting, is there a good tutorial for ReSharper **4** that I've missed on my googling? | c# | resharper | null | null | null | null | open | Is ReSharper worth the adjustment, is there a good tutorial for 4?
===
I was watching a couple of episodes of dnr.tv and was given my first glimpse of ReSharper, I was very impressed so I decided to give it a try, fully aware that it'd take some getting used to, but is it worth depending on this dependency? Also I learn best by following tutorials first then experimenting, is there a good tutorial for ReSharper **4** that I've missed on my googling? | 0 |
2,256 | 08/05/2008 13:11:14 | 379 | 08/05/2008 10:03:38 | 11 | 1 | Mapping Stream data to data structures in C# | Is there a way of mapping data collected on a stream or array to a data structure or vice-versa?
In C++ this would simply be a matter of casting a pointer to the stream as a data type I want to use (or vice-versa for the reverse)
eg: in C++
Mystruct * pMyStrct = (Mystruct*)&SomeDataStream;
pMyStrct->Item1 = 25;
int iReadData = pMyStrct->Item2;
obviously the C++ way is pretty unsafe unless you are sure of the quality of the stream data when reading incoming data, but for outgoing data is super quick and easy. | c# | c++ | null | null | null | null | open | Mapping Stream data to data structures in C#
===
Is there a way of mapping data collected on a stream or array to a data structure or vice-versa?
In C++ this would simply be a matter of casting a pointer to the stream as a data type I want to use (or vice-versa for the reverse)
eg: in C++
Mystruct * pMyStrct = (Mystruct*)&SomeDataStream;
pMyStrct->Item1 = 25;
int iReadData = pMyStrct->Item2;
obviously the C++ way is pretty unsafe unless you are sure of the quality of the stream data when reading incoming data, but for outgoing data is super quick and easy. | 0 |
2,262 | 08/05/2008 13:14:48 | 383 | 08/05/2008 10:46:37 | 97 | 15 | ASP.NET URL Rewriting | How do I rewrite URL's in ASP.NET?
I would like users to be able to goto **http://www.website.com/users/smith** instead of **http://www.website.com/?user=smith** | asp.net | null | null | null | null | null | open | ASP.NET URL Rewriting
===
How do I rewrite URL's in ASP.NET?
I would like users to be able to goto **http://www.website.com/users/smith** instead of **http://www.website.com/?user=smith** | 0 |
2,267 | 08/05/2008 13:17:46 | 111 | 08/02/2008 03:35:55 | 101 | 6 | How to filter and combine 2 datasets in C# | I am building a web page to show a customer what software they purchased and to give them a link to download said software. Unfortunately, the data on what was purchased and the download information are in separate databases so I can't just take care of it with joins in a query.
The common item is SKU. I'll be pulling back a list of SKUs from the customer purchases database, and on the download table is a comma deleted list of SKUs associated with that download. My intention, at the moment, is to create from this one datatable to populate a GridView.
Any suggestions on how to do this efficiently would be appreciated. If it helps, I can pretty easily pull back the data as a DataSet or a DataReader, if either one would be better for this purpose.
Eric Sipple | c# | .net | null | null | null | null | open | How to filter and combine 2 datasets in C#
===
I am building a web page to show a customer what software they purchased and to give them a link to download said software. Unfortunately, the data on what was purchased and the download information are in separate databases so I can't just take care of it with joins in a query.
The common item is SKU. I'll be pulling back a list of SKUs from the customer purchases database, and on the download table is a comma deleted list of SKUs associated with that download. My intention, at the moment, is to create from this one datatable to populate a GridView.
Any suggestions on how to do this efficiently would be appreciated. If it helps, I can pretty easily pull back the data as a DataSet or a DataReader, if either one would be better for this purpose.
Eric Sipple | 0 |
2,279 | 08/05/2008 13:24:11 | 149 | 08/02/2008 15:03:56 | 75 | 9 | Add Custom Tag to Visual Studio Validation | How can I add rules to Visual Studio (2005 and up) for validating property markup (HTML) for a vendor's proprietary controls?
My client uses a control which requires several properties to be set as tags in the aspx file which generates something like 215 validation errors on each build. It's not preventing me from building, but real errors are getting lost in the noise. | visual-studio | null | null | null | null | null | open | Add Custom Tag to Visual Studio Validation
===
How can I add rules to Visual Studio (2005 and up) for validating property markup (HTML) for a vendor's proprietary controls?
My client uses a control which requires several properties to be set as tags in the aspx file which generates something like 215 validation errors on each build. It's not preventing me from building, but real errors are getting lost in the noise. | 0 |
2,284 | 08/05/2008 13:25:29 | 307 | 08/04/2008 14:26:05 | 80 | 12 | How to contribute code back to Open Source Project | If you're following an Open Source project and would like to contribute code changes, what will you need to do? | opensource | language-agnostic | faq | sourcecontrol | null | null | open | How to contribute code back to Open Source Project
===
If you're following an Open Source project and would like to contribute code changes, what will you need to do? | 0 |
2,300 | 08/05/2008 13:30:46 | 193 | 08/03/2008 10:44:38 | 39 | 12 | How do I build a collection in classic ASP? | I want to be able to do:
For Each thing In things
End For | vbscript | asp | null | null | null | null | open | How do I build a collection in classic ASP?
===
I want to be able to do:
For Each thing In things
End For | 0 |
2,308 | 08/05/2008 13:38:42 | 383 | 08/05/2008 10:46:37 | 130 | 17 | ASP.NET Display SVN Revision Number | I see in the Stack Overflow footer that the SVN Revision number is displayed. Is this automated and if so, how does one implement it in ASP.NET?
*(Solutions in other languages are acceptable)* | asp.net | svn | null | null | null | null | open | ASP.NET Display SVN Revision Number
===
I see in the Stack Overflow footer that the SVN Revision number is displayed. Is this automated and if so, how does one implement it in ASP.NET?
*(Solutions in other languages are acceptable)* | 0 |
2,311 | 08/05/2008 13:40:47 | 394 | 08/05/2008 12:36:16 | 11 | 2 | File size differences after copying a file to a server vía FTP | I had an PHP script to update the webserver from a local directory.
I'm migrating the script into Python, it works almost OK but after a PUT command the size of the file
in the server isn't the same as the local file. Once I download again the file from the FTP server,
the only difference is the CR/LF mark. It annoys me because the same script is comparing the size of the
files to update. Also, it works perfectly in PHP vía ftp_put.
from ftplib import FTP
ftpserver = "myserver"
ftpuser = "myuser"
ftppass = "mypwd"
locfile = "g:/test/style.css"
ftpfile = "/temp/style.css"
try:
ftp = FTP(ftpserver, ftpuser, ftppass)
except:
exit ("Cannot connect")
f = open (locfile, "r")
try:
ftp.delete (ftpfile)
except:
pass
# ftp.sendcmd ("TYPE I")
# ftp.storlines("STOR %s" % ftpfile, f)
ftp.storbinary("STOR %s" % ftpfile, f)
f.close()
ftp.dir (ftpfile)
ftp.quit()
###
Any suggestions?
TIA,
Pablo | python | null | null | null | null | null | open | File size differences after copying a file to a server vía FTP
===
I had an PHP script to update the webserver from a local directory.
I'm migrating the script into Python, it works almost OK but after a PUT command the size of the file
in the server isn't the same as the local file. Once I download again the file from the FTP server,
the only difference is the CR/LF mark. It annoys me because the same script is comparing the size of the
files to update. Also, it works perfectly in PHP vía ftp_put.
from ftplib import FTP
ftpserver = "myserver"
ftpuser = "myuser"
ftppass = "mypwd"
locfile = "g:/test/style.css"
ftpfile = "/temp/style.css"
try:
ftp = FTP(ftpserver, ftpuser, ftppass)
except:
exit ("Cannot connect")
f = open (locfile, "r")
try:
ftp.delete (ftpfile)
except:
pass
# ftp.sendcmd ("TYPE I")
# ftp.storlines("STOR %s" % ftpfile, f)
ftp.storbinary("STOR %s" % ftpfile, f)
f.close()
ftp.dir (ftpfile)
ftp.quit()
###
Any suggestions?
TIA,
Pablo | 0 |
2,328 | 08/05/2008 13:52:12 | 67 | 08/01/2008 14:49:18 | 33 | 1 | Tracking state using ASP.NET AJAX / ICallbackEventHandler | I have a problem with maintaining state in an ASP.NET AJAX page. Short version: I need some way to update the page ViewState after an async callback has been made, to reflect any state changes the server made during the async call.
This seems to be a common problem, but I will describe my scenario to help explain:
I have a grid-like control which has some JavaScript enhancements - namely, the ability to drag and drop columns and rows. When a column or row is dropped into a new position, an AJAX method is invoked to notify the control server-side and fire a corresponding server-side event ("OnColumnMoved" or "OnRowMoved").
ASP.NET AJAX calls, by default, send the entire page as the request. That way the page goes through a complete lifecycle, viewstate is persisted and the state of the control is restored before the RaiseCallbackEvent method is invoked.
However, since the AJAX call does not update the page, the ViewState reflects the *original* state of the control, even after the column or row has been moved. So the second time a client-side action occurs, the AJAX request goes to the server and the page & control are built back up again to reflect the *first* state of the control, not the state after the first column or row was moved.
This problem extends to many implications. For example if we have a client-side/AJAX action to add a new item to the grid, and then a row is dragged, the grid is built server-side with one less item than on the client-side.
And finally & most seriously for my specific example, the actual data source object we are acting upon is stored in the page ViewState. That was a design decision to allow keeping a stateful copy of the manipulated data which can either be committed to DB after many manipulations or discarded if the user backs out. That is very difficult to change.
So, again, I need a way for the page ViewState to be updated on callback after the AJAX method is fired. | asp.net | ajax | viewstate | null | null | null | open | Tracking state using ASP.NET AJAX / ICallbackEventHandler
===
I have a problem with maintaining state in an ASP.NET AJAX page. Short version: I need some way to update the page ViewState after an async callback has been made, to reflect any state changes the server made during the async call.
This seems to be a common problem, but I will describe my scenario to help explain:
I have a grid-like control which has some JavaScript enhancements - namely, the ability to drag and drop columns and rows. When a column or row is dropped into a new position, an AJAX method is invoked to notify the control server-side and fire a corresponding server-side event ("OnColumnMoved" or "OnRowMoved").
ASP.NET AJAX calls, by default, send the entire page as the request. That way the page goes through a complete lifecycle, viewstate is persisted and the state of the control is restored before the RaiseCallbackEvent method is invoked.
However, since the AJAX call does not update the page, the ViewState reflects the *original* state of the control, even after the column or row has been moved. So the second time a client-side action occurs, the AJAX request goes to the server and the page & control are built back up again to reflect the *first* state of the control, not the state after the first column or row was moved.
This problem extends to many implications. For example if we have a client-side/AJAX action to add a new item to the grid, and then a row is dragged, the grid is built server-side with one less item than on the client-side.
And finally & most seriously for my specific example, the actual data source object we are acting upon is stored in the page ViewState. That was a design decision to allow keeping a stateful copy of the manipulated data which can either be committed to DB after many manipulations or discarded if the user backs out. That is very difficult to change.
So, again, I need a way for the page ViewState to be updated on callback after the AJAX method is fired. | 0 |
2,332 | 08/05/2008 13:57:05 | 137 | 08/02/2008 10:46:12 | 337 | 27 | How do I turn on line numbers by default in TextWrangler on the Mac? | I am fed up having to turn them on every time I open the application. | osx | textwrangler | null | null | null | null | open | How do I turn on line numbers by default in TextWrangler on the Mac?
===
I am fed up having to turn them on every time I open the application. | 0 |
2,345 | 08/05/2008 14:06:44 | 398 | 08/05/2008 12:58:30 | 1 | 0 | What are the top Programming "shows" | When I started with .net I really got into podcasts/screencasts as it's an engaging way to learn and it's nice to hear other people passionate about software. So what can everyone contribute to this list? Hopefully this will turn into a nice list so others wont have to go rummaging around as much. I'll start by posting my two fave ones, but please remember that I'd love to add media for other languages/technology.
**.net related**
A podcast focused on, obviously, .net technology, I'm pretty sure this is the most widely known podcast for .net
[http://www.dotnetrocks.com/][1]
A screencast very closely tied to .net Rocks with one of the hosts! Almost all of the episodes there is an interviewee on the show who will demonstrate techniques/showoff a particular technology.
[http://www.dnrtv.com/][2]
**Misc**
Two experienced software developers talk about their joint venture and general topics in the world of software development.
[http://blog.stackoverflow.com/][3]
[1]: http://www.dotnetrocks.com/
[2]: http://www.dnrtv.com/
[3]: http://blog.stackoverflow.com/ | language-agnostic | null | null | null | null | null | open | What are the top Programming "shows"
===
When I started with .net I really got into podcasts/screencasts as it's an engaging way to learn and it's nice to hear other people passionate about software. So what can everyone contribute to this list? Hopefully this will turn into a nice list so others wont have to go rummaging around as much. I'll start by posting my two fave ones, but please remember that I'd love to add media for other languages/technology.
**.net related**
A podcast focused on, obviously, .net technology, I'm pretty sure this is the most widely known podcast for .net
[http://www.dotnetrocks.com/][1]
A screencast very closely tied to .net Rocks with one of the hosts! Almost all of the episodes there is an interviewee on the show who will demonstrate techniques/showoff a particular technology.
[http://www.dnrtv.com/][2]
**Misc**
Two experienced software developers talk about their joint venture and general topics in the world of software development.
[http://blog.stackoverflow.com/][3]
[1]: http://www.dotnetrocks.com/
[2]: http://www.dnrtv.com/
[3]: http://blog.stackoverflow.com/ | 0 |
2,348 | 08/05/2008 14:07:58 | 193 | 08/03/2008 10:44:38 | 50 | 10 | What is the best way to iterate through an array in Classic Asp VBScript? | Is:
<pre><code>For i = LBound(arr) To UBound(arr)</code></pre>
The best way?
What is the point in asking for LBound? Surely that is always 1 in VBScript isn't it? | classicasp | vbscript | null | null | null | null | open | What is the best way to iterate through an array in Classic Asp VBScript?
===
Is:
<pre><code>For i = LBound(arr) To UBound(arr)</code></pre>
The best way?
What is the point in asking for LBound? Surely that is always 1 in VBScript isn't it? | 0 |
2,349 | 08/05/2008 14:07:58 | 26 | 08/01/2008 12:18:14 | 48 | 18 | How to tab focus onto a dropdown field in Mac OSX | In Windows, in any windows form / web browser, you can use the tab button to switch focus through all of the form fields. It will stop on textboxes, radiobuttons, checkboxes, dropdown menus, etc. However, in Mac OSX, tab skips dropdown menus. Is there anyway to change this behavior, or access them any other way without using a mouse? | osx | null | null | null | null | null | open | How to tab focus onto a dropdown field in Mac OSX
===
In Windows, in any windows form / web browser, you can use the tab button to switch focus through all of the form fields. It will stop on textboxes, radiobuttons, checkboxes, dropdown menus, etc. However, in Mac OSX, tab skips dropdown menus. Is there anyway to change this behavior, or access them any other way without using a mouse? | 0 |
2,364 | 08/05/2008 14:14:36 | 290 | 08/04/2008 12:57:50 | 66 | 5 | What is Your Experience with Unit Testing in Practice? | //Yes, Virginia, there is a wikipedia.
What I'm asking here is what you've found unit testing to be in your own practice. It would be helpful to know the pros, cons, obstacles to introducing unit testing, flaws in the unit testing process, value gained by unit testing, and so on that the developers here have observed in their day to day practice.
**What we're doing:**
I work on a web application w/ an Oracle backend. The application has been in production for 8+ years, and there are ongoing enhancement efforts along with the maintenance work.
My development team does Unit Test Scripts (UTS) that aim to walk a developer through the unit test of a given code package. These UTS are 2-20 page Word documents that describe the purpose of the package, the structure, and elaborate on given modules within a package. The UTS concludes with a section that describes an Application Test of the package.
This doesn't sound like unit testing to me. It sounds a lot more like system integration testing w/ a description of the package. It certainly is not automated.
With our UTS practice in its current state, managing/editing/follwing the documents is not a trivial task. And when enhancements or maintenance work to a given package is needed, there are not strict testing procedures put in place to guarantee outputs are satisfactory. Instead, we have this higher level UTS to follow, which does not come close to guaranteeing correct output in various code traces. | unittesting | tdd | sqa | softwareengineering | null | null | open | What is Your Experience with Unit Testing in Practice?
===
//Yes, Virginia, there is a wikipedia.
What I'm asking here is what you've found unit testing to be in your own practice. It would be helpful to know the pros, cons, obstacles to introducing unit testing, flaws in the unit testing process, value gained by unit testing, and so on that the developers here have observed in their day to day practice.
**What we're doing:**
I work on a web application w/ an Oracle backend. The application has been in production for 8+ years, and there are ongoing enhancement efforts along with the maintenance work.
My development team does Unit Test Scripts (UTS) that aim to walk a developer through the unit test of a given code package. These UTS are 2-20 page Word documents that describe the purpose of the package, the structure, and elaborate on given modules within a package. The UTS concludes with a section that describes an Application Test of the package.
This doesn't sound like unit testing to me. It sounds a lot more like system integration testing w/ a description of the package. It certainly is not automated.
With our UTS practice in its current state, managing/editing/follwing the documents is not a trivial task. And when enhancements or maintenance work to a given package is needed, there are not strict testing procedures put in place to guarantee outputs are satisfactory. Instead, we have this higher level UTS to follow, which does not come close to guaranteeing correct output in various code traces. | 0 |
2,381 | 08/05/2008 14:26:21 | 377 | 08/05/2008 10:01:14 | 31 | 8 | How to tab between buttons on an OSX dialog box | I know that there has been a similar question asked here very recently, but I was wondering if it was possible to tab between buttons on default OSX dialog boxes?
I already have the "All Controls" option enabled in System Preferences->Keyboard and mouse->keyboard shortcuts, but no joy.
Thanks | osx | tab | control | null | null | null | open | How to tab between buttons on an OSX dialog box
===
I know that there has been a similar question asked here very recently, but I was wondering if it was possible to tab between buttons on default OSX dialog boxes?
I already have the "All Controls" option enabled in System Preferences->Keyboard and mouse->keyboard shortcuts, but no joy.
Thanks | 0 |
2,384 | 08/05/2008 14:28:57 | 143 | 08/02/2008 12:45:43 | 156 | 3 | Read binary file into a struct C# | I'm trying to read binary data using C#. I have all information about the layout of the data in the files I want to read. I'm able to read the data "chunk by chunk", i.e. getting the first 40 bytes of data converting it to a string, get the next 40 bytes, ...
Since there are at least three slighlty different version of the data, I would like to read the data directly into a struct. It just feels so much more right than by reading it "line by line".
I have tried the following approach but to no avail:
StructType aStruct;
int count = Marshal.SizeOf(typeof(StructType));
byte[] readBuffer = new byte[count];
BinaryReader reader = new BinaryReader(stream);
readBuffer = reader.ReadBytes(count);
GCHandle handle = GCHandle.Alloc(readBuffer, GCHandleType.Pinned);
aStruct = (StructType) Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(StructType));
handle.Free();
The stream is an opened FileStream from which I have began to read from. I get an AccessViolationException when using Marshal.PtrToStructure.
The stream contains more information than I'm trying to read since I'm not interested in data at the end of the file.
The struct is defined like:
[StructLayout(LayoutKind.Explicit)]
struct StructType
{
[FieldOffset(0)]
public string FileDate;
[FieldOffset(8)]
public string FileTime;
[FieldOffset(16)]
public int Id1;
[FieldOffset(20)]
public string Id2;
}
The examples code is changed from original to make this question shorter.
How would I read binary data from a file into a struct? | c# | null | null | null | null | null | open | Read binary file into a struct C#
===
I'm trying to read binary data using C#. I have all information about the layout of the data in the files I want to read. I'm able to read the data "chunk by chunk", i.e. getting the first 40 bytes of data converting it to a string, get the next 40 bytes, ...
Since there are at least three slighlty different version of the data, I would like to read the data directly into a struct. It just feels so much more right than by reading it "line by line".
I have tried the following approach but to no avail:
StructType aStruct;
int count = Marshal.SizeOf(typeof(StructType));
byte[] readBuffer = new byte[count];
BinaryReader reader = new BinaryReader(stream);
readBuffer = reader.ReadBytes(count);
GCHandle handle = GCHandle.Alloc(readBuffer, GCHandleType.Pinned);
aStruct = (StructType) Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(StructType));
handle.Free();
The stream is an opened FileStream from which I have began to read from. I get an AccessViolationException when using Marshal.PtrToStructure.
The stream contains more information than I'm trying to read since I'm not interested in data at the end of the file.
The struct is defined like:
[StructLayout(LayoutKind.Explicit)]
struct StructType
{
[FieldOffset(0)]
public string FileDate;
[FieldOffset(8)]
public string FileTime;
[FieldOffset(16)]
public int Id1;
[FieldOffset(20)]
public string Id2;
}
The examples code is changed from original to make this question shorter.
How would I read binary data from a file into a struct? | 0 |
2,399 | 08/05/2008 14:41:32 | 307 | 08/04/2008 14:26:05 | 100 | 15 | How to transition to Functional Programming | It seems that the next major transition / fad will be towards Functional Programming. What resources / experiences are you finding necessary to grok functional programming? | language-agnostic | functional | education | self-improvement | null | 03/02/2012 17:28:28 | not constructive | How to transition to Functional Programming
===
It seems that the next major transition / fad will be towards Functional Programming. What resources / experiences are you finding necessary to grok functional programming? | 4 |
2,402 | 08/05/2008 14:43:41 | 384 | 08/05/2008 11:03:36 | 51 | 6 | What programs do you use to create graphic images? | Background: I am working as a freelance web-developer. Now, lately this has meant that I have to design a lot of graphic images, logos etc for the the websites I create.
So, are there any good resources to learn these things? And, what softwares should I ideally be learning? I have always heard about Adobe Illustrator and Adobe Photoshop being the frontrunners. Is it worth my time to learn these two 'huge' softwares? | design | graphics | null | null | null | 01/03/2012 21:24:03 | off topic | What programs do you use to create graphic images?
===
Background: I am working as a freelance web-developer. Now, lately this has meant that I have to design a lot of graphic images, logos etc for the the websites I create.
So, are there any good resources to learn these things? And, what softwares should I ideally be learning? I have always heard about Adobe Illustrator and Adobe Photoshop being the frontrunners. Is it worth my time to learn these two 'huge' softwares? | 2 |
2,405 | 08/05/2008 14:45:17 | 307 | 08/04/2008 14:26:05 | 105 | 15 | Binary file layout reference | Where are good sources of information on binary file layout structures?
If I wanted to pull in a BTrieve index file, parse MP3 headers, etc... where does one get reliable information? | language-agnostic | file | datastructure | binary | null | null | open | Binary file layout reference
===
Where are good sources of information on binary file layout structures?
If I wanted to pull in a BTrieve index file, parse MP3 headers, etc... where does one get reliable information? | 0 |
2,406 | 08/05/2008 14:45:25 | 373 | 08/05/2008 09:37:52 | 18 | 2 | Looking for a MVC Sample for WinForms | Can you point me to a good real-world WinForms MVC application/framework?
I understand the Model part - that's your data, and I know the forms are the views, but what's the controller? Especially if I want to use data binding. | winforms | gui | mvc | null | null | null | open | Looking for a MVC Sample for WinForms
===
Can you point me to a good real-world WinForms MVC application/framework?
I understand the Model part - that's your data, and I know the forms are the views, but what's the controller? Especially if I want to use data binding. | 0 |
2,432 | 08/05/2008 14:54:03 | 95 | 08/01/2008 18:28:24 | 71 | 9 | Have you ever encountered a query that SQL Server could not execute because it referenced too many tables? | Have you ever seen such an error message?
> Could not allocate ancillary table for view or function resolution. <br>
> The maximum number of tables in a query (256) was exceeded.
If yes, what have you done?
Given up? Convinced the customer to simplify their demands? Denormalized the database? | database | databases | mssql | sql-server | null | null | open | Have you ever encountered a query that SQL Server could not execute because it referenced too many tables?
===
Have you ever seen such an error message?
> Could not allocate ancillary table for view or function resolution. <br>
> The maximum number of tables in a query (256) was exceeded.
If yes, what have you done?
Given up? Convinced the customer to simplify their demands? Denormalized the database? | 0 |
2,472 | 08/05/2008 15:30:42 | 116 | 08/02/2008 05:51:57 | 554 | 41 | How can I tell if a web client is blocking ads? | I'd like to get some statistics on how many people coming to my site have set their browser to block ads. Any tips on the best way to do this? | browser | null | null | null | null | null | open | How can I tell if a web client is blocking ads?
===
I'd like to get some statistics on how many people coming to my site have set their browser to block ads. Any tips on the best way to do this? | 0 |
2,480 | 08/05/2008 15:37:58 | 412 | 08/05/2008 14:16:36 | 1 | 0 | Book or Website Recommendations for building a working application or project | I've really enjoyed *Apress Books Practical Projects* series. I know that O'Reilly has a *Building a Web 2.0 Portal with ASP.NET* book and I have heard of a similar book for Cocoa programming (although I am not sure of its title.) I'd like to know what other books or tutorials stackoverflow users would recommend that walks one through a project in any language or framework. I'm familiar with the O'Reilly's Cookbook series as well but I'm more interested in something that describes an entire project or application. | books | tutorials | bookrecommendations | null | null | null | open | Book or Website Recommendations for building a working application or project
===
I've really enjoyed *Apress Books Practical Projects* series. I know that O'Reilly has a *Building a Web 2.0 Portal with ASP.NET* book and I have heard of a similar book for Cocoa programming (although I am not sure of its title.) I'd like to know what other books or tutorials stackoverflow users would recommend that walks one through a project in any language or framework. I'm familiar with the O'Reilly's Cookbook series as well but I'm more interested in something that describes an entire project or application. | 0 |
2,481 | 08/05/2008 15:40:24 | 152 | 08/02/2008 17:25:04 | 1 | 0 | Best self-balancing BST for quick insertion of a large number of nodes | I've been able to find details on several self-balancing BSTs through several sources, but I haven't found any good descriptions detailing which one is best to use in different situations (or if it really doesn't matter). Specifically, I want a BST that is optimal for storing in excess of ten million nodes. The order of insertion of the nodes is basically random, and I will never need to delete nodes, so insertion time is the only thing that would need to be optimized. I indend to use it to store previously visited game states in a puzzle game, so that I can quickly check if a previous configuration has already been encountered. | datastructure | null | null | null | null | null | open | Best self-balancing BST for quick insertion of a large number of nodes
===
I've been able to find details on several self-balancing BSTs through several sources, but I haven't found any good descriptions detailing which one is best to use in different situations (or if it really doesn't matter). Specifically, I want a BST that is optimal for storing in excess of ten million nodes. The order of insertion of the nodes is basically random, and I will never need to delete nodes, so insertion time is the only thing that would need to be optimized. I indend to use it to store previously visited game states in a puzzle game, so that I can quickly check if a previous configuration has already been encountered. | 0 |
2,482 | 08/05/2008 15:42:09 | 311 | 08/04/2008 14:57:09 | 11 | 3 | Best resources for threaded programming | With the rise of multicore CPUs on the desktop, multithreading skills will become a valuable asset for programmers. Can you recommend some good resources (books, tutorials, websites, etc.) for a programmer who is looking to learn about threaded programming? | language-agnostic | concurrency | multithreaded | null | null | null | open | Best resources for threaded programming
===
With the rise of multicore CPUs on the desktop, multithreading skills will become a valuable asset for programmers. Can you recommend some good resources (books, tutorials, websites, etc.) for a programmer who is looking to learn about threaded programming? | 0 |
2,486 | 08/05/2008 15:44:39 | 277 | 08/04/2008 10:55:22 | 1 | 0 | Progressive Enhancement | Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow.
After a quick Google, I found a couple of high-level discussions about it.
Can anyone recommend a good place to start as a programmer.
Specifically, I have been writing web apps in PHP and would like to use YUI to improve the pages I am writing, but a lot of them seem very JavaScript based, with most of the donkey work being done using JavaScript. To me, that seems a bit overkill, since viewing the site without Javascript will probably break most of it.
Anyone have some good places to start using this idea, I don't really care about the language.
Ideally, I would like to see how you start creating the static HTML first, and then adding the YUI (or whatever Ajax framework) to it so that you get the benefits of a richer client? | ajax | webdevelopment | progressiveenhancement | null | null | null | open | Progressive Enhancement
===
Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow.
After a quick Google, I found a couple of high-level discussions about it.
Can anyone recommend a good place to start as a programmer.
Specifically, I have been writing web apps in PHP and would like to use YUI to improve the pages I am writing, but a lot of them seem very JavaScript based, with most of the donkey work being done using JavaScript. To me, that seems a bit overkill, since viewing the site without Javascript will probably break most of it.
Anyone have some good places to start using this idea, I don't really care about the language.
Ideally, I would like to see how you start creating the static HTML first, and then adding the YUI (or whatever Ajax framework) to it so that you get the benefits of a richer client? | 0 |
2,488 | 08/05/2008 15:45:02 | 58 | 08/01/2008 13:56:33 | 1,063 | 48 | Auto Generate Database Diagram MySQL | I'm tired of opening Dia and creating a database diagram at the beginning of every project. Is there a tool out there that will let me select specific tables and then create a database diagram for me based on a MySQL database? Preferably it would allow me to edit the diagram afterward since none of the foreign keys are set...
Here is what I am picturing diagram-wise (please excuse the horrible data design, I didn't design it. Let's focus on the diagram concept and not on the actual data it represents for this example ;) ):
![diagram][1]
[see full size diagram][2]
[1]: http://www.chomperstomp.com/img/shippingDBDesign.jpg
[2]: http://www.chomperstomp.com/img/shippingDBDesign.png | database | mysql | diagram | datadesign | null | null | open | Auto Generate Database Diagram MySQL
===
I'm tired of opening Dia and creating a database diagram at the beginning of every project. Is there a tool out there that will let me select specific tables and then create a database diagram for me based on a MySQL database? Preferably it would allow me to edit the diagram afterward since none of the foreign keys are set...
Here is what I am picturing diagram-wise (please excuse the horrible data design, I didn't design it. Let's focus on the diagram concept and not on the actual data it represents for this example ;) ):
![diagram][1]
[see full size diagram][2]
[1]: http://www.chomperstomp.com/img/shippingDBDesign.jpg
[2]: http://www.chomperstomp.com/img/shippingDBDesign.png | 0 |
2,509 | 08/05/2008 15:58:08 | 303 | 08/04/2008 13:48:50 | 129 | 5 | What are the primary differences between TDD and BDD? | Test Driven Development has been the rage in the .NET community for the last few years. Recently, I have heard grumblings in the ALT.NET community about BDD. What is it? What makes it different from TDD? | unit-testing | tdd | concepts | bdd | null | null | open | What are the primary differences between TDD and BDD?
===
Test Driven Development has been the rage in the .NET community for the last few years. Recently, I have heard grumblings in the ALT.NET community about BDD. What is it? What makes it different from TDD? | 0 |
2,518 | 08/05/2008 16:09:12 | 26 | 08/01/2008 12:18:14 | 76 | 23 | Adobe Air - Using multiple SQLite databases at once | I have 2 SQLite databases, one downloaded from a server (server.db), and one used as storage on the client (client.db). I need to perform various sync queries on the client database, using data from the server database.
For example, I want to delete all rows in the client.db tRole table, and repopulate with all rows in the server.db tRole table.
Another example, I want to delete all rows in the client.db tFile table where the fileID is not in the server.db tFile table.
In SQL Server you can just prefix the table with the name of the database. Is there anyway to do this in SQLite using Adobe Air? | flex | actionscript-3 | sqlite | air | null | null | open | Adobe Air - Using multiple SQLite databases at once
===
I have 2 SQLite databases, one downloaded from a server (server.db), and one used as storage on the client (client.db). I need to perform various sync queries on the client database, using data from the server database.
For example, I want to delete all rows in the client.db tRole table, and repopulate with all rows in the server.db tRole table.
Another example, I want to delete all rows in the client.db tFile table where the fileID is not in the server.db tFile table.
In SQL Server you can just prefix the table with the name of the database. Is there anyway to do this in SQLite using Adobe Air? | 0 |
2,524 | 08/05/2008 16:18:18 | 417 | 08/05/2008 14:45:33 | 23 | 3 | Visual Studio 2008 debugger already attached work-around | I get the following error pretty regularly when compiling in Visual Studio and running my web application:
"Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server."
Normally this is after having debug the application once already. From the command line I run "iisreset /restart" and it fixes the problem.
How do I prevent this from happening in the first place? | asp.net | iis | debugging | visual | studio | null | open | Visual Studio 2008 debugger already attached work-around
===
I get the following error pretty regularly when compiling in Visual Studio and running my web application:
"Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger is already attached to the web server."
Normally this is after having debug the application once already. From the command line I run "iisreset /restart" and it fixes the problem.
How do I prevent this from happening in the first place? | 0 |
2,525 | 08/05/2008 16:20:37 | 350 | 08/04/2008 23:06:23 | 6 | 0 | Best .NET obfuscation tools/strategy | My product is both ASP.NET, Windows forms app and Windows service.
95% of code is .NET (VB if you must know).
For IP reasons, I need to obfuscate the code. I am using an old dotfuscator (over 5 years old) and thinking it is time to move to a new gen. Anyone can recommend from his personal experience (don't just give me a list of vendors, I already have that) what works best for him?
Taking into account real life issues like:
- Dealing with the old problem of serialization/de-serialization: Currently, I simply tell the tool **not** to obfuscate any class data members. The pain of not being able to load data that was previously serialized with an old version is just to big
- integrating the tool into the build process?
- Working with ASP.NET which is a story since depending ont eh settings, you don't always have the same dll names (and you have lots of them, one per page), not all tools handle this well. | .net | security | obfuscation | null | null | 01/27/2012 15:26:46 | not constructive | Best .NET obfuscation tools/strategy
===
My product is both ASP.NET, Windows forms app and Windows service.
95% of code is .NET (VB if you must know).
For IP reasons, I need to obfuscate the code. I am using an old dotfuscator (over 5 years old) and thinking it is time to move to a new gen. Anyone can recommend from his personal experience (don't just give me a list of vendors, I already have that) what works best for him?
Taking into account real life issues like:
- Dealing with the old problem of serialization/de-serialization: Currently, I simply tell the tool **not** to obfuscate any class data members. The pain of not being able to load data that was previously serialized with an old version is just to big
- integrating the tool into the build process?
- Working with ASP.NET which is a story since depending ont eh settings, you don't always have the same dll names (and you have lots of them, one per page), not all tools handle this well. | 4 |
2,527 | 08/05/2008 16:21:14 | 428 | 08/05/2008 16:12:27 | 1 | 0 | C# Treeview & Context Menus | How can I find out which node in a tree list the context menu has been activated for. i.e. right-clicking a node and selecting an option from the menu.
I can't use the TreeViews' SelectedNode because the its only been right-clicked and not selected. | c# | treeview | null | null | null | null | open | C# Treeview & Context Menus
===
How can I find out which node in a tree list the context menu has been activated for. i.e. right-clicking a node and selecting an option from the menu.
I can't use the TreeViews' SelectedNode because the its only been right-clicked and not selected. | 0 |
2,530 | 08/05/2008 16:22:32 | 307 | 08/04/2008 14:26:05 | 135 | 18 | How do you disable browser Autocomplete on web form field? | How do you disable Autocomplete in the major browsers for a specific input? | html | web | null | null | null | null | open | How do you disable browser Autocomplete on web form field?
===
How do you disable Autocomplete in the major browsers for a specific input? | 0 |
2,540 | 08/05/2008 16:30:37 | 136 | 08/02/2008 10:21:53 | 624 | 19 | Good STL-like library for C. | What are good libraries for C with datastructures like vectors, deques, stacks, hashmaps, treemaps, sets, etc.? Plain C, please, and platform-independent. | c | null | null | null | null | null | open | Good STL-like library for C.
===
What are good libraries for C with datastructures like vectors, deques, stacks, hashmaps, treemaps, sets, etc.? Plain C, please, and platform-independent. | 0 |
2,543 | 08/05/2008 16:34:37 | 136 | 08/02/2008 10:21:53 | 624 | 19 | What are the best solutions for flash charts and graphs? | I'm aware of [FusionCharts](http://www.fusioncharts.com/), are there other good ones? | flash | graph | null | null | null | null | open | What are the best solutions for flash charts and graphs?
===
I'm aware of [FusionCharts](http://www.fusioncharts.com/), are there other good ones? | 0 |