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
17,865
08/20/2008 12:56:50
2,013
08/19/2008 19:38:30
1
0
Good Open Source Queuing Platform?
Anybody know of a good and reliable open source queuing server/ platform? I'm working on a project which we need to process millions of items from a queue per day. My challenge is that the queue is not a FIFO, meaning that new items are prioritized and can be inserted somewhere in the middle of the queue. Also, to process these items we'll be using a parallel server distribution platform so the queue needs to accessible from many servers. Thanks!
queue
source
open
null
null
null
open
Good Open Source Queuing Platform? === Anybody know of a good and reliable open source queuing server/ platform? I'm working on a project which we need to process millions of items from a queue per day. My challenge is that the queue is not a FIFO, meaning that new items are prioritized and can be inserted somewhere in the middle of the queue. Also, to process these items we'll be using a parallel server distribution platform so the queue needs to accessible from many servers. Thanks!
0
17,870
08/20/2008 12:58:51
2,116
08/20/2008 12:47:31
1
0
Select ..... where .... OR .....
Is there a way to select data where any one of multiple conditions occur on the same field? Example: I would typically write a statement such as: select * from TABLE where field = 1 or field = 2 or field = 3 Is there a way to instead say something like: select * from TABLE where field = 1 || 2 || 3 ?
mysql
null
null
null
null
null
open
Select ..... where .... OR ..... === Is there a way to select data where any one of multiple conditions occur on the same field? Example: I would typically write a statement such as: select * from TABLE where field = 1 or field = 2 or field = 3 Is there a way to instead say something like: select * from TABLE where field = 1 || 2 || 3 ?
0
17,877
08/20/2008 13:00:27
785
08/08/2008 22:08:29
98
9
How to encrypt connection string in WinForms 1.1 app.config?
Just looking for the first step basic solution here that keeps the honest people out. Thanks, Mike P.S. When I typed this question into the title box, a set of related questions were automatically listed for me. None answered my question in this case, but this is a really sweet feature!
database
winforms
null
null
null
null
open
How to encrypt connection string in WinForms 1.1 app.config? === Just looking for the first step basic solution here that keeps the honest people out. Thanks, Mike P.S. When I typed this question into the title box, a set of related questions were automatically listed for me. None answered my question in this case, but this is a really sweet feature!
0
17,878
08/20/2008 13:01:01
493
08/06/2008 10:25:05
2,180
161
Listen for events in another application.
Suppose I have two applications written in C#. The first is a third party application that raises an event called "OnEmailSent". The second is a custom app that I've written that I would like to somehow subscribe to the "OnEmailSent" even of the first application. Is there any way that I could somehow attach the second application to an instance of the first application to listen for "OnEmailSent" event?
c#
events
delegates
null
null
null
open
Listen for events in another application. === Suppose I have two applications written in C#. The first is a third party application that raises an event called "OnEmailSent". The second is a custom app that I've written that I would like to somehow subscribe to the "OnEmailSent" even of the first application. Is there any way that I could somehow attach the second application to an instance of the first application to listen for "OnEmailSent" event?
0
17,893
08/20/2008 13:07:25
745
08/08/2008 13:47:26
192
15
What's the best way to distribute python command-line tools?
[This](http://github.com/dbr/tvdb_api/tree/master%2Fsetup.py?raw=true) is my current setup.py script. It works okay, but it installs tvnamer.py (the tool) as "tvnamer.py" into site-packages or somewhere similar.. Can I make setup.py install tvnamer.py as tvnamer, and/or is there a better way of installing command-line applications?
python
command-line
packaging
null
null
null
open
What's the best way to distribute python command-line tools? === [This](http://github.com/dbr/tvdb_api/tree/master%2Fsetup.py?raw=true) is my current setup.py script. It works okay, but it installs tvnamer.py (the tool) as "tvnamer.py" into site-packages or somewhere similar.. Can I make setup.py install tvnamer.py as tvnamer, and/or is there a better way of installing command-line applications?
0
17,906
08/20/2008 13:13:16
2,122
08/20/2008 13:13:16
1
0
Enabling a button in WPF depending on ListBox.SelectedIndex
I have a rather classic UI situation - two ListBoxes named SelectedItems and AvailableItems - the idea being that the items you have already selected live in SelectedItems, while the items that are available for adding to SelectedItems (i.e. every item that isn't already in there) live in AvailableItems. Also, I have the < and > buttons to move the current selection from one list to the other (in addition to double clicking, which works fine). Is it possible in WPF to set up a style/trigger to enable or disable the move buttons depending on anything being selected in either ListBox? SelectedItems is on the left side, so the < button will move the selected AvailableItems to that list. However, if no items are selected (AvailableItems.SelectedIndex == -1), I want this button to be disabled (IsEnabled == false) - and the other way around for the other list/button. Is this possible to do directly in XAML, or do I need to create complex logic in the codebehind to handle it? Thanks for any insight!
wpf
null
null
null
null
null
open
Enabling a button in WPF depending on ListBox.SelectedIndex === I have a rather classic UI situation - two ListBoxes named SelectedItems and AvailableItems - the idea being that the items you have already selected live in SelectedItems, while the items that are available for adding to SelectedItems (i.e. every item that isn't already in there) live in AvailableItems. Also, I have the < and > buttons to move the current selection from one list to the other (in addition to double clicking, which works fine). Is it possible in WPF to set up a style/trigger to enable or disable the move buttons depending on anything being selected in either ListBox? SelectedItems is on the left side, so the < button will move the selected AvailableItems to that list. However, if no items are selected (AvailableItems.SelectedIndex == -1), I want this button to be disabled (IsEnabled == false) - and the other way around for the other list/button. Is this possible to do directly in XAML, or do I need to create complex logic in the codebehind to handle it? Thanks for any insight!
0
17,911
08/20/2008 13:15:57
1,306
08/14/2008 13:22:40
11
2
Best Practices for AS3 XML Parsing
I've been having some trouble parsing various types of XML within flash (specifically FeedBurner RSS files and YouTube Data API responses). I'm using a `URLLoader` to load a XML file, and upon `Event.COMPLETE` creating a new XML object. 75% of the time this work fine, and every now and again I get this type of exception: TypeError: Error #1085: The element type "link" must be terminated by the matching end-tag "</link>". We think the problem is that The XML is large, and perhaps the `Event.COMPLETE` event is fired before the XML is actually downloaded from the `URLLoader`. The only solution we have come up with is to set off a timer upon the Event, and essentially "wait a few seconds" before beginning to parse the data. Surely this can't be the best way to do this. Is there any surefire way to parse XML within Flash?
xml
actionscript-3
flash
rss
fileparse
null
open
Best Practices for AS3 XML Parsing === I've been having some trouble parsing various types of XML within flash (specifically FeedBurner RSS files and YouTube Data API responses). I'm using a `URLLoader` to load a XML file, and upon `Event.COMPLETE` creating a new XML object. 75% of the time this work fine, and every now and again I get this type of exception: TypeError: Error #1085: The element type "link" must be terminated by the matching end-tag "</link>". We think the problem is that The XML is large, and perhaps the `Event.COMPLETE` event is fired before the XML is actually downloaded from the `URLLoader`. The only solution we have come up with is to set off a timer upon the Event, and essentially "wait a few seconds" before beginning to parse the data. Surely this can't be the best way to do this. Is there any surefire way to parse XML within Flash?
0
17,918
08/20/2008 13:18:39
277
08/04/2008 10:55:22
150
6
How to Manage Web Development
My question is somewhat related to [this question][1]. What are good ways to set up a reasonably efficient environment for web development. I am using Subversion, and have two servers, a live one, and a dev site that is pretty much a mirror for the code. Up to now, I have been coding directly on the dev site, but I'm now thinking I should pull back and just use it for testing, with each developer having his own version of the site. This does mean having to set up local versions of the database etc. for each user though, and has complications of their own. Does anyone know of a good way to manage this? Perhaps setting up virtual machines and just cloning them to each person, using VMWare perhaps? One slight problem is that some of the code depends on the URL (specifically the subdomain), which means you couldn't just run things on localhost (at least without changing the code I guess, which is a possibility). In any case, I am quite sure issues like this have cropped up again and again, so I would be very interested to learn how other people deal with these issues. I should probably mention that most of the code I write for the web is PHP, though with some Javascript as well. One big benefit of switching to local machines is that I could use a proper debugging environment for PHP, as I am starting to get very frustrated with just echoing data structures to the browser as a way to fix issues. [1]: http://stackoverflow.com/questions/369/how-much-of-the-web-build-process-do-youshould-you-automate
webdevelopment
bestpractices
workenvironment
null
null
null
open
How to Manage Web Development === My question is somewhat related to [this question][1]. What are good ways to set up a reasonably efficient environment for web development. I am using Subversion, and have two servers, a live one, and a dev site that is pretty much a mirror for the code. Up to now, I have been coding directly on the dev site, but I'm now thinking I should pull back and just use it for testing, with each developer having his own version of the site. This does mean having to set up local versions of the database etc. for each user though, and has complications of their own. Does anyone know of a good way to manage this? Perhaps setting up virtual machines and just cloning them to each person, using VMWare perhaps? One slight problem is that some of the code depends on the URL (specifically the subdomain), which means you couldn't just run things on localhost (at least without changing the code I guess, which is a possibility). In any case, I am quite sure issues like this have cropped up again and again, so I would be very interested to learn how other people deal with these issues. I should probably mention that most of the code I write for the web is PHP, though with some Javascript as well. One big benefit of switching to local machines is that I could use a proper debugging environment for PHP, as I am starting to get very frustrated with just echoing data structures to the browser as a way to fix issues. [1]: http://stackoverflow.com/questions/369/how-much-of-the-web-build-process-do-youshould-you-automate
0
17,922
08/20/2008 13:19:34
1,853
08/18/2008 22:03:57
33
5
Any recommendations for lightweight .net Win Forms HTML renderer controls?
Trying to avoid the .net WebBrowser control (I don't need to navigate to a url, print rendered html or any of the other inbuilt goodies). Wrapping the IE dll seems a bit heavyweight. I simply require something that can dusplay basic html marked up text - an html equivalent of [RichTextBox][1] in effect. [1]: http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.aspx
winforms
.net
control
gui
null
null
open
Any recommendations for lightweight .net Win Forms HTML renderer controls? === Trying to avoid the .net WebBrowser control (I don't need to navigate to a url, print rendered html or any of the other inbuilt goodies). Wrapping the IE dll seems a bit heavyweight. I simply require something that can dusplay basic html marked up text - an html equivalent of [RichTextBox][1] in effect. [1]: http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.aspx
0
17,928
08/20/2008 13:22:56
1,781
08/18/2008 14:30:19
116
4
Using an ocx in a console application
I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete.
visual-c++
console
c++
null
null
null
open
Using an ocx in a console application === I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete.
0
17,939
08/20/2008 13:26:04
1,765
08/18/2008 13:26:48
11
2
When do you use sIFR?
I heard Joel and Jeff talking about [sIFR][1] in one of the [early podcasts][2]. I've been using it on www.american-data.com and www.chartright.us with some fairly mixed results. Yesterday I was informed that the first line of text on my website appeared upside down in Internet Explorer 6 without flash player. I'm pretty sure that assessment was wrong, owing to no flash player = no sIFR. But I'm getting some odd behavior on my pages, at least in IE 6, 7 and 8. I only really wanted to use sIFR because my fonts looked crummy on my computer in Firefox. My question is: if you use sIFR, when do you use sIFR? In which cases do you disable sIFR? When is it better to just use the browser font? [1]: http://www.mikeindustries.com/blog/sifr/ [2]: https://stackoverflow.fogbugz.com/default.asp?W12621
webdesign
crossbrowser
sifr
null
null
07/23/2012 20:31:42
not constructive
When do you use sIFR? === I heard Joel and Jeff talking about [sIFR][1] in one of the [early podcasts][2]. I've been using it on www.american-data.com and www.chartright.us with some fairly mixed results. Yesterday I was informed that the first line of text on my website appeared upside down in Internet Explorer 6 without flash player. I'm pretty sure that assessment was wrong, owing to no flash player = no sIFR. But I'm getting some odd behavior on my pages, at least in IE 6, 7 and 8. I only really wanted to use sIFR because my fonts looked crummy on my computer in Firefox. My question is: if you use sIFR, when do you use sIFR? In which cases do you disable sIFR? When is it better to just use the browser font? [1]: http://www.mikeindustries.com/blog/sifr/ [2]: https://stackoverflow.fogbugz.com/default.asp?W12621
4
17,944
08/20/2008 13:27:40
2,084
08/20/2008 10:39:15
11
3
How to Round Up The Result Of Integer Division
I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have *x* items which I want to display in chunks of *y* per page, how many pages will be needed?
c#
java
mathematics
maths
null
null
open
How to Round Up The Result Of Integer Division === I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have *x* items which I want to display in chunks of *y* per page, how many pages will be needed?
0
17,947
08/20/2008 13:28:57
673
08/07/2008 16:33:05
392
38
C# Corrupt Memory Error
I cant post the code (proprietary issues) but does anyone know what types of things would cause the following error in C#. It is being thrown by a VOIP client that I wrote (using counterpath api) when the call is ended by the other client. The error is: <pre><code>System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at CollabAnalysisSF.Edge.GUI.Forms.Program.Main() in d:\data\beyerss\Desktop\client\GUI\ARGui\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: </code></pre>
c#
voip
null
null
null
null
open
C# Corrupt Memory Error === I cant post the code (proprietary issues) but does anyone know what types of things would cause the following error in C#. It is being thrown by a VOIP client that I wrote (using counterpath api) when the call is ended by the other client. The error is: <pre><code>System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at CollabAnalysisSF.Edge.GUI.Forms.Program.Main() in d:\data\beyerss\Desktop\client\GUI\ARGui\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: </code></pre>
0
17,948
08/20/2008 13:29:50
2,173
08/20/2008 18:06:11
1
0
Custom Build
I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the WSDL.exe command to generate a Proxies.cs file for a given tier's web services. When we are ready to deploy our code up the stack from development to test or test to production, we need to run the WSDL.exe command to point to the appropriate version of the web services. Is there a generally accepted way to automate this?
asp.net
buildprocess
wsdl
null
null
null
open
Custom Build === I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the WSDL.exe command to generate a Proxies.cs file for a given tier's web services. When we are ready to deploy our code up the stack from development to test or test to production, we need to run the WSDL.exe command to point to the appropriate version of the web services. Is there a generally accepted way to automate this?
0
17,960
08/20/2008 13:33:58
419
08/05/2008 14:48:22
1,660
106
PowerShell App.Config
Has anyone worked out how to get PowerShell to use app.config files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in app.config/web.config. Thanks Kev
powershell
configurationfiles
null
null
null
null
open
PowerShell App.Config === Has anyone worked out how to get PowerShell to use app.config files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in app.config/web.config. Thanks Kev
0
17,965
08/20/2008 13:38:14
1,084
08/12/2008 11:01:49
100
18
generate a core dump in linux
I have a process in linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?
linux
coredump
null
null
null
null
open
generate a core dump in linux === I have a process in linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?
0
17,966
08/20/2008 13:38:53
26
08/01/2008 12:18:14
712
92
Add a shortcut to Startup folder with parameters in Adobe AIR
I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on first run. File.userDirectory.resolvePath("Start Menu\\Programs\\Startup\\startup.lnk"); However, I am trying to get this to occur during install. I see there is are some settings related to the installation in app.xml, but nothing that lets me install it to two folders, or use a parameter. <!-- The subpath of the standard default installation location to use. Optional. --> <!-- <installFolder></installFolder> --> <!-- The subpath of the Windows Start/Programs menu to use. Optional. --> <!-- <programMenuFolder></programMenuFolder> --> Thanks
air
null
null
null
null
null
open
Add a shortcut to Startup folder with parameters in Adobe AIR === I am trying to include a link to my application in the Startup folder with a parameter passed to the program. I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on first run. File.userDirectory.resolvePath("Start Menu\\Programs\\Startup\\startup.lnk"); However, I am trying to get this to occur during install. I see there is are some settings related to the installation in app.xml, but nothing that lets me install it to two folders, or use a parameter. <!-- The subpath of the standard default installation location to use. Optional. --> <!-- <installFolder></installFolder> --> <!-- The subpath of the Windows Start/Programs menu to use. Optional. --> <!-- <programMenuFolder></programMenuFolder> --> Thanks
0
17,975
08/20/2008 13:42:38
1,130,097
08/16/2008 14:58:30
43
6
Can you recommend a good free code generator?
I've heard about the Codesmith and Resharper and I think they're good but not free, can you recommend the free alternatives?
generation
null
null
null
null
06/12/2012 11:47:20
not constructive
Can you recommend a good free code generator? === I've heard about the Codesmith and Resharper and I think they're good but not free, can you recommend the free alternatives?
4
17,980
08/20/2008 13:44:34
2,128
08/20/2008 13:32:09
1
0
What Comes After The %?
I've searched for this a little but I have not gotten a particularly straight answer. In C (and I guess C++), how do you determine what comes after the % when using printf?. For example: double radius = 1.0; double area = 0.0; area = calculateArea( radius ); printf( "%10.1f %10.2\n", radius, area ); I took this example straight from a book that I have on the C language. This does not make sense to me at all. Where do you come up with 10.1f and 10.2f? Could someone please explain this?
c
null
null
null
null
null
open
What Comes After The %? === I've searched for this a little but I have not gotten a particularly straight answer. In C (and I guess C++), how do you determine what comes after the % when using printf?. For example: double radius = 1.0; double area = 0.0; area = calculateArea( radius ); printf( "%10.1f %10.2\n", radius, area ); I took this example straight from a book that I have on the C language. This does not make sense to me at all. Where do you come up with 10.1f and 10.2f? Could someone please explain this?
0
17,984
08/20/2008 13:45:48
1,185
08/13/2008 12:02:03
486
48
AnkhSVN Cannot Connect Due to Proxy
Alright, this might be a bit of a long shot, but I have having problems getting AnhkSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy configuration. Is there any way to resolve this issue, or will it likely just not work?
visual-studio
svn
vs2005
proxy
ankhsvn
null
open
AnkhSVN Cannot Connect Due to Proxy === Alright, this might be a bit of a long shot, but I have having problems getting AnhkSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy configuration. Is there any way to resolve this issue, or will it likely just not work?
0
17,988
08/20/2008 13:49:24
307
08/04/2008 14:26:05
571
36
How to Learn Python
For a beginner's perspective, can you answer the following: - Best Tool(s) for Python development (e.g. NotePad, Vim) - Best Book to get Started - Best Website for Python beginner - Best Problem Domain to do a sample project (what is Python-based solutions best suited for?)
python
howto
null
null
null
06/28/2011 12:23:21
not constructive
How to Learn Python === For a beginner's perspective, can you answer the following: - Best Tool(s) for Python development (e.g. NotePad, Vim) - Best Book to get Started - Best Website for Python beginner - Best Problem Domain to do a sample project (what is Python-based solutions best suited for?)
4
17,993
08/20/2008 13:50:38
738
08/08/2008 13:15:44
11
3
Easy way to backport Java 6 code to Java 5?
We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up to date.
java
backport
null
null
null
null
open
Easy way to backport Java 6 code to Java 5? === We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up to date.
0
17,996
08/20/2008 13:51:20
781
08/08/2008 21:28:19
63
10
How do you fire a developer?
In an agile team, who's responsible for firing those that consistently fail to contribute? Should the individual recognize he might need to move elsewhere? Should the team bring up the matter, or should the manager take care of it? Any advice on how to do this as humanely as possible?
configurationmanagement
null
null
null
null
null
open
How do you fire a developer? === In an agile team, who's responsible for firing those that consistently fail to contribute? Should the individual recognize he might need to move elsewhere? Should the team bring up the matter, or should the manager take care of it? Any advice on how to do this as humanely as possible?
0
18,006
08/20/2008 13:53:20
2,084
08/20/2008 10:39:15
31
4
Recommendations for a .NET component to access an email inbox
I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything similar before and can you recommend a decent component that won't break the bank (a few hundred dollars maximum)? Would there be any benefits to using IMAP rather than POP3?
.net
email
imap
pop3
null
null
open
Recommendations for a .NET component to access an email inbox === I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything similar before and can you recommend a decent component that won't break the bank (a few hundred dollars maximum)? Would there be any benefits to using IMAP rather than POP3?
0
18,010
08/20/2008 13:54:31
781
08/08/2008 21:28:19
63
10
Is AnkhSVN any good?
I asked a couple of coworkers about AnkhSVN and neither one of them was happy with it. One of them went as far as saying that AnkhSVN has messed up his devenv several times. What's your experience with AnkhSVN? I really miss having an IDE integrated source control tool.
sourcecontrol
ankhsvn
null
null
null
null
open
Is AnkhSVN any good? === I asked a couple of coworkers about AnkhSVN and neither one of them was happy with it. One of them went as far as saying that AnkhSVN has messed up his devenv several times. What's your experience with AnkhSVN? I really miss having an IDE integrated source control tool.
0
18,034
08/20/2008 14:01:43
1,310
08/14/2008 13:42:16
237
16
How do I create a self signed SSL certificate to use while testing a web app.
How do I create a self signed SSL certificate for an Apache Server to use while testing a web app?
apache
ssl
null
null
null
null
open
How do I create a self signed SSL certificate to use while testing a web app. === How do I create a self signed SSL certificate for an Apache Server to use while testing a web app?
0
18,035
08/20/2008 14:02:34
486
08/06/2008 09:19:11
340
37
Why go 64 bit OS?
On these questions: - [Which Vista edition is best for a developer machine?](http://stackoverflow.com/questions/17653/which-vista-edition-is-the-best-for-developer-machine) - [Vista or XP for Dev Machine](http://stackoverflow.com/questions/4433/vista-or-xp-for-dev-machine) People are recommending 64 bit, can you explain why? Is it just so you can have more then 3Gb of addressable RAM that 32 bit gives you? And how does Visual Studio benefit from all this extra RAM? I went from 64 bit XP back to 32 bit due to 90% of the software I was using only being 32 bit anyway and I had issues with drivers and some software with 64 bit.
windows-vista
64bit
xp
operating-system
computer
null
open
Why go 64 bit OS? === On these questions: - [Which Vista edition is best for a developer machine?](http://stackoverflow.com/questions/17653/which-vista-edition-is-the-best-for-developer-machine) - [Vista or XP for Dev Machine](http://stackoverflow.com/questions/4433/vista-or-xp-for-dev-machine) People are recommending 64 bit, can you explain why? Is it just so you can have more then 3Gb of addressable RAM that 32 bit gives you? And how does Visual Studio benefit from all this extra RAM? I went from 64 bit XP back to 32 bit due to 90% of the software I was using only being 32 bit anyway and I had issues with drivers and some software with 64 bit.
0
18,054
08/20/2008 14:09:10
920
08/10/2008 12:52:43
16
2
MSCT Certification, Exam 70-536, your advices?
At the beginning of the year, I was proposed by my company to take some MS certification exams. Since then, they generously paid for the Self-Paced Training Kit book. I was promised to have some time to study, but the project is running late (a habit around here). Let's face it, I'll have to study on my own time to get this certification. Anyway, my question is simple: what advices do you have in order to study effectively? I'm halfway trough the book, and I feel like I don't remember anything. Especially when the questions are so precise on classes name and parameters...
.net-2.0
certification
mcts
null
null
null
open
MSCT Certification, Exam 70-536, your advices? === At the beginning of the year, I was proposed by my company to take some MS certification exams. Since then, they generously paid for the Self-Paced Training Kit book. I was promised to have some time to study, but the project is running late (a habit around here). Let's face it, I'll have to study on my own time to get this certification. Anyway, my question is simple: what advices do you have in order to study effectively? I'm halfway trough the book, and I feel like I don't remember anything. Especially when the questions are so precise on classes name and parameters...
0
18,059
08/20/2008 14:10:39
42
08/01/2008 13:00:11
630
24
WebBrowser Control
I'm using the System.Windows.Forms.WebBrowser, to make a view a la Visual Studio Start Page. However, it seems the control is catching and handling all exceptions by silently sinking them! No need to tell you how this is a very unfortunate behaviour. Is there any way to tell the WebBrowser control to stop sinking the exceptions and just forward them the natural and expected way?
.net
webbrowser
winforms
null
null
null
open
WebBrowser Control === I'm using the System.Windows.Forms.WebBrowser, to make a view a la Visual Studio Start Page. However, it seems the control is catching and handling all exceptions by silently sinking them! No need to tell you how this is a very unfortunate behaviour. Is there any way to tell the WebBrowser control to stop sinking the exceptions and just forward them the natural and expected way?
0
18,075
08/20/2008 14:18:10
292
08/04/2008 13:14:31
367
14
SQL/Query tools?
I haven't really done a ton of database work in a few years and have become unaccustomed with the tools available. Back a few years ago I was working with oracle databases and was using primarily TOAD with a little bit of MS Access as my tools of choice to prototype the queries I was using in my applications. I really loved TOAD in that it was super intuitive and really easy to use and I'm hoping to find something similar for MS SQL Server. Something open source or free is preferable, since I doubt my client will want to pay for anything, but I'm willing to hear suggestions of things that cost money if they are far and away the best in class tool available.
sql-server
oracle
query
toad
null
null
open
SQL/Query tools? === I haven't really done a ton of database work in a few years and have become unaccustomed with the tools available. Back a few years ago I was working with oracle databases and was using primarily TOAD with a little bit of MS Access as my tools of choice to prototype the queries I was using in my applications. I really loved TOAD in that it was super intuitive and really easy to use and I'm hoping to find something similar for MS SQL Server. Something open source or free is preferable, since I doubt my client will want to pay for anything, but I'm willing to hear suggestions of things that cost money if they are far and away the best in class tool available.
0
18,077
08/20/2008 14:18:33
2,114
08/20/2008 12:26:57
1
1
The best way of checking for -moz-border-radius support
I wanted some of those spiffy rounded corners for a web project that I'm currently working on. I thought I'd try to accomplish it using javascript and not CSS in an effort to keep the requests for image files to a minimum (yes, I know that it's possible to combine all required rounded corner shapes into one image) and I also wanted to be able to change the background color pretty much on the fly. I already utilize jQuery so I looked at the excellent [rounded corners plugin][1] and it worked like a charm in every browser I tried. Being a developer however I noticed the opportunity to make it a bit more efficient. The script already includes code for detecting if the current browser supports webkit rounded corners (safari based browsers). If so it uses raw CSS instead of creating layers of divs. I thought that it would be awesome if the same kind of check could be performed to see if the browser supports the Gecko-specific -moz-border-radius-* properties and if so utilize them. The check for webkit support looks like this: var webkitAvailable = false; try { webkitAvailable = (document.defaultView.getComputedStyle(this[0], null)['-webkit-border-radius'] != undefined); } catch(err) {} That, however, did not work for -moz-border-radius so I started checking for alternatives. My fallback solution is of course to use browser detection but that's far from recommended practice ofcourse. My best solution yet is as follows. var mozborderAvailable = false; try { var o = jQuery('<div>').css('-moz-border-radius', '1px'); mozborderAvailable = $(o).css('-moz-border-radius-topleft') == '1px'; o = null; } catch(err) {} Is there any javascript/CSS guru out there that have a better solution? (The feature request for this page is at <http://plugins.jquery.com/node/3619>) [1]: http://plugins.jquery.com/project/corners
javascript
css
null
null
null
null
open
The best way of checking for -moz-border-radius support === I wanted some of those spiffy rounded corners for a web project that I'm currently working on. I thought I'd try to accomplish it using javascript and not CSS in an effort to keep the requests for image files to a minimum (yes, I know that it's possible to combine all required rounded corner shapes into one image) and I also wanted to be able to change the background color pretty much on the fly. I already utilize jQuery so I looked at the excellent [rounded corners plugin][1] and it worked like a charm in every browser I tried. Being a developer however I noticed the opportunity to make it a bit more efficient. The script already includes code for detecting if the current browser supports webkit rounded corners (safari based browsers). If so it uses raw CSS instead of creating layers of divs. I thought that it would be awesome if the same kind of check could be performed to see if the browser supports the Gecko-specific -moz-border-radius-* properties and if so utilize them. The check for webkit support looks like this: var webkitAvailable = false; try { webkitAvailable = (document.defaultView.getComputedStyle(this[0], null)['-webkit-border-radius'] != undefined); } catch(err) {} That, however, did not work for -moz-border-radius so I started checking for alternatives. My fallback solution is of course to use browser detection but that's far from recommended practice ofcourse. My best solution yet is as follows. var mozborderAvailable = false; try { var o = jQuery('<div>').css('-moz-border-radius', '1px'); mozborderAvailable = $(o).css('-moz-border-radius-topleft') == '1px'; o = null; } catch(err) {} Is there any javascript/CSS guru out there that have a better solution? (The feature request for this page is at <http://plugins.jquery.com/node/3619>) [1]: http://plugins.jquery.com/project/corners
0
18,080
08/20/2008 14:20:40
2,086
08/20/2008 10:43:39
1
0
Best traffic / performance / usage monitoring module?
Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP site and use to provide reporting on things like performance over time, vs current load, page traffic etc. etc. Ideally in c# :) With some sexy graphs.
performance
monitoring
usage
null
null
null
open
Best traffic / performance / usage monitoring module? === Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP site and use to provide reporting on things like performance over time, vs current load, page traffic etc. etc. Ideally in c# :) With some sexy graphs.
0
18,082
08/20/2008 14:21:13
29
08/01/2008 12:24:53
56
8
Validate numbers in Javascript - IsNumeric()
What's the cleanest, most effective way to validate decimal numbers in javascript? Bonus points for: 1. Clarity--solution should be clean and simple 2. Cross-platform Test cases: 1. IsNumeric('-1') => true 2. IsNumeric('-1.5') => true 3. IsNumeric('0') => true 4. IsNumeric('0.42') => true 5. Isnumeric('.42') => true 6. IsNUmeric('99,999') => *false* 7. IsNumeric('0x89f') => *false* 8. IsNumeric('#abcdef')=> *false* 9. IsNumeric('1.2.3') => *false* 10. IsNumeric('') => *false* 11. IsNumeric('blah') => *false*
javascript
numbers
inputvalidation
null
null
null
open
Validate numbers in Javascript - IsNumeric() === What's the cleanest, most effective way to validate decimal numbers in javascript? Bonus points for: 1. Clarity--solution should be clean and simple 2. Cross-platform Test cases: 1. IsNumeric('-1') => true 2. IsNumeric('-1.5') => true 3. IsNumeric('0') => true 4. IsNumeric('0.42') => true 5. Isnumeric('.42') => true 6. IsNUmeric('99,999') => *false* 7. IsNumeric('0x89f') => *false* 8. IsNumeric('#abcdef')=> *false* 9. IsNumeric('1.2.3') => *false* 10. IsNumeric('') => *false* 11. IsNumeric('blah') => *false*
0
18,088
08/20/2008 14:23:24
543
08/06/2008 15:41:31
210
20
studies on JEE vs. .NET?
I've been tasked with the awesome responsibility of trying to document the advantages of using JEE for a web app over .NET. Of course via Google I am mostly getting back blog posts on how an Int is an object in Java, or a list of code comparisons. No real hard evidence or numbers. Is anybody aware of any legitimate studies trying to prove that one of the platforms is better than the other? For example, I'd guess that there are probably a lot more free APIs out there for Java than there are for .NET. Many people share that opinion with me. But has that ever been documented anywhere, did anybody ever attempt to quantify it? Is there a study on the quality of developer (education, level of experience, even salary) that does a Java app vs. the quality of a developer that is doing .NET? etc.
java
java-ee
c#
.net
null
null
open
studies on JEE vs. .NET? === I've been tasked with the awesome responsibility of trying to document the advantages of using JEE for a web app over .NET. Of course via Google I am mostly getting back blog posts on how an Int is an object in Java, or a list of code comparisons. No real hard evidence or numbers. Is anybody aware of any legitimate studies trying to prove that one of the platforms is better than the other? For example, I'd guess that there are probably a lot more free APIs out there for Java than there are for .NET. Many people share that opinion with me. But has that ever been documented anywhere, did anybody ever attempt to quantify it? Is there a study on the quality of developer (education, level of experience, even salary) that does a Java app vs. the quality of a developer that is doing .NET? etc.
0
18,097
08/20/2008 14:26:32
1,463
08/15/2008 17:26:44
131
12
In C#, do you need to call the base constructor?
In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor? (or will it implicitly be called? class BaseClass { public BaseClass() { // ... some code } } class MyClass : BaseClass { public MyClass() // Do I need to put ": base()" here or is it implied? { // ... some code } }
c#
null
null
null
null
null
open
In C#, do you need to call the base constructor? === In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor? (or will it implicitly be called? class BaseClass { public BaseClass() { // ... some code } } class MyClass : BaseClass { public MyClass() // Do I need to put ": base()" here or is it implied? { // ... some code } }
0
18,104
08/20/2008 14:29:51
1,311
08/14/2008 13:43:09
263
26
Standalone tools for debugging stored procedures
I was looking for a good free debugger for STP (Stored Procedures) as I need to make changes to a few of them as a part of my recent project. The stored procedures are stored in independent '.sql' files and not in the code. A debugger would speed things up quite a it in my case. Could anyone recommend any tools that can be used for this?
sql
debugging
free
storedprocedures
null
null
open
Standalone tools for debugging stored procedures === I was looking for a good free debugger for STP (Stored Procedures) as I need to make changes to a few of them as a part of my recent project. The stored procedures are stored in independent '.sql' files and not in the code. A debugger would speed things up quite a it in my case. Could anyone recommend any tools that can be used for this?
0
18,126
08/20/2008 14:45:27
1,409
08/15/2008 13:18:51
129
10
What tools (other than IDE) to you find useful?
I'm always on the lookout for tools to help make me more efficient, so I was wondering what kinds of tools, other than IDEs/text editors (these have been covered in a few questions), that people use to make themselves more productive. Here's a list of the tools I currently find useful: - [Launchy][1] - application launcher, to make launching apps much faster - [VirtuaWin][2] - Lightweight virtual desktop manager, to make it easier to manage the many windows/apps I have to use. - [Process Explorer][3] - Task manager replacement, which besides regular Task Manager tasks I use as a simple resource usage measurement tool (can see the CPU, memory, and other stats for the apps I'm working on). - [TCPView][4] - GUI for netstat, for debugging simple network issues. Also lets you close net connections, which can be helpful for testing network error handling in my apps. - [Wireshark][5] - packet tracer, for debugging network issues - [cygwin][6] - For a good commandline experience in windows. I find I can be a lot more efficient at some things by using the command line, and I find zsh *much* easier and more powerful to use than cmd. Also, using xTerms in rootless mode gives me command line windows that are easier to handle (resize just like any other window, unlike cmd windows). - [Synergy][7] - software-based KVM. Lets me use a single keyboard and mouse for multiple devel boxes. [1]: http://www.launchy.net/ [2]: http://virtuawin.sourceforge.net/ [3]: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx [4]: http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx [5]: http://www.wireshark.org/ [6]: http://cygwin.org/ [7]: http://synergy2.sourceforge.net/
productivity
null
null
null
null
08/19/2011 16:13:42
not constructive
What tools (other than IDE) to you find useful? === I'm always on the lookout for tools to help make me more efficient, so I was wondering what kinds of tools, other than IDEs/text editors (these have been covered in a few questions), that people use to make themselves more productive. Here's a list of the tools I currently find useful: - [Launchy][1] - application launcher, to make launching apps much faster - [VirtuaWin][2] - Lightweight virtual desktop manager, to make it easier to manage the many windows/apps I have to use. - [Process Explorer][3] - Task manager replacement, which besides regular Task Manager tasks I use as a simple resource usage measurement tool (can see the CPU, memory, and other stats for the apps I'm working on). - [TCPView][4] - GUI for netstat, for debugging simple network issues. Also lets you close net connections, which can be helpful for testing network error handling in my apps. - [Wireshark][5] - packet tracer, for debugging network issues - [cygwin][6] - For a good commandline experience in windows. I find I can be a lot more efficient at some things by using the command line, and I find zsh *much* easier and more powerful to use than cmd. Also, using xTerms in rootless mode gives me command line windows that are easier to handle (resize just like any other window, unlike cmd windows). - [Synergy][7] - software-based KVM. Lets me use a single keyboard and mouse for multiple devel boxes. [1]: http://www.launchy.net/ [2]: http://virtuawin.sourceforge.net/ [3]: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx [4]: http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx [5]: http://www.wireshark.org/ [6]: http://cygwin.org/ [7]: http://synergy2.sourceforge.net/
4
18,132
08/20/2008 14:48:00
64
08/01/2008 14:27:12
69
10
ADO.NET Entity vs NHibernate
So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback? Finally, what are thoughts on using NHibernate which has been around for a long time and _may_ be more mature than the ADO.NET Entity Framework.
ado.net
nhibernate
orm
null
null
null
open
ADO.NET Entity vs NHibernate === So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback? Finally, what are thoughts on using NHibernate which has been around for a long time and _may_ be more mature than the ADO.NET Entity Framework.
0
18,156
08/20/2008 14:58:20
1,982
08/19/2008 16:54:34
50
2
What is a good book on MySql for someone experienced with SQL Server?
I am about to migrate a project from SQL Server to MySQL. I am looking for a good book that will quickly get me up to speed with MySQL (that assumes I already have a good knowledge of relational databases). Any recommendations?
mysql
mssql
null
null
null
null
open
What is a good book on MySql for someone experienced with SQL Server? === I am about to migrate a project from SQL Server to MySQL. I am looking for a good book that will quickly get me up to speed with MySQL (that assumes I already have a good knowledge of relational databases). Any recommendations?
0
18,166
08/20/2008 15:02:49
204
08/03/2008 13:27:56
404
27
cURL adding whitespace to post content?
I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response: $file = 'test.xml'; $fileHandle = fopen($file, 'r'); $request = fread($fileHandle, filesize($file)); fclose($fileHandle); $request = trim($request); $curlHandle = curl_init($servletURL); curl_setopt($curlHandle, CURLOPT_POST, TRUE); curl_setopt($curlHandle, CURLOPT_POSTFIELDS, array('XML'=>$request)); curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curlHandle, CURLOPT_HEADER, FALSE); # Have also tried leaving this out $response = curl_exec($curlHandle); That code, in an of itself, works OK, but the other server returns a response from it's XML parser stating: > Content not allowed in prolog I looked that error up and this is normally caused by whitespace before the XML, but I made sure that the XML file itself has no whitespace and the trim() should clear that up anyway. I did a TCPDump on the connection while I ran the code and this is what is sent out: POST {serverURL} HTTP/1.1 Host: {ip of server}:8080 Accept: */* Content-Length: 921 Expect: 100-continue Content-Type: multipart/form-data; boundry:---------------------------01e7cda3896f ---------------------------01e7cda3896f Content-Disposition: form-data; name="XML" [SNIP - the XML was displayed] ---------------------------01e7cda3896f-- Before and after the [SNIP] line there is visible whitespace when I replay the session in Ethereal. Is this what is causing the problem and, if so, how can I remove it, or am I looking too far and this may be an issue with the server I'm posting against?
php
curl
xml
null
null
null
open
cURL adding whitespace to post content? === I am attempting to POST against a vendor's server using PHP 5.2 with cURL. I'm reading in an XML document to post against their server and then reading in a response: $file = 'test.xml'; $fileHandle = fopen($file, 'r'); $request = fread($fileHandle, filesize($file)); fclose($fileHandle); $request = trim($request); $curlHandle = curl_init($servletURL); curl_setopt($curlHandle, CURLOPT_POST, TRUE); curl_setopt($curlHandle, CURLOPT_POSTFIELDS, array('XML'=>$request)); curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curlHandle, CURLOPT_HEADER, FALSE); # Have also tried leaving this out $response = curl_exec($curlHandle); That code, in an of itself, works OK, but the other server returns a response from it's XML parser stating: > Content not allowed in prolog I looked that error up and this is normally caused by whitespace before the XML, but I made sure that the XML file itself has no whitespace and the trim() should clear that up anyway. I did a TCPDump on the connection while I ran the code and this is what is sent out: POST {serverURL} HTTP/1.1 Host: {ip of server}:8080 Accept: */* Content-Length: 921 Expect: 100-continue Content-Type: multipart/form-data; boundry:---------------------------01e7cda3896f ---------------------------01e7cda3896f Content-Disposition: form-data; name="XML" [SNIP - the XML was displayed] ---------------------------01e7cda3896f-- Before and after the [SNIP] line there is visible whitespace when I replay the session in Ethereal. Is this what is causing the problem and, if so, how can I remove it, or am I looking too far and this may be an issue with the server I'm posting against?
0
18,172
08/20/2008 15:04:20
2,144
08/20/2008 14:49:43
1
0
Copying Files over an Intermittent Network Connection
I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily or for several minutes at a time. The files involved are typically about 200KB - 500KB in size. The application is written in VB6 (ugh), but we frequently end up using Windows DLL calls. Thanks!
windows
vb6
null
null
null
null
open
Copying Files over an Intermittent Network Connection === I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily or for several minutes at a time. The files involved are typically about 200KB - 500KB in size. The application is written in VB6 (ugh), but we frequently end up using Windows DLL calls. Thanks!
0
18,183
08/20/2008 15:10:44
2,016
08/19/2008 19:49:14
1
2
Good SQL Server 2005/2008 References
What are some good references for SQL Server 2005/2008? As someone with background working in PHP and interacting with MySQL/PostGreSQL databases, is there anything specific that I should be on the look out for?
sql-server
.net
null
null
null
null
open
Good SQL Server 2005/2008 References === What are some good references for SQL Server 2005/2008? As someone with background working in PHP and interacting with MySQL/PostGreSQL databases, is there anything specific that I should be on the look out for?
0
18,194
08/20/2008 15:14:13
2,147
08/20/2008 15:14:13
1
0
Best way to learn MS-SQL
So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, books, etc)? I want to learn more about the SQL language moreso than any of the fancy point and click stuff.
mssql
sql
databases
null
null
null
open
Best way to learn MS-SQL === So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, books, etc)? I want to learn more about the SQL language moreso than any of the fancy point and click stuff.
0
18,197
08/20/2008 15:15:06
770
08/08/2008 17:20:44
700
45
How do you test the usability of you user interfaces
How do you test the usability of the user interfaces of your applications - be they web or desktop? Do you just throw it all together and then tweak it based on user experience once the application is live? Or do you pass it to a specific usability team for testing prior to release? We are a small software house, but I am interested in the best practices of how to measure usability. Any help appreciated.
testing
gui
user-interface
usability
null
null
open
How do you test the usability of you user interfaces === How do you test the usability of the user interfaces of your applications - be they web or desktop? Do you just throw it all together and then tweak it based on user experience once the application is live? Or do you pass it to a specific usability team for testing prior to release? We are a small software house, but I am interested in the best practices of how to measure usability. Any help appreciated.
0
18,199
08/20/2008 15:15:25
2,059
08/20/2008 02:45:33
1
1
How do I generate scripts that will rebuild my MS SQL Server 2005 database WITH data?
I have a SQL Server 2005 database that I would like to be able to recreate at a moment's notice. I want to be able to point to my database and generate a complete set of scripts that will not only create all the tables/views/sprocs/functions that are in the database, but will also populate all the tables with data. Are there any tools that do this? Are there any open-source or FREE tools that do this?
sql-server
data
script
generate
null
null
open
How do I generate scripts that will rebuild my MS SQL Server 2005 database WITH data? === I have a SQL Server 2005 database that I would like to be able to recreate at a moment's notice. I want to be able to point to my database and generate a complete set of scripts that will not only create all the tables/views/sprocs/functions that are in the database, but will also populate all the tables with data. Are there any tools that do this? Are there any open-source or FREE tools that do this?
0
18,216
08/20/2008 15:23:02
71
08/01/2008 15:05:56
764
82
Query a union table with fields as columns.
I'm not quite sure if this is possible, or falls into the category of Pivot tables, but I figured I'd go to the pros to see. I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the same property, I decided to use the union table approach to store data instead of having a really big column structure in my card table. The property table is a basic keyword/value type table. So you have the keyword ATK and the value assigned to it. There is another property called SpecialType which a card can have multiple values for, such as "Sycnro" and "DARK" What I'd like to do is create a view or stored procedure that gives me the Card Id, Card Name, and all the property keywords assigned to the card as columns and their values in the ResultSet for a card specified. So ideally I'd have a result set like: ID NAME SPECIALTYPE 1 Red Dragon Archfiend Synchro 1 Red Dragon Archfiend DARK 1 Red Dragon Archfiend Effect and I could tally my results that way. I guess even slicker would be to simply concatenate the properties together based on their keyword, so I could generate a ResultSet like: 1 Red Dragon Archfiend Synchro/DARK/Effect ..but I don't know if that's feasible. Help me stackoverflow Kenobi! You're my only hope.
sql
database-design
stored-procedure
null
null
null
open
Query a union table with fields as columns. === I'm not quite sure if this is possible, or falls into the category of Pivot tables, but I figured I'd go to the pros to see. I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the same property, I decided to use the union table approach to store data instead of having a really big column structure in my card table. The property table is a basic keyword/value type table. So you have the keyword ATK and the value assigned to it. There is another property called SpecialType which a card can have multiple values for, such as "Sycnro" and "DARK" What I'd like to do is create a view or stored procedure that gives me the Card Id, Card Name, and all the property keywords assigned to the card as columns and their values in the ResultSet for a card specified. So ideally I'd have a result set like: ID NAME SPECIALTYPE 1 Red Dragon Archfiend Synchro 1 Red Dragon Archfiend DARK 1 Red Dragon Archfiend Effect and I could tally my results that way. I guess even slicker would be to simply concatenate the properties together based on their keyword, so I could generate a ResultSet like: 1 Red Dragon Archfiend Synchro/DARK/Effect ..but I don't know if that's feasible. Help me stackoverflow Kenobi! You're my only hope.
0
18,223
08/20/2008 15:26:06
741
08/08/2008 13:24:51
11
4
SQL Server 2005 insert trigger not inserting enough records
I have a table in a SQL Server 2005 database with a trigger that is supposed to add a record to a different table whenever a new record is inserted. It seems to work fine, but if I execute an Insert Into on the master table that uses a subquery as the source of the values, the trigger only inserts one record in the other table, even though multiple records were added to the master. I want the trigger to fire for each new record added to the master table. Is that possible in 2005? The insert I'm doing is: INSERT INTO [tblMenuItems] ([ID], [MenuID], [SortOrder], [ItemReference], [MenuReference], [ConcurrencyID]) SELECT [ID], [MenuID], [SortOrder], [ItemReference], [MenuReference], [ConcurrencyID] FROM [IVEEtblMenuItems] Here is what the trigger looks like: CREATE TRIGGER [dbo].[tblMenuItemInsertSecurity] ON [dbo].[tblMenuItems] FOR INSERT AS Declare @iRoleID int Declare @iMenuItemID int Select @iMenuItemID = [ID] from Inserted DECLARE tblUserRoles CURSOR FASTFORWARD FOR SELECT [ID] from tblUserRoles OPEN tblUserRoles FETCH NEXT FROM tblUserRoles INTO @iRoleID WHILE (@@FetchStatus = 0) BEGIN INSERT INTO tblRestrictedMenuItems( [RoleID], [MenuItemID], [RestrictLevel]) VALUES( @iRoleID, @iMenuItemID, 1) FETCH NEXT FROM tblUserRoles INTO @iRoleID END CLOSE tblUserRoles Deallocate tblUserRoles
sql-server
null
null
null
null
null
open
SQL Server 2005 insert trigger not inserting enough records === I have a table in a SQL Server 2005 database with a trigger that is supposed to add a record to a different table whenever a new record is inserted. It seems to work fine, but if I execute an Insert Into on the master table that uses a subquery as the source of the values, the trigger only inserts one record in the other table, even though multiple records were added to the master. I want the trigger to fire for each new record added to the master table. Is that possible in 2005? The insert I'm doing is: INSERT INTO [tblMenuItems] ([ID], [MenuID], [SortOrder], [ItemReference], [MenuReference], [ConcurrencyID]) SELECT [ID], [MenuID], [SortOrder], [ItemReference], [MenuReference], [ConcurrencyID] FROM [IVEEtblMenuItems] Here is what the trigger looks like: CREATE TRIGGER [dbo].[tblMenuItemInsertSecurity] ON [dbo].[tblMenuItems] FOR INSERT AS Declare @iRoleID int Declare @iMenuItemID int Select @iMenuItemID = [ID] from Inserted DECLARE tblUserRoles CURSOR FASTFORWARD FOR SELECT [ID] from tblUserRoles OPEN tblUserRoles FETCH NEXT FROM tblUserRoles INTO @iRoleID WHILE (@@FetchStatus = 0) BEGIN INSERT INTO tblRestrictedMenuItems( [RoleID], [MenuItemID], [RestrictLevel]) VALUES( @iRoleID, @iMenuItemID, 1) FETCH NEXT FROM tblUserRoles INTO @iRoleID END CLOSE tblUserRoles Deallocate tblUserRoles
0
18,224
08/20/2008 15:26:28
1,946
08/19/2008 14:53:06
1
0
Whats the best way to securely push a site to a live server?
So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool?
deployment
null
null
null
null
null
open
Whats the best way to securely push a site to a live server? === So, in your experience, whats the best way? Is there a secure way that's also scriptable/triggerable in a build automation tool?
0
18,253
08/20/2008 15:43:55
2,150
08/20/2008 15:43:55
1
0
Unit testing kernel drivers
I'm looking for a testing framework for the Windows kernel environment. So far, I've found [cfix][1]. Has any one tried it? Are there alternatives? [1]: http://cfix.sourceforge.net/
windows
unittesting
drivers
kernel
null
null
open
Unit testing kernel drivers === I'm looking for a testing framework for the Windows kernel environment. So far, I've found [cfix][1]. Has any one tried it? Are there alternatives? [1]: http://cfix.sourceforge.net/
0
18,254
08/20/2008 15:44:58
2,064
08/20/2008 03:39:44
1
0
What is a good windows batch scipting refference guide?
I have found a few guides to be incomplete and hard to follow. Can I get a recommendation for a couple good guides on this subject?
batch
null
null
null
null
null
open
What is a good windows batch scipting refference guide? === I have found a few guides to be incomplete and hard to follow. Can I get a recommendation for a couple good guides on this subject?
0
18,272
08/20/2008 15:58:40
770
08/08/2008 17:20:44
740
49
Recommend a tool to manage Extended Properties in SQL server 2005
Server Management Studio tends to be a bit un-intuitive when it comes to managing Extended Properties, so can anyone recommend a decent tool that improves the situation. One thing I would like to do is to have templates that I can apply objects, thus standardising the nomenclature and content of the properties applied to objects. Many thanks.
mssql
extended-properties
null
null
null
null
open
Recommend a tool to manage Extended Properties in SQL server 2005 === Server Management Studio tends to be a bit un-intuitive when it comes to managing Extended Properties, so can anyone recommend a decent tool that improves the situation. One thing I would like to do is to have templates that I can apply objects, thus standardising the nomenclature and content of the properties applied to objects. Many thanks.
0
18,284
08/20/2008 16:08:43
1,429
08/15/2008 15:27:54
1
0
Best Way to Begin Learning Web Application Design
I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications. I don't usually have any issues learning new languages or technologies, so I'm not worried about which is the "best" language or web stack to work with. Instead, I'd like to know of any recommended resources (books, articles, web sites, maybe even college courses) that discuss web application design: managing and optimizing server interaction, security concerns, scalability, and other topics that fall under design rather than implementation. What would you recommend for a Standalone Application Developer wanting to branch out into Web Development?
language-agnostic
design
web-application
resources
null
null
open
Best Way to Begin Learning Web Application Design === I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications. I don't usually have any issues learning new languages or technologies, so I'm not worried about which is the "best" language or web stack to work with. Instead, I'd like to know of any recommended resources (books, articles, web sites, maybe even college courses) that discuss web application design: managing and optimizing server interaction, security concerns, scalability, and other topics that fall under design rather than implementation. What would you recommend for a Standalone Application Developer wanting to branch out into Web Development?
0
18,285
08/20/2008 16:09:29
1,190
08/13/2008 12:15:38
477
42
Is "RTFM" counter-productive?
I'm reading the very excellent [The Design of Everyday Things][1] by Donald Norman. In it, he describes a common problem: > The reason [that nobody reported a problem with the system] was simple: when the system stopped working or did something strange, the secretaries dutifully reported it as a problem. But when they made the "return" versus "enter" error, they blamed themselves. After all, they had been told what to do. They had simply erred. A common response to many technical problems (though not so common on SOFlow, thankfully), is to simply say, "[RTFM][2]" (warning: explicit). I'm sure there are cases when this really is the best response. But take a problem like `printf`, where there is mass confusion. (See [this question][3]; in particular [this response][4] and [my counter][5].) * The *obvious* parallel from `printf` to the written number is that "10.2f" means a **f**loat with **10** digits, then a decimal, and finally **2** more digits. * The *correct* interpretation, however, is that the *width* is 10 (including decimal) and there are two digits after. Clearly we can't redesign all of `printf` now -- too much would break. But in the next version -- let's call it `aprintf`, can't we make the usage match the expectation? I think there is a danger in saying, "it's the user's fault for not reading the spec," when the spec is poorly designed. *Nota bene*: I'm *not* saying that the design of `printf` is the wrong one; maybe there are *really good reasons* why it *must* be that way. But users can't be expected to foresee those reasons, so the design is counterintuitive. In summary: blaming the user gets us designers and programmers off the hook, but it doesn't make anyone's life easier in the long run. [1]: http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0465067107/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1219248022&sr=8-1 [2]: http://en.wikipedia.org/wiki/RTFM [3]: http://stackoverflow.com/questions/17980/what-comes-after-the#18202 [4]: http://stackoverflow.com/questions/17980/what-comes-after-the#18004 [5]: http://stackoverflow.com/questions/17980/what-comes-after-the#18202
design
specs
rtfm
null
null
null
open
Is "RTFM" counter-productive? === I'm reading the very excellent [The Design of Everyday Things][1] by Donald Norman. In it, he describes a common problem: > The reason [that nobody reported a problem with the system] was simple: when the system stopped working or did something strange, the secretaries dutifully reported it as a problem. But when they made the "return" versus "enter" error, they blamed themselves. After all, they had been told what to do. They had simply erred. A common response to many technical problems (though not so common on SOFlow, thankfully), is to simply say, "[RTFM][2]" (warning: explicit). I'm sure there are cases when this really is the best response. But take a problem like `printf`, where there is mass confusion. (See [this question][3]; in particular [this response][4] and [my counter][5].) * The *obvious* parallel from `printf` to the written number is that "10.2f" means a **f**loat with **10** digits, then a decimal, and finally **2** more digits. * The *correct* interpretation, however, is that the *width* is 10 (including decimal) and there are two digits after. Clearly we can't redesign all of `printf` now -- too much would break. But in the next version -- let's call it `aprintf`, can't we make the usage match the expectation? I think there is a danger in saying, "it's the user's fault for not reading the spec," when the spec is poorly designed. *Nota bene*: I'm *not* saying that the design of `printf` is the wrong one; maybe there are *really good reasons* why it *must* be that way. But users can't be expected to foresee those reasons, so the design is counterintuitive. In summary: blaming the user gets us designers and programmers off the hook, but it doesn't make anyone's life easier in the long run. [1]: http://www.amazon.com/Design-Everyday-Things-Donald-Norman/dp/0465067107/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1219248022&sr=8-1 [2]: http://en.wikipedia.org/wiki/RTFM [3]: http://stackoverflow.com/questions/17980/what-comes-after-the#18202 [4]: http://stackoverflow.com/questions/17980/what-comes-after-the#18004 [5]: http://stackoverflow.com/questions/17980/what-comes-after-the#18202
0
18,290
08/20/2008 16:12:46
1,450
08/15/2008 16:26:21
237
14
How Do You Secure database.yml?
Within Ruby on Rails applications database.yml is a plain text file that stores database credentials. When I deploy my Rails applications I have an after deploy callback in my Capistrano recipe that creates a symbolic link within the application's /config directory to the database.yml file. The file itself is stored in a separate directory that's outside the standard Capistrano /releases directory structure. I chmod 400 the file so it's only readable by the user who created it. * Is this sufficient to lock it down? If not, what else do you do? * Is anyone encrypting their database.yml files?
ruby-on-rails
security
deployment
null
null
null
open
How Do You Secure database.yml? === Within Ruby on Rails applications database.yml is a plain text file that stores database credentials. When I deploy my Rails applications I have an after deploy callback in my Capistrano recipe that creates a symbolic link within the application's /config directory to the database.yml file. The file itself is stored in a separate directory that's outside the standard Capistrano /releases directory structure. I chmod 400 the file so it's only readable by the user who created it. * Is this sufficient to lock it down? If not, what else do you do? * Is anyone encrypting their database.yml files?
0
18,291
08/20/2008 16:12:50
1,461
08/15/2008 17:26:10
21
5
Unit testing in Delphi - how are you doing it ?
I'm wondering how the few Delphi users here are doing unit testing, if any ? Is there anything that integrates with the IDE that you've found works well ? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works ?
unittesting
delphi
delphiide
null
null
null
open
Unit testing in Delphi - how are you doing it ? === I'm wondering how the few Delphi users here are doing unit testing, if any ? Is there anything that integrates with the IDE that you've found works well ? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works ?
0
18,292
08/20/2008 16:13:39
1,946
08/19/2008 14:53:06
21
0
What are some good SSH Servers for windows?
Trying to setup an SSH server on windows server 03. What are some good ones? Preferably open source. I plan on using WinSPC as a client so a server which supports the advanced features implemented by that client would be great.
deployment
ssh
null
null
null
08/17/2011 03:10:20
off topic
What are some good SSH Servers for windows? === Trying to setup an SSH server on windows server 03. What are some good ones? Preferably open source. I plan on using WinSPC as a client so a server which supports the advanced features implemented by that client would be great.
2
18,298
08/20/2008 16:15:55
26
08/01/2008 12:18:14
712
93
How do I change the title bar icon in Adobe AIR?
I cannot figure out how to change the title bar icon (the icon in the furthest top left corner of the application) in Adobe AIR. It is currently displaying the default 'Adobe AIR' red icon. I have been able to change it in the system tray, however.
flex
air
null
null
null
null
open
How do I change the title bar icon in Adobe AIR? === I cannot figure out how to change the title bar icon (the icon in the furthest top left corner of the application) in Adobe AIR. It is currently displaying the default 'Adobe AIR' red icon. I have been able to change it in the system tray, however.
0
18,305
08/20/2008 16:21:05
925
08/10/2008 16:16:15
33
7
Web server farms with IIS ? Basic Infos
Can somebody point me to a resource that explains how to go about having 2+ IIS web server clustered (or Webfarm not sure what its called) ? All I need is something basic, an overview how and where to start. Can't seem to find anything...
iis
webserver
webfarm
null
null
null
open
Web server farms with IIS ? Basic Infos === Can somebody point me to a resource that explains how to go about having 2+ IIS web server clustered (or Webfarm not sure what its called) ? All I need is something basic, an overview how and where to start. Can't seem to find anything...
0
18,326
08/20/2008 16:32:15
1,223
08/13/2008 13:53:10
42
17
TCL development: debug environment
I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and [TCL][1]. I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo. Can I have a recommendation for a TCL debugging environment for Windows, please? [1]: http://wiki.tcl.tk/299
debugging
tcl
tivo
null
null
null
open
TCL development: debug environment === I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and [TCL][1]. I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo. Can I have a recommendation for a TCL debugging environment for Windows, please? [1]: http://wiki.tcl.tk/299
0
18,330
08/20/2008 16:33:49
1,951
08/19/2008 15:06:09
302
18
Hardest language to learn
Following on from [Teifion][1]'s recent post "[Easiest language to start with][2]", I interested in the community's thoughts on what is generally considered the **hardest** programming language to learn. Something of an elitist's dream to be able to mention at geek cocktail parties. I'm not just talking about ones with the strangest syntax, but also the ones that have the most bizarre overall concepts! Are there any really scary ones out there? [1]: http://stackoverflow.com/users/15/teifion [2]: http://stackoverflow.com/questions/4769/easiest-language-to-start-with
language-features
null
null
null
null
11/17/2011 15:56:42
not constructive
Hardest language to learn === Following on from [Teifion][1]'s recent post "[Easiest language to start with][2]", I interested in the community's thoughts on what is generally considered the **hardest** programming language to learn. Something of an elitist's dream to be able to mention at geek cocktail parties. I'm not just talking about ones with the strangest syntax, but also the ones that have the most bizarre overall concepts! Are there any really scary ones out there? [1]: http://stackoverflow.com/users/15/teifion [2]: http://stackoverflow.com/questions/4769/easiest-language-to-start-with
4
18,338
08/20/2008 16:37:30
1,804
08/18/2008 16:34:51
1
0
Software Development Life Cycle Resources
I am currently a college student and I don't feel that any of my classes have touched on the Software Development Life Cycle (SDLC) nearly enough. I've been interning a company for a few years and I've been learning about SDLC from the internship, but I wanted to poll the crowd so I can branch out from that. What SLDC resources (books, websites, magazines, newsletters, etc.) do you use?
sdlc
null
null
null
null
null
open
Software Development Life Cycle Resources === I am currently a college student and I don't feel that any of my classes have touched on the Software Development Life Cycle (SDLC) nearly enough. I've been interning a company for a few years and I've been learning about SDLC from the internship, but I wanted to poll the crowd so I can branch out from that. What SLDC resources (books, websites, magazines, newsletters, etc.) do you use?
0
18,348
08/20/2008 16:44:04
1,456
08/15/2008 17:03:51
1
0
a:ActionNotSupported faultcode browsing WCF service
I've created a WCF service and when I browse to the endpoint I get the following fault: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode> <faultstring xml:lang="en-GB">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring> </s:Fault> </s:Body> </s:Envelope> I've fixed the problem but didn't enjoy the experience! Does anyone have any tips or tools for debugging problems like this?
.net
wcf
null
null
null
null
open
a:ActionNotSupported faultcode browsing WCF service === I've created a WCF service and when I browse to the endpoint I get the following fault: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode> <faultstring xml:lang="en-GB">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring> </s:Fault> </s:Body> </s:Envelope> I've fixed the problem but didn't enjoy the experience! Does anyone have any tips or tools for debugging problems like this?
0
18,389
08/20/2008 17:22:36
1,776
08/18/2008 14:21:43
161
15
Managing a project vs Managing a Development
Our organisation uses PRINCE2 for every project we run; IT is large part of our organisation but we're not a software house. Whilst I appreciate PRINCE2 is a great method of running projects, and, we've had a lot of success with it, I feel it's fairly high level for the nitty-gritty of building software. Is it unheard of to run an AGILE method such as SCRUM for the day to day building and deployment of code underneath, or, within the framework of PRINCE2? Obviously we have a number of qualified, experienced PRINCE2 practitioners in the business so I'd never suggest replacing PRINCE2 with SCRUM, but I can still see the benefits of SCRUM. Anyone any thoughts, in practice do the two contradict or complicate one another, does anyone have any personal success stories. What about other methodologies? Can we let PRINCE2 take care of the high-level stuff and then run another method for the nuts and bolts of developing? Thanks Andrew
project-management
agile
scrum
prince2
null
null
open
Managing a project vs Managing a Development === Our organisation uses PRINCE2 for every project we run; IT is large part of our organisation but we're not a software house. Whilst I appreciate PRINCE2 is a great method of running projects, and, we've had a lot of success with it, I feel it's fairly high level for the nitty-gritty of building software. Is it unheard of to run an AGILE method such as SCRUM for the day to day building and deployment of code underneath, or, within the framework of PRINCE2? Obviously we have a number of qualified, experienced PRINCE2 practitioners in the business so I'd never suggest replacing PRINCE2 with SCRUM, but I can still see the benefits of SCRUM. Anyone any thoughts, in practice do the two contradict or complicate one another, does anyone have any personal success stories. What about other methodologies? Can we let PRINCE2 take care of the high-level stuff and then run another method for the nuts and bolts of developing? Thanks Andrew
0
18,391
08/20/2008 17:25:03
840
08/09/2008 08:37:29
51
5
How would I get started writing my own firewall?
There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platform but I would also be interested in this information for other operating systems too. Thanks!
language-agnostic
firewall
null
null
null
null
open
How would I get started writing my own firewall? === There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platform but I would also be interested in this information for other operating systems too. Thanks!
0
18,407
08/20/2008 17:37:16
392
08/05/2008 12:29:07
401
26
Most succinct way to determine if a variable equals a value from a 'list' of values
If I have a variable in C# that needs to be checked to determine if it is equal to one of a set of variables, what is the best way to do this? I'm not looking for a solution that stores the set in an array. I'm more curious to see if there is a solution that uses boolean logic in some way to get the answer. I know I could do something like this: int baseCase = 5; bool testResult = baseCase == 3 || baseCase == 7 || baseCase == 12 || baseCase == 5; I'm curious to see if I could do something more like this: int baseCase = 5; bool testResult = baseCase == (3 | 7 | 12 | 5); Obviously the above won't work, but I'm interested in seeing if there is something more succinct than my first example, which has to repeat the same variable over and over again for each test value.
c#
logic
boolean-logic
null
null
null
open
Most succinct way to determine if a variable equals a value from a 'list' of values === If I have a variable in C# that needs to be checked to determine if it is equal to one of a set of variables, what is the best way to do this? I'm not looking for a solution that stores the set in an array. I'm more curious to see if there is a solution that uses boolean logic in some way to get the answer. I know I could do something like this: int baseCase = 5; bool testResult = baseCase == 3 || baseCase == 7 || baseCase == 12 || baseCase == 5; I'm curious to see if I could do something more like this: int baseCase = 5; bool testResult = baseCase == (3 | 7 | 12 | 5); Obviously the above won't work, but I'm interested in seeing if there is something more succinct than my first example, which has to repeat the same variable over and over again for each test value.
0
18,418
08/20/2008 17:41:24
1,892
08/19/2008 06:17:29
1
0
Elegant way to remove items from sequence in Python?
When I am writing code in Python, I often need to remove items from a list or other sequence type based on some criteria. I haven't found a solution that is elegant and efficient, as removing items from a list you are currently iterating through is bad. For example, you can't do this: for name in names: if name[-5:] == 'Smith': names.remove(name) I usually end up doing something like this: toremove = [] for name in names: if name[-5:] == 'Smith': toremove.append(name) for name in toremove: names.remove(name) del toremove This is innefficient, fairly ugly and possibly buggy (how does it handle multiple 'John Smith' entries?). Does anyone have a more elegant solution, or at least a more efficient one? How about one that works with dictionaries?
python
efficiency
null
null
null
null
open
Elegant way to remove items from sequence in Python? === When I am writing code in Python, I often need to remove items from a list or other sequence type based on some criteria. I haven't found a solution that is elegant and efficient, as removing items from a list you are currently iterating through is bad. For example, you can't do this: for name in names: if name[-5:] == 'Smith': names.remove(name) I usually end up doing something like this: toremove = [] for name in names: if name[-5:] == 'Smith': toremove.append(name) for name in toremove: names.remove(name) del toremove This is innefficient, fairly ugly and possibly buggy (how does it handle multiple 'John Smith' entries?). Does anyone have a more elegant solution, or at least a more efficient one? How about one that works with dictionaries?
0
18,421
08/20/2008 17:42:21
229
08/03/2008 18:25:54
98
4
Best way to bind Windows Forms properties to ApplicationSettings in C#?
In a desktop application needing some serious refactoring, I have several chunks of code that look like this: private void LoadSettings() { WindowState = Properties.Settings.Default.WindowState; Location = Properties.Settings.Default.WindowLocation; ... } private void SaveSettings() { Properties.Settings.Default.WindowState = WindowState; Properties.Settings.Default.WindowLocation = Location; ... } What's the best way to replace this? Project-imposed constraints: - Visual Studio 2005 - C# / .NET 2.0 - Windows Forms
c#
visual-studio
mvc
.net-2.0
null
null
open
Best way to bind Windows Forms properties to ApplicationSettings in C#? === In a desktop application needing some serious refactoring, I have several chunks of code that look like this: private void LoadSettings() { WindowState = Properties.Settings.Default.WindowState; Location = Properties.Settings.Default.WindowLocation; ... } private void SaveSettings() { Properties.Settings.Default.WindowState = WindowState; Properties.Settings.Default.WindowLocation = Location; ... } What's the best way to replace this? Project-imposed constraints: - Visual Studio 2005 - C# / .NET 2.0 - Windows Forms
0
18,428
08/20/2008 17:48:17
1,790
08/18/2008 15:07:02
130
14
What considerations should be made before reinventing the wheel?
All too often I see other [people reinventing the wheel][1], and when I do, I wonder what factors played into their decision to do so. There are times I reinvent the wheel consciously, merely because I am interested in the mental exercise, and other times without realizing it because of a lack of research. What are considerations you use before making the decision to reinvent the wheel? [1]: http://refactormycode.com/codes/360-balance-html-tags
bestpractices
language-agnostic
design
null
null
09/01/2011 17:23:07
not constructive
What considerations should be made before reinventing the wheel? === All too often I see other [people reinventing the wheel][1], and when I do, I wonder what factors played into their decision to do so. There are times I reinvent the wheel consciously, merely because I am interested in the mental exercise, and other times without realizing it because of a lack of research. What are considerations you use before making the decision to reinvent the wheel? [1]: http://refactormycode.com/codes/360-balance-html-tags
4
18,432
08/20/2008 17:49:18
2,156
08/20/2008 16:30:10
1
0
I can share a SQL Server Reporting Services Data SOURCE... what about a Data SET?
I am developing a Reporting Services solution for a DOD website. Frequently I'll have a report and want to have as a parameter the Service (in addition to other similar mundane, but repetitive parameters like Fiscal Year, Data Effective Date, etc). Basically everything I've seen of SSRS 2005 says it can't be done... but I personally refuse to believe that MS would be so stupid/naive/short-sited to leave something like sharing datasets out of reporting entirely. Is there a clunky (or not so clunky way) to share datasets and still keep the reporting server happy? Will SSRS2008 do this?
sql-server-reporting-ser
null
null
null
null
null
open
I can share a SQL Server Reporting Services Data SOURCE... what about a Data SET? === I am developing a Reporting Services solution for a DOD website. Frequently I'll have a report and want to have as a parameter the Service (in addition to other similar mundane, but repetitive parameters like Fiscal Year, Data Effective Date, etc). Basically everything I've seen of SSRS 2005 says it can't be done... but I personally refuse to believe that MS would be so stupid/naive/short-sited to leave something like sharing datasets out of reporting entirely. Is there a clunky (or not so clunky way) to share datasets and still keep the reporting server happy? Will SSRS2008 do this?
0
18,448
08/20/2008 17:55:34
1,256,645
08/18/2008 18:27:16
1
0
Encryption in C# Web-Services
I'm looking for a simple way to encrypt my soap communication in my C# Web-Service. I was looking into [WSE 3.0][1] but it seems Microsoft dropped support for it, and therefore it's not straightforward to use. It seems WCF could've been an option but I prefer not to upgrade from .NET 2.0 . Any **simple**, straightforward encryption method? [1]: http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3Ffamilyid%3D018a09fd-3a74-43c5-8ec1-8d789091255d&ei=x1isSPTUO4bS0QXsjIzWAw&usg=AFQjCNHn7aOkIXoysM1woIgRBe20Ptu_6g&sig2=RTyvtw71nWYyoDGIEh0TlQ
web-service
encyption
security
c#
null
null
open
Encryption in C# Web-Services === I'm looking for a simple way to encrypt my soap communication in my C# Web-Service. I was looking into [WSE 3.0][1] but it seems Microsoft dropped support for it, and therefore it's not straightforward to use. It seems WCF could've been an option but I prefer not to upgrade from .NET 2.0 . Any **simple**, straightforward encryption method? [1]: http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3Ffamilyid%3D018a09fd-3a74-43c5-8ec1-8d789091255d&ei=x1isSPTUO4bS0QXsjIzWAw&usg=AFQjCNHn7aOkIXoysM1woIgRBe20Ptu_6g&sig2=RTyvtw71nWYyoDGIEh0TlQ
0
18,449
08/20/2008 17:55:35
2,056
08/20/2008 01:28:00
14
2
Dealing with PHP server and MySQL server in different time zones
For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones? Also, does anybody have some best practice advice for determining what time zone a visitor to your site is in and manipulating a datetime variable appropriately?
php
mysql
date
time
datetime
null
open
Dealing with PHP server and MySQL server in different time zones === For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones? Also, does anybody have some best practice advice for determining what time zone a visitor to your site is in and manipulating a datetime variable appropriately?
0
18,450
08/20/2008 17:57:44
2,018
08/19/2008 20:14:45
84
21
Is Mono ready for prime time?
Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, _really_ compatible enough to just take of and run already written code for Microsoft's runtime?
.net
opensource
mono
null
null
null
open
Is Mono ready for prime time? === Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to port projects to the Mono runtime, or is it really, _really_ compatible enough to just take of and run already written code for Microsoft's runtime?
0
18,460
08/20/2008 18:04:58
2,172
08/20/2008 18:04:58
1
0
Best practise to authorize all users for just one page in asp.net
What is the best way to authorize all users to one single page in a asp.net website. For except the login page and one other page, I deny all users from viewing pages in the website. How do you make this page accessible to all users? Thanks.
asp.net
authorization
null
null
null
null
open
Best practise to authorize all users for just one page in asp.net === What is the best way to authorize all users to one single page in a asp.net website. For except the login page and one other page, I deny all users from viewing pages in the website. How do you make this page accessible to all users? Thanks.
0
18,465
08/20/2008 18:06:12
149
08/02/2008 15:03:56
398
21
.Net Parse verses Convert
In .Net you can read a string value into another data type using either <datatype>.parse or Conver.To<DataType>. I'm not familiar with the fundamentals of parse versus convert so I am always at a loss when asked which one is better/faster/more appropriate. So - which way is best in what type of circumstances?
.net
parse
null
null
null
null
open
.Net Parse verses Convert === In .Net you can read a string value into another data type using either <datatype>.parse or Conver.To<DataType>. I'm not familiar with the fundamentals of parse versus convert so I am always at a loss when asked which one is better/faster/more appropriate. So - which way is best in what type of circumstances?
0
18,505
08/20/2008 18:22:55
324
08/04/2008 16:46:29
21
1
Sending a mouse click to a button in the taskbar using C#
In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restrictions within Windows XP. What I would like to do instead is send simulate a mouse click the window's button on the taskbar which I am hoping will bring the window to the front. Does anyone know how this is possible?
c#
win32api
.net
window
null
null
open
Sending a mouse click to a button in the taskbar using C# === In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restrictions within Windows XP. What I would like to do instead is send simulate a mouse click the window's button on the taskbar which I am hoping will bring the window to the front. Does anyone know how this is possible?
0
18,524
08/20/2008 18:29:48
916
08/10/2008 11:21:51
30
5
Java: Best way of converting List<Integer> to List<String>
I have a Java list of integers, List<Integer> and I'd like to convert all the integer objects into strings, thus finishing up with a new List<String>. Naturally, I could create a new List<String> and loop through and String.valueOf() all the integers, but I was wondering if there was a better (read: more automatic) way of doing it?
java
collections
string
integer
null
null
open
Java: Best way of converting List<Integer> to List<String> === I have a Java list of integers, List<Integer> and I'd like to convert all the integer objects into strings, thus finishing up with a new List<String>. Naturally, I could create a new List<String> and loop through and String.valueOf() all the integers, but I was wondering if there was a better (read: more automatic) way of doing it?
0
18,533
08/20/2008 18:36:02
111
08/02/2008 03:35:55
164
11
C#: What Else Do You Use Besides DataSet
I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, there seems to be a fair amount of mental overhead. I've played a bit with SqlDataReader, and that seems to be good for simple jaunts through a select, but I feel like there may be some other models lurking in .Net that are useful to learn more about. I feel like all of the help I find on this just uses DataSet by default. Maybe that and DataReader really are the best options. I'm not looking for a best/worst breakdown, just curious what my options are and what experiences you've had with them. Thanks! -Eric Sipple
c#
.net
sql
dataset
null
null
open
C#: What Else Do You Use Besides DataSet === I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, there seems to be a fair amount of mental overhead. I've played a bit with SqlDataReader, and that seems to be good for simple jaunts through a select, but I feel like there may be some other models lurking in .Net that are useful to learn more about. I feel like all of the help I find on this just uses DataSet by default. Maybe that and DataReader really are the best options. I'm not looking for a best/worst breakdown, just curious what my options are and what experiences you've had with them. Thanks! -Eric Sipple
0
18,545
08/20/2008 18:40:29
547
08/06/2008 16:09:22
429
32
ergonomics: what's better; trackball, ergonomic mouse or some other pointing device (a-la touchscreen)?
So I bit into the hype and recently purchased an [apple wireless keyboard][1] and that [evil bar-of-soap thing apple makes for a mouse][2]. Couple of hundred dollars later and this is where I begin to worry about RSI. Go figure. Don't get me wrong, this apple mouse is genius and looks pretty as hell, but my right wrist feels tired after a full day's worth of work, so i'm thinking of switching. Anyone out there use a trackball? is this worse? should I get a [super-ergonomic mouse][3] instead? I've seen [mouse-trackball combos][4] but am not sold, they still elicit the same end-finger behaviour detrimental for RSI, right? I also have a [wrist-rest mousepad][5], but couldn't find one suitable for my keyboard. I've even considered having a small touchscreen where the mousepad should go, no mouse (or alternatively, a [usb trackpad][6]). Just looking for ideas, *is the trackball better than the mouse*? /mp [1]: http://www.apple.com/keyboard/ [2]: http://www.apple.com/mightymouse/ [3]: http://www.gizoo.co.uk/Products/PcGaming/PcGadgets/ErgonomicMouse/Additional/lrg-2-ErgonomicUprightMouse.jpg [4]: http://www.logitech.com/repository/62/jpg/223.1.0.jpg [5]: http://content.etilize.com/images/300/10465578.jpg [6]: http://www.dabbledoo.com/ee/images/uploads/appletell/MaxtorTrackpadComparison.JPG
ergonomics
mouse
input-devices
trackball
null
10/31/2011 14:34:19
not constructive
ergonomics: what's better; trackball, ergonomic mouse or some other pointing device (a-la touchscreen)? === So I bit into the hype and recently purchased an [apple wireless keyboard][1] and that [evil bar-of-soap thing apple makes for a mouse][2]. Couple of hundred dollars later and this is where I begin to worry about RSI. Go figure. Don't get me wrong, this apple mouse is genius and looks pretty as hell, but my right wrist feels tired after a full day's worth of work, so i'm thinking of switching. Anyone out there use a trackball? is this worse? should I get a [super-ergonomic mouse][3] instead? I've seen [mouse-trackball combos][4] but am not sold, they still elicit the same end-finger behaviour detrimental for RSI, right? I also have a [wrist-rest mousepad][5], but couldn't find one suitable for my keyboard. I've even considered having a small touchscreen where the mousepad should go, no mouse (or alternatively, a [usb trackpad][6]). Just looking for ideas, *is the trackball better than the mouse*? /mp [1]: http://www.apple.com/keyboard/ [2]: http://www.apple.com/mightymouse/ [3]: http://www.gizoo.co.uk/Products/PcGaming/PcGadgets/ErgonomicMouse/Additional/lrg-2-ErgonomicUprightMouse.jpg [4]: http://www.logitech.com/repository/62/jpg/223.1.0.jpg [5]: http://content.etilize.com/images/300/10465578.jpg [6]: http://www.dabbledoo.com/ee/images/uploads/appletell/MaxtorTrackpadComparison.JPG
4
18,585
08/20/2008 18:59:35
229
08/03/2008 18:25:54
100
4
Why can't you bind the Size of a windows form to ApplicationSettings?
_This is a follow-up to my question ["Best way to bind Windows Forms properties to ApplicationSettings in C#?"](http://stackoverflow.com/questions/18421/best-way-to-bind-windows-forms-properties-to-applicationsettings-in-c)_ As Tundey pointed out in his answer to my last question, you can bind nearly everything about a windows forms control to ApplicationSettings pretty effortlessly. So is there really no way to do this with form Size? [This tutorial](http://www.codeproject.com/KB/cs/UserSettings.aspx) says you need to handle Size explicitly so you can save RestoreBounds instead of size if the window is maximized or minimized. However, I hoped I could just use a property like: public Size RestoreSize { get { if (WindowState == FormWindowState.Normal) { return Size; } else { return RestoreBounds.Size; } } set { ... } } But I can't see a way to bind this in the designer (Size is notably missing from the PropertyBinding list).
c#
.net-2.0
visual-studio
databindings
null
null
open
Why can't you bind the Size of a windows form to ApplicationSettings? === _This is a follow-up to my question ["Best way to bind Windows Forms properties to ApplicationSettings in C#?"](http://stackoverflow.com/questions/18421/best-way-to-bind-windows-forms-properties-to-applicationsettings-in-c)_ As Tundey pointed out in his answer to my last question, you can bind nearly everything about a windows forms control to ApplicationSettings pretty effortlessly. So is there really no way to do this with form Size? [This tutorial](http://www.codeproject.com/KB/cs/UserSettings.aspx) says you need to handle Size explicitly so you can save RestoreBounds instead of size if the window is maximized or minimized. However, I hoped I could just use a property like: public Size RestoreSize { get { if (WindowState == FormWindowState.Normal) { return Size; } else { return RestoreBounds.Size; } } set { ... } } But I can't see a way to bind this in the designer (Size is notably missing from the PropertyBinding list).
0
18,601
08/20/2008 19:07:51
1,473,493
08/18/2008 20:04:30
1
1
Best practice for integrating TDD with web application development?
Unit testing and ASP.NET web applications are an ambiguous point in my group. More often than not, good testing practices fall through the cracks and web applications end up going live for several years with no tests. The cause of this pain point generally revolves around the hassle of writing UI automation mid-development. How do you or your organization integrate best TDD practices with web application development?
web
testing
development
tdd
unit
null
open
Best practice for integrating TDD with web application development? === Unit testing and ASP.NET web applications are an ambiguous point in my group. More often than not, good testing practices fall through the cracks and web applications end up going live for several years with no tests. The cause of this pain point generally revolves around the hassle of writing UI automation mid-development. How do you or your organization integrate best TDD practices with web application development?
0
18,606
08/20/2008 19:11:32
572
08/06/2008 20:56:54
916
78
Accessing an Exchange Server without Outlook
Is there a method of accessing an Exchange server that does not have IMAP or POP3 enabled without Outlook? It does not appear that Outlook Express supports Exchange (only IMAP and POP3).
email
outlook
exchange
exchange-server
email-client
null
open
Accessing an Exchange Server without Outlook === Is there a method of accessing an Exchange server that does not have IMAP or POP3 enabled without Outlook? It does not appear that Outlook Express supports Exchange (only IMAP and POP3).
0
18,608
08/20/2008 19:12:05
327
08/04/2008 17:08:49
406
21
Is it a bad idea to expose inheritance hierarchy in namespace structure?
I've got a group of inter-related classes that are all overridden together to create a particular implementation. I'm wondering if it is a good idea to enclose the interrelated subclasses in a namespace. For example purposes, consider the following namespaces and classes: namespace Protocol { public abstract class Message { } public abstract class Driver { } } namespace Protocol.Tcp { public class TcpMessage : Message { } public class TcpDriver : Driver { } } namespace Protocol.Ftp { public class FtpMessage : Message { } public class FtpDriver : Driver { } } What is the best way to structure the namespaces? It seems unavoidable to expose the inheritance in the namespace since the base classes don't really belong in either the Protocol.Tcp namespace or the Protocol.Ftp namespace.
c#
oop
inheritance
naming
convention
null
open
Is it a bad idea to expose inheritance hierarchy in namespace structure? === I've got a group of inter-related classes that are all overridden together to create a particular implementation. I'm wondering if it is a good idea to enclose the interrelated subclasses in a namespace. For example purposes, consider the following namespaces and classes: namespace Protocol { public abstract class Message { } public abstract class Driver { } } namespace Protocol.Tcp { public class TcpMessage : Message { } public class TcpDriver : Driver { } } namespace Protocol.Ftp { public class FtpMessage : Message { } public class FtpDriver : Driver { } } What is the best way to structure the namespaces? It seems unavoidable to expose the inheritance in the namespace since the base classes don't really belong in either the Protocol.Tcp namespace or the Protocol.Ftp namespace.
0
18,614
08/20/2008 19:16:01
230
08/03/2008 19:32:46
532
30
MVC .Net - The best way to write a form?
What is the the best way to write a form to submit some data in asp.net MVC? Is it as Scott Gu demonstrates here? Are there better approches? Perhaps with less using of strings? ![alt text][1] [1]: http://www.scottgu.com/blogposts/mvc4/step33.png
asp.net-mvc
forms
null
null
null
null
open
MVC .Net - The best way to write a form? === What is the the best way to write a form to submit some data in asp.net MVC? Is it as Scott Gu demonstrates here? Are there better approches? Perhaps with less using of strings? ![alt text][1] [1]: http://www.scottgu.com/blogposts/mvc4/step33.png
0
18,617
08/20/2008 19:16:20
1,310
08/14/2008 13:42:16
292
17
How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
tomcat
null
null
null
null
null
open
How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses? === How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?
0
18,632
08/20/2008 19:25:07
2,011
08/19/2008 19:23:33
36
4
How to monitor a text file in realtime
for debugging purpose in a somewhat closed system, I have to output text in a file. Does anyone knows of a tool that runs on windows ( console based or not ) that detects changes to a file and outputs them in real-time ?
monitoring
text-files
null
null
null
null
open
How to monitor a text file in realtime === for debugging purpose in a somewhat closed system, I have to output text in a file. Does anyone knows of a tool that runs on windows ( console based or not ) that detects changes to a file and outputs them in real-time ?
0
18,642
08/20/2008 19:30:57
2,134
08/20/2008 13:58:24
13
0
What is the most unreadable programming language?
Excluding [Whitespace][1] and assembly, what do you think is the most difficult programming language to write readable code in? I find that I'm very comfortable reading code with C/C++ style braces and brackets. I can easily scan a file for method and class definitions, however in a language which does not use braces I find it extremely hard to read, eg: BASIC variants, specifically Visual Basic. [1]: http://en.wikipedia.org/wiki/Whitespace_(programming_language)
languages
codingstyle
code-reading
null
null
null
open
What is the most unreadable programming language? === Excluding [Whitespace][1] and assembly, what do you think is the most difficult programming language to write readable code in? I find that I'm very comfortable reading code with C/C++ style braces and brackets. I can easily scan a file for method and class definitions, however in a language which does not use braces I find it extremely hard to read, eg: BASIC variants, specifically Visual Basic. [1]: http://en.wikipedia.org/wiki/Whitespace_(programming_language)
0
18,655
08/20/2008 19:37:53
1,219
08/13/2008 13:44:47
668
47
Why do we need entity objects?
Ok, I realize I might be downvoted into oblivion for this question, especially given my stance on the matter, but I really need to see some honest, thoughtful debate on the merits of the currently accepted enterprise application design paradigm. I am not convinced that entity objects should exist. By entity objects I mean the typical things we tend to build for our applications, like "Person", "Account", "Order", etc. My current design philosophy is this: - All database access must be accomplished via stored procedures. - Whenever you need data, call a stored procedure and iterate over a SqlDataReader or the rows in a DataTable (Note: I have also built enterprise applications with J2EE, java folks please substitute the equvalent for my .NET examples) I am not anti-OO. I write lots of classes for different purposes, just not entities. I will admit that a large portion of the classes I write are static helper classes. I am not building toys. I'm talking about large, high volume transactional applications deployed across multiple machines. Web applications, windows services, web services, b2b interaction, you name it. I have used OR Mappers. I have written a few. I have used the J2EE stack, CSLA, and a few other equivalents. I have not only used them but actively developed and maintained these applications in production environments. I have come to the battle-tested conclusion that entity objects are getting in our way, and our lives would be *so* much easier without them. Consider this simple example: you get a support call about a certain page in your application that is not working correctly, maybe one of the fields is not being persisted like it should be. With my model, the developer assigned to find the problem opens *exactly 3 files*. An ASPX, an ASPX.CS and a SQL file with the stored procedure. The problem, which might be a missing parameter to the stored procedure call, takes minutes to solve. But with any entity model, you will invariably fire up the debugger, start stepping through code, and you may end up with 15-20 files open in Visual Studio. By the time you step down to the bottom of the stack, you forgot where you started. We can only keep so many things in our heads at one time. Software is incredibly complex without adding any unnecessary layers. Development complexity and troubleshooting are just one side of my gripe. Now let's talk about scalability. Do developers realize that each and every time they write or modify any code that interacts with the database, they need to do a throrough analysis of the exact impact on the database? And not just the development copy, I mean a mimic of production, so you can see that the additional column you now require for your object just invalidated the current query plan and a report that was running in 1 second will now take 2 minutes, just because you added a single column to the select list? And it turns out that the index you now require is so big that the DBA is going to have to modify the physical layout of your files? If you let people get too far away from the physical data store with an abstraction, they will create havoc with an application that needs to scale. I am not a zealot. I can be convinced if I am wrong, and maybe I am, since there is such a strong push towards Linq to Sql, ADO.NET EF, Hibernate, J2EE, etc. Please think through your responses, if I am missing something I really want to know what it is, and why I should change my thinking.
sql
database
orm
entities
null
null
open
Why do we need entity objects? === Ok, I realize I might be downvoted into oblivion for this question, especially given my stance on the matter, but I really need to see some honest, thoughtful debate on the merits of the currently accepted enterprise application design paradigm. I am not convinced that entity objects should exist. By entity objects I mean the typical things we tend to build for our applications, like "Person", "Account", "Order", etc. My current design philosophy is this: - All database access must be accomplished via stored procedures. - Whenever you need data, call a stored procedure and iterate over a SqlDataReader or the rows in a DataTable (Note: I have also built enterprise applications with J2EE, java folks please substitute the equvalent for my .NET examples) I am not anti-OO. I write lots of classes for different purposes, just not entities. I will admit that a large portion of the classes I write are static helper classes. I am not building toys. I'm talking about large, high volume transactional applications deployed across multiple machines. Web applications, windows services, web services, b2b interaction, you name it. I have used OR Mappers. I have written a few. I have used the J2EE stack, CSLA, and a few other equivalents. I have not only used them but actively developed and maintained these applications in production environments. I have come to the battle-tested conclusion that entity objects are getting in our way, and our lives would be *so* much easier without them. Consider this simple example: you get a support call about a certain page in your application that is not working correctly, maybe one of the fields is not being persisted like it should be. With my model, the developer assigned to find the problem opens *exactly 3 files*. An ASPX, an ASPX.CS and a SQL file with the stored procedure. The problem, which might be a missing parameter to the stored procedure call, takes minutes to solve. But with any entity model, you will invariably fire up the debugger, start stepping through code, and you may end up with 15-20 files open in Visual Studio. By the time you step down to the bottom of the stack, you forgot where you started. We can only keep so many things in our heads at one time. Software is incredibly complex without adding any unnecessary layers. Development complexity and troubleshooting are just one side of my gripe. Now let's talk about scalability. Do developers realize that each and every time they write or modify any code that interacts with the database, they need to do a throrough analysis of the exact impact on the database? And not just the development copy, I mean a mimic of production, so you can see that the additional column you now require for your object just invalidated the current query plan and a report that was running in 1 second will now take 2 minutes, just because you added a single column to the select list? And it turns out that the index you now require is so big that the DBA is going to have to modify the physical layout of your files? If you let people get too far away from the physical data store with an abstraction, they will create havoc with an application that needs to scale. I am not a zealot. I can be convinced if I am wrong, and maybe I am, since there is such a strong push towards Linq to Sql, ADO.NET EF, Hibernate, J2EE, etc. Please think through your responses, if I am missing something I really want to know what it is, and why I should change my thinking.
0
18,661
08/20/2008 19:43:24
838
08/09/2008 08:08:30
207
6
Getting UI text from external app in C#
Is it possible to get UI text from an external application in C#. In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable by mouse in the UI. I assume there is some accessibility API (e.g. meant for screen readers) that allows this. Edit: Currently looking into using something like the [Managed Spy App][1] but would still appreciate any other leads. [1]: http://msdn.microsoft.com/en-us/magazine/cc163617.aspx
c#
interop
win32api
null
null
null
open
Getting UI text from external app in C# === Is it possible to get UI text from an external application in C#. In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable by mouse in the UI. I assume there is some accessibility API (e.g. meant for screen readers) that allows this. Edit: Currently looking into using something like the [Managed Spy App][1] but would still appreciate any other leads. [1]: http://msdn.microsoft.com/en-us/magazine/cc163617.aspx
0
18,671
08/20/2008 19:49:13
534
08/06/2008 15:17:19
138
33
Quick easy way to migrate SQLite3 to MySQL?
Anyone know a quick easy way to migrate a SQLite3 database to MySQL?
mysql
sqlite
migration
null
null
null
open
Quick easy way to migrate SQLite3 to MySQL? === Anyone know a quick easy way to migrate a SQLite3 database to MySQL?
0
18,675
08/20/2008 19:52:41
1,632
08/17/2008 17:09:25
127
10
I/O permission settings using .net installer
I am creating a program that will be installed using the .net installer project. The program writes to settings files to its directory in the Program Files dir. It believe there are some active directory settings that will prevent the application from righting to that directory if a limited user is running the program. Is there away to change the settings for the application folder through the install so this will not be a problem?
.net
installer
activedirectory
io
null
null
open
I/O permission settings using .net installer === I am creating a program that will be installed using the .net installer project. The program writes to settings files to its directory in the Program Files dir. It believe there are some active directory settings that will prevent the application from righting to that directory if a limited user is running the program. Is there away to change the settings for the application folder through the install so this will not be a problem?
0
18,676
08/20/2008 19:54:00
225
08/03/2008 17:19:42
484
34
Random Int in VB.Net
I need to generate random integer between 1-n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomnesses - just an old fashioned random number. How would I do that?
vb.net
null
null
null
null
null
open
Random Int in VB.Net === I need to generate random integer between 1-n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomnesses - just an old fashioned random number. How would I do that?
0
18,685
08/20/2008 19:59:57
184
08/03/2008 05:34:19
377
5
How to display "12 minutes ago" etc in a webpage?
Can anyone tell me how I can display a status message like "12 seconds ago" or "5 minutes ago" etc in a web page?
php
date
time
null
null
null
open
How to display "12 minutes ago" etc in a webpage? === Can anyone tell me how I can display a status message like "12 seconds ago" or "5 minutes ago" etc in a web page?
0
18,700
08/20/2008 20:05:22
914
08/10/2008 10:32:48
183
15
Arguments for going open source
I've spent my downtime at work this summer writing a framework of sorts for facilitating my day to day work. In short it loads a xml with markup that defines the blocks of the site, their content and the styling of these (very similar to html), handles the loading of assets and such. Now I'm rather pleased with how this is turning out, and I've been itching to release some of my code for public use (and scrutiny). I'm also reasonably sure that it fills a void for quick and easy construction of sites (or parts of them). ***What would be the best arguments to convince my boss/coworkers that releasing this under an open source license is a good idea?***
opensource
licensing
null
null
null
null
open
Arguments for going open source === I've spent my downtime at work this summer writing a framework of sorts for facilitating my day to day work. In short it loads a xml with markup that defines the blocks of the site, their content and the styling of these (very similar to html), handles the loading of assets and such. Now I'm rather pleased with how this is turning out, and I've been itching to release some of my code for public use (and scrutiny). I'm also reasonably sure that it fills a void for quick and easy construction of sites (or parts of them). ***What would be the best arguments to convince my boss/coworkers that releasing this under an open source license is a good idea?***
0
18,702
08/20/2008 20:07:34
1,130,097
08/16/2008 14:58:30
88
14
Webservice alive forever
I often use webservice this way public void CallWebservice() { mywebservice web = new mywebservice(); web.call(); } but sometimes I do this private mywebservice web; public Constructor() { web = new mywebservice(); } public void CallWebservice() { web.call(); } The second approach likes me very much but sometimes it times out and I had to start the application again, the first one I think it brings overhead and it is not very efficient, in fact, sometimes the first call returns a WebException - ConnectFailure (I don't know why). I found an article ([Web Service Woes (A light at the end of the tunnel?)][1]) that exceeds the time out turning the KeepAlive property to false in the overriden function GetWebRequest, here's is the code: Protected Overrides Function GetWebRequest(ByVal uri As System.Uri) As System.Net.WebRequest Dim webRequest As Net.HttpWebRequest = CType(MyBase.GetWebRequest(uri), Net.HttpWebRequest) webRequest.KeepAlive = False Return webRequest End Function The question is, is it possible to extend forever the webservice time out and finally, how do you implement your webservices to handle this issue? [1]: http://addressof.com/blog/archive/2004/04/27/Web-Service-Woes-_2800_A-light-at-the-end-of-the-tunnel_3F002900_.aspx
webservices
null
null
null
null
null
open
Webservice alive forever === I often use webservice this way public void CallWebservice() { mywebservice web = new mywebservice(); web.call(); } but sometimes I do this private mywebservice web; public Constructor() { web = new mywebservice(); } public void CallWebservice() { web.call(); } The second approach likes me very much but sometimes it times out and I had to start the application again, the first one I think it brings overhead and it is not very efficient, in fact, sometimes the first call returns a WebException - ConnectFailure (I don't know why). I found an article ([Web Service Woes (A light at the end of the tunnel?)][1]) that exceeds the time out turning the KeepAlive property to false in the overriden function GetWebRequest, here's is the code: Protected Overrides Function GetWebRequest(ByVal uri As System.Uri) As System.Net.WebRequest Dim webRequest As Net.HttpWebRequest = CType(MyBase.GetWebRequest(uri), Net.HttpWebRequest) webRequest.KeepAlive = False Return webRequest End Function The question is, is it possible to extend forever the webservice time out and finally, how do you implement your webservices to handle this issue? [1]: http://addressof.com/blog/archive/2004/04/27/Web-Service-Woes-_2800_A-light-at-the-end-of-the-tunnel_3F002900_.aspx
0
18,705
08/20/2008 20:09:45
829
08/09/2008 06:18:18
1
0
Anyone know how to create Projects/Tasks for Project Server 2003 via C#?
I need to be able to create basic MS Project items (tasks, projects, resources, etc.) programmatically from my app to my Project Server 2003 install, and haven't found any good examples. Can anyone point me to some good references or have some sample code of connecting to the server and creating these items?
c#
msprojectserver2003
null
null
null
null
open
Anyone know how to create Projects/Tasks for Project Server 2003 via C#? === I need to be able to create basic MS Project items (tasks, projects, resources, etc.) programmatically from my app to my Project Server 2003 install, and haven't found any good examples. Can anyone point me to some good references or have some sample code of connecting to the server and creating these items?
0
18,717
08/20/2008 20:18:08
184
08/03/2008 05:34:19
385
7
Are Foriegn Keys really necessary in a database design?
As far as I know, foreign keys are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need the concept of foreign keys? Are there any other uses for foreign keys? Am I missing something here?
database
foreignkeys
null
null
null
null
open
Are Foriegn Keys really necessary in a database design? === As far as I know, foreign keys are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need the concept of foreign keys? Are there any other uses for foreign keys? Am I missing something here?
0
18,719
08/20/2008 20:18:32
1,043
08/11/2008 18:08:32
671
45
How can I prevent a server from becoming locked after a Remote Desktop session
As part of our databuild we have to run a 3rd party program (3D Studio Max) to export a number of assets using a second 3rd party exporter. Unfortunately if a user is not currently logged in, or the machine is locked, then Max does not run correctly. This can be solved for freshly booted machines by using a method such as TweakUI for automatic login. However when a user connects via Remote Desktop (to initiate a non-scheduled build, change a setting, whatever) then after the session ends the machine is left in a locked state with Max unable to run. I'm looking for a way to configure windows (via fair means or foul) so either it does not lock when the remote session ends, or it "unlocks" itself a short while after. I'm aware of a method under XP where you can run a batchfile on the machine which kicks the remote user off, but this does not appear to work on Windows Server. Much thanks!
windows-server-2003
build-automation
remote
windows2008
null
null
open
How can I prevent a server from becoming locked after a Remote Desktop session === As part of our databuild we have to run a 3rd party program (3D Studio Max) to export a number of assets using a second 3rd party exporter. Unfortunately if a user is not currently logged in, or the machine is locked, then Max does not run correctly. This can be solved for freshly booted machines by using a method such as TweakUI for automatic login. However when a user connects via Remote Desktop (to initiate a non-scheduled build, change a setting, whatever) then after the session ends the machine is left in a locked state with Max unable to run. I'm looking for a way to configure windows (via fair means or foul) so either it does not lock when the remote session ends, or it "unlocks" itself a short while after. I'm aware of a method under XP where you can run a batchfile on the machine which kicks the remote user off, but this does not appear to work on Windows Server. Much thanks!
0
18,722
08/20/2008 20:19:27
1,582
08/16/2008 20:41:09
1
0
Looking for light-weight multi-platform IDE
I've been recently scouring the internet for an IDE to use on some hobby projects. I use VS at one of my jobs and Emacs on the other. I'm looking for something multi-platform and more light-weight than stuff like Eclipse. Most of the work I do is in C/C++, Python and Lua. I've looked into Code::Blocks and it seemed to have exactly what I wanted. It's got code completion, supports custom makefiles easily, a visual debugger, but unfortunately it seems to have bad support for darker themes which is a must for me. Any suggestions?
ide
softwaretools
null
null
null
08/30/2011 14:10:40
not constructive
Looking for light-weight multi-platform IDE === I've been recently scouring the internet for an IDE to use on some hobby projects. I use VS at one of my jobs and Emacs on the other. I'm looking for something multi-platform and more light-weight than stuff like Eclipse. Most of the work I do is in C/C++, Python and Lua. I've looked into Code::Blocks and it seemed to have exactly what I wanted. It's got code completion, supports custom makefiles easily, a visual debugger, but unfortunately it seems to have bad support for darker themes which is a must for me. Any suggestions?
4
18,754
08/20/2008 20:33:28
2,185
08/20/2008 20:13:52
1
0
Are there any tools to convert Markdown documents to HTML en masse?
I'm writing some documentation in Markdown, and creating a separate file for each section of the doc. I would like to be able to convert all the files to HTML in one go, but I can't find anyone else who has tried the same thing. I'm on a Mac, so I would think a simple bash script should be able to handle it, but I've never done anything in bash and haven't had any luck. It seems like it should be simple to write something so I could just run: markdown-batch ./*.markdown Any ideas?
bash
markdown
null
null
null
null
open
Are there any tools to convert Markdown documents to HTML en masse? === I'm writing some documentation in Markdown, and creating a separate file for each section of the doc. I would like to be able to convert all the files to HTML in one go, but I can't find anyone else who has tried the same thing. I'm on a Mac, so I would think a simple bash script should be able to handle it, but I've never done anything in bash and haven't had any luck. It seems like it should be simple to write something so I could just run: markdown-batch ./*.markdown Any ideas?
0
18,757
08/20/2008 20:34:12
1,851
08/18/2008 21:56:51
76
3
Using ASP.NET MVC, how to best avoid writing both the Add View and Edit View?
The Add view and the Edit view are often incredibly similar that it is unwarranted to write 2 views. As the app evolves you would be making the same changes to both. However, there are usually subtle differences. For instance, a field might be read-only once it's been added, and if that field is a DropDownList you no longer need that List in the ViewData. So, should I create a view data class which contains all the information for both views, where, depending on the operation you're performing, certain properties will be null? Should I include the operation in the view data as an enum? Should I surround all the subtle differences with *<% if( ViewData.Model.Op == Ops.Editing ) { %>* ? Or is there a better way?
c#
asp.net
asp.net-mvc
mvc
null
null
open
Using ASP.NET MVC, how to best avoid writing both the Add View and Edit View? === The Add view and the Edit view are often incredibly similar that it is unwarranted to write 2 views. As the app evolves you would be making the same changes to both. However, there are usually subtle differences. For instance, a field might be read-only once it's been added, and if that field is a DropDownList you no longer need that List in the ViewData. So, should I create a view data class which contains all the information for both views, where, depending on the operation you're performing, certain properties will be null? Should I include the operation in the view data as an enum? Should I surround all the subtle differences with *<% if( ViewData.Model.Op == Ops.Editing ) { %>* ? Or is there a better way?
0