PostId
int64 4
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 1
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -55
461k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
21.5k
| Title
stringlengths 3
250
| BodyMarkdown
stringlengths 5
30k
⌀ | Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 32
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,950 | 08/12/2008 15:17:47 | 509 | 08/06/2008 13:10:37 | 43 | 5 | SharePoint WSS 3.0 Integration with Mac OSX (either Safari or Firefox) | We have a SharePoint WSS site and some of our users on on the Mac OSX platform. Are there any tips or tricks to get a similar experience to Windows with document shares and calendars on the Mac? | osx | sharepoint | wss | null | null | null | open | SharePoint WSS 3.0 Integration with Mac OSX (either Safari or Firefox)
===
We have a SharePoint WSS site and some of our users on on the Mac OSX platform. Are there any tips or tricks to get a similar experience to Windows with document shares and calendars on the Mac? | 0 |
8,952 | 08/12/2008 15:20:25 | 565 | 08/06/2008 18:51:58 | 1 | 0 | Storing a file in a database as opposed to the file system? | Generally, how bad of a performance hit is storing a file in a database (specifically mssql) as opposed to the file system? I can't come up with a reason outside of application portability that I would want to store my files as varbinaries in SQL Server. | database | sqlserver2005 | filesystems | storage | null | null | open | Storing a file in a database as opposed to the file system?
===
Generally, how bad of a performance hit is storing a file in a database (specifically mssql) as opposed to the file system? I can't come up with a reason outside of application portability that I would want to store my files as varbinaries in SQL Server. | 0 |
8,966 | 08/12/2008 15:28:34 | 1,124 | 08/12/2008 15:13:50 | 1 | 0 | Using C#/WIA version 2.0 on Vista to Scan | I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.
In each and every one of them, the reference to WIALib is broken. When I go to add "Microsoft Windows Image Acquisition" as a reference, the only version available on my development workstation (also the machine that will run this) is 2.0.
Unfortunately, every one of these sample projects appear to have been coded against 1.x. The reference goes in as "WIA" instead of "WIALib". I took a shot, just changing the namespace import, but clearly the API is drastically different.
Is there any information on either implementing v2.0 or on upgrading one of these existing sample projects out there? | c# | .net | dotnet | wia | scanner | null | open | Using C#/WIA version 2.0 on Vista to Scan
===
I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.
In each and every one of them, the reference to WIALib is broken. When I go to add "Microsoft Windows Image Acquisition" as a reference, the only version available on my development workstation (also the machine that will run this) is 2.0.
Unfortunately, every one of these sample projects appear to have been coded against 1.x. The reference goes in as "WIA" instead of "WIALib". I took a shot, just changing the namespace import, but clearly the API is drastically different.
Is there any information on either implementing v2.0 or on upgrading one of these existing sample projects out there? | 0 |
8,968 | 08/12/2008 15:29:18 | 1,126 | 08/12/2008 15:24:01 | 1 | 0 | What OSS project should I look at if I need to do Spring friendly WorkFlow? | We need to add WorkFlow to our Spring managed application. Does anyone have any useful experience in using any of the myriad of OSS Work Flow solutions? Which one is best? Which one integrates with Spring best? Which ones should we avoid? | java | spring | workflow | null | null | null | open | What OSS project should I look at if I need to do Spring friendly WorkFlow?
===
We need to add WorkFlow to our Spring managed application. Does anyone have any useful experience in using any of the myriad of OSS Work Flow solutions? Which one is best? Which one integrates with Spring best? Which ones should we avoid? | 0 |
8,970 | 08/12/2008 15:31:40 | 85 | 08/01/2008 16:38:08 | 26 | 0 | Accessing iSight programatically? | Is it possible to access the iSight camera on a macbook programatically? By this I mean I would like to be able to just grab still frames from the iSight camera on command and then do something with them. If so, is it only accessible using objective c, or could other languages be used as well? | osx | objectivec | webcam | camera | isight | null | open | Accessing iSight programatically?
===
Is it possible to access the iSight camera on a macbook programatically? By this I mean I would like to be able to just grab still frames from the iSight camera on command and then do something with them. If so, is it only accessible using objective c, or could other languages be used as well? | 0 |
9,002 | 08/12/2008 15:58:30 | 162 | 08/02/2008 20:09:15 | 50 | 4 | How do I get dbmail to process items from the queue for SQL Server 2005? | When I use the sp_send_dbmail stored procedure, I get a message saying that my mail was queued. However, it never seems to get delivered. I can see them in the queue if I run this SQL:
SELECT * FROM msdb..sysmail_allitems WHERE sent_status = 'unsent'
This SQL returns a 1:
SELECT is_broker_enabled FROM sys.databases WHERE name = 'msdb'
This stored procedure returns STARTED:
msdb.dbo.sysmail_help_status_sp
The appropriate accounts and profiles have been set up and the mail was functioning at one point. There are no errors in msdb.dbo.sysmail_event_log. | sql-server | sqlserver2005 | null | null | null | null | open | How do I get dbmail to process items from the queue for SQL Server 2005?
===
When I use the sp_send_dbmail stored procedure, I get a message saying that my mail was queued. However, it never seems to get delivered. I can see them in the queue if I run this SQL:
SELECT * FROM msdb..sysmail_allitems WHERE sent_status = 'unsent'
This SQL returns a 1:
SELECT is_broker_enabled FROM sys.databases WHERE name = 'msdb'
This stored procedure returns STARTED:
msdb.dbo.sysmail_help_status_sp
The appropriate accounts and profiles have been set up and the mail was functioning at one point. There are no errors in msdb.dbo.sysmail_event_log. | 0 |
9,018 | 08/12/2008 16:20:58 | 636 | 08/07/2008 12:32:33 | 114 | 13 | Windows Mobile Device Emulator - how to save config permanently? | I am working at a client site where there is a proxy server (HTTP) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly which means that I lose this information and spend a lot of time setting:
* The emulators associated network card
* DNS servers for network card in the WM OS.
* Proxy servers in connection settings of WM OS.
How can I make my life easier? Can I save this as defaults in the emulator, or create an installer easily? | visual-studio | windows-mobile | device | emulator | null | null | open | Windows Mobile Device Emulator - how to save config permanently?
===
I am working at a client site where there is a proxy server (HTTP) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly which means that I lose this information and spend a lot of time setting:
* The emulators associated network card
* DNS servers for network card in the WM OS.
* Proxy servers in connection settings of WM OS.
How can I make my life easier? Can I save this as defaults in the emulator, or create an installer easily? | 0 |
9,019 | 08/12/2008 16:22:14 | 1,030 | 08/11/2008 15:40:52 | 38 | 4 | Best method for varchar date validation in T-SQL? | I have a stored procedure which takes as its parameter a *varchar* which needs to be cast as a *datetime* for later use:
SET @the_date = CAST(@date_string AS DATETIME)
I'm expecting the date string to be supplied in the format "DD-MON-YYYY", but in an effort to code defensively, if for some reason it can't be cast successfully, I want to default to the system date and continue. In PL/SQL I could use exception handling to achieve this and I could do this fairly easily with regular expressions too, but the limited pattern matching supported out of the box by Sybase doesn't let me do this and I can't rely on third party libraries or extensions. Is there a simple way of doing this in T-SQL?
| datetime | varchar | cast | validation | t-sql | null | open | Best method for varchar date validation in T-SQL?
===
I have a stored procedure which takes as its parameter a *varchar* which needs to be cast as a *datetime* for later use:
SET @the_date = CAST(@date_string AS DATETIME)
I'm expecting the date string to be supplied in the format "DD-MON-YYYY", but in an effort to code defensively, if for some reason it can't be cast successfully, I want to default to the system date and continue. In PL/SQL I could use exception handling to achieve this and I could do this fairly easily with regular expressions too, but the limited pattern matching supported out of the box by Sybase doesn't let me do this and I can't rely on third party libraries or extensions. Is there a simple way of doing this in T-SQL?
| 0 |
9,022 | 08/12/2008 16:25:18 | 296 | 08/04/2008 13:26:48 | 76 | 12 | Html entities inside asp.net page | Inside an asp.net page, shoul I use
<html><title>My page's title from México</title></html>
Or
<html><title>My page's title from México</title></html>
Both examples have same output. Since asp.net encodes all my pages to utf-8 there is no need to use html entities, is that right?
Thanks a lot. | encoding | null | null | null | null | null | open | Html entities inside asp.net page
===
Inside an asp.net page, shoul I use
<html><title>My page's title from México</title></html>
Or
<html><title>My page's title from México</title></html>
Both examples have same output. Since asp.net encodes all my pages to utf-8 there is no need to use html entities, is that right?
Thanks a lot. | 0 |
9,024 | 08/12/2008 16:27:39 | 614 | 08/07/2008 10:47:20 | 71 | 7 | HTTPS in IIS 5.1 | I'm using IIS 5.1 in Windows XP on my development computer. I'm going to set up HTTPS on my company's web server, but I want to try doing it locally before doing it on a production system.
But when I go into the Directory Security tab of my web site's configuration section, the "Secure communication" groupbox is disabled. Is there something I need to do to make this groupbox enabled? | iis | ssl | website | null | null | null | open | HTTPS in IIS 5.1
===
I'm using IIS 5.1 in Windows XP on my development computer. I'm going to set up HTTPS on my company's web server, but I want to try doing it locally before doing it on a production system.
But when I go into the Directory Security tab of my web site's configuration section, the "Secure communication" groupbox is disabled. Is there something I need to do to make this groupbox enabled? | 0 |
9,033 | 08/12/2008 16:32:24 | 31,505 | 2008-09-01 | 8 | 2 | Hidden Features of C# | This came to my mind after i learned the following from [this question][1]:
where T : struct
We, c# developers, all know the basics of c#. I mean declerations, conditionals, loops, operators, etc.
Some of us even mastered the stuff like [Generics][2], [anonymous types][3], [lambdas][4], [linq][5], ...
But what are the most hidden features or tricks of c# that even c# fans, addicts, experts barely know?
[1]: http://beta.stackoverflow.com/questions/8941/generic-type-checking
[2]: http://msdn.microsoft.com/en-us/library/512aeb7t(VS.80).aspx
[3]: http://msdn.microsoft.com/en-us/library/bb397696.aspx
[4]: http://msdn.microsoft.com/en-us/library/bb397687.aspx
[5]: http://msdn.microsoft.com/en-us/library/bb397676.aspx | c# | null | null | null | null | 02/29/2012 16:52:14 | not constructive | Hidden Features of C#
===
This came to my mind after i learned the following from [this question][1]:
where T : struct
We, c# developers, all know the basics of c#. I mean declerations, conditionals, loops, operators, etc.
Some of us even mastered the stuff like [Generics][2], [anonymous types][3], [lambdas][4], [linq][5], ...
But what are the most hidden features or tricks of c# that even c# fans, addicts, experts barely know?
[1]: http://beta.stackoverflow.com/questions/8941/generic-type-checking
[2]: http://msdn.microsoft.com/en-us/library/512aeb7t(VS.80).aspx
[3]: http://msdn.microsoft.com/en-us/library/bb397696.aspx
[4]: http://msdn.microsoft.com/en-us/library/bb397687.aspx
[5]: http://msdn.microsoft.com/en-us/library/bb397676.aspx | 4 |
9,044 | 08/12/2008 16:52:08 | 122 | 08/02/2008 07:56:07 | 2,100 | 109 | Can I specify a class wide group on a TestNG test case? | I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group "db-test", however I have found that this doesn't seem possible. I have tried the @Test annotation:
@Test(groups = { "db-test" })
public class DBTestBase {
}
However, this doesn't work because the @Test annotation will try to make a bunch of methods into tests, and warnings/errors pop up in eclipse when the tests are run.
So I tried disabling the test, so at least the groups are assigned:
@Test(enabled = false, groups = { "db-test" })
public class DBTestBase {
}
but then any @BeforeTest (and other similar annotations) ALSO get disabled... which is of course not what I want.
I would like some way to annotate a class as being of a particular type of group, but it doesn't quite seem possible in TestNG. Does anyone have any other ideas? | java | testng | null | null | null | null | open | Can I specify a class wide group on a TestNG test case?
===
I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group "db-test", however I have found that this doesn't seem possible. I have tried the @Test annotation:
@Test(groups = { "db-test" })
public class DBTestBase {
}
However, this doesn't work because the @Test annotation will try to make a bunch of methods into tests, and warnings/errors pop up in eclipse when the tests are run.
So I tried disabling the test, so at least the groups are assigned:
@Test(enabled = false, groups = { "db-test" })
public class DBTestBase {
}
but then any @BeforeTest (and other similar annotations) ALSO get disabled... which is of course not what I want.
I would like some way to annotate a class as being of a particular type of group, but it doesn't quite seem possible in TestNG. Does anyone have any other ideas? | 0 |
9,051 | 08/12/2008 17:02:24 | 25 | 08/01/2008 12:15:23 | 331 | 36 | What is best blogging host for programmers/code formatting? | I was just reading [how can you tell whether you're ready to start your own blog.][1] The answers are so good and inspiring that I made rush to start my own blog using [blogger][2] and stopped right in my tracks. I looked on the menu bar as I was creating my first post, and duh, there's no nice "code sample" formatting option like the one on Stackoverflow.
Does this exist on any of the standard blogging options (blogger/wordpress/livejournal) or is this something I'm going to have to code up myself?
[1]: http://stackoverflow.com/questions/8921/how-can-you-tell-whether-youre-ready-to-start-you-own-blog
[2]: http://www.blogger.com | blog | formatting | programmer | self-improvement | null | 11/25/2011 13:59:55 | not constructive | What is best blogging host for programmers/code formatting?
===
I was just reading [how can you tell whether you're ready to start your own blog.][1] The answers are so good and inspiring that I made rush to start my own blog using [blogger][2] and stopped right in my tracks. I looked on the menu bar as I was creating my first post, and duh, there's no nice "code sample" formatting option like the one on Stackoverflow.
Does this exist on any of the standard blogging options (blogger/wordpress/livejournal) or is this something I'm going to have to code up myself?
[1]: http://stackoverflow.com/questions/8921/how-can-you-tell-whether-youre-ready-to-start-you-own-blog
[2]: http://www.blogger.com | 4 |
9,052 | 08/12/2008 17:03:28 | 428,190 | 08/09/2008 23:23:13 | 37 | 5 | Is there a way for MS Access to grab the current Active Directory user? | I'm working on a spec for a piece of software for my company and as part of the auditing system I think it would be neat if there was a way to grab the current Active Directory user.
Hopefully something like:
Dim strUser as String
strUser = ActiveDirectory.User()
MsgBox "Welcome back, " & strUser
| activedirectory | access | directory | microsoftaccess | ms-access | null | open | Is there a way for MS Access to grab the current Active Directory user?
===
I'm working on a spec for a piece of software for my company and as part of the auditing system I think it would be neat if there was a way to grab the current Active Directory user.
Hopefully something like:
Dim strUser as String
strUser = ActiveDirectory.User()
MsgBox "Welcome back, " & strUser
| 0 |
9,072 | 08/12/2008 17:47:26 | 67 | 08/01/2008 14:49:18 | 80 | 6 | YUI drag&drop proxy drag | Question for YUI experts...
I have a table and I've made each cell of the first row draggable by [proxy][1]. In IE, when the drag proxy is released, the original table cell actually jumps to wherever the release point was. How can I prevent this from happening? Essentially, I want to know where the proxy was dropped and handle my logic from there but I don't want the original to move.
[1]: http://developer.yahoo.com/yui/examples/dragdrop/dd-proxy.html | yui | dragdrop | null | null | null | null | open | YUI drag&drop proxy drag
===
Question for YUI experts...
I have a table and I've made each cell of the first row draggable by [proxy][1]. In IE, when the drag proxy is released, the original table cell actually jumps to wherever the release point was. How can I prevent this from happening? Essentially, I want to know where the proxy was dropped and handle my logic from there but I don't want the original to move.
[1]: http://developer.yahoo.com/yui/examples/dragdrop/dd-proxy.html | 0 |
9,081 | 08/12/2008 17:55:32 | 116 | 08/02/2008 05:51:57 | 1,725 | 105 | grep a file, but show several surrounding lines? | I would like to grep for a string, but show the preceding 5 lines and following 5 lines as well as the matched line. I'm scanning for errors in a logfile, and want to see the context.
Any clues for the clueless? | linux | search | logging | grep | null | null | open | grep a file, but show several surrounding lines?
===
I would like to grep for a string, but show the preceding 5 lines and following 5 lines as well as the matched line. I'm scanning for errors in a logfile, and want to see the context.
Any clues for the clueless? | 0 |
9,091 | 08/12/2008 18:01:27 | 571 | 08/06/2008 20:19:59 | 452 | 37 | Accessing audio/video metadata with .NET | What is the best way to get and set the meta data for mp3, mp4, avi files etc. with .NET? | .net | video | audio | mp3 | null | null | open | Accessing audio/video metadata with .NET
===
What is the best way to get and set the meta data for mp3, mp4, avi files etc. with .NET? | 0 |
9,104 | 08/12/2008 18:27:35 | 232 | 08/03/2008 20:02:07 | 43 | 10 | Add a bookmark that is only javascript, not a URL | I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...
I want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do a window.location = on that URL.
I know that I could make a page and keep it on my local machine and just refer to it that way, but I was just wondering if you could bypass that step and actually have the "location" of the bookmark really just be javascript. I could have sworn that this was possible years ago, but I can't find anything that tells me either way now. | javascrip | bookmark | null | null | null | null | open | Add a bookmark that is only javascript, not a URL
===
I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...
I want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do a window.location = on that URL.
I know that I could make a page and keep it on my local machine and just refer to it that way, but I was just wondering if you could bypass that step and actually have the "location" of the bookmark really just be javascript. I could have sworn that this was possible years ago, but I can't find anything that tells me either way now. | 0 |
9,122 | 08/12/2008 18:45:55 | 44 | 08/01/2008 13:03:39 | 102 | 4 | Select all columns except one in MySQL? | I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this? | mysql | select | columns | null | null | null | open | Select all columns except one in MySQL?
===
I'm trying to use a select statement to get all of the columns from a certain MySQL table except one. Is there a simple way to do this? | 0 |
9,136 | 08/12/2008 19:01:17 | 767 | 08/08/2008 17:04:18 | 1 | 0 | Enterprise Library CacheFactory.GetCacheManager Throws Null Ref | I'm trying to convert an application using the 1.1 version of the Enterprise Library Caching block over to the 2.0 version. I think where I'm really having a problem is that the configuration for the different EntLib pieces was split out over several files. Apparently, this used to be handled by the **ConfigurationManagerSectionHandler**, but is now obsolete in favor of the built-in configuration mechanisms in .NET 2.0.
I'm having a hard time finding a good example of how to do this configuration file splitting, especially in the context of EntLib. Has anyone else dealt with this? | c# | configuration | enterpriselibrary | null | null | null | open | Enterprise Library CacheFactory.GetCacheManager Throws Null Ref
===
I'm trying to convert an application using the 1.1 version of the Enterprise Library Caching block over to the 2.0 version. I think where I'm really having a problem is that the configuration for the different EntLib pieces was split out over several files. Apparently, this used to be handled by the **ConfigurationManagerSectionHandler**, but is now obsolete in favor of the built-in configuration mechanisms in .NET 2.0.
I'm having a hard time finding a good example of how to do this configuration file splitting, especially in the context of EntLib. Has anyone else dealt with this? | 0 |
9,143 | 08/12/2008 19:10:25 | 205 | 08/03/2008 13:31:27 | 116 | 9 | FogBugz compared to OnTime | Has anyone used both FogBugz and Axosoft's OnTime and care to offer an opinion? AxoSoft has a big [feature comparison chart][1] but I'm also interested in more subjective thoughts on things like ease of use and stability.
[1]: http://www.axosoft.com/products/ontime_competition.aspx | fogbugz | issue-tracking | ontime | null | null | null | open | FogBugz compared to OnTime
===
Has anyone used both FogBugz and Axosoft's OnTime and care to offer an opinion? AxoSoft has a big [feature comparison chart][1] but I'm also interested in more subjective thoughts on things like ease of use and stability.
[1]: http://www.axosoft.com/products/ontime_competition.aspx | 0 |
9,161 | 08/12/2008 19:27:35 | 71 | 08/01/2008 15:05:56 | 419 | 53 | Opening a file in my application from File Explorer | I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File Explorer?
Do I grab an argsc/argsv variable in my Application.Load() method or is it something else? | vb.net | file-extension | null | null | null | null | open | Opening a file in my application from File Explorer
===
I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File Explorer?
Do I grab an argsc/argsv variable in my Application.Load() method or is it something else? | 0 |
9,173 | 08/12/2008 19:35:44 | 1,135 | 08/12/2008 18:03:12 | 51 | 1 | Lingering assembly dependency in C# .NET | My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in place. Let me elaborate.
This project used to throw and catch a custom exception class - the *SuperException* - which was derived from the standard System.Exception and lived in a separate, precompiled assembly, *SuperAssembly.DLL*, which I referenced.
Eventually, I decided this was a pointless exercise and replaced all *SuperExceptions* with a System.SuitableStandardException in each case. I removed the reference to *SuperException.DLL*, but am now met with the following on trying to compile the project:
The type 'SuperException' is defined in an assembly that is not referenced. You must add a reference to assembly 'SuperException, Version=1.1.0.0 (...)'
The source file referenced by the error doesn't seem relevant; it's the project namespace that gets highlighted in the IDE.
Now, here's the thing:
1. All uses of *SuperException* have been eliminated from the project's code.
2. Compared to another project that compiles fine without a reference to *SuperException.DLL*, I only reference one more assembly - and *that* references nothing that my project doesn't reference itself. While it's possible that any of these dependencies could throw *SuperExceptions*, I'm only catching the base Exception class and in any case... the other project builds fine!
3. I've done Visual Studio's "Clean Solution" and cleared everything out by hand, many times.
It's not the end of the world to include this reference, I just don't see why it's necessary any more. Nrrrgg. Any pointers welcome! | c# | .net | dependencies | null | null | null | open | Lingering assembly dependency in C# .NET
===
My C# project - we'll call it the SuperUI - used to make use of a class from an external assembly. Now it doesn't, but the compiler won't let me build the project without the assembly reference in place. Let me elaborate.
This project used to throw and catch a custom exception class - the *SuperException* - which was derived from the standard System.Exception and lived in a separate, precompiled assembly, *SuperAssembly.DLL*, which I referenced.
Eventually, I decided this was a pointless exercise and replaced all *SuperExceptions* with a System.SuitableStandardException in each case. I removed the reference to *SuperException.DLL*, but am now met with the following on trying to compile the project:
The type 'SuperException' is defined in an assembly that is not referenced. You must add a reference to assembly 'SuperException, Version=1.1.0.0 (...)'
The source file referenced by the error doesn't seem relevant; it's the project namespace that gets highlighted in the IDE.
Now, here's the thing:
1. All uses of *SuperException* have been eliminated from the project's code.
2. Compared to another project that compiles fine without a reference to *SuperException.DLL*, I only reference one more assembly - and *that* references nothing that my project doesn't reference itself. While it's possible that any of these dependencies could throw *SuperExceptions*, I'm only catching the base Exception class and in any case... the other project builds fine!
3. I've done Visual Studio's "Clean Solution" and cleared everything out by hand, many times.
It's not the end of the world to include this reference, I just don't see why it's necessary any more. Nrrrgg. Any pointers welcome! | 0 |
10,702,287 | 05/22/2012 12:45:07 | 1,410,209 | 05/22/2012 12:30:45 | 1 | 0 | Set a only some rows invisible in a automaicly createt list | I want to work dynamicly with listviews.
They become createt automaticly but for hiding features i want set the visiblety of single entrys to "gone" so the entry is createt but the space isn´t used.
Now i create the lists by stringarrays and every clickevent of an entry gets the ID of the clicked entry for opening the next list with the right stringarray.
0, 1, 2, 3, 4.
Later it have to be possible so set the row invisible or gone. The IDs keep there value and hop over the invisible row.
0, 1, 4.
2 and 3 become still createt but they are gone.
Simple question: Is thas possible in general or have i to search for an other sollution? | java | android | null | null | null | null | open | Set a only some rows invisible in a automaicly createt list
===
I want to work dynamicly with listviews.
They become createt automaticly but for hiding features i want set the visiblety of single entrys to "gone" so the entry is createt but the space isn´t used.
Now i create the lists by stringarrays and every clickevent of an entry gets the ID of the clicked entry for opening the next list with the right stringarray.
0, 1, 2, 3, 4.
Later it have to be possible so set the row invisible or gone. The IDs keep there value and hop over the invisible row.
0, 1, 4.
2 and 3 become still createt but they are gone.
Simple question: Is thas possible in general or have i to search for an other sollution? | 0 |
10,711,446 | 05/22/2012 23:19:35 | 751,204 | 05/12/2011 19:30:39 | 53 | 5 | JDBC Call to Oracle Stored Procedure with parameters of type PL SQL table | I need to make JDBC call to a procedure with parameters of type PL/SQL table.
I am trying with struct object. But I am not doing some thing correct.
I get the error:
ORA-04043: object "scott"."objListStruct" does not exist.
Here is the code snippet:
conn = Application.getDBConnection();
CallableStatement cStmt = null;
cStmt= conn.prepareCall("{call package1.procedure1"+"(?)}");
Struct objListStruct = conn.createStruct("objListStruct",
objNameArr.toArray());
cStmt.setObject(1, objListStruct,Types.STRUCT);
The parameter, "?" for this procedure, is of type:
TYPE t_name IS TABLE OF TABLE1.name%TYPE
Any insight to make this work is highly appreciated.
Thanks
| java | oracle | jdbc | plsql | cursor | null | open | JDBC Call to Oracle Stored Procedure with parameters of type PL SQL table
===
I need to make JDBC call to a procedure with parameters of type PL/SQL table.
I am trying with struct object. But I am not doing some thing correct.
I get the error:
ORA-04043: object "scott"."objListStruct" does not exist.
Here is the code snippet:
conn = Application.getDBConnection();
CallableStatement cStmt = null;
cStmt= conn.prepareCall("{call package1.procedure1"+"(?)}");
Struct objListStruct = conn.createStruct("objListStruct",
objNameArr.toArray());
cStmt.setObject(1, objListStruct,Types.STRUCT);
The parameter, "?" for this procedure, is of type:
TYPE t_name IS TABLE OF TABLE1.name%TYPE
Any insight to make this work is highly appreciated.
Thanks
| 0 |
10,708,950 | 05/22/2012 19:39:42 | 728,790 | 04/28/2011 07:35:32 | 412 | 4 | Scala abstract type bounds cross referencing | I have two abstract classes which will hold references to each other:
abstract class Hex
{
type SideT <: Side
}
abstract class Side //In separate file
{
type HexT <: Hex
}
How / can I type bound the type members so as the types of HexT in the SideT members of the derived Hex classes will always be the derived Hex class? so for a derived class HexA:
HexA#SideT#HexT = HexA
And similarly that the types of SideT in the HexT members of all the derived Side classes will the derived Side Class:
SideB#HexT#SideT = SideB | scala | type-bounds | null | null | null | null | open | Scala abstract type bounds cross referencing
===
I have two abstract classes which will hold references to each other:
abstract class Hex
{
type SideT <: Side
}
abstract class Side //In separate file
{
type HexT <: Hex
}
How / can I type bound the type members so as the types of HexT in the SideT members of the derived Hex classes will always be the derived Hex class? so for a derived class HexA:
HexA#SideT#HexT = HexA
And similarly that the types of SideT in the HexT members of all the derived Side classes will the derived Side Class:
SideB#HexT#SideT = SideB | 0 |
10,708,953 | 05/22/2012 19:39:49 | 1,411,071 | 05/22/2012 19:31:26 | 1 | 0 | unexpected result when using Floating-point literals in javascrip | look at this code
var x=2E-7
console.log(x);
when i run it result will be 2E-7 instead of 20000000
why?is it a bug or sth else? | javascript | null | null | null | null | null | open | unexpected result when using Floating-point literals in javascrip
===
look at this code
var x=2E-7
console.log(x);
when i run it result will be 2E-7 instead of 20000000
why?is it a bug or sth else? | 0 |
10,711,461 | 05/22/2012 23:21:07 | 1,128,524 | 01/03/2012 19:07:52 | 66 | 3 | codeigniter select as | how doHow do we do
`select table.value as table_value from table ` in codeigniter?
The `AS` part doesnt work because when i try to access the value,
this doesnt work:
$qry_inp = 'select table.value as table_value from table '
$query = $this->db->query($qry_inp);
echo $query->row('table_value ');// this will be empty, but it shouldn`t be
doesn`t matter if its in AR or simple query
| php | codeigniter | select | null | null | null | open | codeigniter select as
===
how doHow do we do
`select table.value as table_value from table ` in codeigniter?
The `AS` part doesnt work because when i try to access the value,
this doesnt work:
$qry_inp = 'select table.value as table_value from table '
$query = $this->db->query($qry_inp);
echo $query->row('table_value ');// this will be empty, but it shouldn`t be
doesn`t matter if its in AR or simple query
| 0 |
9,185 | 08/12/2008 19:46:43 | 999 | 08/11/2008 12:32:21 | 117 | 19 | What is the best MySQL Client Application for Windows | Are there any MySQL Client applications for Windows that get even close to what the Enterprise Manager / Server Management Studio is for Microsoft SQL?
I have two requirements and one "nice to have" feature:
1. Editing table structure should not be a pain in the a** -> I don't want to click an "add another column" button, then edit the column's properties in a new window. What I want is adding a new row in a "column-list table" as it is done in the Management Studio.
2. Same applies to adding new rows to the table. Should be as easy as editing an Excel sheet.
3. Nice to have: I'd like to have a feature that's comparable to the database diagrams in the Management Studio, where I can visualize "foreign key relations" between tables. They don't actually need to become [constraints][1] because I mainly use MyISAM (which doesn't support constraints). Just the diagrams are a lot of help.
Is there any application that you can recommend to me? Free would be a plus, but anything up to $100 would be okay, too.
[1]: http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html | mysql | frontend | client | windows | null | 02/10/2012 03:59:36 | not constructive | What is the best MySQL Client Application for Windows
===
Are there any MySQL Client applications for Windows that get even close to what the Enterprise Manager / Server Management Studio is for Microsoft SQL?
I have two requirements and one "nice to have" feature:
1. Editing table structure should not be a pain in the a** -> I don't want to click an "add another column" button, then edit the column's properties in a new window. What I want is adding a new row in a "column-list table" as it is done in the Management Studio.
2. Same applies to adding new rows to the table. Should be as easy as editing an Excel sheet.
3. Nice to have: I'd like to have a feature that's comparable to the database diagrams in the Management Studio, where I can visualize "foreign key relations" between tables. They don't actually need to become [constraints][1] because I mainly use MyISAM (which doesn't support constraints). Just the diagrams are a lot of help.
Is there any application that you can recommend to me? Free would be a plus, but anything up to $100 would be okay, too.
[1]: http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html | 4 |
9,191 | 08/12/2008 19:50:13 | 755 | 08/08/2008 15:28:16 | 72 | 6 | How to obtain good concurrent read performance from disk. | I'd like to ask a question then follow it up with my own answer, but also see what answers other people have.
We have two large files which we'd like to read from two separate threads concurrently. One thread will sequentially read fileA while the other thread will sequentially read fileB. There is no locking or communication between the threads, both are sequentially reading as fast as they can, and both are immediately discarding the data they read.
Our experience with this setup on Windows is very poor. The combined throughput of the two threads is in the order of 2-3 MiB/sec. The drive seems to be spending most of its time seeking backwards and forwards between the two files, presumably reading very little after each seek.
If we disable one of the threads and temporarily look at the performance of a single thread then we get much better bandwidth (~45 MiB/sec for this machine). So clearly the bad two-thread performance is an artefact of the OS disk scheduler.
**Is there anything we can do to improve the concurrent thread read performance?** Perhaps by using different APIs or by tweaking the OS disk scheduler parameters in some way.
Some details:
The files are in the order of 2 GiB each on a machine with 2GiB of RAM. For the purpose of this question we consider them not to be cached and perfectly defragmented. We have used defrag tools and rebooted to ensure this is the case.
We are using no special APIs to read these files. The behaviour is repeatable across various bog-standard APIs such as Win32's CreateFile, C's fopen, C++'s std::ifstream, Java's FileInputStream, etc.
Each thread spins in a loop making calls to the read function. We have varied the number of bytes requested from the API each iteration from values between 1KiB up to 128MiB. Varying this has had no effect, so clearly the amount the OS is physically reading after each disk seek is not dictated by this number. This is exactly what should be expected.
The dramatic difference between one-thread and two-thread performance is repeatable across Windows 2000, Windows XP (32-bit and 64-bit), Windows Server 2003, and also with and without hardware RAID5. | windows | multithreading | file-io | null | null | null | open | How to obtain good concurrent read performance from disk.
===
I'd like to ask a question then follow it up with my own answer, but also see what answers other people have.
We have two large files which we'd like to read from two separate threads concurrently. One thread will sequentially read fileA while the other thread will sequentially read fileB. There is no locking or communication between the threads, both are sequentially reading as fast as they can, and both are immediately discarding the data they read.
Our experience with this setup on Windows is very poor. The combined throughput of the two threads is in the order of 2-3 MiB/sec. The drive seems to be spending most of its time seeking backwards and forwards between the two files, presumably reading very little after each seek.
If we disable one of the threads and temporarily look at the performance of a single thread then we get much better bandwidth (~45 MiB/sec for this machine). So clearly the bad two-thread performance is an artefact of the OS disk scheduler.
**Is there anything we can do to improve the concurrent thread read performance?** Perhaps by using different APIs or by tweaking the OS disk scheduler parameters in some way.
Some details:
The files are in the order of 2 GiB each on a machine with 2GiB of RAM. For the purpose of this question we consider them not to be cached and perfectly defragmented. We have used defrag tools and rebooted to ensure this is the case.
We are using no special APIs to read these files. The behaviour is repeatable across various bog-standard APIs such as Win32's CreateFile, C's fopen, C++'s std::ifstream, Java's FileInputStream, etc.
Each thread spins in a loop making calls to the read function. We have varied the number of bytes requested from the API each iteration from values between 1KiB up to 128MiB. Varying this has had no effect, so clearly the amount the OS is physically reading after each disk seek is not dictated by this number. This is exactly what should be expected.
The dramatic difference between one-thread and two-thread performance is repeatable across Windows 2000, Windows XP (32-bit and 64-bit), Windows Server 2003, and also with and without hardware RAID5. | 0 |
9,204 | 08/12/2008 20:06:13 | 578 | 08/06/2008 22:07:45 | 26 | 3 | IL level code debugger | Is there any IL level debugger in form of a VS plugin or standalone application?
Visual studio’s debugger is great, but it allows you to debug on either HLL code level or asselbly language, you can’t debug IL.
It seems that in some situations it would be useful to have an opportunity to debug at IL level.
In particular it might be helpful when debugging a problem in the code that you don't have the source of.
It is arguable if it is actually useful to debug IL when you don't have the source, but anyway.
| .net | debugging | il | null | null | null | open | IL level code debugger
===
Is there any IL level debugger in form of a VS plugin or standalone application?
Visual studio’s debugger is great, but it allows you to debug on either HLL code level or asselbly language, you can’t debug IL.
It seems that in some situations it would be useful to have an opportunity to debug at IL level.
In particular it might be helpful when debugging a problem in the code that you don't have the source of.
It is arguable if it is actually useful to debug IL when you don't have the source, but anyway.
| 0 |
9,228 | 08/12/2008 20:48:30 | 357 | 08/05/2008 01:29:23 | 535 | 29 | ADO.NET Connection Pooling & MS SQL | <ul>
<li>What is it?</li>
<li>How do I implement connection pooling with MS SQL?</li>
<li>What are the performance ramifications when</li>
<ul>
<li>Executing many queries one-after-the other (i.e. using a loop with 30K+ iterations calling a stored procedure)?</li>
<li>Executing a few queries that take a long time (10+ min)?</li>
</ul>
<li>Are there any best practices?</li>
</ul> | mssql | performance | ado.net | null | null | null | open | ADO.NET Connection Pooling & MS SQL
===
<ul>
<li>What is it?</li>
<li>How do I implement connection pooling with MS SQL?</li>
<li>What are the performance ramifications when</li>
<ul>
<li>Executing many queries one-after-the other (i.e. using a loop with 30K+ iterations calling a stored procedure)?</li>
<li>Executing a few queries that take a long time (10+ min)?</li>
</ul>
<li>Are there any best practices?</li>
</ul> | 0 |
9,231 | 08/12/2008 20:49:54 | 538 | 08/06/2008 15:35:43 | 1 | 2 | Offsite backups | I was recently tasked with coming up with an offsite backup strategy. We have about 2TB of data that would need to be backed up so our needs are a little out of the norm.
I looked into Iron Mountain and they wanted $12,000 a month!
Does anyone have any suggestions on how best to handle backing up this much data on a budget (like a tenth of Iron Mountain)? How do other companies afford to do this?
Thanks! | backup | offsite | null | null | null | null | open | Offsite backups
===
I was recently tasked with coming up with an offsite backup strategy. We have about 2TB of data that would need to be backed up so our needs are a little out of the norm.
I looked into Iron Mountain and they wanted $12,000 a month!
Does anyone have any suggestions on how best to handle backing up this much data on a budget (like a tenth of Iron Mountain)? How do other companies afford to do this?
Thanks! | 0 |
9,240 | 08/12/2008 21:06:38 | 1,144 | 08/12/2008 19:00:54 | 1 | 0 | Interfaces on different logic layers | Say you have an application divided into 3-tiers. GUI, business logic and data access. In your business logic layer you have described your business objects. Getters, accessors and so on... you get the idea. The interface to the business logic layer guarantees safe usage of the business logic, so all the methods and accessors you call will validate input.
This great when you write the UI code, because you have a neatly defined interface that you can trust.
But here comes the tricky part, when you start writing the data access layer, the interface to the business logic does not accomodate your needs. You need to have more accessors and getters to set fields which are used to be hidden. Now you are forced to erode the interface of your business logic. Now it is possible set fields from the UI layer which the UI layer has no business setting.
Because of the changes needed for the data access layer, the interface to the business logic has eroded to the point where it is possible to even set the business logic with invalid data. Thus, the interface does not guarantee safe usage anymore.
I hope I explained the problem clearly enough. How do you prevent interface eroding, maintain information hiding and encapsulation and still accomodate different interface needs among different layers? | architecture | null | null | null | null | null | open | Interfaces on different logic layers
===
Say you have an application divided into 3-tiers. GUI, business logic and data access. In your business logic layer you have described your business objects. Getters, accessors and so on... you get the idea. The interface to the business logic layer guarantees safe usage of the business logic, so all the methods and accessors you call will validate input.
This great when you write the UI code, because you have a neatly defined interface that you can trust.
But here comes the tricky part, when you start writing the data access layer, the interface to the business logic does not accomodate your needs. You need to have more accessors and getters to set fields which are used to be hidden. Now you are forced to erode the interface of your business logic. Now it is possible set fields from the UI layer which the UI layer has no business setting.
Because of the changes needed for the data access layer, the interface to the business logic has eroded to the point where it is possible to even set the business logic with invalid data. Thus, the interface does not guarantee safe usage anymore.
I hope I explained the problem clearly enough. How do you prevent interface eroding, maintain information hiding and encapsulation and still accomodate different interface needs among different layers? | 0 |
9,256 | 08/12/2008 21:27:40 | 905 | 08/10/2008 09:37:14 | 346 | 29 | Printing Flex components in FireFox 3 | Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX.
They print fine in IE7, even IE6.
We need these charts to print, but they also have dynamic content. I don't really want to draw them again as images when the user prints - the Flex component should do it.
We've found a <a href="http://www.anychart.com/blog/2007/09/23/solving-problem-with-printing-flash-content-in-firefox-browser/">potential workaround</a>, but unfortunately it doesn't work in FireFox 3 (in FX2 it sort-of works, but not well enough).
Anyone know a workaround? | flex | actionscript-3 | firefox | null | null | null | open | Printing Flex components in FireFox 3
===
Thanks to FireFox's buggy implementation of ActiveX components (it really should take an image of them when printing) Flex components (in our case charts) don't print in FX.
They print fine in IE7, even IE6.
We need these charts to print, but they also have dynamic content. I don't really want to draw them again as images when the user prints - the Flex component should do it.
We've found a <a href="http://www.anychart.com/blog/2007/09/23/solving-problem-with-printing-flash-content-in-firefox-browser/">potential workaround</a>, but unfortunately it doesn't work in FireFox 3 (in FX2 it sort-of works, but not well enough).
Anyone know a workaround? | 0 |
9,272 | 08/12/2008 21:44:32 | 1,146 | 08/12/2008 19:16:00 | 11 | 3 | Finding untracked files in a Perforce tree | Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree? | version-control | perforce | null | null | null | null | open | Finding untracked files in a Perforce tree
===
Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree? | 0 |
9,275 | 08/12/2008 21:47:45 | 1,104 | 08/12/2008 12:02:17 | 11 | 5 | Using Parameters in MS Reporting Services (SQL 2008) against an ODBC data source | I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the @parmName I am assuming will be replaced is actaully being sent as part of the SQL statement. Am I missing a configuration setting somewhere or is this simply not possible?
I am not using the filter option in the tool because this appears to bring back the full dataset from the database and do the filtering on the SQL Server. | visual-studio | reporting-services | sqlserver2008 | odbc | null | null | open | Using Parameters in MS Reporting Services (SQL 2008) against an ODBC data source
===
I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the @parmName I am assuming will be replaced is actaully being sent as part of the SQL statement. Am I missing a configuration setting somewhere or is this simply not possible?
I am not using the filter option in the tool because this appears to bring back the full dataset from the database and do the filtering on the SQL Server. | 0 |
9,279 | 08/12/2008 21:56:10 | 302 | 08/04/2008 13:39:41 | 183 | 9 | Keep Remote Directory Up-to-date | I absolutely love the [Keep Remote Directory Up-to-date][1] feature in [Winscp][2]. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can *theoretically* be accomplished using [changedfiles][3] or [rsync][4], but I've always found the tutorials for both tools to be lacking and/or contradictory.
I basically just need a tool that works in OSX or Linux and keeps a remote directory in sync (mirrored) with a local directory while I make changes to the local directory.
[1]: http://winscp.net/eng/docs/task_keep_up_to_date
[2]: http://winscp.net/
[3]: http://freshmeat.net/projects/changedfiles/
[4]: http://samba.anu.edu.au/rsync/ | linux | osx | rsync | ssh | sftp | null | open | Keep Remote Directory Up-to-date
===
I absolutely love the [Keep Remote Directory Up-to-date][1] feature in [Winscp][2]. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can *theoretically* be accomplished using [changedfiles][3] or [rsync][4], but I've always found the tutorials for both tools to be lacking and/or contradictory.
I basically just need a tool that works in OSX or Linux and keeps a remote directory in sync (mirrored) with a local directory while I make changes to the local directory.
[1]: http://winscp.net/eng/docs/task_keep_up_to_date
[2]: http://winscp.net/
[3]: http://freshmeat.net/projects/changedfiles/
[4]: http://samba.anu.edu.au/rsync/ | 0 |
9,289 | 08/12/2008 22:21:30 | 268 | 08/04/2008 10:11:11 | 256 | 17 | Removing elements with Array.map in JavaScript | I would like to filter an array of items by using the map() function. Here is a code snippet:
var filteredItems = items.map(function(item)
{
if( ...some condition... )
{
return item;
}
});
The problem is that filtered out items still uses space in the array and I would like to completely wipe them out.
Any idea? | js | javascript | functional | map | remove | null | open | Removing elements with Array.map in JavaScript
===
I would like to filter an array of items by using the map() function. Here is a code snippet:
var filteredItems = items.map(function(item)
{
if( ...some condition... )
{
return item;
}
});
The problem is that filtered out items still uses space in the array and I would like to completely wipe them out.
Any idea? | 0 |
9,301 | 08/12/2008 23:01:10 | 1,100 | 08/12/2008 11:58:29 | 1 | 1 | Weird event behavior in IE7 | I'm having trouble with events in **Internet Explorer 7**
When I have a **form** with **TWO+ input[type=text]** and I press **Enter key** the events occurs in this order:
1. submit button, onClick
1. form, onSubmit
Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
**BUT...**
If a have only **ONE input[type=text]** and I press **Enter key** the submit button onClick event **DOESN'T FIRES**. Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
Any Ideas? | javascript | events | internet-explorer | null | null | null | open | Weird event behavior in IE7
===
I'm having trouble with events in **Internet Explorer 7**
When I have a **form** with **TWO+ input[type=text]** and I press **Enter key** the events occurs in this order:
1. submit button, onClick
1. form, onSubmit
Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
**BUT...**
If a have only **ONE input[type=text]** and I press **Enter key** the submit button onClick event **DOESN'T FIRES**. Sample code:
<FORM onSubmit="{alert('form::onSubmit'); return false;}">
<INPUT TYPE="text">
<INPUT TYPE="submit" onClick="{alert('buttom::onClick');}">
</FORM>
Any Ideas? | 0 |
9,303 | 08/12/2008 23:04:10 | 889 | 08/10/2008 08:04:03 | 79 | 6 | How do you retrieve selected text using Regex in C#? | How do you retrieve selected text using Regex in C#?
I am looking for c# code that is equivalent to this perl code:
$indexVal = 0;
if($string =~ /Index: (\d*)/){$indexVal = $1;} | c# | regex | perl | null | null | null | open | How do you retrieve selected text using Regex in C#?
===
How do you retrieve selected text using Regex in C#?
I am looking for c# code that is equivalent to this perl code:
$indexVal = 0;
if($string =~ /Index: (\d*)/){$indexVal = $1;} | 0 |
9,304 | 08/12/2008 23:06:58 | 91 | 08/01/2008 17:55:22 | 3,555 | 232 | .net 3.0 Auto-Properties - useful or not? | I am used to create my Properties in C# using a private and a public field:
private string title;
public string Title
{
get { return title; }
set { title = value; }
}
Now, with .net 3.0, we got auto-properties:
public string Title { get; set; }
I know this is more a philosophical/subjective questions, but is there any reason to use these auto-properties except from saving 5 lines of code for each field? My personal gripe is that those properties are hiding stuff from me, and I am not a big fan of black magic.
In fact, the hidden private field does not even show up in the Debugger, which is OK given the fact that the get/set functions do nothing. But when I want to actually implement some getter/setter logic, I have to use the private/public pair anyway.
I see the benefit that I save a lot of code (1 vs 6 lines) without losing the ability to change the getter/setter logic later, but then again I can already do that by simply declaring a public field "Public string Title" without the need of the { get; set; } block, thus even saving more code.
So, what am I missing here? Why would anyone actually want to use auto-properties? | c# | .net | null | null | null | null | open | .net 3.0 Auto-Properties - useful or not?
===
I am used to create my Properties in C# using a private and a public field:
private string title;
public string Title
{
get { return title; }
set { title = value; }
}
Now, with .net 3.0, we got auto-properties:
public string Title { get; set; }
I know this is more a philosophical/subjective questions, but is there any reason to use these auto-properties except from saving 5 lines of code for each field? My personal gripe is that those properties are hiding stuff from me, and I am not a big fan of black magic.
In fact, the hidden private field does not even show up in the Debugger, which is OK given the fact that the get/set functions do nothing. But when I want to actually implement some getter/setter logic, I have to use the private/public pair anyway.
I see the benefit that I save a lot of code (1 vs 6 lines) without losing the ability to change the getter/setter logic later, but then again I can already do that by simply declaring a public field "Public string Title" without the need of the { get; set; } block, thus even saving more code.
So, what am I missing here? Why would anyone actually want to use auto-properties? | 0 |
9,314 | 08/12/2008 23:17:00 | 234 | 08/03/2008 20:25:38 | 801 | 72 | "Could not find type" error loading a form in the Designer | I have a .NET 2.0 windows forms app, which makes heavy use of the `ListView` control.
I've subclassed the `ListView` class into a templated `SortableListView<T>` class, so it can be a bit smarter about how it displays things, and sort itself.
Unfortunately this seems to break the Visual Studio Forms Designer, in both VS2005 and 2008.
The program compiles and runs fine, but when I try view the owning form in the designer, I get these Errors:
* Could not find type 'MyApp.Controls.SortableListView'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
There is no stack trace or error line information available for this error
* The variable 'listViewImages' is either undeclared or was never assigned.
At MyApp.Main.Designer.cs Line:XYZ Column:1
Call stack:
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
The line of code in question is where it is actually added to the form, and is
this.imagesTab.Controls.Add( this.listViewImages );
listViewImages is declared as
private MyApp.Controls.SortableListView<Image> listViewImages;
and is instantiated in the `InitializeComponent` method as follows:
this.listViewImages = new MyApp.Controls.SortableListView<Image>();
As mentioned earlier, the program compiles and runs perfectly, and I've tried shifting the `SortableListView` class out to a seperate assembly so it can be compiled seperately, but this makes no difference.
I have no idea where to go from here. Any help would be appreciated! | c# | .net | winforms | vs2008 | .net2.0 | null | open | "Could not find type" error loading a form in the Designer
===
I have a .NET 2.0 windows forms app, which makes heavy use of the `ListView` control.
I've subclassed the `ListView` class into a templated `SortableListView<T>` class, so it can be a bit smarter about how it displays things, and sort itself.
Unfortunately this seems to break the Visual Studio Forms Designer, in both VS2005 and 2008.
The program compiles and runs fine, but when I try view the owning form in the designer, I get these Errors:
* Could not find type 'MyApp.Controls.SortableListView'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
There is no stack trace or error line information available for this error
* The variable 'listViewImages' is either undeclared or was never assigned.
At MyApp.Main.Designer.cs Line:XYZ Column:1
Call stack:
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
The line of code in question is where it is actually added to the form, and is
this.imagesTab.Controls.Add( this.listViewImages );
listViewImages is declared as
private MyApp.Controls.SortableListView<Image> listViewImages;
and is instantiated in the `InitializeComponent` method as follows:
this.listViewImages = new MyApp.Controls.SortableListView<Image>();
As mentioned earlier, the program compiles and runs perfectly, and I've tried shifting the `SortableListView` class out to a seperate assembly so it can be compiled seperately, but this makes no difference.
I have no idea where to go from here. Any help would be appreciated! | 0 |
9,321 | 08/12/2008 23:35:00 | 432 | 08/05/2008 17:18:46 | 613 | 33 | How do you create a static class in C++? | How do you create a static class in C++? I should be able to do something like:
cout << "bit 5 is " << BitParser::getBitAt(buffer, 5) << endl;
Assuming I created the BitParser class. What would the BitParser class definition look like? | c++ | oop | syntax | static | class | null | open | How do you create a static class in C++?
===
How do you create a static class in C++? I should be able to do something like:
cout << "bit 5 is " << BitParser::getBitAt(buffer, 5) << endl;
Assuming I created the BitParser class. What would the BitParser class definition look like? | 0 |
9,331 | 08/12/2008 23:45:51 | 72 | 08/01/2008 15:09:58 | 666 | 31 | Integrating QuickBooks with your e-commerce site | I've recently been tasked with integrating QuickBooks with a custom built e-commerce site. What is the most painless way to go about integrating QuickBooks with my code? Are there any F/OSS or commercial software packages available that will simplify this process? Are there any F/OSS shopping cart solutions out there that include support for a QuickBooks accounting backend, are mature and stable enough for use on a moderately large e-commerce site, and provide all of the support for skinning and customization I may need?
I am looking for PHP solutions specifically, though I would be curious to see what is out there for any language. | php | e-commerce | accounting | quickbooks | null | null | open | Integrating QuickBooks with your e-commerce site
===
I've recently been tasked with integrating QuickBooks with a custom built e-commerce site. What is the most painless way to go about integrating QuickBooks with my code? Are there any F/OSS or commercial software packages available that will simplify this process? Are there any F/OSS shopping cart solutions out there that include support for a QuickBooks accounting backend, are mature and stable enough for use on a moderately large e-commerce site, and provide all of the support for skinning and customization I may need?
I am looking for PHP solutions specifically, though I would be curious to see what is out there for any language. | 0 |
9,336 | 08/13/2008 00:01:11 | 296 | 08/04/2008 13:26:48 | 86 | 13 | Generate sitemap on the fly | I'm trying to generate a sitemap.xml on the fly for a particular asp.net website.
I found a couple solutions:<br />
1. [chinookwebs][1]
2. [cervoproject][2]
3. [newtonking][3]
Chinookwebs is working great but seems a bit inactive right now and it's impossible to personalize the "priority" and the "changefreq" tags of each and every page, they all inherit the same value from the config file.
What solutions do you guys use?
Thanks a lot for support!
[1]: http://sitemap.chinookwebs.com/
[2]: http://www.cervoproject.info/sitemaps.aspx
[3]: http://www.codeplex.com/Sitemaps | sitemap | null | null | null | null | null | open | Generate sitemap on the fly
===
I'm trying to generate a sitemap.xml on the fly for a particular asp.net website.
I found a couple solutions:<br />
1. [chinookwebs][1]
2. [cervoproject][2]
3. [newtonking][3]
Chinookwebs is working great but seems a bit inactive right now and it's impossible to personalize the "priority" and the "changefreq" tags of each and every page, they all inherit the same value from the config file.
What solutions do you guys use?
Thanks a lot for support!
[1]: http://sitemap.chinookwebs.com/
[2]: http://www.cervoproject.info/sitemaps.aspx
[3]: http://www.codeplex.com/Sitemaps | 0 |
9,338 | 08/13/2008 00:01:56 | 1,063 | 08/12/2008 05:40:42 | 33 | 13 | Quality Control / Log Monitoring | One of the articles I really enjoyed reading recently was [Quality Control by Last.FM][1]. In the spirit of this article, I was wondering if anyone else had favorite monitoring setups for web type applications. Or maybe if you don't believe in Log Monitoring, why? I'm looking for a mix of opinion slash experience here I guess.
[1]: http://blog.last.fm/2008/08/01/quality-control | monitoring | application | logging | null | null | null | open | Quality Control / Log Monitoring
===
One of the articles I really enjoyed reading recently was [Quality Control by Last.FM][1]. In the spirit of this article, I was wondering if anyone else had favorite monitoring setups for web type applications. Or maybe if you don't believe in Log Monitoring, why? I'm looking for a mix of opinion slash experience here I guess.
[1]: http://blog.last.fm/2008/08/01/quality-control | 0 |
9,341 | 08/13/2008 00:11:03 | 233 | 08/03/2008 20:19:32 | 192 | 18 | Running Javascript after control's selected value has been set | Simple asp.net application.
I have two drop down controls, on the first drop down I have a javascript onChange event. The javascript enables the second drop down and removes a value from it (the value selected in the first drop down). If they click the blank first value of the dropdown, then the second drop down will be disabled (and the options reset).
I also have code in the OnPreRender method that will enable or disable the second drop down based on the value of the first drop down. This is so that the value of the first drop down can be selected in code (loading user settings).
My problem is:
1. The user selects something in the first drop down. The second drop down will become enabled through javascript.
2. They then change a third drop down that initiates a post back. After the post back the drop downs are in the correct state (first value selected, second drop down enabled).
3. If they then click the back button, the second drop down will no longer be enabled although it should be since there's something selected in the first drop down.
I've tried adding a startup script (that will set the correct state of the second drop down) through ClientScript.RegisterStartupScript, however when this gets called the first drop down has a selectedIndex of 0, not what it actually is. My guess is that the value of the selection gets set after my start script (but still doesn't call the onChange script).
Any ideas on what to try? | asp.net | javascript | null | null | null | null | open | Running Javascript after control's selected value has been set
===
Simple asp.net application.
I have two drop down controls, on the first drop down I have a javascript onChange event. The javascript enables the second drop down and removes a value from it (the value selected in the first drop down). If they click the blank first value of the dropdown, then the second drop down will be disabled (and the options reset).
I also have code in the OnPreRender method that will enable or disable the second drop down based on the value of the first drop down. This is so that the value of the first drop down can be selected in code (loading user settings).
My problem is:
1. The user selects something in the first drop down. The second drop down will become enabled through javascript.
2. They then change a third drop down that initiates a post back. After the post back the drop downs are in the correct state (first value selected, second drop down enabled).
3. If they then click the back button, the second drop down will no longer be enabled although it should be since there's something selected in the first drop down.
I've tried adding a startup script (that will set the correct state of the second drop down) through ClientScript.RegisterStartupScript, however when this gets called the first drop down has a selectedIndex of 0, not what it actually is. My guess is that the value of the selection gets set after my start script (but still doesn't call the onChange script).
Any ideas on what to try? | 0 |
9,355 | 08/13/2008 00:35:50 | 234 | 08/03/2008 20:25:38 | 826 | 75 | Programatically select multiple files in windows explorer | I can display and select a single file in windows explorer like this:
explorer.exe /select, "c:\path\to\file.txt"
However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Help!
Note: I looked at these pages for docs, neither helped.
<http://support.microsoft.com/kb/314853> <br>
<http://www.infocellar.com/Win98/explorer-switches.htm> | windows | shell | explorer | null | null | null | open | Programatically select multiple files in windows explorer
===
I can display and select a single file in windows explorer like this:
explorer.exe /select, "c:\path\to\file.txt"
However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Help!
Note: I looked at these pages for docs, neither helped.
<http://support.microsoft.com/kb/314853> <br>
<http://www.infocellar.com/Win98/explorer-switches.htm> | 0 |
9,361 | 08/13/2008 00:49:17 | 318 | 08/04/2008 15:47:15 | 56 | 13 | ICE Faces fileInput file path and file name properties | I'd like to utilize an ICE Faces fileInput control to fill in the file path & file name for the input to an input field on a web page based on file that the user selects. How can I capture these properties without actually performing any file transfer operations? | java | ajax | jsf | icefaces | null | null | open | ICE Faces fileInput file path and file name properties
===
I'd like to utilize an ICE Faces fileInput control to fill in the file path & file name for the input to an input field on a web page based on file that the user selects. How can I capture these properties without actually performing any file transfer operations? | 0 |
9,372 | 08/13/2008 01:02:27 | 1,157 | 08/13/2008 01:02:27 | 1 | 0 | How do I stop IIS7 dropping my cookies? | I'm using Windows Vista x64 with SP1, and developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "sticking" to the session, so I had a google and found that there was a known issue with duplicate response headers overwriting instead of being added to the session. This problem was, however, supposed to have been fixed in Service Pack 1 for Vista.
Any ideas as to what my trouble might be?
Many thanks in advance. | iis | http | windows-vista | iis7 | cookies | null | open | How do I stop IIS7 dropping my cookies?
===
I'm using Windows Vista x64 with SP1, and developing an ASP.NET app with IIS7 as the web server. I've got a problem where my cookies aren't "sticking" to the session, so I had a google and found that there was a known issue with duplicate response headers overwriting instead of being added to the session. This problem was, however, supposed to have been fixed in Service Pack 1 for Vista.
Any ideas as to what my trouble might be?
Many thanks in advance. | 0 |
9,376 | 08/13/2008 01:05:47 | 1,083 | 08/12/2008 11:00:58 | 21 | 1 | ILMerge Best Practices | Do you use ILMerge?
Do you use ILMerge to merge multiple assemblies to ease deployment of dll's?
Have you found problems with deployment/versioning in production after ILMerging assemblies together?
I'm looking for some advice in regards to using ILMerge to reduce deployment friction, if that is even possible.
James Pogran | c# | deployment | ilmerge | null | null | null | open | ILMerge Best Practices
===
Do you use ILMerge?
Do you use ILMerge to merge multiple assemblies to ease deployment of dll's?
Have you found problems with deployment/versioning in production after ILMerging assemblies together?
I'm looking for some advice in regards to using ILMerge to reduce deployment friction, if that is even possible.
James Pogran | 0 |
9,383 | 08/13/2008 01:14:16 | 1,154 | 08/12/2008 23:39:07 | 1 | 0 | Access a SqlServer 2005 Express Edition from a Network Computer | How do you access a **SqlServer 2005 Express Edition** from a application in a Network Computer? | sqlserver2005 | null | null | null | null | null | open | Access a SqlServer 2005 Express Edition from a Network Computer
===
How do you access a **SqlServer 2005 Express Edition** from a application in a Network Computer? | 0 |
9,388 | 08/13/2008 01:24:18 | 361 | 08/05/2008 04:20:27 | 11 | 3 | Actual Productivity Gains from Multiple Monitors | I see a lot of posts from people talking about how they cannot possibly live without two, three or 13 1/2 monitors but does anybody have an actual metrics or statistics which I could use as ammunition? Same question for comfortable chairs. The company for which I work right now is looking at buying chairs but will buy bargain basement chairs without some evidence supporting better chairs. | environment | null | null | null | null | 04/18/2012 18:23:53 | off topic | Actual Productivity Gains from Multiple Monitors
===
I see a lot of posts from people talking about how they cannot possibly live without two, three or 13 1/2 monitors but does anybody have an actual metrics or statistics which I could use as ammunition? Same question for comfortable chairs. The company for which I work right now is looking at buying chairs but will buy bargain basement chairs without some evidence supporting better chairs. | 2 |
9,399 | 08/13/2008 01:50:16 | 1,036 | 08/11/2008 17:26:19 | 28 | 6 | Can a developer truely be Language Agnostic | Apologies this question could be interpreted as a [question not to ask](http://stackoverflow.com/faq) but an impending project has lead me to this.
* When you ( as in a developers / designer ) first encounter a task / project do you not find yourselves mini solving it as it unravels ( either read or spoken )?(1) If so are your thoughts in "a programming language?"
* If you're asked to re-factor a project entitled "web0.2b" which was originally written in [occam 2.1](http://en.wikipedia.org/wiki/Occam_programming_language) (2) ( to make it easier ) (3) which was absurdly fully documented and 100% working ( they just wanted 10 new features ) would you're first thoughts not instinctively be " I'll migrate this puppy to {your favorite > web0.2b language here}"?.
Now I know ( and have professionally coding experience in ) an array of languages ( C++, Objective-C, Java , Javascript, php, Perl5, Pascal, modula-3, BBC Basic(4) to name a few ) but find myself drawn to one for 99% of tasks. My decisions tend to not be language agnostic. **I want to solve it** so I generally do what the romans do especially when in Rome.
So my question is can you being language agnostic ever derive at an implementable solution without thinking in a language?
(1) naturally none of use start coding at this stage do we..
(2) or any other [pre 1993-4 / pre WEB2.0 / etc.. language ](http://people.mandriva.com/~prigaux/language-study/diagram.png)
(3) for the sake of argument say a "cool dude"(tm) in Khvoy wrote a compiler back then called Cockatoo
(3) ok ok Pascal onwards I haven't but I've writting projects in.. does that count? | web2.0 | perl | java | pascal | bbc | null | open | Can a developer truely be Language Agnostic
===
Apologies this question could be interpreted as a [question not to ask](http://stackoverflow.com/faq) but an impending project has lead me to this.
* When you ( as in a developers / designer ) first encounter a task / project do you not find yourselves mini solving it as it unravels ( either read or spoken )?(1) If so are your thoughts in "a programming language?"
* If you're asked to re-factor a project entitled "web0.2b" which was originally written in [occam 2.1](http://en.wikipedia.org/wiki/Occam_programming_language) (2) ( to make it easier ) (3) which was absurdly fully documented and 100% working ( they just wanted 10 new features ) would you're first thoughts not instinctively be " I'll migrate this puppy to {your favorite > web0.2b language here}"?.
Now I know ( and have professionally coding experience in ) an array of languages ( C++, Objective-C, Java , Javascript, php, Perl5, Pascal, modula-3, BBC Basic(4) to name a few ) but find myself drawn to one for 99% of tasks. My decisions tend to not be language agnostic. **I want to solve it** so I generally do what the romans do especially when in Rome.
So my question is can you being language agnostic ever derive at an implementable solution without thinking in a language?
(1) naturally none of use start coding at this stage do we..
(2) or any other [pre 1993-4 / pre WEB2.0 / etc.. language ](http://people.mandriva.com/~prigaux/language-study/diagram.png)
(3) for the sake of argument say a "cool dude"(tm) in Khvoy wrote a compiler back then called Cockatoo
(3) ok ok Pascal onwards I haven't but I've writting projects in.. does that count? | 0 |
9,409 | 08/13/2008 02:15:17 | 952 | 08/11/2008 00:37:15 | 36 | 2 | ASP.Net Datagrid: in Footer calculate Avg or Sum for column | I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers.
The way I figure, there's 2 ways I can think of:
1."Use the **Source**, Luke"
In the code where I'm calling DataGrid.DataBind(), use the DataTable.Compute() method (*or in my case DataSet.DataTable(0).Compute()*). For example:
Dim strAverage = DataTable.Compute("Avg(ColumnName)", "")
But once I have this, how can I insert it into the footer?
2."**Bound** for Glory"
Using the DataGrid.ItemDataBound event, and calculating a running total from every ListItemType.Item and ListItemType.AlternatingItem, finally displaying in ListItemType.Footer. For example:
Select Case e.Item.ItemType
Case ListItemType.Item, ListItemType.AlternatingItem
runningTotal += CInt(e.Item.Cells(2).Text)
Case ListItemType.Footer
e.Item.Cells(2).Text = runningTotal/DataGrid.Items.Count
End Select
This just feels wrong, plus I would have to make sure the runningTotal is reset on every DataBind.
Is there a better way? | asp.net | vb.net | datagrid | null | null | null | open | ASP.Net Datagrid: in Footer calculate Avg or Sum for column
===
I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers.
The way I figure, there's 2 ways I can think of:
1."Use the **Source**, Luke"
In the code where I'm calling DataGrid.DataBind(), use the DataTable.Compute() method (*or in my case DataSet.DataTable(0).Compute()*). For example:
Dim strAverage = DataTable.Compute("Avg(ColumnName)", "")
But once I have this, how can I insert it into the footer?
2."**Bound** for Glory"
Using the DataGrid.ItemDataBound event, and calculating a running total from every ListItemType.Item and ListItemType.AlternatingItem, finally displaying in ListItemType.Footer. For example:
Select Case e.Item.ItemType
Case ListItemType.Item, ListItemType.AlternatingItem
runningTotal += CInt(e.Item.Cells(2).Text)
Case ListItemType.Footer
e.Item.Cells(2).Text = runningTotal/DataGrid.Items.Count
End Select
This just feels wrong, plus I would have to make sure the runningTotal is reset on every DataBind.
Is there a better way? | 0 |
9,410 | 08/13/2008 02:16:32 | 432 | 08/05/2008 17:18:46 | 616 | 34 | How do you pass a function as a parameter in C? | I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C? | c | syntax | pointer | function | null | null | open | How do you pass a function as a parameter in C?
===
I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C? | 0 |
9,433 | 08/13/2008 03:17:52 | 327 | 08/04/2008 17:08:49 | 158 | 9 | Do you name controls on forms using the same convention as a private variable? | For some reason I never see this done. Is there a reason why not? For instance I like _blah for private variables, and at least in Windows Forms controls are by default private member variables, but I can't remember ever seeing them named that way. In the case that I am creating/storing control objects in local variables within a member function, it is especially useful to have some visual distinction. | gui | oop | codingstyle | null | null | null | open | Do you name controls on forms using the same convention as a private variable?
===
For some reason I never see this done. Is there a reason why not? For instance I like _blah for private variables, and at least in Windows Forms controls are by default private member variables, but I can't remember ever seeing them named that way. In the case that I am creating/storing control objects in local variables within a member function, it is especially useful to have some visual distinction. | 0 |
9,434 | 08/13/2008 03:18:32 | 233 | 08/03/2008 20:19:32 | 219 | 20 | How do I add an additional window.onload event in Javascript | In my asp.net User Control I'm adding some script to the window.onload event like so:
if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName))
Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName,
String.Format("window.onload = function(){{ {0}(); }};", resetFunctionName), true);
My problem is, if there is already something in the onload event, than this overwrites it.
How would I go about allowing two user controls to each execute javascript in the onload event? | javascript | asp.net | c# | null | null | null | open | How do I add an additional window.onload event in Javascript
===
In my asp.net User Control I'm adding some script to the window.onload event like so:
if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName))
Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName,
String.Format("window.onload = function(){{ {0}(); }};", resetFunctionName), true);
My problem is, if there is already something in the onload event, than this overwrites it.
How would I go about allowing two user controls to each execute javascript in the onload event? | 0 |
9,435 | 08/13/2008 03:23:55 | 648 | 08/07/2008 13:22:00 | 49 | 7 | Planning and Building a mobile enabled site for your main site. | We are in the initial planning stages of building out a mobile site for one of our clients. This mobile site will be in addition to the main site that we have already built for them. We've determined that the content is going to be a small subsection of the main site and will target the main audience that is expected to use the site.
While looking through some sample mobile sites we noticed that a lot of site that have WAP in the url are actually just simplified HTML files. http://wap.mlb.com is not really WAP enabled but simple HTML.
My question is WAP a think of the past? With smartphones and the iPhone having the ability to render sites as is do we need to worry about WML and WAP or will a stripped down html version be enough?
Also can you recommend a blog or tutorial or answer below how best to check for mobile devices? Do we as the programmer need to know each variation of user agent in order to redirect them to our mobile site?
Finally, would you program a mobile site for the iPhone/Touch Safari browser or just leave the site as is? | html | web | development | mobile | wap | null | open | Planning and Building a mobile enabled site for your main site.
===
We are in the initial planning stages of building out a mobile site for one of our clients. This mobile site will be in addition to the main site that we have already built for them. We've determined that the content is going to be a small subsection of the main site and will target the main audience that is expected to use the site.
While looking through some sample mobile sites we noticed that a lot of site that have WAP in the url are actually just simplified HTML files. http://wap.mlb.com is not really WAP enabled but simple HTML.
My question is WAP a think of the past? With smartphones and the iPhone having the ability to render sites as is do we need to worry about WML and WAP or will a stripped down html version be enough?
Also can you recommend a blog or tutorial or answer below how best to check for mobile devices? Do we as the programmer need to know each variation of user agent in order to redirect them to our mobile site?
Finally, would you program a mobile site for the iPhone/Touch Safari browser or just leave the site as is? | 0 |
9,467 | 08/13/2008 04:04:05 | 699 | 08/07/2008 23:47:19 | 46 | 21 | Best way to write a RESTful service "client" in .Net? | What techniques to people use to "consume" services in the REST stile on .Net ? Plain http client? Related to this: many rest services are now using JSON (its tighter and faster) - so what JSON lib is used? | .net | webservices | rest | null | null | 04/11/2012 21:00:03 | not constructive | Best way to write a RESTful service "client" in .Net?
===
What techniques to people use to "consume" services in the REST stile on .Net ? Plain http client? Related to this: many rest services are now using JSON (its tighter and faster) - so what JSON lib is used? | 4 |
9,472 | 08/13/2008 04:27:31 | 493 | 08/06/2008 10:25:05 | 1,136 | 90 | Another WCF Backward Compatibility Issue | I have a WCF service that I have to reference from a .net 2.0 project.
I have tried to reference it using the "add web reference" method but it messes up the params. For example, I have a method in the service that expects a char[] to be passed in, but when I add the web reference, the method expects an int[].
So then I tried to setup svcutil and it worked... kind of. I could only get the service class to compile by adding a bunch of .net 3.0 references to my 2.0 project. This didn't sit well with the architect so I've had to can it (and probably for the best too).
So I was wondering if anyone has any pointers or resources on how I can setup a .net 2.0 project to reference a WCF service. | c# | .net | wcf | null | null | null | open | Another WCF Backward Compatibility Issue
===
I have a WCF service that I have to reference from a .net 2.0 project.
I have tried to reference it using the "add web reference" method but it messes up the params. For example, I have a method in the service that expects a char[] to be passed in, but when I add the web reference, the method expects an int[].
So then I tried to setup svcutil and it worked... kind of. I could only get the service class to compile by adding a bunch of .net 3.0 references to my 2.0 project. This didn't sit well with the architect so I've had to can it (and probably for the best too).
So I was wondering if anyone has any pointers or resources on how I can setup a .net 2.0 project to reference a WCF service. | 0 |
9,473 | 08/13/2008 04:30:30 | 67 | 08/01/2008 14:49:18 | 80 | 7 | RaisePostBackEvent not firing | I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).
The control is implemented in two different user controls. In one control, RaisePostBackEvent is fired on the server-side when __doPostBack is invoked. In the other control, RaisePostBackEvent is never invoked. I checked the __EVENTTARGET parameter and it does match the ClientID of the control... where else might I look to troubleshoot this? | asp.net | postback | null | null | null | null | open | RaisePostBackEvent not firing
===
I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).
The control is implemented in two different user controls. In one control, RaisePostBackEvent is fired on the server-side when __doPostBack is invoked. In the other control, RaisePostBackEvent is never invoked. I checked the __EVENTTARGET parameter and it does match the ClientID of the control... where else might I look to troubleshoot this? | 0 |
9,486 | 08/13/2008 05:09:33 | 327 | 08/04/2008 17:08:49 | 193 | 10 | How do I make Visual Studio auto generate braces for a function block? | I could swear I've seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:
void foo()_
to
void foo()
{
_
}
Is this a built-in feature? | c# | visual-studio | null | null | null | null | open | How do I make Visual Studio auto generate braces for a function block?
===
I could swear I've seen people typing function headers and then hitting some key combination to auto-create function braces and insert the cursor between them like so:
void foo()_
to
void foo()
{
_
}
Is this a built-in feature? | 0 |
9,508 | 08/13/2008 06:17:00 | 419 | 08/05/2008 14:48:22 | 882 | 63 | C# 2.0 code consuming assemblies compiled with C# 3.0 | This should be fine seeing as the CLR hasn't actually changed?
The boxes running the C# 2.0 code **have** had .NET 3.5 rolled out.
The background is that we have a windows service (.NET 2.0 exe) that dynamically loads assemblies (almost like plug-ins) to complete various work items asked of it. Whenever we roll out a new version of the bus logic, we just drop the assemblies on an FTP server and the windows service knows how to check for, grab and store the latest versions.
| csharp | .net | null | null | null | null | open | C# 2.0 code consuming assemblies compiled with C# 3.0
===
This should be fine seeing as the CLR hasn't actually changed?
The boxes running the C# 2.0 code **have** had .NET 3.5 rolled out.
The background is that we have a windows service (.NET 2.0 exe) that dynamically loads assemblies (almost like plug-ins) to complete various work items asked of it. Whenever we roll out a new version of the bus logic, we just drop the assemblies on an FTP server and the windows service knows how to check for, grab and store the latest versions.
| 0 |
9,543 | 08/13/2008 07:33:45 | 960 | 08/11/2008 07:00:32 | 345 | 34 | How do you deploy your SharePoint solutions? | I am now in the process of planning the deployment of a SharePoint solution into a production environment.
I have read about some tools that promise an easy way to automate this process, but nothing that seems to fit my scenario.
In the testing phase I have used SharePoint Designer to copy site content between the different development and testing servers, but this process is manual and it seems a bit unnecessary.
The site is made up of SharePoint web part pages with custom web parts, and a lot of Reporting Services report definitions.
So, is there any good advice out there in this vast land of geeks on how to most efficiently create and deploy a SharePoint site for a multiple deployment scenario? | sharepoint | deployment | production | null | null | null | open | How do you deploy your SharePoint solutions?
===
I am now in the process of planning the deployment of a SharePoint solution into a production environment.
I have read about some tools that promise an easy way to automate this process, but nothing that seems to fit my scenario.
In the testing phase I have used SharePoint Designer to copy site content between the different development and testing servers, but this process is manual and it seems a bit unnecessary.
The site is made up of SharePoint web part pages with custom web parts, and a lot of Reporting Services report definitions.
So, is there any good advice out there in this vast land of geeks on how to most efficiently create and deploy a SharePoint site for a multiple deployment scenario? | 0 |
9,570 | 08/13/2008 08:05:00 | 1,163 | 08/13/2008 07:44:23 | 1 | 0 | What libraries do I need to link my mixed-mode application to? | I'm integrating .NET support into our C++ application.
It's an old-school MFC application, with 1 extra file compiled with the "/clr" option that references a CWinFormsControl.
I'm not allowed to remove the linker flag "/NODEFAULTLIB".
(We have our own build management system, not Visual Studio's.)
This means I have to specify all necessary libraries: VC runtime and MFC.
Other compiler options include "/MD"
Next to that: I can't use the linker flag "/FORCE:MULTIPLE" and just add *everything*:
I'm looking for a non-overlapping set of libraries.
Thanks in advance!
Jan | linker | c++cli | mixed-mode | null | null | null | open | What libraries do I need to link my mixed-mode application to?
===
I'm integrating .NET support into our C++ application.
It's an old-school MFC application, with 1 extra file compiled with the "/clr" option that references a CWinFormsControl.
I'm not allowed to remove the linker flag "/NODEFAULTLIB".
(We have our own build management system, not Visual Studio's.)
This means I have to specify all necessary libraries: VC runtime and MFC.
Other compiler options include "/MD"
Next to that: I can't use the linker flag "/FORCE:MULTIPLE" and just add *everything*:
I'm looking for a non-overlapping set of libraries.
Thanks in advance!
Jan | 0 |
9,589 | 08/13/2008 08:47:36 | 1,007 | 08/11/2008 12:50:43 | 58 | 2 | any good tool for makefile generation? | I'm looking for a tool which can generate makefile for a C/C++ project for different compilers (gcc, microsoft vc++, borland etc) and different platforms (Win, Linux, Mac). | c++ | c | crossplatform | null | null | null | open | any good tool for makefile generation?
===
I'm looking for a tool which can generate makefile for a C/C++ project for different compilers (gcc, microsoft vc++, borland etc) and different platforms (Win, Linux, Mac). | 0 |
9,591 | 08/13/2008 08:59:42 | 1,094 | 08/12/2008 11:29:18 | 11 | 2 | What WPF books would you recommend? | Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
I really like to read and learn with it. Are there any other WPF books you could recommend? | wpf | books | null | null | null | 10/05/2011 05:23:11 | not constructive | What WPF books would you recommend?
===
Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
I really like to read and learn with it. Are there any other WPF books you could recommend? | 4 |
9,601 | 08/13/2008 09:24:10 | 376 | 08/05/2008 09:58:37 | 11 | 1 | Visual Studio 2008 Window layout annoyance | I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.
Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's sized will be screwed when I load.
I've never come across this before and it's pretty annoying. Any ideas? | visual-studio | annoyance | null | null | null | null | open | Visual Studio 2008 Window layout annoyance
===
I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.
Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's sized will be screwed when I load.
I've never come across this before and it's pretty annoying. Any ideas? | 0 |
9,603 | 08/13/2008 09:27:38 | 718 | 08/08/2008 07:07:38 | 132 | 4 | What are some great source code to read? | Following the advice of Scott Hanselman, I'm looking for good source code to read. Here's what is currently on my list:
1. [Scott's posts][1]
2. [CodeProject][2]
How about you? What source code do you read?
[1]: http://www.hanselman.com/blog/CategoryView.aspx?category=Source+Code
[2]: http://www.codeproject.com/ | code-reading | language-agnostic | null | null | null | null | open | What are some great source code to read?
===
Following the advice of Scott Hanselman, I'm looking for good source code to read. Here's what is currently on my list:
1. [Scott's posts][1]
2. [CodeProject][2]
How about you? What source code do you read?
[1]: http://www.hanselman.com/blog/CategoryView.aspx?category=Source+Code
[2]: http://www.codeproject.com/ | 0 |
9,612 | 08/13/2008 09:40:12 | 982 | 08/11/2008 12:08:33 | 3 | 3 | Setting Group Type for new Active Directory Entry in VB.NET | I'm trying to set the group type for a new Active Directory Entry via VB.NET and DirectoryServices to create a distribution list.
How do I access the ADS_GROUP_TYPE enumerations?
Specifically I'm after ADS_GROUP_TYPE_GLOBAL_GROUP.
Thanks | vb.net | activedirectory | directoryservices | distributionlist | null | null | open | Setting Group Type for new Active Directory Entry in VB.NET
===
I'm trying to set the group type for a new Active Directory Entry via VB.NET and DirectoryServices to create a distribution list.
How do I access the ADS_GROUP_TYPE enumerations?
Specifically I'm after ADS_GROUP_TYPE_GLOBAL_GROUP.
Thanks | 0 |
9,614 | 08/13/2008 09:41:43 | 844 | 08/09/2008 11:39:10 | 1 | 0 | Bidirectional outer join | Suppose we have a table A:
itemid mark
1 5
2 3
and table B:
itemid mark
1 3
3 5
I want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result:
itemid A.mark B.mark
1 5 3
2 3 NULL
3 NULL 5
Is there a way to do it in one query in MySQL? | sql | mysql | null | null | null | null | open | Bidirectional outer join
===
Suppose we have a table A:
itemid mark
1 5
2 3
and table B:
itemid mark
1 3
3 5
I want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result:
itemid A.mark B.mark
1 5 3
2 3 NULL
3 NULL 5
Is there a way to do it in one query in MySQL? | 0 |
9,615 | 08/13/2008 09:43:53 | 837 | 08/09/2008 08:06:26 | 68 | 6 | Displaying vector graphics in a browser | I need to display some interactive (attaching with DOM listeners etc. and event handling) vector graphics in web site I am working on. There is a W3C recommendation for SVG though this format is still not recognized by Internet Explorer support of which is a must (for a public website). IE handles VML though and there are even javascript libraries that do some canvas-like drawing depending on a browser (SVG vs. VML) - [excanvas][1], [GFX of Dojo Toolkit][2] and more. That would be nice and acceptable though none of them can display an SVG image from the given markup.
So the question actually consists of several parts:
1. Are there any cross-browser Javascript libraries that display vector graphics from given markup (not obligatory SVG) and offer availability to attach to DOM events?
2. If there are not, which of the most pupular browser-embedded technologies would be most suitable for doing such a task? I can choose from Flex/Flash, Java applet. Silverlight is not an option because of Windows lock-in.
[1]: http://excanvas.sourceforge.net/ "excanvas"
[2]: http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/drawing-gfx | crossbrowser | vml | vectorgraphics | svg | null | null | open | Displaying vector graphics in a browser
===
I need to display some interactive (attaching with DOM listeners etc. and event handling) vector graphics in web site I am working on. There is a W3C recommendation for SVG though this format is still not recognized by Internet Explorer support of which is a must (for a public website). IE handles VML though and there are even javascript libraries that do some canvas-like drawing depending on a browser (SVG vs. VML) - [excanvas][1], [GFX of Dojo Toolkit][2] and more. That would be nice and acceptable though none of them can display an SVG image from the given markup.
So the question actually consists of several parts:
1. Are there any cross-browser Javascript libraries that display vector graphics from given markup (not obligatory SVG) and offer availability to attach to DOM events?
2. If there are not, which of the most pupular browser-embedded technologies would be most suitable for doing such a task? I can choose from Flex/Flash, Java applet. Silverlight is not an option because of Windows lock-in.
[1]: http://excanvas.sourceforge.net/ "excanvas"
[2]: http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/drawing-gfx | 0 |
9,629 | 08/13/2008 10:04:40 | 222 | 08/03/2008 16:45:02 | 25 | 3 | Playing wave file ends immediatly (C++, Windows) | I've got a following situation. On a machine there is a Fritz ISDN card. There is a process that is responsible for playing a certain wave file on this device's wave out (ISDN connection is made at startup and made persistent). The scenario is easy, whenever needed the process calls waveOutWrite() on the previously opened wave device (everything initialized without any problems of course) and a callback function waits for MM_WOM_DONE msg to know that the playback has been finished.
Since a few days however (nothing changed neither in the process nor the machine) the MM_WOM_DONE message comes immediately after calling waveOutWrite() even though the wave lasts a couple of seconds. Again no error is reported, it looks like the file was played but had zero length (which is not the case). I am also sure that waveOutReset() was not called by my process (it would also trigger sending the mentioned message). I already used to have some strange problems in the past that where solved simply by reinstalling TAPI drivers. This time for some reason it is problematic form me to perform that once again and am trying more analytical approach :). Any suggestions what might cause such a behavior? Maybe sth on the other end of ISDN line? | c++ | windows | waveout | null | null | null | open | Playing wave file ends immediatly (C++, Windows)
===
I've got a following situation. On a machine there is a Fritz ISDN card. There is a process that is responsible for playing a certain wave file on this device's wave out (ISDN connection is made at startup and made persistent). The scenario is easy, whenever needed the process calls waveOutWrite() on the previously opened wave device (everything initialized without any problems of course) and a callback function waits for MM_WOM_DONE msg to know that the playback has been finished.
Since a few days however (nothing changed neither in the process nor the machine) the MM_WOM_DONE message comes immediately after calling waveOutWrite() even though the wave lasts a couple of seconds. Again no error is reported, it looks like the file was played but had zero length (which is not the case). I am also sure that waveOutReset() was not called by my process (it would also trigger sending the mentioned message). I already used to have some strange problems in the past that where solved simply by reinstalling TAPI drivers. This time for some reason it is problematic form me to perform that once again and am trying more analytical approach :). Any suggestions what might cause such a behavior? Maybe sth on the other end of ISDN line? | 0 |
9,632 | 08/13/2008 10:05:41 | 900 | 08/10/2008 09:14:03 | 66 | 16 | WPF: How to style or disable the default ContextMenu of a TextBox | Apparantly when users right-click in our WPF application, and they use the Windows Classic theme, the default ContextMenu of the TextBox (which contains Copy, Cut and Paste) has a black background.
I know this works well:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBox ContextMenu="{x:Null}"/>
</Page>
But this doesn't work:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}">
<Setter Property="ContextMenu" Value="{x:Null}"/>
</Style>
</Page.Resources>
<TextBox/>
</Page>
Does anyone know how to style or disable the default ContextMenu for all TextBoxes in WPF?
Many thanks! :) | wpf | .net-3.5 | xaml | null | null | null | open | WPF: How to style or disable the default ContextMenu of a TextBox
===
Apparantly when users right-click in our WPF application, and they use the Windows Classic theme, the default ContextMenu of the TextBox (which contains Copy, Cut and Paste) has a black background.
I know this works well:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBox ContextMenu="{x:Null}"/>
</Page>
But this doesn't work:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}">
<Setter Property="ContextMenu" Value="{x:Null}"/>
</Style>
</Page.Resources>
<TextBox/>
</Page>
Does anyone know how to style or disable the default ContextMenu for all TextBoxes in WPF?
Many thanks! :) | 0 |
9,650 | 08/13/2008 11:06:12 | 1,084 | 08/12/2008 11:01:49 | 1 | 1 | Lisp interptreter without EMACS | I've been wanting to teach myself Lisp for a while. However, all the interpreters I've heard involve some flavor of emacs.
Are there any command line interpreters, such that I could type this into the command line:
>lispinterpret sourcefile.lisp
just like I can run perl or python.
While I'd also like to become more familiar with Emacs (if only not to be frustrated when I work with somebody who uses Emacs), I'd rather decouple learning Emacs from learning Lisp.
Thanks | lisp | null | null | null | null | null | open | Lisp interptreter without EMACS
===
I've been wanting to teach myself Lisp for a while. However, all the interpreters I've heard involve some flavor of emacs.
Are there any command line interpreters, such that I could type this into the command line:
>lispinterpret sourcefile.lisp
just like I can run perl or python.
While I'd also like to become more familiar with Emacs (if only not to be frustrated when I work with somebody who uses Emacs), I'd rather decouple learning Emacs from learning Lisp.
Thanks | 0 |
9,666 | 08/13/2008 11:41:29 | 1,016 | 08/11/2008 13:29:11 | 1 | 0 | Is accessing a variable in C# an atomic operation? | I've been raised to believe that if multiple threads can access a variable, then all reads from and writes to that variable must be protected by synchronization code, such as a "lock" statement, because the processor might switch to another thread halfway through a write.
However, I was looking through System.Web.Security.Membership using Reflector and found code like this:
public static class Membership
{
private static bool s_Initialized = false;
private static object s_lock = new object();
private static MembershipProvider s_Provider;
public static MembershipProvider Provider
{
get
{
Initialize();
return s_Provider;
}
}
private static void Initialize()
{
if (s_Initialized)
return;
lock(s_lock)
{
// Perform initialization.
s_Initialized = true;
}
}
}
Why is the s_Initialized field read outside of the lock? Couldn't another thread by trying to write to it at the same time? **Are reads and writes of variables atomic?** | c# | multithreading | null | null | null | null | open | Is accessing a variable in C# an atomic operation?
===
I've been raised to believe that if multiple threads can access a variable, then all reads from and writes to that variable must be protected by synchronization code, such as a "lock" statement, because the processor might switch to another thread halfway through a write.
However, I was looking through System.Web.Security.Membership using Reflector and found code like this:
public static class Membership
{
private static bool s_Initialized = false;
private static object s_lock = new object();
private static MembershipProvider s_Provider;
public static MembershipProvider Provider
{
get
{
Initialize();
return s_Provider;
}
}
private static void Initialize()
{
if (s_Initialized)
return;
lock(s_lock)
{
// Perform initialization.
s_Initialized = true;
}
}
}
Why is the s_Initialized field read outside of the lock? Couldn't another thread by trying to write to it at the same time? **Are reads and writes of variables atomic?** | 0 |
9,667 | 08/13/2008 11:42:13 | 887 | 08/10/2008 07:50:30 | 1 | 0 | Validating a Win32 Window Handle | Given a handle of type HWND is it possible to confirm that the handle represents a real window? | c++ | windows | winapi | null | null | null | open | Validating a Win32 Window Handle
===
Given a handle of type HWND is it possible to confirm that the handle represents a real window? | 0 |
9,673 | 08/13/2008 11:48:44 | 493 | 08/06/2008 10:25:05 | 1,185 | 96 | Remove duplicates from array | I have been working with a string[] array in c# that gets returned from a function call. I was wondering what the best way to remove duplicates from this array would be? I could possibly cast to a Generic collection, but I was wondering if there was a better way to do it, possibly by using a temp array? | c# | arrays | null | null | null | null | open | Remove duplicates from array
===
I have been working with a string[] array in c# that gets returned from a function call. I was wondering what the best way to remove duplicates from this array would be? I could possibly cast to a Generic collection, but I was wondering if there was a better way to do it, possibly by using a temp array? | 0 |
9,675 | 08/13/2008 11:49:14 | 1,182 | 08/13/2008 11:49:14 | 1 | 0 | Document Server: Handling Concurrent Saves | I'm implementing a document server. Currently, if two users open the same document, modify it and save the changes, document's state will be undefined (either the first user's changes are saved permanently, or the second's). This is entirely unsatisfactory. I considered two possibilities to solve this problem.
The first is to lock document when it is opened by someone the first time, and unlock it when it is closed. But if network connection to the server is suddenly interrupted, the document would stay in forever-locked state. The obvious solution is to send regular pings to the server. If server doesn't receive K pings in a row (K > 1) from a particular client, documents locked by this client are unlocked. If that client re-appears, documents are locked again, if someone hadn't already locked them. This could also help if the client application (running in web browser) is terminated unexpectedly, making it impossible to send 'quitting, unlock my documents' signal to the server.
The second is to store multiple versions of the same document saved by different users. If changes to the document are made in a rapid succession, system would offer either to merge versions or to select preferred version. To optimize storage space, only document diffs should be kept. (Just like source control software).
What method should I choose, taking into consideration that the connection to the server might *sometimes* be slow and unresponsive? How should the parameters (ping interval, rapid succession interval) be determined?
P.S. Unfortunately, I can't store the documents in a database. | versioning | document-server | locking | concurrent | null | null | open | Document Server: Handling Concurrent Saves
===
I'm implementing a document server. Currently, if two users open the same document, modify it and save the changes, document's state will be undefined (either the first user's changes are saved permanently, or the second's). This is entirely unsatisfactory. I considered two possibilities to solve this problem.
The first is to lock document when it is opened by someone the first time, and unlock it when it is closed. But if network connection to the server is suddenly interrupted, the document would stay in forever-locked state. The obvious solution is to send regular pings to the server. If server doesn't receive K pings in a row (K > 1) from a particular client, documents locked by this client are unlocked. If that client re-appears, documents are locked again, if someone hadn't already locked them. This could also help if the client application (running in web browser) is terminated unexpectedly, making it impossible to send 'quitting, unlock my documents' signal to the server.
The second is to store multiple versions of the same document saved by different users. If changes to the document are made in a rapid succession, system would offer either to merge versions or to select preferred version. To optimize storage space, only document diffs should be kept. (Just like source control software).
What method should I choose, taking into consideration that the connection to the server might *sometimes* be slow and unresponsive? How should the parameters (ping interval, rapid succession interval) be determined?
P.S. Unfortunately, I can't store the documents in a database. | 0 |
9,687 | 08/13/2008 12:06:07 | 1,097 | 08/12/2008 11:40:09 | 1 | 1 | Need Pattern for dynamic search of mulitple sql tables | I'm looking for a pattern for performing a dynamic search on multiple tables.
I have no control over the legacy (and poorly designed) database table structure.
Consider a scenario similar to a resume search where a user may want to perform a search against any of the data in the resume and get back a list of resumes that match their search criteria. Any field can be searched at anytime and in combination with one or more other fields.
The actual sql query gets created dynamically depending on which fields are searched. Most solutions I've found involve complicated if blocks, but I can't help but think there must be a more elegant solution since this must be a solved problem by now. | sql | search | dynamicsql | pattern | null | null | open | Need Pattern for dynamic search of mulitple sql tables
===
I'm looking for a pattern for performing a dynamic search on multiple tables.
I have no control over the legacy (and poorly designed) database table structure.
Consider a scenario similar to a resume search where a user may want to perform a search against any of the data in the resume and get back a list of resumes that match their search criteria. Any field can be searched at anytime and in combination with one or more other fields.
The actual sql query gets created dynamically depending on which fields are searched. Most solutions I've found involve complicated if blocks, but I can't help but think there must be a more elegant solution since this must be a solved problem by now. | 0 |
9,693 | 08/13/2008 12:11:07 | 1,185 | 08/13/2008 12:02:03 | 1 | 0 | Visual Studio 2005 Macros stop working when Visual Studio 2008 is installed | I have a number of macros written for Visual Studio 2005, but they have since stopped working once I installed Visual Studio 2008 on my computer. No error is returned by the macro when I try and run it, and the environment merely shows the hourglass for a second and then returns to the normal cursor. Currently uninstalling one or the other is not possible, and I am wondering if there is anyway to get the macros to work again? | ide | vs2005 | vs2008 | macros | null | null | open | Visual Studio 2005 Macros stop working when Visual Studio 2008 is installed
===
I have a number of macros written for Visual Studio 2005, but they have since stopped working once I installed Visual Studio 2008 on my computer. No error is returned by the macro when I try and run it, and the environment merely shows the hourglass for a second and then returns to the normal cursor. Currently uninstalling one or the other is not possible, and I am wondering if there is anyway to get the macros to work again? | 0 |
9,702 | 08/13/2008 12:23:37 | 1,193 | 08/13/2008 12:23:37 | 1 | 0 | Default database IDs; system and user values | As part of our current database work, we are looking at a dealing with the process of updating databases.
A point which has been brought up recurrently, is that of dealing with system vs. user values; in our project user and system vals are stored together. For example...
We have a list of templates.
1, <system template>
2, <system template>
3, <system template>
These are mapped in the app to an enum (1, 2, 3)
Then a user comes in and adds...
4, <user template>
...And...
5, <user template>
Then.. we issue an upgrade.. and insert as part of our upgrade scripts...
<new id> [6], <new system template>
THEN!!... we find a bug in the new system template and need to update it... The problem is how? We cannot update record using ID6 (as we may have inserted it as 9, or 999, so we have to identify the record using some other mechanism)
So, we've come to two possible solutions for this.
**In the red corner (speed)....**
---------------------------------
We simply start user Ids at 5000 (or some other value) and test data at 10000 (or some other value). This would allow us to make modifications to system values and test them up to the lower limit of the next ID range.
Advantage...Quick and easy to implement,
Disadvantage... could run out of values if we don't choose a big enough range!
**In the blue corner (scalability)...**
---------------------------------------
We store, system and user data separately, use GUIDs as Ids and merge the two lists using a view.
Advantage...Scalable..No limits w/regard to DB size.
Disadvantage.. More complicated to implement. (many to one updatable views etc.)
----------
I plump squarely for the first option, but looking for some ammo to back me up!
Does anyone have any thoughts on these approaches, or even one(s) that we've missed?
Thanks,
Duncan
| database | null | null | null | null | null | open | Default database IDs; system and user values
===
As part of our current database work, we are looking at a dealing with the process of updating databases.
A point which has been brought up recurrently, is that of dealing with system vs. user values; in our project user and system vals are stored together. For example...
We have a list of templates.
1, <system template>
2, <system template>
3, <system template>
These are mapped in the app to an enum (1, 2, 3)
Then a user comes in and adds...
4, <user template>
...And...
5, <user template>
Then.. we issue an upgrade.. and insert as part of our upgrade scripts...
<new id> [6], <new system template>
THEN!!... we find a bug in the new system template and need to update it... The problem is how? We cannot update record using ID6 (as we may have inserted it as 9, or 999, so we have to identify the record using some other mechanism)
So, we've come to two possible solutions for this.
**In the red corner (speed)....**
---------------------------------
We simply start user Ids at 5000 (or some other value) and test data at 10000 (or some other value). This would allow us to make modifications to system values and test them up to the lower limit of the next ID range.
Advantage...Quick and easy to implement,
Disadvantage... could run out of values if we don't choose a big enough range!
**In the blue corner (scalability)...**
---------------------------------------
We store, system and user data separately, use GUIDs as Ids and merge the two lists using a view.
Advantage...Scalable..No limits w/regard to DB size.
Disadvantage.. More complicated to implement. (many to one updatable views etc.)
----------
I plump squarely for the first option, but looking for some ammo to back me up!
Does anyone have any thoughts on these approaches, or even one(s) that we've missed?
Thanks,
Duncan
| 0 |
9,704 | 08/13/2008 12:28:57 | 1,042 | 08/11/2008 18:02:48 | 11 | 2 | How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown? | In my MFC application, when I call CComboBox::ShowDropDown(), the mouse cursor is hidden until interaction with the combo box completes (when the combo box loses focus.) It doesn't reappear when the mouse is moved, like it does with edit boxes.
How can I keep the mouse cursor from being hidden? | mfc | cursor | mouse | ccombobox | hidden | null | open | How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown?
===
In my MFC application, when I call CComboBox::ShowDropDown(), the mouse cursor is hidden until interaction with the combo box completes (when the combo box loses focus.) It doesn't reappear when the mouse is moved, like it does with edit boxes.
How can I keep the mouse cursor from being hidden? | 0 |
9,705 | 08/13/2008 12:29:57 | 1,190 | 08/13/2008 12:15:38 | 1 | 0 | Employment IP Policy | I've just started a new job, and the company's policy is that they own all intellectual property I create - whether I create it on their time or on my own. That means I can't contribute to open source software, since I can't give away their property. Has anyone experienced this? Does anyone have suggestions on how to convince the company that their approach is wrong?
It's not that they're completely ignorant of open source: they have funded internally-developed open source projects.
Some of the use cases I've come up with that are prohibited:
* work on open source projects on my own time
* contribute a small fix to a project I use at work
* ask a question on a forum using example source code I've written
* write and perform my own music, since that's intellectual property, too! | jobs | legal | intellectual-property | null | null | null | open | Employment IP Policy
===
I've just started a new job, and the company's policy is that they own all intellectual property I create - whether I create it on their time or on my own. That means I can't contribute to open source software, since I can't give away their property. Has anyone experienced this? Does anyone have suggestions on how to convince the company that their approach is wrong?
It's not that they're completely ignorant of open source: they have funded internally-developed open source projects.
Some of the use cases I've come up with that are prohibited:
* work on open source projects on my own time
* contribute a small fix to a project I use at work
* ask a question on a forum using example source code I've written
* write and perform my own music, since that's intellectual property, too! | 0 |
9,729 | 08/13/2008 12:50:10 | 1,196 | 08/13/2008 12:33:04 | 1 | 0 | How to extend project properties page? | Is it possible to add a custom tab to a project properties page in the Visual Studio 2008?
What I want to do is to be able to add a custom tab to properties page for the projects created from default project templates (WPF Application, WPF custom controls library, etc).
| visualstudioextensibility | null | null | null | null | null | open | How to extend project properties page?
===
Is it possible to add a custom tab to a project properties page in the Visual Studio 2008?
What I want to do is to be able to add a custom tab to properties page for the projects created from default project templates (WPF Application, WPF custom controls library, etc).
| 0 |
9,734 | 08/13/2008 12:53:20 | 383 | 08/05/2008 10:46:37 | 1,544 | 181 | C#.Net case-insensitive string | A quick and simple question...
Why does C#.Net allow the declaration of the string object to be case-insensitive?
String sHello = "Hello";
string sHello = "Hello";
Both the lower-case and upper-case S of the word String are acceptable and this seems to be the only object that allows this.
Can anyone explain why? | c# | .net | null | null | null | null | open | C#.Net case-insensitive string
===
A quick and simple question...
Why does C#.Net allow the declaration of the string object to be case-insensitive?
String sHello = "Hello";
string sHello = "Hello";
Both the lower-case and upper-case S of the word String are acceptable and this seems to be the only object that allows this.
Can anyone explain why? | 0 |
9,745 | 08/13/2008 12:57:25 | 194 | 08/03/2008 10:56:49 | 564 | 44 | Open Source Windows Mobile OCR Library | Does anyone know of an OCR library that will run on Windows Mobile (5 or 6, but PPC2003SE would be great). I would imagine that OCR would be native (C/C++) code, but if it was in .NET or at least had a .NET wrapper API, that would be great. | opensource | windows-mobile | ocr | null | null | null | open | Open Source Windows Mobile OCR Library
===
Does anyone know of an OCR library that will run on Windows Mobile (5 or 6, but PPC2003SE would be great). I would imagine that OCR would be native (C/C++) code, but if it was in .NET or at least had a .NET wrapper API, that would be great. | 0 |
9,749 | 08/13/2008 13:00:23 | 834 | 08/09/2008 07:29:24 | 57 | 6 | What kind of servers did you virtualize lately? | I wonder what type of servers for internal usage you virtualize in the last -say- 6 months. Here's what we got virtual so far:
- mediawiki
- bugtracker (mantis)
- subversion
We didn't virtualize spezialized desktop PCs which are running a certain software product, that is only used once in a while. Do you plan to get rid of those old machines any time soon?
And which server products do you use? Vmware ESX, Vmware Server, Xen installations...? | virtualization | null | null | null | null | null | open | What kind of servers did you virtualize lately?
===
I wonder what type of servers for internal usage you virtualize in the last -say- 6 months. Here's what we got virtual so far:
- mediawiki
- bugtracker (mantis)
- subversion
We didn't virtualize spezialized desktop PCs which are running a certain software product, that is only used once in a while. Do you plan to get rid of those old machines any time soon?
And which server products do you use? Vmware ESX, Vmware Server, Xen installations...? | 0 |
9,750 | 08/13/2008 13:00:48 | 123 | 08/02/2008 08:01:26 | 471 | 22 | Reverse "ON" bits in a byte.. | I was reading Joel's book where he was suggesting as interview question:
Write a program to reverse the "ON" bits in a given byte.
I only can think of a solution using C.
Asking here so you can show me how to do in a Non C way (if possible)
| c | interview-questions | null | null | null | null | open | Reverse "ON" bits in a byte..
===
I was reading Joel's book where he was suggesting as interview question:
Write a program to reverse the "ON" bits in a given byte.
I only can think of a solution using C.
Asking here so you can show me how to do in a Non C way (if possible)
| 0 |
9,761 | 08/13/2008 13:06:49 | 834 | 08/09/2008 07:29:24 | 57 | 6 | Is there a minimum age/years of experience to be a "senior"? | I wondered if there is a common sense of a "minimum age" or at least a certain period of time before a developer is thought of as a "senior".
Do you think, you can't be a senior developer before an age of 35? Or with less than 10y of professional experience on the market? | education | interview-questions | null | null | null | 01/26/2012 13:10:09 | off topic | Is there a minimum age/years of experience to be a "senior"?
===
I wondered if there is a common sense of a "minimum age" or at least a certain period of time before a developer is thought of as a "senior".
Do you think, you can't be a senior developer before an age of 35? Or with less than 10y of professional experience on the market? | 2 |
9,769 | 08/13/2008 13:09:58 | 1,109 | 08/12/2008 12:16:58 | 46 | 4 | Can I script FlexBuilder without writing an extension? | I'd like to script FlexBuilder so that I can run debug or profile without having to switch to FlexBuilder and manually clicking the button (or using the key combo). Is this possible without writing an extension?
To be more specific, this is exactly what I want to do: I want to create a TextMate command that talks to FlexBuilder and makes it run the debug target for the currently selected project. TextMate already has support for interacting with Xcode in this way, and it would be great to be able to do the same with FlexBuilder. | flexbuilder | textmate | null | null | null | null | open | Can I script FlexBuilder without writing an extension?
===
I'd like to script FlexBuilder so that I can run debug or profile without having to switch to FlexBuilder and manually clicking the button (or using the key combo). Is this possible without writing an extension?
To be more specific, this is exactly what I want to do: I want to create a TextMate command that talks to FlexBuilder and makes it run the debug target for the currently selected project. TextMate already has support for interacting with Xcode in this way, and it would be great to be able to do the same with FlexBuilder. | 0 |
9,783 | 08/13/2008 13:18:30 | 1,213 | 08/13/2008 13:18:30 | 1 | 0 | Oracle XE or SQL Server Express | I'm starting a new project here (Windows Forms) and was wondering what's the best option today for a small (free as in beer) dbms.
I've used SQL Server Express on the past projects, but time and time again I hear people saying that the product from Oracle is faster and more powerful.
It will be used in a small company (around 20 users) and will not reach the 4 gb limit any time soon :)
I don't want to start a flame war on my first post, so please point me to some link showing a good (and actual) comparison between the 2 products, if possible.
Greetings from Brazil,
André Casteliano
PS: I've heard about IBM DB2 Express too, but I coudn't find any information about it. (Marketing material from IBM doesn't count :) ) | c# | sql | server | oracle | dbms | null | open | Oracle XE or SQL Server Express
===
I'm starting a new project here (Windows Forms) and was wondering what's the best option today for a small (free as in beer) dbms.
I've used SQL Server Express on the past projects, but time and time again I hear people saying that the product from Oracle is faster and more powerful.
It will be used in a small company (around 20 users) and will not reach the 4 gb limit any time soon :)
I don't want to start a flame war on my first post, so please point me to some link showing a good (and actual) comparison between the 2 products, if possible.
Greetings from Brazil,
André Casteliano
PS: I've heard about IBM DB2 Express too, but I coudn't find any information about it. (Marketing material from IBM doesn't count :) ) | 0 |
9,805 | 08/13/2008 13:38:56 | 383 | 08/05/2008 10:46:37 | 1,561 | 182 | Calculate DateTime Weeks into Rows | I am currently writing a small calendar in ASP.Net C#. Currently to produce the rows of the weeks I do the following for loop:
var iWeeks = 6;
for (int w = 0; w < iWeeks; w++) {
This works fine, however, some month will only have 5 weeks and in some rare cases, 4.
How can I calculate the number of rows that will be required for a particular month? | c# | asp.net | null | null | null | null | open | Calculate DateTime Weeks into Rows
===
I am currently writing a small calendar in ASP.Net C#. Currently to produce the rows of the weeks I do the following for loop:
var iWeeks = 6;
for (int w = 0; w < iWeeks; w++) {
This works fine, however, some month will only have 5 weeks and in some rare cases, 4.
How can I calculate the number of rows that will be required for a particular month? | 0 |
9,820 | 08/13/2008 13:46:14 | 1,212 | 08/13/2008 13:17:40 | 1 | 0 | Environment tiers, from development to deployment - what works best? | So I do development for in-house web apps, C#. We've always had a problem with developers tripping over each other since we typically don't set up more than a *shared* "development" environment and a "production" environment. I want to end that, 'course, but would like some feedback on how to do it. **What's the best way you've found to develop, integrate, test, and deploy your applications?** This is a Microsoft environment, but of course general advice is helpful.
I'm thinking...Windows Server 2008, Hyper-V'ed desktop machine to run local dev environments, then maybe a beefier server for virtualizing a staging tier (basically integration of developers' code together), a testing tier (for our end users to poke around on after some internally-tested code), and then the production tier. Has a four-tiered solution like this worked well? Is virtualizing that much a good idea? | development | null | null | null | null | 06/08/2011 13:30:01 | off topic | Environment tiers, from development to deployment - what works best?
===
So I do development for in-house web apps, C#. We've always had a problem with developers tripping over each other since we typically don't set up more than a *shared* "development" environment and a "production" environment. I want to end that, 'course, but would like some feedback on how to do it. **What's the best way you've found to develop, integrate, test, and deploy your applications?** This is a Microsoft environment, but of course general advice is helpful.
I'm thinking...Windows Server 2008, Hyper-V'ed desktop machine to run local dev environments, then maybe a beefier server for virtualizing a staging tier (basically integration of developers' code together), a testing tier (for our end users to poke around on after some internally-tested code), and then the production tier. Has a four-tiered solution like this worked well? Is virtualizing that much a good idea? | 2 |
9,831 | 08/13/2008 13:49:51 | 1,491,425 | 08/13/2008 13:49:51 | 1 | 0 | Mootools: Drag and Drop problem | I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for mootools with no response. My question is why doesn't the 'enter', 'leave', 'drop' events fire for my '.drop' elements? The events for the .drag elements are working.
<title>Untitled Page</title>
<script type="text/javascript" src="/SDI/includes/mootools-1.2.js"></script>
<script type="text/javascript" src="/SDI/includes/mootools-1.2-more.js"></script>
<script type="text/javascript" charset="utf-8">
window.addEvent('domready', function() {
var fx = [];
$$('#draggables div').each(function(drag){
new Drag.Move(drag, {
droppables: $$('#droppables div'),
onDrop: function(element, droppable){
if(!droppable) {
}
else {
element.setStyle('background-color', '#1d1d20');
}
element.dispose();
},
onEnter: function(element, droppable){
element.setStyle('background-color', '#ffffff');
},
onLeave: function(element, droppable){
element.setStyle('background-color', '#000000');
}
});
});
$$('#droppables div').each(function(drop, index){
drop.addEvents({
'enter': function(el, obj){
drop.setStyle('background-color', '#78ba91');
},
'leave': function(el, obj){
drop.setStyle('background-color', '#1d1d20');
},
'drop': function(el, obj){
el.remove();
}
});
});
});
</script>
<form id="form1" runat="server">
<div>
<div id="draggables">
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
</div>
<div id="droppables">
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
</div>
</div>
</form>
| mootools | javascript | drag | dragdrop | drop | null | open | Mootools: Drag and Drop problem
===
I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for mootools with no response. My question is why doesn't the 'enter', 'leave', 'drop' events fire for my '.drop' elements? The events for the .drag elements are working.
<title>Untitled Page</title>
<script type="text/javascript" src="/SDI/includes/mootools-1.2.js"></script>
<script type="text/javascript" src="/SDI/includes/mootools-1.2-more.js"></script>
<script type="text/javascript" charset="utf-8">
window.addEvent('domready', function() {
var fx = [];
$$('#draggables div').each(function(drag){
new Drag.Move(drag, {
droppables: $$('#droppables div'),
onDrop: function(element, droppable){
if(!droppable) {
}
else {
element.setStyle('background-color', '#1d1d20');
}
element.dispose();
},
onEnter: function(element, droppable){
element.setStyle('background-color', '#ffffff');
},
onLeave: function(element, droppable){
element.setStyle('background-color', '#000000');
}
});
});
$$('#droppables div').each(function(drop, index){
drop.addEvents({
'enter': function(el, obj){
drop.setStyle('background-color', '#78ba91');
},
'leave': function(el, obj){
drop.setStyle('background-color', '#1d1d20');
},
'drop': function(el, obj){
el.remove();
}
});
});
});
</script>
<form id="form1" runat="server">
<div>
<div id="draggables">
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
<div class="drag"></div>
</div>
<div id="droppables">
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
<div class="drop"></div>
</div>
</div>
</form>
| 0 |
9,836 | 08/13/2008 13:51:48 | 1,218 | 08/13/2008 13:43:14 | 1 | 0 | Developer Friendly ERP | My company is currently using Sage MAS as their ERP system. While integrating our shopping cart is not going to be impossible, it uses COM and has it's own challenges.
I was wondering if there was a more developer friendly ERP out there. I have looked into Microsoft Dynamics but getting information on ERP systems that isn't a bunch of business jargon is next to impossible.
I will be using C# 3.whatever and .NET MVC. | c# | erp | null | null | null | null | open | Developer Friendly ERP
===
My company is currently using Sage MAS as their ERP system. While integrating our shopping cart is not going to be impossible, it uses COM and has it's own challenges.
I was wondering if there was a more developer friendly ERP out there. I have looked into Microsoft Dynamics but getting information on ERP systems that isn't a bunch of business jargon is next to impossible.
I will be using C# 3.whatever and .NET MVC. | 0 |
9,846 | 08/13/2008 14:00:55 | 750 | 08/08/2008 14:24:17 | 147 | 5 | Performance critical GUI application (windows,linux) | All,
I've been tasked with updating a series of applications which are performance critical VB.NET apps that essentially just monitor and return networking statistics. I've only got three requirements: *convert it to C#, make it fast, and make it stable*
One caveat is that we *"may"* migrate from a .NET platform to linux *"soon"*
I will be responsible for maintaining these apps in the future so I'd like to do this right. I have decided to refactor these apps according to the MVP pattern so that I can properly unit test the hell out of this bad boy. But I was also thinking since I was using MVP that I could also do the computationally expensive stuff in native C/C++ code while the GUI would be done with .NET forms, or Qt or whatever.
questions:
1) does it make sense to do a GUI in winforms but the expensive stuff in native, unmanaged C/C++ ?
2) any recommendations for a good cross platform windowing kit that would fit for the scenario described above?
advTHANKSance | .net | windows | linux | gui | mfc | null | open | Performance critical GUI application (windows,linux)
===
All,
I've been tasked with updating a series of applications which are performance critical VB.NET apps that essentially just monitor and return networking statistics. I've only got three requirements: *convert it to C#, make it fast, and make it stable*
One caveat is that we *"may"* migrate from a .NET platform to linux *"soon"*
I will be responsible for maintaining these apps in the future so I'd like to do this right. I have decided to refactor these apps according to the MVP pattern so that I can properly unit test the hell out of this bad boy. But I was also thinking since I was using MVP that I could also do the computationally expensive stuff in native C/C++ code while the GUI would be done with .NET forms, or Qt or whatever.
questions:
1) does it make sense to do a GUI in winforms but the expensive stuff in native, unmanaged C/C++ ?
2) any recommendations for a good cross platform windowing kit that would fit for the scenario described above?
advTHANKSance | 0 |
9,856 | 08/13/2008 14:06:24 | 1,223 | 08/13/2008 13:53:10 | 1 | 0 | Using VM to get around VPN restrictions | One major problem I have is corporate IT policy (Oh, I'm not alone then? :) )
Specifically that if I'm off-site using a VPN connection, I cannot link to anything outside that VPN connection.
So my local printer at home is off-limits unless I disconnect - a simplistic example of the hampering. I've been pondering whether a VM machine (or two) could circumvent that by fooling the VPN connected session into thinking another VM session is on the corporate network when it's actually local.
Any ideas? | security | networking | vpn | null | null | null | open | Using VM to get around VPN restrictions
===
One major problem I have is corporate IT policy (Oh, I'm not alone then? :) )
Specifically that if I'm off-site using a VPN connection, I cannot link to anything outside that VPN connection.
So my local printer at home is off-limits unless I disconnect - a simplistic example of the hampering. I've been pondering whether a VM machine (or two) could circumvent that by fooling the VPN connected session into thinking another VM session is on the corporate network when it's actually local.
Any ideas? | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.