question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
122,778 | 123,067 | Capture console output for debugging in VS? | Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab. The question is: can I get the same processing for my program when I hit F5? Edit: FWIW I'm in C# but if that makes a difference to your answer then it's unlikely that your a... | I'm going to make a few assumptions here. First, I presume that you are talking about printf output from an application (whether it be from a console app or from a windows GUI app). My second assumption is the C language. To my knowledge, you cannot direct printf output to the output window in dev studio, not directly ... | Capture console output for debugging in VS? Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab. The question is: can I get the same processing for my program when I hit F5? Edit: FWIW I'm in C# but if that makes a difference t... | TITLE:
Capture console output for debugging in VS?
QUESTION:
Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab. The question is: can I get the same processing for my program when I hit F5? Edit: FWIW I'm in C# but if that ma... | [
"c#",
"visual-studio",
"debugging"
] | 12 | 1 | 13,060 | 6 | 0 | 2008-09-23T18:22:04.610000 | 2008-09-23T19:02:34.123000 |
122,782 | 123,233 | How can I wrap BOOST in a separate namespace? | I'm looking to have two versions of BOOST compiled into a project at the same time. Ideally they should be usable along these lines: boost_1_36_0::boost::shared_ptr someClass = new SomeClass(); boost_1_35_0::boost::regex expression("[0-9]", boost_1_35_0::boost::regex_constants::basic); | I read (well scanned) through the development list discussion. There's no easy solution. To sum up: Wrapping header files in a namespace declaration namespace boost_1_36_0 { #include } namespace boost_1_35_0 { #include } Requires modifying source files Doesn't allow for both versions to be included in the same translat... | How can I wrap BOOST in a separate namespace? I'm looking to have two versions of BOOST compiled into a project at the same time. Ideally they should be usable along these lines: boost_1_36_0::boost::shared_ptr someClass = new SomeClass(); boost_1_35_0::boost::regex expression("[0-9]", boost_1_35_0::boost::regex_consta... | TITLE:
How can I wrap BOOST in a separate namespace?
QUESTION:
I'm looking to have two versions of BOOST compiled into a project at the same time. Ideally they should be usable along these lines: boost_1_36_0::boost::shared_ptr someClass = new SomeClass(); boost_1_35_0::boost::regex expression("[0-9]", boost_1_35_0::b... | [
"c++",
"boost",
"namespaces"
] | 10 | 11 | 3,124 | 4 | 0 | 2008-09-23T18:22:39.037000 | 2008-09-23T19:29:00.673000 |
122,821 | 122,948 | ASP.NET - Add Event Handler to LinkButton inside of Repeater in a RenderContent call | I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. In the RenderContent call in the Webpart I've got some code to add event handlers: ArrayList nextPages = new ArrayList(); //populate nextPages.... AfterPageRepeater.DataSourc... | By the time RenderContent() is called, all the registered event handlers have been called by the framework. You need to add the event handlers in an earlier method, like OnLoad(): protected override void OnLoad(EventArge e) { base.OnLoad(e); EnsureChildControls();
var linkButtons = from c in AfterPageRepeater.Controls... | ASP.NET - Add Event Handler to LinkButton inside of Repeater in a RenderContent call I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. In the RenderContent call in the Webpart I've got some code to add event handlers: ArrayL... | TITLE:
ASP.NET - Add Event Handler to LinkButton inside of Repeater in a RenderContent call
QUESTION:
I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. In the RenderContent call in the Webpart I've got some code to add even... | [
"c#",
"asp.net",
"sharepoint",
"web-parts"
] | 4 | 6 | 18,793 | 6 | 0 | 2008-09-23T18:26:33.913000 | 2008-09-23T18:44:14.383000 |
122,834 | 122,997 | PHP: How to return information to a waiting script and continue processing | Suppose there are two scripts Requester.php and Provider.php, and Requester requires processing from Provider and makes an http request to it (Provider.php?data="data"). In this situation, Provider quickly finds the answer, but to maintain the system must perform various updates throughout the database. Is there a way ... | You basically want to signal the end of 1 process (return to the original Requester.php ) and spawn a new process (finish Provider.php ). There is probably a more elegant way to pull this off, but I've managed this a couple different ways. All of them basically result in exec-ing a command in order to shell off the sec... | PHP: How to return information to a waiting script and continue processing Suppose there are two scripts Requester.php and Provider.php, and Requester requires processing from Provider and makes an http request to it (Provider.php?data="data"). In this situation, Provider quickly finds the answer, but to maintain the s... | TITLE:
PHP: How to return information to a waiting script and continue processing
QUESTION:
Suppose there are two scripts Requester.php and Provider.php, and Requester requires processing from Provider and makes an http request to it (Provider.php?data="data"). In this situation, Provider quickly finds the answer, but... | [
"php"
] | 6 | 1 | 3,617 | 7 | 0 | 2008-09-23T18:29:04.950000 | 2008-09-23T18:52:40.807000 |
122,847 | 150,461 | Static layers in a java web application | I am building a small website for fun/learning using a fairly standard Web/Service/Data Access layered design. To save me from constantly having to create instances of my service layer/data access layer classes, I have made the methods in them all static. I shouldn't get concurrency issues as they use local variables e... | Disadvantages: You will be unable to write unit tests as you will be unable to write mock data access/business logic objects to test against. You will have concurrency problems as different threads try to access the static code at the same time - or if you use synchronized static methods you will end up with threads qu... | Static layers in a java web application I am building a small website for fun/learning using a fairly standard Web/Service/Data Access layered design. To save me from constantly having to create instances of my service layer/data access layer classes, I have made the methods in them all static. I shouldn't get concurre... | TITLE:
Static layers in a java web application
QUESTION:
I am building a small website for fun/learning using a fairly standard Web/Service/Data Access layered design. To save me from constantly having to create instances of my service layer/data access layer classes, I have made the methods in them all static. I shou... | [
"java",
"data-access-layer",
"business-logic-layer"
] | 2 | 3 | 1,681 | 6 | 0 | 2008-09-23T18:30:24.107000 | 2008-09-29T20:18:18.670000 |
122,853 | 122,984 | How to get the file size from http headers | I want to get the size of an http:/.../file before I download it. The file can be a webpage, image, or a media file. Can this be done with HTTP headers? How do I download just the file HTTP header? | Yes, assuming the HTTP server you're talking to supports/allows this: public long GetFileSize(string url) { long result = -1;
System.Net.WebRequest req = System.Net.WebRequest.Create(url); req.Method = "HEAD"; using (System.Net.WebResponse resp = req.GetResponse()) { if (long.TryParse(resp.Headers.Get("Content-Length"... | How to get the file size from http headers I want to get the size of an http:/.../file before I download it. The file can be a webpage, image, or a media file. Can this be done with HTTP headers? How do I download just the file HTTP header? | TITLE:
How to get the file size from http headers
QUESTION:
I want to get the size of an http:/.../file before I download it. The file can be a webpage, image, or a media file. Can this be done with HTTP headers? How do I download just the file HTTP header?
ANSWER:
Yes, assuming the HTTP server you're talking to supp... | [
"c#",
"http",
"download",
"http-headers"
] | 74 | 103 | 68,380 | 5 | 0 | 2008-09-23T18:31:42.917000 | 2008-09-23T18:49:26.010000 |
122,855 | 122,935 | java sound without hardware device | Anyone know if it is possible to write an app that uses the Java Sound API on a system that doesn't actually have a hardware sound device? I have some code I've written based on the API that manipulates some audio and plays the result but I am now trying to run this in a server environment, where the audio will be reco... | For linux you can use OSS Virtual Mixer, which will give you virtual sound channels. On windows there are a few sound drivers that do this, one is Virtual Audio Cable, which, while not free, is about the cost of a sound card so it shouldn't be a hardship. If neither of those work for you, it'll probably be easier to ma... | java sound without hardware device Anyone know if it is possible to write an app that uses the Java Sound API on a system that doesn't actually have a hardware sound device? I have some code I've written based on the API that manipulates some audio and plays the result but I am now trying to run this in a server enviro... | TITLE:
java sound without hardware device
QUESTION:
Anyone know if it is possible to write an app that uses the Java Sound API on a system that doesn't actually have a hardware sound device? I have some code I've written based on the API that manipulates some audio and plays the result but I am now trying to run this ... | [
"java",
"audio"
] | 3 | 1 | 970 | 2 | 0 | 2008-09-23T18:31:48.907000 | 2008-09-23T18:43:08.770000 |
122,856 | 122,949 | Parse HTML links using C# | Is there a built in dll that will give me a list of links from a string. I want to send in a string with valid html and have it parse all the links. I seem to remember there being something built into either.net or an unmanaged library. I found a couple open source projects that looked promising but I thought there was... | SubSonic.Sugar.Web.ScrapeLinks seems to do part of what you want, however it grabs the html from a url, rather than from a string. You can check out their implementation here. | Parse HTML links using C# Is there a built in dll that will give me a list of links from a string. I want to send in a string with valid html and have it parse all the links. I seem to remember there being something built into either.net or an unmanaged library. I found a couple open source projects that looked promisi... | TITLE:
Parse HTML links using C#
QUESTION:
Is there a built in dll that will give me a list of links from a string. I want to send in a string with valid html and have it parse all the links. I seem to remember there being something built into either.net or an unmanaged library. I found a couple open source projects t... | [
"c#",
".net",
"html"
] | 7 | 1 | 19,389 | 5 | 0 | 2008-09-23T18:31:52.107000 | 2008-09-23T18:44:37.533000 |
122,857 | 124,366 | WPF transparent borders causes the UI to stop redrawing | As a follow up to my previous question, I am wondering how to use transparent windows correctly. If I have set my window to use transparency, the UI will occasionally appear to stop responding. What is actually happening is that the UI simply is not updating as it should. Animations do not occur, pages do not appear to... | I think that I've finally found a workaround. From everything I've read this problem should not be occurring with XP SP3 &.NET 3.5 SP1, but it is. The example from this blog post shows how to use the Win32 API functions to create an irregular shaped window, which is what I"m doing. After reworking my main window to use... | WPF transparent borders causes the UI to stop redrawing As a follow up to my previous question, I am wondering how to use transparent windows correctly. If I have set my window to use transparency, the UI will occasionally appear to stop responding. What is actually happening is that the UI simply is not updating as it... | TITLE:
WPF transparent borders causes the UI to stop redrawing
QUESTION:
As a follow up to my previous question, I am wondering how to use transparent windows correctly. If I have set my window to use transparency, the UI will occasionally appear to stop responding. What is actually happening is that the UI simply is ... | [
"wpf",
"user-interface",
"transparency"
] | 2 | 1 | 2,750 | 3 | 0 | 2008-09-23T18:32:07.050000 | 2008-09-23T22:42:31.380000 |
122,865 | 123,079 | element's z-index value can not overcome the iframe content's one | I have a div and an iframe on the page the div has z-index: 0; the iframe has its content with a popup having a z-index of 1000 z-index: 1000; However, the div still overshadows the popup in IE (but works fine in Firefox). Does anyone know what I can do? | Explorer Z-index bug In general, http://www.quirksmode.org/ is an excellent reference for this sort of thing. | element's z-index value can not overcome the iframe content's one I have a div and an iframe on the page the div has z-index: 0; the iframe has its content with a popup having a z-index of 1000 z-index: 1000; However, the div still overshadows the popup in IE (but works fine in Firefox). Does anyone know what I can do? | TITLE:
element's z-index value can not overcome the iframe content's one
QUESTION:
I have a div and an iframe on the page the div has z-index: 0; the iframe has its content with a popup having a z-index of 1000 z-index: 1000; However, the div still overshadows the popup in IE (but works fine in Firefox). Does anyone k... | [
"css",
"z-index"
] | 5 | 6 | 2,207 | 6 | 0 | 2008-09-23T18:34:06.373000 | 2008-09-23T19:04:33.930000 |
122,877 | 122,940 | Why does strcpy trigger a segmentation fault with global variables? | So I've got some C code: #include #include /* putting one of the "char*"s here causes a segfault */ void main() { char* path = "/temp"; char* temp; strcpy(temp, path); } This compiles, runs, and behaves as it looks. However, if one or both of the character pointers is declared as global variable, strcpy results in a se... | As other posters mentioned, the root of the problem is that temp is uninitialized. When declared as an automatic variable on the stack it will contain whatever garbage happens to be in that memory location. Apparently for the compiler+CPU+OS you are running, the garbage at that location is a valid pointer. The strcpy "... | Why does strcpy trigger a segmentation fault with global variables? So I've got some C code: #include #include /* putting one of the "char*"s here causes a segfault */ void main() { char* path = "/temp"; char* temp; strcpy(temp, path); } This compiles, runs, and behaves as it looks. However, if one or both of the chara... | TITLE:
Why does strcpy trigger a segmentation fault with global variables?
QUESTION:
So I've got some C code: #include #include /* putting one of the "char*"s here causes a segfault */ void main() { char* path = "/temp"; char* temp; strcpy(temp, path); } This compiles, runs, and behaves as it looks. However, if one or... | [
"c",
"scope",
"pointers",
"segmentation-fault",
"character"
] | 7 | 16 | 10,524 | 8 | 0 | 2008-09-23T18:35:16.543000 | 2008-09-23T18:43:36.600000 |
122,882 | 123,694 | .NET: How to have background thread signal main thread data is available? | What is the proper technique to have ThreadA signal ThreadB of some event, without having ThreadB sit blocked waiting for an event to happen? i have a background thread that will be filling a shared List. i'm trying to find a way to asynchronously signal the "main" thread that there is data available to be picked up. i... | Here's a code sample for the System.ComponentModel.BackgroundWorker class. private static BackgroundWorker worker = new BackgroundWorker(); static void Main(string[] args) { worker.DoWork += worker_DoWork; worker.RunWorkerCompleted += worker_RunWorkerCompleted; worker.ProgressChanged += worker_ProgressChanged; worker.W... | .NET: How to have background thread signal main thread data is available? What is the proper technique to have ThreadA signal ThreadB of some event, without having ThreadB sit blocked waiting for an event to happen? i have a background thread that will be filling a shared List. i'm trying to find a way to asynchronousl... | TITLE:
.NET: How to have background thread signal main thread data is available?
QUESTION:
What is the proper technique to have ThreadA signal ThreadB of some event, without having ThreadB sit blocked waiting for an event to happen? i have a background thread that will be filling a shared List. i'm trying to find a wa... | [
".net",
"multithreading",
"asynchronous"
] | 11 | 11 | 7,814 | 7 | 0 | 2008-09-23T18:35:51.207000 | 2008-09-23T20:37:57.433000 |
122,883 | 122,971 | Why can't I seem to grasp interfaces? | Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them. I am talking about interfaces in a context of interfaces vs. abstract classes. | Interfaces allow you to program against a "description" instead of a type, which allows you to more-loosely associate elements of your software. Think of it this way: You want to share data with someone in the cube next to you, so you pull out your flash stick and copy/paste. You walk next door and the guy says "is tha... | Why can't I seem to grasp interfaces? Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them. I am talking about interfaces in a context of interfaces... | TITLE:
Why can't I seem to grasp interfaces?
QUESTION:
Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them. I am talking about interfaces in a con... | [
"oop",
"interface"
] | 55 | 78 | 8,055 | 26 | 0 | 2008-09-23T18:36:08.583000 | 2008-09-23T18:47:20.990000 |
122,886 | 122,937 | Fast plane rotation algorithm? | I am working on an application that detects the most prominent rectangle in an image, then seeks to rotate it so that the bottom left of the rectangle rests at the origin, similar to how IUPR's OSCAR system works. However, once the most prominent rectangle is detected, I am unsure how to take into account the depth com... | You don't actually need to deal with the 3D information in this case, it's just a mappping function, from one set of coordinates to another. Look at affine transformations, they're capable of correcting simple skew and perspective effects. You should be able to find code somewhere that will calculate a transform from t... | Fast plane rotation algorithm? I am working on an application that detects the most prominent rectangle in an image, then seeks to rotate it so that the bottom left of the rectangle rests at the origin, similar to how IUPR's OSCAR system works. However, once the most prominent rectangle is detected, I am unsure how to ... | TITLE:
Fast plane rotation algorithm?
QUESTION:
I am working on an application that detects the most prominent rectangle in an image, then seeks to rotate it so that the bottom left of the rectangle rests at the origin, similar to how IUPR's OSCAR system works. However, once the most prominent rectangle is detected, I... | [
"c++",
"c",
"geometry",
"rotation",
"planerotation"
] | 4 | 3 | 1,742 | 2 | 0 | 2008-09-23T18:36:45.493000 | 2008-09-23T18:43:14.667000 |
122,909 | 123,051 | Using PL/SQL how do you I get a file's contents in to a blob? | I have a file. I want to get its contents into a blob column in my oracle database or into a blob variable in my PL/SQL program. What is the best way to do that? | To do it entirely in PL/SQL, the file would need to be on the server, located in a directory which you'd need to define in the database. Create the following objects: CREATE OR REPLACE DIRECTORY BLOB_DIR AS '/oracle/base/lobs' /
CREATE OR REPLACE PROCEDURE BLOB_LOAD AS
lBlob BLOB; lFile BFILE:= BFILENAME('BLOB_DIR', ... | Using PL/SQL how do you I get a file's contents in to a blob? I have a file. I want to get its contents into a blob column in my oracle database or into a blob variable in my PL/SQL program. What is the best way to do that? | TITLE:
Using PL/SQL how do you I get a file's contents in to a blob?
QUESTION:
I have a file. I want to get its contents into a blob column in my oracle database or into a blob variable in my PL/SQL program. What is the best way to do that?
ANSWER:
To do it entirely in PL/SQL, the file would need to be on the server,... | [
"oracle",
"file-io",
"plsql",
"blob"
] | 5 | 17 | 31,774 | 2 | 0 | 2008-09-23T18:39:45.050000 | 2008-09-23T19:00:25.703000 |
122,919 | 123,091 | jQuery onClick execution | I have this bit of javascript written with jQuery 1.2.5. It's contained inside the main function() of a plugin that I wrote. The plugin is a horizontal gallery scroller very similar to jCarousel. It does alot of auto calculating of widths and determines how many to scroll based on that and the size of the images, which... | Just use a global busy flag. When you enter your click handler, check it, and only proceed if it's false. Immediately set it to true, and then set it back to false when the animation ends. JavaScript is single-threaded, so there is no race condition to worry about. var busy = false; $("...").onclick(function() { if (bu... | jQuery onClick execution I have this bit of javascript written with jQuery 1.2.5. It's contained inside the main function() of a plugin that I wrote. The plugin is a horizontal gallery scroller very similar to jCarousel. It does alot of auto calculating of widths and determines how many to scroll based on that and the ... | TITLE:
jQuery onClick execution
QUESTION:
I have this bit of javascript written with jQuery 1.2.5. It's contained inside the main function() of a plugin that I wrote. The plugin is a horizontal gallery scroller very similar to jCarousel. It does alot of auto calculating of widths and determines how many to scroll base... | [
"javascript",
"jquery",
"animation",
"onclick"
] | 1 | 10 | 21,456 | 4 | 0 | 2008-09-23T18:40:39.527000 | 2008-09-23T19:06:00.587000 |
122,920 | 123,416 | How to line up items of varied length in a resizable space in CSS? | I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem i5 Basically items of varying length arranged in a table like structure. The tricky part is the container for these can vary in size and I'd like to fit as many as I can in each row - in other words, I won't know... | This can be done using floated div's, calculating the max width, and setting all widths to the max. Here's jquery code to do it: html: something something else css: div.item { float: left; } jquery: var max_width=0; $('div.item').each( function() { if ($(this).width() > max_width) { max_width=$(this).width(); } } ).wid... | How to line up items of varied length in a resizable space in CSS? I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem i5 Basically items of varying length arranged in a table like structure. The tricky part is the container for these can vary in size and I'd like... | TITLE:
How to line up items of varied length in a resizable space in CSS?
QUESTION:
I'd like to line up items approximately like this: item1 item2 i3 longitemname i4 longitemname2 anotheritem i5 Basically items of varying length arranged in a table like structure. The tricky part is the container for these can vary in... | [
"javascript",
"jquery",
"css",
"css-tables"
] | 1 | 2 | 1,004 | 7 | 0 | 2008-09-23T18:40:42.223000 | 2008-09-23T19:53:57.493000 |
122,931 | 123,047 | Setting up an architecture department | Some context upfront: Imagine a 200+ developers company finally setting up a more or less independent architecture team/department. The software portfolio consisting of 20+ "projects"/applications of varying sizes in production was taken care of by team-leads/technical-leads, who were responsible for and in charge of t... | Here are a few issues that should be thought about: What is the exact mandate for the architecture team? What is the architecture team's deliverable? A framework, guidelines, implementation help... Or are they just Architecture Astronauts? Is this only for applications going forward, or will this be a backport? Who wil... | Setting up an architecture department Some context upfront: Imagine a 200+ developers company finally setting up a more or less independent architecture team/department. The software portfolio consisting of 20+ "projects"/applications of varying sizes in production was taken care of by team-leads/technical-leads, who w... | TITLE:
Setting up an architecture department
QUESTION:
Some context upfront: Imagine a 200+ developers company finally setting up a more or less independent architecture team/department. The software portfolio consisting of 20+ "projects"/applications of varying sizes in production was taken care of by team-leads/tech... | [
"architecture"
] | 13 | 7 | 5,264 | 8 | 0 | 2008-09-23T18:42:31.067000 | 2008-09-23T18:59:52.130000 |
122,942 | 123,025 | How to return multiple values in one column (T-SQL)? | I have a table UserAliases ( UserId, Alias ) with multiple aliases per user. I need to query it and return all aliases for a given user, the trick is to return them all in one column. Example: UserId/Alias 1/MrX 1/MrY 1/MrA 2/Abc 2/Xyz I want the query result in the following format: UserId/Alias 1/ MrX, MrY, MrA 2/ Ab... | You can use a function with COALESCE. CREATE FUNCTION [dbo].[GetAliasesById] ( @userID int ) RETURNS varchar(max) AS BEGIN declare @output varchar(max) select @output = COALESCE(@output + ', ', '') + alias from UserAliases where userid = @userID
return @output END
GO
SELECT UserID, dbo.GetAliasesByID(UserID) FROM Us... | How to return multiple values in one column (T-SQL)? I have a table UserAliases ( UserId, Alias ) with multiple aliases per user. I need to query it and return all aliases for a given user, the trick is to return them all in one column. Example: UserId/Alias 1/MrX 1/MrY 1/MrA 2/Abc 2/Xyz I want the query result in the ... | TITLE:
How to return multiple values in one column (T-SQL)?
QUESTION:
I have a table UserAliases ( UserId, Alias ) with multiple aliases per user. I need to query it and return all aliases for a given user, the trick is to return them all in one column. Example: UserId/Alias 1/MrX 1/MrY 1/MrA 2/Abc 2/Xyz I want the qu... | [
"sql",
"sql-server",
"sql-server-2005",
"t-sql"
] | 51 | 61 | 165,053 | 6 | 0 | 2008-09-23T18:43:43.573000 | 2008-09-23T18:56:29.237000 |
122,951 | 123,010 | Invalid group name: Group names must begin with a word character | I received the following exception when I was using the Regex class with the regular expression: (?'named a'asdf) System.ArgumentException: parsing \"(?'named a'asdf)\" - Invalid group name: Group names must begin with a word character. What is the problem with my regular expression? | The problem is the space in the name of the capture. Remove the space and it works fine. From the MSDN documentation: "The string used for name must not contain any punctuation and cannot begin with a number. You can use single quotes instead of angle brackets; for example, (?'name')." It does not matter if you use ang... | Invalid group name: Group names must begin with a word character I received the following exception when I was using the Regex class with the regular expression: (?'named a'asdf) System.ArgumentException: parsing \"(?'named a'asdf)\" - Invalid group name: Group names must begin with a word character. What is the proble... | TITLE:
Invalid group name: Group names must begin with a word character
QUESTION:
I received the following exception when I was using the Regex class with the regular expression: (?'named a'asdf) System.ArgumentException: parsing \"(?'named a'asdf)\" - Invalid group name: Group names must begin with a word character. ... | [
"c#",
"regex",
"exception"
] | 5 | 8 | 7,247 | 3 | 0 | 2008-09-23T18:44:51.403000 | 2008-09-23T18:54:41.113000 |
122,982 | 123,020 | Robust and fast checksum algorithm? | Which checksum algorithm can you recommend in the following use case? I want to generate checksums of small JPEG files (~8 kB each) to check if the content changed. Using the filesystem's date modified is unfortunately not an option. The checksum need not be cryptographically strong but it should robustly indicate chan... | If you have many small files, your bottleneck is going to be file I/O and probably not a checksum algorithm. A list of hash functions (which can be thought of as a checksum) can be found here. Is there any reason you can't use the filesystem's date modified to determine if a file has changed? That would probably be fas... | Robust and fast checksum algorithm? Which checksum algorithm can you recommend in the following use case? I want to generate checksums of small JPEG files (~8 kB each) to check if the content changed. Using the filesystem's date modified is unfortunately not an option. The checksum need not be cryptographically strong ... | TITLE:
Robust and fast checksum algorithm?
QUESTION:
Which checksum algorithm can you recommend in the following use case? I want to generate checksums of small JPEG files (~8 kB each) to check if the content changed. Using the filesystem's date modified is unfortunately not an option. The checksum need not be cryptog... | [
"algorithm",
"image",
"checksum"
] | 39 | 23 | 46,265 | 11 | 0 | 2008-09-23T18:48:56.883000 | 2008-09-23T18:55:59.753000 |
122,990 | 123,608 | how to determine if a record in every source, represents the same person | I have several sources of tables with personal data, like this: SOURCE 1 ID, FIRST_NAME, LAST_NAME, FIELD1,... 1, jhon, gates...
SOURCE 2 ID, FIRST_NAME, LAST_NAME, ANOTHER_FIELD1,... 1, jon, gate...
SOURCE 3 ID, FIRST_NAME, LAST_NAME, ANOTHER_FIELD1,... 2, jhon, ballmer... So, assuming that records with ID 1, from s... | The crux of the problem is to compute one or more measures of distance between each pair of entries and then consider them to be the same when one of the distances is less than a certain acceptable threshold. The key is to setup the analysis and then vary the acceptable distance until you reach what you consider to be ... | how to determine if a record in every source, represents the same person I have several sources of tables with personal data, like this: SOURCE 1 ID, FIRST_NAME, LAST_NAME, FIELD1,... 1, jhon, gates...
SOURCE 2 ID, FIRST_NAME, LAST_NAME, ANOTHER_FIELD1,... 1, jon, gate...
SOURCE 3 ID, FIRST_NAME, LAST_NAME, ANOTHER_F... | TITLE:
how to determine if a record in every source, represents the same person
QUESTION:
I have several sources of tables with personal data, like this: SOURCE 1 ID, FIRST_NAME, LAST_NAME, FIELD1,... 1, jhon, gates...
SOURCE 2 ID, FIRST_NAME, LAST_NAME, ANOTHER_FIELD1,... 1, jon, gate...
SOURCE 3 ID, FIRST_NAME, LA... | [
"sql",
"algorithm",
"etl",
"textmatching",
"record-linkage"
] | 3 | 3 | 547 | 7 | 0 | 2008-09-23T18:51:21.933000 | 2008-09-23T20:20:35.900000 |
123,002 | 142,182 | Does the size of the constructor matter if you're using Inversion of Control? | So I've got maybe 10 objects each of which has 1-3 dependencies (which I think is ok as far as loose coupling is concerned) but also some settings that can be used to define behavior (timeout, window size, etc). Now before I started using an Inversion of Control container I would have created a factory and maybe even a... | The relationship between class complexity and the size of the IoC constructor had not occurred to me before reading this question, but my analysis below suggests that having many arguments in the IoC constructor is a code smell to be aware of when using IoC. Having a goal to stick to a short constructor argument list w... | Does the size of the constructor matter if you're using Inversion of Control? So I've got maybe 10 objects each of which has 1-3 dependencies (which I think is ok as far as loose coupling is concerned) but also some settings that can be used to define behavior (timeout, window size, etc). Now before I started using an ... | TITLE:
Does the size of the constructor matter if you're using Inversion of Control?
QUESTION:
So I've got maybe 10 objects each of which has 1-3 dependencies (which I think is ok as far as loose coupling is concerned) but also some settings that can be used to define behavior (timeout, window size, etc). Now before I... | [
"inversion-of-control"
] | 4 | 6 | 382 | 5 | 0 | 2008-09-23T18:53:13.270000 | 2008-09-26T21:47:50.647000 |
123,003 | 123,208 | Determine the ID of the JSF container form | I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml example_containing.xhtml How may I determine the ID of the form in the update method at runtime? Or better yet, the ID of the input field directly. | Bind the button to your backing bean, then use getParent() until you find the nearest form. | Determine the ID of the JSF container form I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml example_containing.xhtml How may I determine the ID of the form in the update method at runtime? Or better y... | TITLE:
Determine the ID of the JSF container form
QUESTION:
I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml example_containing.xhtml How may I determine the ID of the form in the update method at ru... | [
"java",
"jsf",
"seam",
"facelets"
] | 3 | 5 | 3,601 | 3 | 0 | 2008-09-23T18:53:20.557000 | 2008-09-23T19:25:15.643000 |
123,007 | 123,022 | Microsoft Access - grand total adding multiple fields together | I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These =Sum[(ThisColumn1)], 2, 3, etc and those grand totls all work fine. I want to have another column that says =Sum([ThisColumn1])+Sum([ThisColumn2]) + Sum([ThisColumn3]) but can't... | Give the 3 Grand Totals meaningful Control Names and then for the Grand Grand Total use: =[GrandTotal1] + [GrandTotal2] + [GrandTotal3] Your Grand Total formulas should be something like: =Sum(Nz([ThisColumn1], 0)) | Microsoft Access - grand total adding multiple fields together I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These =Sum[(ThisColumn1)], 2, 3, etc and those grand totls all work fine. I want to have another column that says =Sum([... | TITLE:
Microsoft Access - grand total adding multiple fields together
QUESTION:
I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These =Sum[(ThisColumn1)], 2, 3, etc and those grand totls all work fine. I want to have another colum... | [
"ms-access",
"builder"
] | 1 | 5 | 32,632 | 3 | 0 | 2008-09-23T18:54:16.437000 | 2008-09-23T18:56:14.527000 |
123,012 | 123,063 | Do you use Qt and why do you use it? | Pros. and cons? how long do you use it? What about jambi? | I've used Qt on a couple of projects I did in c++ on several platforms over a period of seven years. I think it works pretty well and definitely was quicker for me to develop a decent GUI app on the Mac than plodding through a language I didn't know (Objective-C) at the time. I think the signal/slot mechanism is a bit ... | Do you use Qt and why do you use it? Pros. and cons? how long do you use it? What about jambi? | TITLE:
Do you use Qt and why do you use it?
QUESTION:
Pros. and cons? how long do you use it? What about jambi?
ANSWER:
I've used Qt on a couple of projects I did in c++ on several platforms over a period of seven years. I think it works pretty well and definitely was quicker for me to develop a decent GUI app on the... | [
"c++",
"qt",
"qt-jambi"
] | 31 | 12 | 32,746 | 8 | 0 | 2008-09-23T18:55:03.593000 | 2008-09-23T19:02:18.397000 |
123,021 | 123,267 | Do callbacks stop operations in rails | If a callback handler returns false, does it cause only the handlers for that callback to not be called, or does it cause the remaining callbacks in that handler and all subsequent callbacks to not be called as well? | If a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called... | Do callbacks stop operations in rails If a callback handler returns false, does it cause only the handlers for that callback to not be called, or does it cause the remaining callbacks in that handler and all subsequent callbacks to not be called as well? | TITLE:
Do callbacks stop operations in rails
QUESTION:
If a callback handler returns false, does it cause only the handlers for that callback to not be called, or does it cause the remaining callbacks in that handler and all subsequent callbacks to not be called as well?
ANSWER:
If a before_* callback returns false, ... | [
"ruby-on-rails",
"ruby",
"callback"
] | 1 | 5 | 611 | 1 | 0 | 2008-09-23T18:56:04.200000 | 2008-09-23T19:34:38.430000 |
123,039 | 123,156 | Oracle Global Temporary Table / PHP interaction question | I've never used the Global Temporary Tables however I have some questions how they will work in a php environment. How is data shared: Assuming persistent connections to oracle through php using oci8. Is the data tied to a database id? is it done based on the Apache httpd demons? Or is each individual request unique? W... | The global temporary table is simply the logical definition of a table structure (Name, column names, column data types etc). When a session references it by inserting data, a data segment is created in a temporary tablespace to hold only that session's data. Different sessions can therefore reference the same logical ... | Oracle Global Temporary Table / PHP interaction question I've never used the Global Temporary Tables however I have some questions how they will work in a php environment. How is data shared: Assuming persistent connections to oracle through php using oci8. Is the data tied to a database id? is it done based on the Apa... | TITLE:
Oracle Global Temporary Table / PHP interaction question
QUESTION:
I've never used the Global Temporary Tables however I have some questions how they will work in a php environment. How is data shared: Assuming persistent connections to oracle through php using oci8. Is the data tied to a database id? is it don... | [
"php",
"oracle",
"oci8"
] | 0 | 3 | 1,869 | 2 | 0 | 2008-09-23T18:58:42.727000 | 2008-09-23T19:15:18.133000 |
123,052 | 123,427 | How do I fix a Cross language installation problem in SQL Server 2008? | I'm trying to do a SQL Server 2008 setup and I've been given a Cross Language Installation failure. More specifically: Rule "cross language installation: failed. the Setup language is different than the language of existing SQL Server features. To continue, use SQL Server Setup installation media of the same language a... | Ensure that you have uninstalled all of your old SQL Server versions. Also you must restart the installer if you have not done that when you began installation. | How do I fix a Cross language installation problem in SQL Server 2008? I'm trying to do a SQL Server 2008 setup and I've been given a Cross Language Installation failure. More specifically: Rule "cross language installation: failed. the Setup language is different than the language of existing SQL Server features. To c... | TITLE:
How do I fix a Cross language installation problem in SQL Server 2008?
QUESTION:
I'm trying to do a SQL Server 2008 setup and I've been given a Cross Language Installation failure. More specifically: Rule "cross language installation: failed. the Setup language is different than the language of existing SQL Ser... | [
"sql-server",
"sql-server-2008"
] | 12 | 3 | 49,121 | 7 | 0 | 2008-09-23T19:00:31.803000 | 2008-09-23T19:54:58.893000 |
123,057 | 123,129 | How do I avoid a memory leak with LINQ-To-SQL? | I have been having some issues with LINQ-To-SQL around memory usage. I'm using it in a Windows Service to do some processing, and I'm looping through a large amount of data that I'm pulling back from the context. Yes - I know I could do this with a stored procedure but there are reasons why that would be a less than id... | If you don't need object tracking set DataContext.ObjectTrackingEnabled to false. If you do need it, you can use reflection to call the internal DataContext.ClearCache(), although you have to be aware that since its internal, it's subject to disappear in a future version of the framework. And as far as I can tell, the ... | How do I avoid a memory leak with LINQ-To-SQL? I have been having some issues with LINQ-To-SQL around memory usage. I'm using it in a Windows Service to do some processing, and I'm looping through a large amount of data that I'm pulling back from the context. Yes - I know I could do this with a stored procedure but the... | TITLE:
How do I avoid a memory leak with LINQ-To-SQL?
QUESTION:
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it in a Windows Service to do some processing, and I'm looping through a large amount of data that I'm pulling back from the context. Yes - I know I could do this with a stored... | [
"database",
"linq",
"linq-to-sql",
"memory-management",
"memory-leaks"
] | 22 | 15 | 13,645 | 5 | 0 | 2008-09-23T19:01:17.993000 | 2008-09-23T19:11:20.263000 |
123,075 | 197,046 | Paging in Pervasive SQL | How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like: //MySQL SELECT foo FROM table LIMIT 10, 10 But I can't find a way to define offset. | I ended up doing the paging in code. I just skip the first records in loop. I thought I made up an easy way for doing the paging, but it seems that pervasive sql doesn't allow order clauses in subqueries. But this should work on other DBs (I tested it on firebird) select * from (select top [rows] * from (select top [ro... | Paging in Pervasive SQL How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like: //MySQL SELECT foo FROM table LIMIT 10, 10 But I can't find a way to define offset. | TITLE:
Paging in Pervasive SQL
QUESTION:
How to do paging in Pervasive SQL (version 9.1)? I need to do something similar like: //MySQL SELECT foo FROM table LIMIT 10, 10 But I can't find a way to define offset.
ANSWER:
I ended up doing the paging in code. I just skip the first records in loop. I thought I made up an ... | [
"sql",
"pervasive"
] | 1 | 0 | 4,647 | 4 | 0 | 2008-09-23T19:04:06.753000 | 2008-10-13T08:56:20.863000 |
123,078 | 123,190 | How do I 'validate' on destroy in rails | On destruction of a restful resource, I want to guarantee a few things before I allow a destroy operation to continue? Basically, I want the ability to stop the destroy operation if I note that doing so would place the database in a invalid state? There are no validation callbacks on a destroy operation, so how does on... | You can raise an exception which you then catch. Rails wraps deletes in a transaction, which helps matters. For example: class Booking < ActiveRecord::Base has_many:booking_payments.... def destroy raise "Cannot delete booking with payments" unless booking_payments.count == 0 #... ok, go ahead and destroy super end end... | How do I 'validate' on destroy in rails On destruction of a restful resource, I want to guarantee a few things before I allow a destroy operation to continue? Basically, I want the ability to stop the destroy operation if I note that doing so would place the database in a invalid state? There are no validation callback... | TITLE:
How do I 'validate' on destroy in rails
QUESTION:
On destruction of a restful resource, I want to guarantee a few things before I allow a destroy operation to continue? Basically, I want the ability to stop the destroy operation if I note that doing so would place the database in a invalid state? There are no v... | [
"ruby-on-rails",
"ruby",
"callback"
] | 91 | 76 | 64,975 | 11 | 0 | 2008-09-23T19:04:33.540000 | 2008-09-23T19:22:37.723000 |
123,080 | 123,119 | Naming a "core" Assembly | I know that this is somewhat subjective, but I wonder if there is a generally accepted standard for naming assemblies which contain some "core" functions. Let's say you got a larger Projects, with Assemblies like Company.Product.WebControls.dll Company.Product.Net.dll Company.Product.UserPages.dll and you have a Bunch ... | With.Net this is relatively easy to change, so I'd go with convenience. Fewer, larger, assemblies compile quicker than many small ones, so I'd start with your 'core' stuff as a namespace inside Company.Product.dll, and split it out later if you need to. | Naming a "core" Assembly I know that this is somewhat subjective, but I wonder if there is a generally accepted standard for naming assemblies which contain some "core" functions. Let's say you got a larger Projects, with Assemblies like Company.Product.WebControls.dll Company.Product.Net.dll Company.Product.UserPages.... | TITLE:
Naming a "core" Assembly
QUESTION:
I know that this is somewhat subjective, but I wonder if there is a generally accepted standard for naming assemblies which contain some "core" functions. Let's say you got a larger Projects, with Assemblies like Company.Product.WebControls.dll Company.Product.Net.dll Company.... | [
".net"
] | 23 | 15 | 4,116 | 10 | 0 | 2008-09-23T19:04:35.257000 | 2008-09-23T19:10:21.920000 |
123,085 | 123,113 | Bypass .Net v3.5 verification when installing SQL Server 2008 Express | For some reason, when I try to install SQL Server 2008 Express, I get an error saying that I need to have.Net Framework 3.5 installed first, but the thing is: I already have! So could anybody tell me if I can bypass this verification by updating a registry key or something? I have np with visual studio or any other thi... | I ran into this once before. Make sure that it is installed. Reinstall if necessary. I believe what I did was install SP1. SQL Server 2008 has a tendency of trying to install the Compact Framework 3.5 and based on the build or refresh of SQL, Compact Framework 3.5 SP1. HTH! | Bypass .Net v3.5 verification when installing SQL Server 2008 Express For some reason, when I try to install SQL Server 2008 Express, I get an error saying that I need to have.Net Framework 3.5 installed first, but the thing is: I already have! So could anybody tell me if I can bypass this verification by updating a re... | TITLE:
Bypass .Net v3.5 verification when installing SQL Server 2008 Express
QUESTION:
For some reason, when I try to install SQL Server 2008 Express, I get an error saying that I need to have.Net Framework 3.5 installed first, but the thing is: I already have! So could anybody tell me if I can bypass this verificatio... | [
"sql-server",
"sql-server-2008",
"installation"
] | 1 | 2 | 944 | 2 | 0 | 2008-09-23T19:05:12.790000 | 2008-09-23T19:09:50.407000 |
123,088 | 191,596 | Possible pitfalls of using this (extension method based) shorthand | C#6 Update In C#6?. is now a language feature: // C#1-5 propertyValue1 = myObject!= null? myObject.StringProperty: null;
// C#6 propertyValue1 = myObject?.StringProperty; The question below still applies to older versions, but if developing a new application using the new?. operator is far better practice. Original Qu... | We independently came up with the exact same extension method name and implementation: Null-propagating extension method. So we don't think it's confusing or an abuse of extension methods. I would write your "multiple levels" example with chaining as follows: propertyValue1 = myObject.IfNotNull(o => o.ObjectProp).IfNot... | Possible pitfalls of using this (extension method based) shorthand C#6 Update In C#6?. is now a language feature: // C#1-5 propertyValue1 = myObject!= null? myObject.StringProperty: null;
// C#6 propertyValue1 = myObject?.StringProperty; The question below still applies to older versions, but if developing a new appli... | TITLE:
Possible pitfalls of using this (extension method based) shorthand
QUESTION:
C#6 Update In C#6?. is now a language feature: // C#1-5 propertyValue1 = myObject!= null? myObject.StringProperty: null;
// C#6 propertyValue1 = myObject?.StringProperty; The question below still applies to older versions, but if deve... | [
"c#",
".net",
"extension-methods"
] | 15 | 16 | 5,048 | 11 | 0 | 2008-09-23T19:05:46.250000 | 2008-10-10T14:32:08.443000 |
123,111 | 123,133 | How does my shared host's nameserver resolve http://servername.com/~username/ to my top level domain? | I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my domain to use their provided nameservers in order for the site to properly resolve. I was determined to keep control of the domain's DNS but I could find no way to make my top level domain resolve to the shared location wh... | Nothing. DNS simply maps topleveldomain.com to server.sharedhost.com. It's the webserver which looks at the Host: topleveldomain.com header and knows that's equivalent to server.sharedhost.com/~username. | How does my shared host's nameserver resolve http://servername.com/~username/ to my top level domain? I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my domain to use their provided nameservers in order for the site to properly resolve. I was determined to keep control of ... | TITLE:
How does my shared host's nameserver resolve http://servername.com/~username/ to my top level domain?
QUESTION:
I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my domain to use their provided nameservers in order for the site to properly resolve. I was determined t... | [
"web",
"dns",
"shared-hosting",
"nameservers"
] | 1 | 9 | 1,439 | 4 | 0 | 2008-09-23T19:09:44.230000 | 2008-09-23T19:12:36.750000 |
123,153 | 123,567 | Adding headers to mail coming via exim4 | I've got a Debian Etch system running Exim4-daemon-heavy. The system is open to the internet, but the intention is that it will only receive legitimate mail coming from a spam-filtering service, which runs as a proxy ahead of it. (I can't just limit access to those IPs though, because I do have some authorized users wh... | Be aware that debian repackages exim in a fairly unique way that makes their packaging and mainetance easier but makes using generic rules sometimes not plug in as smoothly. The correct way to handle this would be to reject mail that is not authorized and not from the proxy IP. Put something like this in your rcpt ACL:... | Adding headers to mail coming via exim4 I've got a Debian Etch system running Exim4-daemon-heavy. The system is open to the internet, but the intention is that it will only receive legitimate mail coming from a spam-filtering service, which runs as a proxy ahead of it. (I can't just limit access to those IPs though, be... | TITLE:
Adding headers to mail coming via exim4
QUESTION:
I've got a Debian Etch system running Exim4-daemon-heavy. The system is open to the internet, but the intention is that it will only receive legitimate mail coming from a spam-filtering service, which runs as a proxy ahead of it. (I can't just limit access to th... | [
"debian",
"header",
"email-spam",
"procmail",
"exim4"
] | 0 | 2 | 1,309 | 1 | 0 | 2008-09-23T19:14:58.273000 | 2008-09-23T20:14:33.717000 |
123,154 | 123,175 | Sending raw data to FedEx Label printer | I'm working on a.NET WinForms app that needs to print a FEDEX shipping label. As part of the FedEx api, I can get raw label data for the printer. I just don't know how to send that data to the printer through.NET (I'm using C#). To be clear, the data is already pre formatted into ZPL (Zebra printer language) I just nee... | C# doesn't support raw printing, you'll have to use the win32 spooler, as detailed in this KB article How to send raw data to a printer by using Visual C#.NET. Hope this helps. -Adam | Sending raw data to FedEx Label printer I'm working on a.NET WinForms app that needs to print a FEDEX shipping label. As part of the FedEx api, I can get raw label data for the printer. I just don't know how to send that data to the printer through.NET (I'm using C#). To be clear, the data is already pre formatted into... | TITLE:
Sending raw data to FedEx Label printer
QUESTION:
I'm working on a.NET WinForms app that needs to print a FEDEX shipping label. As part of the FedEx api, I can get raw label data for the printer. I just don't know how to send that data to the printer through.NET (I'm using C#). To be clear, the data is already ... | [
"printing",
"zebra-printers",
"fedex"
] | 4 | 9 | 8,838 | 5 | 0 | 2008-09-23T19:15:02.500000 | 2008-09-23T19:18:55.813000 |
123,181 | 123,227 | Testing if an Object is a Dictionary in C# | Is there a way to test if an object is a dictionary? In a method I'm trying to get a value from a selected item in a list box. In some circumstances, the list box might be bound to a dictionary, but this isn't known at compile time. I would like to do something similar to this: if (listBox.ItemsSource is Dictionary ) {... | It should be something like the following. I wrote this in the answer box so the syntax may not be exactly right, but I've made it Wiki editable so anybody can fix up. if (listBox.ItemsSource.IsGenericType && typeof(IDictionary<,>).IsAssignableFrom(listBox.ItemsSource.GetGenericTypeDefinition())) { var method = typeof(... | Testing if an Object is a Dictionary in C# Is there a way to test if an object is a dictionary? In a method I'm trying to get a value from a selected item in a list box. In some circumstances, the list box might be bound to a dictionary, but this isn't known at compile time. I would like to do something similar to this... | TITLE:
Testing if an Object is a Dictionary in C#
QUESTION:
Is there a way to test if an object is a dictionary? In a method I'm trying to get a value from a selected item in a list box. In some circumstances, the list box might be bound to a dictionary, but this isn't known at compile time. I would like to do somethi... | [
"c#",
"reflection",
"collections",
"dictionary"
] | 18 | 10 | 16,654 | 8 | 0 | 2008-09-23T19:19:53.130000 | 2008-09-23T19:27:55.417000 |
123,187 | 133,387 | Can WampServer be used successfully in production? | Can WampServer be used successfully in production? Is this a bad idea? So everyone knows, and I don't see how this mattered, we've paid for a windows dedicated box and we have existing IIS apps. We just wanted to use a PHP based CMS which installs easier on apache (since it has some dependencies). So, as the title indi... | If you're not going onto the internet, there isn't any reason really not to. Of course you'd have to look at all the normal caveats - backups etc. Instead of using an already made one, why not try to do your own? It would be a good learning experience and really they aren't that hard to get working together. | Can WampServer be used successfully in production? Can WampServer be used successfully in production? Is this a bad idea? So everyone knows, and I don't see how this mattered, we've paid for a windows dedicated box and we have existing IIS apps. We just wanted to use a PHP based CMS which installs easier on apache (sin... | TITLE:
Can WampServer be used successfully in production?
QUESTION:
Can WampServer be used successfully in production? Is this a bad idea? So everyone knows, and I don't see how this mattered, we've paid for a windows dedicated box and we have existing IIS apps. We just wanted to use a PHP based CMS which installs eas... | [
"networking",
"wamp",
"wampserver"
] | 15 | 8 | 25,574 | 9 | 0 | 2008-09-23T19:21:18.007000 | 2008-09-25T13:39:08.797000 |
123,188 | 123,390 | How do I escape from a Snippet? (Vb.Net) | In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB? Edit: I prefer not to use the mouse. | Wow... I sure hope they improve this soon. Meanwhile, in case anyone cares, I created an additional replacement field ($Enter$) at the end of my custom snippet. This allows me to [tab] through the fields and then type [DownArrow] [Enter] when I reach the end of the list. Something like.... private _$PropertyName$ As $P... | How do I escape from a Snippet? (Vb.Net) In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB? Edit: I prefer not to use the mouse. | TITLE:
How do I escape from a Snippet? (Vb.Net)
QUESTION:
In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB? Edit: I prefer not to use the mouse.
ANSWER:
Wow... I sure hope they improve this soon. Meanwhile, in case anyone cares, I created... | [
".net",
"vb.net",
"code-snippets"
] | 6 | 4 | 804 | 5 | 0 | 2008-09-23T19:22:02.920000 | 2008-09-23T19:50:52.103000 |
123,198 | 123,212 | How to copy files | How do I copy a file in Python? | shutil has many methods you can use. One of which is: import shutil
shutil.copyfile(src, dst)
# 2nd option shutil.copy(src, dst) # dst can be a folder; use shutil.copy2() to preserve timestamp Copy the contents of the file named src to a file named dst. Both src and dst need to be the entire filename of the files, in... | How to copy files How do I copy a file in Python? | TITLE:
How to copy files
QUESTION:
How do I copy a file in Python?
ANSWER:
shutil has many methods you can use. One of which is: import shutil
shutil.copyfile(src, dst)
# 2nd option shutil.copy(src, dst) # dst can be a folder; use shutil.copy2() to preserve timestamp Copy the contents of the file named src to a fil... | [
"python",
"file",
"copy",
"filesystems",
"file-copying"
] | 3,799 | 4,673 | 3,686,900 | 21 | 0 | 2008-09-23T19:23:48.643000 | 2008-09-23T19:25:35.393000 |
123,216 | 125,276 | Fixed TD height property in HTML | I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions? Claude Sent: 18.08.2008 20:49:28 Id lacinia lacus arcu non quis mollis sit. Ligula elit. Ultricies elit cursus. Quis ipsum... | Oli is right! Give then screenshot you posted, you are using the wrong markup. You could use something more like this: Claude Sent: 18.08.2008 20:49:28 This is the content of the message. with css like this: div.post { border: 1px solid #999; margin-bottom: -1px; /* collapse the borders between posts */ } div.author { ... | Fixed TD height property in HTML I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions? Claude Sent: 18.08.2008 20:49:28 Id lacinia lacus arcu non quis mollis sit. Ligula elit. ... | TITLE:
Fixed TD height property in HTML
QUESTION:
I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions? Claude Sent: 18.08.2008 20:49:28 Id lacinia lacus arcu non quis mollis ... | [
"html",
"css"
] | 3 | 2 | 16,355 | 4 | 0 | 2008-09-23T19:25:47.577000 | 2008-09-24T03:34:53.453000 |
123,234 | 123,410 | What is the best SQL library for use in Common Lisp? | Ideally something that will work with Oracle, MS SQL Server, MySQL and Posgress. | if you mean common lisp by lisp, then there's cl-rdbms. it is heavily tested on postgres (uses postmodern as the backend lib), it has a toy sqlite backend and it also has an OCI based oracle backend. it supports abstracting away the different sql dialects, has an sql quasi-quote syntax extension installable on e.g. the... | What is the best SQL library for use in Common Lisp? Ideally something that will work with Oracle, MS SQL Server, MySQL and Posgress. | TITLE:
What is the best SQL library for use in Common Lisp?
QUESTION:
Ideally something that will work with Oracle, MS SQL Server, MySQL and Posgress.
ANSWER:
if you mean common lisp by lisp, then there's cl-rdbms. it is heavily tested on postgres (uses postmodern as the backend lib), it has a toy sqlite backend and ... | [
"sql",
"database",
"postgresql",
"lisp",
"common-lisp"
] | 16 | 11 | 9,271 | 3 | 0 | 2008-09-23T19:29:13.667000 | 2008-09-23T19:52:59.523000 |
123,235 | 123,260 | Problem with Bash output redirection | I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty. $cat file.txt |tail -1 > file.txt
$cat file.txt Why is it so? | Redirecting from a file through a pipeline back to the same file is unsafe; if file.txt is overwritten by the shell when setting up the last stage of the pipeline before tail starts reading off the first stage, you end up with empty output. Do the following instead: tail -1 file.txt >file.txt.new && mv file.txt.new fil... | Problem with Bash output redirection I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty. $cat file.txt |tail -1 > file.txt
$cat file.txt Why is it so? | TITLE:
Problem with Bash output redirection
QUESTION:
I was trying to remove all the lines of a file except the last line but the following command did not work, although file.txt is not empty. $cat file.txt |tail -1 > file.txt
$cat file.txt Why is it so?
ANSWER:
Redirecting from a file through a pipeline back to th... | [
"linux",
"bash"
] | 10 | 19 | 6,379 | 11 | 0 | 2008-09-23T19:29:26.727000 | 2008-09-23T19:33:25.203000 |
123,239 | 123,275 | How do I use XPathNodeIterator to iterate through a list of items in an XML file? | This is a sample (edited slightly, but you get the idea) of my XML file: Test 192.168.1.1 Test 192.168.1.2 When my application (VB.NET app) loads, I want to loop through the list of hosts and their attributes and add them to a collection. I was hoping I could use the XPathNodeIterator for this. The examples I found onl... | You could load them into an XmlDocument and use an XPath statement to fill a NodeList... Dim doc As XmlDocument = New XmlDocument() doc.Load("hosts.xml") Dim nodeList as XmlNodeList nodeList = doc.SelectNodes("/HostCollectionInfo/Hosts/Host") Then loop through the nodes | How do I use XPathNodeIterator to iterate through a list of items in an XML file? This is a sample (edited slightly, but you get the idea) of my XML file: Test 192.168.1.1 Test 192.168.1.2 When my application (VB.NET app) loads, I want to loop through the list of hosts and their attributes and add them to a collection.... | TITLE:
How do I use XPathNodeIterator to iterate through a list of items in an XML file?
QUESTION:
This is a sample (edited slightly, but you get the idea) of my XML file: Test 192.168.1.1 Test 192.168.1.2 When my application (VB.NET app) loads, I want to loop through the list of hosts and their attributes and add the... | [
".net",
"xml"
] | 1 | 2 | 9,020 | 2 | 0 | 2008-09-23T19:29:43.527000 | 2008-09-23T19:37:11.497000 |
123,261 | 123,382 | Outlook Plug-In for custom CRM | I would like to write a plug-in that will allow a custom written CRM to read and write to their local Outlook client. I know that this poses a security concern. But, my clients are asking that their CRM "be connected" to Outlook. They would like to be able to do the following: A) When a contact sends them an email (rep... | I was part of the team that created the original Outlook Plug-In for Frankley Covey time management tools. It was quite an adventure! The first thing I would do is make your client pick a version of Outlook, and stick with it. DO NOT let the client add support for additional Outlook versions, unless they are willing to... | Outlook Plug-In for custom CRM I would like to write a plug-in that will allow a custom written CRM to read and write to their local Outlook client. I know that this poses a security concern. But, my clients are asking that their CRM "be connected" to Outlook. They would like to be able to do the following: A) When a c... | TITLE:
Outlook Plug-In for custom CRM
QUESTION:
I would like to write a plug-in that will allow a custom written CRM to read and write to their local Outlook client. I know that this poses a security concern. But, my clients are asking that their CRM "be connected" to Outlook. They would like to be able to do the foll... | [
"plugins",
"outlook",
"crm"
] | 6 | 7 | 4,219 | 4 | 0 | 2008-09-23T19:33:45.233000 | 2008-09-23T19:50:27.830000 |
123,263 | 123,294 | Convert a string to a date in .net | I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in.Net? | string[] formats = {"yyyyMMdd", "MM/dd/yy"}; var Result = DateTime.ParseExact(input, formats, CultureInfo.CurrentCulture, DateTimeStyles.None); or DateTime result; string[] formats = {"yyyyMMdd", "MM/dd/yy"}; DateTime.TryParseExact(input, formats, CultureInfo.CurrentCulture, DateTimeStyles.None, out result); More info ... | Convert a string to a date in .net I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in.Net? | TITLE:
Convert a string to a date in .net
QUESTION:
I'm reading text from a flat file in c# and need to test whether certain values are dates. They could be in either YYYYMMDD format or MM/DD/YY format. What is the simplest way to do this in.Net?
ANSWER:
string[] formats = {"yyyyMMdd", "MM/dd/yy"}; var Result = DateT... | [
"c#",
".net"
] | 9 | 30 | 9,645 | 6 | 0 | 2008-09-23T19:34:04.810000 | 2008-09-23T19:40:27.870000 |
123,274 | 123,304 | Why am I getting "multiple cascade paths" with this table relationship? | I have the following table relationship in my database: Parent / \ Child1 Child2 \ / GrandChild I am trying to create the FK relationships so that the deletion of the Parent table cascades to both child and the grandchild table. For any one particular granchild, it will either be parented to one or the other child tabl... | The message means that if you delete a Parent record, there are two paths that lead to all deletable GrandChild records. Fix: Remove the ON DELETE CASCADE options in the FKs, and create INSTEAD OF DELETE triggers for the ChildX tables, deleting all grandchild records, and then the childX records themselves. | Why am I getting "multiple cascade paths" with this table relationship? I have the following table relationship in my database: Parent / \ Child1 Child2 \ / GrandChild I am trying to create the FK relationships so that the deletion of the Parent table cascades to both child and the grandchild table. For any one particu... | TITLE:
Why am I getting "multiple cascade paths" with this table relationship?
QUESTION:
I have the following table relationship in my database: Parent / \ Child1 Child2 \ / GrandChild I am trying to create the FK relationships so that the deletion of the Parent table cascades to both child and the grandchild table. F... | [
"sql",
"sql-server"
] | 0 | 4 | 1,282 | 1 | 0 | 2008-09-23T19:36:59.983000 | 2008-09-23T19:42:22.827000 |
123,290 | 123,309 | Where are the explanations to warnings of VS 2005 Code Analyses tool? | Does anyone know where to find an explanation to the warnings in VS 2005 Code Analyses tool. I would like some documentation, explaining why it creates the warnings it does and what course of action one should take. | You should be able to right click the warnings it gives you in the Error List and view Error Help, right from within Visual Studio. There's also a section of MSDN articles, if you'd prefer. | Where are the explanations to warnings of VS 2005 Code Analyses tool? Does anyone know where to find an explanation to the warnings in VS 2005 Code Analyses tool. I would like some documentation, explaining why it creates the warnings it does and what course of action one should take. | TITLE:
Where are the explanations to warnings of VS 2005 Code Analyses tool?
QUESTION:
Does anyone know where to find an explanation to the warnings in VS 2005 Code Analyses tool. I would like some documentation, explaining why it creates the warnings it does and what course of action one should take.
ANSWER:
You sho... | [
"visual-studio-2005",
"code-analysis"
] | 0 | 1 | 498 | 2 | 0 | 2008-09-23T19:40:14.797000 | 2008-09-23T19:43:00.903000 |
123,295 | 123,312 | Do you use the branches/tags/trunk convention? | Do you always follow the convention of putting branches, tags and trunk directories at the top level of your Subversion repository? Lately, I have stopped bothering and nothing bad has happened (yet)! It should be possible to move directory trees around if there's ever a need to create them. Am I building up trouble fo... | Have you tried branching or tagging yet? Until then, there's no problem. However, an added benefit of using the branches,tags,trunk convention is that it's exactly that -- a convention. People expect to see that, so they know what to do when they need to fork. | Do you use the branches/tags/trunk convention? Do you always follow the convention of putting branches, tags and trunk directories at the top level of your Subversion repository? Lately, I have stopped bothering and nothing bad has happened (yet)! It should be possible to move directory trees around if there's ever a n... | TITLE:
Do you use the branches/tags/trunk convention?
QUESTION:
Do you always follow the convention of putting branches, tags and trunk directories at the top level of your Subversion repository? Lately, I have stopped bothering and nothing bad has happened (yet)! It should be possible to move directory trees around i... | [
"svn"
] | 7 | 12 | 2,801 | 15 | 0 | 2008-09-23T19:40:34.030000 | 2008-09-23T19:43:21.107000 |
123,301 | 123,645 | Translating Int32 into ushort and back again | I am attempting to devise a system for packing integer values greater than 65535 into a ushort. Let me explain. We have a system which generates Int32 values using an IDENTITY column from SQL Server and are limited by an in-production client API that overflows our Int32 IDs to ushorts. Fortunately the client only has a... | Regarding approach 2: Your second approach is pretty much how NAT works. Every TCP/UDP client on the local network has up to 65535 ports in use (except port 0) and a private IP. The router knows only a single public IP. Since two clients may both have source port 300, it cannot simply just replace the private IP with a... | Translating Int32 into ushort and back again I am attempting to devise a system for packing integer values greater than 65535 into a ushort. Let me explain. We have a system which generates Int32 values using an IDENTITY column from SQL Server and are limited by an in-production client API that overflows our Int32 IDs ... | TITLE:
Translating Int32 into ushort and back again
QUESTION:
I am attempting to devise a system for packing integer values greater than 65535 into a ushort. Let me explain. We have a system which generates Int32 values using an IDENTITY column from SQL Server and are limited by an in-production client API that overfl... | [
"c#",
"overflow",
"int32",
"ushort"
] | 1 | 1 | 790 | 3 | 0 | 2008-09-23T19:41:33.280000 | 2008-09-23T20:26:35.997000 |
123,323 | 123,331 | How deep is the Win32 message queue? | How many messages does the queue for a standard window hold? What happens when the queue overflows? The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a message count. This page says that the queues are implemented... | 10000 by default, but it can be adjusted via the registry. If queue overflows, PostMessage fails. Documentation here: PostMessage function on MSDN | How deep is the Win32 message queue? How many messages does the queue for a standard window hold? What happens when the queue overflows? The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a message count. This page... | TITLE:
How deep is the Win32 message queue?
QUESTION:
How many messages does the queue for a standard window hold? What happens when the queue overflows? The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a messag... | [
"winapi",
"message-queue"
] | 15 | 15 | 10,354 | 2 | 0 | 2008-09-23T19:44:20.510000 | 2008-09-23T19:45:29.963000 |
123,327 | 123,380 | What is the best practice for creating an ASP.NET MVC control or helper? | I'm looking to build an reusable control or custom helper for my MVC project. I'm sure there is a best practice for this. Any help is appreciated. | Sure, the best practices are encapsulated in the HtmlHelpers and other helpers in the MVC source code. You can get the source at http://www.codeplex.com/aspnet | What is the best practice for creating an ASP.NET MVC control or helper? I'm looking to build an reusable control or custom helper for my MVC project. I'm sure there is a best practice for this. Any help is appreciated. | TITLE:
What is the best practice for creating an ASP.NET MVC control or helper?
QUESTION:
I'm looking to build an reusable control or custom helper for my MVC project. I'm sure there is a best practice for this. Any help is appreciated.
ANSWER:
Sure, the best practices are encapsulated in the HtmlHelpers and other he... | [
"asp.net-mvc",
"controls"
] | 5 | 8 | 1,997 | 2 | 0 | 2008-09-23T19:44:33.927000 | 2008-09-23T19:50:11.730000 |
123,335 | 123,383 | What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk | what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size? | Apache Tomcat by default sets a limit on the maximum size of HTTP POST requests it accepts. In Tomcat 5, this limit is set to 2 MB. When you try to upload files larger than 2 MB, this error can occur. The solution is to reconfigure Tomcat to accept larger POST requests, either by increasing the limit, or by disabling i... | What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size? | TITLE:
What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk
QUESTION:
what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size?
ANSWER:
Apache Tomcat by default sets a limit on the maximum size of HTTP POST requests it accepts. In Tom... | [
"java",
"tomcat",
"mod-jk"
] | 8 | 22 | 43,168 | 3 | 0 | 2008-09-23T19:45:55.517000 | 2008-09-23T19:50:31.057000 |
123,336 | 123,340 | How can you strip non-ASCII characters from a string? (in C#) | How can you strip non-ASCII characters from a string? (in C#) | string s = "søme string"; s = Regex.Replace(s, @"[^\u0000-\u007F]+", string.Empty); The ^ is the not operator. It tells the regex to find everything that doesn't match, instead of everything that does match. The \u####-\u#### says which characters match. \u0000-\u007F is the equivalent of the first 128 characters in ut... | How can you strip non-ASCII characters from a string? (in C#) How can you strip non-ASCII characters from a string? (in C#) | TITLE:
How can you strip non-ASCII characters from a string? (in C#)
QUESTION:
How can you strip non-ASCII characters from a string? (in C#)
ANSWER:
string s = "søme string"; s = Regex.Replace(s, @"[^\u0000-\u007F]+", string.Empty); The ^ is the not operator. It tells the regex to find everything that doesn't match, ... | [
"c#",
"ascii"
] | 282 | 495 | 270,302 | 17 | 0 | 2008-09-23T19:45:55.547000 | 2008-09-23T19:46:24.453000 |
123,337 | 123,350 | Restart IIS if new dll dropped in bin? | Do I have to restart IIS if I drop a new DLL in the bin of my virtual directory? | No you do not have to, the application will recycle, but an IISReset is NOT needed | Restart IIS if new dll dropped in bin? Do I have to restart IIS if I drop a new DLL in the bin of my virtual directory? | TITLE:
Restart IIS if new dll dropped in bin?
QUESTION:
Do I have to restart IIS if I drop a new DLL in the bin of my virtual directory?
ANSWER:
No you do not have to, the application will recycle, but an IISReset is NOT needed | [
"iis"
] | 6 | 12 | 2,827 | 3 | 0 | 2008-09-23T19:46:07.903000 | 2008-09-23T19:47:12.690000 |
123,378 | 123,396 | Command-line Unix ASCII-based charting / plotting tool | Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph. Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can use it over an interactive shell session without needing X. | Try gnuplot. It has very powerful graphing possibilities. It can output to your terminal in the following way: gnuplot> set terminal dumb Terminal type set to 'dumb' Options are 'feed 79 24' gnuplot> plot sin(x)
1 ++----------------**---------------+----**-----------+--------**-----++ + *+ * + * * + sin(x) ****** + 0.... | Command-line Unix ASCII-based charting / plotting tool Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph. Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can use ... | TITLE:
Command-line Unix ASCII-based charting / plotting tool
QUESTION:
Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph. Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art sty... | [
"unix",
"charts",
"graph",
"matplotlib"
] | 178 | 158 | 135,559 | 14 | 0 | 2008-09-23T19:49:37.817000 | 2008-09-23T19:51:49.497000 |
123,387 | 136,797 | IIS performance problem trying to implement an XMPP-like protocol | we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (and HTTPS 443). The design is basically modeled after XMPP (the Jabber protocol), usin... | I think you're hitting ASP.NET thread pool limits, rather than IIS ones. Look into creating a asynchronous HTTP handler ( IHttpAsyncHandler ) as when they block/wait they aren't tying up the thread pool (they use completion ports instead). Update: Came across this recently that seems to concur with my thinking: CodePro... | IIS performance problem trying to implement an XMPP-like protocol we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (and HTTPS 443). The ... | TITLE:
IIS performance problem trying to implement an XMPP-like protocol
QUESTION:
we're have a client that needs to get interactive messages from a server, from clients that are distributed around the world behind all kinds of firewalls with all kinds of ports closed. The only thing we can rely on is HTTP port 80 (an... | [
"performance",
"iis",
"httphandler",
"xmpp"
] | 3 | 3 | 2,107 | 4 | 0 | 2008-09-23T19:50:46.767000 | 2008-09-25T23:15:26.713000 |
123,394 | 124,158 | Rhino Mocks: Re-assign a new result for a method on a stub | I know I can do this: IDateTimeFactory dtf = MockRepository.GenerateStub (); dtf.Now = new DateTime(); DoStuff(dtf); // dtf.Now can be called arbitrary number of times, will always return the same value dtf.Now = new DateTime()+new TimeSpan(0,1,0); // 1 minute later DoStuff(dtf); //ditto from above What if instead of I... | George, Using your updated code, I got this to work: MockRepository mocks = new MockRepository();
[Test] public void Test() { IDateTimeFactory dtf = mocks.DynamicMock ();
DateTime desiredNowTime = DateTime.Now; using (mocks.Record()) { SetupResult.For(dtf.GetNow()).Do((Func )delegate { return desiredNowTime; }); } us... | Rhino Mocks: Re-assign a new result for a method on a stub I know I can do this: IDateTimeFactory dtf = MockRepository.GenerateStub (); dtf.Now = new DateTime(); DoStuff(dtf); // dtf.Now can be called arbitrary number of times, will always return the same value dtf.Now = new DateTime()+new TimeSpan(0,1,0); // 1 minute ... | TITLE:
Rhino Mocks: Re-assign a new result for a method on a stub
QUESTION:
I know I can do this: IDateTimeFactory dtf = MockRepository.GenerateStub (); dtf.Now = new DateTime(); DoStuff(dtf); // dtf.Now can be called arbitrary number of times, will always return the same value dtf.Now = new DateTime()+new TimeSpan(0,... | [
".net",
"rhino-mocks"
] | 3 | 1 | 3,350 | 4 | 0 | 2008-09-23T19:51:39.433000 | 2008-09-23T21:54:55.517000 |
123,401 | 123,518 | Using jQuery to find the next table row | Using jQuery, how do you bind a click event to a table cell (below, class="expand" ) that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether that row has a class of hide. (show it if it has a class ... | You don't need the show and hide tags: $(document).ready(function(){ $('.expand').click(function() { if( $(this).hasClass('hidden') ) $('img', this).attr("src", "plus.jpg"); else $('img', this).attr("src", "minus.jpg");
$(this).toggleClass('hidden'); $(this).parent().next().toggle(); }); }); edit: Okay, I added the co... | Using jQuery to find the next table row Using jQuery, how do you bind a click event to a table cell (below, class="expand" ) that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether that row has a cl... | TITLE:
Using jQuery to find the next table row
QUESTION:
Using jQuery, how do you bind a click event to a table cell (below, class="expand" ) that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether... | [
"jquery"
] | 15 | 18 | 54,460 | 5 | 0 | 2008-09-23T19:52:09.667000 | 2008-09-23T20:07:41.640000 |
123,421 | 123,488 | Image database build in Oracle - Is an e-commerce style interface workable? | Question Can I build a image database/library that has an e-commerce style checkout system and a powerful search in Oracle/Java? Are there existing elements out there I should be aware of? Or, is this better in another dev environment like PHP/MySQL? Overview I am working on an image database/library dev team on the UI... | Seems your question is really a struggle between Oracle/Java and PHP/MySQL. The details you state are none too difficult to implement using either of these tools sets or using a dozen others that I could think of. If I am correct (only you could know), then this is a fabulous opportunity for you. You seem to have exper... | Image database build in Oracle - Is an e-commerce style interface workable? Question Can I build a image database/library that has an e-commerce style checkout system and a powerful search in Oracle/Java? Are there existing elements out there I should be aware of? Or, is this better in another dev environment like PHP/... | TITLE:
Image database build in Oracle - Is an e-commerce style interface workable?
QUESTION:
Question Can I build a image database/library that has an e-commerce style checkout system and a powerful search in Oracle/Java? Are there existing elements out there I should be aware of? Or, is this better in another dev env... | [
"java",
"oracle"
] | 0 | 1 | 418 | 3 | 0 | 2008-09-23T19:54:47.303000 | 2008-09-23T20:02:21.653000 |
123,430 | 125,588 | Installing TFS 2008 Workgroup Edition on Windows Server 2003 with SQL Server 2008 | I ran into an issue when installing Team Foundation Server 2008 Workgroup Edition. I have a Windows Server 2003 SP2 machine that's practically new. I have installed SQL Server 2008 with almost all of the options. When I run through the TFS installation, it allows me to enter my SQL instance name and then goes through t... | To install Team Foundation Server 2008 against SQL Server 2008, you must use TFS 2008 Service Pack 1. However, currently Microsoft do not provide a "TFS with SP1" download - you must created your own slipstreamed installation by downloading the TFS 2008 media and then applying the service pack to the media before runni... | Installing TFS 2008 Workgroup Edition on Windows Server 2003 with SQL Server 2008 I ran into an issue when installing Team Foundation Server 2008 Workgroup Edition. I have a Windows Server 2003 SP2 machine that's practically new. I have installed SQL Server 2008 with almost all of the options. When I run through the TF... | TITLE:
Installing TFS 2008 Workgroup Edition on Windows Server 2003 with SQL Server 2008
QUESTION:
I ran into an issue when installing Team Foundation Server 2008 Workgroup Edition. I have a Windows Server 2003 SP2 machine that's practically new. I have installed SQL Server 2008 with almost all of the options. When I ... | [
"sql-server",
"windows",
"tfs"
] | 1 | 3 | 5,868 | 4 | 0 | 2008-09-23T19:55:32.280000 | 2008-09-24T05:39:33.950000 |
123,453 | 123,469 | Progress Reports | I'm not talking about the kind you get in college, but rather implementing progress reports on the Job for developers. My thoughts in organizing a development team is encouraging and, to some extend, requiring regular progress updates were developers would report on what they did in the last hour or few hours and how l... | Every hour is too frequent. That many interruptions will decrease productivity, and increase developer frustration. I would suggest looking into the Scrum methodology, they have a "daily scrum" meeting, every morning where you update the team on your progress the previous day and planned work for the current day. It ha... | Progress Reports I'm not talking about the kind you get in college, but rather implementing progress reports on the Job for developers. My thoughts in organizing a development team is encouraging and, to some extend, requiring regular progress updates were developers would report on what they did in the last hour or fe... | TITLE:
Progress Reports
QUESTION:
I'm not talking about the kind you get in college, but rather implementing progress reports on the Job for developers. My thoughts in organizing a development team is encouraging and, to some extend, requiring regular progress updates were developers would report on what they did in t... | [
"performance",
"project-management",
"project-planning"
] | 3 | 10 | 519 | 12 | 0 | 2008-09-23T19:57:53.257000 | 2008-09-23T19:59:58.493000 |
123,489 | 123,784 | Weird Output on SQL REPLACE | I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thing, but how do I fix it? Here is the stat... | We ended up using concat and substring to get the results we wanted. CREATE VIEW RLIC2GIS AS SELECT CONCAT(SUBSTR(RCAPIN,1,3),CONCAT(SUBSTR(RCAPIN,5,2), CONCAT(SUBSTR(RCAPIN,8,2), CONCAT(SUBSTR(RCAPIN,11,3), SUBSTR(RCAPIN, 15,3))))) AS CAPIN13, RLICNO, RONAME, ROADR1, ROADR2, ROCITY, ROSTAT, ROZIP1, ROZIP2, RGRID, RRAD... | Weird Output on SQL REPLACE I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thing, but how d... | TITLE:
Weird Output on SQL REPLACE
QUESTION:
I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encodin... | [
"sql",
"ibm-midrange"
] | 0 | 2 | 1,146 | 3 | 0 | 2008-09-23T20:02:48.673000 | 2008-09-23T20:50:47.030000 |
123,499 | 123,526 | Passing apache2 digest authentication information to a wsgi script run by mod_wsgi | I've got the directive AuthType Digest AuthName "global" AuthDigestDomain / AuthUserFile /root/apache_users Require valid-user WSGIScriptAlias / /some/script.wsgi WSGIDaemonProcess mywsgi user=someuser group=somegroup processes=2 threads=25 WSGIProcessGroup mywsgi ServerName some.example.org I'd like to know in the /so... | add WSGIPassAuthorization On: AuthType Digest AuthName "global" AuthDigestDomain / AuthUserFile /root/apache_users Require valid-user WSGIPassAuthorization On WSGIScriptAlias / /some/script.wsgi WSGIDaemonProcess mywsgi user=someuser group=somegroup processes=2 threads=25 WSGIProcessGroup mywsgi ServerName some.example... | Passing apache2 digest authentication information to a wsgi script run by mod_wsgi I've got the directive AuthType Digest AuthName "global" AuthDigestDomain / AuthUserFile /root/apache_users Require valid-user WSGIScriptAlias / /some/script.wsgi WSGIDaemonProcess mywsgi user=someuser group=somegroup processes=2 threads... | TITLE:
Passing apache2 digest authentication information to a wsgi script run by mod_wsgi
QUESTION:
I've got the directive AuthType Digest AuthName "global" AuthDigestDomain / AuthUserFile /root/apache_users Require valid-user WSGIScriptAlias / /some/script.wsgi WSGIDaemonProcess mywsgi user=someuser group=somegroup p... | [
"python",
"apache",
"authentication",
"mod-wsgi",
"wsgi"
] | 9 | 16 | 4,696 | 2 | 0 | 2008-09-23T20:05:07.437000 | 2008-09-23T20:08:51.840000 |
123,504 | 123,631 | Finding pixels per inch in wxDC | In wxWidgets, how can you find the pixels per inch on a wxDC? I'd like to be able to scale things by a real world number like inches. That often makes it easier to use the same code for printing to the screen and the printer. | does this help? (from the manual) wxDC::GetPPI wxSize GetPPI() const
Returns the resolution of the device in pixels per inch. | Finding pixels per inch in wxDC In wxWidgets, how can you find the pixels per inch on a wxDC? I'd like to be able to scale things by a real world number like inches. That often makes it easier to use the same code for printing to the screen and the printer. | TITLE:
Finding pixels per inch in wxDC
QUESTION:
In wxWidgets, how can you find the pixels per inch on a wxDC? I'd like to be able to scale things by a real world number like inches. That often makes it easier to use the same code for printing to the screen and the printer.
ANSWER:
does this help? (from the manual) w... | [
"wxwidgets"
] | 0 | 2 | 397 | 2 | 0 | 2008-09-23T20:05:35.780000 | 2008-09-23T20:24:30.477000 |
123,506 | 125,931 | C# Compiler Incorrectly Optimizes Code | I have a ASP.NET application running on a remote web server and I just started getting this error: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. (Note that Set is a class that implements a ... | Ahh, ILMerge - that extra info in your question really helps with your problem. While I wouldn't ever expect the.net compiler to fail in this way I would expect to occasionally see this sort of thing with ILMerge (given what it's doing). My guess is that two of your assemblies are using the same optimisation 'trick', a... | C# Compiler Incorrectly Optimizes Code I have a ASP.NET application running on a remote web server and I just started getting this error: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizing the code. (Note... | TITLE:
C# Compiler Incorrectly Optimizes Code
QUESTION:
I have a ASP.NET application running on a remote web server and I just started getting this error: Method not found: 'Void System.Collections.Generic.ICollection`1..ctor()'. I disassembled the code in the DLL and it seems like the compiler is incorrectly optimizi... | [
"c#",
"asp.net",
"optimization",
"compiler-construction",
"ilmerge"
] | 3 | 7 | 1,342 | 6 | 0 | 2008-09-23T20:05:41.787000 | 2008-09-24T07:57:29.453000 |
123,524 | 123,547 | How to use .NET 3.0 with Visual Studio 2005? | My Google-fu is failing me on this question. I have a coworker who has Visual Studio 2005 on his machine. I have Visual Studio 2008. He wants to open a project I wrote in C# 3.0, and we've gotten that far, but VS2005 barfs on the 3.0 code, like var. He has the 3.0 and 3.5 frameworks installed, as well as the Visual Stu... | So far as I understand it, this isn't possible. If you weren't using the new C# 3.0 code features, he should be able to work with a project created in VS2008 (and compile it against the 2.0 framework), but I don't think the 2005 compiler is ever going to be able to cope with the new syntax. | How to use .NET 3.0 with Visual Studio 2005? My Google-fu is failing me on this question. I have a coworker who has Visual Studio 2005 on his machine. I have Visual Studio 2008. He wants to open a project I wrote in C# 3.0, and we've gotten that far, but VS2005 barfs on the 3.0 code, like var. He has the 3.0 and 3.5 fr... | TITLE:
How to use .NET 3.0 with Visual Studio 2005?
QUESTION:
My Google-fu is failing me on this question. I have a coworker who has Visual Studio 2005 on his machine. I have Visual Studio 2008. He wants to open a project I wrote in C# 3.0, and we've gotten that far, but VS2005 barfs on the 3.0 code, like var. He has ... | [
"visual-studio-2008",
"visual-studio-2005",
"interop",
".net-3.0"
] | 3 | 4 | 3,024 | 3 | 0 | 2008-09-23T20:08:36.537000 | 2008-09-23T20:11:52.987000 |
123,529 | 123,535 | How do I place HTML content above a Flash movie? | A site I'm working on has Flash headers (using swfobject to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie. I've tried setting z-index on the Flash element's container and the (absolutely positioned) div but it keeps "vanishing" behind the Flash movie. I'm hoping for a... | Make sure the FlashVar "wmode" is set to "transparent" or "opaque," but NOT the default, "windowed"... then you should be able to use CSS z-index | How do I place HTML content above a Flash movie? A site I'm working on has Flash headers (using swfobject to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie. I've tried setting z-index on the Flash element's container and the (absolutely positioned) div but it keeps "va... | TITLE:
How do I place HTML content above a Flash movie?
QUESTION:
A site I'm working on has Flash headers (using swfobject to embed them). Now I'm required to code in a bit of HTML that's supposed to overlap the Flash movie. I've tried setting z-index on the Flash element's container and the (absolutely positioned) di... | [
"html",
"css",
"flash"
] | 9 | 20 | 12,162 | 6 | 0 | 2008-09-23T20:09:19.687000 | 2008-09-23T20:10:21.277000 |
123,537 | 123,643 | Washed out user interface - is there any way to correct for it? | This is an interesting conundrum. We have a WPF app that has a Vista-like theme using soft pastels, Aero control templates, etc. What we've noticed is that this UI appears incredibly washed out on low quality LCDs. Is there a way to boost color saturation application-wide or are we at the mercy of bad monitors? Can we ... | You chose a bad palette. Do some work on the UI; introduce more natural contrast. You wouldn't want to add programming to work around the bad palette choice, even if you could. Just change the colors. | Washed out user interface - is there any way to correct for it? This is an interesting conundrum. We have a WPF app that has a Vista-like theme using soft pastels, Aero control templates, etc. What we've noticed is that this UI appears incredibly washed out on low quality LCDs. Is there a way to boost color saturation ... | TITLE:
Washed out user interface - is there any way to correct for it?
QUESTION:
This is an interesting conundrum. We have a WPF app that has a Vista-like theme using soft pastels, Aero control templates, etc. What we've noticed is that this UI appears incredibly washed out on low quality LCDs. Is there a way to boost... | [
"wpf",
"user-interface",
"colors",
"lcd",
"calibration"
] | 1 | 4 | 502 | 5 | 0 | 2008-09-23T20:10:46.250000 | 2008-09-23T20:26:00.210000 |
123,540 | 123,625 | Modifying Existing .NET Assemblies | Is there a way to modify existing.NET assemblies without resorting to 3rd party tools? I know that PostSharp makes this possible but I find it incredibly wasteful that the developler of PostSharp basically had to rewrite the functionality of the whole System.Reflection namespace in order to make existing assemblies mod... | You can use MethodInfo.GetMethodBody().GetILAsByteArray(), modify that, and then plug it back into MethodBuilder.CreateMethodBody(). | Modifying Existing .NET Assemblies Is there a way to modify existing.NET assemblies without resorting to 3rd party tools? I know that PostSharp makes this possible but I find it incredibly wasteful that the developler of PostSharp basically had to rewrite the functionality of the whole System.Reflection namespace in or... | TITLE:
Modifying Existing .NET Assemblies
QUESTION:
Is there a way to modify existing.NET assemblies without resorting to 3rd party tools? I know that PostSharp makes this possible but I find it incredibly wasteful that the developler of PostSharp basically had to rewrite the functionality of the whole System.Reflecti... | [
".net",
"reflection",
"assemblies",
"reflection.emit",
"cil"
] | 16 | 10 | 10,367 | 6 | 0 | 2008-09-23T20:11:22.943000 | 2008-09-23T20:23:50.743000 |
123,557 | 123,644 | INSERT INTO a temp table, and have an IDENTITY field created, without first declaring the temp table? | I need to select a bunch of data into a temp table to then do some secondary calculations; To help make it work more efficiently, I would like to have an IDENTITY column on that table. I know I could declare the table first with an identity, then insert the rest of the data into it, but is there a way to do it in 1 ste... | Oh ye of little faith: SELECT *, IDENTITY( int ) AS idcol INTO #newtable FROM oldtable http://msdn.microsoft.com/en-us/library/aa933208(SQL.80).aspx | INSERT INTO a temp table, and have an IDENTITY field created, without first declaring the temp table? I need to select a bunch of data into a temp table to then do some secondary calculations; To help make it work more efficiently, I would like to have an IDENTITY column on that table. I know I could declare the table ... | TITLE:
INSERT INTO a temp table, and have an IDENTITY field created, without first declaring the temp table?
QUESTION:
I need to select a bunch of data into a temp table to then do some secondary calculations; To help make it work more efficiently, I would like to have an IDENTITY column on that table. I know I could ... | [
"sql",
"sql-server"
] | 50 | 96 | 158,831 | 7 | 0 | 2008-09-23T20:13:37.603000 | 2008-09-23T20:26:09.350000 |
123,558 | 123,566 | SQL Server 2005: T-SQL to temporarily disable a trigger | Is it possible to disable a trigger for a batch of commands and then enable it when the batch is done? I'm sure I could drop the trigger and re-add it but I was wondering if there was another way. | DISABLE TRIGGER { [ schema_name. ] trigger_name [,...n ] | ALL } ON { object_name | DATABASE | ALL SERVER } [; ] http://msdn.microsoft.com/en-us/library/ms189748(SQL.90).aspx followed by the inverse: ENABLE TRIGGER { [ schema_name. ] trigger_name [,...n ] | ALL } ON { object_name | DATABASE | ALL SERVER } [; ] http://m... | SQL Server 2005: T-SQL to temporarily disable a trigger Is it possible to disable a trigger for a batch of commands and then enable it when the batch is done? I'm sure I could drop the trigger and re-add it but I was wondering if there was another way. | TITLE:
SQL Server 2005: T-SQL to temporarily disable a trigger
QUESTION:
Is it possible to disable a trigger for a batch of commands and then enable it when the batch is done? I'm sure I could drop the trigger and re-add it but I was wondering if there was another way.
ANSWER:
DISABLE TRIGGER { [ schema_name. ] trigg... | [
"sql-server",
"sql-server-2005",
"t-sql"
] | 53 | 64 | 53,341 | 7 | 0 | 2008-09-23T20:13:41.610000 | 2008-09-23T20:14:26.647000 |
123,559 | 123,681 | How to validate phone numbers using regex | I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901 I'll answer with my cur... | Better option... just strip all non-digit characters on input (except 'x' and leading '+' signs), taking care because of the British tendency to write numbers in the non-standard form +44 (0)... when asked to use the international prefix (in that specific case, you should discard the (0) entirely). Then, you end up wit... | How to validate phone numbers using regex I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/56... | TITLE:
How to validate phone numbers using regex
QUESTION:
I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234... | [
"regex",
"validation",
"phone-number"
] | 1,056 | 550 | 1,199,657 | 46 | 0 | 2008-09-23T20:13:42.937000 | 2008-09-23T20:35:51.260000 |
123,575 | 154,783 | How to get the temperature of motherboard of a PC (and other hardware statistics)? | does any one know how to get the current motherboard, processor or HD temperature statistics? In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And, Can it be done with with C# or Java or any other hight level programming language... | The problem with temperature and other monitoring sensors is that there is no common protocol on the hardware level, nor drivers allowing to retrieve that information with common API. Software like already mentioned SpeedFan and HWMonitor (from the makers of CPU-Z utility) work by painstakingly cataloging the various s... | How to get the temperature of motherboard of a PC (and other hardware statistics)? does any one know how to get the current motherboard, processor or HD temperature statistics? In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And... | TITLE:
How to get the temperature of motherboard of a PC (and other hardware statistics)?
QUESTION:
does any one know how to get the current motherboard, processor or HD temperature statistics? In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How ... | [
"java",
"statistics",
"hardware",
"temperature"
] | 6 | 2 | 26,968 | 4 | 0 | 2008-09-23T20:15:35.787000 | 2008-09-30T20:10:58.960000 |
123,616 | 123,867 | How do you build an ASP.NET custom control with a collection property? | I'm looking to do something akin to What's the bare bones code needed to pull this off? Rick's example shows something akin to I'd prefer the more terse syntax if possible. Note: Feel free to suggest a better title or description. Even if you don't have edit rights, I'm glad to edit the entry for the sake of the commun... | Here's a really simple example control that does exactly what you are looking for: namespace TestControl { [ParseChildren(true, DefaultProperty = "Names")] public class MyControl: Control { public MyControl() { this.Names = new List (); }
[PersistenceMode(PersistenceMode.InnerDefaultProperty)] public List Names { get;... | How do you build an ASP.NET custom control with a collection property? I'm looking to do something akin to What's the bare bones code needed to pull this off? Rick's example shows something akin to I'd prefer the more terse syntax if possible. Note: Feel free to suggest a better title or description. Even if you don't ... | TITLE:
How do you build an ASP.NET custom control with a collection property?
QUESTION:
I'm looking to do something akin to What's the bare bones code needed to pull this off? Rick's example shows something akin to I'd prefer the more terse syntax if possible. Note: Feel free to suggest a better title or description. ... | [
"asp.net",
"custom-server-controls"
] | 12 | 17 | 3,175 | 1 | 0 | 2008-09-23T20:22:06.163000 | 2008-09-23T21:03:06.547000 |
123,628 | 354,536 | IIS site on UNC share: is it problematic? | I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an UNC path as home directory, there is an "index" somewhere in IIS which "ca... | Yes, it is possible, but yes, it can cause problems. When ASP.NET compiles ASPX, ASCX, and other content pages into assemblies, it creates a lot of FileSystemWatchers in order to monitor the dependencies between them so that when files change, it can recompile. These eat up NetBIOS resources. Additionally, every time y... | IIS site on UNC share: is it problematic? I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an UNC path as home directory, ther... | TITLE:
IIS site on UNC share: is it problematic?
QUESTION:
I am working with a legacy ASP Classic solution which is load balanced (via external hardware and has an IIS site the home directory of which is an UNC path. I've been told that the following issues with this setup currently exist: When using an UNC path as ho... | [
"iis",
"asp-classic",
"unc",
"netbios"
] | 7 | 5 | 5,597 | 3 | 0 | 2008-09-23T20:24:15.703000 | 2008-12-09T22:48:30.520000 |
123,648 | 123,819 | Extending SQL Server full-text index to search through foreign keys | I know that a SQL Server full text index can not index more than one table. But, I have relationships in tables that I would like to implement full text indexes on. Take the 3 tables below... Vehicle Veh_ID - int (Primary Key) FK_Atr_VehicleColor - int Veh_Make - nvarchar(20) Veh_Model - nvarchar(50) Veh_LicensePlate -... | I believe it's a common practice to have separate denormalized table specifically for full-text indexing. This table is then updated by triggers or, as it was in our case, by SQL Server's scheduled task. This was SQL Server 2000. In SQL Server you can have an indexed view with full-text index: http://msdn.microsoft.com... | Extending SQL Server full-text index to search through foreign keys I know that a SQL Server full text index can not index more than one table. But, I have relationships in tables that I would like to implement full text indexes on. Take the 3 tables below... Vehicle Veh_ID - int (Primary Key) FK_Atr_VehicleColor - int... | TITLE:
Extending SQL Server full-text index to search through foreign keys
QUESTION:
I know that a SQL Server full text index can not index more than one table. But, I have relationships in tables that I would like to implement full text indexes on. Take the 3 tables below... Vehicle Veh_ID - int (Primary Key) FK_Atr_... | [
"sql-server",
"database-design"
] | 3 | 4 | 2,059 | 3 | 0 | 2008-09-23T20:27:31.233000 | 2008-09-23T20:56:42.273000 |
123,657 | 123,785 | How can I share a variable or object between two or more Servlets? | I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype. I don't know if it depends on the technologies used, but I'll use Tomcat 5.5 I want to share a Vector ... | I think what you're looking for here is request, session or application data. In a servlet you can add an object as an attribute to the request object, session object or servlet context object: protected void doGet(HttpServletRequest request, HttpServletResponse response) { String shared = "shared"; request.setAttribut... | How can I share a variable or object between two or more Servlets? I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype. I don't know if it depends on the t... | TITLE:
How can I share a variable or object between two or more Servlets?
QUESTION:
I would like to know if there is some way to share a variable or an object between two or more Servlets, I mean some "standard" way. I suppose that this is not a good practice but is a easier way to build a prototype. I don't know if i... | [
"java",
"web-applications",
"servlets"
] | 44 | 81 | 66,005 | 6 | 0 | 2008-09-23T20:29:55.333000 | 2008-09-23T20:51:01.723000 |
123,661 | 123,791 | How to wait for a BackgroundWorker to cancel? | Consider a hypothetical method of an object that does stuff for you: public class DoesStuff { BackgroundWorker _worker = new BackgroundWorker();...
public void CancelDoingStuff() { _worker.CancelAsync();
//todo: Figure out a way to wait for BackgroundWorker to be cancelled. } } How can one wait for a BackgroundWorker... | If I understand your requirement right, you could do something like this (code not tested, but shows the general idea): private BackgroundWorker worker = new BackgroundWorker(); private AutoResetEvent _resetEvent = new AutoResetEvent(false);
public Form1() { InitializeComponent();
worker.DoWork += worker_DoWork; }
p... | How to wait for a BackgroundWorker to cancel? Consider a hypothetical method of an object that does stuff for you: public class DoesStuff { BackgroundWorker _worker = new BackgroundWorker();...
public void CancelDoingStuff() { _worker.CancelAsync();
//todo: Figure out a way to wait for BackgroundWorker to be cancelle... | TITLE:
How to wait for a BackgroundWorker to cancel?
QUESTION:
Consider a hypothetical method of an object that does stuff for you: public class DoesStuff { BackgroundWorker _worker = new BackgroundWorker();...
public void CancelDoingStuff() { _worker.CancelAsync();
//todo: Figure out a way to wait for BackgroundWor... | [
"c#",
".net",
"multithreading",
"backgroundworker"
] | 127 | 130 | 93,172 | 18 | 0 | 2008-09-23T20:30:50.430000 | 2008-09-23T20:52:17.807000 |
123,687 | 123,877 | Should I be more concerned with coupling between packages or between units of distribution? | I have been looking at metrics for coupling and also look at DSM. One of the tools I've been using looks at coupling between 'modules' with a module being a unit of distribution (in this case a.net assembly). I feel that I should be more interested in looking at coupling between packages (or namespaces) than with units... | First, it's easy to go overboard looking at dependencies and coupling. Make sure you aren't over complicating it. With that disclaimer out of the way, here's what I suggest. There's really 3 different views to dependency/coupling management: 1) physical structure (i.e. assembly dependencies) 2) logical structure (i.e. ... | Should I be more concerned with coupling between packages or between units of distribution? I have been looking at metrics for coupling and also look at DSM. One of the tools I've been using looks at coupling between 'modules' with a module being a unit of distribution (in this case a.net assembly). I feel that I shoul... | TITLE:
Should I be more concerned with coupling between packages or between units of distribution?
QUESTION:
I have been looking at metrics for coupling and also look at DSM. One of the tools I've been using looks at coupling between 'modules' with a module being a unit of distribution (in this case a.net assembly). I... | [
"oop",
"coupling"
] | 2 | 3 | 225 | 2 | 0 | 2008-09-23T20:36:53.897000 | 2008-09-23T21:04:17.183000 |
123,688 | 123,732 | How can a modeless VB6 application do cleanup when the application is shutting down? | A VB6 application is using the Interop Forms Toolkit to work with forms written in.NET. The documentation for the toolkit advises calling a method on the toolkit to advise the toolkit when the VB6 application is shutting down. The VB6 application uses a Sub Main procedure that loads a splash screen, then displays sever... | In a module (probably the same one that contains Sub Main), create a public sub (e.g AppCleanUp) that will hold your cleanup code. Add a class to your project (e.g. clsAppCleanup). In this class, add code in the Class_Terminate event handler that calls the sub you created in the previous step. In a module (probably the... | How can a modeless VB6 application do cleanup when the application is shutting down? A VB6 application is using the Interop Forms Toolkit to work with forms written in.NET. The documentation for the toolkit advises calling a method on the toolkit to advise the toolkit when the VB6 application is shutting down. The VB6 ... | TITLE:
How can a modeless VB6 application do cleanup when the application is shutting down?
QUESTION:
A VB6 application is using the Interop Forms Toolkit to work with forms written in.NET. The documentation for the toolkit advises calling a method on the toolkit to advise the toolkit when the VB6 application is shutt... | [
"winforms",
"vb6",
"interop",
"com-interop"
] | 1 | 3 | 798 | 3 | 0 | 2008-09-23T20:36:55.173000 | 2008-09-23T20:42:50.840000 |
123,690 | 123,739 | What CLR/.NET bytecode tools exist? | I'm well aware of Java tools for manipulating, generating, decompiling JVM bytecode (ASM, cglib, jad, etc). What similar tools exist for the CLR bytecode? Do people do bytecode manipulation for the CLR? | Bytecode is a binary format..NET assemblies work pretty different in terms of how they store the execution instructions. Instead of compiling down to a bytecode-like structure,.NET languages are compiled into an Intermediate Language (in fact, it's called just that--IL). This is a human readable language that looks sor... | What CLR/.NET bytecode tools exist? I'm well aware of Java tools for manipulating, generating, decompiling JVM bytecode (ASM, cglib, jad, etc). What similar tools exist for the CLR bytecode? Do people do bytecode manipulation for the CLR? | TITLE:
What CLR/.NET bytecode tools exist?
QUESTION:
I'm well aware of Java tools for manipulating, generating, decompiling JVM bytecode (ASM, cglib, jad, etc). What similar tools exist for the CLR bytecode? Do people do bytecode manipulation for the CLR?
ANSWER:
Bytecode is a binary format..NET assemblies work prett... | [
".net",
"clr",
"bytecode",
"il"
] | 8 | 2 | 5,922 | 5 | 0 | 2008-09-23T20:37:31.820000 | 2008-09-23T20:43:42.897000 |
123,718 | 123,815 | Php Check If a Static Class is Declared | How can i check to see if a static class has been declared? ex Given the class class bob { function yippie() { echo "skippie"; } } later in code how do i check: if(is_a_valid_static_object(bob)) { bob::yippie(); } so i don't get: Fatal error: Class 'bob' not found in file.php on line 3 | You can also check for existence of a specific method, even without instantiating the class echo method_exists( bob, 'yippie' )? 'yes': 'no'; If you want to go one step further and verify that "yippie" is actually static, use the Reflection API (PHP5 only) try { $method = new ReflectionMethod( 'bob::yippie' ); if ( $me... | Php Check If a Static Class is Declared How can i check to see if a static class has been declared? ex Given the class class bob { function yippie() { echo "skippie"; } } later in code how do i check: if(is_a_valid_static_object(bob)) { bob::yippie(); } so i don't get: Fatal error: Class 'bob' not found in file.php on ... | TITLE:
Php Check If a Static Class is Declared
QUESTION:
How can i check to see if a static class has been declared? ex Given the class class bob { function yippie() { echo "skippie"; } } later in code how do i check: if(is_a_valid_static_object(bob)) { bob::yippie(); } so i don't get: Fatal error: Class 'bob' not fou... | [
"php",
"object",
"static"
] | 9 | 16 | 9,069 | 2 | 0 | 2008-09-23T20:41:15.210000 | 2008-09-23T20:56:02.117000 |
123,726 | 130,314 | 401 response code for json requests with ASP.NET MVC | How to disable standard ASP.NET handling of 401 response code (redirecting to login page) for AJAX/JSON requests? For web-pages it's okay, but for AJAX I need to get right 401 error code instead of good looking 302/200 for login page. Update: There are several solutions from Phil Haack, PM of ASP.NET MVC - http://haack... | The ASP.NET runtime is developed so that it always will redirect the user if the HttpResponse.StatusCode is set to 401, but only if the section of the Web.config is found. Removing the authentication section will require you to implement the redirection to the login page in your attribute, but this shouldn't be a big d... | 401 response code for json requests with ASP.NET MVC How to disable standard ASP.NET handling of 401 response code (redirecting to login page) for AJAX/JSON requests? For web-pages it's okay, but for AJAX I need to get right 401 error code instead of good looking 302/200 for login page. Update: There are several soluti... | TITLE:
401 response code for json requests with ASP.NET MVC
QUESTION:
How to disable standard ASP.NET handling of 401 response code (redirecting to login page) for AJAX/JSON requests? For web-pages it's okay, but for AJAX I need to get right 401 error code instead of good looking 302/200 for login page. Update: There ... | [
"asp.net-mvc"
] | 36 | 18 | 23,145 | 7 | 0 | 2008-09-23T20:42:19.343000 | 2008-09-24T22:26:08.647000 |
123,758 | 123,765 | How do I remove code duplication between similar const and non-const member functions? | Let's say I have the following class X where I want to return access to an internal member: class Z { // details };
class X { std::vector vecZ;
public: Z& Z(size_t index) { // massive amounts of code for validating index
Z& ret = vecZ[index];
// even more code for determining that the Z instance // at index is *exa... | Yes, it is possible to avoid the code duplication. You need to use the const member function to have the logic and have the non-const member function call the const member function and re-cast the return value to a non-const reference (or pointer if the functions returns a pointer): class X { std::vector vecZ;
public:... | How do I remove code duplication between similar const and non-const member functions? Let's say I have the following class X where I want to return access to an internal member: class Z { // details };
class X { std::vector vecZ;
public: Z& Z(size_t index) { // massive amounts of code for validating index
Z& ret = ... | TITLE:
How do I remove code duplication between similar const and non-const member functions?
QUESTION:
Let's say I have the following class X where I want to return access to an internal member: class Z { // details };
class X { std::vector vecZ;
public: Z& Z(size_t index) { // massive amounts of code for validatin... | [
"c++",
"code-duplication",
"c++-faq",
"function-qualifier",
"explicit-object-parameter"
] | 319 | 75 | 56,998 | 21 | 0 | 2008-09-23T20:47:11.110000 | 2008-09-23T20:48:04.197000 |
123,772 | 123,845 | How do you manage web developers remotely? | I'm the leader of a small web development team, and I have a feeling that we will have a couple telecommuters joining the team pretty soon (either new employees, or existing employees that will begin telecommuting). Any idea how to effectively manage and collaborate with developers working remotely? Most of the work we... | I freelance a lot and in doing so work remotely a lot of the time. These are the things that make my life as easy as possible (so might be things you want to "suggest"). I think they're mostly common-sense, but you never know... [Everyone] Communicate well. When you're having a conversation face-to-face, you can be ver... | How do you manage web developers remotely? I'm the leader of a small web development team, and I have a feeling that we will have a couple telecommuters joining the team pretty soon (either new employees, or existing employees that will begin telecommuting). Any idea how to effectively manage and collaborate with devel... | TITLE:
How do you manage web developers remotely?
QUESTION:
I'm the leader of a small web development team, and I have a feeling that we will have a couple telecommuters joining the team pretty soon (either new employees, or existing employees that will begin telecommuting). Any idea how to effectively manage and coll... | [
"project-management"
] | 4 | 9 | 953 | 11 | 0 | 2008-09-23T20:48:33.603000 | 2008-09-23T21:00:42.950000 |
123,773 | 124,591 | Is OOP & completely avoiding implementation inheritance possible? | I will choose Java as an example, most people know it, though every other OO language was working as well. Java, like many other languages, has interface inheritance and implementation inheritance. E.g. a Java class can inherit from another one and every method that has an implementation there (assuming the parent is n... | Short answer: Yes it is possible. But you have to do it on purpose and no by chance ( using final, abstract and design with inheritance in mind, etc. ) Long answer: Well, inheritance is not actually for "code re-use", it is for class "specialization", I think this is a misinterpretation. For instance is it a very bad i... | Is OOP & completely avoiding implementation inheritance possible? I will choose Java as an example, most people know it, though every other OO language was working as well. Java, like many other languages, has interface inheritance and implementation inheritance. E.g. a Java class can inherit from another one and every... | TITLE:
Is OOP & completely avoiding implementation inheritance possible?
QUESTION:
I will choose Java as an example, most people know it, though every other OO language was working as well. Java, like many other languages, has interface inheritance and implementation inheritance. E.g. a Java class can inherit from ano... | [
"java",
"oop"
] | 22 | 11 | 8,256 | 8 | 0 | 2008-09-23T20:48:36.690000 | 2008-09-23T23:48:01.550000 |
123,776 | 124,077 | Parent.FindControl() not working? | I have a page that has an iframe From one of the pages within the iframe I want to look back and make a panel on the default page invisible because it is overshadowing a popup I tried using Parent.FindControl but it does not seem to be working. I am positive I have the right id in the findcontrol because I used Firebug... | I didn't completely follow your problem, but I'll take my best shot. It sounds like you have an ASP.NET page, that has an iframe in it that refers to another ASP.NET page, and in that page that was requested by the iframe you want to modify the visibility of the item contained in the page that contains the iframe. If m... | Parent.FindControl() not working? I have a page that has an iframe From one of the pages within the iframe I want to look back and make a panel on the default page invisible because it is overshadowing a popup I tried using Parent.FindControl but it does not seem to be working. I am positive I have the right id in the ... | TITLE:
Parent.FindControl() not working?
QUESTION:
I have a page that has an iframe From one of the pages within the iframe I want to look back and make a panel on the default page invisible because it is overshadowing a popup I tried using Parent.FindControl but it does not seem to be working. I am positive I have th... | [
"asp.net",
"javascript",
"findcontrol"
] | 1 | 3 | 7,349 | 4 | 0 | 2008-09-23T20:49:15.847000 | 2008-09-23T21:40:22.027000 |
123,781 | 123,828 | Logging ALL Queries on a SQL Server 2008 Express Database? | Is there a way to tell SQL Server 2008 Express to log every query (including each and every SELECT Query!) into a file? It's a Development machine, so the negative side effects of logging Select-Queries are not an issue. Before someone suggests using the SQL Profiler: This is not available in Express (does anyone know ... | SQL Server Profiler: File → New Trace The "General" Tab is displayed. Here you can choose "Save to file:" so its logged to a file. View the "Event Selection" Tab Select the items you want to log. TSQL → SQL:BatchStarting will get you sql selects Stored Procedures → RPC:Completed will get you Stored Procedures. More inf... | Logging ALL Queries on a SQL Server 2008 Express Database? Is there a way to tell SQL Server 2008 Express to log every query (including each and every SELECT Query!) into a file? It's a Development machine, so the negative side effects of logging Select-Queries are not an issue. Before someone suggests using the SQL Pr... | TITLE:
Logging ALL Queries on a SQL Server 2008 Express Database?
QUESTION:
Is there a way to tell SQL Server 2008 Express to log every query (including each and every SELECT Query!) into a file? It's a Development machine, so the negative side effects of logging Select-Queries are not an issue. Before someone suggest... | [
"sql",
"sql-server",
"database",
"logging",
"ssms"
] | 63 | 69 | 101,126 | 8 | 0 | 2008-09-23T20:50:25.440000 | 2008-09-23T20:58:09.633000 |
123,783 | 123,799 | Design question: How would you design a messaging/inbox system? | Many websites have the concept of sending messages from user to user. When you send a message to another user, the message would show up in their inbox. You could respond to the message, and it would show up as a new entry in that message thread. You should be able to see if you've read a given message already, and mes... | user id name
messages id to_user_id from_user_id title date
message_post id message_id user_id message date classes would reflect this sort of schema | Design question: How would you design a messaging/inbox system? Many websites have the concept of sending messages from user to user. When you send a message to another user, the message would show up in their inbox. You could respond to the message, and it would show up as a new entry in that message thread. You shoul... | TITLE:
Design question: How would you design a messaging/inbox system?
QUESTION:
Many websites have the concept of sending messages from user to user. When you send a message to another user, the message would show up in their inbox. You could respond to the message, and it would show up as a new entry in that message... | [
"messaging"
] | 2 | 1 | 1,944 | 5 | 0 | 2008-09-23T20:50:39.010000 | 2008-09-23T20:53:39.533000 |
123,792 | 123,892 | How to make my code run on multiple cores? | I have built an application in C# that I would like to be optimized for multiple cores. I have some threads, should I do more? Updated for more detail C# 2.0 Run on Windows Vista and Windows Server 2003 Updated again This code is running as a service I do not want to have the complete code... my goal here is to get you... | I'd generalize that writing a highly optimized multi-threaded process is a lot harder than just throwing some threads in the mix. I recommend starting with the following steps: Split up your workloads into discrete parallel executable units Measure and characterize workload types - Network intensive, I/O intensive, CPU... | How to make my code run on multiple cores? I have built an application in C# that I would like to be optimized for multiple cores. I have some threads, should I do more? Updated for more detail C# 2.0 Run on Windows Vista and Windows Server 2003 Updated again This code is running as a service I do not want to have the ... | TITLE:
How to make my code run on multiple cores?
QUESTION:
I have built an application in C# that I would like to be optimized for multiple cores. I have some threads, should I do more? Updated for more detail C# 2.0 Run on Windows Vista and Windows Server 2003 Updated again This code is running as a service I do not... | [
"c#",
"multithreading",
"multicore"
] | 19 | 49 | 31,510 | 6 | 0 | 2008-09-23T20:52:24.343000 | 2008-09-23T21:06:30.470000 |
123,796 | 123,829 | Setting placeholder properties from the controller? | I have an if/else statement in the controller and 2 different types of views to display depending on the outcome. So I have my 2 views in a.aspx page with a placeholder around each. How do I set the property placeholder.Visible from the controller? Or by the theory of MVC should I even be doing that sort of presentatio... | Don't do that.. just have two aspx pages/views. Don't worry about placeholders. To elaborate, yes, you can do that kind of logic in an action method. And yes, you can have an action method render a view conditionally. This is normal! If the logic in the action gets to be so much that you have difficulty maintaining the... | Setting placeholder properties from the controller? I have an if/else statement in the controller and 2 different types of views to display depending on the outcome. So I have my 2 views in a.aspx page with a placeholder around each. How do I set the property placeholder.Visible from the controller? Or by the theory of... | TITLE:
Setting placeholder properties from the controller?
QUESTION:
I have an if/else statement in the controller and 2 different types of views to display depending on the outcome. So I have my 2 views in a.aspx page with a placeholder around each. How do I set the property placeholder.Visible from the controller? O... | [
"asp.net-mvc"
] | 1 | 1 | 311 | 1 | 0 | 2008-09-23T20:53:31.360000 | 2008-09-23T20:58:12.580000 |
123,803 | 123,909 | Visual Studio Freezing/TFS Window Might be off screen | I am using Visual Studio 2005 with Team Foundation Server. When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to. I tried minimizing all the windows that I can and it is n... | Try the keyboard shortcut to get to the window's main menu () then hit 'M' for move and hit an arrow key to attach the window to the mouse - then at the next move of the mouse it should jump to it. Experiment with a window you can see first. | Visual Studio Freezing/TFS Window Might be off screen I am using Visual Studio 2005 with Team Foundation Server. When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to. I t... | TITLE:
Visual Studio Freezing/TFS Window Might be off screen
QUESTION:
I am using Visual Studio 2005 with Team Foundation Server. When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I... | [
"visual-studio",
"tfs",
"window",
"hidden",
"freeze"
] | 6 | 14 | 3,315 | 3 | 0 | 2008-09-23T20:54:03.247000 | 2008-09-23T21:11:05.233000 |
123,809 | 123,932 | Blank Page in JSF | If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution?;) Due to some requests. Here follow more datails: web.xml com.com... | I think this largely depends on your JSF implementation. I've heard that some will render blank screens. The one we were using would throw error 500's with a stack trace. Other times out buttons wouldn't work without any error for the user. This was all during our development phase. But the best advice I can give you i... | Blank Page in JSF If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution?;) Due to some requests. Here follow more datail... | TITLE:
Blank Page in JSF
QUESTION:
If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution?;) Due to some requests. Here ... | [
"java",
"jsf",
"facelets"
] | 2 | 3 | 6,081 | 3 | 0 | 2008-09-23T20:55:05.600000 | 2008-09-23T21:15:56.983000 |
123,826 | 124,920 | Using mercurial's mq for managing local changes | I have a local mercurial repository with some site-specific changes in it. What I would like to do is set a couple files to be un-commitable so that they aren't automatically committed when I do an hg commit with no arguments. Right now, I'm doing complicated things with mq and guards to achieve this, pushing and poppi... | I know that bazaar has shelve and unshelve commands to push and pop changes you don't want included in a commit. I think it's pretty likely that Mercurial has similar commands. | Using mercurial's mq for managing local changes I have a local mercurial repository with some site-specific changes in it. What I would like to do is set a couple files to be un-commitable so that they aren't automatically committed when I do an hg commit with no arguments. Right now, I'm doing complicated things with ... | TITLE:
Using mercurial's mq for managing local changes
QUESTION:
I have a local mercurial repository with some site-specific changes in it. What I would like to do is set a couple files to be un-commitable so that they aren't automatically committed when I do an hg commit with no arguments. Right now, I'm doing compli... | [
"mercurial",
"mercurial-queue"
] | 1 | 1 | 992 | 3 | 0 | 2008-09-23T20:57:37.077000 | 2008-09-24T01:39:13.887000 |
123,837 | 123,889 | How much process should a single developer follow? Is a formal process too much? | Since I didn't do a good job writing the last question, and most of the answers were good, but not at all in the direction I intended for the question to go in, I deleted it and remade it as this question. I'm a solo developer on my own projects, generally very small things, but I have a few ideas that might turn into ... | Even if you don't need process to promote good communication between team members, process can help you compensate for the fact that you aren't as superhuman as you thought you were when you were 18:) The type and amount of 'paperwork' you decide to do depends on your own strengths and weaknesses. Bad memory? Write dow... | How much process should a single developer follow? Is a formal process too much? Since I didn't do a good job writing the last question, and most of the answers were good, but not at all in the direction I intended for the question to go in, I deleted it and remade it as this question. I'm a solo developer on my own pr... | TITLE:
How much process should a single developer follow? Is a formal process too much?
QUESTION:
Since I didn't do a good job writing the last question, and most of the answers were good, but not at all in the direction I intended for the question to go in, I deleted it and remade it as this question. I'm a solo deve... | [
"architecture"
] | 6 | 6 | 1,000 | 6 | 0 | 2008-09-23T20:59:02.580000 | 2008-09-23T21:06:16.087000 |
123,838 | 123,854 | Get the resolution of a jpeg image using C# and the .NET Environment? | Our clients will be uploading images to be printed on their documents and we have been asked to come up with a way to get the resolution of the image in order to warn them if the image has too low of a resolution and will look pixalated in the end-product If it comes to it we could also go with the dimensions if anyone... | System.Drawing.Image Image newImage = Image.FromFile("SampImag.jpg"); newImage.HorizontalResolution | Get the resolution of a jpeg image using C# and the .NET Environment? Our clients will be uploading images to be printed on their documents and we have been asked to come up with a way to get the resolution of the image in order to warn them if the image has too low of a resolution and will look pixalated in the end-pr... | TITLE:
Get the resolution of a jpeg image using C# and the .NET Environment?
QUESTION:
Our clients will be uploading images to be printed on their documents and we have been asked to come up with a way to get the resolution of the image in order to warn them if the image has too low of a resolution and will look pixal... | [
".net",
"jpeg",
"resolution"
] | 6 | 13 | 30,638 | 4 | 0 | 2008-09-23T20:59:04.013000 | 2008-09-23T21:01:12.747000 |
123,848 | 123,875 | What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed? | If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your development machine with IIS and SQL Server already installed, what's the best way to do it? I found a method online which sets ... | I run XAMPP on a thumbdrive and install WordPress (usually multiple instances of it) on there. Then I start up XAMPP when I'm going to work on Wordpress development. EDIT: this setup does require that IIS be stopped when the XAMPP server is running (or some byzantine configuration magic that I've never bothered to figu... | What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed? If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your development machine ... | TITLE:
What's the best way to develop against WordPress on Windows when you already have IIS/SQL Server installed?
QUESTION:
If you want to develop against WordPress (i.e., have a local instance running on your machine so you can develop themes, get blogs and sites laid out, etc.) and you're running Windows on your de... | [
"windows",
"iis",
"wordpress"
] | 2 | 2 | 1,418 | 4 | 0 | 2008-09-23T21:00:49.890000 | 2008-09-23T21:04:12.583000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.