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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83,741 | 92,182 | Best way to aggregate multiple log files from several servers | I need a simple way to monitor multiple text log files distributed over a number of HP-UX servers. They are a mix of text and XML log files from several distributed legacy systems. Currently we just ssh to the servers and use tail -f and grep, but that doesn't scale when you have many logs to keep track of. Since the l... | Options: Use a SocketAppender to send all logs to 1 server directly. (This could serverly hamper performance and add a single point of failure.) Use scripts to aggregate the data. I use scp, ssh, and authentication keys to allow my scripts to get data from all servers without any login prompts. | Best way to aggregate multiple log files from several servers I need a simple way to monitor multiple text log files distributed over a number of HP-UX servers. They are a mix of text and XML log files from several distributed legacy systems. Currently we just ssh to the servers and use tail -f and grep, but that doesn... | TITLE:
Best way to aggregate multiple log files from several servers
QUESTION:
I need a simple way to monitor multiple text log files distributed over a number of HP-UX servers. They are a mix of text and XML log files from several distributed legacy systems. Currently we just ssh to the servers and use tail -f and gr... | [
"logging",
"log4j",
"monitoring",
"distributed"
] | 42 | 2 | 48,799 | 10 | 0 | 2008-09-17T14:21:39.910000 | 2008-09-18T12:41:50.423000 |
83,749 | 83,883 | How to access custom fields from the global class in a webhandler? | I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application state object? | You would probably need to access the class as the type that your Global.asax.cs is rather than the type it is inheriting from. I believe it is more common to just use the Application State object for application wide variables. | How to access custom fields from the global class in a webhandler? I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application state object? | TITLE:
How to access custom fields from the global class in a webhandler?
QUESTION:
I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application s... | [
"c#",
"asp.net"
] | 2 | 2 | 348 | 2 | 0 | 2008-09-17T14:22:25.820000 | 2008-09-17T14:34:27.383000 |
83,752 | 91,642 | Semantic Web Framework | What semantic web frameworks are there, and what are the advantages / disadvantages of each? I've made extensive use of Jena, and I have looked at Sesame briefly. Are there others I should consider as well? | a more low-level appproach is redland, which provides bindings to a lot of languages like Perl, PHP, Python and Ruby. redland itself is written in C. i have scripted with it in ruby to provide a simple webservice with a rdf backend instead of a classic database. | Semantic Web Framework What semantic web frameworks are there, and what are the advantages / disadvantages of each? I've made extensive use of Jena, and I have looked at Sesame briefly. Are there others I should consider as well? | TITLE:
Semantic Web Framework
QUESTION:
What semantic web frameworks are there, and what are the advantages / disadvantages of each? I've made extensive use of Jena, and I have looked at Sesame briefly. Are there others I should consider as well?
ANSWER:
a more low-level appproach is redland, which provides bindings ... | [
"frameworks",
"semantic-web"
] | 11 | 6 | 3,973 | 7 | 0 | 2008-09-17T14:22:38.380000 | 2008-09-18T11:06:33.380000 |
83,756 | 86,611 | How to programmatically enable/disable network interfaces? (Windows XP) | I need to enable/disable completely network interfaces from a script in Windows XP. I'm looking for a python solution, but any general way (eg WMI, some command-line à la netsh, some windows call) is welcome and will be adjusted. Thanks. | Using the netsh interface Usage set interface [name = ] IfName [ [admin = ] ENABLED|DISABLED [connect = ] CONNECTED|DISCONNECTED [newname = ] NewName ] Try including everything inside the outer brackets: netsh interface set interface name="thename" admin=disabled connect=DISCONNECTED newname="thename" See also this MS ... | How to programmatically enable/disable network interfaces? (Windows XP) I need to enable/disable completely network interfaces from a script in Windows XP. I'm looking for a python solution, but any general way (eg WMI, some command-line à la netsh, some windows call) is welcome and will be adjusted. Thanks. | TITLE:
How to programmatically enable/disable network interfaces? (Windows XP)
QUESTION:
I need to enable/disable completely network interfaces from a script in Windows XP. I'm looking for a python solution, but any general way (eg WMI, some command-line à la netsh, some windows call) is welcome and will be adjusted. ... | [
"python",
"networking",
"windows-xp"
] | 13 | 11 | 48,617 | 7 | 0 | 2008-09-17T14:22:56.647000 | 2008-09-17T19:20:31.907000 |
83,770 | 83,951 | Dynamically add CalendarExtender to Textbox subclass server control? | I'm trying to create a server control, which inherits from TextBox, that will automatically have a CalendarExtender attached to it. Is it possible to do this, or does my new control need to inherit from CompositeControl instead? I've tried the former, but I'm not clear during which part of the control lifecycle I shoul... | I accomplished this in a project a while back. To do it I created a CompositeControl that contains both the TextBox and the CalendarExtender. In the CreateChildControls method of the CompositeControl I use code similar to this: TextBox textbox = new TextBox(); textbox.ID = this.ID + "Textbox"; textbox.Text = this.Edita... | Dynamically add CalendarExtender to Textbox subclass server control? I'm trying to create a server control, which inherits from TextBox, that will automatically have a CalendarExtender attached to it. Is it possible to do this, or does my new control need to inherit from CompositeControl instead? I've tried the former,... | TITLE:
Dynamically add CalendarExtender to Textbox subclass server control?
QUESTION:
I'm trying to create a server control, which inherits from TextBox, that will automatically have a CalendarExtender attached to it. Is it possible to do this, or does my new control need to inherit from CompositeControl instead? I've... | [
"asp.net",
"asp.net-ajax",
"textbox",
"calendar",
"custom-server-controls"
] | 2 | 2 | 11,542 | 4 | 0 | 2008-09-17T14:24:21.917000 | 2008-09-17T14:40:33.767000 |
83,777 | 83,931 | Are there any Fuzzy Search or String Similarity Functions libraries written for C#? | There are similar question, but not regarding C# libraries I can use in my source code. Thank you all for your help. I've already saw lucene, but I need something more easy to search for similar strings and without the overhead of the indexing part. The answer I marked has got two very easy algorithms, and one uses LIN... | Levenshtein distance implementation: Using LINQ (not really, see comments) Not using LINQ I have a.NET 1.1 project in which I use the latter. It's simplistic, but works perfectly for what I need. From what I remember it needed a bit of tweaking, but nothing that wasn't obvious. | Are there any Fuzzy Search or String Similarity Functions libraries written for C#? There are similar question, but not regarding C# libraries I can use in my source code. Thank you all for your help. I've already saw lucene, but I need something more easy to search for similar strings and without the overhead of the i... | TITLE:
Are there any Fuzzy Search or String Similarity Functions libraries written for C#?
QUESTION:
There are similar question, but not regarding C# libraries I can use in my source code. Thank you all for your help. I've already saw lucene, but I need something more easy to search for similar strings and without the... | [
"c#",
".net",
"string",
"comparison"
] | 71 | 35 | 43,285 | 8 | 0 | 2008-09-17T14:24:48.873000 | 2008-09-17T14:38:51.443000 |
83,787 | 83,861 | How to get date picture created in java | I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date from the file. I believe the information is stored within the file as the date I see when I hover the mouse pointer over the file in Win XP is ... | The information is stored within the image in a format called EXIF or link text. There several libraries out there capable of reading this format, like this one | How to get date picture created in java I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date from the file. I believe the information is stored within the file as the date I see when I hover the m... | TITLE:
How to get date picture created in java
QUESTION:
I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date from the file. I believe the information is stored within the file as the date I see ... | [
"java",
"date"
] | 10 | 12 | 14,785 | 5 | 0 | 2008-09-17T14:25:29.450000 | 2008-09-17T14:32:26.467000 |
83,807 | 108,376 | How do I find the definition of a named constraint in Oracle? | All I know about the constraint is it's name ( SYS_C003415 ), but I want to see it's definition. | Another option would be to reverse engineer the DDL... DBMS_METADATA.GET_DDL('CONSTRAINT', 'SYS_C003415') Some examples here.... http://www.psoug.org/reference/dbms_metadata.html | How do I find the definition of a named constraint in Oracle? All I know about the constraint is it's name ( SYS_C003415 ), but I want to see it's definition. | TITLE:
How do I find the definition of a named constraint in Oracle?
QUESTION:
All I know about the constraint is it's name ( SYS_C003415 ), but I want to see it's definition.
ANSWER:
Another option would be to reverse engineer the DDL... DBMS_METADATA.GET_DDL('CONSTRAINT', 'SYS_C003415') Some examples here.... http:... | [
"oracle"
] | 23 | 8 | 44,152 | 4 | 0 | 2008-09-17T14:27:20.927000 | 2008-09-20T14:51:52.893000 |
83,808 | 83,845 | Home key go to start of line in Visual Studio? | Where is the option in Visual Studio to make the Home key go to the start of the line? Right now you have to do Home, Home or Home, Ctrl + Left Arrow i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it. | In Tools/Customize/Keyboard, Reassign the "Home" key from Edit.LineStart" to "Edit.LineFirstColumn" Edit by OP: You must change Scope to Text Editor before this will work. Visual Studio 2010 Visual Studio 2010 removed the "scope" option. Instead you want the "Use new shortcut in" option: | Home key go to start of line in Visual Studio? Where is the option in Visual Studio to make the Home key go to the start of the line? Right now you have to do Home, Home or Home, Ctrl + Left Arrow i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it. | TITLE:
Home key go to start of line in Visual Studio?
QUESTION:
Where is the option in Visual Studio to make the Home key go to the start of the line? Right now you have to do Home, Home or Home, Ctrl + Left Arrow i'd prefer that home goes to the start of the line. i saw it before, but now i cannot find it.
ANSWER:
I... | [
"visual-studio",
"key",
"keyboard-shortcuts"
] | 20 | 31 | 8,588 | 2 | 0 | 2008-09-17T14:27:24.810000 | 2008-09-17T14:30:46.097000 |
83,840 | 83,894 | Is there a Functional Programming library for .NET? | For example, in Java there is Functional Java and Higher-Order Java. Both essentially give a small API for manipulating higher-order, curried functions, and perhaps a few new data types (tuples, immutable lists). | have you looked into F#? Also a neat blog post would be here that talks about how to use the new generic / lambda expressions built into c# 3.0. If you just add using System.Linq to the top of your source file there are a LOT of nice new functions added to working with collections such as folding / filtering / etc. | Is there a Functional Programming library for .NET? For example, in Java there is Functional Java and Higher-Order Java. Both essentially give a small API for manipulating higher-order, curried functions, and perhaps a few new data types (tuples, immutable lists). | TITLE:
Is there a Functional Programming library for .NET?
QUESTION:
For example, in Java there is Functional Java and Higher-Order Java. Both essentially give a small API for manipulating higher-order, curried functions, and perhaps a few new data types (tuples, immutable lists).
ANSWER:
have you looked into F#? Als... | [
"c#",
".net",
"functional-programming"
] | 16 | 7 | 5,814 | 10 | 0 | 2008-09-17T14:30:24.477000 | 2008-09-17T14:35:33.497000 |
83,856 | 83,910 | how to replace multiple strings together in Oracle | I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value, {2} with some value and {3} with some value. Is it Possible to replace all 3 in one replace function? or is there any way I can directly write query and get replaced value? I want to replace the... | Although it is not one call, you can nest the replace() calls: SET mycol = replace( replace(mycol, '{1}', 'myoneval'), '{2}', mytwoval) | how to replace multiple strings together in Oracle I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value, {2} with some value and {3} with some value. Is it Possible to replace all 3 in one replace function? or is there any way I can directly write ... | TITLE:
how to replace multiple strings together in Oracle
QUESTION:
I have a string coming from a table like "can no pay{1},as your payment{2}due on {3}". I want to replace {1} with some value, {2} with some value and {3} with some value. Is it Possible to replace all 3 in one replace function? or is there any way I c... | [
"oracle",
"string",
"replace"
] | 11 | 16 | 39,706 | 5 | 0 | 2008-09-17T14:31:29.590000 | 2008-09-17T14:37:25.253000 |
83,863 | 83,888 | How can I create and develop new database projects in Visual Studio? | I want to find a way to develop database projects quickly in Visual Studio. Any ideas? | I have a method of creating and updating database projects in Visual Studio 2005 that I thought was common knowledge. After asking a few coworkers if they knew how to update their database projects with this method and receiving no's, I thought I would blog about it and pass along some helpful hints and best practices.... | How can I create and develop new database projects in Visual Studio? I want to find a way to develop database projects quickly in Visual Studio. Any ideas? | TITLE:
How can I create and develop new database projects in Visual Studio?
QUESTION:
I want to find a way to develop database projects quickly in Visual Studio. Any ideas?
ANSWER:
I have a method of creating and updating database projects in Visual Studio 2005 that I thought was common knowledge. After asking a few ... | [
"database",
"visual-studio",
"projects"
] | 0 | 4 | 1,695 | 3 | 0 | 2008-09-17T14:32:50.303000 | 2008-09-17T14:34:54.810000 |
83,887 | 1,384,848 | Is there any way to detect the target class in static methods? | Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class. | Now that PHP 5.3 is widely available in the wild, I wanted to put together a summary answer to this question to reflect newly available techniques. As mentioned in the other answers, PHP 5.3 has introduced Late Static Binding via a new static keyword. As well, a new get_called_class() function is also available that ca... | Is there any way to detect the target class in static methods? Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class. | TITLE:
Is there any way to detect the target class in static methods?
QUESTION:
Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class.
ANSWER:
Now that PHP 5.... | [
"php",
"oop",
"php-5.3",
"php-5.2"
] | 1 | 3 | 835 | 5 | 0 | 2008-09-17T14:34:48.320000 | 2009-09-06T04:16:26.233000 |
83,899 | 83,906 | Video capture on Linux? | We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience? | Use the video4linux library. I've used it with a c++ program and was able to capture webcam frames within about an hour. (Very easy to use and setup) | Video capture on Linux? We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience? | TITLE:
Video capture on Linux?
QUESTION:
We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience?
ANSWER:
Use the video4linux library. I've used it with a c++ program and was able to capture webcam frames within about an hou... | [
"linux",
"video",
"video-capture",
"image-capture"
] | 6 | 5 | 23,503 | 8 | 0 | 2008-09-17T14:36:10.080000 | 2008-09-17T14:37:02.777000 |
83,914 | 83,963 | How to update a field with random data? | I've got a new varchar(10) field in a database with 1000+ records. I'd like to update the table so I can have random data in the field. I'm looking for a SQL solution. I know I can use a cursor, but that seems inelegant. MS-SQL 2000,BTW | update MyTable Set RandomFld = CONVERT(varchar(10), NEWID()) | How to update a field with random data? I've got a new varchar(10) field in a database with 1000+ records. I'd like to update the table so I can have random data in the field. I'm looking for a SQL solution. I know I can use a cursor, but that seems inelegant. MS-SQL 2000,BTW | TITLE:
How to update a field with random data?
QUESTION:
I've got a new varchar(10) field in a database with 1000+ records. I'd like to update the table so I can have random data in the field. I'm looking for a SQL solution. I know I can use a cursor, but that seems inelegant. MS-SQL 2000,BTW
ANSWER:
update MyTable S... | [
"sql",
"sql-server"
] | 0 | 5 | 3,726 | 8 | 0 | 2008-09-17T14:37:28.610000 | 2008-09-17T14:41:48.160000 |
83,918 | 84,044 | log4j log file names? | We have several jobs that run concurrently that have to use the same config info for log4j. They are all dumping the logs into one file using the same appender. Is there a way to have each job dynamically name its log file so they stay seperate? Thanks Tom | Can you pass a Java system property for each job? If so, you can parameterize like this: java -Dmy_var=somevalue my.job.Classname And then in your log4j.properties: log4j.appender.A.File=${my_var}/A.log You could populate the Java system property with a value from the host's environment (for example) that would uniquel... | log4j log file names? We have several jobs that run concurrently that have to use the same config info for log4j. They are all dumping the logs into one file using the same appender. Is there a way to have each job dynamically name its log file so they stay seperate? Thanks Tom | TITLE:
log4j log file names?
QUESTION:
We have several jobs that run concurrently that have to use the same config info for log4j. They are all dumping the logs into one file using the same appender. Is there a way to have each job dynamically name its log file so they stay seperate? Thanks Tom
ANSWER:
Can you pass a... | [
"java",
"logging",
"log4j"
] | 14 | 21 | 36,501 | 10 | 0 | 2008-09-17T14:37:45.863000 | 2008-09-17T14:49:20.623000 |
83,945 | 84,133 | Listview Multiple Selection | Is there any way to force a listview control to treat all clicks as though they were done through the Control key? I need to replicate the functionality of using the control key (selecting an item sets and unsets its selection status) in order to allow the user to easily select multiple items at the same time. Thank yo... | It's not the standard behaviour of the ListView control, even when MultiSelect is set to true. If you wanted to create your own custom control you would need to do the following: Derive a control from ListView add a handler to the "Selected" event. In the "OnSelected", maintain your own list of selected items. If the n... | Listview Multiple Selection Is there any way to force a listview control to treat all clicks as though they were done through the Control key? I need to replicate the functionality of using the control key (selecting an item sets and unsets its selection status) in order to allow the user to easily select multiple item... | TITLE:
Listview Multiple Selection
QUESTION:
Is there any way to force a listview control to treat all clicks as though they were done through the Control key? I need to replicate the functionality of using the control key (selecting an item sets and unsets its selection status) in order to allow the user to easily se... | [
"c#",
"winforms"
] | 6 | 4 | 17,358 | 6 | 0 | 2008-09-17T14:40:16.387000 | 2008-09-17T14:57:02.213000 |
83,953 | 84,557 | Php $_GET issue | foreach ($_GET as $field => $label) { $datarray[]=$_GET[$field]; echo "$_GET[$field]"; echo " "; } print_r($datarray); This is the output I am getting. I see the data is there in datarray but when I echo $_GET[$field] I only get "Array" But print_r($datarray) prints all the data. Any idea how I pull those values? OUTPU... | EDIT: When I completed your test, here was the final URL: http://hofstrateach.org/Roberto/process.php?keys=Grade1&keys=Nathan&keys=North%20America&keys=5&keys=3&keys=no&keys=foo&keys=blat&keys=0%3A0%3A24 This is probably a malformed URL. When you pass duplicate keys in a query, PHP makes them an array. The above URL sh... | Php $_GET issue foreach ($_GET as $field => $label) { $datarray[]=$_GET[$field]; echo "$_GET[$field]"; echo " "; } print_r($datarray); This is the output I am getting. I see the data is there in datarray but when I echo $_GET[$field] I only get "Array" But print_r($datarray) prints all the data. Any idea how I pull tho... | TITLE:
Php $_GET issue
QUESTION:
foreach ($_GET as $field => $label) { $datarray[]=$_GET[$field]; echo "$_GET[$field]"; echo " "; } print_r($datarray); This is the output I am getting. I see the data is there in datarray but when I echo $_GET[$field] I only get "Array" But print_r($datarray) prints all the data. Any i... | [
"php",
"arrays",
"printing",
"foreach",
"get"
] | 0 | 1 | 2,005 | 8 | 0 | 2008-09-17T14:40:43.390000 | 2008-09-17T15:34:12.327000 |
83,962 | 83,997 | Do I have a gcc optimization bug or a C code problem? | Test the following code: #include #include main() { const char *yytext="0"; const float f=(float)atof(yytext); size_t t = *((size_t*)&f); printf("t should be 0 but is %d\n", t); } Compile it with: gcc -O3 test.c The GOOD output should be: "t should be 0 but is 0" But with my gcc 4.1.3, I have: "t should be 0 but is -12... | Use the compiler flag -fno-strict-aliasing. With strict aliasing enabled, as it is by default for at least -O3, in the line: size_t t = *((size_t*)&f); the compiler assumes that the size_t* does NOT point to the same memory area as the float*. As far as I know, this is standards-compliant behaviour (adherence with stri... | Do I have a gcc optimization bug or a C code problem? Test the following code: #include #include main() { const char *yytext="0"; const float f=(float)atof(yytext); size_t t = *((size_t*)&f); printf("t should be 0 but is %d\n", t); } Compile it with: gcc -O3 test.c The GOOD output should be: "t should be 0 but is 0" Bu... | TITLE:
Do I have a gcc optimization bug or a C code problem?
QUESTION:
Test the following code: #include #include main() { const char *yytext="0"; const float f=(float)atof(yytext); size_t t = *((size_t*)&f); printf("t should be 0 but is %d\n", t); } Compile it with: gcc -O3 test.c The GOOD output should be: "t should... | [
"c",
"gcc"
] | 10 | 18 | 6,364 | 9 | 0 | 2008-09-17T14:41:46.697000 | 2008-09-17T14:44:55.080000 |
83,967 | 86,536 | How do I do a manual uninstall of Oracle? | Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle? | The six-step process to remove all things Oracle from a Windows machine: A. Delete the Oracle services: In the registry, go to \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete everything that starts with "Oracle" B. Remove other Oracle stuff from the registry: Go to \HKEY_LOCAL_MACHINE\SOFTWARE\ and del... | How do I do a manual uninstall of Oracle? Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle? | TITLE:
How do I do a manual uninstall of Oracle?
QUESTION:
Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle?
ANSWER:
The six-step process to remove all things Oracle from a Windows machine: A. Delete the Oracle services: In the registry, go to \HKEY_LOCAL_MACHINE\SYSTEM\Cur... | [
"database",
"oracle",
"oracle10g",
"uninstallation",
"oracle9i"
] | 20 | 50 | 90,622 | 7 | 0 | 2008-09-17T14:41:55.883000 | 2008-09-17T19:13:13.640000 |
83,969 | 137,571 | Log4net with SyslogAppender, 1kb message limit | Has anyone found a way to get around this? Or a better technique to conglomerate logging from multiple web servers reliably? Any ideas on good log4net log file analysis tools too (plain text not XML) - apart from good 'ol grep of course:) | The 1024 byte limit is part of the syslog RFC (section 4.1), as is UDP transport which doesn't have guaranteed delivery (in case you worry about log lines lost in the ether). I think syslog-ng can solve both these issues, but I'm not a syslog expert. | Log4net with SyslogAppender, 1kb message limit Has anyone found a way to get around this? Or a better technique to conglomerate logging from multiple web servers reliably? Any ideas on good log4net log file analysis tools too (plain text not XML) - apart from good 'ol grep of course:) | TITLE:
Log4net with SyslogAppender, 1kb message limit
QUESTION:
Has anyone found a way to get around this? Or a better technique to conglomerate logging from multiple web servers reliably? Any ideas on good log4net log file analysis tools too (plain text not XML) - apart from good 'ol grep of course:)
ANSWER:
The 102... | [
"log4net",
"syslog"
] | 0 | 1 | 1,693 | 4 | 0 | 2008-09-17T14:42:01.030000 | 2008-09-26T03:17:45.677000 |
83,983 | 84,154 | Why isn't the 'len' function inherited by dictionaries and lists in Python | example: a_list = [1, 2, 3] a_list.len() # doesn't work len(a_list) # works Python being (very) object oriented, I don't understand why the 'len' function isn't inherited by the object. Plus I keep trying the wrong solution since it appears as the logical one to me | Guido's explanation is here: First of all, I chose len(x) over x.len() for HCI reasons (def __len__() came much later). There are two intertwined reasons actually, both HCI: (a) For some operations, prefix notation just reads better than postfix — prefix (and infix!) operations have a long tradition in mathematics whic... | Why isn't the 'len' function inherited by dictionaries and lists in Python example: a_list = [1, 2, 3] a_list.len() # doesn't work len(a_list) # works Python being (very) object oriented, I don't understand why the 'len' function isn't inherited by the object. Plus I keep trying the wrong solution since it appears as t... | TITLE:
Why isn't the 'len' function inherited by dictionaries and lists in Python
QUESTION:
example: a_list = [1, 2, 3] a_list.len() # doesn't work len(a_list) # works Python being (very) object oriented, I don't understand why the 'len' function isn't inherited by the object. Plus I keep trying the wrong solution sin... | [
"python"
] | 19 | 45 | 7,980 | 7 | 0 | 2008-09-17T14:43:18.487000 | 2008-09-17T14:59:53.907000 |
83,990 | 85,386 | Is it the filename or the whole URL used as a key in browser caches? | It's common to want browsers to cache resources - JavaScript, CSS, images, etc. until there is a new version available, and then ensure that the browser fetches and caches the new version instead. One solution is to embed a version number in the resource's filename, but will placing the resources to be managed in this ... | Yes, any change in any part of the URL (excluding HTTP and HTTPS protocols changes) is interpreted as a different resource by the browser (and any intermediary proxies), and will thus result in a separate entity in the browser-cache. Update: The claim in this ThinkVitamin article that Opera and Safari/Webkit browsers d... | Is it the filename or the whole URL used as a key in browser caches? It's common to want browsers to cache resources - JavaScript, CSS, images, etc. until there is a new version available, and then ensure that the browser fetches and caches the new version instead. One solution is to embed a version number in the resou... | TITLE:
Is it the filename or the whole URL used as a key in browser caches?
QUESTION:
It's common to want browsers to cache resources - JavaScript, CSS, images, etc. until there is a new version available, and then ensure that the browser fetches and caches the new version instead. One solution is to embed a version n... | [
"javascript",
"url",
"browser",
"caching",
"filenames"
] | 28 | 54 | 20,203 | 10 | 0 | 2008-09-17T14:44:06.907000 | 2008-09-17T17:02:05.517000 |
84,007 | 84,046 | Curl command line for consuming webServices? | Do you guys know how I can use the Curl command line to POST SOAP to test a web service? I have a file (soap.xml) which has all the soap message attached to it I just don't seem to be able to properly post it. Thanks! | Posting a string: curl -d "String to post" "http://www.example.com/target" Posting the contents of a file: curl -d @soap.xml "http://www.example.com/target" | Curl command line for consuming webServices? Do you guys know how I can use the Curl command line to POST SOAP to test a web service? I have a file (soap.xml) which has all the soap message attached to it I just don't seem to be able to properly post it. Thanks! | TITLE:
Curl command line for consuming webServices?
QUESTION:
Do you guys know how I can use the Curl command line to POST SOAP to test a web service? I have a file (soap.xml) which has all the soap message attached to it I just don't seem to be able to properly post it. Thanks!
ANSWER:
Posting a string: curl -d "Str... | [
"web-services",
"testing",
"curl"
] | 47 | 43 | 117,076 | 5 | 0 | 2008-09-17T14:46:03.080000 | 2008-09-17T14:49:30.857000 |
84,009 | 84,028 | ReSharper sluggishness | I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow? | Turn off the on-the-fly compilation (which, unfortunately, is one of its best features) | ReSharper sluggishness I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow? | TITLE:
ReSharper sluggishness
QUESTION:
I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow?
ANSWER:
Turn off the on-the-fly compilation (which, unfortunately,... | [
"visual-studio",
"performance",
"ide",
"resharper"
] | 36 | 17 | 10,957 | 12 | 0 | 2008-09-17T14:46:13.737000 | 2008-09-17T14:47:53.577000 |
84,034 | 84,307 | What is the quickest way to find the shortest cartesian distance between two polygons | I have 1 red polygon say and 50 randomly placed blue polygons - they are situated in geographical 2D space. What is the quickest/speediest algorithim to find the the shortest distance between a red polygon and its nearest blue polygon? Bear in mind that it is not a simple case of taking the points that make up the vert... | I doubt there is better solution than calculating the distance between the red one and every blue one and sorting these by length. Regarding sorting, usually QuickSort is hard to beat in performance (an optimized one, that cuts off recursion if size goes below 7 items and switches to something like InsertionSort, maybe... | What is the quickest way to find the shortest cartesian distance between two polygons I have 1 red polygon say and 50 randomly placed blue polygons - they are situated in geographical 2D space. What is the quickest/speediest algorithim to find the the shortest distance between a red polygon and its nearest blue polygon... | TITLE:
What is the quickest way to find the shortest cartesian distance between two polygons
QUESTION:
I have 1 red polygon say and 50 randomly placed blue polygons - they are situated in geographical 2D space. What is the quickest/speediest algorithim to find the the shortest distance between a red polygon and its ne... | [
"c#",
"algorithm",
"gis",
"polygon",
"distance"
] | 21 | 13 | 13,042 | 13 | 0 | 2008-09-17T14:48:13.980000 | 2008-09-17T15:13:56.010000 |
84,064 | 85,102 | SQLBindParameter to prepare for SQLPutData using C++ and SQL Native Client | I'm trying to use SQLBindParameter to prepare my driver for input via SQLPutData. The field in the database is a TEXT field. My function is crafted based on MS's example here: http://msdn.microsoft.com/en-us/library/ms713824(VS.85).aspx. I've setup the environment, made the connection, and prepared my statement success... | you're passing NULL as the buffer length, this is an in/out param that shoudl be the size of the col_num parameter. Also, you should pass a value for the ColumnSize or DecimalDigits parameters. http://msdn.microsoft.com/en-us/library/ms710963(VS.85).aspx | SQLBindParameter to prepare for SQLPutData using C++ and SQL Native Client I'm trying to use SQLBindParameter to prepare my driver for input via SQLPutData. The field in the database is a TEXT field. My function is crafted based on MS's example here: http://msdn.microsoft.com/en-us/library/ms713824(VS.85).aspx. I've se... | TITLE:
SQLBindParameter to prepare for SQLPutData using C++ and SQL Native Client
QUESTION:
I'm trying to use SQLBindParameter to prepare my driver for input via SQLPutData. The field in the database is a TEXT field. My function is crafted based on MS's example here: http://msdn.microsoft.com/en-us/library/ms713824(VS... | [
"c++",
"sql",
"sql-server",
"sqlncli"
] | 1 | 1 | 5,066 | 2 | 0 | 2008-09-17T14:51:33.893000 | 2008-09-17T16:35:17.780000 |
84,096 | 84,419 | Setting the default ssh key location | ssh will look for its keys by default in the ~/.ssh folder. I want to force it to always look in another location. The workaround I'm using is to add the keys from the non-standard location to the agent: ssh-agent ssh-add /path/to/where/keys/really/are/id_rsa (on Linux and MingW32 shell on Windows) | If you are only looking to point to a different location for you identity file, the you can modify your ~/.ssh/config file with the following entry: IdentityFile ~/.foo/identity man ssh_config to find other config options. | Setting the default ssh key location ssh will look for its keys by default in the ~/.ssh folder. I want to force it to always look in another location. The workaround I'm using is to add the keys from the non-standard location to the agent: ssh-agent ssh-add /path/to/where/keys/really/are/id_rsa (on Linux and MingW32 s... | TITLE:
Setting the default ssh key location
QUESTION:
ssh will look for its keys by default in the ~/.ssh folder. I want to force it to always look in another location. The workaround I'm using is to add the keys from the non-standard location to the agent: ssh-agent ssh-add /path/to/where/keys/really/are/id_rsa (on L... | [
"ssh"
] | 62 | 99 | 157,160 | 3 | 0 | 2008-09-17T14:53:57.960000 | 2008-09-17T15:23:23.663000 |
84,102 | 84,270 | What is idiomatic code? | I'd be interested in some before-and-after c# examples, some non-idiomatic vs idiomatic examples. Non-c# examples would be fine as well if they get the idea across. Thanks. | Idiomatic means following the conventions of the language. You want to find the easiest and most common ways of accomplishing a task rather than porting your knowledge from a different language. non-idiomatic python using a loop with append: mylist = [1, 2, 3, 4] newlist = [] for i in mylist: newlist.append(i * 2) idio... | What is idiomatic code? I'd be interested in some before-and-after c# examples, some non-idiomatic vs idiomatic examples. Non-c# examples would be fine as well if they get the idea across. Thanks. | TITLE:
What is idiomatic code?
QUESTION:
I'd be interested in some before-and-after c# examples, some non-idiomatic vs idiomatic examples. Non-c# examples would be fine as well if they get the idea across. Thanks.
ANSWER:
Idiomatic means following the conventions of the language. You want to find the easiest and most... | [
"c#",
"idioms"
] | 121 | 182 | 37,833 | 5 | 0 | 2008-09-17T14:54:15.603000 | 2008-09-17T15:10:01.090000 |
84,125 | 88,213 | OO and how it works in PHP | I've been writing PHP for about six years now and have got to a point where I feel I should be doing more to write better code. I know that Object Oriented code is the way to go but I can't get my head around the concept. Can anyone explain in terms that any idiot can understand, OO and how it works in PHP or point me ... | I have been in your shoes, but I saw the light after I read this book (a few times!) http://www.apress.com/book/view/9781590599099 After I read this, I really "got" it and I haven't looked back. You'll get it on Amazon. I hope you persist, get it, and love it. When it comes together, it will make you smile. Composition... | OO and how it works in PHP I've been writing PHP for about six years now and have got to a point where I feel I should be doing more to write better code. I know that Object Oriented code is the way to go but I can't get my head around the concept. Can anyone explain in terms that any idiot can understand, OO and how i... | TITLE:
OO and how it works in PHP
QUESTION:
I've been writing PHP for about six years now and have got to a point where I feel I should be doing more to write better code. I know that Object Oriented code is the way to go but I can't get my head around the concept. Can anyone explain in terms that any idiot can unders... | [
"php",
"oop"
] | 12 | 0 | 2,823 | 7 | 0 | 2008-09-17T14:56:17.893000 | 2008-09-17T22:10:49.470000 |
84,132 | 84,148 | Uninstall Sharepoint Infrastructure Update | I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now I can't restore the content database on an older version. Do you know if there is a way to uninstall it? | There are no supported methods to uninstall updates in MOSS or WSS. Your only option is to restore a backup, which is why you should always back up everything and test the integrity of the backup before installing updates. | Uninstall Sharepoint Infrastructure Update I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now I can't restore the content database on an older version. Do you know if there is a way to uninstall it? | TITLE:
Uninstall Sharepoint Infrastructure Update
QUESTION:
I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now I can't restore the content database on an older version. Do you know if there is a way to uninstall it?
... | [
"sharepoint",
"moss",
"wss"
] | 0 | 0 | 932 | 3 | 0 | 2008-09-17T14:56:58.500000 | 2008-09-17T14:59:03.207000 |
84,147 | 107,006 | org.eclipse.swt.SWTError: Item not added | Does somebody know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" is raising againg and again? I'm using WebSphere Studio Site Developer (Windows) 5.1.0 The only stack trace in the.metadata/log file is: SESSION ----------------------------------------------------------... | Does restarting your computer resolve the problem with being able to open the workspace? There is a forum post ( http://forums.sun.com/thread.jspa?messageID=3131484#3131484 ) that describes a similar problem with an identical stack trace as the one shown above. In the post, the author mentions that their machine was lo... | org.eclipse.swt.SWTError: Item not added Does somebody know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" is raising againg and again? I'm using WebSphere Studio Site Developer (Windows) 5.1.0 The only stack trace in the.metadata/log file is: SESSION -----------------... | TITLE:
org.eclipse.swt.SWTError: Item not added
QUESTION:
Does somebody know how to recover a never-starting eclipse when the error "org.eclipse.swt.SWTError: Item not added" is raising againg and again? I'm using WebSphere Studio Site Developer (Windows) 5.1.0 The only stack trace in the.metadata/log file is: SESSION... | [
"eclipse",
"swt"
] | 4 | 1 | 9,995 | 6 | 0 | 2008-09-17T14:58:57.543000 | 2008-09-20T03:45:37.033000 |
84,149 | 87,111 | Web Scripting for Java | What is a good way to render data produced by a Java process in the browser? I've made extensive use of JSP and the various associated frameworks ( JSTL, Struts, Tapestry, etc), as well as more comprehensive frameworks not related to JSP ( GWT, OpenLaszlo ). None of the solutions have ever been entirely satisfactory - ... | I personally use Tapestry 5 for creating webpages with Java, but I agree that it can sometimes be a bit overkill. I would look into using JAX-RS ( java.net project, jsr311 ) it is pretty simple to use, it supports marshalling and unmarshalling objects to/from XML out of the box. It is possible to extend it to support J... | Web Scripting for Java What is a good way to render data produced by a Java process in the browser? I've made extensive use of JSP and the various associated frameworks ( JSTL, Struts, Tapestry, etc), as well as more comprehensive frameworks not related to JSP ( GWT, OpenLaszlo ). None of the solutions have ever been e... | TITLE:
Web Scripting for Java
QUESTION:
What is a good way to render data produced by a Java process in the browser? I've made extensive use of JSP and the various associated frameworks ( JSTL, Struts, Tapestry, etc), as well as more comprehensive frameworks not related to JSP ( GWT, OpenLaszlo ). None of the solution... | [
"java",
"jsp",
"scripting"
] | 0 | 2 | 418 | 4 | 0 | 2008-09-17T14:59:04.017000 | 2008-09-17T20:11:41.613000 |
84,178 | 110,241 | How do I implement the Post Commit Hook with Trac & SVN in a Windows Environment? | I'm running in a windows environment with Trac / SVN and I want commits to the repository to integrate to Trac and close the bugs that were noted in the SVN Comment. I know there's some post commit hooks to do that, but there's not much information about how to do it on windows. Anyone done it successfully? And what we... | Alright, now that I've got some time to post my experience after figuring this all out, and thanks to Craig for getting me on the right track. Here's what you need to do (at least with SVN v1.4 and Trac v0.10.3): Locate your SVN repository that you want to enable the Post Commit Hook for. inside the SVN repository ther... | How do I implement the Post Commit Hook with Trac & SVN in a Windows Environment? I'm running in a windows environment with Trac / SVN and I want commits to the repository to integrate to Trac and close the bugs that were noted in the SVN Comment. I know there's some post commit hooks to do that, but there's not much i... | TITLE:
How do I implement the Post Commit Hook with Trac & SVN in a Windows Environment?
QUESTION:
I'm running in a windows environment with Trac / SVN and I want commits to the repository to integrate to Trac and close the bugs that were noted in the SVN Comment. I know there's some post commit hooks to do that, but ... | [
"windows",
"svn",
"hook",
"trac"
] | 6 | 3 | 16,172 | 6 | 0 | 2008-09-17T15:01:46.350000 | 2008-09-21T04:28:19.530000 |
84,195 | 86,861 | SSRS 2005 - Looping Through Report Parameters | I would like to be able to loop through all of the defined parameters on my reports and build a display string of the parameter name and value. I'd then display the results on the report so the user knows which parameters were used for that specific execution. The only problem is that I cannot loop through the Paramete... | Unfortunately, it looks like there's no simple way to do this. See http://www.jameskovacs.com/blog/DiggingDeepIntoReportingServices.aspx for more info. If you look at the comments of that post, there are some ways to get around this, but they're not very elegant. The simplest solution will require you to have a list of... | SSRS 2005 - Looping Through Report Parameters I would like to be able to loop through all of the defined parameters on my reports and build a display string of the parameter name and value. I'd then display the results on the report so the user knows which parameters were used for that specific execution. The only prob... | TITLE:
SSRS 2005 - Looping Through Report Parameters
QUESTION:
I would like to be able to loop through all of the defined parameters on my reports and build a display string of the parameter name and value. I'd then display the results on the report so the user knows which parameters were used for that specific execut... | [
"sql-server-2005",
"reporting-services",
"parameters"
] | 7 | 1 | 6,264 | 3 | 0 | 2008-09-17T15:03:41.417000 | 2008-09-17T19:44:23.363000 |
84,209 | 84,467 | Adding a guideline to the editor in Visual Studio | Introduction I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters. Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2013 or later Install Paul Harrington's Editor Guidelines extension. Visual Studio 2010 and... | For those running Visual Studio 2015 or later, the best solution is to install the Editor Guidelines by Paul Harrington rather than changing the registry yourself. This is originally from Sara's blog. It also works with almost any version of Visual Studio, you just need to change the "8.0" in the registry key to the ap... | Adding a guideline to the editor in Visual Studio Introduction I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters. Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2013 or later Install Paul Harrington's E... | TITLE:
Adding a guideline to the editor in Visual Studio
QUESTION:
Introduction I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters. Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2013 or later Install P... | [
"visual-studio",
"ide",
"registry"
] | 376 | 106 | 177,184 | 15 | 0 | 2008-09-17T15:04:28.450000 | 2008-09-17T15:26:29.520000 |
84,232 | 84,366 | How do I set up a custom build step in Visual Studio 6? | Unfortunately it looks like for various reasons I'm going to have to use Visual Studio 6 instead of a newer version of VS. It's been a long time since I've used it. I'm looking through its menus and don't see any obvious way to set up any custom build steps (pre-build, post-build, pre-link... anything would help actual... | Open your project, then open the Project Settings screen (Project → Settings or ALT-F7). Alternatively, right click on a file in the FileView and select Settings. From the Project Settings screen, go to the General tab and check "Always use custom build step". This means that the file you just chose will be an input fi... | How do I set up a custom build step in Visual Studio 6? Unfortunately it looks like for various reasons I'm going to have to use Visual Studio 6 instead of a newer version of VS. It's been a long time since I've used it. I'm looking through its menus and don't see any obvious way to set up any custom build steps (pre-b... | TITLE:
How do I set up a custom build step in Visual Studio 6?
QUESTION:
Unfortunately it looks like for various reasons I'm going to have to use Visual Studio 6 instead of a newer version of VS. It's been a long time since I've used it. I'm looking through its menus and don't see any obvious way to set up any custom ... | [
"visual-c++-6"
] | 0 | 5 | 2,946 | 1 | 0 | 2008-09-17T15:06:59.427000 | 2008-09-17T15:18:40.507000 |
84,234 | 84,281 | Is there a single resource which explains windows memory thoroughly? | Seriously, I've trawled MSDN and only got half answers - what do the columns on the Task Manager mean? Why can't I calculate the VM Usage by enumerating threads, modules, heaps &c.? How can I be sure I am accurately reporting to clients of my memory manager how much address space is left? Are their myriad collisions in... | Here is a quick article on Windows Memory Management, which goes into sufficient depth to interpret what you're actually seeing in Task Manager or Process Explorer. | Is there a single resource which explains windows memory thoroughly? Seriously, I've trawled MSDN and only got half answers - what do the columns on the Task Manager mean? Why can't I calculate the VM Usage by enumerating threads, modules, heaps &c.? How can I be sure I am accurately reporting to clients of my memory m... | TITLE:
Is there a single resource which explains windows memory thoroughly?
QUESTION:
Seriously, I've trawled MSDN and only got half answers - what do the columns on the Task Manager mean? Why can't I calculate the VM Usage by enumerating threads, modules, heaps &c.? How can I be sure I am accurately reporting to clie... | [
"windows",
"memory"
] | 1 | 1 | 257 | 3 | 0 | 2008-09-17T15:07:05.667000 | 2008-09-17T15:11:06.767000 |
84,243 | 84,274 | How to force browser to reload updated XML file? | I am developing a website that relies much on XML data. The web site has an interface where user can update data. The data provided by user will be updated to the respective XML file. However, the changes is not reflected until after 1 or 2 minutes. Anyone knows how to force the browser to load the latest XML file imme... | You can add a random (or sequential) number to the url that you change with every update. | How to force browser to reload updated XML file? I am developing a website that relies much on XML data. The web site has an interface where user can update data. The data provided by user will be updated to the respective XML file. However, the changes is not reflected until after 1 or 2 minutes. Anyone knows how to f... | TITLE:
How to force browser to reload updated XML file?
QUESTION:
I am developing a website that relies much on XML data. The web site has an interface where user can update data. The data provided by user will be updated to the respective XML file. However, the changes is not reflected until after 1 or 2 minutes. Any... | [
"xml"
] | 3 | 1 | 4,284 | 3 | 0 | 2008-09-17T15:08:08.613000 | 2008-09-17T15:10:35.177000 |
84,269 | 254,883 | Using Component Object Model (COM) on non-Microsoft platforms | I'm regularly running into similar situations: I have a bunch of COM.DLLs (no IDL files) which I need to use and invoke to be able to access some foreign (non-open, non-documented) data format. Microsoft's Visual Studio platform has very nice capabilities to import such COM DLLs and use them in my project (Visual C++'s... | Answering myself but I managed to find the perfect library for OLE/COM calling in non-Microsoft compilers: disphelper. (it's available from sourceforge.net under a permissive BSD license). It works both in C and C++ (and thus any other language with C bindings as well). It uses a printf/scanf-like format string syntax.... | Using Component Object Model (COM) on non-Microsoft platforms I'm regularly running into similar situations: I have a bunch of COM.DLLs (no IDL files) which I need to use and invoke to be able to access some foreign (non-open, non-documented) data format. Microsoft's Visual Studio platform has very nice capabilities to... | TITLE:
Using Component Object Model (COM) on non-Microsoft platforms
QUESTION:
I'm regularly running into similar situations: I have a bunch of COM.DLLs (no IDL files) which I need to use and invoke to be able to access some foreign (non-open, non-documented) data format. Microsoft's Visual Studio platform has very ni... | [
"c++",
"com",
"cygwin",
"mingw",
"wine"
] | 34 | 25 | 19,049 | 3 | 0 | 2008-09-17T15:10:00.467000 | 2008-10-31T20:40:24.887000 |
84,276 | 84,302 | Does an IIS worker process clear session variables when it recycles? | We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles? | If session is stored in-proc then YES worker process recycle will remove it. Use Out-of-proc model or sql server to store session value if you want to keep it stored. | Does an IIS worker process clear session variables when it recycles? We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles? | TITLE:
Does an IIS worker process clear session variables when it recycles?
QUESTION:
We're writing an asp.net web app on IIS 6 and are planning on storing our user login variables in a session. Will this be removed when the worker process recycles?
ANSWER:
If session is stored in-proc then YES worker process recycle... | [
"iis",
"session-variables",
"worker-process"
] | 3 | 5 | 6,878 | 3 | 0 | 2008-09-17T15:10:45.393000 | 2008-09-17T15:13:17.900000 |
84,278 | 84,317 | How do I use WPF bindings with RelativeSource? | How do I use RelativeSource with WPF bindings and what are the different use-cases? | If you want to bind to another property on the object: {Binding Path=PathToProperty, RelativeSource={RelativeSource Self}} If you want to get a property on an ancestor: {Binding Path=PathToProperty, RelativeSource={RelativeSource AncestorType={x:Type typeOfAncestor}}} If you want to get a property on the templated pare... | How do I use WPF bindings with RelativeSource? How do I use RelativeSource with WPF bindings and what are the different use-cases? | TITLE:
How do I use WPF bindings with RelativeSource?
QUESTION:
How do I use RelativeSource with WPF bindings and what are the different use-cases?
ANSWER:
If you want to bind to another property on the object: {Binding Path=PathToProperty, RelativeSource={RelativeSource Self}} If you want to get a property on an anc... | [
".net",
"wpf",
"xaml",
"data-binding",
"relativesource"
] | 670 | 868 | 523,255 | 14 | 0 | 2008-09-17T15:10:53.583000 | 2008-09-17T15:14:51.687000 |
84,282 | 84,372 | What can you use to get an application to be able to receive SMS message? | Do you need to use some kind of provider? Can you setup your own SMS server? Does any open source solutions exist? I am an SMS newbie so any insight on how this is accomplished would be great. I am partial to Java but any language is fine. | This is easy. Yes, you need a "sms gateway" provider. There are a lot out there. These companies provide APIs for you to send/receive SMS. e.g. the German company Mobilant provides an easy API. If you want to receive a SMS just program a simple PHP / JSP / s.th.else dynamic web page and let Mobilant call it. e.g. Mobil... | What can you use to get an application to be able to receive SMS message? Do you need to use some kind of provider? Can you setup your own SMS server? Does any open source solutions exist? I am an SMS newbie so any insight on how this is accomplished would be great. I am partial to Java but any language is fine. | TITLE:
What can you use to get an application to be able to receive SMS message?
QUESTION:
Do you need to use some kind of provider? Can you setup your own SMS server? Does any open source solutions exist? I am an SMS newbie so any insight on how this is accomplished would be great. I am partial to Java but any langua... | [
"java",
"sms"
] | 14 | 17 | 4,481 | 11 | 0 | 2008-09-17T15:11:06.967000 | 2008-09-17T15:19:21.677000 |
84,290 | 90,868 | Getting a full list of the URLS in a rails application | How do I get a a complete list of all the urls that my rails application could generate? I don't want the routes that I get get form rake routes, instead I want to get the actul URLs corrosponding to all the dynmically generated pages in my application... Is this even possible? (Background: I'm doing this because I wan... | I was able to produce useful output with the following command: $ wget --spider -r -nv -nd -np http://localhost:3209/ 2>&1 | ack -o '(?<=URL:)\S+' http://localhost:3209/ http://localhost:3209/robots.txt http://localhost:3209/agenda/2008/08 http://localhost:3209/agenda/2008/10 http://localhost:3209/agenda/2008/09/01 htt... | Getting a full list of the URLS in a rails application How do I get a a complete list of all the urls that my rails application could generate? I don't want the routes that I get get form rake routes, instead I want to get the actul URLs corrosponding to all the dynmically generated pages in my application... Is this e... | TITLE:
Getting a full list of the URLS in a rails application
QUESTION:
How do I get a a complete list of all the urls that my rails application could generate? I don't want the routes that I get get form rake routes, instead I want to get the actul URLs corrosponding to all the dynmically generated pages in my applic... | [
"ruby-on-rails",
"url",
"listings"
] | 8 | 10 | 1,716 | 3 | 0 | 2008-09-17T15:12:15.670000 | 2008-09-18T08:12:33.190000 |
84,322 | 84,417 | What are the perldoc perlxxx options? | It appears that using perldoc perl gives the list of, e.g. perlre, perlvar, etc. Is this the best place to find the list of what's available as an overview or tutorial or reference manual section? Is there another, better list? | perldoc perltoc is a bit more verbose about the various documentation files. If you want a list of core modules, try perldoc perlmodlib | What are the perldoc perlxxx options? It appears that using perldoc perl gives the list of, e.g. perlre, perlvar, etc. Is this the best place to find the list of what's available as an overview or tutorial or reference manual section? Is there another, better list? | TITLE:
What are the perldoc perlxxx options?
QUESTION:
It appears that using perldoc perl gives the list of, e.g. perlre, perlvar, etc. Is this the best place to find the list of what's available as an overview or tutorial or reference manual section? Is there another, better list?
ANSWER:
perldoc perltoc is a bit mo... | [
"perl",
"perldoc"
] | 4 | 6 | 251 | 5 | 0 | 2008-09-17T15:15:22.230000 | 2008-09-17T15:23:20.870000 |
84,330 | 85,475 | MySql - Create Table If Not Exists Else Truncate? | Here is the updated question: the current query is doing something like: $sql1 = "TRUNCATE TABLE fubar"; $sql2 = "CREATE TEMPORARY TABLE IF NOT EXISTS fubar SELECT id, name FROM barfu"; The first time the method containing this is run, it generates an error message on the truncate since the table doesn't exist yet. Is ... | shmuel613, it would be better to update your original question rather than replying. It's best if there's a single place containing the complete question rather than having it spread out in a discussion. Ben's answer is reasonable, except he seems to have a 'not' where he doesn't want one. Dropping the table only if it... | MySql - Create Table If Not Exists Else Truncate? Here is the updated question: the current query is doing something like: $sql1 = "TRUNCATE TABLE fubar"; $sql2 = "CREATE TEMPORARY TABLE IF NOT EXISTS fubar SELECT id, name FROM barfu"; The first time the method containing this is run, it generates an error message on t... | TITLE:
MySql - Create Table If Not Exists Else Truncate?
QUESTION:
Here is the updated question: the current query is doing something like: $sql1 = "TRUNCATE TABLE fubar"; $sql2 = "CREATE TEMPORARY TABLE IF NOT EXISTS fubar SELECT id, name FROM barfu"; The first time the method containing this is run, it generates an ... | [
"mysql",
"truncate",
"exists"
] | 24 | 29 | 89,609 | 6 | 0 | 2008-09-17T15:15:42.667000 | 2008-09-17T17:12:09.547000 |
84,332 | 84,678 | What can prevent an MS Access 2000 form from closing? | My Access 2000 DB causes me problems - sometimes (haven't pinpointed the cause) the "book" form won't close. Clicking its close button does nothing, File -> Close does nothing, even closing Access results in no action. I don't have an OnClose handler for this form. The only workaround I can find involves opening the Vb... | Here's a forum post describing, I think, the same problem you face. Excerpt belows states a workaround. What I do is to put code on the close button that reassigns the sourceobject of any subforms to a blank form, such as: me!subParts.sourceobject = "subBlank" 'subBlank is my form that is totally blank, free of code an... | What can prevent an MS Access 2000 form from closing? My Access 2000 DB causes me problems - sometimes (haven't pinpointed the cause) the "book" form won't close. Clicking its close button does nothing, File -> Close does nothing, even closing Access results in no action. I don't have an OnClose handler for this form. ... | TITLE:
What can prevent an MS Access 2000 form from closing?
QUESTION:
My Access 2000 DB causes me problems - sometimes (haven't pinpointed the cause) the "book" form won't close. Clicking its close button does nothing, File -> Close does nothing, even closing Access results in no action. I don't have an OnClose handl... | [
"ms-access",
"forms"
] | 1 | 1 | 1,909 | 6 | 0 | 2008-09-17T15:16:10.387000 | 2008-09-17T15:43:56.750000 |
84,339 | 84,600 | How to implement in-process full text search engine | In one of our commercial applications (Win32, written in Delphi) we'd like to implement full text search. The application is storing user data in some kind of binary format that is not directly recognizable as a text. Ideally, I'd like to find either an in-process solution (DLL would be OK) or a local server that I cou... | There are a number of options on the market. Either fully fledge commercial products or open source variants. Your choice of a search provider is very dependent on the customers you are targetting. Microsoft has a free Express version of their Search Server. As far as I know the Express edition is limited to running th... | How to implement in-process full text search engine In one of our commercial applications (Win32, written in Delphi) we'd like to implement full text search. The application is storing user data in some kind of binary format that is not directly recognizable as a text. Ideally, I'd like to find either an in-process sol... | TITLE:
How to implement in-process full text search engine
QUESTION:
In one of our commercial applications (Win32, written in Delphi) we'd like to implement full text search. The application is storing user data in some kind of binary format that is not directly recognizable as a text. Ideally, I'd like to find either... | [
"windows",
"winapi",
"full-text-search"
] | 2 | 1 | 1,077 | 7 | 0 | 2008-09-17T15:16:31.963000 | 2008-09-17T15:37:46.110000 |
84,340 | 84,943 | Why learn Perl, Python, Ruby if the company is using C++, C# or Java as the application language? | I wonder why would a C++, C#, Java developer want to learn a dynamic language? Assuming the company won't switch its main development language from C++/C#/Java to a dynamic one what use is there for a dynamic language? What helper tasks can be done by the dynamic languages faster or better after only a few days of lear... | A lot of times some quick task comes up that isn't part of the main software you are developing. Sometimes the task is one off ie compare this file to the database and let me know the differences. It is a lot easier to do text parsing in Perl/Ruby/Python than it is in Java or C# (partially because it is a lot easier to... | Why learn Perl, Python, Ruby if the company is using C++, C# or Java as the application language? I wonder why would a C++, C#, Java developer want to learn a dynamic language? Assuming the company won't switch its main development language from C++/C#/Java to a dynamic one what use is there for a dynamic language? Wha... | TITLE:
Why learn Perl, Python, Ruby if the company is using C++, C# or Java as the application language?
QUESTION:
I wonder why would a C++, C#, Java developer want to learn a dynamic language? Assuming the company won't switch its main development language from C++/C#/Java to a dynamic one what use is there for a dyn... | [
"c#",
"java",
"python",
"ruby",
"perl"
] | 67 | 81 | 32,550 | 35 | 0 | 2008-09-17T15:16:35.940000 | 2008-09-17T16:17:05.780000 |
84,341 | 84,546 | How do I prepend a directory the library path when loading a core file in gdb on Linux | I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to analyse this core dump in gdb. For example: gdb path/to/executable path/to/corefile My libraries are in ... | Start gdb without specifying the executable or core file, then type the following commands: set solib-absolute-prefix./usr file path/to/executable core-file path/to/corefile You will need to make sure to mirror your library path exactly from the target system. The above is meant for debugging targets that don't match y... | How do I prepend a directory the library path when loading a core file in gdb on Linux I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to analyse this core... | TITLE:
How do I prepend a directory the library path when loading a core file in gdb on Linux
QUESTION:
I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to... | [
"linux",
"path",
"gdb",
"coredump"
] | 34 | 53 | 51,620 | 5 | 0 | 2008-09-17T15:16:39.840000 | 2008-09-17T15:32:51.207000 |
84,346 | 84,500 | Create an index on a MySQL column based on the length its contents? | How do I create an index on a column in MySQL v 5.0 (myisam db engine) based upon the length of its value its a TEXT data type up to 7000 characters, do I have to add another column with the length of the first column? | Yes, as MySQL doesn't support function-based indexes (like ADD INDEX myIndex(LENGTH(text))), you'll need a new int column and define a trigger to auto-update it after inserts and updates. | Create an index on a MySQL column based on the length its contents? How do I create an index on a column in MySQL v 5.0 (myisam db engine) based upon the length of its value its a TEXT data type up to 7000 characters, do I have to add another column with the length of the first column? | TITLE:
Create an index on a MySQL column based on the length its contents?
QUESTION:
How do I create an index on a column in MySQL v 5.0 (myisam db engine) based upon the length of its value its a TEXT data type up to 7000 characters, do I have to add another column with the length of the first column?
ANSWER:
Yes, a... | [
"mysql",
"indexing",
"myisam"
] | 2 | 2 | 1,601 | 2 | 0 | 2008-09-17T15:17:11.760000 | 2008-09-17T15:29:38.547000 |
84,378 | 84,416 | How to choose between class and id | When using divs when is it best to use a class vs id? Is it best to use class, on say font variant or elements within the html? Then use id for the structure/containers? This is something I've always been a little uncertain on, any help would be great. | Use id to identify elements that there will only be a single instance of on a page. For instance, if you have a single navigation bar that you are placing in a specific location, use id="navigation". Use class to group elements that all behave a certain way. For instance, if you want your company name to appear in bold... | How to choose between class and id When using divs when is it best to use a class vs id? Is it best to use class, on say font variant or elements within the html? Then use id for the structure/containers? This is something I've always been a little uncertain on, any help would be great. | TITLE:
How to choose between class and id
QUESTION:
When using divs when is it best to use a class vs id? Is it best to use class, on say font variant or elements within the html? Then use id for the structure/containers? This is something I've always been a little uncertain on, any help would be great.
ANSWER:
Use i... | [
"html",
"css",
"class"
] | 52 | 89 | 63,167 | 22 | 0 | 2008-09-17T15:20:03.873000 | 2008-09-17T15:23:19.810000 |
84,404 | 84,496 | Using Visual Studio's 'cl' from a normal command line | Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling. This is not always desirable. If, for example, I want to run '... | The compilers can be used from command line (or makefiles) just like any other compilers. The main things you need to take care of are the INCLUDE and LIB environment variables, and PATH. If you're running from cmd.exe, you can just run this.bat to set the environment: C:\Program Files\Microsoft Visual Studio 9.0\VC\vc... | Using Visual Studio's 'cl' from a normal command line Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when compiling. This is ... | TITLE:
Using Visual Studio's 'cl' from a normal command line
QUESTION:
Visual Studio 2003 and 2005 (and perhaps 2008 for all I know) require the command line user to run in the 'Visual Studio Command Prompt'. When starting this command prompt it sets various environment variables that the C++ compiler, cl, uses when c... | [
"visual-studio",
"command-line"
] | 44 | 64 | 81,500 | 8 | 0 | 2008-09-17T15:22:38.813000 | 2008-09-17T15:29:16.503000 |
84,418 | 84,649 | How do you override the string representation the HTML helper methods use for a model’s properties? | The html helper methods check the ViewDataDictionary for a value. The value can either be in the dictionary or in the Model, as a property. To extract the value, an internal sealed class named the ViewDataEvaluator uses PropertyDescriptor to get the value. Then, Convert.ToString() is called to convert the object return... | There's no way to specify a format with the helpers themselves. The approach you've taken will work. Another approach is to add the value pre-formatted into the ModelState. EDIT: Are you sure you even want to format a text input with the currency? For example, what you would see in the input is: When you post that back... | How do you override the string representation the HTML helper methods use for a model’s properties? The html helper methods check the ViewDataDictionary for a value. The value can either be in the dictionary or in the Model, as a property. To extract the value, an internal sealed class named the ViewDataEvaluator uses ... | TITLE:
How do you override the string representation the HTML helper methods use for a model’s properties?
QUESTION:
The html helper methods check the ViewDataDictionary for a value. The value can either be in the dictionary or in the Model, as a property. To extract the value, an internal sealed class named the ViewD... | [
"asp.net-mvc"
] | 2 | 3 | 1,278 | 1 | 0 | 2008-09-17T15:23:23.087000 | 2008-09-17T15:41:00.610000 |
84,421 | 84,485 | Converting an integer to a hexadecimal string in Ruby | Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite of String#to_i: "0A".to_i(16) #=>10 Like perhaps: "0A".hex #=>10 I know how to roll my own, but it's probably more efficient to use a built in Ruby function. | You can give to_s a base other than 10: 10.to_s(16) #=> "a" Note that in ruby 2.4 FixNum and BigNum were unified in the Integer class. If you are using an older ruby check the documentation of FixNum# to_s and BigNum# to_s | Converting an integer to a hexadecimal string in Ruby Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite of String#to_i: "0A".to_i(16) #=>10 Like perhaps: "0A".hex #=>10 I know how to roll my own, but it's probably more efficient to use a built in Ruby fun... | TITLE:
Converting an integer to a hexadecimal string in Ruby
QUESTION:
Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite of String#to_i: "0A".to_i(16) #=>10 Like perhaps: "0A".hex #=>10 I know how to roll my own, but it's probably more efficient to use a... | [
"ruby",
"hex",
"base-conversion"
] | 220 | 347 | 152,455 | 5 | 0 | 2008-09-17T15:23:26.360000 | 2008-09-17T15:27:57.317000 |
84,427 | 84,562 | Is it legal to pass a newly constructed object by reference to a function? | Specifically, is the following legal C++? class A{};
void foo(A*); void bar(const A&);
int main(void) { foo(&A()); // 1 bar(A()); // 2 } It appears to work correctly, but that doesn't mean it's necessarily legal. Is it? Edit - changed A& to const A& | 1: Taking the address of a temporary is not allowed. Visual C++ allows it as a language extension (language extensions are on by default). 2: This is perfectly legal. | Is it legal to pass a newly constructed object by reference to a function? Specifically, is the following legal C++? class A{};
void foo(A*); void bar(const A&);
int main(void) { foo(&A()); // 1 bar(A()); // 2 } It appears to work correctly, but that doesn't mean it's necessarily legal. Is it? Edit - changed A& to co... | TITLE:
Is it legal to pass a newly constructed object by reference to a function?
QUESTION:
Specifically, is the following legal C++? class A{};
void foo(A*); void bar(const A&);
int main(void) { foo(&A()); // 1 bar(A()); // 2 } It appears to work correctly, but that doesn't mean it's necessarily legal. Is it? Edit ... | [
"c++"
] | 17 | 16 | 9,180 | 9 | 0 | 2008-09-17T15:23:57.250000 | 2008-09-17T15:34:34.540000 |
84,449 | 84,528 | XML Serialize boolean as 0 and 1 | The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}. The following XML, for example, when deserialized, sets the boolean property "Emulate" to true. 1 However, when I serialize the object back to the XML, I get true instead ... | You can implement IXmlSerializable which will allow you to alter the serialized output of your class however you want. This will entail creating the 3 methods GetSchema(), ReadXml(XmlReader r) and WriteXml(XmlWriter r). When you implement the interface, these methods are called instead of.NET trying to serialize the ob... | XML Serialize boolean as 0 and 1 The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}. The following XML, for example, when deserialized, sets the boolean property "Emulate" to true. 1 However, when I serialize the object bac... | TITLE:
XML Serialize boolean as 0 and 1
QUESTION:
The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}. The following XML, for example, when deserialized, sets the boolean property "Emulate" to true. 1 However, when I serial... | [
"c#",
"xml",
"serialization",
"schema",
"constraints"
] | 27 | 3 | 26,230 | 3 | 0 | 2008-09-17T15:25:35.590000 | 2008-09-17T15:31:20.493000 |
84,453 | 84,555 | Reuse of SQL stored procedures across applications | I'm curious about people's approaches to using stored procedures in a database that is accessed by many applications. Specifically, do you tend to keep different sets of stored procedures for each application, do you try to use a shared set, or do you do a mix? On the one hand, reuse of SPs allows for fewer changes whe... | It all depends on your abstraction strategy. Are the stored procedures treated as a discrete point of abstraction, or are they treated as just another part of the application that calls them. The answer to that will tell you how to manage them. If they are a discrete abstraction, they can be shared, as if you need new ... | Reuse of SQL stored procedures across applications I'm curious about people's approaches to using stored procedures in a database that is accessed by many applications. Specifically, do you tend to keep different sets of stored procedures for each application, do you try to use a shared set, or do you do a mix? On the ... | TITLE:
Reuse of SQL stored procedures across applications
QUESTION:
I'm curious about people's approaches to using stored procedures in a database that is accessed by many applications. Specifically, do you tend to keep different sets of stored procedures for each application, do you try to use a shared set, or do you... | [
"sql",
"architecture",
"stored-procedures",
"code-reuse"
] | 2 | 1 | 1,512 | 13 | 0 | 2008-09-17T15:25:49.880000 | 2008-09-17T15:34:10.127000 |
84,463 | 84,836 | How to call a function dynamically that is part of an instantiated cfc, without using Evaluate()? | For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but represents what I would like to do. application.obj[funcName](argumentCollection=params) The only way I can find to c... | According to the docs, you can do something like this: You should be able to simply call it with method="#myMethod#" to dynamically call a particular function. | How to call a function dynamically that is part of an instantiated cfc, without using Evaluate()? For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but represents what I w... | TITLE:
How to call a function dynamically that is part of an instantiated cfc, without using Evaluate()?
QUESTION:
For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but r... | [
"coldfusion",
"cfc"
] | 7 | 9 | 4,040 | 4 | 0 | 2008-09-17T15:26:18.040000 | 2008-09-17T16:03:10.133000 |
84,488 | 84,790 | What is the best way to share files between Xen VM's? | Is there some built-in way to share files between Xen guests? I don't currently need to share the actual images, just some data files. | Do you mean between Xen and the host or between different guests? If guests, I don't think there is something provided but you should probably use NFS as it is the best supported file system that supports a decent number of permissions and attributes but assumes a trusted network. | What is the best way to share files between Xen VM's? Is there some built-in way to share files between Xen guests? I don't currently need to share the actual images, just some data files. | TITLE:
What is the best way to share files between Xen VM's?
QUESTION:
Is there some built-in way to share files between Xen guests? I don't currently need to share the actual images, just some data files.
ANSWER:
Do you mean between Xen and the host or between different guests? If guests, I don't think there is some... | [
"xen",
"file-sharing"
] | 1 | 3 | 3,346 | 3 | 0 | 2008-09-17T15:28:24.773000 | 2008-09-17T15:57:39.070000 |
84,506 | 84,773 | How can I use perldoc to lookup the %ENV variable? | I find from reading perldoc perlvar, about a thousand lines in is help for %ENV. Is there a way to find that from the command line directly? On my Windows machine, I've tried the following perldoc ENV perldoc %ENV perldoc %%ENV perldoc -r ENV (returns info about Use Env) perldoc -r %ENV perldoc -r %%%ENV perldoc -r %%%... | perldoc doesn't have an option to search for a particular entry in perlvar (like -f does for perlfunc). General searching is dependent on your pager (specified in the PAGER environment variable). Personally, I like "less." You can get less for windows from the GnuWin32 project. | How can I use perldoc to lookup the %ENV variable? I find from reading perldoc perlvar, about a thousand lines in is help for %ENV. Is there a way to find that from the command line directly? On my Windows machine, I've tried the following perldoc ENV perldoc %ENV perldoc %%ENV perldoc -r ENV (returns info about Use En... | TITLE:
How can I use perldoc to lookup the %ENV variable?
QUESTION:
I find from reading perldoc perlvar, about a thousand lines in is help for %ENV. Is there a way to find that from the command line directly? On my Windows machine, I've tried the following perldoc ENV perldoc %ENV perldoc %%ENV perldoc -r ENV (returns... | [
"perl",
"perldoc"
] | 4 | 3 | 1,265 | 7 | 0 | 2008-09-17T15:30:13.630000 | 2008-09-17T15:55:28.233000 |
84,587 | 84,620 | Error handling reporting methods with ASP.NET 2.0 / C# | Does anyone know of an open source module or a good method for handling application errors and e-mailing them to an admin and/or saving to a database? | ELMAH is a great drop-in tool for this. DLL in the bin directory, and some markup to add to the web.config and you're done. | Error handling reporting methods with ASP.NET 2.0 / C# Does anyone know of an open source module or a good method for handling application errors and e-mailing them to an admin and/or saving to a database? | TITLE:
Error handling reporting methods with ASP.NET 2.0 / C#
QUESTION:
Does anyone know of an open source module or a good method for handling application errors and e-mailing them to an admin and/or saving to a database?
ANSWER:
ELMAH is a great drop-in tool for this. DLL in the bin directory, and some markup to ad... | [
"c#",
"asp.net"
] | 2 | 3 | 740 | 7 | 0 | 2008-09-17T15:36:54.270000 | 2008-09-17T15:39:06.060000 |
84,615 | 84,665 | Keep pagination repeatable if change operations are performed | If one wants to paginate results from a data source that supports pagination we have to go to a process of: defining the page size - that is the number of results to show per page; fetch each page requested by the user using an offset = page number (0 based) * page size show the results of the fetched page. All this is... | There are a few schools of thought o this. data gets updated let it be You could implement some sort of caching method that will hold the entire result set (This might not be an option if working with really large Datasets) You could do a comparison on each page operation and notify the user if the total record count c... | Keep pagination repeatable if change operations are performed If one wants to paginate results from a data source that supports pagination we have to go to a process of: defining the page size - that is the number of results to show per page; fetch each page requested by the user using an offset = page number (0 based)... | TITLE:
Keep pagination repeatable if change operations are performed
QUESTION:
If one wants to paginate results from a data source that supports pagination we have to go to a process of: defining the page size - that is the number of results to show per page; fetch each page requested by the user using an offset = pag... | [
"sql",
"pagination"
] | 1 | 2 | 1,117 | 4 | 0 | 2008-09-17T15:38:44.640000 | 2008-09-17T15:42:18.937000 |
84,641 | 84,808 | How To Read Active Directory Group Membership From PHP/IIS using COM? | I have the following code: $bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local"); When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs. Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `LDAP://CN=...[cut]...... | Since you're using Windows Authentication in IIS, you may have some security events in the Windows Event log. I would check the Event log for Security Events as well as Application Events and see if you're hitting any sort of permissions issues. Also, since you're basically just communicating to AD via LDAP...you might... | How To Read Active Directory Group Membership From PHP/IIS using COM? I have the following code: $bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local"); When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs. Fatal error: Uncaught exception 'com_excep... | TITLE:
How To Read Active Directory Group Membership From PHP/IIS using COM?
QUESTION:
I have the following code: $bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local"); When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs. Fatal error: Uncaught ex... | [
"php",
"iis",
"com",
"adsi"
] | 1 | 3 | 7,211 | 4 | 0 | 2008-09-17T15:40:25.820000 | 2008-09-17T15:59:22.577000 |
84,644 | 86,752 | Hibernate Query By Example and Projections | To make it short: hibernate doesn't support projections and query by example? I found this post: The code is this: User usr = new User(); usr.setCity = 'TEST'; getCurrentSession().createCriteria(User.class).setProjection( Projections.distinct( Projections.projectionList().add( Projections.property("name"), "name").add(... | Can I see your User class? This is just using restrictions below. I don't see why Restrictions would be really any different than Examples (I think null fields get ignored by default in examples though). getCurrentSession().createCriteria(User.class).setProjection( Projections.distinct( Projections.projectionList().add... | Hibernate Query By Example and Projections To make it short: hibernate doesn't support projections and query by example? I found this post: The code is this: User usr = new User(); usr.setCity = 'TEST'; getCurrentSession().createCriteria(User.class).setProjection( Projections.distinct( Projections.projectionList().add(... | TITLE:
Hibernate Query By Example and Projections
QUESTION:
To make it short: hibernate doesn't support projections and query by example? I found this post: The code is this: User usr = new User(); usr.setCity = 'TEST'; getCurrentSession().createCriteria(User.class).setProjection( Projections.distinct( Projections.pro... | [
"java",
"hibernate",
"criteria",
"projection"
] | 22 | 15 | 128,965 | 6 | 0 | 2008-09-17T15:40:33.420000 | 2008-09-17T19:34:29.767000 |
84,661 | 84,792 | How can I avoid the warning fom an unused parameter in PLSQ? | Sometimes, in PL SQL you want to add a parameter to a Package, Function or Procedure in order to prepare future functionality. For example: create or replace function doGetMyAccountMoney( Type_Of_Currency IN char:= 'EUR') return number is Result number(12,2); begin Result:= 10000; IF char <> 'EUR' THEN -- ERROR NOT IMP... | I believe that this is controlled by the parameter PLSQL_WARNINGS, documented for 10gR2 here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams166.htm#REFRN10249 | How can I avoid the warning fom an unused parameter in PLSQ? Sometimes, in PL SQL you want to add a parameter to a Package, Function or Procedure in order to prepare future functionality. For example: create or replace function doGetMyAccountMoney( Type_Of_Currency IN char:= 'EUR') return number is Result number(12,2);... | TITLE:
How can I avoid the warning fom an unused parameter in PLSQ?
QUESTION:
Sometimes, in PL SQL you want to add a parameter to a Package, Function or Procedure in order to prepare future functionality. For example: create or replace function doGetMyAccountMoney( Type_Of_Currency IN char:= 'EUR') return number is Re... | [
"oracle",
"plsql",
"parameters",
"function"
] | 2 | 3 | 3,348 | 6 | 0 | 2008-09-17T15:41:59.843000 | 2008-09-17T15:57:56.153000 |
84,677 | 88,280 | Understanding how Ada serializes a record | I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up? I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program that is supposed to write a compatible binary... | As mentioned by others, without additional instruction the compiler will make its own decisions about record layout. The best approach would be to change the original code to write the record using a specific layout. In particular, the record representation clause allows the Ada programmer to specify exactly the physic... | Understanding how Ada serializes a record I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up? I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program tha... | TITLE:
Understanding how Ada serializes a record
QUESTION:
I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up? I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug... | [
"serialization",
"record",
"binaryfiles",
"ada"
] | 5 | 3 | 2,309 | 4 | 0 | 2008-09-17T15:43:50.040000 | 2008-09-17T22:19:53.410000 |
84,680 | 86,367 | How do you authenticate against an Active Directory server using Spring Security? | I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to the server. I'm using Spring 2.5.5 and Spring Security 2.0.3, along with Java 1.6. If I change the L... | I had the same banging-my-head-against-the-wall experience you did, and ended up writing a custom authentication provider that does an LDAP query against the Active Directory server. So my security-related beans are: Then the LdapAuthenticationProvider class: /** * Custom Spring Security authentication provider which t... | How do you authenticate against an Active Directory server using Spring Security? I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to the server. I'm us... | TITLE:
How do you authenticate against an Active Directory server using Spring Security?
QUESTION:
I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to ... | [
"java",
"spring",
"active-directory",
"ldap"
] | 32 | 37 | 67,821 | 8 | 0 | 2008-09-17T15:44:00.353000 | 2008-09-17T18:54:15.230000 |
84,717 | 84,972 | .NET Testing Naming Conventions | What are the best conventions of naming testing-assemblies in.NET (or any other language or platform)? What I'm mainly split between are these options (please provide others!): Company.Website - the project Company.Website.Tests or Company.Website Company.WebsiteTests The problem with the first solution is that it look... | I will go with * Company.Website - the project * Company.Website.Tests The short reason and answer is simple, testing and project are linked in code, therefore it should share namespace. If you want splitting of code and testing in a solution you have that option anyway. e.g. you can set up a solution with -Code Folder... | .NET Testing Naming Conventions What are the best conventions of naming testing-assemblies in.NET (or any other language or platform)? What I'm mainly split between are these options (please provide others!): Company.Website - the project Company.Website.Tests or Company.Website Company.WebsiteTests The problem with th... | TITLE:
.NET Testing Naming Conventions
QUESTION:
What are the best conventions of naming testing-assemblies in.NET (or any other language or platform)? What I'm mainly split between are these options (please provide others!): Company.Website - the project Company.Website.Tests or Company.Website Company.WebsiteTests T... | [
".net",
"unit-testing",
"testing",
"naming",
"conventions"
] | 25 | 32 | 10,661 | 10 | 0 | 2008-09-17T15:48:16.537000 | 2008-09-17T16:21:29.857000 |
84,759 | 85,128 | Get IFile from IWorkspaceRoot and location String | This is an Eclipse question, and you can assume the Java package for all these Eclipse classes is org.eclipse.core.resources. I want to get an IFile corresponding to a location String I have: "platform:/resource/Tracbility_All_Supported_lib/processes/gastuff/globalht/GlobalHTInterface.wsdl" I have the enclosing IWorksp... | org.eclipse.core.runtime.Path implements IPath. IPath p = new Path(locationString); IWorkspaceRoot.getFileForLocation(p); This would have worked had the location string not been a URL of type "platform:" For this particular case, notes in org.eclipse.core.runtime.Platform javadoc indicate that the "correct" solution is... | Get IFile from IWorkspaceRoot and location String This is an Eclipse question, and you can assume the Java package for all these Eclipse classes is org.eclipse.core.resources. I want to get an IFile corresponding to a location String I have: "platform:/resource/Tracbility_All_Supported_lib/processes/gastuff/globalht/Gl... | TITLE:
Get IFile from IWorkspaceRoot and location String
QUESTION:
This is an Eclipse question, and you can assume the Java package for all these Eclipse classes is org.eclipse.core.resources. I want to get an IFile corresponding to a location String I have: "platform:/resource/Tracbility_All_Supported_lib/processes/g... | [
"java",
"eclipse"
] | 3 | 2 | 10,260 | 3 | 0 | 2008-09-17T15:53:42.967000 | 2008-09-17T16:38:14.433000 |
84,769 | 91,606 | Excel 2007 pivot tables - how to use calculated fields when connecting to a data cube? | Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube? I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated fields in my pivot table, but the "Formulas" button is grayed out. How do I do create ... | Looks like you can't. This is the answer I got from MSDN: Not possible. All of the aggregations are handled by Analysis Services. Since XL is not in charge of the aggregations it has no ability to do custom calculations.HTH... Jim Thomlinson | Excel 2007 pivot tables - how to use calculated fields when connecting to a data cube? Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube? I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated... | TITLE:
Excel 2007 pivot tables - how to use calculated fields when connecting to a data cube?
QUESTION:
Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube? I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to... | [
"excel",
"pivot-table"
] | 2 | 2 | 6,182 | 3 | 0 | 2008-09-17T15:54:57.610000 | 2008-09-18T10:56:38.880000 |
84,782 | 85,766 | How to accept REF cursor in JAVA without importing Oracle Package | I am writting JAVA programme using JDBC for database conntectivity, I am calling one stored procedure in that which is returning ORACLE REF CURSOR, IS there any way I can handle that without importing ORACLE PACKAGES? | I think I tried to do this a while ago and kind of gave up (I guess you could figure out what int value the OracleTypes.REF_CURSOR is and then use that int value, but that's a hack). If you got the patience you could define a record (or object) type and define the the cursor as a cursor with type since that can be cast... | How to accept REF cursor in JAVA without importing Oracle Package I am writting JAVA programme using JDBC for database conntectivity, I am calling one stored procedure in that which is returning ORACLE REF CURSOR, IS there any way I can handle that without importing ORACLE PACKAGES? | TITLE:
How to accept REF cursor in JAVA without importing Oracle Package
QUESTION:
I am writting JAVA programme using JDBC for database conntectivity, I am calling one stored procedure in that which is returning ORACLE REF CURSOR, IS there any way I can handle that without importing ORACLE PACKAGES?
ANSWER:
I think I... | [
"java",
"oracle",
"jdbc"
] | 1 | 1 | 1,668 | 2 | 0 | 2008-09-17T15:57:01.320000 | 2008-09-17T17:46:05.427000 |
84,795 | 85,913 | How do I speed up data retrieval from .NET AD within ColdFusion? | How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field): | How large is the list of items for the inner loop? Switching to an array might be faster if there is a significantly large number of items. I have implemented this alongside x0n's suggestions... | How do I speed up data retrieval from .NET AD within ColdFusion? How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field): | TITLE:
How do I speed up data retrieval from .NET AD within ColdFusion?
QUESTION:
How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field):
... | [
".net",
"coldfusion",
"active-directory",
"ldap"
] | 2 | 2 | 698 | 4 | 0 | 2008-09-17T15:58:18.057000 | 2008-09-17T18:01:25.030000 |
84,799 | 84,829 | What is the single best free Eclipse plugin for a Java developer | Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those. Some provide useful enhancements, but in a specific niche. I'm not interested in those. Some are great, but cost money. I'm not interested in those. Some were really usefu... | Findbugs saved me doing something silly twice today. http://findbugs.sourceforge.net/ Eclipse update site is: http://findbugs.cs.umd.edu/eclipse/ | What is the single best free Eclipse plugin for a Java developer Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those. Some provide useful enhancements, but in a specific niche. I'm not interested in those. Some are great, bu... | TITLE:
What is the single best free Eclipse plugin for a Java developer
QUESTION:
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those. Some provide useful enhancements, but in a specific niche. I'm not interested in those. ... | [
"java",
"ide",
"eclipse-plugin"
] | 57 | 74 | 28,110 | 31 | 0 | 2008-09-17T15:58:44.717000 | 2008-09-17T16:02:24.753000 |
84,800 | 85,117 | How do I efficiently search an array to fill in form fields? | I am looking for an efficient way to pull the data I want out of an array called $submission_info so I can easily auto-fill my form fields. The array size is about 120. I want to find the field name and extract the content. In this case, the field name is loanOfficer and the content is John Doe. Output of Print_r($subm... | You're probably best off going through each entry and creating a new associative array out of it. foreach($submission_info as $elem) { $newarray[$elem["field_name"]] = $elem["content"]; } Then you can just find the form fields by getting the value from $newarray[ ]. Otherwise, you're going to have to search $submission... | How do I efficiently search an array to fill in form fields? I am looking for an efficient way to pull the data I want out of an array called $submission_info so I can easily auto-fill my form fields. The array size is about 120. I want to find the field name and extract the content. In this case, the field name is loa... | TITLE:
How do I efficiently search an array to fill in form fields?
QUESTION:
I am looking for an efficient way to pull the data I want out of an array called $submission_info so I can easily auto-fill my form fields. The array size is about 120. I want to find the field name and extract the content. In this case, the... | [
"php",
"arrays"
] | 0 | 2 | 469 | 3 | 0 | 2008-09-17T15:59:01.033000 | 2008-09-17T16:37:12.283000 |
84,804 | 84,830 | How to create a "dockable" form? | How do you create a "dockable" form, similar to the windows in Visual Studio? | Any custom control (composite, not inherited) in winforms can be docked, because it's really just a panel underneath. Combine this with a tablelayout panel for the high-level layout of your form and you have all the pieces. But you still have to implement all the glue and supporting UI yourself. | How to create a "dockable" form? How do you create a "dockable" form, similar to the windows in Visual Studio? | TITLE:
How to create a "dockable" form?
QUESTION:
How do you create a "dockable" form, similar to the windows in Visual Studio?
ANSWER:
Any custom control (composite, not inherited) in winforms can be docked, because it's really just a panel underneath. Combine this with a tablelayout panel for the high-level layout ... | [
"vb.net",
"winforms",
"tabbed-document-interface"
] | 4 | 0 | 9,170 | 6 | 0 | 2008-09-17T15:59:14.030000 | 2008-09-17T16:02:33.210000 |
84,813 | 84,938 | What tool works for real-time tweaking of CSS in IE6, similar to what Firebug does for Firefox? | All front-end developers know the pain of coding for Firefox, then viewing our then mangled pages in IE6. IE6 is still widely used (it is, however disappearing slowly but surely... in a year and a half from the writing of this, it will be irrelevant as usage will be less than 1%) We usually used IE conditional comments... | As far as I know Debugbar is currently the most sophisticated debugging tool for IE. It's definitely better than IE developer, but it's still not quite as slick as firebug. | What tool works for real-time tweaking of CSS in IE6, similar to what Firebug does for Firefox? All front-end developers know the pain of coding for Firefox, then viewing our then mangled pages in IE6. IE6 is still widely used (it is, however disappearing slowly but surely... in a year and a half from the writing of th... | TITLE:
What tool works for real-time tweaking of CSS in IE6, similar to what Firebug does for Firefox?
QUESTION:
All front-end developers know the pain of coding for Firefox, then viewing our then mangled pages in IE6. IE6 is still widely used (it is, however disappearing slowly but surely... in a year and a half from... | [
"css",
"internet-explorer",
"internet-explorer-6",
"cross-browser",
"firebug"
] | 6 | 5 | 453 | 3 | 0 | 2008-09-17T15:59:57.333000 | 2008-09-17T16:16:35.907000 |
84,817 | 85,452 | Super Robust as chrome c++ and portable - tips - help - comments | We are producing a portable code (win+macOs) and we are looking at how to make the code more rubust as it crashes every so often... (overflows or bad initializations usually):-( I was reading that Google Chrome uses a process for every tab so if something goes wrong then the program does not crash compleatelly, only th... | I've developed on numerous multi-platform C++ apps (the largest being 1.5M lines of code and running on 7 platforms -- AIX, HP-UX PA-RISC, HP-UX Itanium, Solaris, Linux, Windows, OS X). You actually have two entirely different issues in your post. Instability. Your code is not stable. Fix it. Use unit tests to find log... | Super Robust as chrome c++ and portable - tips - help - comments We are producing a portable code (win+macOs) and we are looking at how to make the code more rubust as it crashes every so often... (overflows or bad initializations usually):-( I was reading that Google Chrome uses a process for every tab so if something... | TITLE:
Super Robust as chrome c++ and portable - tips - help - comments
QUESTION:
We are producing a portable code (win+macOs) and we are looking at how to make the code more rubust as it crashes every so often... (overflows or bad initializations usually):-( I was reading that Google Chrome uses a process for every t... | [
"c++",
"boost",
"google-chrome",
"portability",
"robust"
] | 0 | 5 | 777 | 12 | 0 | 2008-09-17T16:00:14.823000 | 2008-09-17T17:09:16.903000 |
84,820 | 192,614 | Distributed hierarchical clustering | Are there any algorithms that can help with hierarchical clustering? Google's map-reduce has only an example of k-clustering. In case of hierarchical clustering, I'm not sure how it's possible to divide the work between nodes. Other resource that I found is: http://issues.apache.org/jira/browse/MAHOUT-19 But it's not a... | First, you have to decide if you're going to build your hierarchy bottom-up or top-down. Bottom-up is called Hierarchical agglomerative clustering. Here's a simple, well-documented algorithm: http://nlp.stanford.edu/IR-book/html/htmledition/hierarchical-agglomerative-clustering-1.html. Distributing a bottom-up algorith... | Distributed hierarchical clustering Are there any algorithms that can help with hierarchical clustering? Google's map-reduce has only an example of k-clustering. In case of hierarchical clustering, I'm not sure how it's possible to divide the work between nodes. Other resource that I found is: http://issues.apache.org/... | TITLE:
Distributed hierarchical clustering
QUESTION:
Are there any algorithms that can help with hierarchical clustering? Google's map-reduce has only an example of k-clustering. In case of hierarchical clustering, I'm not sure how it's possible to divide the work between nodes. Other resource that I found is: http://... | [
"algorithm",
"cluster-analysis",
"hierarchical-clustering"
] | 24 | 17 | 7,929 | 5 | 0 | 2008-09-17T16:00:53.167000 | 2008-10-10T18:45:39.210000 |
84,839 | 84,864 | XML node name clean up code | I am trying to create an XML file based on data fields from a table, and I want to have the nodes named based on the value in a field from the table. The problem is that sometimes values entered in that column contain spaces and other characters not allowed in Node names. Does anyone have any code that will cleanup a p... | It might be easier if you stored the original value if it were illegal as a node name in an attribute. Then you wouldn't worry about having some sort of complex to/from translation. | XML node name clean up code I am trying to create an XML file based on data fields from a table, and I want to have the nodes named based on the value in a field from the table. The problem is that sometimes values entered in that column contain spaces and other characters not allowed in Node names. Does anyone have an... | TITLE:
XML node name clean up code
QUESTION:
I am trying to create an XML file based on data fields from a table, and I want to have the nodes named based on the value in a field from the table. The problem is that sometimes values entered in that column contain spaces and other characters not allowed in Node names. D... | [
".net",
"xml",
"vb.net"
] | 1 | 1 | 1,332 | 3 | 0 | 2008-09-17T16:03:27.187000 | 2008-09-17T16:06:51.483000 |
84,842 | 84,909 | How do I programmatically wire up ToolStripButton events in C#? | I'm programmatically adding ToolStripButton items to a context menu. That part is easy. this.tsmiDelete.DropDownItems.Add("The text on the item."); However, I also need to wire up the events so that when the user clicks the item something actually happens! How do I do this? The method that handles the click also needs ... | Couldn't you just subscribe to the Click event? Something like this: ToolStripButton btn = new ToolStripButton("The text on the item."); this.tsmiDelete.DropDownItems.Add(btn); btn.Click += new EventHandler(OnBtnClicked); And OnBtnClicked would be declared like this: private void OnBtnClicked(object sender, EventArgs e... | How do I programmatically wire up ToolStripButton events in C#? I'm programmatically adding ToolStripButton items to a context menu. That part is easy. this.tsmiDelete.DropDownItems.Add("The text on the item."); However, I also need to wire up the events so that when the user clicks the item something actually happens!... | TITLE:
How do I programmatically wire up ToolStripButton events in C#?
QUESTION:
I'm programmatically adding ToolStripButton items to a context menu. That part is easy. this.tsmiDelete.DropDownItems.Add("The text on the item."); However, I also need to wire up the events so that when the user clicks the item something... | [
"c#",
"events",
"toolstripbutton",
"toolstripitem"
] | 2 | 3 | 7,306 | 2 | 0 | 2008-09-17T16:03:39.230000 | 2008-09-17T16:12:41.580000 |
84,847 | 201,277 | How do I create a self-signed certificate for code signing on Windows? | How do I create a self-signed certificate for code signing using the Windows SDK? | Updated Answer If you are using the following Windows versions or later: Windows Server 2012, Windows Server 2012 R2, or Windows 8.1 then MakeCert is now deprecated, and Microsoft recommends using the PowerShell Cmdlet New-SelfSignedCertificate. If you're using an older version such as Windows 7, you'll need to stick w... | How do I create a self-signed certificate for code signing on Windows? How do I create a self-signed certificate for code signing using the Windows SDK? | TITLE:
How do I create a self-signed certificate for code signing on Windows?
QUESTION:
How do I create a self-signed certificate for code signing using the Windows SDK?
ANSWER:
Updated Answer If you are using the following Windows versions or later: Windows Server 2012, Windows Server 2012 R2, or Windows 8.1 then Ma... | [
"security",
"code-signing"
] | 298 | 418 | 244,576 | 7 | 0 | 2008-09-17T16:04:07.403000 | 2008-10-14T14:03:13.397000 |
84,855 | 84,893 | What is the best choice for .NET inter-process communication? | Should I use Named Pipes, or.NET Remoting to communicate with a running process on my machine? | WCF is the best choice. It supports a number of different transport mechanisms ( including Named Pipes ) and can be completely configuration driven. I would highly recommend that you take a look at WCF. Here is a blog that does a WCF vs Remoting performance comparison. A quote from the blog: The WCF and.NET Remoting ar... | What is the best choice for .NET inter-process communication? Should I use Named Pipes, or.NET Remoting to communicate with a running process on my machine? | TITLE:
What is the best choice for .NET inter-process communication?
QUESTION:
Should I use Named Pipes, or.NET Remoting to communicate with a running process on my machine?
ANSWER:
WCF is the best choice. It supports a number of different transport mechanisms ( including Named Pipes ) and can be completely configura... | [
"c#",
".net",
"process",
"ipc"
] | 88 | 58 | 93,841 | 8 | 0 | 2008-09-17T16:05:21.953000 | 2008-09-17T16:10:37.370000 |
84,860 | 86,286 | How to communicate with a windows service from an application that interacts with the desktop? | With.Net what is the best way to interact with a service (i.e. how do most tray-apps communicate with their servers). It would be preferred if this method would be cross-platform as well (working in Mono, so I guess remoting is out?) Edit: Forgot to mention, we still have to support Windows 2000 machines in the field, ... | Be aware that if you are planning to eventually deploy on Windows Vista or Windows Server 2008, many ways that this can be done today will not work. This is because of the introduction of a new security feature called "Session 0 Isolation". Most windows services have been moved to run in Session 0 now in order to prope... | How to communicate with a windows service from an application that interacts with the desktop? With.Net what is the best way to interact with a service (i.e. how do most tray-apps communicate with their servers). It would be preferred if this method would be cross-platform as well (working in Mono, so I guess remoting ... | TITLE:
How to communicate with a windows service from an application that interacts with the desktop?
QUESTION:
With.Net what is the best way to interact with a service (i.e. how do most tray-apps communicate with their servers). It would be preferred if this method would be cross-platform as well (working in Mono, so... | [
"c#",
".net",
"windows-services",
"service",
"mono"
] | 17 | 20 | 29,532 | 7 | 0 | 2008-09-17T16:06:12.343000 | 2008-09-17T18:45:56.513000 |
84,880 | 84,910 | How do you maintain large t-sql procedures | I'm about to inherit a set of large and complex set of stored procedures that do monthly processing on very large sets of data. We are in the process of debugging them so they match the original process which was written in VB6. The reason they decided to re write them in t-sql is because the vb process takes days and ... | First, create a directory full of.sql files and maintain them there. Add this set of.sql files to a revision control system. SVN works well. Have a tool that loads these into your database, overwriting any existing ones. Have a testing database, and baseline reports showing what the output of the monthly processing sho... | How do you maintain large t-sql procedures I'm about to inherit a set of large and complex set of stored procedures that do monthly processing on very large sets of data. We are in the process of debugging them so they match the original process which was written in VB6. The reason they decided to re write them in t-sq... | TITLE:
How do you maintain large t-sql procedures
QUESTION:
I'm about to inherit a set of large and complex set of stored procedures that do monthly processing on very large sets of data. We are in the process of debugging them so they match the original process which was written in VB6. The reason they decided to re ... | [
"sql-server",
"t-sql",
"maintainability"
] | 2 | 4 | 596 | 7 | 0 | 2008-09-17T16:08:52.040000 | 2008-09-17T16:12:51.470000 |
84,882 | 550,808 | sudo echo "something" >> /etc/privilegedFile doesn't work | This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux. There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > and >> are not allowed, even with root. Is there someway to make this work wit... | Use tee --append or tee -a. echo 'deb blah... blah' | sudo tee -a /etc/apt/sources.list Make sure to avoid quotes inside quotes. To avoid printing data back to the console, redirect the output to /dev/null. echo 'deb blah... blah' | sudo tee -a /etc/apt/sources.list > /dev/null Remember about the ( -a / --append ) flag... | sudo echo "something" >> /etc/privilegedFile doesn't work This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux. There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > and >> are not allow... | TITLE:
sudo echo "something" >> /etc/privilegedFile doesn't work
QUESTION:
This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux. There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > an... | [
"bash",
"shell",
"scripting",
"permissions",
"sudo"
] | 728 | 1,111 | 303,626 | 15 | 0 | 2008-09-17T16:09:00.840000 | 2009-02-15T12:34:20.173000 |
84,885 | 154,634 | JDEdwards XMLInterop | Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way. Thanks. | As promised, here is the code for integrating with JDEdewards using XML. It's a webservice, but could be used as you see fit. namespace YourNameSpace { /// /// This webservice allows you to submit JDE XML CallObject requests via a c# webservice /// [WebService(Namespace = "http://WebSite.com/")] [WebServiceBinding(Conf... | JDEdwards XMLInterop Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way. Thanks. | TITLE:
JDEdwards XMLInterop
QUESTION:
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way. Thanks.
ANSWER:
As promised, here is the co... | [
"jdedwards"
] | 2 | 9 | 4,803 | 3 | 0 | 2008-09-17T16:09:16.627000 | 2008-09-30T19:43:16 |
84,912 | 85,814 | What is the easiest or fastest way to make CSS render the same in all browsers | Making a web page display correctly im all major browsers today is a very time consuming task. Is there a easy way to make a CSS style that looks identical in every browser? Or at least do you have some tips to make this work easier? | I agree with all the "reset" suggestions and the "grid" framework suggestions, but I did want to add a bit of advice: The goal of identical in every browser is, in practical terms, unachievable because you cannot control the client. Case in point: fonts. You declare your font styles in CSS but some Linux machines, some... | What is the easiest or fastest way to make CSS render the same in all browsers Making a web page display correctly im all major browsers today is a very time consuming task. Is there a easy way to make a CSS style that looks identical in every browser? Or at least do you have some tips to make this work easier? | TITLE:
What is the easiest or fastest way to make CSS render the same in all browsers
QUESTION:
Making a web page display correctly im all major browsers today is a very time consuming task. Is there a easy way to make a CSS style that looks identical in every browser? Or at least do you have some tips to make this wo... | [
"html",
"css",
"styles",
"browser"
] | 26 | 33 | 7,602 | 27 | 0 | 2008-09-17T16:13:01.313000 | 2008-09-17T17:50:51.983000 |
84,916 | 86,281 | RIghtFax Esoteric error message in .NET 1.1 | I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0, using VB.NET 1.1. It works in several environments, but not in Production. It returns this message in the exception - "?" -. How can I solve it? I couldn't find any solution in manuals or on the internet. | remembers rightfax and lack of information on the internet. this is no answer to your question but one could switch to the builtin windows 2003 fax server with dedicated isdn fax board, has automatic mailforwarding | RIghtFax Esoteric error message in .NET 1.1 I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0, using VB.NET 1.1. It works in several environments, but not in Production. It returns this message in the exception - "?" -. How can I solve it? I couldn't find any solution in manuals or on the... | TITLE:
RIghtFax Esoteric error message in .NET 1.1
QUESTION:
I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0, using VB.NET 1.1. It works in several environments, but not in Production. It returns this message in the exception - "?" -. How can I solve it? I couldn't find any solution in... | [
"asp.net",
"vb.net",
".net-1.1",
"rightfax"
] | 0 | 0 | 570 | 1 | 0 | 2008-09-17T16:13:50.110000 | 2008-09-17T18:45:23.053000 |
84,932 | 90,721 | How do I get the full path to a Perl script that is executing? | I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. Because the working directory can vary as well I can't think of a way to reliably... | There are a few ways: $0 is the currently executing script as provided by POSIX, relative to the current working directory if the script is at or below the CWD Additionally, cwd(), getcwd() and abs_path() are provided by the Cwd module and tell you where the script is being run from The module FindBin provides the $Bin... | How do I get the full path to a Perl script that is executing? I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. Because the workin... | TITLE:
How do I get the full path to a Perl script that is executing?
QUESTION:
I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. ... | [
"perl",
"path",
"location"
] | 186 | 284 | 207,833 | 23 | 0 | 2008-09-17T16:16:00.353000 | 2008-09-18T07:30:54.413000 |
84,964 | 87,920 | How do you disable a SharePoint webpart temporarily? | Can this be done by setting a property? I'd prefer that approach then to remove all security before re-adding it. (As this may have other consequences.) Another option I can think of is to replace the particular webpart dll with a temporary one, and restart the.net process, but that's not an approach I like at all. Wha... | In the web.config, you can set safe="false" for the SafeControl tag for the webpart. This will cause the web part to render an error message until you set it back to true. http://technet.microsoft.com/en-us/library/cc287909.aspx | How do you disable a SharePoint webpart temporarily? Can this be done by setting a property? I'd prefer that approach then to remove all security before re-adding it. (As this may have other consequences.) Another option I can think of is to replace the particular webpart dll with a temporary one, and restart the.net p... | TITLE:
How do you disable a SharePoint webpart temporarily?
QUESTION:
Can this be done by setting a property? I'd prefer that approach then to remove all security before re-adding it. (As this may have other consequences.) Another option I can think of is to replace the particular webpart dll with a temporary one, and... | [
"sharepoint",
"web-parts"
] | 2 | 1 | 10,159 | 3 | 0 | 2008-09-17T16:20:46.397000 | 2008-09-17T21:35:35.577000 |
84,968 | 86,256 | Visual Studio Intellisense, c#, no code behind | If I open a file in Design View (web form), I get intellisense for my display code, but not my script code.. If I open with source code editor I, occasionally, get intellisense within the script tags. Anyone know how to get intellisense working all of the time for all of my code? Been living with this one for a long ti... | VS2008. So far doing a re-install seems to be the best advice. I am using the <%@ Page Language="C#" MasterPageFile="~/common/masterpages/MasterPage.master" %>. When I say design-view I mean that I right+click on the file and choose "view designer" - this gives me access to the toolbox and tabs for designer,split, and ... | Visual Studio Intellisense, c#, no code behind If I open a file in Design View (web form), I get intellisense for my display code, but not my script code.. If I open with source code editor I, occasionally, get intellisense within the script tags. Anyone know how to get intellisense working all of the time for all of m... | TITLE:
Visual Studio Intellisense, c#, no code behind
QUESTION:
If I open a file in Design View (web form), I get intellisense for my display code, but not my script code.. If I open with source code editor I, occasionally, get intellisense within the script tags. Anyone know how to get intellisense working all of the... | [
"c#",
"visual-studio",
"intellisense"
] | 1 | 1 | 3,945 | 4 | 0 | 2008-09-17T16:21:01.683000 | 2008-09-17T18:42:36.133000 |
84,978 | 86,251 | Array Formulas in Conditional Formatting of Excel XML Spreadsheet files? | Excel usually treats Conditional Formatting formulas as if they are array formulas, except when loading them from an Excel 2002/2003 XML Spreadsheet file. This is only an issue with the Excel 2002/2003 XML Spreadsheet format... the native Excel format works fine, as does the newer Excel 2007 XML format (xlsx). After lo... | I tried to recreate the problem you describe. Here is what I found. Could consistently recreate the problem using Excel 2003 on Windows XP when saving as an XML spreadsheet. Could not reproduce the problem using Excel 2003 on Windows XP when saving as a standard xls spreadsheet. Could not reproduce the problem using Ex... | Array Formulas in Conditional Formatting of Excel XML Spreadsheet files? Excel usually treats Conditional Formatting formulas as if they are array formulas, except when loading them from an Excel 2002/2003 XML Spreadsheet file. This is only an issue with the Excel 2002/2003 XML Spreadsheet format... the native Excel fo... | TITLE:
Array Formulas in Conditional Formatting of Excel XML Spreadsheet files?
QUESTION:
Excel usually treats Conditional Formatting formulas as if they are array formulas, except when loading them from an Excel 2002/2003 XML Spreadsheet file. This is only an issue with the Excel 2002/2003 XML Spreadsheet format... t... | [
"excel",
"office-2003",
"conditional-formatting",
"xml-spreadsheet"
] | 0 | 1 | 8,750 | 2 | 0 | 2008-09-17T16:22:00.277000 | 2008-09-17T18:41:26.090000 |
84,980 | 85,031 | Resending invitation/action emails | I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.) I've got some users asking for a "resend" feature to push that email again. My objection is that if the original email ended up in a spam... | If you implement it I would get the user to re-enter and re-confirm the email address they entered and I would not allow it to be used more than a few times, otherwise it would be very easy to script an abuse script to bomb someones mailbox. | Resending invitation/action emails I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.) I've got some users asking for a "resend" feature to push that email again. My objection is that if th... | TITLE:
Resending invitation/action emails
QUESTION:
I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.) I've got some users asking for a "resend" feature to push that email again. My objec... | [
"email",
"web-applications",
"email-spam"
] | 1 | 0 | 342 | 9 | 0 | 2008-09-17T16:22:24.253000 | 2008-09-17T16:28:38.997000 |
84,983 | 106,795 | Using P4Package (Java) from Java app to validate Perforce directory | In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo. I've got the P4Package (p4.jar) lib, and I'm configuring it correctly enough that it works for almost everythi... | So, the code I was using did have a bug requiring me to make a change and check the code into my repository. However, since then, Perforce has come up with their own Java wrapper for the P4 client which works much better. I'd give that one a shot. | Using P4Package (Java) from Java app to validate Perforce directory In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo. I've got the P4Package (p4.jar) lib, and I... | TITLE:
Using P4Package (Java) from Java app to validate Perforce directory
QUESTION:
In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo. I've got the P4Package (... | [
"java",
"perforce"
] | 2 | 1 | 650 | 3 | 0 | 2008-09-17T16:22:48.170000 | 2008-09-20T02:17:19.897000 |
84,992 | 85,030 | Change default port when registering a new SQL 2000 server | I'm trying to register an externally hosted SQL 2000 server through Enterprise Manager which isn't on the default port and I can't see anywhere to change it within Enterprise Manager. So, the question is, how do I connect to the database if: I.P. Address is 123.456.789 (example) Port is 1334 | I found this via Google: You add a comma and the port number to the end of the server name. So if you want to connect to MySqlServer.MyDomain.com on port 3821, you type... MySqlServer.MyDomain.com,3821 | Change default port when registering a new SQL 2000 server I'm trying to register an externally hosted SQL 2000 server through Enterprise Manager which isn't on the default port and I can't see anywhere to change it within Enterprise Manager. So, the question is, how do I connect to the database if: I.P. Address is 123... | TITLE:
Change default port when registering a new SQL 2000 server
QUESTION:
I'm trying to register an externally hosted SQL 2000 server through Enterprise Manager which isn't on the default port and I can't see anywhere to change it within Enterprise Manager. So, the question is, how do I connect to the database if: I... | [
"sql-server",
"port",
"sql-server-2000"
] | 2 | 4 | 1,803 | 2 | 0 | 2008-09-17T16:23:44.970000 | 2008-09-17T16:28:38.640000 |
84,995 | 85,017 | How to stream a PDF file as binary to the browser using .NET 2.0 | I'm looking for a way to stream a PDF file from my server to the browser using.NET 2.0 (in binary). I'm trying to grab an existing PDF file from a server path and push that up as binary to the browser. | Here you go: How To Write Binary Files to the Browser Using ASP.NET and Visual C#.NET | How to stream a PDF file as binary to the browser using .NET 2.0 I'm looking for a way to stream a PDF file from my server to the browser using.NET 2.0 (in binary). I'm trying to grab an existing PDF file from a server path and push that up as binary to the browser. | TITLE:
How to stream a PDF file as binary to the browser using .NET 2.0
QUESTION:
I'm looking for a way to stream a PDF file from my server to the browser using.NET 2.0 (in binary). I'm trying to grab an existing PDF file from a server path and push that up as binary to the browser.
ANSWER:
Here you go: How To Write ... | [
".net"
] | 3 | 5 | 14,440 | 4 | 0 | 2008-09-17T16:24:26.480000 | 2008-09-17T16:26:54.273000 |
85,006 | 253,114 | Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031 | I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method. vLocalImage ORDImage:= ORDImage.init();... vLocalImage.source.localdata:= PORTAL.wwdoc_admin.get_document_blob_content(pFile); vLocalImage.setPro... | Even though the documentation states that it should be possible to edit an ORDImage "in-place", I was unable to make it work. Instead, I created a new ORDImage object and used processCopy: vNewImage ORDImage;... vLocalImage.processCopy('maxScale 534 401', vNewImage); | Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031 I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method. vLocalImage ORDImage:= ORDImage.init();... vLocalImage.source.localdata:= P... | TITLE:
Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031
QUESTION:
I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method. vLocalImage ORDImage:= ORDImage.init();... vLocalImage.so... | [
"oracle",
"plsql"
] | 0 | 4 | 3,129 | 2 | 0 | 2008-09-17T16:25:36.930000 | 2008-10-31T10:41:50.013000 |
85,033 | 85,402 | Converting std::vector<>::iterator to .NET interface in C++/CLI | I am wrapping a native C++ class, which has the following methods: class Native { public: class Local { std::string m_Str; int m_Int; };
typedef std::vector LocalVec; typedef LocalVec::iterator LocalIter;
LocalIter BeginLocals(); LocalIter EndLocals();
private: LocalVec m_Locals; }; 1) What is the ".NET way" of repr... | Iterators aren't exactly translatable to "the.net way", but they are roughly replaced by IEnumerable < T > and IEnumerator < T >. Rather than vector a_vector; vector::iterator a_iterator; for(int i= 0; i < 100; i++) { a_vector.push_back(i); }
int total = 0; a_iterator = a_vector.begin(); while( a_iterator!= a_vector.e... | Converting std::vector<>::iterator to .NET interface in C++/CLI I am wrapping a native C++ class, which has the following methods: class Native { public: class Local { std::string m_Str; int m_Int; };
typedef std::vector LocalVec; typedef LocalVec::iterator LocalIter;
LocalIter BeginLocals(); LocalIter EndLocals();
... | TITLE:
Converting std::vector<>::iterator to .NET interface in C++/CLI
QUESTION:
I am wrapping a native C++ class, which has the following methods: class Native { public: class Local { std::string m_Str; int m_Int; };
typedef std::vector LocalVec; typedef LocalVec::iterator LocalIter;
LocalIter BeginLocals(); LocalI... | [
".net",
"arrays",
"vector",
"c++-cli",
"marshalling"
] | 5 | 5 | 7,071 | 2 | 0 | 2008-09-17T16:28:44.537000 | 2008-09-17T17:03:41.627000 |
85,034 | 85,042 | SqlServer create table with MySql like auto_increment primary key | I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below) create table foo ( user_id int not null auto_increment, name varchar(50) ) Is there a way of doing this with out creating an insert tr... | Like this create table foo ( user_id int not null identity, name varchar(50) ) | SqlServer create table with MySql like auto_increment primary key I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below) create table foo ( user_id int not null auto_increment, name varchar... | TITLE:
SqlServer create table with MySql like auto_increment primary key
QUESTION:
I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below) create table foo ( user_id int not null auto_incre... | [
"mysql",
"sql-server",
"auto-increment"
] | 11 | 21 | 26,930 | 8 | 0 | 2008-09-17T16:28:49.137000 | 2008-09-17T16:29:30.743000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.