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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
160,970 | 161,005 | How do I invoke a Java method when given the method name as a string? | If I have two variables: Object obj; String methodName = "getName"; Without knowing the class of obj, how can I call the method identified by methodName on it? The method being called has no parameters, and a String return value. It's a getter for a Java bean. | Coding from the hip, it would be something like: java.lang.reflect.Method method; try { method = obj.getClass().getMethod(methodName, param1.class, param2.class,..); } catch (SecurityException e) {... } catch (NoSuchMethodException e) {... } The parameters identify the very specific method you need (if there are severa... | How do I invoke a Java method when given the method name as a string? If I have two variables: Object obj; String methodName = "getName"; Without knowing the class of obj, how can I call the method identified by methodName on it? The method being called has no parameters, and a String return value. It's a getter for a ... | TITLE:
How do I invoke a Java method when given the method name as a string?
QUESTION:
If I have two variables: Object obj; String methodName = "getName"; Without knowing the class of obj, how can I call the method identified by methodName on it? The method being called has no parameters, and a String return value. It... | [
"java",
"reflection",
"invoke"
] | 778 | 1,079 | 1,086,362 | 23 | 0 | 2008-10-02T05:15:43.430000 | 2008-10-02T05:30:02.057000 |
160,973 | 160,978 | Visual Studio 2005 locks up when attaching to process | I have a simple C++ DLL that implements a few custom actions for a WiX installer. Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears. But today, whenever I attach to the process, I get the "Microsoft Visual ... | After hours of trying to figure this out, I realized that the problem was that I had debugging symbols enabled in Tools->Options->Debugging->Symbols. The latency in looking up symbols was leading to the apparent lockup. Clearing the "Search the above locations only when symbols are loaded manually" seems to have allevi... | Visual Studio 2005 locks up when attaching to process I have a simple C++ DLL that implements a few custom actions for a WiX installer. Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears. But today, whenever... | TITLE:
Visual Studio 2005 locks up when attaching to process
QUESTION:
I have a simple C++ DLL that implements a few custom actions for a WiX installer. Debugging the custom actions is usually simple: put up a temporary dialog box at the beginning of the action, and attach to the process when the dialog box appears. B... | [
"c++",
"visual-studio",
"dll",
"custom-action",
"visual-c++-2005"
] | 1 | 2 | 693 | 2 | 0 | 2008-10-02T05:20:01.610000 | 2008-10-02T05:22:21.683000 |
160,974 | 161,039 | How to typedef a pointer to method which returns a pointer the method? | Basically I have the following class: class StateMachine {... StateMethod stateA(); StateMethod stateB();... }; The methods stateA() and stateB() should be able return pointers to stateA() and stateB(). How to typedef the StateMethod? | GotW #57 says to use a proxy class with an implicit conversion for this very purpose. struct StateMethod; typedef StateMethod (StateMachine:: *FuncPtr)(); struct StateMethod { StateMethod( FuncPtr pp ): p( pp ) { } operator FuncPtr() { return p; } FuncPtr p; };
class StateMachine { StateMethod stateA(); StateMethod st... | How to typedef a pointer to method which returns a pointer the method? Basically I have the following class: class StateMachine {... StateMethod stateA(); StateMethod stateB();... }; The methods stateA() and stateB() should be able return pointers to stateA() and stateB(). How to typedef the StateMethod? | TITLE:
How to typedef a pointer to method which returns a pointer the method?
QUESTION:
Basically I have the following class: class StateMachine {... StateMethod stateA(); StateMethod stateB();... }; The methods stateA() and stateB() should be able return pointers to stateA() and stateB(). How to typedef the StateMeth... | [
"c++",
"pointer-to-member"
] | 9 | 15 | 7,046 | 5 | 0 | 2008-10-02T05:20:05.823000 | 2008-10-02T05:55:36.253000 |
160,995 | 161,025 | WPF: Slider doesnt raise MouseLeftButtonDown or MouseLeftButtonUp | I tried this XAML: And this C#: private void slider_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { sliderMouseDown = true; }
private void slider_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { sliderMouseDown = false; } The sliderMouseDown variable never changes because the MouseLeftButtonDown... | Sliders swallow the MouseDown Events (similar to the button). You can register for the PreviewMouseDown and PreviewMouseUp events which get fired before the slider has a chance to handle them. | WPF: Slider doesnt raise MouseLeftButtonDown or MouseLeftButtonUp I tried this XAML: And this C#: private void slider_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { sliderMouseDown = true; }
private void slider_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { sliderMouseDown = false; } The slid... | TITLE:
WPF: Slider doesnt raise MouseLeftButtonDown or MouseLeftButtonUp
QUESTION:
I tried this XAML: And this C#: private void slider_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { sliderMouseDown = true; }
private void slider_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { sliderMouseDown =... | [
"c#",
"wpf",
"slider",
"mouseevent"
] | 18 | 19 | 16,865 | 4 | 0 | 2008-10-02T05:25:39.430000 | 2008-10-02T05:43:40.417000 |
161,022 | 165,385 | why are local styles being ignored when using forms authentication in asp.net? | I have some styles applied to html for example and when I use forms authentication it is ignored. If I put the style into an external.css file then it works. This doesn't seem like normal behaviour to me. | Solved the problem. I'm not sure I understand why it happened but here is the offending code; if (User.Identity.IsAuthenticated) { if (User.Identity is BookingIdentity) { BookingIdentity id = (BookingIdentity) User.Identity;
Response.Write(" UserName: " + id.Name); } } Removing the Response.Write makes everything work... | why are local styles being ignored when using forms authentication in asp.net? I have some styles applied to html for example and when I use forms authentication it is ignored. If I put the style into an external.css file then it works. This doesn't seem like normal behaviour to me. | TITLE:
why are local styles being ignored when using forms authentication in asp.net?
QUESTION:
I have some styles applied to html for example and when I use forms authentication it is ignored. If I put the style into an external.css file then it works. This doesn't seem like normal behaviour to me.
ANSWER:
Solved th... | [
"asp.net",
"css",
"webforms"
] | 1 | 1 | 608 | 6 | 0 | 2008-10-02T05:42:30.417000 | 2008-10-03T02:03:08.127000 |
161,027 | 161,100 | Advice on splitting up a process involving multiple actors into Use Cases | Let's say I am modelling a process that involves a conversation or exchnage between two actors. For this example, I'll use something easily understandable:- Supplier creates a price list, Buyer chooses some items to buy and sends a Purchase Order, Supplier receives the purchase order and sends the goods. Supplier sends... | The way I usually approach such tasks is by just starting to create UML Use Case and high-level Activity diagrams for the process. Don't bother about specifics, just give it your best shot. When you will have a draft you would almost immediately see from it how it could be improved. You could then go on refactoring it ... | Advice on splitting up a process involving multiple actors into Use Cases Let's say I am modelling a process that involves a conversation or exchnage between two actors. For this example, I'll use something easily understandable:- Supplier creates a price list, Buyer chooses some items to buy and sends a Purchase Order... | TITLE:
Advice on splitting up a process involving multiple actors into Use Cases
QUESTION:
Let's say I am modelling a process that involves a conversation or exchnage between two actors. For this example, I'll use something easily understandable:- Supplier creates a price list, Buyer chooses some items to buy and send... | [
"requirements",
"use-case"
] | 1 | 1 | 922 | 2 | 0 | 2008-10-02T05:45:31.707000 | 2008-10-02T06:34:25.550000 |
161,030 | 161,035 | In .NET is there a way to enable Assembly.Load tracing? | In.NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, preferably intermingled with my Debug/Trace log messages. I'm tracing out va... | Get the AppDomain for your application and attach to the AssemblyLoad event. Example (C#): AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(OnAssemblyLoad); | In .NET is there a way to enable Assembly.Load tracing? In.NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, preferably interming... | TITLE:
In .NET is there a way to enable Assembly.Load tracing?
QUESTION:
In.NET is there a way to enable Assembly.Load tracing? I know while running under the debugger it gives you a nice message like "Loaded 'assembly X'" but I want to get a log of the assembly loads of my running application outside the debugger, pr... | [
".net",
"assemblies"
] | 4 | 14 | 4,467 | 3 | 0 | 2008-10-02T05:50:14.813000 | 2008-10-02T05:52:48.303000 |
161,048 | 161,727 | What do I need for a compliant email header | I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it? $header = "From: site \r\n"; $header.= "To: $name <$email>\r\n"; $header.= "Subject: $subject\r\n"; $header.= "Reply-To: site ". "\r\n"; $header.= "MIM... | In addition to Ted Percival's suggestions, you could try using PHPMailer to create the emails for you rather than manually building the headers. I've used this class extensively and not had any trouble with email being rejected as spam by Yahoo, or anyone else. | What do I need for a compliant email header I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it? $header = "From: site \r\n"; $header.= "To: $name <$email>\r\n"; $header.= "Subject: $subject\r\n"; $header... | TITLE:
What do I need for a compliant email header
QUESTION:
I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it? $header = "From: site \r\n"; $header.= "To: $name <$email>\r\n"; $header.= "Subject: $sub... | [
"php",
"email",
"header"
] | 10 | 2 | 5,950 | 9 | 0 | 2008-10-02T06:00:00.547000 | 2008-10-02T10:47:38.983000 |
161,053 | 161,061 | Which is faster: Stack allocation or Heap allocation | This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care to stack allocate things where I could, instead of heap allocating them. He was talking to me and watching over my shoulder and commented that it wasn't necessary because they are the same perform... | Stack allocation is much faster since all it really does is move the stack pointer. Using memory pools, you can get comparable performance out of heap allocation, but that comes with a slight added complexity and its own headaches. Also, stack vs. heap is not only a performance consideration; it also tells you a lot ab... | Which is faster: Stack allocation or Heap allocation This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care to stack allocate things where I could, instead of heap allocating them. He was talking to me and watching over my shoulder and commented that ... | TITLE:
Which is faster: Stack allocation or Heap allocation
QUESTION:
This question may sound fairly elementary, but this is a debate I had with another developer I work with. I was taking care to stack allocate things where I could, instead of heap allocating them. He was talking to me and watching over my shoulder a... | [
"c++",
"performance",
"memory",
"stack",
"heap-memory"
] | 548 | 543 | 140,493 | 24 | 0 | 2008-10-02T06:06:28.067000 | 2008-10-02T06:09:03.710000 |
161,064 | 161,128 | autoconf using sh, I need SHELL=BASH, how do I force autoconf to use bash? | I'm running autoconf and configure sets SHELL to '/bin/sh'. This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf? I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults to /bin/sh. | I have similar problems on Solaris with GCC - and I use the 'standard' technique: CONFIG_SHELL=/bin/bash./configure... (Or, actually, I use /bin/ksh, but setting the CONFIG_SHELL env var allows you to tell autoconf scripts which shell to use.) I checked the configure script for git and gd (they happened to be extracted... | autoconf using sh, I need SHELL=BASH, how do I force autoconf to use bash? I'm running autoconf and configure sets SHELL to '/bin/sh'. This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf? I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults... | TITLE:
autoconf using sh, I need SHELL=BASH, how do I force autoconf to use bash?
QUESTION:
I'm running autoconf and configure sets SHELL to '/bin/sh'. This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf? I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/... | [
"bash",
"unix",
"autoconf",
"sh"
] | 8 | 10 | 4,775 | 5 | 0 | 2008-10-02T06:10:29.307000 | 2008-10-02T06:43:56.650000 |
161,074 | 161,110 | Should I upgrade to Windows Server & Exchange 2008? | Currently running Server 2003 but am looking at reinstalling in the near future due to a change of direction with the domains. Should I take this opportunity to install Windows Server 2008 instead? I would love to play with new technology and the server is only for a small home business so downtime/performance issues a... | I am no expert on Windows server revisions, but the only new feature of Server 2008 I can think of is Hyper-V. But I would try Server 2008 just for Hyper-V, as this VM hypervisor is supposedly much faster than VMware and Virtual PC, and is compatible with Virtual PC virtual disks. | Should I upgrade to Windows Server & Exchange 2008? Currently running Server 2003 but am looking at reinstalling in the near future due to a change of direction with the domains. Should I take this opportunity to install Windows Server 2008 instead? I would love to play with new technology and the server is only for a ... | TITLE:
Should I upgrade to Windows Server & Exchange 2008?
QUESTION:
Currently running Server 2003 but am looking at reinstalling in the near future due to a change of direction with the domains. Should I take this opportunity to install Windows Server 2008 instead? I would love to play with new technology and the ser... | [
"windows-server-2008",
"windows-server-2003"
] | 0 | 1 | 427 | 3 | 0 | 2008-10-02T06:17:12.957000 | 2008-10-02T06:38:05.307000 |
161,086 | 161,104 | Prevent Enter key from firing button click even in vb6 | I have a form with a progress bar and a cancel button which is displayed as a process runs. The buttons "Cancel" property is set to true so pressing escape, cancels the process. But, as the button is the only control on the form capable of taking the focus, should the user inadvertently press enter (or space bar) while... | Add a default button with size 1x1, no caption, no border, etc. Make a handler for it that does nothing. The Escape key will still do a cancel as it does now. | Prevent Enter key from firing button click even in vb6 I have a form with a progress bar and a cancel button which is displayed as a process runs. The buttons "Cancel" property is set to true so pressing escape, cancels the process. But, as the button is the only control on the form capable of taking the focus, should ... | TITLE:
Prevent Enter key from firing button click even in vb6
QUESTION:
I have a form with a progress bar and a cancel button which is displayed as a process runs. The buttons "Cancel" property is set to true so pressing escape, cancels the process. But, as the button is the only control on the form capable of taking ... | [
"vb6"
] | 0 | 2 | 2,343 | 2 | 0 | 2008-10-02T06:23:59.007000 | 2008-10-02T06:35:32.333000 |
161,088 | 459,217 | How to integrate a SpringSource dm Server into another OSGi-based application server? | I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm Server is build on OSGi, and many other application servers (including Websphere) are ba... | SpringSource dm Server is based on the Eclipse Equinox OSGi framework (and should not be confused with the Spring DM technology, included in dm Server, which can run on Equinox, Apache Felix, and Knopflerfish). However, embedding dm Server in another application server, such as WebSphere Application Server, based on Eq... | How to integrate a SpringSource dm Server into another OSGi-based application server? I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm Se... | TITLE:
How to integrate a SpringSource dm Server into another OSGi-based application server?
QUESTION:
I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application serve... | [
"osgi",
"springsource",
"spring-dm"
] | 3 | 1 | 1,600 | 4 | 0 | 2008-10-02T06:25:49.737000 | 2009-01-19T21:24:43.643000 |
161,093 | 161,105 | Do this with a single SQL | I have a table that looks like that: The rows are sorted by CLNDR_DATE DESC. I need to find a CLNDR_DATE that corresponds to the highlighted row, in other words: Find the topmost group of rows WHERE EFFECTIVE_DATE IS NOT NULL, and return the CLNR_DATE of a last row of that group. Normally I would open a cursor and cycl... | Warning: Not a DBA by any means.;) But, a quick, untested stab at it: SELECT min(CLNDR_DATE) FROM [TABLE] WHERE (EFFECTIVE_DATE IS NOT NULL) AND (CLNDR_DATE > ( SELECT max(CLNDR_DATE) FROM [TABLE] WHERE EFFECTIVE_DATE IS NULL )) Assuming you want the first CLNDR_DATE with EFFECTIVE_DATE after the last without. If you w... | Do this with a single SQL I have a table that looks like that: The rows are sorted by CLNDR_DATE DESC. I need to find a CLNDR_DATE that corresponds to the highlighted row, in other words: Find the topmost group of rows WHERE EFFECTIVE_DATE IS NOT NULL, and return the CLNR_DATE of a last row of that group. Normally I wo... | TITLE:
Do this with a single SQL
QUESTION:
I have a table that looks like that: The rows are sorted by CLNDR_DATE DESC. I need to find a CLNDR_DATE that corresponds to the highlighted row, in other words: Find the topmost group of rows WHERE EFFECTIVE_DATE IS NOT NULL, and return the CLNR_DATE of a last row of that gr... | [
"sql",
"oracle"
] | 1 | 7 | 299 | 4 | 0 | 2008-10-02T06:29:39.167000 | 2008-10-02T06:35:48.137000 |
161,108 | 162,267 | Why ActiveRecord instead of a MySql API | I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql api. The thing that has been bugging me is Ruby on Rails uses... | You're right that hiding the SQL behind ActiveRecord's layer means people might forget to check the generated SQL. I've been bitten by this myself: missing indexes, inefficient queries, etc. What ActiveRecord allows is making the easy things easy: Post.find(1) vs SELECT * FROM posts WHERE posts.id = 1 You, the develope... | Why ActiveRecord instead of a MySql API I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql api. The thing that h... | TITLE:
Why ActiveRecord instead of a MySql API
QUESTION:
I've been developing web applications for a while and i am quite comfortable with mySql, in fact as many do i use some form of SQL almost every day. I like the syntax and a have zero problems writing queries or optimizing my tables. I have enjoyed this mysql api... | [
"mysql",
"ruby-on-rails",
"activerecord"
] | 2 | 3 | 671 | 3 | 0 | 2008-10-02T06:37:52.547000 | 2008-10-02T13:30:02.447000 |
161,114 | 161,117 | How do you keep track of temporary threads of conversation online | Often when I post a comment or answer on a site I like to keep an eye out for additional responses from other people, possibly replying again if appropriate. Sometimes I'll bookmark a page for a while, other times I'll end up re-googling keywords to locate the post again. I've always thought there should be something b... | For stackoverflow, I put together a little bookmarklet thing at http://stackoverflow.hewgill.com. I use it to keep track of posts that I might want to come back to later, for reference or to answer if nobody else did, or whatever. The backend automatically retrieves updates from the SO server and updates your list of b... | How do you keep track of temporary threads of conversation online Often when I post a comment or answer on a site I like to keep an eye out for additional responses from other people, possibly replying again if appropriate. Sometimes I'll bookmark a page for a while, other times I'll end up re-googling keywords to loca... | TITLE:
How do you keep track of temporary threads of conversation online
QUESTION:
Often when I post a comment or answer on a site I like to keep an eye out for additional responses from other people, possibly replying again if appropriate. Sometimes I'll bookmark a page for a while, other times I'll end up re-googlin... | [
"bookmarks"
] | 2 | 1 | 270 | 4 | 0 | 2008-10-02T06:39:10.907000 | 2008-10-02T06:41:53.053000 |
161,123 | 162,747 | How do I configure the place of the Netbeans .netbeans directory? | I want Netbeans 6.1 to store the.netbeans directory in another place than the default. How do I do this? | You can also specify this when you run Netbeans IDE via the command line. This is useful if you want to have different profiles/working environments in the IDE or when you are testing out Netbeans IDE plug-ins. This works from 5.0 to the current version (6.5). Simply specify "--userdir " on the command line. Example: n... | How do I configure the place of the Netbeans .netbeans directory? I want Netbeans 6.1 to store the.netbeans directory in another place than the default. How do I do this? | TITLE:
How do I configure the place of the Netbeans .netbeans directory?
QUESTION:
I want Netbeans 6.1 to store the.netbeans directory in another place than the default. How do I do this?
ANSWER:
You can also specify this when you run Netbeans IDE via the command line. This is useful if you want to have different pro... | [
"netbeans",
"netbeans6.1"
] | 0 | 2 | 743 | 2 | 0 | 2008-10-02T06:43:08.993000 | 2008-10-02T14:51:38.990000 |
161,127 | 161,366 | Can a WPF ListBox be "read only"? | We have a scenario where we want to display a list of items and indicate which is the "current" item (with a little arrow marker or a changed background colour). ItemsControl is no good to us, because we need the context of "SelectedItem". However, we want to move the selection programattically and not allow the user t... | One option is to set ListBoxItem.IsEnabled to false: This ensures that the items are not selectable, but they may not render how you like. To fix this, you can play around with triggers and/or templates. For example: | Can a WPF ListBox be "read only"? We have a scenario where we want to display a list of items and indicate which is the "current" item (with a little arrow marker or a changed background colour). ItemsControl is no good to us, because we need the context of "SelectedItem". However, we want to move the selection program... | TITLE:
Can a WPF ListBox be "read only"?
QUESTION:
We have a scenario where we want to display a list of items and indicate which is the "current" item (with a little arrow marker or a changed background colour). ItemsControl is no good to us, because we need the context of "SelectedItem". However, we want to move the... | [
"wpf",
"listbox",
"itemscontrol"
] | 15 | 19 | 16,669 | 4 | 0 | 2008-10-02T06:43:41.973000 | 2008-10-02T08:35:28.053000 |
161,160 | 162,776 | How do I force a tomcat web application reload the trust store after I update it | I have the following problem. My tomcat 5.5 based web application is using a trust store to verify SSL connections. The application allows the user to add or remove CA certificates to be used in the verification process. However, adding or removing certificates from the trust store doesn't change a thing. The applicati... | how about writing a Custom Classloader that loads in the trust store ONLY for this webapp. You could unload the classloader when you need to refresh the contents and reload it? | How do I force a tomcat web application reload the trust store after I update it I have the following problem. My tomcat 5.5 based web application is using a trust store to verify SSL connections. The application allows the user to add or remove CA certificates to be used in the verification process. However, adding or... | TITLE:
How do I force a tomcat web application reload the trust store after I update it
QUESTION:
I have the following problem. My tomcat 5.5 based web application is using a trust store to verify SSL connections. The application allows the user to add or remove CA certificates to be used in the verification process. ... | [
"java",
"tomcat",
"truststore"
] | 2 | 2 | 3,113 | 1 | 0 | 2008-10-02T07:01:54.237000 | 2008-10-02T14:55:57.140000 |
161,166 | 161,239 | Is it safe to increase an iterator inside when using it as an argument? | Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (which is standard?) Anyways I want to write: myIter = mySet.erase(myIter); But GCC doesn't ... | There is no problem with mySet.erase(myIter++); The order of operation is well-defined: myIter is copied into myTempIter, myIter is incremented, and myTempIter is then given to the erase method. For Greg and Mark: no, there is no way operator++ can perform operations after the call to erase. By definition, erase() is c... | Is it safe to increase an iterator inside when using it as an argument? Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (which is standard?)... | TITLE:
Is it safe to increase an iterator inside when using it as an argument?
QUESTION:
Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (w... | [
"c++",
"iterator"
] | 1 | 9 | 805 | 2 | 0 | 2008-10-02T07:06:47.127000 | 2008-10-02T07:45:02.557000 |
161,170 | 161,823 | How do I determine the file and line # of a C# method from a symbols (.pdb) file? | pdb files contain symbol information for.NET assemblies. I'd like to read a pdb file in order to correlate methods with their file location. The data is contained within it but I can't seem to find a good description of how to get it out. I know about mdbg, but that is very heavy (I think/hope) for what I want. | You should look: Mono.Cecil and especially the Mono.Cecil.Pdb module. It should do what you want and more. | How do I determine the file and line # of a C# method from a symbols (.pdb) file? pdb files contain symbol information for.NET assemblies. I'd like to read a pdb file in order to correlate methods with their file location. The data is contained within it but I can't seem to find a good description of how to get it out.... | TITLE:
How do I determine the file and line # of a C# method from a symbols (.pdb) file?
QUESTION:
pdb files contain symbol information for.NET assemblies. I'd like to read a pdb file in order to correlate methods with their file location. The data is contained within it but I can't seem to find a good description of ... | [
"c#",
".net",
"pdb-files"
] | 6 | 3 | 969 | 2 | 0 | 2008-10-02T07:08:53.517000 | 2008-10-02T11:33:10.123000 |
161,171 | 161,180 | What is the best way to export a large table with many records from SQLite to a custom delimited text file? | The table I'm dealing with it potentially larger than available memory (let's say 10GB) and some of the fields can have at most 100MB of text. So a simple SELECT query probably isn't going to cut it. I've seen some command line solutions but I need to be able to do this through a C# program. | A select should be fine. Last time I checked, the entire recordset (and all its data) isn't loaded into memory when you query a DB. If that is somehow not the case, and it is taking up all the RAM in the known universe, do your query to just get IDs and then tick through the IDs getting induvidual records. Much, much s... | What is the best way to export a large table with many records from SQLite to a custom delimited text file? The table I'm dealing with it potentially larger than available memory (let's say 10GB) and some of the fields can have at most 100MB of text. So a simple SELECT query probably isn't going to cut it. I've seen so... | TITLE:
What is the best way to export a large table with many records from SQLite to a custom delimited text file?
QUESTION:
The table I'm dealing with it potentially larger than available memory (let's say 10GB) and some of the fields can have at most 100MB of text. So a simple SELECT query probably isn't going to cu... | [
"sqlite",
"export"
] | 0 | 1 | 553 | 1 | 0 | 2008-10-02T07:11:04.917000 | 2008-10-02T07:14:28.823000 |
161,184 | 161,263 | Fastest way to get productive in VS 08 and C# | I have recently been working with Python using Komodo Edit and other simpler editors but now I am doing a project which is to be done in C# using VS 08. I would appreciate any hints on how to get productive on that platform as quickly as possible. | As far as becoming proficient with C# I would highly recommend Programming C# and C# in Depth. For Visual Studio, start poking around in the IDE a lot, play around, get familiar with it. Start with simple projects and explore all the different aspects. Learn how to optimize Visual Studio and get familiar with some of t... | Fastest way to get productive in VS 08 and C# I have recently been working with Python using Komodo Edit and other simpler editors but now I am doing a project which is to be done in C# using VS 08. I would appreciate any hints on how to get productive on that platform as quickly as possible. | TITLE:
Fastest way to get productive in VS 08 and C#
QUESTION:
I have recently been working with Python using Komodo Edit and other simpler editors but now I am doing a project which is to be done in C# using VS 08. I would appreciate any hints on how to get productive on that platform as quickly as possible.
ANSWER:... | [
"c#",
"visual-studio",
"visual-studio-2008",
"development-environment"
] | 3 | 11 | 1,063 | 11 | 0 | 2008-10-02T07:16:28.837000 | 2008-10-02T07:56:07.743000 |
161,187 | 161,724 | Error "Cannot change Visible in OnShow or OnHide" in Delphi IDE | I have a very strange problem with the Delphi 2006 IDE. If the IDE is minimized, and the PC is locked. I return to the pc, unlock it and maximize the IDE, I sometimes get the error "Cannot change Visible in OnShow or OnHide". If this happens, I have to kill the IDE with the taskmanager. Is there anybody out there who h... | Yes I have noticed the same problem when using Terminal Servers. I use GExperts. If you can reproduce the problem you should report it on http://qc.codegear.com/ | Error "Cannot change Visible in OnShow or OnHide" in Delphi IDE I have a very strange problem with the Delphi 2006 IDE. If the IDE is minimized, and the PC is locked. I return to the pc, unlock it and maximize the IDE, I sometimes get the error "Cannot change Visible in OnShow or OnHide". If this happens, I have to kil... | TITLE:
Error "Cannot change Visible in OnShow or OnHide" in Delphi IDE
QUESTION:
I have a very strange problem with the Delphi 2006 IDE. If the IDE is minimized, and the PC is locked. I return to the pc, unlock it and maximize the IDE, I sometimes get the error "Cannot change Visible in OnShow or OnHide". If this happ... | [
"delphi",
"ide"
] | 2 | 1 | 7,963 | 3 | 0 | 2008-10-02T07:19:17.893000 | 2008-10-02T10:46:23.793000 |
161,212 | 161,275 | Sending mass emails programmatically | I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives. Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousands. If purchasing licensed software can be ... | smtplib in python is a doddle to set up and a very clean API. | Sending mass emails programmatically I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives. Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousands. If... | TITLE:
Sending mass emails programmatically
QUESTION:
I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives. Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in... | [
"email",
"programming-languages"
] | 2 | 1 | 4,749 | 8 | 0 | 2008-10-02T07:31:57.940000 | 2008-10-02T08:01:11.897000 |
161,222 | 229,724 | How do I use continuous integration with an Eclipse project? | I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times and unit test are too long. I'm considering switching back to... | I managed find a good solution. I simply got infinitest (can be installed from the Eclipse marketplace) to work when using maven and eclipse In Eclipse->Project Properties->Java Build Path->Source uncheck the box called: "Allow output folders for source folders" That will enable your project to have more than one outpu... | How do I use continuous integration with an Eclipse project? I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes and the build times ... | TITLE:
How do I use continuous integration with an Eclipse project?
QUESTION:
I've been using maven2 and hudson for a while to do my continuous integration, but I find that Eclipse and Maven do not play well together. Sure there's a plugin, but it's cranky to mash the maven project into something that eclipse likes an... | [
"eclipse",
"continuous-integration",
"build-automation",
"infinitest",
"javarebel"
] | 5 | 2 | 5,642 | 3 | 0 | 2008-10-02T07:37:10.423000 | 2008-10-23T13:32:53.907000 |
161,224 | 161,358 | What are the differences between the different saving methods in Hibernate? | Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn't there just one intelligent method that knows when to use what? The methods that I have identified thus far are: save() update() saveOrUpda... | Here's my understanding of the methods. Mainly these are based on the API though as I don't use all of these in practice. saveOrUpdate Calls either save or update depending on some checks. E.g. if no identifier exists, save is called. Otherwise update is called. save Persists an entity. Will assign an identifier if one... | What are the differences between the different saving methods in Hibernate? Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn't there just one intelligent method that knows when to use what?... | TITLE:
What are the differences between the different saving methods in Hibernate?
QUESTION:
Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use which, and why isn't there just one intelligent method that knows... | [
"java",
"hibernate",
"persistence"
] | 212 | 123 | 125,227 | 10 | 0 | 2008-10-02T07:38:12.590000 | 2008-10-02T08:32:45.923000 |
161,230 | 2,047,266 | Access to remote computer's MSMQ gives "Remote computer is not available" | We have a windows application that runs on a server and accesses 4 other servers (all of them are members in the domain) to get the messages in each of their private queues. We've just installed a new server, and for some reason when the application tries to access that computer, it gets a "Remote computer is not avail... | The problem is finally solved, and it was solved accidentally: Apparently there was some confusion in the DNS server, and the cache server had difficulty accessing the correct server. Our webmaster corrected al the server names, and that also solved the MSMQ problem. | Access to remote computer's MSMQ gives "Remote computer is not available" We have a windows application that runs on a server and accesses 4 other servers (all of them are members in the domain) to get the messages in each of their private queues. We've just installed a new server, and for some reason when the applicat... | TITLE:
Access to remote computer's MSMQ gives "Remote computer is not available"
QUESTION:
We have a windows application that runs on a server and accesses 4 other servers (all of them are members in the domain) to get the messages in each of their private queues. We've just installed a new server, and for some reason... | [
"msmq"
] | 1 | 0 | 12,184 | 4 | 0 | 2008-10-02T07:41:20.103000 | 2010-01-12T06:57:29.170000 |
161,231 | 162,019 | How do you force constructor signatures and static methods? | Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java? You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in which I do find it useful is when you want to enforce some design guideline, fo... | Not enforced at compile-time, but I have spent a lot of time looking at similar issues; a generic-enabled maths library, and an efficient (non-default) ctor API are both avaiable in MiscUtil. However, these are only checked at first-usage at runtime. In reality this isn't a big problem - your unit tests should find any... | How do you force constructor signatures and static methods? Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java? You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in which I do find it ... | TITLE:
How do you force constructor signatures and static methods?
QUESTION:
Is there a way of forcing a (child) class to have constructors with particular signatures or particular static methods in C# or Java? You can't obviously use interfaces for this, and I know that it will have a limited usage. One instance in w... | [
"c#",
"java",
"oop",
"language-features",
"language-design"
] | 26 | 9 | 16,113 | 9 | 0 | 2008-10-02T07:42:04.203000 | 2008-10-02T12:31:08.033000 |
161,238 | 161,338 | Problem with propset svn:ignore - possibly Vista related | As I understand it, the command to ignore the content of a directory using SVN is this: svn propset svn:ignore "*" tmp/ This should set the ignore property on the content of the tmp directory, right? In other words, the wildcard is set to be the ignore value on the tmp directory. Trouble is, here's what is happening on... | The command should be working as you expect. The * is getting globbed, which it shouldn't be doing. So, you're running: svn propset svn:ignore [value] app config db doc lib log nbproject public... tmp (since app was the first folder affected, I'm guessing there's another folder before it). 2 things you can try: Specify... | Problem with propset svn:ignore - possibly Vista related As I understand it, the command to ignore the content of a directory using SVN is this: svn propset svn:ignore "*" tmp/ This should set the ignore property on the content of the tmp directory, right? In other words, the wildcard is set to be the ignore value on t... | TITLE:
Problem with propset svn:ignore - possibly Vista related
QUESTION:
As I understand it, the command to ignore the content of a directory using SVN is this: svn propset svn:ignore "*" tmp/ This should set the ignore property on the content of the tmp directory, right? In other words, the wildcard is set to be the... | [
"windows",
"svn",
"version-control"
] | 4 | 5 | 3,875 | 8 | 0 | 2008-10-02T07:44:38.363000 | 2008-10-02T08:26:25.640000 |
161,251 | 161,258 | Compiled, strongly-typed alternative to .NET? | Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET? I thought of using Mono ( http://www.mono-project.com/ ), but I wonder if there are any other alternatives. (If the language and framework are open-source, that's a big plus!) | Not sure what do you mean by saying "compiled". What about Java? Java has a lot of frameworks for web development. For example Tapestry: Tapestry is an open-source framework for creating dynamic, robust, highly scalable web applications in Java. | Compiled, strongly-typed alternative to .NET? Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET? I thought of using Mono ( http://www.mono-project.com/ ), but I wonder if there are any other alternatives. (If the language and framework are open-s... | TITLE:
Compiled, strongly-typed alternative to .NET?
QUESTION:
Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET? I thought of using Mono ( http://www.mono-project.com/ ), but I wonder if there are any other alternatives. (If the language and fr... | [
".net",
"strong-typing",
"compiled"
] | 0 | 8 | 693 | 8 | 0 | 2008-10-02T07:49:32.953000 | 2008-10-02T07:53:23.240000 |
161,252 | 161,333 | bash: start multiple chained commands in background | I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do: forloop { //this part is actually written in perl //call command sequence print `touch.file1.lock; cp bigfile1 /destination; rm.file1.lock;`; } The part between backticks (``) spawns a new shell and executes the command... | I haven't tested this but how about print `(touch.file1.lock; cp bigfile1 /destination; rm.file1.lock;) &`; The parentheses mean execute in a subshell but that shouldn't hurt. | bash: start multiple chained commands in background I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do: forloop { //this part is actually written in perl //call command sequence print `touch.file1.lock; cp bigfile1 /destination; rm.file1.lock;`; } The part between backti... | TITLE:
bash: start multiple chained commands in background
QUESTION:
I'm trying to run some commands in paralel, in background, using bash. Here's what I'm trying to do: forloop { //this part is actually written in perl //call command sequence print `touch.file1.lock; cp bigfile1 /destination; rm.file1.lock;`; } The p... | [
"bash",
"background",
"command"
] | 47 | 32 | 94,207 | 15 | 0 | 2008-10-02T07:50:25.477000 | 2008-10-02T08:24:17.067000 |
161,315 | 161,886 | ruby/ruby on rails memory leak detection | I wrote a small web app using ruby on rails, its main purpose is to upload, store, and display results from xml(files can be up to several MB) files. After running for about 2 months I noticed that the mongrel process was using about 4GB of memory. I did some research on debugging ruby memory leaks and could not find m... | Some tips to find memory leaks in Rails: use the Bleak House plugin implement Scout monitoring specifically the memory usage profiler try another simple memory usage logger The first is a graphical exploration of memory usage by objects in the ObjectSpace. The last two will help you identify specific usage patterns tha... | ruby/ruby on rails memory leak detection I wrote a small web app using ruby on rails, its main purpose is to upload, store, and display results from xml(files can be up to several MB) files. After running for about 2 months I noticed that the mongrel process was using about 4GB of memory. I did some research on debuggi... | TITLE:
ruby/ruby on rails memory leak detection
QUESTION:
I wrote a small web app using ruby on rails, its main purpose is to upload, store, and display results from xml(files can be up to several MB) files. After running for about 2 months I noticed that the mongrel process was using about 4GB of memory. I did some r... | [
"ruby-on-rails",
"ruby",
"memory",
"memory-leaks",
"coding-style"
] | 47 | 40 | 37,394 | 7 | 0 | 2008-10-02T08:15:27.883000 | 2008-10-02T11:53:53.007000 |
161,342 | 161,344 | Is there a PHP library for email address validation? | I need to validate the email address of my users. Unfortunately, making a validator that conforms to standards is hard. Here is an example of a regex expression that tries to conform to the standard. Is there a PHP library (preferably, open-source) that validates an email address? | I found a library in google code: http://code.google.com/p/php-email-address-validation/ Are there any others? | Is there a PHP library for email address validation? I need to validate the email address of my users. Unfortunately, making a validator that conforms to standards is hard. Here is an example of a regex expression that tries to conform to the standard. Is there a PHP library (preferably, open-source) that validates an ... | TITLE:
Is there a PHP library for email address validation?
QUESTION:
I need to validate the email address of my users. Unfortunately, making a validator that conforms to standards is hard. Here is an example of a regex expression that tries to conform to the standard. Is there a PHP library (preferably, open-source) ... | [
"php",
"email",
"open-source",
"email-validation"
] | 8 | 5 | 5,581 | 7 | 0 | 2008-10-02T08:27:54.780000 | 2008-10-02T08:28:21.767000 |
161,343 | 161,970 | How do I prevent ServerXMLHTTP from automatically following redirects (HTTP 303 See Other responses)? | I am using ServerXMLHTTP to perform an HTTP POST. The response returned is a redirect (specifically 303 See Other). ServerXMLHTTP is automatically following this redirect but this is causing an authentication failure as is not propagating the Authorization header of the original request. Is there a way I can prevent th... | ServerXMLHTTP does not support interception of redirects (see Microsoft Knowledge Base Article 308607 ). However WinHTTP can be used in its place and this does contain a configurable 'enable redirects' option. How to disable WinHTTP redirects in VBA: webClient.Option(6) = False In context: Set webClient = CreateObject(... | How do I prevent ServerXMLHTTP from automatically following redirects (HTTP 303 See Other responses)? I am using ServerXMLHTTP to perform an HTTP POST. The response returned is a redirect (specifically 303 See Other). ServerXMLHTTP is automatically following this redirect but this is causing an authentication failure a... | TITLE:
How do I prevent ServerXMLHTTP from automatically following redirects (HTTP 303 See Other responses)?
QUESTION:
I am using ServerXMLHTTP to perform an HTTP POST. The response returned is a redirect (specifically 303 See Other). ServerXMLHTTP is automatically following this redirect but this is causing an authen... | [
"http",
"post",
"redirect",
"winhttp",
"serverxmlhttp"
] | 6 | 7 | 7,229 | 1 | 0 | 2008-10-02T08:28:01.143000 | 2008-10-02T12:16:22.093000 |
161,367 | 161,546 | Library for converting a traceback to its exception? | Just a curiosity: is there an already-coded way to convert a printed traceback back to the exception that generated it?:) Or to a sys.exc_info-like structure? | Converting a traceback to the exception object wouldn't be too hard, given common exception classes (parse the last line for the exception class and the arguments given to it at instantiation.) The traceback object (the third argument returned by sys.exc_info()) is an entirely different matter, though. The traceback ob... | Library for converting a traceback to its exception? Just a curiosity: is there an already-coded way to convert a printed traceback back to the exception that generated it?:) Or to a sys.exc_info-like structure? | TITLE:
Library for converting a traceback to its exception?
QUESTION:
Just a curiosity: is there an already-coded way to convert a printed traceback back to the exception that generated it?:) Or to a sys.exc_info-like structure?
ANSWER:
Converting a traceback to the exception object wouldn't be too hard, given common... | [
"python"
] | 0 | 2 | 189 | 1 | 0 | 2008-10-02T08:35:39.347000 | 2008-10-02T09:48:57.207000 |
161,368 | 163,099 | Pitfalls for converting a .net 2.0 solution to .net 3.5 | We're moving a solution with 20+ projects from.net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. Is there any reasons not to let the Visual Studio wizard convert the solution for us? Is 3.5 fully backwards compatible with 2.0? Is... | We upgrade a rather large solution (20+ projects) from 2005 to 2008 but it was really trivial. Project upgrade only basically. The underlying framework is still the same since both 3.0/3.5 and 2.0 share the same core framework. As was said above, even though you are upgrading, you don't need to change the framework ref... | Pitfalls for converting a .net 2.0 solution to .net 3.5 We're moving a solution with 20+ projects from.net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. Is there any reasons not to let the Visual Studio wizard convert the solutio... | TITLE:
Pitfalls for converting a .net 2.0 solution to .net 3.5
QUESTION:
We're moving a solution with 20+ projects from.net 2.0 to 3.5 and at the same time moving from Visual Studio 2005 to 2008. We're also at the same time switching from MS Entlib 2.0 to 4.0. Is there any reasons not to let the Visual Studio wizard c... | [
".net",
"visual-studio",
"migration",
"enterprise-library"
] | 6 | 6 | 8,147 | 5 | 0 | 2008-10-02T08:35:48.503000 | 2008-10-02T15:44:12.920000 |
161,378 | 161,401 | Hide WinForms TreeView plus sign | I have a WinForms TreeView with one main node and several sub-nodes. How can I hide the + (plus sign) in the main node? | Treview Property:.ShowRootLines = false When ShowRootLines is false, the Plus/Minus sign will not be shown for the root node, but will still show when necessary on child nodes. With the Plus/Minus sign hidden, you might consider executing the Expand() method of the root node once the tree is populated. That will make s... | Hide WinForms TreeView plus sign I have a WinForms TreeView with one main node and several sub-nodes. How can I hide the + (plus sign) in the main node? | TITLE:
Hide WinForms TreeView plus sign
QUESTION:
I have a WinForms TreeView with one main node and several sub-nodes. How can I hide the + (plus sign) in the main node?
ANSWER:
Treview Property:.ShowRootLines = false When ShowRootLines is false, the Plus/Minus sign will not be shown for the root node, but will still... | [
"c#",
"winforms",
"treeview"
] | 5 | 12 | 4,090 | 3 | 0 | 2008-10-02T08:40:53.547000 | 2008-10-02T08:47:45.963000 |
161,398 | 161,719 | Finding a User in Active Directory with the Login Name | I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user"). My "Skeleton" AD Search Functionality looks like this usually: de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchBase), null, null, AuthenticationTypes.Secure); ds = new DirectorySearcher... | You need to set a filter (DirectorySearcher.Filter) something like: "(&(objectCategory=person)(objectClass=user)(sAMAccountName={0}))" Note that you only specify the username (without the domain) for the property sAMAccountName. To search for domain\user, first locate the naming context for the required domain, then se... | Finding a User in Active Directory with the Login Name I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user"). My "Skeleton" AD Search Functionality looks like this usually: de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchBase), null, null, ... | TITLE:
Finding a User in Active Directory with the Login Name
QUESTION:
I'm possibly just stupid, but I'm trying to find a user in Active Directory from C#, using the Login name ("domain\user"). My "Skeleton" AD Search Functionality looks like this usually: de = new DirectoryEntry(string.Format("LDAP://{0}", ADSearchB... | [
"c#",
"active-directory"
] | 7 | 9 | 16,264 | 3 | 0 | 2008-10-02T08:46:09.290000 | 2008-10-02T10:44:17.043000 |
161,399 | 161,411 | Page.Tostring() behaves a bit weird in .net 1.1? | I have a control where I have to check in which page I am, so I can set a certain variable accordingly. string pageName = this.Page.ToString(); switch (pageName) { case "ASP.foo_bar_aspx": doSomething(); break; default: doSomethingElse(); break; } this works fine locally and on some developmentservers, however when I p... | You cant rely on auto generated names. Use types instead, eg: if (Page is FooBar) {... } | Page.Tostring() behaves a bit weird in .net 1.1? I have a control where I have to check in which page I am, so I can set a certain variable accordingly. string pageName = this.Page.ToString(); switch (pageName) { case "ASP.foo_bar_aspx": doSomething(); break; default: doSomethingElse(); break; } this works fine locally... | TITLE:
Page.Tostring() behaves a bit weird in .net 1.1?
QUESTION:
I have a control where I have to check in which page I am, so I can set a certain variable accordingly. string pageName = this.Page.ToString(); switch (pageName) { case "ASP.foo_bar_aspx": doSomething(); break; default: doSomethingElse(); break; } this ... | [
"c#",
".net",
".net-1.1"
] | 0 | 2 | 421 | 2 | 0 | 2008-10-02T08:46:43.877000 | 2008-10-02T08:50:24.100000 |
161,404 | 162,312 | Using DISTINCT inner join in SQL | I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A. My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wondering if it's possible to do INNER JOIN with DISTIN... | I did a test on MS SQL 2005 using the following tables: A 400K rows, B 26K rows and C 450 rows. The estimated query plan indicated that the basic inner join would be 3 times slower than the nested sub-queries, however when actually running the query, the basic inner join was twice as fast as the nested queries, The bas... | Using DISTINCT inner join in SQL I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A. My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wondering if it's poss... | TITLE:
Using DISTINCT inner join in SQL
QUESTION:
I have three tables, A, B, C, where A is many to one B, and B is many to one C. I'd like a list of all C's in A. My tables are something like this: A[id, valueA, lookupB], B[id, valueB, lookupC], C[id, valueC]. I've written a query with two nested SELECTs, but I'm wond... | [
"sql",
"distinct",
"inner-join"
] | 41 | 16 | 403,350 | 4 | 0 | 2008-10-02T08:48:45.323000 | 2008-10-02T13:38:33.113000 |
161,422 | 161,467 | What tools are available for providing a breakdown of the diskspace used by an SQL Server database | I have an MSDE2000 database which appears to be approaching it's 2Gb limit. What tools can I use to determine where all the space is being used? Ideally think TreesizePro for SQL Databases | Whilst the DB size may be, say, 1.5GB, it may only be containing 500MB of data. This will depend on many factors (i.e. auto-growth size, index fill factors and so on). Run sp_spaceused to find out how much is unallocated. You should then be able to use the likes of DBCC SHRINKDB to reclaim some space. To just see the s... | What tools are available for providing a breakdown of the diskspace used by an SQL Server database I have an MSDE2000 database which appears to be approaching it's 2Gb limit. What tools can I use to determine where all the space is being used? Ideally think TreesizePro for SQL Databases | TITLE:
What tools are available for providing a breakdown of the diskspace used by an SQL Server database
QUESTION:
I have an MSDE2000 database which appears to be approaching it's 2Gb limit. What tools can I use to determine where all the space is being used? Ideally think TreesizePro for SQL Databases
ANSWER:
Whils... | [
"sql",
"database",
"size",
"msde2000"
] | 0 | 1 | 287 | 1 | 0 | 2008-10-02T08:54:04.403000 | 2008-10-02T09:12:20.960000 |
161,430 | 161,459 | Unit Testing: Maven or Eclipse? | I am not really familiar with Maven program but I've been using Eclipse for quite a while for Unit testing, code coverage, javadoc generation, code style checking, etc. Probably, the only main thing that I didn't really like about Eclipse is the "compilation errors" that it generates when you are running Eclipse and An... | The company I currently work for has a lot of JUnit tests which are run using Maven (1.x). We've never really had any problem and any tests that fail in maven can be debugged using the remote debugger or in Eclipse on their own. The most important thing is that you take the time and effort to set up the environment pro... | Unit Testing: Maven or Eclipse? I am not really familiar with Maven program but I've been using Eclipse for quite a while for Unit testing, code coverage, javadoc generation, code style checking, etc. Probably, the only main thing that I didn't really like about Eclipse is the "compilation errors" that it generates whe... | TITLE:
Unit Testing: Maven or Eclipse?
QUESTION:
I am not really familiar with Maven program but I've been using Eclipse for quite a while for Unit testing, code coverage, javadoc generation, code style checking, etc. Probably, the only main thing that I didn't really like about Eclipse is the "compilation errors" tha... | [
"eclipse",
"unit-testing"
] | 2 | 1 | 1,094 | 3 | 0 | 2008-10-02T08:56:01.560000 | 2008-10-02T09:06:28.540000 |
161,443 | 184,852 | Use URL segments as action method parameters in Zend Framework | In Kohana/CodeIgniter, I can have a URL in this form: http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3... And then read the parameters in my controller as follows: class MyController { public function method_name($param_A, $param_B, $param_C...) { //... code } } How do you achieve thi... | Update (04/13/2016): The link in my answer below moved and has been fixed. However, just in case it disappears again -- here are a few alternatives that provide some in depth information on this technique, as well as use the original article as reference material: Zend Framework Controller Actions with Function Paramet... | Use URL segments as action method parameters in Zend Framework In Kohana/CodeIgniter, I can have a URL in this form: http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3... And then read the parameters in my controller as follows: class MyController { public function method_name($param_A,... | TITLE:
Use URL segments as action method parameters in Zend Framework
QUESTION:
In Kohana/CodeIgniter, I can have a URL in this form: http://www.name.tld/controller_name/method_name/parameter_1/parameter_2/parameter_3... And then read the parameters in my controller as follows: class MyController { public function met... | [
"php",
"zend-framework"
] | 12 | 6 | 13,028 | 5 | 0 | 2008-10-02T09:00:44.030000 | 2008-10-08T20:54:59.383000 |
161,462 | 161,478 | Java: Writing a DOM to an XML file (formatting issues) | I'm using org.w3c XML API to open an existing XML file. I'm removing some nodes, and I'm adding others instead. The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. While it's true that the XML file is valid, it is very hard for a human to ex... | I'm assuming that you're using a Transformer to do the actual writing (to a StreamResult ). In which case, do this before you call transform: transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); | Java: Writing a DOM to an XML file (formatting issues) I'm using org.w3c XML API to open an existing XML file. I'm removing some nodes, and I'm adding others instead. The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. While it's true that t... | TITLE:
Java: Writing a DOM to an XML file (formatting issues)
QUESTION:
I'm using org.w3c XML API to open an existing XML file. I'm removing some nodes, and I'm adding others instead. The problem is that the new nodes that are added are written one after the other, with no newline and no indentation what so ever. Whil... | [
"java",
"xml",
"formatting",
"pretty-print"
] | 27 | 54 | 34,257 | 3 | 0 | 2008-10-02T09:10:33.070000 | 2008-10-02T09:18:58.823000 |
161,474 | 161,754 | How do you 'clone' WebControls in C# .NET? | My basic question is, in.NET, how do I clone WebControls? I would like to build a custom tag, which can produce multiple copies of its children. Ultimately I intend to build a tag similar to in JSP/Struts. But the first hurdle I have is the ability to duplicate/clone the contents of a control. Consider this rather cont... | What's wrong with using a Repeater and binding a dud data source. It'll duplicate the templated controls and handle the ID creation and all. | How do you 'clone' WebControls in C# .NET? My basic question is, in.NET, how do I clone WebControls? I would like to build a custom tag, which can produce multiple copies of its children. Ultimately I intend to build a tag similar to in JSP/Struts. But the first hurdle I have is the ability to duplicate/clone the conte... | TITLE:
How do you 'clone' WebControls in C# .NET?
QUESTION:
My basic question is, in.NET, how do I clone WebControls? I would like to build a custom tag, which can produce multiple copies of its children. Ultimately I intend to build a tag similar to in JSP/Struts. But the first hurdle I have is the ability to duplica... | [
"c#",
".net",
"asp.net"
] | 3 | 4 | 7,377 | 4 | 0 | 2008-10-02T09:17:57.373000 | 2008-10-02T11:00:46.923000 |
161,477 | 161,484 | Equivalent of typedef in C# | Is there a typedef equivalent in C#, or someway to get some sort of similar behaviour? I've done some googling, but everywhere I look seems to be negative. Currently I have a situation similar to the following: class GenericClass { public event EventHandler MyEvent; public class EventData: EventArgs { /* snip */ } //..... | No, there's no true equivalent of typedef. You can use 'using' directives within one file, e.g. using CustomerList = System.Collections.Generic.List; but that will only impact that source file. In C and C++, my experience is that typedef is usually used within.h files which are included widely - so a single typedef can... | Equivalent of typedef in C# Is there a typedef equivalent in C#, or someway to get some sort of similar behaviour? I've done some googling, but everywhere I look seems to be negative. Currently I have a situation similar to the following: class GenericClass { public event EventHandler MyEvent; public class EventData: E... | TITLE:
Equivalent of typedef in C#
QUESTION:
Is there a typedef equivalent in C#, or someway to get some sort of similar behaviour? I've done some googling, but everywhere I look seems to be negative. Currently I have a situation similar to the following: class GenericClass { public event EventHandler MyEvent; public ... | [
"c#",
"typedef"
] | 392 | 409 | 270,752 | 13 | 0 | 2008-10-02T09:18:29.603000 | 2008-10-02T09:21:15.183000 |
161,485 | 173,783 | Spring MVC : Binding 3 dropdowns to a date property in SimpleFormController | How should I configure the class to bind three dropdowns (date, month, year) to a single Date property so that it works the way it works for 'single request parameter per property' scenario? I guess a should add some custom PropertyEditors by overriding initBinder method. What else? | Aleksey Kudryavtsev: you can override the onBind method in your controller, i which you cant fiddle something special in command object, like dateField = new SimpleFormat("YYYY-mm-dd").parse(this.year + "-" + this.month + "-" this.day); or: Calendar c = Calendar.getInstance(); c.set(year, month, day); dateField = calen... | Spring MVC : Binding 3 dropdowns to a date property in SimpleFormController How should I configure the class to bind three dropdowns (date, month, year) to a single Date property so that it works the way it works for 'single request parameter per property' scenario? I guess a should add some custom PropertyEditors by o... | TITLE:
Spring MVC : Binding 3 dropdowns to a date property in SimpleFormController
QUESTION:
How should I configure the class to bind three dropdowns (date, month, year) to a single Date property so that it works the way it works for 'single request parameter per property' scenario? I guess a should add some custom Pr... | [
"java",
"spring-mvc",
"propertyeditor"
] | 6 | 4 | 6,017 | 4 | 0 | 2008-10-02T09:21:37.677000 | 2008-10-06T10:10:19.077000 |
161,486 | 161,496 | Change language of error messages in ASP.NET | I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it. How can i change what language the error messages in ASP.NET uses? I have no la... | Aren't the error messages dependent on the installed.NET Framework? I.e. you could just uninstall the Swedish language pack for.NET. On the production server, you'll most likely have an English-only Framework anyway. | Change language of error messages in ASP.NET I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it. How can i change what language the... | TITLE:
Change language of error messages in ASP.NET
QUESTION:
I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it. How can i change... | [
"asp.net"
] | 33 | 0 | 24,893 | 5 | 0 | 2008-10-02T09:21:40.360000 | 2008-10-02T09:26:56.197000 |
161,490 | 162,503 | Referenced structure not 'sticking' | I am currently porting a lot of code from an MFC-based application to a DLL for client branding purposes. I've come across an unusual problem. This bit of code is the same in both systems: //... CCommsProperties props;
pController->GetProperties( props ); if (props.handshake!= HANDSHAKE_RTS_CTS) { props.handshake = HA... | After Saratv posting, I decided to ditch what I had done and restart it from working source again. This time however it works...I guess I will never know why passing a structure caused it to change. | Referenced structure not 'sticking' I am currently porting a lot of code from an MFC-based application to a DLL for client branding purposes. I've come across an unusual problem. This bit of code is the same in both systems: //... CCommsProperties props;
pController->GetProperties( props ); if (props.handshake!= HANDS... | TITLE:
Referenced structure not 'sticking'
QUESTION:
I am currently porting a lot of code from an MFC-based application to a DLL for client branding purposes. I've come across an unusual problem. This bit of code is the same in both systems: //... CCommsProperties props;
pController->GetProperties( props ); if (props... | [
"c++",
"mfc"
] | 0 | 0 | 145 | 4 | 0 | 2008-10-02T09:24:13.707000 | 2008-10-02T14:14:41.887000 |
161,492 | 161,650 | Some good resources for learning F# please | I am a.Net programmer(both C# and VB.net), and I want to go into F# area also, but can't find some good online article/pdf to start with. Please guide me through this. | hubFS: THE place for F# hubFS: THE place for F# » Establish skills in F# » Books, Tutorials, links and other resources | Some good resources for learning F# please I am a.Net programmer(both C# and VB.net), and I want to go into F# area also, but can't find some good online article/pdf to start with. Please guide me through this. | TITLE:
Some good resources for learning F# please
QUESTION:
I am a.Net programmer(both C# and VB.net), and I want to go into F# area also, but can't find some good online article/pdf to start with. Please guide me through this.
ANSWER:
hubFS: THE place for F# hubFS: THE place for F# » Establish skills in F# » Books, ... | [
".net",
"f#"
] | 10 | 5 | 933 | 4 | 0 | 2008-10-02T09:24:48.777000 | 2008-10-02T10:18:02.830000 |
161,495 | 161,577 | Is there a nice way of handling multi-line input with GNU readline? | My application has a command line interface, and I'm thinking about using the GNU Readline library to provide history, an editable command line, etc. The hitch is that my commands can be quite long and complex (think SQL) and I'd like to allow users to spread commands over multiple lines to make them more readable in t... | You sure can. You can define options for the '\r' and '\n' values with rl_bind_key('\r', return_func); Your return_func can now decide what to do with those keys. int return_func(int cnt, int key) {... } If you're doing this inside a UNIX terminal, you will need to learn about ANSI terminal codes if you want to move yo... | Is there a nice way of handling multi-line input with GNU readline? My application has a command line interface, and I'm thinking about using the GNU Readline library to provide history, an editable command line, etc. The hitch is that my commands can be quite long and complex (think SQL) and I'd like to allow users to... | TITLE:
Is there a nice way of handling multi-line input with GNU readline?
QUESTION:
My application has a command line interface, and I'm thinking about using the GNU Readline library to provide history, an editable command line, etc. The hitch is that my commands can be quite long and complex (think SQL) and I'd like... | [
"c",
"command-line",
"gnu",
"readline"
] | 21 | 20 | 5,185 | 1 | 0 | 2008-10-02T09:25:21.117000 | 2008-10-02T09:56:11.713000 |
161,510 | 161,607 | 'pass parameter by reference' in Ruby? | In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)? I'm looking for something similar to C#'s ' ref ' keyword. Example: def func(x) x += 1 end
a = 5 func(a) #this should be something like func(ref a) puts a #should read '6' Btw. I know I could just use: a = func(a) | You can accomplish this by explicitly passing in the current binding: def func(x, bdg) eval "#{x} += 1", bdg end
a = 5 func(:a, binding) puts a # => 6 | 'pass parameter by reference' in Ruby? In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)? I'm looking for something similar to C#'s ' ref ' keyword. Example: def func(x) x += 1 end
a = 5 func(a) #this should be something like func(ref a) puts a #should read '6' Btw. I k... | TITLE:
'pass parameter by reference' in Ruby?
QUESTION:
In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)? I'm looking for something similar to C#'s ' ref ' keyword. Example: def func(x) x += 1 end
a = 5 func(a) #this should be something like func(ref a) puts a #should... | [
"ruby",
"parameter-passing",
"pass-by-reference"
] | 30 | 32 | 25,338 | 6 | 0 | 2008-10-02T09:33:16.930000 | 2008-10-02T10:06:23.247000 |
161,513 | 161,523 | WinForms: color DataGridView border | How can I change the color of a DataGridView border when BorderStyle = FixedSingle? | You cannot change the border color, it is system defined. Instead you could try turning off the border setting and then placing the DataGridView inside a Panel. Where the DataGridView is set to Dock.Fill and the Panel has a Padding of 1 pixel on all edges. Then setting the background color of the Panel will show as a b... | WinForms: color DataGridView border How can I change the color of a DataGridView border when BorderStyle = FixedSingle? | TITLE:
WinForms: color DataGridView border
QUESTION:
How can I change the color of a DataGridView border when BorderStyle = FixedSingle?
ANSWER:
You cannot change the border color, it is system defined. Instead you could try turning off the border setting and then placing the DataGridView inside a Panel. Where the Da... | [
"winforms"
] | 14 | 28 | 29,974 | 3 | 0 | 2008-10-02T09:34:00.393000 | 2008-10-02T09:39:28.103000 |
161,524 | 161,569 | Does this query look optimized? | I'm writing a query for an application that needs to list all the products with the number of times they have been purchased. I came up with this and it works, but I am not too sure how optimized it is. My SQL is really rusty due to my heavy usage of ORM's, But in this case a query is a much more elegant solution. Can ... | I'm not sure about the "(SELECT *"... business. This executes (always a good start) and I think is equivalent to what was posted. SELECT products.id, products.long_name AS name, count(oi.order_id) AS sold FROM products LEFT OUTER JOIN orderitems AS oi INNER JOIN orders ON oi.order_id = orders.id AND orders.paid = 1 ON ... | Does this query look optimized? I'm writing a query for an application that needs to list all the products with the number of times they have been purchased. I came up with this and it works, but I am not too sure how optimized it is. My SQL is really rusty due to my heavy usage of ORM's, But in this case a query is a ... | TITLE:
Does this query look optimized?
QUESTION:
I'm writing a query for an application that needs to list all the products with the number of times they have been purchased. I came up with this and it works, but I am not too sure how optimized it is. My SQL is really rusty due to my heavy usage of ORM's, But in this ... | [
"mysql",
"sql",
"optimization"
] | 1 | 3 | 399 | 6 | 0 | 2008-10-02T09:39:33.017000 | 2008-10-02T09:55:32.337000 |
161,529 | 165,624 | is there a "best practice" to access another process in the OS through java? | I've been reading Skype4Java (java api for skype) and noticed they use jni to access the skype client. intuitively I'd assume that there already is a standard library in java that has an OS-sensitive jni implementation to access other processes. I set up to look for one, but couldn't find it. Is there such a library? i... | I think that maybe you need to define what 'access' means to you. IF you are talking about plain old inter-process communication, then sockets or JNI are really your best bet. Garth's comment about using memory mapped files is interesting - I've used MMFs and virtual files for IPC between C applications many times, but... | is there a "best practice" to access another process in the OS through java? I've been reading Skype4Java (java api for skype) and noticed they use jni to access the skype client. intuitively I'd assume that there already is a standard library in java that has an OS-sensitive jni implementation to access other processe... | TITLE:
is there a "best practice" to access another process in the OS through java?
QUESTION:
I've been reading Skype4Java (java api for skype) and noticed they use jni to access the skype client. intuitively I'd assume that there already is a standard library in java that has an OS-sensitive jni implementation to acc... | [
"java",
"operating-system",
"native"
] | 3 | 1 | 540 | 4 | 0 | 2008-10-02T09:41:25.243000 | 2008-10-03T03:49:35.610000 |
161,531 | 161,768 | Submitting a form on a user control by pressing enter on a text field does not work | This seems to be a common problem but I cannot find a solution. I type in my username and password which are in a login control I have created. I then press enter once I've typed in my password and the page just refreshes. It triggers the page load event but not the button on click event. If I press the submit button t... | using your forms default button is correct, but you need to supply it the correct id as it will be rendered to HTML. so you do as Jon said above: But ensure you use the Button name that will be rendered. You can achieve this my making the Button public in your control, or a method that will return it's ClientId. Let's ... | Submitting a form on a user control by pressing enter on a text field does not work This seems to be a common problem but I cannot find a solution. I type in my username and password which are in a login control I have created. I then press enter once I've typed in my password and the page just refreshes. It triggers t... | TITLE:
Submitting a form on a user control by pressing enter on a text field does not work
QUESTION:
This seems to be a common problem but I cannot find a solution. I type in my username and password which are in a login control I have created. I then press enter once I've typed in my password and the page just refres... | [
"c#",
"asp.net",
"user-controls"
] | 2 | 3 | 1,797 | 3 | 0 | 2008-10-02T09:42:31.917000 | 2008-10-02T11:08:00.887000 |
161,539 | 162,639 | What's the purpose of instance methods in Modules without classes? | Imagine the following Ruby Module: module Foo def inst_method puts "Called Foo.inst_method" end def self.class_method puts "Called Foo.class_method" end end Obviously Foo.class_method can be called without any class instances. However, what's happening to Foo.inst_method? Is it possible to call Foo.inst_method without ... | The primary purpose of instance methods within modules is to give that functionality to classes that include it. "Mixing in" a module this way is most commonly used as a method of simulating multiple inheritance, or in other situations where inheritance is not the right paradigm (not quite a perfect "is a" relationship... | What's the purpose of instance methods in Modules without classes? Imagine the following Ruby Module: module Foo def inst_method puts "Called Foo.inst_method" end def self.class_method puts "Called Foo.class_method" end end Obviously Foo.class_method can be called without any class instances. However, what's happening ... | TITLE:
What's the purpose of instance methods in Modules without classes?
QUESTION:
Imagine the following Ruby Module: module Foo def inst_method puts "Called Foo.inst_method" end def self.class_method puts "Called Foo.class_method" end end Obviously Foo.class_method can be called without any class instances. However,... | [
"ruby"
] | 9 | 12 | 2,460 | 2 | 0 | 2008-10-02T09:46:56.510000 | 2008-10-02T14:36:06.797000 |
161,540 | 162,170 | Where is GDB documentation specific to the Cell Linux environment? | Where can documentation be found for the features of GDB, and the debugging process, specific to debugging of Cell Linux programs mixing PPU and SPU code? | Documents at the IBM developerWorks site for Cell can be found here: Cell @developerWorks You sound like you'd want the Programmer's Guide, which goes through debugging Cell applications. Edit to add sample topics: Chapter 3. Debugging Cell BE applications... Debugging PPE code Debugging SPE code... Debugging in the Ce... | Where is GDB documentation specific to the Cell Linux environment? Where can documentation be found for the features of GDB, and the debugging process, specific to debugging of Cell Linux programs mixing PPU and SPU code? | TITLE:
Where is GDB documentation specific to the Cell Linux environment?
QUESTION:
Where can documentation be found for the features of GDB, and the debugging process, specific to debugging of Cell Linux programs mixing PPU and SPU code?
ANSWER:
Documents at the IBM developerWorks site for Cell can be found here: Ce... | [
"c++",
"linux",
"gdb",
"cell"
] | 2 | 2 | 224 | 2 | 0 | 2008-10-02T09:47:00.020000 | 2008-10-02T13:11:27.483000 |
161,556 | 161,565 | Convert IDictionary<string, string> keys to lowercase (C#) | I've got a Method that gets a IDictionary as a parameter. Now I want to provide a method that retrieves the value from this dictionary, but it should be case-invariant. So my solution to this right now was to have a static function that loops through the keys and converts them toLower() like this: private static IDicti... | Yes - pass the Dictionary constructor StringComparer.OrdinalIgnoreCase (or another case-ignoring comparer, depending on your culture-sensitivity needs). | Convert IDictionary<string, string> keys to lowercase (C#) I've got a Method that gets a IDictionary as a parameter. Now I want to provide a method that retrieves the value from this dictionary, but it should be case-invariant. So my solution to this right now was to have a static function that loops through the keys a... | TITLE:
Convert IDictionary<string, string> keys to lowercase (C#)
QUESTION:
I've got a Method that gets a IDictionary as a parameter. Now I want to provide a method that retrieves the value from this dictionary, but it should be case-invariant. So my solution to this right now was to have a static function that loops ... | [
"c#",
".net",
"idictionary"
] | 8 | 39 | 17,909 | 7 | 0 | 2008-10-02T09:51:47.917000 | 2008-10-02T09:54:23.853000 |
161,570 | 161,620 | How do I launch a standalone SWF from within an Adobe AIR application? | I'm completely new to AIR but what I'm trying to do feels like it should be quite easy. I want my AIR app to execute (launch) an SWF in the standalone Flash Player (just like if I were to double click it). Please note that I don't want the AIR app to embed the SWF. Just run it. Can this be done? | The AIR-Runtime is (still) not able to launch external Applications, except Acrobat Reader for PDFs and the default Browser (you can let the browser display the swf). I think you need some of this Frameworks: FluorineFx Aperture Merapi What's the sense behind your plan, why AIR? | How do I launch a standalone SWF from within an Adobe AIR application? I'm completely new to AIR but what I'm trying to do feels like it should be quite easy. I want my AIR app to execute (launch) an SWF in the standalone Flash Player (just like if I were to double click it). Please note that I don't want the AIR app t... | TITLE:
How do I launch a standalone SWF from within an Adobe AIR application?
QUESTION:
I'm completely new to AIR but what I'm trying to do feels like it should be quite easy. I want my AIR app to execute (launch) an SWF in the standalone Flash Player (just like if I were to double click it). Please note that I don't ... | [
"air",
"flash"
] | 1 | 0 | 8,267 | 4 | 0 | 2008-10-02T09:55:39.700000 | 2008-10-02T10:10:02.287000 |
161,591 | 162,383 | Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button? | I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused. In my opinion that would be a usability mistake. For example: In the wizard you may have multiple controls, buttons, check boxes, multiple line controls and they all ... | I think the key is to test. You can't really guess what your users will find comfortable, you have to watch them try it. Especially since there are multiple incompatible standards you could follow, you are just going to have to see if this change works for most users in your audience. | Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button? I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused. In my opinion that would be a usability mistake. For exa... | TITLE:
Usability: Should the ENTER key close a wizard form as OK even if the focus is not set on the OK/DONE button?
QUESTION:
I have the in my opinion odd request to close a wizard form as Done or OK if Enter was pressed on the keyboard even if the OK/DONE button is not focused. In my opinion that would be a usabilit... | [
"forms",
"controls",
"usability"
] | 2 | 1 | 890 | 10 | 0 | 2008-10-02T10:00:58.847000 | 2008-10-02T13:53:49.007000 |
161,614 | 161,625 | How do you get the Class of an Abstract class (Object) in JavaME? | I need to get the Class of an object at runtime. For an non-abstract class I could do something like: public class MyNoneAbstract{ public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass(); But for an abstract class this does NOT work (always gives me Object ) public abstract class MyAbstract{ public s... | You just need MyAbstract.class That expression returns the Class object representing MyAbstract. | How do you get the Class of an Abstract class (Object) in JavaME? I need to get the Class of an object at runtime. For an non-abstract class I could do something like: public class MyNoneAbstract{ public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass(); But for an abstract class this does NOT work (a... | TITLE:
How do you get the Class of an Abstract class (Object) in JavaME?
QUESTION:
I need to get the Class of an object at runtime. For an non-abstract class I could do something like: public class MyNoneAbstract{ public static Class MYNONEABSTRACT_CLASS = new MyNoneAbstract().getClass(); But for an abstract class thi... | [
"java",
"java-me"
] | 2 | 3 | 3,292 | 3 | 0 | 2008-10-02T10:08:56.567000 | 2008-10-02T10:11:01.520000 |
161,631 | 2,683,657 | Why is Apache + Rails is spitting out two status headers for code 500? | I have a rails app that is working fine except for one thing. When I request something that doesn't exist (i.e. /not_a_controller_or_file.txt) and rails throws a "No Route matches..." exception, the response is this (blank line intentional): HTTP/1.1 200 OK Date: Thu, 02 Oct 2008 10:28:02 GMT Content-Type: text/html Co... | This is a fairly old thread, but for what it's worth I found a great resource that includes a detailed description of the problem and the solution. Apparently this bug affects Rails < 2.3 when used with Mongrel. The article that helped me understand the problem & write my own patch. An official Rails bug ticket that in... | Why is Apache + Rails is spitting out two status headers for code 500? I have a rails app that is working fine except for one thing. When I request something that doesn't exist (i.e. /not_a_controller_or_file.txt) and rails throws a "No Route matches..." exception, the response is this (blank line intentional): HTTP/1.... | TITLE:
Why is Apache + Rails is spitting out two status headers for code 500?
QUESTION:
I have a rails app that is working fine except for one thing. When I request something that doesn't exist (i.e. /not_a_controller_or_file.txt) and rails throws a "No Route matches..." exception, the response is this (blank line int... | [
"ruby-on-rails",
"ruby",
"apache",
"http-headers"
] | 4 | 2 | 1,203 | 3 | 0 | 2008-10-02T10:13:19.097000 | 2010-04-21T14:12:50.560000 |
161,633 | 161,787 | Should methods in a Java interface be declared with or without a public access modifier? | Should methods in a Java interface be declared with or without the public access modifier? Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a better convention? Java itself is not consistent in this. See for instance Collection vs. Comparable, or Future... | The JLS makes this clear: It is permitted, but discouraged as a matter of style, to redundantly specify the public and/or abstract modifier for a method declared in an interface. | Should methods in a Java interface be declared with or without a public access modifier? Should methods in a Java interface be declared with or without the public access modifier? Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a better convention? Jav... | TITLE:
Should methods in a Java interface be declared with or without a public access modifier?
QUESTION:
Should methods in a Java interface be declared with or without the public access modifier? Technically it doesn't matter, of course. A class method that implements an interface is always public. But what is a bett... | [
"java",
"interface",
"coding-style",
"public-method"
] | 324 | 356 | 134,414 | 12 | 0 | 2008-10-02T10:13:22.140000 | 2008-10-02T11:20:35.300000 |
161,655 | 161,668 | How can I maintain history of a file that is moved to a directory overwriting a file of the same name | Consider the following subversion directory structure /dir1/file.txt /dir2/file.txt I want to move the file.txt in dir1 to replace the same file in dir2 and ensure that the history for the dir1 file is maintained. I don't care about the history of original dir2 file. Is this possible using subversion commands and not h... | Firstly you should never consider hacking the backend - it negates the point of using SVN in the first place. I don't see why you couldn't just do svn rm /dir2/file.txt svn mv /dir1/file.txt /dir2/file.txt the history of the file will follow it after the move. | How can I maintain history of a file that is moved to a directory overwriting a file of the same name Consider the following subversion directory structure /dir1/file.txt /dir2/file.txt I want to move the file.txt in dir1 to replace the same file in dir2 and ensure that the history for the dir1 file is maintained. I do... | TITLE:
How can I maintain history of a file that is moved to a directory overwriting a file of the same name
QUESTION:
Consider the following subversion directory structure /dir1/file.txt /dir2/file.txt I want to move the file.txt in dir1 to replace the same file in dir2 and ensure that the history for the dir1 file i... | [
"svn",
"overwrite"
] | 1 | 6 | 3,642 | 2 | 0 | 2008-10-02T10:20:08.020000 | 2008-10-02T10:23:42.753000 |
161,666 | 161,674 | SICP Exercise 1.3 request for comments | I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Please comment on how I can improve my solution. (define (big x y) (if (> x y) x y))
(define (p a b c) (cond ((> a b) (+ (square a) (... | Looks ok to me, is there anything specific you want to improve on? You could do something like: (define (max2. l) (lambda () (let ((a (apply max l))) (values a (apply max (remv a l))))))
(define (q a b c) (call-with-values (max2 a b c) (lambda (a b) (+ (* a a) (* b b)))))
(define (skip-min. l) (lambda () (apply value... | SICP Exercise 1.3 request for comments I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Please comment on how I can improve my solution. (define (big x y) (if (> x y) x y))
(define (... | TITLE:
SICP Exercise 1.3 request for comments
QUESTION:
I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Please comment on how I can improve my solution. (define (big x y) (if (> x y... | [
"scheme",
"sicp"
] | 24 | 4 | 5,913 | 17 | 0 | 2008-10-02T10:23:31.070000 | 2008-10-02T10:26:13.467000 |
161,672 | 161,684 | C++ class initialisation containing class variable initialization | I noticed some code of a colleague today that initialized class variables in the initialization. However it was causing a warning, he says because of the order they are in. My question is why is it better to do variable initialization where it currently is and not within the curly brackets? DiagramScene::DiagramScene( ... | It is more efficient (in general). All members of a class are initialised in the constructor, whether you explicitly initialise them or not. If you do not specify an initialiser, then the default constructor of the member is run. If you assign a value in the constructor body, then the assignment operator is called agai... | C++ class initialisation containing class variable initialization I noticed some code of a colleague today that initialized class variables in the initialization. However it was causing a warning, he says because of the order they are in. My question is why is it better to do variable initialization where it currently ... | TITLE:
C++ class initialisation containing class variable initialization
QUESTION:
I noticed some code of a colleague today that initialized class variables in the initialization. However it was causing a warning, he says because of the order they are in. My question is why is it better to do variable initialization w... | [
"c++",
"class",
"coding-style"
] | 13 | 26 | 10,183 | 8 | 0 | 2008-10-02T10:25:29.800000 | 2008-10-02T10:34:12.137000 |
161,676 | 686,458 | Home/End keys in zsh don't work with putty | I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer work. I've been able to solve that adding these lines to my zs... | I found it's a combination: One The ZSH developers do not think that ZSH should define the actions of the Home, End, Del,... keys. Debian and Ubuntu fix this by defining the normal actions the average user would expect in the global /etc/zsh/zshrc file. Following the relevant code (it is the same on Debian and Ubuntu):... | Home/End keys in zsh don't work with putty I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer work. I've been abl... | TITLE:
Home/End keys in zsh don't work with putty
QUESTION:
I'm running zsh as the default shell on a Ubuntu box, and everything works fine using gnome-terminal (which as far as I know emulates xterm). When I login from a windows box via ssh and putty (which also emulates xterm) suddendly the home/end keys no longer w... | [
"terminal",
"keyboard",
"zsh",
"terminal-emulator",
"terminfo"
] | 45 | 85 | 32,100 | 8 | 0 | 2008-10-02T10:30:12.287000 | 2009-03-26T16:15:48.820000 |
161,677 | 162,511 | iCalendar Format (Outlook 2007) | I've got a little problem, I need to be able to have a reoccurring event (forever) that marks the day after the second Tuesday of each month. Your probably thinking, why not just Wednesday of each month. October 2008 is an example, it starts on a Wednesday.:( Really I just need it in Outlook, probably (but not limited ... | The following iCalendar rule should work: RRULE:FREQ=MONTHLY;BYDAY=WE;BYMONTHDAY=9,10,11,12,13,14,15 It should be read as "The first Wednesday of every month that falls on the 9th or later". Edit: To use, create a calendar with a recurring event and export it to.ics. Open the ics file, find the existing RRULE, replace ... | iCalendar Format (Outlook 2007) I've got a little problem, I need to be able to have a reoccurring event (forever) that marks the day after the second Tuesday of each month. Your probably thinking, why not just Wednesday of each month. October 2008 is an example, it starts on a Wednesday.:( Really I just need it in Out... | TITLE:
iCalendar Format (Outlook 2007)
QUESTION:
I've got a little problem, I need to be able to have a reoccurring event (forever) that marks the day after the second Tuesday of each month. Your probably thinking, why not just Wednesday of each month. October 2008 is an example, it starts on a Wednesday.:( Really I j... | [
"date",
"outlook",
"icalendar"
] | 2 | 3 | 2,036 | 1 | 0 | 2008-10-02T10:30:54.033000 | 2008-10-02T14:15:47.877000 |
161,687 | 162,436 | Perl Challenge - Directory Iterator | You sometimes hear it said about Perl that there might be 6 different ways to approach the same problem. Good Perl developers usually have well-reasoned insights for making choices between the various possible methods of implementation. So an example Perl problem: A simple script which recursively iterates through a di... | This sounds like a job for File::Find::Rule: #!/usr/bin/perl use strict; use warnings; use autodie; # Causes built-ins like open to succeed or die. # You can 'use Fatal qw(open)' if autodie is not installed.
use File::Find::Rule; use Getopt::Std;
use constant SECONDS_IN_DAY => 24 * 60 * 60;
our %option = ( m => 1, #... | Perl Challenge - Directory Iterator You sometimes hear it said about Perl that there might be 6 different ways to approach the same problem. Good Perl developers usually have well-reasoned insights for making choices between the various possible methods of implementation. So an example Perl problem: A simple script whi... | TITLE:
Perl Challenge - Directory Iterator
QUESTION:
You sometimes hear it said about Perl that there might be 6 different ways to approach the same problem. Good Perl developers usually have well-reasoned insights for making choices between the various possible methods of implementation. So an example Perl problem: A... | [
"perl",
"code-analysis"
] | 5 | 17 | 2,704 | 11 | 0 | 2008-10-02T10:34:44.133000 | 2008-10-02T14:02:54.130000 |
161,697 | 161,812 | Best Linux Distro for Web Development? | I want to start learning HTML and AJAX using a Linux distribution. Can anyone recommend a distribution that has these requirements: Local Host Admin interface (like PHPmyAdmin) IDE for Javascript... etc | First question - Why do you want to do this on Linux? You can do basic AJAX requests from any platform, simply drop in your JavaScript framework of choice ( JQuery, Prototype, or even MooTools and you can be up and running on your existing development platform. Get familiar with a decent editor, one that will provide b... | Best Linux Distro for Web Development? I want to start learning HTML and AJAX using a Linux distribution. Can anyone recommend a distribution that has these requirements: Local Host Admin interface (like PHPmyAdmin) IDE for Javascript... etc | TITLE:
Best Linux Distro for Web Development?
QUESTION:
I want to start learning HTML and AJAX using a Linux distribution. Can anyone recommend a distribution that has these requirements: Local Host Admin interface (like PHPmyAdmin) IDE for Javascript... etc
ANSWER:
First question - Why do you want to do this on Linu... | [
"ajax",
"linux"
] | 6 | 3 | 15,414 | 7 | 0 | 2008-10-02T10:37:06.357000 | 2008-10-02T11:30:53.327000 |
161,698 | 564,495 | How can I speed up my maven2 build? | I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas? | There are some possibilities to optimize some of the build tasks. For example the 'clean' task can be optimized from minutes to just milliseconds using simple trick - rename 'target' folder instead of delete. To get details how to do it refer to Speed up Maven build. | How can I speed up my maven2 build? I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas? | TITLE:
How can I speed up my maven2 build?
QUESTION:
I'm using a local artifactory to proxy the request, but the build and test phases are still a bit slow. It's not the actual compile and tests that are slow, it's the "warmup" of the maven2 framework. Any ideas?
ANSWER:
There are some possibilities to optimize some ... | [
"maven-2"
] | 35 | 24 | 31,952 | 8 | 0 | 2008-10-02T10:37:23.907000 | 2009-02-19T09:15:12.210000 |
161,704 | 161,761 | Using Generic lists on serviced component | I'm trying to use a generic List as a property on a ServicedComponent class... public class MyCOM: ServicedComponent { public enum MyEnumType { Value1, Value2, Value3 } public List MyList { private set; get; } public MyCOM() { MyList = new List (); } } The code compiles without errors but when I try to use the MyList p... | From MSDN: Interoperating Using Generic Types The COM model does not support the concept of generic types. Consequently, generic types cannot be used directly for COM interop. The answer why generics are not supported is very simple, generics are types that are constructed at runtime, and because of this there's no sta... | Using Generic lists on serviced component I'm trying to use a generic List as a property on a ServicedComponent class... public class MyCOM: ServicedComponent { public enum MyEnumType { Value1, Value2, Value3 } public List MyList { private set; get; } public MyCOM() { MyList = new List (); } } The code compiles without... | TITLE:
Using Generic lists on serviced component
QUESTION:
I'm trying to use a generic List as a property on a ServicedComponent class... public class MyCOM: ServicedComponent { public enum MyEnumType { Value1, Value2, Value3 } public List MyList { private set; get; } public MyCOM() { MyList = new List (); } } The cod... | [
"generics",
"com",
"list"
] | 0 | 2 | 434 | 1 | 0 | 2008-10-02T10:40:34.227000 | 2008-10-02T11:03:09.913000 |
161,712 | 161,862 | What is the size limit of the application object in classic asp? | I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? | An application pool may specifiy the Maximum virtual memory size that a worker process can allocate. This is setting will affect the maximum size of data that the application object can hold. If this setting is not specified (or is larger than 2GB) then another factor will be whether the process is running in 32 Bit mo... | What is the size limit of the application object in classic asp? I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? | TITLE:
What is the size limit of the application object in classic asp?
QUESTION:
I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know?
ANSWER:
An application pool may specifiy the Maximum virtual memory s... | [
"caching",
"asp-classic",
"vbscript"
] | 3 | 3 | 2,654 | 3 | 0 | 2008-10-02T10:42:40.120000 | 2008-10-02T11:43:48.910000 |
161,715 | 161,847 | How to remotely Start/Stop SQLServer services kicking off existing connections? | I know there is already a question about this but my issue is more oriented to remote scenarios. With net start/stop you can specify a /y parameter to bounce users off current sessions but you cannot start/stop remotely. With sc you can start/stop remotely but if the SQLServer instance is being used it won't let you st... | I think the /y just answers Yes to the "Are you sure?" prompt. I'd think that sc could be used as well, though it may time out waiting for the service to stop if there's a lot of inflight transactions. Does it give you any specifics of why it can't stop? Here's a couple of other methods to stop a remote SQL instance. E... | How to remotely Start/Stop SQLServer services kicking off existing connections? I know there is already a question about this but my issue is more oriented to remote scenarios. With net start/stop you can specify a /y parameter to bounce users off current sessions but you cannot start/stop remotely. With sc you can sta... | TITLE:
How to remotely Start/Stop SQLServer services kicking off existing connections?
QUESTION:
I know there is already a question about this but my issue is more oriented to remote scenarios. With net start/stop you can specify a /y parameter to bounce users off current sessions but you cannot start/stop remotely. W... | [
"sql-server",
"winapi"
] | 2 | 4 | 11,017 | 2 | 0 | 2008-10-02T10:43:40.383000 | 2008-10-02T11:40:01.493000 |
161,737 | 161,881 | What are the best ASP.NET performance counters to monitor? | There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers. I am thinking of things like request time, request queue length, active sessions etc. | For a normal (not performance/stress testing) you would be OK with the following: Request Bytes Out Total (very important especially for web (not intranet) applications) Requests Failed Requests/Sec Errors During Execution Errors Unhandled During Execution Session SQL Server Connections Total State Server Sessions Acti... | What are the best ASP.NET performance counters to monitor? There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers. I am thinking of things like request time, req... | TITLE:
What are the best ASP.NET performance counters to monitor?
QUESTION:
There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers. I am thinking of things like... | [
"asp.net",
"testing",
"performancecounter"
] | 28 | 21 | 14,467 | 3 | 0 | 2008-10-02T10:51:36.493000 | 2008-10-02T11:52:49.123000 |
161,747 | 295,808 | How to allow MediaWiki logged user to edit Common.css? | I would like to allow the logged user to edit MediaWiki/Common.css without adding them to the sysop group. I understand that this will allow user to change it to harful ways but it is a closed wiki so that is not a problem. Any solution is acceptable even changing php code:) | Create a new group, add give it "editinterface" privilege. In LocalSettings.php it's done like this: $wgGroupPermissions['mynewgroup']['editinterface'] = true; Then add the user to you new group. Or if you want to give that right to all logged-in users, do it like this: $wgGroupPermissions['user']['editinterface'] = tr... | How to allow MediaWiki logged user to edit Common.css? I would like to allow the logged user to edit MediaWiki/Common.css without adding them to the sysop group. I understand that this will allow user to change it to harful ways but it is a closed wiki so that is not a problem. Any solution is acceptable even changing ... | TITLE:
How to allow MediaWiki logged user to edit Common.css?
QUESTION:
I would like to allow the logged user to edit MediaWiki/Common.css without adding them to the sysop group. I understand that this will allow user to change it to harful ways but it is a closed wiki so that is not a problem. Any solution is accepta... | [
"mediawiki"
] | 6 | 15 | 4,546 | 2 | 0 | 2008-10-02T10:58:45.057000 | 2008-11-17T15:12:17.173000 |
161,755 | 163,212 | How would you implement ant-style patternsets in python to select groups of files? | Ant has a nice way to select groups of files, most handily using ** to indicate a directory tree. E.g. **/CVS/* # All files immediately under a CVS directory. mydir/mysubdir/** # All files recursively under mysubdir More examples can be seen here: http://ant.apache.org/manual/dirtasks.html How would you implement this ... | As soon as you come across a **, you're going to have to recurse through the whole directory structure, so I think at that point, the easiest method is to iterate through the directory with os.walk, construct a path, and then check if it matches the pattern. You can probably convert to a regex by something like: def gl... | How would you implement ant-style patternsets in python to select groups of files? Ant has a nice way to select groups of files, most handily using ** to indicate a directory tree. E.g. **/CVS/* # All files immediately under a CVS directory. mydir/mysubdir/** # All files recursively under mysubdir More examples can be ... | TITLE:
How would you implement ant-style patternsets in python to select groups of files?
QUESTION:
Ant has a nice way to select groups of files, most handily using ** to indicate a directory tree. E.g. **/CVS/* # All files immediately under a CVS directory. mydir/mysubdir/** # All files recursively under mysubdir Mor... | [
"python",
"file",
"ant"
] | 3 | 3 | 3,660 | 6 | 0 | 2008-10-02T11:00:56.160000 | 2008-10-02T16:07:32.973000 |
161,763 | 161,903 | Putting configuration information in a DLL | In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console application. This works fine. However, the console and web application... | Yes, you can and should put the common configuration settings in the config file for your DLL. Just add an app.config file to the DLL project, and make sure you read the configuration settings from inside the DLL. When deployed, your config file needs to have the name "MyDLL.dll.config" (assuming your DLL is named "MyD... | Putting configuration information in a DLL In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console application. This works fin... | TITLE:
Putting configuration information in a DLL
QUESTION:
In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console applicati... | [
".net",
"dll",
"configuration"
] | 9 | 7 | 15,340 | 4 | 0 | 2008-10-02T11:05:02.513000 | 2008-10-02T11:59:26.580000 |
161,782 | 161,833 | What is the best MemCache solution for ASP.NET applications? | What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why? | You could also check out Microsoft Velocity, especially if you're at a place that prefers Microsoft products. | What is the best MemCache solution for ASP.NET applications? What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why? | TITLE:
What is the best MemCache solution for ASP.NET applications?
QUESTION:
What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why?
ANSWER:
You could also check out Microsoft Velocity, especially if you're at a place that prefers Microsoft products. | [
"asp.net",
"scalability",
"memcached"
] | 1 | 1 | 463 | 2 | 0 | 2008-10-02T11:19:14.290000 | 2008-10-02T11:35:36.187000 |
161,783 | 161,792 | Is JavaScript single threaded? If not, how do I get synchronized access to shared data? | I have a web page with DIV s with a mouseover handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly over two items, I sometimes get two bubbles. This should not happen, because the code for showing a pop-up... | Yes, Javascript is single-threaded. Even with browsers like Google Chrome, there is one thread per tab. Without knowing how you are trying to cancel one pop-up from another, it's hard to say what is the cause of your problem. If your DIVs are nested within one another, you may have an event propagation issue. | Is JavaScript single threaded? If not, how do I get synchronized access to shared data? I have a web page with DIV s with a mouseover handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly over two items, I ... | TITLE:
Is JavaScript single threaded? If not, how do I get synchronized access to shared data?
QUESTION:
I have a web page with DIV s with a mouseover handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly ... | [
"javascript",
"multithreading",
"browser",
"dhtml",
"simile"
] | 7 | 10 | 8,630 | 7 | 0 | 2008-10-02T11:19:18.877000 | 2008-10-02T11:23:09.927000 |
161,790 | 162,372 | initialize a const array in a class initializer in C++ | I have the following class in C++: class a { const int b[2]; // other stuff follows
// and here's the constructor a(void); } The question is, how do I initialize b in the initialization list, given that I can't initialize it inside the body of the function of the constructor, because b is const? This doesn't work: a::... | Like the others said, ISO C++ doesn't support that. But you can workaround it. Just use std::vector instead. int* a = new int[N]; // fill a
class C { const std::vector v; public: C():v(a, a+N) {} }; | initialize a const array in a class initializer in C++ I have the following class in C++: class a { const int b[2]; // other stuff follows
// and here's the constructor a(void); } The question is, how do I initialize b in the initialization list, given that I can't initialize it inside the body of the function of the ... | TITLE:
initialize a const array in a class initializer in C++
QUESTION:
I have the following class in C++: class a { const int b[2]; // other stuff follows
// and here's the constructor a(void); } The question is, how do I initialize b in the initialization list, given that I can't initialize it inside the body of th... | [
"c++",
"initialization",
"c++03",
"array-initialize"
] | 83 | 34 | 147,711 | 10 | 0 | 2008-10-02T11:23:08.493000 | 2008-10-02T13:52:14.437000 |
161,794 | 161,854 | How do I send arrays between views in CakePHP | I am not sure if I formulated the question right, but still... I have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way? Is there some helper->set() method like or I hav... | First of all you cannot send data from one view to another in the manner you are speaking. Each of those calls would be a separate request and this means that it goes out of the framework and then in again. This means that the framework will be built and tear down between calls, making impossible to pass the data betwe... | How do I send arrays between views in CakePHP I am not sure if I formulated the question right, but still... I have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way? Is... | TITLE:
How do I send arrays between views in CakePHP
QUESTION:
I am not sure if I formulated the question right, but still... I have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How i... | [
"arrays",
"cakephp",
"parameters"
] | 0 | 0 | 6,067 | 4 | 0 | 2008-10-02T11:23:22.783000 | 2008-10-02T11:41:48.887000 |
161,797 | 161,818 | Is one's complement a real-world issue, or just a historical one? | Another question asked about determining odd/evenness in C, and the idiomatic (x & 1) approach was correctly flagged as broken for one's complement-based systems, which the C standard allows for. Do systems really exist in the 'real world' outside of computer museums? I've been coding since the 1970's and I'm pretty su... | This all comes down to knowing your roots. Yes, this is technically an old technique and I would probably do what other people suggested in that question and use the modulo (%) operator to determine odd or even. But understanding what a 1s complement (or 2s complement) is always a good thing to know. Whether or not you... | Is one's complement a real-world issue, or just a historical one? Another question asked about determining odd/evenness in C, and the idiomatic (x & 1) approach was correctly flagged as broken for one's complement-based systems, which the C standard allows for. Do systems really exist in the 'real world' outside of com... | TITLE:
Is one's complement a real-world issue, or just a historical one?
QUESTION:
Another question asked about determining odd/evenness in C, and the idiomatic (x & 1) approach was correctly flagged as broken for one's complement-based systems, which the C standard allows for. Do systems really exist in the 'real wor... | [
"c",
"cpu-architecture",
"numeric",
"history",
"ones-complement"
] | 38 | 13 | 8,244 | 9 | 0 | 2008-10-02T11:24:07.930000 | 2008-10-02T11:32:00.157000 |
161,813 | 163,659 | How do I resolve merge conflicts in a Git repository? | How do I resolve merge conflicts in my Git repository? | Try: git mergetool It opens a GUI that steps you through each conflict, and you get to choose how to merge. Sometimes it requires a bit of hand editing afterwards, but usually it's enough by itself. It is much better than doing the whole thing by hand certainly. As per Josh Glover's comment: [This command] doesn't nece... | How do I resolve merge conflicts in a Git repository? How do I resolve merge conflicts in my Git repository? | TITLE:
How do I resolve merge conflicts in a Git repository?
QUESTION:
How do I resolve merge conflicts in my Git repository?
ANSWER:
Try: git mergetool It opens a GUI that steps you through each conflict, and you get to choose how to merge. Sometimes it requires a bit of hand editing afterwards, but usually it's eno... | [
"git",
"git-merge",
"merge-conflict-resolution",
"git-merge-conflict"
] | 5,367 | 3,398 | 3,537,167 | 36 | 0 | 2008-10-02T11:31:05.777000 | 2008-10-02T17:50:25.100000 |
161,822 | 161,834 | How to indicate that a method was unsuccessful | I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For CalculateListOfPoints, which returns a generic List, I could return an empty list and require the caller to check this; however Point is a value ty... | Personally, I think I'd use the same idea as TryParse(): using an out parameter to output the real value, and returning a boolean indicating whether the call was successful or not public bool CalculatePoint(... out Point result); I am not a fan of using exception for "normal" behaviors (if you expect the function not t... | How to indicate that a method was unsuccessful I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For CalculateListOfPoints, which returns a generic List, I could return an empty list and require the ca... | TITLE:
How to indicate that a method was unsuccessful
QUESTION:
I have several similar methods, say eg. CalculatePoint(...) and CalculateListOfPoints(...). Occasionally, they may not succeed, and need to indicate this to the caller. For CalculateListOfPoints, which returns a generic List, I could return an empty list ... | [
"c#",
"methods",
"return-value"
] | 13 | 24 | 1,519 | 16 | 0 | 2008-10-02T11:32:56.817000 | 2008-10-02T11:35:56.090000 |
161,828 | 536,786 | Setting data type when reading XML data in SAS | I need to control the data type when reading XML data in SAS. The XML data are written and accessed using the XML libname engine in SAS. SAS seems to guess the data type based on the contents of a column: If I write "20081002" to my XML data in a character column, it will be read back in as a numerical variable. An exa... | Take a look at the SAS XML Mapper. It allows you to create a map to read (and wrte in 9.2) XML files and specifying column attributes. If this is your XML file: This is obviously text 20081002 42 42
You could create a MAP like this: /TABLE/DATA_TYPE_TEST /TABLE/DATA_TYPE_TEST/text_char character string 22 /TABLE/DATA_... | Setting data type when reading XML data in SAS I need to control the data type when reading XML data in SAS. The XML data are written and accessed using the XML libname engine in SAS. SAS seems to guess the data type based on the contents of a column: If I write "20081002" to my XML data in a character column, it will ... | TITLE:
Setting data type when reading XML data in SAS
QUESTION:
I need to control the data type when reading XML data in SAS. The XML data are written and accessed using the XML libname engine in SAS. SAS seems to guess the data type based on the contents of a column: If I write "20081002" to my XML data in a characte... | [
"xml",
"types",
"sas"
] | 2 | 6 | 3,419 | 2 | 0 | 2008-10-02T11:34:50.477000 | 2009-02-11T13:36:48.887000 |
161,838 | 169,005 | Is it possible to unlisten on a socket? | Is it possible to unlisten on a socket after you have called listen(fd, backlog)? Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it (or worse, some nefarious program could bind... | Some socket libraries allow you to specifically reject incoming connections. For example: GNU's CommonC++: TCPsocket Class has a reject method. BSD Sockets doesn't have this functionality. You can accept the connection and then immediately close it, while leaving the socket open: while (running) {
int i32ConnectFD = a... | Is it possible to unlisten on a socket? Is it possible to unlisten on a socket after you have called listen(fd, backlog)? Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from reopening it (or ... | TITLE:
Is it possible to unlisten on a socket?
QUESTION:
Is it possible to unlisten on a socket after you have called listen(fd, backlog)? Edit: My mistake for not making myself clear. I'd like to be able to temporarily unlisten on the socket. Calling close() will leave the socket in the M2LS state and prevent me from... | [
"linux",
"posix",
"sockets",
"listen"
] | 14 | 5 | 17,780 | 11 | 0 | 2008-10-02T11:36:59.613000 | 2008-10-03T21:40:38.797000 |
161,859 | 161,888 | Using Quotes within getRuntime().exec | I'd like to invoke bash using a string as input. Something like: sh -l -c "./foo" I'd like to do this from Java. Unfortunately, when I try to invoke the command using getRuntime().exec, I get the following error: foo": -c: line 0: unexpected EOF while looking for matching `"'
foo": -c: line 1: syntax error: unexpected... | Use this: Runtime.getRuntime().exec(new String[] {"sh", "-l", "-c", "./foo"}); Main point: don't put the double quotes in. That's only used when writing a command-line in the shell! e.g., echo "Hello, world!" (as typed in the shell) gets translated to: Runtime.getRuntime().exec(new String[] {"echo", "Hello, world!"}); ... | Using Quotes within getRuntime().exec I'd like to invoke bash using a string as input. Something like: sh -l -c "./foo" I'd like to do this from Java. Unfortunately, when I try to invoke the command using getRuntime().exec, I get the following error: foo": -c: line 0: unexpected EOF while looking for matching `"'
foo"... | TITLE:
Using Quotes within getRuntime().exec
QUESTION:
I'd like to invoke bash using a string as input. Something like: sh -l -c "./foo" I'd like to do this from Java. Unfortunately, when I try to invoke the command using getRuntime().exec, I get the following error: foo": -c: line 0: unexpected EOF while looking for ... | [
"java",
"exec",
"runtime.exec"
] | 26 | 53 | 21,951 | 6 | 0 | 2008-10-02T11:43:15.760000 | 2008-10-02T11:54:21.960000 |
161,873 | 161,935 | K & R Exercise: My Code Works, But Feels Stinky; Advice for Cleanup? | I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial. My issue was exercise 1-18. The exercise is to: Write a program to remove trailing blanks and tabs from line of input, an... | There is no reason to have two buffers, you can trim the input line in place int trim(char line[]) { int len = 0; for (len = 0; line[len]!= 0; ++len);
while (len > 0 && line[len-1] == ' ' && line[len-1] == '\t' && line[len-1] == '\n') line[--len] = 0;
return len; } By returning the line length, you can eliminate blan... | K & R Exercise: My Code Works, But Feels Stinky; Advice for Cleanup? I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial. My issue was exercise 1-18. The exercise is to: Writ... | TITLE:
K & R Exercise: My Code Works, But Feels Stinky; Advice for Cleanup?
QUESTION:
I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial. My issue was exercise 1-18. The ex... | [
"c",
"kernighan-and-ritchie"
] | 8 | 5 | 2,217 | 9 | 0 | 2008-10-02T11:49:42.937000 | 2008-10-02T12:06:31.930000 |
161,879 | 161,899 | Parenthesis surrounding return values in C | Quite often in ANSI C code I can see parenthesis sorrounding a single return value. Like this:- int foo(int x) { if (x) return (-1); else return (0); } Why use () around the return value in those cases? Any ideas? I can see no reason for that. | There isn't really a reason... it's just an old convention. Editor's note: There are historical reasons. To save space, programmers would often do the final math in the return line instead of on its own line and the parens are mostly there to make it easier to see that it is a single statement that is returned, like th... | Parenthesis surrounding return values in C Quite often in ANSI C code I can see parenthesis sorrounding a single return value. Like this:- int foo(int x) { if (x) return (-1); else return (0); } Why use () around the return value in those cases? Any ideas? I can see no reason for that. | TITLE:
Parenthesis surrounding return values in C
QUESTION:
Quite often in ANSI C code I can see parenthesis sorrounding a single return value. Like this:- int foo(int x) { if (x) return (-1); else return (0); } Why use () around the return value in those cases? Any ideas? I can see no reason for that.
ANSWER:
There ... | [
"c",
"syntax",
"coding-style"
] | 90 | 64 | 35,314 | 11 | 0 | 2008-10-02T11:52:25.397000 | 2008-10-02T11:56:37.710000 |
161,885 | 162,792 | How to evict file from system cache on Linux? | When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux? Clarification: If possible, the solution should not require root privileges. | Ha, I have the answer: #include #include int main(int argc, char *argv[]) { int fd; fd = open(argv[1], O_RDONLY); fdatasync(fd); posix_fadvise(fd, 0,0,POSIX_FADV_DONTNEED); close(fd); return 0; } This is from http://insights.oetiker.ch/linux/fadvise.html | How to evict file from system cache on Linux? When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux? Clarification: If possible, the solution should not requir... | TITLE:
How to evict file from system cache on Linux?
QUESTION:
When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux? Clarification: If possible, the solution... | [
"linux",
"performance",
"testing",
"caching",
"file-io"
] | 6 | 10 | 4,633 | 5 | 0 | 2008-10-02T11:53:52.350000 | 2008-10-02T14:58:52.157000 |
161,890 | 165,983 | How do you track the time of replicated rows for Subscribers in SQL Server 2005? | The basic problem is like this: A subscriber has successfully replicated a row from the publisher, using transactional replication. Now, how do we keep track the time of this row being last successfully replicated? A friend has suggested the following solution, which he used for his SQL Server 2000: 1) Add a datetime c... | I'd do exactly what your friend suggested. That way, only calls to the replication procedure would update the timestamp. The problem with this approach is that you need a write lock, but I don' see any other practical way. You could otherwise use a trigger that fires when you fetch the row (don't quote me on that, I ve... | How do you track the time of replicated rows for Subscribers in SQL Server 2005? The basic problem is like this: A subscriber has successfully replicated a row from the publisher, using transactional replication. Now, how do we keep track the time of this row being last successfully replicated? A friend has suggested t... | TITLE:
How do you track the time of replicated rows for Subscribers in SQL Server 2005?
QUESTION:
The basic problem is like this: A subscriber has successfully replicated a row from the publisher, using transactional replication. Now, how do we keep track the time of this row being last successfully replicated? A frie... | [
"sql-server",
"sql-server-2005",
"replication"
] | 3 | 0 | 2,589 | 4 | 0 | 2008-10-02T11:54:25.453000 | 2008-10-03T07:22:17.517000 |
161,902 | 161,908 | Can I run ASP and ASP.NET pages in the same web app simultaneously? | In the process of updating a web app from ASP to ASP.NET, I want to insert one of the new files into the old app to test something - is this an offence against reason? | Yes but they will not share the session memory. I have an old ASP website and have replaced the main page with a asp.net page with a masterpage/content page setup. I use asp.net to send emails instead of the old asp/com components. One work-a-round the session sharing issue is to create a bridge page that does an excha... | Can I run ASP and ASP.NET pages in the same web app simultaneously? In the process of updating a web app from ASP to ASP.NET, I want to insert one of the new files into the old app to test something - is this an offence against reason? | TITLE:
Can I run ASP and ASP.NET pages in the same web app simultaneously?
QUESTION:
In the process of updating a web app from ASP to ASP.NET, I want to insert one of the new files into the old app to test something - is this an offence against reason?
ANSWER:
Yes but they will not share the session memory. I have an... | [
"asp.net",
"web-applications",
"asp-classic"
] | 4 | 1 | 8,436 | 6 | 0 | 2008-10-02T11:58:12.357000 | 2008-10-02T12:00:28.107000 |
161,937 | 169,831 | Howto deactivate caching inside a jsp page | I understand there is a HTTP response header directive to disable page caching: Cache-Control:no-cache I can modify the header by "hand": <%response.addHeader("Cache-Control","no-cache");%> But is there a "nice" way to make the JSP interpreter return this header line in the server response? (I checked the <%@page...%> ... | Also add response.addHeader("Expires","-1"); response.addHeader("Pragma","no-cache"); to your headers and give that a shot. | Howto deactivate caching inside a jsp page I understand there is a HTTP response header directive to disable page caching: Cache-Control:no-cache I can modify the header by "hand": <%response.addHeader("Cache-Control","no-cache");%> But is there a "nice" way to make the JSP interpreter return this header line in the se... | TITLE:
Howto deactivate caching inside a jsp page
QUESTION:
I understand there is a HTTP response header directive to disable page caching: Cache-Control:no-cache I can modify the header by "hand": <%response.addHeader("Cache-Control","no-cache");%> But is there a "nice" way to make the JSP interpreter return this hea... | [
"http",
"jsp",
"jstl",
"cache-control",
"no-cache"
] | 4 | 3 | 12,615 | 4 | 0 | 2008-10-02T12:07:28.653000 | 2008-10-04T05:54:20.123000 |
161,942 | 161,965 | How slow are .NET exceptions? | I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issue. I've read numerous blogs, articles, and posts... | I'm on the "not slow" side - or more precisely "not slow enough to make it worth avoiding them in normal use". I've written two short articles about this. There are criticisms of the benchmark aspect, which are mostly down to "in real life there'd be more stack to go through, so you'd blow the cache etc" - but using er... | How slow are .NET exceptions? I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issue. I've read numer... | TITLE:
How slow are .NET exceptions?
QUESTION:
I don't want a discussion about when to and not to throw exceptions. I wish to resolve a simple issue. 99% of the time the argument for not throwing exceptions revolves around them being slow while the other side claims (with benchmark test) that the speed is not the issu... | [
"c#",
".net",
"performance",
"exception"
] | 153 | 218 | 34,703 | 14 | 0 | 2008-10-02T12:09:10.147000 | 2008-10-02T12:15:25.187000 |
161,960 | 162,035 | If I stop a long running query, does it rollback? | A query that is used to loop through 17 millions records to remove duplicates has been running now for about 16 hours and I wanted to know if the query is stopped right now if it will finalize the delete statements or if it has been deleting while running this query? Indeed, if I do stop it, does it finalize the delete... | no, sql server will not roll back the deletes it has already performed if you stop query execution. oracle requires an explicit committal of action queries or the data gets rolled back, but not mssql. with sql server it will not roll back unless you are specifically running in the context of a transaction and you rollb... | If I stop a long running query, does it rollback? A query that is used to loop through 17 millions records to remove duplicates has been running now for about 16 hours and I wanted to know if the query is stopped right now if it will finalize the delete statements or if it has been deleting while running this query? In... | TITLE:
If I stop a long running query, does it rollback?
QUESTION:
A query that is used to loop through 17 millions records to remove duplicates has been running now for about 16 hours and I wanted to know if the query is stopped right now if it will finalize the delete statements or if it has been deleting while runn... | [
"sql",
"sql-server",
"duplicate-data"
] | 27 | 30 | 62,631 | 12 | 0 | 2008-10-02T12:13:49.587000 | 2008-10-02T12:36:19.457000 |
161,962 | 177,642 | Visual Studio 2005: All projects in solution explorer expanded on first opening of solution | Is any way to tell the solution explorer of Visual Studio 2005 not to expand all projects on the first opening of the solutio after svn-checkout? Edit: Thanks for pointing out the PowerCommands. As I am using Visual Studio 2005 with.Net 2.0 it does not work for me. Are there similar tools available for VS2005? | Re: something like PowerPack: DPack has a solution collapse option too, and it works with 2005. I configure it to collapse "Top Items Only" because "All Projects and Files" works too slowly and flickery for me. | Visual Studio 2005: All projects in solution explorer expanded on first opening of solution Is any way to tell the solution explorer of Visual Studio 2005 not to expand all projects on the first opening of the solutio after svn-checkout? Edit: Thanks for pointing out the PowerCommands. As I am using Visual Studio 2005 ... | TITLE:
Visual Studio 2005: All projects in solution explorer expanded on first opening of solution
QUESTION:
Is any way to tell the solution explorer of Visual Studio 2005 not to expand all projects on the first opening of the solutio after svn-checkout? Edit: Thanks for pointing out the PowerCommands. As I am using V... | [
"visual-studio"
] | 4 | 1 | 2,784 | 3 | 0 | 2008-10-02T12:14:12.973000 | 2008-10-07T08:44:30.247000 |
161,975 | 162,003 | Refactoring Code: When to do what? | Ever since I started using.NET, I've just been creating Helper classes or Partial classes to keep code located and contained in their own little containers, etc. What I'm looking to know is the best practices for making ones code as clean and polished as it possibly could be. Obviously clean code is subjective, but I'm... | A real eye-opener to me was Refactoring: Improving the Design of Existing Code: With proper training a skilled system designer can take a bad design and rework it into well-designed, robust code. In this book, Martin Fowler shows you where opportunities for refactoring typically can be found, and how to go about rework... | Refactoring Code: When to do what? Ever since I started using.NET, I've just been creating Helper classes or Partial classes to keep code located and contained in their own little containers, etc. What I'm looking to know is the best practices for making ones code as clean and polished as it possibly could be. Obviousl... | TITLE:
Refactoring Code: When to do what?
QUESTION:
Ever since I started using.NET, I've just been creating Helper classes or Partial classes to keep code located and contained in their own little containers, etc. What I'm looking to know is the best practices for making ones code as clean and polished as it possibly ... | [
"c#",
"vb.net",
"refactoring",
"coding-style"
] | 22 | 23 | 15,624 | 10 | 0 | 2008-10-02T12:19:00.653000 | 2008-10-02T12:26:25.080000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.