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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
202,013 | 227,218 | ClickOnce and IsolatedStorage | The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine:) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each versio... | You need to use application scoped, rather than domain scoped, isolated storage. This can be done by using one of IsolatedStorageFileStream's overloaded constructors. Example: using System.IO; using System.IO.IsolatedStorage;...
IsolatedStorageFile appScope = IsolatedStorageFile.GetUserStoreForApplication(); using(Iso... | ClickOnce and IsolatedStorage The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine:) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their prefer... | TITLE:
ClickOnce and IsolatedStorage
QUESTION:
The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine:) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to ... | [
"c#",
"winforms",
".net-2.0",
"clickonce",
"isolatedstorage"
] | 10 | 19 | 5,567 | 4 | 0 | 2008-10-14T17:08:07.907000 | 2008-10-22T19:32:03.277000 |
202,031 | 202,064 | Using SHFileOperation within a Windows service | It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever? | I would say, not it's not appropriate or advisable. Most of the shell32 APIs were written with a basic understanding that they would be used in interactive processes. I don't think there is any way you can guarantee that SHFileOperation will never display a UI component. In fact, if you look at IFileOperation (which is... | Using SHFileOperation within a Windows service It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever? | TITLE:
Using SHFileOperation within a Windows service
QUESTION:
It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever?
ANSWER... | [
"windows",
"winapi",
"service",
"shell32"
] | 2 | 3 | 2,822 | 4 | 0 | 2008-10-14T17:13:20.393000 | 2008-10-14T17:24:21.040000 |
202,049 | 533,257 | Formatting XSD scheme for peer review | I designed a data model which is represented by an XSD scheme. The data model also provides the types that are being used as web service parameters in a WSDL descriptor. I would like to send the XSD scheme around and ask the people involved to peer review the data model. What tool or presentation method would you sugge... | I know the following tools that generate documentation from XML Schema files (XSD): xs3p XSLT stylesheet that generates single XHTML from XSD xsddoc free / LGPL mainly XSLT based JavaDoc like output see xsddoc examples xnsdoc improved commercial version of xsddoc free for personal/educational use JavaDoc like output XS... | Formatting XSD scheme for peer review I designed a data model which is represented by an XSD scheme. The data model also provides the types that are being used as web service parameters in a WSDL descriptor. I would like to send the XSD scheme around and ask the people involved to peer review the data model. What tool ... | TITLE:
Formatting XSD scheme for peer review
QUESTION:
I designed a data model which is represented by an XSD scheme. The data model also provides the types that are being used as web service parameters in a WSDL descriptor. I would like to send the XSD scheme around and ask the people involved to peer review the data... | [
"xsd",
"datamodel",
"review"
] | 11 | 21 | 9,066 | 5 | 0 | 2008-10-14T17:17:45.657000 | 2009-02-10T17:09:51.470000 |
202,060 | 202,093 | How do I set up a timer to prevent overlapping ajax calls? | I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works: $(function() { // Wire up search textbox $('input.Search').bind("keyup", update); });
... | Instead of calling update() directly, call a wrapper that checks to see if there are any pending delayed updates: $('input.Search').bind("keyup", delayedUpdate);
function delayedUpdate() { if (updatePending) { clearTimeout(updatePending); }
updatePending = setTimeout(update, 250); }
function update() { updatePending... | How do I set up a timer to prevent overlapping ajax calls? I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works: $(function() { // Wire up se... | TITLE:
How do I set up a timer to prevent overlapping ajax calls?
QUESTION:
I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works: $(function... | [
"javascript",
"jquery"
] | 1 | 3 | 1,232 | 3 | 0 | 2008-10-14T17:22:42.387000 | 2008-10-14T17:33:08.277000 |
202,067 | 202,086 | Force ASP.NET textbox to display currency with $ sign | Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand? Examples: 10.23 becomes $10.23 $1.45 stays $1.45 10.a raises error due to not being a valid number I have a RegularExpressionValidator that is verifying the number is valid, but I don'... | The ASP.NET MaskedEdit control from the AJAX Control Toolkit can accomplish what you're asking for. | Force ASP.NET textbox to display currency with $ sign Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand? Examples: 10.23 becomes $10.23 $1.45 stays $1.45 10.a raises error due to not being a valid number I have a RegularExpressionValid... | TITLE:
Force ASP.NET textbox to display currency with $ sign
QUESTION:
Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand? Examples: 10.23 becomes $10.23 $1.45 stays $1.45 10.a raises error due to not being a valid number I have a Regu... | [
"asp.net",
"formatting",
"textbox",
"currency"
] | 4 | 10 | 31,262 | 6 | 0 | 2008-10-14T17:24:58.917000 | 2008-10-14T17:30:23.883000 |
202,073 | 202,099 | ASP.Net and GetType() | I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display: Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetType()); } In my project structure I have... | If your code-beside looks like this: public partial class _Login: BasePage { /*... */ } Then you would get the Type object for it with typeof(_Login). To get the type dynamically, you can find it recursively: Type GetCodeBehindType() { return getCodeBehindTypeRecursive(this.GetType()); }
Type getCodeBehindTypeRecursiv... | ASP.Net and GetType() I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display: Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetType()); } In my pr... | TITLE:
ASP.Net and GetType()
QUESTION:
I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display: Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetT... | [
"c#",
"asp.net",
"reflection",
"resourcemanager"
] | 6 | 6 | 9,560 | 4 | 0 | 2008-10-14T17:26:29.553000 | 2008-10-14T17:35:41.143000 |
202,107 | 202,109 | Good Examples of Hungarian Notation? | This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these. Edit: I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel gives in his article (as per my answer). | The now classic article, as mentioned in other Hungarian posts, is the one from Joel's site: http://www.joelonsoftware.com/articles/Wrong.html | Good Examples of Hungarian Notation? This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these. Edit: I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel gives in... | TITLE:
Good Examples of Hungarian Notation?
QUESTION:
This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these. Edit: I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, ... | [
"naming-conventions",
"hungarian-notation"
] | 17 | 29 | 30,004 | 22 | 0 | 2008-10-14T17:37:59.267000 | 2008-10-14T17:38:38.640000 |
202,116 | 202,170 | How Do You Programmatically Set the Hardware Clock on Linux? | Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time. Linux systems typically sync the hardware clock with the system time at shutdown and at periodic intervals. However, if the machine gets power... | Check out the rtc man-page for details, but if you are logged in as root, something like this: #include #include struct rtc_time { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; /* unused */ int tm_yday; /* unused */ int tm_isdst;/* unused */ };
int fd; struct rtc_time rt; /* s... | How Do You Programmatically Set the Hardware Clock on Linux? Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time. Linux systems typically sync the hardware clock with the system time at shutdown ... | TITLE:
How Do You Programmatically Set the Hardware Clock on Linux?
QUESTION:
Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time. Linux systems typically sync the hardware clock with the system... | [
"c",
"linux",
"time",
"clock",
"hwclock"
] | 15 | 19 | 29,875 | 5 | 0 | 2008-10-14T17:43:06.493000 | 2008-10-14T17:59:43.810000 |
202,124 | 1,009,590 | getter for boolean properties with JAXB | I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge: Generate getXXX() rather than/additionally to the isXXX() Method. I need to generate this methods cause... | BooleanGetter XJC plugin for JAXB is available at http://fisheye5.cenqua.com/browse/~raw,r=1.1/jaxb2-commons/www/boolean-getter/index.html If you are working with JavaSE 6 then it needs to be re-packaged - see http://forums.java.net/jive/message.jspa?messageID=319434 Use in ant build like below: HTH | getter for boolean properties with JAXB I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge: Generate getXXX() rather than/additionally to the isXXX() Metho... | TITLE:
getter for boolean properties with JAXB
QUESTION:
I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge: Generate getXXX() rather than/additionally to... | [
"xml",
"xsd",
"jaxb",
"jax-ws"
] | 5 | 1 | 12,420 | 3 | 0 | 2008-10-14T17:44:26.570000 | 2009-06-17T21:25:39.773000 |
202,130 | 202,372 | Run a XNA compiled game from DVD or CD on XBOX 360? | Is it possible to run a XNA game compiled for XBOX 360 from a DVD or CD, or does it have to be copied onto the HD? Is it possible to include a library which is not a part of the.net compact framework in a XBOX 360 project? | XNA games must be copied to the 360 using the XNA game launcher. They can not be loaded off a CD/DVD. You can use other libraries on the 360, but they have to be compiled using the XBox's.net libraries. So unless you have access to source code, or are willing to decompile and change all references to framework librarie... | Run a XNA compiled game from DVD or CD on XBOX 360? Is it possible to run a XNA game compiled for XBOX 360 from a DVD or CD, or does it have to be copied onto the HD? Is it possible to include a library which is not a part of the.net compact framework in a XBOX 360 project? | TITLE:
Run a XNA compiled game from DVD or CD on XBOX 360?
QUESTION:
Is it possible to run a XNA game compiled for XBOX 360 from a DVD or CD, or does it have to be copied onto the HD? Is it possible to include a library which is not a part of the.net compact framework in a XBOX 360 project?
ANSWER:
XNA games must be ... | [
"xna",
"xbox360"
] | 4 | 5 | 1,515 | 1 | 0 | 2008-10-14T17:46:13.853000 | 2008-10-14T18:54:43.107000 |
202,131 | 202,981 | Generate JavaScript objects out of Django Models | I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions get(), save(), all() and count() available to the client. Additionally, it would be great to have the field list of the model already a... | It sounds like you're looking for a complete JavaScript interface to the model and queryset APIs. I can't imagine that this would have ever been done or even be a simple task. Not only would you need to somehow generate JavaScript instances of models (much more than JSON serialisation provides, since you also want the ... | Generate JavaScript objects out of Django Models I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions get(), save(), all() and count() available to the client. Additionally, it would be gr... | TITLE:
Generate JavaScript objects out of Django Models
QUESTION:
I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions get(), save(), all() and count() available to the client. Additional... | [
"javascript",
"django",
"django-models",
"code-generation"
] | 5 | 8 | 2,476 | 5 | 0 | 2008-10-14T17:46:15.957000 | 2008-10-14T21:48:16.813000 |
202,144 | 202,160 | Merge code changes without true source control | We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence). Right now, we're all just working off of the files on a shared lan drive. Obviously, this causes some problems. But we think it's better than working local... | Treat the share as if it were your source control system. Make the share read-only, which will force developers to get local copies in order to make changes. You then have a somewhat stable version to compare against. This would help facilitate being able to do "merges". "Checking" code in would have to consist of some... | Merge code changes without true source control We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence). Right now, we're all just working off of the files on a shared lan drive. Obviously, this causes some proble... | TITLE:
Merge code changes without true source control
QUESTION:
We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence). Right now, we're all just working off of the files on a shared lan drive. Obviously, this ... | [
"version-control",
"merge"
] | 5 | 5 | 1,264 | 9 | 0 | 2008-10-14T17:51:24.730000 | 2008-10-14T17:56:52.147000 |
202,147 | 202,373 | Start another application from a Compact .Net 1.0 app | Is there a way to start another application from within Compact.Net framework 1.0 similar to System.Diagnostics.Process.Start on the Windows side? I need to start a CAB file for installation. | Take a look at http://www.pinvoke.net/default.aspx/coredll/CreateProcess.html | Start another application from a Compact .Net 1.0 app Is there a way to start another application from within Compact.Net framework 1.0 similar to System.Diagnostics.Process.Start on the Windows side? I need to start a CAB file for installation. | TITLE:
Start another application from a Compact .Net 1.0 app
QUESTION:
Is there a way to start another application from within Compact.Net framework 1.0 similar to System.Diagnostics.Process.Start on the Windows side? I need to start a CAB file for installation.
ANSWER:
Take a look at http://www.pinvoke.net/default.a... | [
"c#",
"windows-mobile",
"compact-framework"
] | 1 | 2 | 1,290 | 2 | 0 | 2008-10-14T17:51:50.783000 | 2008-10-14T18:54:56.833000 |
202,148 | 202,192 | Replace first line of a text file in Java | I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this. I'd also like to apply some rules to the first line so that I replace instances of certain words with o... | A RandomAccessFile will do the trick, unless the length of the resulting line is different from the length of the original line. If it turns out you are forced to perform a copy (where the first line is replaced and the rest of the data shall be copied as-is), I suggest using a BufferedReader and BufferedWriter. First ... | Replace first line of a text file in Java I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this. I'd also like to apply some rules to the first line so that I... | TITLE:
Replace first line of a text file in Java
QUESTION:
I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this. I'd also like to apply some rules to the fi... | [
"java"
] | 10 | 16 | 32,680 | 5 | 0 | 2008-10-14T17:52:16.710000 | 2008-10-14T18:06:41.360000 |
202,151 | 202,468 | Flex/AIR: automatically absorb unassigned/disabled key shortcuts | I have an AIR app with an component, which renders a page that includes an HTML/Javascript based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't assigned ( eg cmd or [ ctrl on Windows] + M ), the character is entered as if no modif... | Nevermind, I figured it out. Apparently the menu system operates even if you prevent the default action on the KeyboardEvent: public var OperatingSystem:String =!!NativeApplication.supportsDockIcon? 'mac':!!NativeApplication.supportsSystemTrayIcon? 'win': 'other';
stage.addEventListener('keyDown', function(e:KeyboardE... | Flex/AIR: automatically absorb unassigned/disabled key shortcuts I have an AIR app with an component, which renders a page that includes an HTML/Javascript based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't assigned ( eg cmd or ... | TITLE:
Flex/AIR: automatically absorb unassigned/disabled key shortcuts
QUESTION:
I have an AIR app with an component, which renders a page that includes an HTML/Javascript based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't ass... | [
"apache-flex",
"air",
"keyboard-shortcuts"
] | 1 | 1 | 799 | 1 | 0 | 2008-10-14T17:52:31.640000 | 2008-10-14T19:19:17.563000 |
202,165 | 202,190 | Is there a way to easily print the pages from an ASP.NET site? | My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one? | Free/Open Source application to crawl you're own site: http://www.httrack.com/ Then send the resulting local html files to the printer. Should mention that httrack has a configuration for controlling how deep you traverse you're site hierarchy (and other options). | Is there a way to easily print the pages from an ASP.NET site? My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one? | TITLE:
Is there a way to easily print the pages from an ASP.NET site?
QUESTION:
My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one?
ANSWER:
Free/Open Source application to crawl you're own site: http://www.httrack.com/ Then send t... | [
"asp.net",
"printing"
] | 4 | 3 | 219 | 2 | 0 | 2008-10-14T17:58:47.120000 | 2008-10-14T18:06:11.083000 |
202,188 | 202,194 | Should I start distributing my systems as Wine ready? | I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues I should take into account? | You could do what Google does and package Wine with the application. That way there's no fear that Wine will change something in the future and prevent your app from working. | Should I start distributing my systems as Wine ready? I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues I should take into... | TITLE:
Should I start distributing my systems as Wine ready?
QUESTION:
I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues ... | [
"linux",
"cross-platform",
"wine",
"opensuse",
"suse"
] | 9 | 14 | 541 | 8 | 0 | 2008-10-14T18:05:09.697000 | 2008-10-14T18:06:53.733000 |
202,197 | 202,316 | How to use sftp from within an MS Access database module? | I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will output a query to a delimited file. The user also needs a mecha... | You can simply write a call to the sftp command line client via a batch file if you want to accomplish that. Check out the Shell() function in VBA. Under the click event of the button on your form add in the code: mySFTPCall = "sftp " Call Shell(mySFTPCall, 1) I've used this before to just copy files straight across ne... | How to use sftp from within an MS Access database module? I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will outpu... | TITLE:
How to use sftp from within an MS Access database module?
QUESTION:
I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a ... | [
"ms-access",
"vba",
"sftp"
] | 5 | 7 | 10,118 | 5 | 0 | 2008-10-14T18:07:29.113000 | 2008-10-14T18:41:39.280000 |
202,205 | 202,246 | How to make MySQL handle UTF-8 properly | One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL? | Update: Short answer - You should almost always be using the utf8mb4 charset and utf8mb4_unicode_ci collation. To alter database: ALTER DATABASE dbname CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; See: Aaron's comment on this answer How to make MySQL handle UTF-8 properly What's the difference between utf8_general... | How to make MySQL handle UTF-8 properly One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL? | TITLE:
How to make MySQL handle UTF-8 properly
QUESTION:
One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?
ANSWER:
Update: Short answer - You should almost always be using the utf8mb4 charset and utf8... | [
"mysql",
"utf-8"
] | 128 | 121 | 304,800 | 15 | 0 | 2008-10-14T18:09:31.463000 | 2008-10-14T18:21:03.190000 |
202,212 | 204,319 | Outlook VSTO not firing on NewMailEx event? | I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the message actually arrives. Is there a better way of monitoring fo... | The reason is: "GC collect the.NET object, whichc wrapps COM object from Outlook )". The solution is hold reference to this.NET object. The most ease way is: // this is helper collection. // there are all wrapper objects //, which should not be collected by GC private List holdedObjects = new List ();
// hooks necesar... | Outlook VSTO not firing on NewMailEx event? I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the message actually arr... | TITLE:
Outlook VSTO not firing on NewMailEx event?
QUESTION:
I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the me... | [
"c#",
".net-3.5",
"outlook",
"vsto"
] | 2 | 3 | 2,136 | 1 | 0 | 2008-10-14T18:10:07.050000 | 2008-10-15T10:59:40.787000 |
202,223 | 202,254 | Programming a user interface for a small device | I'm looking for ideas/elements of a user interface for a device I'm making. Full description (and video of development setup) here. In short: It's essentially a direction finder, so I'm starting off thinking, "Compass" but wondering what other design patterns would fit There isn't much interface to a compass - what kin... | You're summary page indicates that you're getting GPS coordinates from two devices... so a nice feature for children would be to show a dot for mom and a dot at display center for the child. Draw a line between these. Draw an arrow showing the child's most recent direction of travel to GPS resolution. Tell the child to... | Programming a user interface for a small device I'm looking for ideas/elements of a user interface for a device I'm making. Full description (and video of development setup) here. In short: It's essentially a direction finder, so I'm starting off thinking, "Compass" but wondering what other design patterns would fit Th... | TITLE:
Programming a user interface for a small device
QUESTION:
I'm looking for ideas/elements of a user interface for a device I'm making. Full description (and video of development setup) here. In short: It's essentially a direction finder, so I'm starting off thinking, "Compass" but wondering what other design pat... | [
"graphics",
"user-interface",
"embedded"
] | 3 | 4 | 518 | 3 | 0 | 2008-10-14T18:14:55.213000 | 2008-10-14T18:24:37.113000 |
202,231 | 202,512 | dotnet compact framework 3.5 sp1 detect device resolution | I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution: Public gDeviceRes As String = "640" 'Public gDeviceRes As String = "320" then recompile for each device, does anyone have a quick snippit of code for this?? | Depending on your exact needs, you can check the current screen dimensions with Screen.PrimaryScreen or you can P/Invoke GetSystemMetrics with SM_CXSCREEN or GetDeviceCaps with HORZRES. Vertical dimesions are similarly available. | dotnet compact framework 3.5 sp1 detect device resolution I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution: Public gDeviceRes As String = "640" 'Public gDeviceRes As String = "320" then recompile for each device, does anyone have a quick snippit of code for t... | TITLE:
dotnet compact framework 3.5 sp1 detect device resolution
QUESTION:
I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution: Public gDeviceRes As String = "640" 'Public gDeviceRes As String = "320" then recompile for each device, does anyone have a quick sni... | [
"windows-mobile",
"compact-framework"
] | 6 | 5 | 5,124 | 2 | 0 | 2008-10-14T18:16:42.700000 | 2008-10-14T19:33:51.967000 |
202,234 | 202,267 | Command Line limit for Solaris | I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters. Is there a way to change this? Update: As was pointed out before, this is a limit to the default shell for Solaris (sh) vs... | I believe (though may be wrong) that's related to the default shell you're connecting to. If you make the change on Solaris to the same shell you're using on Linux, does that fix the problem? Please comment if there's a better route to a solution, and I'll make the change in my answer. | Command Line limit for Solaris I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters. Is there a way to change this? Update: As was pointed out before, this is a limit to the de... | TITLE:
Command Line limit for Solaris
QUESTION:
I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters. Is there a way to change this? Update: As was pointed out before, this is... | [
"solaris"
] | 1 | 2 | 11,925 | 5 | 0 | 2008-10-14T18:18:06.020000 | 2008-10-14T18:28:38.447000 |
202,243 | 202,284 | Custom Date/Time formatting in SQL Server | I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field. The Datetime format field has the following format 'YYYY-MM-DD HH:MM:SS.S' The 2 additional fields ... | If dt is your datetime column, then For 1: SUBSTRING(CONVERT(varchar, dt, 13), 1, 2) + UPPER(SUBSTRING(CONVERT(varchar, dt, 13), 4, 3)) For 2: SUBSTRING(CONVERT(varchar, dt, 100), 13, 2) + SUBSTRING(CONVERT(varchar, dt, 100), 16, 3) | Custom Date/Time formatting in SQL Server I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field. The Datetime format field has the following format 'YYYY-... | TITLE:
Custom Date/Time formatting in SQL Server
QUESTION:
I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field. The Datetime format field has the follo... | [
"sql",
"sql-server",
"datetime",
"stored-procedures",
"sql-convert"
] | 16 | 7 | 114,516 | 10 | 0 | 2008-10-14T18:20:24.033000 | 2008-10-14T18:32:20.013000 |
202,245 | 202,265 | Pure-SQL Technique for Auto-Numbering Rows in Result Set | I'm looking for a way to sequentially number rows in a result set (not a table). In essence, I'm starting with a query like the following: SELECT id, name FROM people WHERE name = 'Spiewak' The id s are obviously not a true sequence (e.g. 1, 2, 3, 4 ). What I need is another column in the result set which contains thes... | To have a meaningful row number you need to order your results. Then you can do something like this: SELECT id, name, (SELECT COUNT(*) FROM people p2 WHERE name='Spiewak' AND p2.id <= p1.id) AS RowNumber FROM people p1 WHERE name = 'Spiewak' ORDER BY id Note that the WHERE clause of the sub query needs to match the WHE... | Pure-SQL Technique for Auto-Numbering Rows in Result Set I'm looking for a way to sequentially number rows in a result set (not a table). In essence, I'm starting with a query like the following: SELECT id, name FROM people WHERE name = 'Spiewak' The id s are obviously not a true sequence (e.g. 1, 2, 3, 4 ). What I nee... | TITLE:
Pure-SQL Technique for Auto-Numbering Rows in Result Set
QUESTION:
I'm looking for a way to sequentially number rows in a result set (not a table). In essence, I'm starting with a query like the following: SELECT id, name FROM people WHERE name = 'Spiewak' The id s are obviously not a true sequence (e.g. 1, 2, ... | [
"sql",
"mysql"
] | 6 | 10 | 10,423 | 9 | 0 | 2008-10-14T18:20:51.927000 | 2008-10-14T18:28:21.693000 |
202,249 | 779,449 | Using Nant, uncomment a block of xml in a file | I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml: What I want to do is take the --> portion and move it next to "Navigation Section". A global find for --> won't work as there are many --> in the file, as well as under the navigation node. this end comment charact... | It's hacky but you could do a search for the string and then work backwards from there to replace the xml comment strings with empty strings. If you can implement that in C# (regular expression would be well suited to this) then it's fairly straightforward to wrap that in a custom nant target (as I did here for a diffe... | Using Nant, uncomment a block of xml in a file I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml: What I want to do is take the --> portion and move it next to "Navigation Section". A global find for --> won't work as there are many --> in the file, as well as unde... | TITLE:
Using Nant, uncomment a block of xml in a file
QUESTION:
I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml: What I want to do is take the --> portion and move it next to "Navigation Section". A global find for --> won't work as there are many --> in the fil... | [
"nant"
] | 0 | 0 | 1,512 | 1 | 0 | 2008-10-14T18:21:53.297000 | 2009-04-22T22:02:56.090000 |
202,253 | 202,391 | Eclipse & Tomcat: How to specify which folder is served from the project? | I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under folder named "share". This folder comes from CVS so I'd like to use it with it... | In the project folder, there should be a file under the.settings folder named org.eclipse.wst.common.component that contains an XML fragment like this: You should be able to change the source-path under wb-resource to your share folder. I'd make these changes with the Eclipse project closed to be safe. This is a settin... | Eclipse & Tomcat: How to specify which folder is served from the project? I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under fold... | TITLE:
Eclipse & Tomcat: How to specify which folder is served from the project?
QUESTION:
I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can b... | [
"java",
"eclipse",
"tomcat",
"eclipse-3.4"
] | 8 | 8 | 19,634 | 5 | 0 | 2008-10-14T18:23:53.650000 | 2008-10-14T18:57:46.500000 |
202,273 | 202,687 | Resolve a filename from another file | I can currently to the following: class SubClass extends SuperClass { function __construct() { parent::__construct(); } }
class SuperClass { function __construct() { // this echoes "I'm SubClass and I'm extending SuperClass" echo 'I\'m '.get_class($this).' and I\'m extending '.__CLASS__; } } I would like to do somethi... | You can use Reflection. $ref = new ReflectionObject($this); $ref->getFileName(); // return the file where the object's class was declared | Resolve a filename from another file I can currently to the following: class SubClass extends SuperClass { function __construct() { parent::__construct(); } }
class SuperClass { function __construct() { // this echoes "I'm SubClass and I'm extending SuperClass" echo 'I\'m '.get_class($this).' and I\'m extending '.__CL... | TITLE:
Resolve a filename from another file
QUESTION:
I can currently to the following: class SubClass extends SuperClass { function __construct() { parent::__construct(); } }
class SuperClass { function __construct() { // this echoes "I'm SubClass and I'm extending SuperClass" echo 'I\'m '.get_class($this).' and I\'... | [
"php",
"file",
"class-design"
] | 0 | 2 | 177 | 2 | 0 | 2008-10-14T18:29:55.060000 | 2008-10-14T20:33:39.303000 |
202,285 | 203,262 | Trigger a keypress with jQuery...and specify which key was pressed | I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example: The user types "ma2" into an input element. The keydown event triggers for every keystroke, and the 2 never appears. Instead, wh... | You may not have much luck triggering keypress - I'm fairly sure that unless the keypress is trusted (i.e. originates from the browser), it won't be picked up. However, you can do text replacement and insert the carat back where it was - instead of shooting it to the end of the string. You need to use setSelectionRange... | Trigger a keypress with jQuery...and specify which key was pressed I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example: The user types "ma2" into an input element. The keydown event... | TITLE:
Trigger a keypress with jQuery...and specify which key was pressed
QUESTION:
I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example: The user types "ma2" into an input element.... | [
"javascript",
"jquery",
"triggers",
"keypress"
] | 4 | 8 | 10,655 | 2 | 0 | 2008-10-14T18:32:28.127000 | 2008-10-14T23:57:02.077000 |
202,289 | 202,313 | How to build the DOM using javascript and templates? | I am building an application where most of the HTML is built using javascript. The DOM structure is built using some JSON data structures that are sent from the server, and then the client-side code builds a UI for that data. My current approach is to walk the JSON data structures, and call script.aculo.us's Builder.no... | There are some template solutions out there, but they aren't doing much more than you're doing already. jQuery has been doing some work along these lines, and some jQuery plugins have emerged as solutions. Prototype.js and others have solutions as well. Some options include: Prototype Templates Ajax Pages In general, E... | How to build the DOM using javascript and templates? I am building an application where most of the HTML is built using javascript. The DOM structure is built using some JSON data structures that are sent from the server, and then the client-side code builds a UI for that data. My current approach is to walk the JSON d... | TITLE:
How to build the DOM using javascript and templates?
QUESTION:
I am building an application where most of the HTML is built using javascript. The DOM structure is built using some JSON data structures that are sent from the server, and then the client-side code builds a UI for that data. My current approach is ... | [
"javascript",
"templates"
] | 4 | 7 | 6,090 | 8 | 0 | 2008-10-14T18:33:13.163000 | 2008-10-14T18:41:18.110000 |
202,294 | 202,320 | How to store year in Rails app | I want to just store the year in one of my models. At the moment I just have a database field called year of type date, but it seems to want to take a whole date (yyyy-mm-dd) rather than just a year. What's the best way to store this? In a date field but using some way of just getting it to store the date bit (in which... | It depends on the range of dates that are possible. If your dates go from BC to far future (negative to more then 4 digits), it would be easiest to store an integer (just for sorting reasons). This is also true if you want to make calculations or compare dates. Otherwise I would probably go with a string. Using a date ... | How to store year in Rails app I want to just store the year in one of my models. At the moment I just have a database field called year of type date, but it seems to want to take a whole date (yyyy-mm-dd) rather than just a year. What's the best way to store this? In a date field but using some way of just getting it ... | TITLE:
How to store year in Rails app
QUESTION:
I want to just store the year in one of my models. At the moment I just have a database field called year of type date, but it seems to want to take a whole date (yyyy-mm-dd) rather than just a year. What's the best way to store this? In a date field but using some way o... | [
"ruby-on-rails",
"database-design",
"datetime"
] | 10 | 8 | 4,273 | 2 | 0 | 2008-10-14T18:35:06.513000 | 2008-10-14T18:42:25.563000 |
202,295 | 224,584 | Any way to export/import sql server reporting services subscriptions? | I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. Anybody know if this is possible? | You can write your own stuff using the SSRS web services. The biggest agro with that depends on your security model (double hops, windows Auth, server farms etc). OR you could try this app if you are just moving stuff around: http://www.sqldbatips.com/showarticle.asp?ID=62 | Any way to export/import sql server reporting services subscriptions? I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. Anybody know if this is possible? | TITLE:
Any way to export/import sql server reporting services subscriptions?
QUESTION:
I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. Anybody know if this is possible?
ANSWER:
You can write your own stuff using the SSRS web services. ... | [
"reporting-services",
"subscriptions"
] | 5 | 1 | 3,813 | 1 | 0 | 2008-10-14T18:35:16.123000 | 2008-10-22T05:44:43.913000 |
202,299 | 202,358 | Logging to a file on the iPhone | What would be the best way to write log statements to a file or database in an iPhone application? Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ideas how this might best be done? Thanks! | I've successfully used freopen(...) on the phone to re-direct output to my own file. | Logging to a file on the iPhone What would be the best way to write log statements to a file or database in an iPhone application? Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ideas how this mig... | TITLE:
Logging to a file on the iPhone
QUESTION:
What would be the best way to write log statements to a file or database in an iPhone application? Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ... | [
"iphone",
"logging",
"nslog"
] | 18 | 18 | 29,525 | 5 | 0 | 2008-10-14T18:36:15.780000 | 2008-10-14T18:52:05.873000 |
202,302 | 1,581,007 | Rounding to an arbitrary number of significant digits | How can you round any number (not just integers > 0) to N significant digits? For example, if I want to round to three significant digits, I'm looking for a formula that could take: 1,239,451 and return 1,240,000 12.1257 and return 12.1.0681 and return.0681 5 and return 5 Naturally the algorithm should not be hard-code... | Here's the same code in Java without the 12.100000000000001 bug other answers have I also removed repeated code, changed power to a type integer to prevent floating issues when n - d is done, and made the long intermediate more clear The bug was caused by multiplying a large number with a small number. Instead I divide... | Rounding to an arbitrary number of significant digits How can you round any number (not just integers > 0) to N significant digits? For example, if I want to round to three significant digits, I'm looking for a formula that could take: 1,239,451 and return 1,240,000 12.1257 and return 12.1.0681 and return.0681 5 and re... | TITLE:
Rounding to an arbitrary number of significant digits
QUESTION:
How can you round any number (not just integers > 0) to N significant digits? For example, if I want to round to three significant digits, I'm looking for a formula that could take: 1,239,451 and return 1,240,000 12.1257 and return 12.1.0681 and re... | [
"algorithm",
"rounding",
"significant-digits"
] | 87 | 111 | 43,531 | 17 | 0 | 2008-10-14T18:37:17.603000 | 2009-10-17T00:20:15.390000 |
202,305 | 204,074 | Create PHP DOM xml file and create a save file link/prompt without writing the file to the server when headers already sent | I've created a PHP DOM xml piece and saved it to a string like this: saveXML();?> Now I can't use the headers to send a file download prompt and I can't write the file to the server, or rather I don't want the file laying around on it. Something like a save this file link or a download prompt would be good. How do I do... | I see from the comments that you're working from within a CMS framework and are unable to stop content from being output prior to where your code will be. If the script in which you're working has already output content (beyond your control), then you can't do what you're trying to achieve in just one script. Your scri... | Create PHP DOM xml file and create a save file link/prompt without writing the file to the server when headers already sent I've created a PHP DOM xml piece and saved it to a string like this: saveXML();?> Now I can't use the headers to send a file download prompt and I can't write the file to the server, or rather I d... | TITLE:
Create PHP DOM xml file and create a save file link/prompt without writing the file to the server when headers already sent
QUESTION:
I've created a PHP DOM xml piece and saved it to a string like this: saveXML();?> Now I can't use the headers to send a file download prompt and I can't write the file to the ser... | [
"php",
"xml",
"dom",
"file"
] | 2 | 6 | 16,334 | 3 | 0 | 2008-10-14T18:37:58.367000 | 2008-10-15T08:45:49.950000 |
202,323 | 202,416 | StackOverflow atom feed to use with VS2008 Start Page | Is there a URL for StackOverflow that I can use on the VS startpage in place of the never updated MS page? The URL that VS uses can be set on the Tools->Options::Startup dialog. I've tried https://stackoverflow.com/feeds VS complaints with the following error: The current news channel might not be a valid RSS feed, or ... | It appears that https://stackoverflow.com/feeds is actually an atom feed and not rss so that is probably where the VS issue is coming from. You may have to create an intermediary and transform the atom to rss. | StackOverflow atom feed to use with VS2008 Start Page Is there a URL for StackOverflow that I can use on the VS startpage in place of the never updated MS page? The URL that VS uses can be set on the Tools->Options::Startup dialog. I've tried https://stackoverflow.com/feeds VS complaints with the following error: The c... | TITLE:
StackOverflow atom feed to use with VS2008 Start Page
QUESTION:
Is there a URL for StackOverflow that I can use on the VS startpage in place of the never updated MS page? The URL that VS uses can be set on the Tools->Options::Startup dialog. I've tried https://stackoverflow.com/feeds VS complaints with the foll... | [
"visual-studio",
"visual-studio-2008",
"rss"
] | 3 | 2 | 879 | 4 | 0 | 2008-10-14T18:42:48.653000 | 2008-10-14T19:05:56.280000 |
202,328 | 202,348 | Querying machine specs | What are some ways that I can query the local machine's specifications (a range of things from CPU specs, OS version, graphics card specs and drivers, etc.) through a programmatic interface? We're writing a simple app in C# to test compatibility of our main app and want to have it dump out some system metrics, but I ca... | For this type of information WMI is your friend. Fortunately dealing with WMI in.NET is much easier than in the unmanaged world. There are quite a lot of articles out there to get started with, like this one, or this one to retrieve processor information. You will end up writing SQL-like queries against objects in the ... | Querying machine specs What are some ways that I can query the local machine's specifications (a range of things from CPU specs, OS version, graphics card specs and drivers, etc.) through a programmatic interface? We're writing a simple app in C# to test compatibility of our main app and want to have it dump out some s... | TITLE:
Querying machine specs
QUESTION:
What are some ways that I can query the local machine's specifications (a range of things from CPU specs, OS version, graphics card specs and drivers, etc.) through a programmatic interface? We're writing a simple app in C# to test compatibility of our main app and want to have ... | [
"c#",
"wmi"
] | 3 | 4 | 2,479 | 6 | 0 | 2008-10-14T18:43:31.990000 | 2008-10-14T18:49:45.830000 |
202,330 | 202,383 | What's a nice way of building a wParam or lParam in C#? (Something friendlier than shift operators?) | When the WIN32 docs says something like: wParam The low-order word specifies the edit control identifier. The high-order word specifies the notification message. What's a nice way of building that wParam? | public static ushort LowWord(uint val) { return (ushort)val; }
public static ushort HighWord(uint val) { return (ushort)(val >> 16); }
public static uint BuildWParam(ushort low, ushort high) { return ((uint)high << 16) | (uint)low; } | What's a nice way of building a wParam or lParam in C#? (Something friendlier than shift operators?) When the WIN32 docs says something like: wParam The low-order word specifies the edit control identifier. The high-order word specifies the notification message. What's a nice way of building that wParam? | TITLE:
What's a nice way of building a wParam or lParam in C#? (Something friendlier than shift operators?)
QUESTION:
When the WIN32 docs says something like: wParam The low-order word specifies the edit control identifier. The high-order word specifies the notification message. What's a nice way of building that wPar... | [
"c#",
"winapi"
] | 2 | 3 | 2,359 | 1 | 0 | 2008-10-14T18:44:20.023000 | 2008-10-14T18:56:20.870000 |
202,334 | 202,392 | Best MATLAB toolbox that implements Support Vector Regression? | In this Wikipedia article about SVM there are a number of links to different implementations of MATLAB toolboxes for Support Vector Machines. Could anyone suggest which of these is best in terms of speed, ease of use, etc.? | I've used libSVM. It is pretty fast and easy, and provides some useful tools, too. There are some examples of it in use here. The other nice thing is that there are implementations in C++ and Java, too, so if you find yourself needing to develop outside of Matlab (to turn a prototype into something speedy, for example)... | Best MATLAB toolbox that implements Support Vector Regression? In this Wikipedia article about SVM there are a number of links to different implementations of MATLAB toolboxes for Support Vector Machines. Could anyone suggest which of these is best in terms of speed, ease of use, etc.? | TITLE:
Best MATLAB toolbox that implements Support Vector Regression?
QUESTION:
In this Wikipedia article about SVM there are a number of links to different implementations of MATLAB toolboxes for Support Vector Machines. Could anyone suggest which of these is best in terms of speed, ease of use, etc.?
ANSWER:
I've u... | [
"machine-learning",
"svm",
"matlab"
] | 10 | 2 | 17,981 | 4 | 0 | 2008-10-14T18:45:56.273000 | 2008-10-14T18:58:29.323000 |
202,344 | 202,361 | Can I get statistics on RSS readership? | Is there any way to get numbers on how many people are reading an RSS feed? My understanding of the way feed readers work (e.g. Google Reader) is that they check the feed periodically, cache it, and serve the cached copy to whoever asks for it until it's refreshed - which would imply that there's no way to get reliable... | Feedburner provides that info, you can delegate your feed to that service. I don't really know how it works under the covers (as you said, the feed should be checked periodically...) to be reliable. | Can I get statistics on RSS readership? Is there any way to get numbers on how many people are reading an RSS feed? My understanding of the way feed readers work (e.g. Google Reader) is that they check the feed periodically, cache it, and serve the cached copy to whoever asks for it until it's refreshed - which would i... | TITLE:
Can I get statistics on RSS readership?
QUESTION:
Is there any way to get numbers on how many people are reading an RSS feed? My understanding of the way feed readers work (e.g. Google Reader) is that they check the feed periodically, cache it, and serve the cached copy to whoever asks for it until it's refresh... | [
"rss",
"google-analytics",
"analytics",
"google-reader"
] | 4 | 6 | 5,622 | 4 | 0 | 2008-10-14T18:49:16.033000 | 2008-10-14T18:52:43.313000 |
202,351 | 202,395 | Is there anyway to put html "inside" a Silverlight control? | I know you can do a trick of putting an HTML element on top of a Silverlight app, but that will not work full screen. Is there anyway to show an html page inside a Silverlight application? | The answer is, you can't. At least right now you can't - in the future it might be added but that's certainly not going to occur for a number of years (2.0 RTW was released today). However, this link may be of some interest: http://blogs.msdn.com/delay/archive/2007/09/10/bringing-a-bit-of-html-to-silverlight-htmltextbl... | Is there anyway to put html "inside" a Silverlight control? I know you can do a trick of putting an HTML element on top of a Silverlight app, but that will not work full screen. Is there anyway to show an html page inside a Silverlight application? | TITLE:
Is there anyway to put html "inside" a Silverlight control?
QUESTION:
I know you can do a trick of putting an HTML element on top of a Silverlight app, but that will not work full screen. Is there anyway to show an html page inside a Silverlight application?
ANSWER:
The answer is, you can't. At least right now... | [
"html",
"silverlight",
"controls"
] | 2 | 1 | 3,391 | 2 | 0 | 2008-10-14T18:50:33.893000 | 2008-10-14T18:59:11.910000 |
202,366 | 202,467 | What is your best resource about generics and their interfaces? | I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces, generic implementations of those interfaces and the best usage of each type of t... | The main way I came to understand them was just by looking at their interfaces. The inheritance goes like this: IList: ICollection: IEnumerable When you look up IEnumerable's interface, notice that it only has the bare minimum necessary to be able to loop through a bunch of items. It doesn't have count or anything else... | What is your best resource about generics and their interfaces? I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces, generic implemen... | TITLE:
What is your best resource about generics and their interfaces?
QUESTION:
I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces... | [
"c#",
"generics",
"collections"
] | 0 | 3 | 294 | 2 | 0 | 2008-10-14T18:53:09.380000 | 2008-10-14T19:19:16.677000 |
202,379 | 202,404 | How do I build two different apps from one Visual C# project? | I have a source base that, depending on defined flags at build time, creates two different apps. I can build both of these apps using a Makefile by specifying two different targets, one that compiles with a flag and one that compiles without, and having an aggregate target that builds both. How do I do the equivalent t... | Create one solution with two project files in the same folder. Set two different configurations in your solution, one of them building one of the projects, the other one building the other project. Alternatively, you can have one project which always builds to intermediate binary and then have a postbuild step that cop... | How do I build two different apps from one Visual C# project? I have a source base that, depending on defined flags at build time, creates two different apps. I can build both of these apps using a Makefile by specifying two different targets, one that compiles with a flag and one that compiles without, and having an a... | TITLE:
How do I build two different apps from one Visual C# project?
QUESTION:
I have a source base that, depending on defined flags at build time, creates two different apps. I can build both of these apps using a Makefile by specifying two different targets, one that compiles with a flag and one that compiles withou... | [
"c#",
"windows",
"visual-studio",
"build-process",
"build-automation"
] | 2 | 2 | 2,371 | 3 | 0 | 2008-10-14T18:56:02.447000 | 2008-10-14T19:02:21.890000 |
202,406 | 202,411 | Regular expression that calls string "a?c" invalid? | In my user model, I have an attribute called "nickname" and validates as such: validates_format_of:nickname,:with => /[a-zA-Z0-9]$/,:allow_nil => true However, it is currently letting this string pass as valid: a?c I only want to accept alphanumeric strings - does anyone know why my regular expression is failing? If an... | You need to anchor the pattern on both sides: /^[a-zA-Z0-9]+$/ | Regular expression that calls string "a?c" invalid? In my user model, I have an attribute called "nickname" and validates as such: validates_format_of:nickname,:with => /[a-zA-Z0-9]$/,:allow_nil => true However, it is currently letting this string pass as valid: a?c I only want to accept alphanumeric strings - does any... | TITLE:
Regular expression that calls string "a?c" invalid?
QUESTION:
In my user model, I have an attribute called "nickname" and validates as such: validates_format_of:nickname,:with => /[a-zA-Z0-9]$/,:allow_nil => true However, it is currently letting this string pass as valid: a?c I only want to accept alphanumeric ... | [
"regex",
"validation"
] | 4 | 10 | 318 | 2 | 0 | 2008-10-14T19:03:01.700000 | 2008-10-14T19:04:29.887000 |
202,430 | 202,568 | ASP.NET MVC Preview 5 on Mono | Does anyone have any information about getting the current versions of ASP.NET MVC (Preview 5) working on Mono 2.0? There was info on the old versions (Preview 2, maybe Preview 3), but I've seen no details about making Preview 5 actually work. The Mono Project Roadmap indicates ASP.NET 3.5 for Mono 2.4 (next year). Any... | Well a potential is that RewritePath to / has some sort of bug, so just avoid that. Changing the RewritePath(Request.ApplicationPath) to: HttpContext.Current.RewritePath("/Home/Index"); Seems to fix the problem, and at least the demo works so far. | ASP.NET MVC Preview 5 on Mono Does anyone have any information about getting the current versions of ASP.NET MVC (Preview 5) working on Mono 2.0? There was info on the old versions (Preview 2, maybe Preview 3), but I've seen no details about making Preview 5 actually work. The Mono Project Roadmap indicates ASP.NET 3.5... | TITLE:
ASP.NET MVC Preview 5 on Mono
QUESTION:
Does anyone have any information about getting the current versions of ASP.NET MVC (Preview 5) working on Mono 2.0? There was info on the old versions (Preview 2, maybe Preview 3), but I've seen no details about making Preview 5 actually work. The Mono Project Roadmap ind... | [
"asp.net-mvc",
"mono"
] | 10 | 11 | 8,657 | 3 | 0 | 2008-10-14T19:08:37.757000 | 2008-10-14T19:58:26.113000 |
202,432 | 202,479 | How to best capture and log scp output? | I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar. screen output: Copying /user2/cdb/builds/tmp/uat/myfiles/* to server /users/myfiles as cdb cdb@server's password: myfile 100% |***********************... | It looks like your just missing whether the scp was succesful or not from the log. I'm guessing the scroll bar doesn't print to stdout and uses ncurses or some other kind of TUI? You could just look at the return value of scp to see whether it was successful. Like scp myfile user@host.com:. && echo success! man scp say... | How to best capture and log scp output? I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar. screen output: Copying /user2/cdb/builds/tmp/uat/myfiles/* to server /users/myfiles as cdb cdb@server's passwo... | TITLE:
How to best capture and log scp output?
QUESTION:
I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar. screen output: Copying /user2/cdb/builds/tmp/uat/myfiles/* to server /users/myfiles as cdb c... | [
"logging",
"shell",
"scp"
] | 24 | 11 | 68,901 | 10 | 0 | 2008-10-14T19:08:52.173000 | 2008-10-14T19:21:37.187000 |
202,434 | 202,737 | Get FontWeight/FontStyle/TextDecorations from WPF RichTextBox | How can I detect the current text formatting at the cursor position in a WPF RichTextBox? | Try the code below where rtb is the RichTextBox: TextRange tr = new TextRange(rtb.Selection.Start, rtb.Selection.End); object oFont = tr.GetPropertyValue(Run.FontFamilyProperty); | Get FontWeight/FontStyle/TextDecorations from WPF RichTextBox How can I detect the current text formatting at the cursor position in a WPF RichTextBox? | TITLE:
Get FontWeight/FontStyle/TextDecorations from WPF RichTextBox
QUESTION:
How can I detect the current text formatting at the cursor position in a WPF RichTextBox?
ANSWER:
Try the code below where rtb is the RichTextBox: TextRange tr = new TextRange(rtb.Selection.Start, rtb.Selection.End); object oFont = tr.GetP... | [
".net",
"wpf"
] | 4 | 1 | 4,867 | 4 | 0 | 2008-10-14T19:09:00.503000 | 2008-10-14T20:48:04.390000 |
202,440 | 202,474 | How hard is it to incorporate full text search with SQL Server? | I am building a C#/ASP.NET app with an SQL backend. I am on deadline and finishing up my pages, out of left field one of my designers incorporated a full text search on one of my pages. My "searches" up until this point have been filters, being able to narrow a result set by certain factors and column values. Being tha... | First off, you need to enabled Full text Searching indexing on the production servers, so if thats not in scope, your not going to want to go with this. However, if that's already ready to go, full text searching is relatively simple. T-SQL has 4 predicates used for full text search: FREETEXT FREETEXTTABLE CONTAINS CON... | How hard is it to incorporate full text search with SQL Server? I am building a C#/ASP.NET app with an SQL backend. I am on deadline and finishing up my pages, out of left field one of my designers incorporated a full text search on one of my pages. My "searches" up until this point have been filters, being able to nar... | TITLE:
How hard is it to incorporate full text search with SQL Server?
QUESTION:
I am building a C#/ASP.NET app with an SQL backend. I am on deadline and finishing up my pages, out of left field one of my designers incorporated a full text search on one of my pages. My "searches" up until this point have been filters,... | [
"c#",
"asp.net",
"sql",
".net-3.5",
"full-text-search"
] | 13 | 29 | 2,985 | 5 | 0 | 2008-10-14T19:11:39.187000 | 2008-10-14T19:20:27.610000 |
202,456 | 204,365 | user_dump_dest is there harm in putting this on a NAS | Is it correct to say that typically user_dump_dest is on a local drive? If so, are there issues with mounting a NAS volume to both Unix and Windows and pointing user_dump_dest at that? If so, what are they? Are any issues worth not doing this in prod? | I've run 9.2 instances with user_dump_dest on a NAS and never had a problem with it. If you are concerned though, have oracle write them locally, then sync them across to your NAS and remove them from local, I've never needed to do that though. | user_dump_dest is there harm in putting this on a NAS Is it correct to say that typically user_dump_dest is on a local drive? If so, are there issues with mounting a NAS volume to both Unix and Windows and pointing user_dump_dest at that? If so, what are they? Are any issues worth not doing this in prod? | TITLE:
user_dump_dest is there harm in putting this on a NAS
QUESTION:
Is it correct to say that typically user_dump_dest is on a local drive? If so, are there issues with mounting a NAS volume to both Unix and Windows and pointing user_dump_dest at that? If so, what are they? Are any issues worth not doing this in pr... | [
"oracle",
"configuration"
] | 1 | 1 | 201 | 2 | 0 | 2008-10-14T19:16:30.503000 | 2008-10-15T11:18:41.420000 |
202,459 | 202,464 | What is gcnew? | I stumbled across this code and am too proud to go and ask the author what it means. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What is gcnew and how important is it to use that instead of simply new? (I'm also stumped by the caret; I asked about t... | gcnew is for.NET reference objects; objects created with gcnew are automatically garbage-collected; it is important to use gcnew with CLR types | What is gcnew? I stumbled across this code and am too proud to go and ask the author what it means. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What is gcnew and how important is it to use that instead of simply new? (I'm also stumped by the caret; ... | TITLE:
What is gcnew?
QUESTION:
I stumbled across this code and am too proud to go and ask the author what it means. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What is gcnew and how important is it to use that instead of simply new? (I'm also stum... | [
".net",
"c++-cli"
] | 73 | 87 | 61,055 | 3 | 0 | 2008-10-14T19:17:38.893000 | 2008-10-14T19:18:43.290000 |
202,463 | 202,473 | What does the caret (‘^’) mean in C++/CLI? | I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What the heck does the caret mean? (The gcnew is also new to me, and I asked about that here... | This is C++/CLI and the caret is the managed equivalent of a * (pointer) which in C++/CLI terminology is called a 'handle' to a 'reference type' (since you can still have unmanaged pointers). (Thanks to Aardvark for pointing out the better terminology.) | What does the caret (‘^’) mean in C++/CLI? I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What the heck does the caret mean? (The gcnew is ... | TITLE:
What does the caret (‘^’) mean in C++/CLI?
QUESTION:
I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax. Hashtable^ tempHash = gcnew Hashtable(iterators_);
IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator(); What the heck does the caret me... | [
".net",
"c++-cli"
] | 259 | 209 | 121,681 | 8 | 0 | 2008-10-14T19:18:38.893000 | 2008-10-14T19:20:11.183000 |
202,466 | 203,595 | How to calculate CRC_B in C# | How to calculate CRC_B encoding in C# as described in ISO 14443? Here is some background info: CRC_B encoding This annex is provided for explanatory purposes and indicates the bit patterns that will exist in the physical layer. It is included for the purpose of checking an ISO/IEC 14443-3 Type B implementation of CRC_B... | I reversed this from the C code in ISO/IEC JTC1/SC17 N 3497 so its not pretty but does what you need: public class CrcB { const ushort __crcBDefault = 0xffff;
private static ushort UpdateCrc(byte b, ushort crc) { unchecked { byte ch = (byte)(b^(byte)(crc & 0x00ff)); ch = (byte)(ch ^ (ch << 4)); return (ushort)((crc >>... | How to calculate CRC_B in C# How to calculate CRC_B encoding in C# as described in ISO 14443? Here is some background info: CRC_B encoding This annex is provided for explanatory purposes and indicates the bit patterns that will exist in the physical layer. It is included for the purpose of checking an ISO/IEC 14443-3 T... | TITLE:
How to calculate CRC_B in C#
QUESTION:
How to calculate CRC_B encoding in C# as described in ISO 14443? Here is some background info: CRC_B encoding This annex is provided for explanatory purposes and indicates the bit patterns that will exist in the physical layer. It is included for the purpose of checking an... | [
"c#",
"crc",
"iso"
] | 2 | 2 | 5,120 | 1 | 0 | 2008-10-14T19:19:09.343000 | 2008-10-15T03:07:45.480000 |
202,481 | 202,896 | How to use HttpWebRequest (.NET) asynchronously? | How can I use HttpWebRequest (.NET, C#) asynchronously? | Use HttpWebRequest.BeginGetResponse() HttpWebRequest webRequest;
void StartWebRequest() { webRequest.BeginGetResponse(new AsyncCallback(FinishWebRequest), null); }
void FinishWebRequest(IAsyncResult result) { webRequest.EndGetResponse(result); } The callback function is called when the asynchronous operation is compl... | How to use HttpWebRequest (.NET) asynchronously? How can I use HttpWebRequest (.NET, C#) asynchronously? | TITLE:
How to use HttpWebRequest (.NET) asynchronously?
QUESTION:
How can I use HttpWebRequest (.NET, C#) asynchronously?
ANSWER:
Use HttpWebRequest.BeginGetResponse() HttpWebRequest webRequest;
void StartWebRequest() { webRequest.BeginGetResponse(new AsyncCallback(FinishWebRequest), null); }
void FinishWebRequest(... | [
"c#",
".net",
"asynchronous",
"httprequest"
] | 163 | 127 | 197,934 | 10 | 0 | 2008-10-14T19:22:27.870000 | 2008-10-14T21:17:56.263000 |
202,502 | 202,616 | Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application? | We have recently migrated a large, high demand web application to Tomcat 5.5 from Tomcat 4 and have noticed some peculiar slowdown behavior that appears to be related to JVM pauses. In order to run our application and support increased load over time on Tomcat 4, many not so standard JVM parameters were set and tuned a... | One of the Java Champions, Kirk Pepperdine's blog: http://kirk.blog-city.com/how_to_cripple_gc_ergonomics.htm. Quote 1 "GC documentation will tell you what the setting affects but often without telling what the effect will be. The biggest clue that you've taken the wrong fork in the road is when you explicitly set a va... | Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application? We have recently migrated a large, high demand web application to Tomcat 5.5 from Tomcat 4 and have noticed some peculiar slowdown behavior that appears to be related to JVM pauses. In order to run our applicat... | TITLE:
Appropriate Tomcat 5.5 start-up parameters to tune JVM for extremely high demand, large heap web application?
QUESTION:
We have recently migrated a large, high demand web application to Tomcat 5.5 from Tomcat 4 and have noticed some peculiar slowdown behavior that appears to be related to JVM pauses. In order t... | [
"java",
"tomcat",
"jvm",
"performance"
] | 11 | 7 | 22,852 | 5 | 0 | 2008-10-14T19:30:24.173000 | 2008-10-14T20:14:03.197000 |
202,508 | 202,524 | How do I send text to a dom object with jQuery? | Rather than population said DOM object with an external page such as HTML CFM or PHP, what if I simply want to send text? I've tried: $("#myDOMObject").val("some text"); No errors, but the object value doesn't update either. | What element is "myDOMObject"? If it's a text input, your code should be working fine. If it's something else, use $("#myDOMObject").text("some text"); | How do I send text to a dom object with jQuery? Rather than population said DOM object with an external page such as HTML CFM or PHP, what if I simply want to send text? I've tried: $("#myDOMObject").val("some text"); No errors, but the object value doesn't update either. | TITLE:
How do I send text to a dom object with jQuery?
QUESTION:
Rather than population said DOM object with an external page such as HTML CFM or PHP, what if I simply want to send text? I've tried: $("#myDOMObject").val("some text"); No errors, but the object value doesn't update either.
ANSWER:
What element is "myD... | [
"jquery",
"text"
] | 0 | 4 | 617 | 2 | 0 | 2008-10-14T19:33:09.707000 | 2008-10-14T19:39:05.717000 |
202,540 | 202,601 | Calling a C# web service from with PHP with a long parameter | We have a customer that is trying to call our web service written in C# from PHP code. The web service call takes a long as parameter. This call works fine for other customers calling from C# or Java but this customer is getting an error back from the call. I haven't debugged their specific call but I am guessing that ... | Most PHP installations won't support 64 bit integers - 32 is the max. You can check this by reading the PHP_INT_SIZE constant (4 = 32bit, 8 = 64bit) or read the PHP_INT_MAX value. If the web service class he is using is trying to type-convert a string representation of a 64 bit integer, then yes, it's mostly likely bei... | Calling a C# web service from with PHP with a long parameter We have a customer that is trying to call our web service written in C# from PHP code. The web service call takes a long as parameter. This call works fine for other customers calling from C# or Java but this customer is getting an error back from the call. I... | TITLE:
Calling a C# web service from with PHP with a long parameter
QUESTION:
We have a customer that is trying to call our web service written in C# from PHP code. The web service call takes a long as parameter. This call works fine for other customers calling from C# or Java but this customer is getting an error bac... | [
"c#",
"php",
"web-services",
"64-bit",
"integer"
] | 1 | 1 | 2,253 | 4 | 0 | 2008-10-14T19:45:54.313000 | 2008-10-14T20:09:18.867000 |
202,547 | 203,008 | How do I find out the browser's proxy settings? | I am writing a command-line tool for Windows that uses libcurl to download files from the internet. Obviously, the downloading doesn't work when the user is behind a proxy server, because the proxy needs to be configured. I want to keep my tool as simple as possible however, and not have to burden the user with having ... | The function you're looking for is WinHttpGetIEProxyConfigForCurrentUser(), which is documented at http://msdn.microsoft.com/en-us/library/aa384096(VS.85).aspx. This function is used by Firefox and Opera to get their proxy settings by default, although you can override them per-browser. Don't do that, though. The right... | How do I find out the browser's proxy settings? I am writing a command-line tool for Windows that uses libcurl to download files from the internet. Obviously, the downloading doesn't work when the user is behind a proxy server, because the proxy needs to be configured. I want to keep my tool as simple as possible howev... | TITLE:
How do I find out the browser's proxy settings?
QUESTION:
I am writing a command-line tool for Windows that uses libcurl to download files from the internet. Obviously, the downloading doesn't work when the user is behind a proxy server, because the proxy needs to be configured. I want to keep my tool as simple... | [
"windows",
"internet-explorer",
"firefox",
"proxy",
"browser"
] | 26 | 36 | 36,579 | 4 | 0 | 2008-10-14T19:49:28.377000 | 2008-10-14T22:01:13.930000 |
202,549 | 202,943 | Parsing iCal/vCal/Google calendar files in C++ | Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial. | there is a parser in PHP for iCal, you can downloaded and check the code to suit your language. for vCal/vCard parsing there's a C Library. for Google Calendar I couldn't find any exact answer, so, try to Google it. | Parsing iCal/vCal/Google calendar files in C++ Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial. | TITLE:
Parsing iCal/vCal/Google calendar files in C++
QUESTION:
Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial.
ANSWER:
there is a parser in PHP for iCal, you can downloaded and check the... | [
"c++",
"mfc",
"icalendar",
"google-calendar-api",
"vcalendar"
] | 1 | 3 | 5,687 | 3 | 0 | 2008-10-14T19:49:59.780000 | 2008-10-14T21:38:04.587000 |
202,551 | 202,561 | Visual Studio unit tests throw MissingMethodException when assembly is in GAC? | My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains classes and services visible to the entire app. Everything was working fine, until I added a new... | Further research turned up this forum thread on this issue, in which someone suggests this might be caused by VS2008's Performance Analysis feature holding onto a stale version of the assembly. I was able to solve my problem by: Rebuilding my solution, then Refreshing everything in the GAC, then Removing and re-adding ... | Visual Studio unit tests throw MissingMethodException when assembly is in GAC? My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains classes and servi... | TITLE:
Visual Studio unit tests throw MissingMethodException when assembly is in GAC?
QUESTION:
My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains... | [
"visual-studio",
"gac"
] | 1 | 1 | 1,588 | 2 | 0 | 2008-10-14T19:52:13.613000 | 2008-10-14T19:56:22.577000 |
202,557 | 202,575 | What is the best absolute width for a webpage? | Assuming a fluid layout is not an option (since that is a different discussion all together), what is the recommended width for a site layout? What are the pros and cons of different sizes? | I've always kept with 960px as it's viewable on 1024x768, and is cleanly divisible by 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48, 60, 64, 80, 96, 120, 160, 192, 240, 320 and 480... so I can split up the design of my site (using the rule of thirds) cleanly. EDIT after a few years: Please consider using CSS... | What is the best absolute width for a webpage? Assuming a fluid layout is not an option (since that is a different discussion all together), what is the recommended width for a site layout? What are the pros and cons of different sizes? | TITLE:
What is the best absolute width for a webpage?
QUESTION:
Assuming a fluid layout is not an option (since that is a different discussion all together), what is the recommended width for a site layout? What are the pros and cons of different sizes?
ANSWER:
I've always kept with 960px as it's viewable on 1024x768... | [
"html",
"css",
"layout"
] | 27 | 40 | 9,577 | 10 | 0 | 2008-10-14T19:55:17.727000 | 2008-10-14T20:00:55.593000 |
202,560 | 202,577 | When should I write Static Methods? | So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields. One common pattern is to use static methods as a static factory, but this could just as easily be done by overloading a constructor. Correct? Fo... | It gives a better idea of the intent when you use a static factory -- it also lets you have different factories that take the same argument types but have a different meaning. For example, imagine if Bitmap had LoadFromResource(string) -- it would not be possible to have two constructors that both took string. EDIT: Fr... | When should I write Static Methods? So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields. One common pattern is to use static methods as a static factory, but this could just as easily be done by ov... | TITLE:
When should I write Static Methods?
QUESTION:
So I understand what a static method or field is, I am just wondering when to use them. That is, when writing code what design lends itself to using static methods and fields. One common pattern is to use static methods as a static factory, but this could just as ea... | [
"c#",
"oop"
] | 24 | 16 | 35,907 | 8 | 0 | 2008-10-14T19:56:18.317000 | 2008-10-14T20:01:23.050000 |
202,567 | 202,678 | Web Browser in a fullscreen Direct3D application | I need to have a working web browser in a fullscreen Direct3D application. For example, Valve's Source-based games (sort of) do it in the MotD window when you join a server. Any tips on where to look? | Second Life uses ubrowser ( http://ubrowser.com/ ) to embed a browser over a 3D world. As the source code is available for the Second Life client ( http://wiki.secondlife.com/wiki/Get_source_and_compile ) it would be a good place to see how they have done it. Note however, they are using OpenGL, not Direct3D... but the... | Web Browser in a fullscreen Direct3D application I need to have a working web browser in a fullscreen Direct3D application. For example, Valve's Source-based games (sort of) do it in the MotD window when you join a server. Any tips on where to look? | TITLE:
Web Browser in a fullscreen Direct3D application
QUESTION:
I need to have a working web browser in a fullscreen Direct3D application. For example, Valve's Source-based games (sort of) do it in the MotD window when you join a server. Any tips on where to look?
ANSWER:
Second Life uses ubrowser ( http://ubrowser... | [
"browser",
"direct3d"
] | 3 | 1 | 2,038 | 1 | 0 | 2008-10-14T19:58:10.247000 | 2008-10-14T20:31:05.533000 |
202,586 | 202,682 | Best free Java .class viewer? | I've used DJ Java Decompiler, which has a handy GUI, but it seems as if the latest version is only a trial and forces you to purchase the software after some period of days (I recall using an earlier free version about a year ago at a previous job). I'm aware of Jad and Jadclipse, but what I loved about DJ Java Decompi... | Eclipse will allow you to view the bytecode for classes, if the source is unavailable (search for 'disassembled bytecodes'). It seems there is also a third-party plugin that uses asm here. | Best free Java .class viewer? I've used DJ Java Decompiler, which has a handy GUI, but it seems as if the latest version is only a trial and forces you to purchase the software after some period of days (I recall using an earlier free version about a year ago at a previous job). I'm aware of Jad and Jadclipse, but what... | TITLE:
Best free Java .class viewer?
QUESTION:
I've used DJ Java Decompiler, which has a handy GUI, but it seems as if the latest version is only a trial and forces you to purchase the software after some period of days (I recall using an earlier free version about a year ago at a previous job). I'm aware of Jad and J... | [
"java",
"decompiling"
] | 24 | 5 | 46,624 | 11 | 0 | 2008-10-14T20:04:29.393000 | 2008-10-14T20:32:23.347000 |
202,588 | 209,826 | Is it possible to override a .NET client's default timeout on a call to a webservice? | I'd like the web service proxy class to wait more than 2 minutes | Two things to think about - yes, TheSoftwareJedi is correct about setting the Timeout property on the proxy - easy enough. The default value for that is 100s. You also have to realize that IIS will have a timeout setting as well and it will override the c# setting if its reached. The IIS default is 120s. So, setting th... | Is it possible to override a .NET client's default timeout on a call to a webservice? I'd like the web service proxy class to wait more than 2 minutes | TITLE:
Is it possible to override a .NET client's default timeout on a call to a webservice?
QUESTION:
I'd like the web service proxy class to wait more than 2 minutes
ANSWER:
Two things to think about - yes, TheSoftwareJedi is correct about setting the Timeout property on the proxy - easy enough. The default value f... | [
".net",
"web-services",
"timeout"
] | 0 | 3 | 2,788 | 2 | 0 | 2008-10-14T20:04:58.220000 | 2008-10-16T19:02:14.883000 |
202,609 | 202,634 | What is the syntax to use a Select statement inside a PL/SQL Trigger? | This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON SOMETABLE FOR EACH ROW
DECLARE v_emplid varchar2(10);
BEGIN SELECT personnum into v_emplid FROM PERSON WHERE PERSONID =:new.EMPLOYEEID;
dbms_output.put(v_emplid);
/* INSERT INTO SOMEOTHERTABLE USING v_emplid and some of the other val... | 1) There must be something else to your example because that sure seems to work for me SQL> create table someTable( employeeid number );
Table created.
SQL> create table person( personid number, personnum varchar2(10) );
Table created.
SQL> ed Wrote file afiedt.buf
1 CREATE OR REPLACE TRIGGER MYTRIGGER 2 AFTER INS... | What is the syntax to use a Select statement inside a PL/SQL Trigger? This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON SOMETABLE FOR EACH ROW
DECLARE v_emplid varchar2(10);
BEGIN SELECT personnum into v_emplid FROM PERSON WHERE PERSONID =:new.EMPLOYEEID;
dbms_output.put(v_emplid);
... | TITLE:
What is the syntax to use a Select statement inside a PL/SQL Trigger?
QUESTION:
This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON SOMETABLE FOR EACH ROW
DECLARE v_emplid varchar2(10);
BEGIN SELECT personnum into v_emplid FROM PERSON WHERE PERSONID =:new.EMPLOYEEID;
dbms_outpu... | [
"sql",
"oracle",
"plsql",
"ora-00923"
] | 10 | 9 | 47,677 | 3 | 0 | 2008-10-14T20:12:05.057000 | 2008-10-14T20:19:07.867000 |
202,610 | 202,638 | How do I reuse a command in bash with different parameters? | I have two scripts that often need to be run with the same parameter: $ populate.ksh 9241 && check.ksh 9241 When I need to change the parameter ( 9241 in this example), I can go back and edit the line in history. But since I need to change the number in two places, I sometimes make a typo. I'd like to be able to change... | In bash:!!:gs/9241/9243/ Yes, it uses gs///, not s///g.:-) (zigdon's answer uses the last command starting with pop, such as populate.sh. My answer uses the last command, full stop. Choose which works for you.) | How do I reuse a command in bash with different parameters? I have two scripts that often need to be run with the same parameter: $ populate.ksh 9241 && check.ksh 9241 When I need to change the parameter ( 9241 in this example), I can go back and edit the line in history. But since I need to change the number in two pl... | TITLE:
How do I reuse a command in bash with different parameters?
QUESTION:
I have two scripts that often need to be run with the same parameter: $ populate.ksh 9241 && check.ksh 9241 When I need to change the parameter ( 9241 in this example), I can go back and edit the line in history. But since I need to change th... | [
"bash",
"command-line",
"scripting"
] | 4 | 10 | 2,978 | 4 | 0 | 2008-10-14T20:12:50.203000 | 2008-10-14T20:19:36.147000 |
202,623 | 202,652 | Does Oracle support full text search? | Is there an Oracle equivalent to MS SQL's full text search service? If so, has anyone implemented it and had good / bad experiences? | Oracle Text is the equivalent functionality. I've had good experiences with it. Assuming that you are maintaining the text index asynchronously, that tends to be the first source of problems, since it may be a bit between a change being made and the index getting updated, but that's normally quite reasonable during nor... | Does Oracle support full text search? Is there an Oracle equivalent to MS SQL's full text search service? If so, has anyone implemented it and had good / bad experiences? | TITLE:
Does Oracle support full text search?
QUESTION:
Is there an Oracle equivalent to MS SQL's full text search service? If so, has anyone implemented it and had good / bad experiences?
ANSWER:
Oracle Text is the equivalent functionality. I've had good experiences with it. Assuming that you are maintaining the text... | [
"oracle",
"full-text-search",
"oracle-text"
] | 29 | 38 | 56,947 | 3 | 0 | 2008-10-14T20:15:54.113000 | 2008-10-14T20:22:20.853000 |
202,630 | 202,664 | How do I detect a null reference in C#? | How do I determine if an object reference is null in C# w/o throwing an exception if it is null? i.e. If I have a class reference being passed in and I don't know if it is null or not. | What Robert said, but for that particular case I like to express it with a guard clause like this, rather than nest the whole method body in an if block: void DoSomething( MyClass value ) { if ( value == null ) return; // I might throw an ArgumentNullException here, instead
value.Method(); } | How do I detect a null reference in C#? How do I determine if an object reference is null in C# w/o throwing an exception if it is null? i.e. If I have a class reference being passed in and I don't know if it is null or not. | TITLE:
How do I detect a null reference in C#?
QUESTION:
How do I determine if an object reference is null in C# w/o throwing an exception if it is null? i.e. If I have a class reference being passed in and I don't know if it is null or not.
ANSWER:
What Robert said, but for that particular case I like to express it ... | [
"c#"
] | 4 | 8 | 13,014 | 10 | 0 | 2008-10-14T20:18:30.113000 | 2008-10-14T20:25:47.603000 |
202,631 | 202,810 | Performance of using static methods vs instantiating the class containing the methods | I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only one class. Refactoring such a project is a huge undertaking, and so I've semi-learned to ... | From here, a static call is 4 to 5 times faster than constructing an instance every time you call an instance method. However, we're still only talking about tens of nanoseconds per call, so you're unlikely to notice any benefit unless you have really tight loops calling a method millions of times, and you could get th... | Performance of using static methods vs instantiating the class containing the methods I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only one... | TITLE:
Performance of using static methods vs instantiating the class containing the methods
QUESTION:
I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of met... | [
"performance",
"oop",
"static",
"methods",
"instance"
] | 32 | 30 | 23,111 | 8 | 0 | 2008-10-14T20:18:32.033000 | 2008-10-14T21:02:11.023000 |
202,653 | 203,728 | ASP.NET compression | From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it as well. I then saw some code to put in... | If you move forward with this, I'd suggest implementing a HttpModule versus global.asax. The HttpModule allows you to disable compression with a config change versus rebuilding and allows you to monkey with your compression Assembly separate from your web app. Rich Crane has a pretty nice 2.0 module here: http://www.co... | ASP.NET compression From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it as well. I then saw... | TITLE:
ASP.NET compression
QUESTION:
From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it a... | [
"asp.net",
"compression"
] | 4 | 4 | 1,745 | 6 | 0 | 2008-10-14T20:22:23.053000 | 2008-10-15T04:33:16.307000 |
202,662 | 203,405 | "Object variable or With block variable not set" when attempting to create COM object | I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see OPSValuer.OPSValue in dcomcnfg and it appears to be registered fine. Does anyone have ... | DMKing is right about OleView. Also try looking at the control in Dependency Walker, any missing dependencies should come quickly to the surface. Since this is a DCom component there also may be something failing in the components constructor, if anything fails in the constructor you will get that error. Is this a loca... | "Object variable or With block variable not set" when attempting to create COM object I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see ... | TITLE:
"Object variable or With block variable not set" when attempting to create COM object
QUESTION:
I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable no... | [
"com",
"vb6",
"dcom"
] | 0 | 2 | 3,657 | 4 | 0 | 2008-10-14T20:25:24.467000 | 2008-10-15T01:12:57.787000 |
202,685 | 202,726 | Converting from Eclipse PDT to Vim | I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch. The reason I can't quite at the moment is the CTRL+SPACE code-assist functionality that I rely on so much ... | Vim has OmniCompletion built in, you should add this to your.vimrc: filetype plugin on au FileType php set omnifunc=phpcomplete#CompletePHP In addition I recommend you this plugins: VTreeExplorer snippetsEmu and also take a look to this article about php debugging in Vim, and this paper, it has many useful tips for usi... | Converting from Eclipse PDT to Vim I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch. The reason I can't quite at the moment is the CTRL+SPACE code-assist fu... | TITLE:
Converting from Eclipse PDT to Vim
QUESTION:
I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch. The reason I can't quite at the moment is the CTRL+SP... | [
"php",
"eclipse",
"vim",
"eclipse-pdt"
] | 9 | 7 | 973 | 3 | 0 | 2008-10-14T20:32:54.593000 | 2008-10-14T20:46:36.967000 |
202,699 | 2,195,954 | What is the best way to clone a business object in Silverlight? | What is the best way to create a clone of a DTO? There is not an ICloneable interface or a BinaryFormatter class in Silverlight. Is reflection the only way? | Here is the code we came up with for cloning. This works in Silverlight 2 & 3. Public Shared Function Clone(Of T)(ByVal source As T) As T Dim serializer As New DataContractSerializer(GetType(T)) Using ms As New MemoryStream serializer.WriteObject(ms, source) ms.Seek(0, SeekOrigin.Begin) Return DirectCast(serializer.Rea... | What is the best way to clone a business object in Silverlight? What is the best way to create a clone of a DTO? There is not an ICloneable interface or a BinaryFormatter class in Silverlight. Is reflection the only way? | TITLE:
What is the best way to clone a business object in Silverlight?
QUESTION:
What is the best way to create a clone of a DTO? There is not an ICloneable interface or a BinaryFormatter class in Silverlight. Is reflection the only way?
ANSWER:
Here is the code we came up with for cloning. This works in Silverlight ... | [
"silverlight-2.0",
"clone"
] | 8 | 9 | 3,537 | 4 | 0 | 2008-10-14T20:38:55.797000 | 2010-02-03T22:27:06.173000 |
202,702 | 202,733 | How to make a Delphi TSpeedButton stay pressed if it's the only one in the group | I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, but hopefully there's some fix. Any help or anecdotes are appreciated. BTW, I'm (still) using Delphi ... | I have no D7 here, but in D2006 a Speedbutton stays down if the GroupIndex has a value > 0. If this is not the behaviour you wish, you can set the Down-Property manually in the OnClick-Eventhandler (make sure, that the GroupIndex is 0). | How to make a Delphi TSpeedButton stay pressed if it's the only one in the group I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, but hopefully there'... | TITLE:
How to make a Delphi TSpeedButton stay pressed if it's the only one in the group
QUESTION:
I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, bu... | [
"delphi",
"vcl",
"button"
] | 14 | 19 | 31,568 | 11 | 0 | 2008-10-14T20:40:13.033000 | 2008-10-14T20:47:15.920000 |
202,706 | 203,012 | Is gtk+ responsible for the awkward look of most linux applications? | Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of widgets. Have a look at this: Notice the awkward spacing of the text field's text. I've s... | The entire linux desktop doesn't have the visual integrity of OSX for instance, and I wonder why. If there is any example of a nice integrated Linux environment, please please please show me, I really WANT to use Linux. (and I know, there's QT, and other managers like KDE etc. I noticed the same thing, so it probably i... | Is gtk+ responsible for the awkward look of most linux applications? Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of widgets. Have a look... | TITLE:
Is gtk+ responsible for the awkward look of most linux applications?
QUESTION:
Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of wi... | [
"linux",
"gtk",
"gnome"
] | 2 | 11 | 1,697 | 9 | 0 | 2008-10-14T20:40:50.240000 | 2008-10-14T22:02:12.713000 |
202,717 | 203,583 | Random Page_Load calls on back button in ASP.NET | I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calling page_load when you hit back and instead loading th... | Check what the server is returning for the cache-control http header, then try setting Response.Cache.SetCacheability()/ use the output cache page directive on the pages and see if the server is saying that the pages should be cached. | Random Page_Load calls on back button in ASP.NET I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calling p... | TITLE:
Random Page_Load calls on back button in ASP.NET
QUESTION:
I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the applica... | [
"asp.net",
"ajax",
"asp.net-ajax"
] | 0 | 1 | 1,280 | 2 | 0 | 2008-10-14T20:44:29.967000 | 2008-10-15T03:01:53.200000 |
202,723 | 202,851 | Coding in Other (Spoken) Languages | This is something I've always wondered, and I can't find any mention of it anywhere online. When a shop from, say Japan, writes code, would I be able to read it in English? Or do languages, like C, PHP, anything, have Japanese translations that they write? I guess what I'm asking is does every single coder in the world... | If I understood well the question actually is: "does every single coder in the world know enough English to use the exact same reserved words as I do?" Well.. English is not the subject here but programming language reserved words. I mean, when I started about 10 yrs ago, I didn't have any clue of English, and still I ... | Coding in Other (Spoken) Languages This is something I've always wondered, and I can't find any mention of it anywhere online. When a shop from, say Japan, writes code, would I be able to read it in English? Or do languages, like C, PHP, anything, have Japanese translations that they write? I guess what I'm asking is d... | TITLE:
Coding in Other (Spoken) Languages
QUESTION:
This is something I've always wondered, and I can't find any mention of it anywhere online. When a shop from, say Japan, writes code, would I be able to read it in English? Or do languages, like C, PHP, anything, have Japanese translations that they write? I guess wh... | [
"localization",
"translation",
"spoken-language"
] | 109 | 162 | 25,481 | 26 | 0 | 2008-10-14T20:45:17.093000 | 2008-10-14T21:08:31.573000 |
202,736 | 707,333 | How do I add custom properties to an AD group in Windows? | I'd like to know how to script this. Also, is there an out of the box GUI tool that will let me do this? | Are you referring to the CustomField attributes that exchange adds when you extend the AD Schema? If so, then you could use ADSIEdit. If you want to make your own fields then I think your options would be extend the schema or possibly use ADAM. I haven't used ADAM for Groups, but I think its still possible. There are s... | How do I add custom properties to an AD group in Windows? I'd like to know how to script this. Also, is there an out of the box GUI tool that will let me do this? | TITLE:
How do I add custom properties to an AD group in Windows?
QUESTION:
I'd like to know how to script this. Also, is there an out of the box GUI tool that will let me do this?
ANSWER:
Are you referring to the CustomField attributes that exchange adds when you extend the AD Schema? If so, then you could use ADSIEd... | [
"windows",
"active-directory",
"ldap"
] | 3 | 2 | 3,748 | 1 | 0 | 2008-10-14T20:47:33.330000 | 2009-04-01T21:04:14.663000 |
202,740 | 202,795 | Is there a way to set timeouts in tomcat? | Can I set timeouts for JSP pages in tomcat either on a per page or server level? | For server level, you can try this. you have to change catalina.bat / catalina.sh file jvm OPTIONS: -Dsun.net.client.defaultConnectTimeout=60000 -Dsun.net.client.defaultReadTimeout=60000 | Is there a way to set timeouts in tomcat? Can I set timeouts for JSP pages in tomcat either on a per page or server level? | TITLE:
Is there a way to set timeouts in tomcat?
QUESTION:
Can I set timeouts for JSP pages in tomcat either on a per page or server level?
ANSWER:
For server level, you can try this. you have to change catalina.bat / catalina.sh file jvm OPTIONS: -Dsun.net.client.defaultConnectTimeout=60000 -Dsun.net.client.defaultR... | [
"java",
"jsp",
"tomcat",
"timeout"
] | 5 | 2 | 28,615 | 2 | 0 | 2008-10-14T20:48:46.760000 | 2008-10-14T20:58:33.277000 |
202,750 | 202,771 | Is there a human readable programming language? | I mean, is there a coded language with human style coding? For example: Create an object called MyVar and initialize it to 10; Take MyVar and call MyMethod() with parameters... I know it's not so useful, but it can be interesting to create such a grammar. | COBOL is a lot like that. SET MYVAR TO 10. EXECUTE MYMETHOD with 10, MYVAR. Another sample from Wikipedia: ADD YEARS TO AGE. MULTIPLY PRICE BY QUANTITY GIVING COST. SUBTRACT DISCOUNT FROM COST GIVING FINAL-COST. Oddly enough though, despite its design to be readable as English, most programmers completely undermined th... | Is there a human readable programming language? I mean, is there a coded language with human style coding? For example: Create an object called MyVar and initialize it to 10; Take MyVar and call MyMethod() with parameters... I know it's not so useful, but it can be interesting to create such a grammar. | TITLE:
Is there a human readable programming language?
QUESTION:
I mean, is there a coded language with human style coding? For example: Create an object called MyVar and initialize it to 10; Take MyVar and call MyMethod() with parameters... I know it's not so useful, but it can be interesting to create such a grammar... | [
"nlp",
"grammar"
] | 55 | 105 | 17,597 | 51 | 0 | 2008-10-14T20:51:13.777000 | 2008-10-14T20:54:15.580000 |
202,751 | 202,836 | Design problem: shared, synchronized, data access in application... the best approach? | I have a web application (asp.net) where work items are submitted and allocated to users according to their workload. A user's workload is calculated using an algorithm based on the number of items currently allocated to the user (and some other factors). Each new item is allocated to the user with the lowest current w... | This depends on many factors, when you refer to the cache do you mean the standard cache provided by Asp.Net? Is it absolutely critical that you always have the most up to date information, or if two requests are made to be allocated is it ok for them to get allocated to the two least busy users at the moment the reque... | Design problem: shared, synchronized, data access in application... the best approach? I have a web application (asp.net) where work items are submitted and allocated to users according to their workload. A user's workload is calculated using an algorithm based on the number of items currently allocated to the user (an... | TITLE:
Design problem: shared, synchronized, data access in application... the best approach?
QUESTION:
I have a web application (asp.net) where work items are submitted and allocated to users according to their workload. A user's workload is calculated using an algorithm based on the number of items currently allocat... | [
".net",
"caching",
"synchronization",
"data-access"
] | 1 | 1 | 251 | 3 | 0 | 2008-10-14T20:51:28.347000 | 2008-10-14T21:06:54.790000 |
202,752 | 208,015 | CAML query items with the given URLs | In SP2007/MOSS I need to run a CAML query against a single list like so: /path/item1.aspx /path/item4.aspx /path/item7.aspx The practical outcome of this would be that I have a SPListItemCollection of the items for which I had the URLs. However, I am getting an error 'One or more field types are not installed properly.... | This error is almost always because your CAML query is incorrect. Have you tried formatting it like this: /path/item1.aspx /path/item4.aspx /path/item7.aspx I'm pretty sure you can only have two components in an Or or And branch. | CAML query items with the given URLs In SP2007/MOSS I need to run a CAML query against a single list like so: /path/item1.aspx /path/item4.aspx /path/item7.aspx The practical outcome of this would be that I have a SPListItemCollection of the items for which I had the URLs. However, I am getting an error 'One or more fi... | TITLE:
CAML query items with the given URLs
QUESTION:
In SP2007/MOSS I need to run a CAML query against a single list like so: /path/item1.aspx /path/item4.aspx /path/item7.aspx The practical outcome of this would be that I have a SPListItemCollection of the items for which I had the URLs. However, I am getting an err... | [
"sharepoint",
"moss",
"caml"
] | 2 | 3 | 5,172 | 1 | 0 | 2008-10-14T20:51:46.490000 | 2008-10-16T10:08:13.790000 |
202,792 | 202,933 | Is there a performance hit for using UIImage in CALayer? | I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail). The code I'm using to do this is: UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zoomLevel]; [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionD... | There's not a big performance boost - if anything it's the other way around. By going throuh UIImage to load up your images, you'll get all the benefits of caching that it does for you and it'll be a very speedy critter to use with your various CALayers. | Is there a performance hit for using UIImage in CALayer? I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail). The code I'm using to do this is: UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zoomLevel]; [CATrans... | TITLE:
Is there a performance hit for using UIImage in CALayer?
QUESTION:
I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail). The code I'm using to do this is: UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zo... | [
"iphone",
"objective-c",
"cocoa-touch"
] | 2 | 3 | 4,551 | 5 | 0 | 2008-10-14T20:57:55.087000 | 2008-10-14T21:31:05.473000 |
202,803 | 202,829 | Searching for marked (selected) text in Emacs | I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in the buffer and do a C-s or C-r and be able to search with the mark... | Yes. M-W (to get a copy of the selected text) C-s C-y. Then repeat C-s as needed. Similarly for C-r. | Searching for marked (selected) text in Emacs I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in the buffer and do a ... | TITLE:
Searching for marked (selected) text in Emacs
QUESTION:
I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. Similar to what I can do in notepad or wordpad. As in can I mark some text in th... | [
"search",
"emacs",
"text",
"text-editor"
] | 56 | 41 | 23,222 | 9 | 0 | 2008-10-14T21:00:36.113000 | 2008-10-14T21:05:39.550000 |
202,813 | 202,854 | Adding values to a C# array | Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example: int[] terms;
for(int runs = 0; runs < 400; runs++) { terms[] = runs; } For those who have used PHP, here's what I'm trying to do in C#: $arr = array(); for ($i = 0; $i < 10; $i++) { $arr[] = $i; } | You can do this way - int[] terms = new int[400]; for (int runs = 0; runs < 400; runs++) { terms[runs] = value; } Alternatively, you can use Lists - the advantage with lists being, you don't need to know the array size when instantiating the list. List termsList = new List (); for (int runs = 0; runs < 400; runs++) { t... | Adding values to a C# array Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example: int[] terms;
for(int runs = 0; runs < 400; runs++) { terms[] = runs; } For those who have used PHP, here's what I'm trying to do in C#: $arr = array(); for ($i = 0; $i < 10; $i++) {... | TITLE:
Adding values to a C# array
QUESTION:
Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example: int[] terms;
for(int runs = 0; runs < 400; runs++) { terms[] = runs; } For those who have used PHP, here's what I'm trying to do in C#: $arr = array(); for ($i = 0... | [
"c#",
"arrays"
] | 708 | 1,036 | 2,645,102 | 26 | 0 | 2008-10-14T21:02:58.730000 | 2008-10-14T21:08:42.337000 |
202,817 | 202,855 | Open Source .Net Reporting Tool | I am looking for a reporting service/tool for visual Studio. My only restraint is my web server is off limits to me as far as installing ANYTHING. So I need something I can just include in my project. My users need to be able to export a report to PDF and without being able to use Crystal I am pretty much lost. Any ide... | fyireporting (released under Apache License) is worth a try. The fyiReporting RDL Project is a powerful report and charting system based on Report Definition Language (RDL). Tabular, free form, matrix, charts are fully supported. Report output may be displayed as HTML, PDF, XML,.Net Control, Web Archive, and to a print... | Open Source .Net Reporting Tool I am looking for a reporting service/tool for visual Studio. My only restraint is my web server is off limits to me as far as installing ANYTHING. So I need something I can just include in my project. My users need to be able to export a report to PDF and without being able to use Crysta... | TITLE:
Open Source .Net Reporting Tool
QUESTION:
I am looking for a reporting service/tool for visual Studio. My only restraint is my web server is off limits to me as far as installing ANYTHING. So I need something I can just include in my project. My users need to be able to export a report to PDF and without being ... | [
".net",
"visual-studio",
"reporting-services",
"reporting"
] | 31 | 22 | 49,258 | 4 | 0 | 2008-10-14T21:03:57.807000 | 2008-10-14T21:09:20.167000 |
202,819 | 202,832 | What is an example of a non-relational database? Where/how are they used? | I have been working with relational databases for sometime, but it only recently occurred to me that there must be other types of databases that are non -relational. What are some examples of non-relational databases, and where/how are they used in the real world? Why would you choose to use a non-relational database o... | Flat file CSV or other delimited data spreadsheets /etc/passwd mbox mail files Hierarchical Windows Registry Subversion using the file system, FSFS, instead of Berkley DB | What is an example of a non-relational database? Where/how are they used? I have been working with relational databases for sometime, but it only recently occurred to me that there must be other types of databases that are non -relational. What are some examples of non-relational databases, and where/how are they used ... | TITLE:
What is an example of a non-relational database? Where/how are they used?
QUESTION:
I have been working with relational databases for sometime, but it only recently occurred to me that there must be other types of databases that are non -relational. What are some examples of non-relational databases, and where/... | [
"database",
"non-relational-database"
] | 28 | 13 | 47,087 | 23 | 0 | 2008-10-14T21:04:03.437000 | 2008-10-14T21:06:09.067000 |
202,824 | 202,869 | Starting/Stopping a service on Windows 2008 Server from the command line - access denied | I am trying to start a service from the command line using "net start SERVICENAME" and I get an access denied error. I am an administrator on this server since I am in a domain group that are admins on the server. I can start/stop the service from the Services tool. I am new to 2008/Vista so maybe I am just missing som... | Type cmd into the search box in the start menu. Right click on cmd.exe and Run As Administrator. You could also create a shortcut to cmd and set the shortcut to run as administrator if this is something you're going to do often. | Starting/Stopping a service on Windows 2008 Server from the command line - access denied I am trying to start a service from the command line using "net start SERVICENAME" and I get an access denied error. I am an administrator on this server since I am in a domain group that are admins on the server. I can start/stop ... | TITLE:
Starting/Stopping a service on Windows 2008 Server from the command line - access denied
QUESTION:
I am trying to start a service from the command line using "net start SERVICENAME" and I get an access denied error. I am an administrator on this server since I am in a domain group that are admins on the server.... | [
"command-line",
"windows-server-2008"
] | 1 | 1 | 51,138 | 3 | 0 | 2008-10-14T21:04:44.187000 | 2008-10-14T21:12:03.080000 |
202,827 | 202,905 | Integrate WPF and Windows Forms | I am learning WPF and was wondering if there is a way to show a WPF Window from an existing C# WinForm without 'hosting' WinForm in WPF? I tried using myWPFWindow.show() on button click event for displaying the Window. The window is getting displayed but the textboxes displayed in the window are preventing me from typi... | Yes, that is a strange problem I also ran into one year ago. I don't exactly remember the solution, but this forum thread should point you into the right direction. | Integrate WPF and Windows Forms I am learning WPF and was wondering if there is a way to show a WPF Window from an existing C# WinForm without 'hosting' WinForm in WPF? I tried using myWPFWindow.show() on button click event for displaying the Window. The window is getting displayed but the textboxes displayed in the wi... | TITLE:
Integrate WPF and Windows Forms
QUESTION:
I am learning WPF and was wondering if there is a way to show a WPF Window from an existing C# WinForm without 'hosting' WinForm in WPF? I tried using myWPFWindow.show() on button click event for displaying the Window. The window is getting displayed but the textboxes d... | [
"wpf",
"winforms"
] | 3 | 3 | 804 | 1 | 0 | 2008-10-14T21:05:37.023000 | 2008-10-14T21:20:41.890000 |
202,860 | 209,472 | Flash AS2.0 - Increase Label's Font Size | I know this sounds like a really obvious question, but it's proving harder to figure out than I thought. I'm developing in Flash 8/ActionScript 2.0. I have a label component, and I'm dynamically assigning it text from an xml document. For example: label.text = " " + xml_node.firstChild + " "; This successfully changes ... | Thanks for everyone's input! After reading David Arno's post, I figured it out. Here's what I was doing. label.text = " " + xml_node.firstChild + " "; Here's what works: //note the 'single quotes' around the 24 label.text = " " + xml_node.firstChild + " "; I just tried different ways of typing 24 in there, and the sing... | Flash AS2.0 - Increase Label's Font Size I know this sounds like a really obvious question, but it's proving harder to figure out than I thought. I'm developing in Flash 8/ActionScript 2.0. I have a label component, and I'm dynamically assigning it text from an xml document. For example: label.text = " " + xml_node.fir... | TITLE:
Flash AS2.0 - Increase Label's Font Size
QUESTION:
I know this sounds like a really obvious question, but it's proving harder to figure out than I thought. I'm developing in Flash 8/ActionScript 2.0. I have a label component, and I'm dynamically assigning it text from an xml document. For example: label.text = ... | [
"flash",
"actionscript-2"
] | 1 | 1 | 8,261 | 4 | 0 | 2008-10-14T21:10:17.903000 | 2008-10-16T17:12:05.683000 |
202,871 | 203,070 | Are code generators bad? | I use MyGeneration along with nHibernate to create the basic POCO objects and XML mapping files. I have heard some people say they think code generators are not a good idea. What is the current best thinking? Is it just that code generation is bad when it generates thousands of lines of not understandable code? | Code generated by a code-generator should not (as a generalisation) be used in a situation where it is subsequently edited by human intervention. Some systems such the wizards on various incarnations of Visual C++ generated code that the programmer was then expected to edit by hand. This was not popular as it required ... | Are code generators bad? I use MyGeneration along with nHibernate to create the basic POCO objects and XML mapping files. I have heard some people say they think code generators are not a good idea. What is the current best thinking? Is it just that code generation is bad when it generates thousands of lines of not und... | TITLE:
Are code generators bad?
QUESTION:
I use MyGeneration along with nHibernate to create the basic POCO objects and XML mapping files. I have heard some people say they think code generators are not a good idea. What is the current best thinking? Is it just that code generation is bad when it generates thousands o... | [
"nhibernate",
"code-generation",
"poco"
] | 17 | 24 | 5,335 | 26 | 0 | 2008-10-14T21:12:15.450000 | 2008-10-14T22:17:48.873000 |
202,907 | 202,970 | Rails text_field with no method associated | i'm having a problem to create a text_field without a method association. Maybe i even don't need it:-) I have two radio_buttons associated to the same method: <%= radio_button:comment,:author, "anonymous" %> Anonymous <%= radio_button:comment,:author, "real_name" %> Name What i would like to do is to have an text_fiel... | If you want to generate a text_field without an associated object/method, use text_field_tag | Rails text_field with no method associated i'm having a problem to create a text_field without a method association. Maybe i even don't need it:-) I have two radio_buttons associated to the same method: <%= radio_button:comment,:author, "anonymous" %> Anonymous <%= radio_button:comment,:author, "real_name" %> Name What... | TITLE:
Rails text_field with no method associated
QUESTION:
i'm having a problem to create a text_field without a method association. Maybe i even don't need it:-) I have two radio_buttons associated to the same method: <%= radio_button:comment,:author, "anonymous" %> Anonymous <%= radio_button:comment,:author, "real_... | [
"ruby-on-rails"
] | 2 | 8 | 2,667 | 3 | 0 | 2008-10-14T21:22:07.597000 | 2008-10-14T21:43:13.017000 |
202,912 | 203,071 | Hierarchical data in Linq - options and performance | I have some hierarchical data - each entry has an id and a (nullable) parent entry id. I want to retrieve all entries in the tree under a given entry. This is in a SQL Server 2005 database. I am querying it with LINQ to SQL in C# 3.5. LINQ to SQL does not support Common Table Expressions directly. My choices are to ass... | I would set up a view and an associated table-based function based on the CTE. My reasoning for this is that, while you could implement the logic on the application side, this would involve sending the intermediate data over the wire for computation in the application. Using the DBML designer, the view translates into ... | Hierarchical data in Linq - options and performance I have some hierarchical data - each entry has an id and a (nullable) parent entry id. I want to retrieve all entries in the tree under a given entry. This is in a SQL Server 2005 database. I am querying it with LINQ to SQL in C# 3.5. LINQ to SQL does not support Comm... | TITLE:
Hierarchical data in Linq - options and performance
QUESTION:
I have some hierarchical data - each entry has an id and a (nullable) parent entry id. I want to retrieve all entries in the tree under a given entry. This is in a SQL Server 2005 database. I am querying it with LINQ to SQL in C# 3.5. LINQ to SQL doe... | [
"sql",
"linq",
"sql-server-2005",
"c#-3.0",
"common-table-expression"
] | 12 | 6 | 21,300 | 9 | 0 | 2008-10-14T21:24:18.250000 | 2008-10-14T22:19:01.103000 |
202,913 | 203,049 | Embedding Powershell CTP 2 in C# | I have an application that has Powershell 1 embedded into it, but we need to be able to use Powershell STAThreaded which is available in Powershell 2 CTP. Currently, System.Management.Automation is at 1.0.0.0. Does anyone know how to get Visual Studio to use the newer dll? | I'll look into it, but you realize that there is absolutely no guarantee that anything in the CTP will stay the way that it is right now? Most likely it will, but I wouldn't develop against it right now. EDIT: As a matter of fact this is a quote from the CTP download page: This software is a pre-release version. It wil... | Embedding Powershell CTP 2 in C# I have an application that has Powershell 1 embedded into it, but we need to be able to use Powershell STAThreaded which is available in Powershell 2 CTP. Currently, System.Management.Automation is at 1.0.0.0. Does anyone know how to get Visual Studio to use the newer dll? | TITLE:
Embedding Powershell CTP 2 in C#
QUESTION:
I have an application that has Powershell 1 embedded into it, but we need to be able to use Powershell STAThreaded which is available in Powershell 2 CTP. Currently, System.Management.Automation is at 1.0.0.0. Does anyone know how to get Visual Studio to use the newer ... | [
"c#",
".net",
"powershell"
] | 0 | 1 | 955 | 2 | 0 | 2008-10-14T21:24:41.197000 | 2008-10-14T22:11:17.967000 |
202,914 | 206,436 | Start Storyboard within another Storyboards Timeline | I have a storyboard(1) that does some basic animations in 2 seconds. I want the storyboard(1) to do all the property animations I have set it up to do (this all works fine). But at 3 seconds into the storyboard(1) I want to begin storyboard(2) and exit storyboard(1) without user interaction at all. Only thing I've seen... | Well I came up with a solution. I just spawned a new thread to wait for 3 seconds and then did an Invoke call to run the storyboard from that thread. Dim board As Storyboard = New Storyboard board = DirectCast(TryFindResource("DoSplit"), Storyboard) If board IsNot Nothing Then board.Begin(Me, True)
Dim t As Thread t =... | Start Storyboard within another Storyboards Timeline I have a storyboard(1) that does some basic animations in 2 seconds. I want the storyboard(1) to do all the property animations I have set it up to do (this all works fine). But at 3 seconds into the storyboard(1) I want to begin storyboard(2) and exit storyboard(1) ... | TITLE:
Start Storyboard within another Storyboards Timeline
QUESTION:
I have a storyboard(1) that does some basic animations in 2 seconds. I want the storyboard(1) to do all the property animations I have set it up to do (this all works fine). But at 3 seconds into the storyboard(1) I want to begin storyboard(2) and e... | [
"wpf",
"animation",
"storyboard"
] | 4 | 0 | 6,295 | 3 | 0 | 2008-10-14T21:25:05.907000 | 2008-10-15T20:52:42.337000 |
202,922 | 202,983 | Is it possible to read only the first line of a file with Actionscript? | I've got a PHP-based site where we allow users to upload a comma-separated text file of data to be imported by some server side scripts. However, sometimes we need to adjust the column order of the data that is uploaded, and it would be immensely helpful if we could identify the columns in the CSV file before the uploa... | Flash movies don't have access to the local file system, except to do a file upload to the server. I think your options are: Process the class on the client side with Java (trivial), using an applet. However, as you rightly assert the user would need to grant permissions to the applet. Provide a small client side appli... | Is it possible to read only the first line of a file with Actionscript? I've got a PHP-based site where we allow users to upload a comma-separated text file of data to be imported by some server side scripts. However, sometimes we need to adjust the column order of the data that is uploaded, and it would be immensely h... | TITLE:
Is it possible to read only the first line of a file with Actionscript?
QUESTION:
I've got a PHP-based site where we allow users to upload a comma-separated text file of data to be imported by some server side scripts. However, sometimes we need to adjust the column order of the data that is uploaded, and it wo... | [
"flash",
"actionscript",
"file-io",
"upload",
"csv"
] | 1 | 1 | 1,242 | 3 | 0 | 2008-10-14T21:27:24.593000 | 2008-10-14T21:48:37.857000 |
202,940 | 202,952 | Unit tests framework for databases | I´m looking for a unit tests framework for database development. I´m currently developing for SQL Server 2000, 2005 and 2008. Do you know of any good frameworks with similar functionality as JUnit and NUnit? Perhaps it´s better to ask, what do you use to unit test your stored procedures and user defined functions? | There is TSQLUnit... Link here: http://tsqlunit.sourceforge.net/ | Unit tests framework for databases I´m looking for a unit tests framework for database development. I´m currently developing for SQL Server 2000, 2005 and 2008. Do you know of any good frameworks with similar functionality as JUnit and NUnit? Perhaps it´s better to ask, what do you use to unit test your stored procedur... | TITLE:
Unit tests framework for databases
QUESTION:
I´m looking for a unit tests framework for database development. I´m currently developing for SQL Server 2000, 2005 and 2008. Do you know of any good frameworks with similar functionality as JUnit and NUnit? Perhaps it´s better to ask, what do you use to unit test yo... | [
"sql-server",
"database",
"unit-testing"
] | 8 | 4 | 1,263 | 4 | 0 | 2008-10-14T21:37:19.113000 | 2008-10-14T21:38:37.173000 |
202,944 | 203,908 | MS Access query design hangs on connection to SQL Server | Microsoft Access is a slick way to access data in a MS SQL Server backend database, but I've always had problems accessing (so to speak) large tables of data, especially when trying to toggle between results and design mode in Access. Access gives me a number of nifty things, not the least of which is Crosstabs, but th... | The ODBC driver will pass as much work as possible to SQL Server but as soon as you use a vba function like Nz or non-SQL Server syntax like PIVOT then the ODBC driver must pull back more data and indexes to get the work done on the client side. As per other answer either build your views in SQL Server and link to the ... | MS Access query design hangs on connection to SQL Server Microsoft Access is a slick way to access data in a MS SQL Server backend database, but I've always had problems accessing (so to speak) large tables of data, especially when trying to toggle between results and design mode in Access. Access gives me a number of ... | TITLE:
MS Access query design hangs on connection to SQL Server
QUESTION:
Microsoft Access is a slick way to access data in a MS SQL Server backend database, but I've always had problems accessing (so to speak) large tables of data, especially when trying to toggle between results and design mode in Access. Access giv... | [
"sql-server",
"ms-access",
"odbc"
] | 2 | 4 | 4,721 | 4 | 0 | 2008-10-14T21:38:05.350000 | 2008-10-15T06:57:43.927000 |
202,946 | 635,471 | Missing ComponentOne licenses.licx file | I'm working on an application that makes extensive use of ComponentOne's C1FlexGrid. Of the dozens we use, three are missing their licenses.licx file and cause the demo splash screen to pop up while I'm starting the application. Is there any way to determine which forms are causing this behavior. Short of checking hund... | According to Microsoft documentation only the executable assembly requires a licenses.licx. Dll assemblies with forms in them will still create one but it is ignored. This has been my experience as well. I would suggest opening each form in the designer view and rebuilding while in that view. This will usually add any ... | Missing ComponentOne licenses.licx file I'm working on an application that makes extensive use of ComponentOne's C1FlexGrid. Of the dozens we use, three are missing their licenses.licx file and cause the demo splash screen to pop up while I'm starting the application. Is there any way to determine which forms are causi... | TITLE:
Missing ComponentOne licenses.licx file
QUESTION:
I'm working on an application that makes extensive use of ComponentOne's C1FlexGrid. Of the dozens we use, three are missing their licenses.licx file and cause the demo splash screen to pop up while I'm starting the application. Is there any way to determine whi... | [
".net",
"componentone"
] | 8 | 6 | 8,495 | 4 | 0 | 2008-10-14T21:38:13.913000 | 2009-03-11T17:05:45.830000 |
202,962 | 203,095 | How do I connect to a MSSQL database using Perl's DBI module in Windows? | How do I connect to a MSSQL database using Perl's DBI module in Windows? | Use DBD::ODBC. If you just create a data source with the Control Panel -> System Management -> ODBC Data Sources -> System Data Source or User Data Source (those are the names as I remember them, but my XP isn't in English, so I can't check), then all you have to do is use the name of that data source in the DBI connec... | How do I connect to a MSSQL database using Perl's DBI module in Windows? How do I connect to a MSSQL database using Perl's DBI module in Windows? | TITLE:
How do I connect to a MSSQL database using Perl's DBI module in Windows?
QUESTION:
How do I connect to a MSSQL database using Perl's DBI module in Windows?
ANSWER:
Use DBD::ODBC. If you just create a data source with the Control Panel -> System Management -> ODBC Data Sources -> System Data Source or User Data... | [
"sql-server",
"windows",
"perl"
] | 11 | 13 | 32,229 | 4 | 0 | 2008-10-14T21:41:14.377000 | 2008-10-14T22:27:19.837000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.