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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,768 | 08/17/2008 17:55:57 | 48,281 | 08/17/2008 17:55:57 | 1 | 0 | Open ID - What happens when you decide you don't like your existing provider? | So I'm not quite convinced about OpenID yet, and here is why:
I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the [altdotnet][1] page and recieved the following message:
> **You must use an OpenID persona that specifies a valid email address.**
Lets forget the details of this little error and assume that I want to change to a different provider. So I sign up with a different provider and get a new, different OpenID - how would I switch my existing StackOverflow account to be associated with my new OpenID?
I understand this would be easy if I had my own domain set up to delegate to a provider, because I could just change the delegation. Assume I do not have my own domain.
[1]: http://altdotnet.org | openid | null | null | null | null | null | open | Open ID - What happens when you decide you don't like your existing provider?
===
So I'm not quite convinced about OpenID yet, and here is why:
I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the [altdotnet][1] page and recieved the following message:
> **You must use an OpenID persona that specifies a valid email address.**
Lets forget the details of this little error and assume that I want to change to a different provider. So I sign up with a different provider and get a new, different OpenID - how would I switch my existing StackOverflow account to be associated with my new OpenID?
I understand this would be easy if I had my own domain set up to delegate to a provider, because I could just change the delegation. Assume I do not have my own domain.
[1]: http://altdotnet.org | 0 |
13,775 | 08/17/2008 17:58:57 | 1,638 | 08/17/2008 17:58:57 | 1 | 0 | SoapException: Root element is missing occurs when .NET web service called from Flex | I have a .net web application that has a Flex application embedded within a page. This flex application calls a .net webservice. I can trace the execution proccess through the debugger and all looks great until I get the response:
<pre><code>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap
:Text xml:lang="en">System.Web.Services.Protocols.SoapException: Server was unable to process request
. ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToContent()
at System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest
request, HttpResponse response, Boolean& abortProcessing)
--- End of inner exception stack trace ---</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>
</code>
</pre>
The call from flex looks good, the execution through the webservice is good, but this is the response I capture via wireshark, what is going on here?
I have tried several web methods, from "Hello World" to paramatized methods...all comeback with the same response...
I thought it may have something to do with encoding with the "--->", but I'm unsure how to control what .net renders as the response. | webservices | flex | soap | null | null | null | open | SoapException: Root element is missing occurs when .NET web service called from Flex
===
I have a .net web application that has a Flex application embedded within a page. This flex application calls a .net webservice. I can trace the execution proccess through the debugger and all looks great until I get the response:
<pre><code>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap
:Text xml:lang="en">System.Web.Services.Protocols.SoapException: Server was unable to process request
. ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Web.Services.Protocols.SoapServerProtocol.SoapEnvelopeReader.MoveToContent()
at System.Web.Services.Protocols.SoapServerProtocolHelper.GetRequestElement()
at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest
request, HttpResponse response, Boolean& abortProcessing)
--- End of inner exception stack trace ---</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>
</code>
</pre>
The call from flex looks good, the execution through the webservice is good, but this is the response I capture via wireshark, what is going on here?
I have tried several web methods, from "Hello World" to paramatized methods...all comeback with the same response...
I thought it may have something to do with encoding with the "--->", but I'm unsure how to control what .net renders as the response. | 0 |
13,786 | 08/17/2008 18:15:14 | 184 | 08/03/2008 05:34:19 | 290 | 4 | Sould we support IE6 anymore? | Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming? | internet | internet-explorer-6 | internet-explorer | null | null | 12/15/2011 05:04:33 | not constructive | Sould we support IE6 anymore?
===
Are we supposed to find workarounds in our web applications so that they will work in every situation? Is it time to do away with IE6 programming? | 4 |
13,806 | 08/17/2008 18:27:08 | 1,646 | 08/17/2008 18:27:08 | 1 | 0 | Any windows apis to get file handles besides createfile and openfile? | I am trying to snoop on a log file that an application is writing to.
I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking openfile with the same results.
I am not an experienced windows/c++ programmer (or even an experienced programmer), so my initial two thoughts were either that the application calls createfile before I hook the apis, or that there is some other api for creating files/obtaining handles for them. | windows | c++ | createfile | openfile | null | null | open | Any windows apis to get file handles besides createfile and openfile?
===
I am trying to snoop on a log file that an application is writing to.
I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking openfile with the same results.
I am not an experienced windows/c++ programmer (or even an experienced programmer), so my initial two thoughts were either that the application calls createfile before I hook the apis, or that there is some other api for creating files/obtaining handles for them. | 0 |
13,832 | 08/17/2008 18:52:13 | 1,638 | 08/17/2008 17:58:57 | 1 | 1 | NAnt and Visual Basic | I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic.
I decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of problems creating a build file for Visual Basic.
Admittedly, I do not personally know VB, but it seems like I have to hardcode all the imports and references in my build file to get anything to work...certainly not the best way to be doing things...
For any example: if I do not include the namespace System in the build file I will get several errors of common Unkown Types e.g: Guid
does NAnt typically require this for VB code or is does the VB code need a possible NAnt-freindly refactoring?
Does anybody have VB NAnt tips?
I would include some of the VB code, but it is proprietary and my employer may not be to keen on it being on a message board...
| nant | vb | null | null | null | null | open | NAnt and Visual Basic
===
I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic.
I decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of problems creating a build file for Visual Basic.
Admittedly, I do not personally know VB, but it seems like I have to hardcode all the imports and references in my build file to get anything to work...certainly not the best way to be doing things...
For any example: if I do not include the namespace System in the build file I will get several errors of common Unkown Types e.g: Guid
does NAnt typically require this for VB code or is does the VB code need a possible NAnt-freindly refactoring?
Does anybody have VB NAnt tips?
I would include some of the VB code, but it is proprietary and my employer may not be to keen on it being on a message board...
| 0 |
13,851 | 08/17/2008 19:10:28 | 1,144 | 08/12/2008 19:00:54 | 54 | 7 | IE7: header above menu | I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to eachother without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to eachother. However, in IE7, there is a small space between the menu DIV and the IMG. I have tried explicitly defining padding and margin on the IMG, however it does not work. I have had this problem before, so it seems to be a IE7 quirk.
My HTML Code:
<div id="middle">
<img id="ctl00_headerHolder_headerImage" src="pictures/headers/header_home.jpg" style="border-width:0px;" />
<div id="ctl00_menuPanel" class="menu">
<a id="ctl00_home" href="Default.aspx" style="color:#FFCC33;">Home</a>
|
<a id="ctl00_leden" href="Leden.aspx">Leden</a>
|
<a id="ctl00_agenda" href="Agenda.aspx">Agenda</a>
|
<a id="ctl00_fotos" href="Fotos.aspx">Foto's</a>
|
<a id="ctl00_geschiedenis" href="Geschiedenis.aspx">Geschiedenis</a>
|
<a id="ctl00_gastenboek" href="Gastenboek.aspx">Gastenboek</a>
</div>
</div>
| css | webdesign | null | null | null | null | open | IE7: header above menu
===
I am having trouble with IE7. I have a header, which is an IMG. Under it I have a div that represents a menu, they have to be attached to eachother without space in between. Both are 1000px width. In Opera and FireFox the header and the menu are neatly attached to eachother. However, in IE7, there is a small space between the menu DIV and the IMG. I have tried explicitly defining padding and margin on the IMG, however it does not work. I have had this problem before, so it seems to be a IE7 quirk.
My HTML Code:
<div id="middle">
<img id="ctl00_headerHolder_headerImage" src="pictures/headers/header_home.jpg" style="border-width:0px;" />
<div id="ctl00_menuPanel" class="menu">
<a id="ctl00_home" href="Default.aspx" style="color:#FFCC33;">Home</a>
|
<a id="ctl00_leden" href="Leden.aspx">Leden</a>
|
<a id="ctl00_agenda" href="Agenda.aspx">Agenda</a>
|
<a id="ctl00_fotos" href="Fotos.aspx">Foto's</a>
|
<a id="ctl00_geschiedenis" href="Geschiedenis.aspx">Geschiedenis</a>
|
<a id="ctl00_gastenboek" href="Gastenboek.aspx">Gastenboek</a>
</div>
</div>
| 0 |
13,857 | 08/17/2008 19:14:30 | 1,649 | 08/17/2008 18:50:40 | 1 | 0 | Can you explain closures (as they relate to Python)? | I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I was wondering if anyone can explain closures as succinctly and clearly as possible to me and others? I'm looking for a simple explanation that might help me wrap my head around why I should be using them in certain instances. | python | closures | null | null | null | null | open | Can you explain closures (as they relate to Python)?
===
I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I was wondering if anyone can explain closures as succinctly and clearly as possible to me and others? I'm looking for a simple explanation that might help me wrap my head around why I should be using them in certain instances. | 0 |
13,863 | 08/17/2008 19:21:26 | 1,651 | 08/17/2008 19:21:26 | 1 | 0 | Parsing search queries in Java | I have been trying to find an easy way to parse a search query and convert it to an SQL query for my DB.
I have found two solutions:
1. *Lucene*: Powerful Java-based search engine, contains a query parser but it isn't very configurable and I could find a way to easily hack/adapt it to create SQL queries.
2. *ANTLR*: A veteran text lexer-parser. Used for building anything from compilers to sky scrapers. ANTLR is highly configurable but everyone touching the code from now on will have to learn a new language...
Any other ideas?
Barak. | search | jave | null | null | null | null | open | Parsing search queries in Java
===
I have been trying to find an easy way to parse a search query and convert it to an SQL query for my DB.
I have found two solutions:
1. *Lucene*: Powerful Java-based search engine, contains a query parser but it isn't very configurable and I could find a way to easily hack/adapt it to create SQL queries.
2. *ANTLR*: A veteran text lexer-parser. Used for building anything from compilers to sky scrapers. ANTLR is highly configurable but everyone touching the code from now on will have to learn a new language...
Any other ideas?
Barak. | 0 |
13,881 | 08/17/2008 19:39:51 | 1,266 | 08/14/2008 06:27:57 | 45 | 12 | Picasa Plugin | Does anyone here know any resources on how to get started writing a plugin for Google's Picasa? I love it for photo management, but I have some ideas for how it could be better.
* Riya-esque facial search: given a large enough corpus of faces and pictures (people tend to be repeated often in individuals' albums (family, friends), I would think some semi-workable version of this could be done. And with 13+ gigs/7 years of photos, it would be very nice for search.
* Upload to Facebook
* Upload to any non-Google property, actually.
I know there are certain APIs and a Picasa2Flickr plugin out there, and I was wondering if anyone had seen any resources on this topic or had any experience | plugins | api | google | photo | picasa | null | open | Picasa Plugin
===
Does anyone here know any resources on how to get started writing a plugin for Google's Picasa? I love it for photo management, but I have some ideas for how it could be better.
* Riya-esque facial search: given a large enough corpus of faces and pictures (people tend to be repeated often in individuals' albums (family, friends), I would think some semi-workable version of this could be done. And with 13+ gigs/7 years of photos, it would be very nice for search.
* Upload to Facebook
* Upload to any non-Google property, actually.
I know there are certain APIs and a Picasa2Flickr plugin out there, and I was wondering if anyone had seen any resources on this topic or had any experience | 0 |
13,893 | 08/17/2008 20:03:22 | 483 | 08/06/2008 08:54:52 | 126 | 17 | How do I make a custom .net client profile installer? | For .net 3.5 SP1, Microsoft have the new client profile which installs only a subset of .net 3.5 SP1 on to Windows XP user's machines.
I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an installer for [ClickOnce](http://msdn.microsoft.com/en-us/library/cc656916.aspx) or [MSI](http://msdn.microsoft.com/en-us/library/cc656819.aspx).
But I've been using Inno Setup for my project so far and I'd like to continue to use it (as an Express user, I can't easily make MSIs), I need to know how to use the client-profile installer in a custom environment.
There is [an article](http://msdn.microsoft.com/en-us/library/cc656920.aspx) on a Deployment.xml schema, but no indication of how to write one, package it or anything else. Can someone explain this process? Finding the articles I linked to alone was a painful search experience. | .net-3.5 | deployment | installer | setup | client-profile | null | open | How do I make a custom .net client profile installer?
===
For .net 3.5 SP1, Microsoft have the new client profile which installs only a subset of .net 3.5 SP1 on to Windows XP user's machines.
I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an installer for [ClickOnce](http://msdn.microsoft.com/en-us/library/cc656916.aspx) or [MSI](http://msdn.microsoft.com/en-us/library/cc656819.aspx).
But I've been using Inno Setup for my project so far and I'd like to continue to use it (as an Express user, I can't easily make MSIs), I need to know how to use the client-profile installer in a custom environment.
There is [an article](http://msdn.microsoft.com/en-us/library/cc656920.aspx) on a Deployment.xml schema, but no indication of how to write one, package it or anything else. Can someone explain this process? Finding the articles I linked to alone was a painful search experience. | 0 |
13,927 | 08/17/2008 21:05:13 | 1,512 | 08/16/2008 03:17:59 | 8 | 0 | In Cocoa do I need to remove an Object from receiving KVO notifications when deallocating it? | When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc? | osx | cocoa | null | null | null | null | open | In Cocoa do I need to remove an Object from receiving KVO notifications when deallocating it?
===
When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc? | 0 |
13,938 | 08/17/2008 21:21:07 | 446 | 08/05/2008 19:46:59 | 163 | 9 | How do I separately run (unit) tests in different folders/projects in Visual Studio? | ![Visual Studio folder structure][1]
I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests. The unit tests is run very frequently while the integration tests naturally is run when the context is correctly aligned.
My goal is to somehow be able configure which tests (or test folders) to run when I use a keyboard shortcut. The tests should preferably be run by a graphical test runner (ReSharpers). So for example
* Alt+1 runs the tests in project BLL.Test,
* Alt+2 runs the tests in project DAL.Tests,
* Alt+3 runs them both (i.e. all the tests in the [Tests] folder, and
* Alt+4 runs the tests in folder [Tests.Integration].
TestDriven.net have an option of running just the test in the selected folder or project by right-clicking it and select Run Test(s). Being able to do this, but via a keyboard command and with a graphical test runner would be awesome.
![TestDriven.net test run output][2]
Currently I use VS2008, ReSharper 4 and nUnit. But advice for a setup in the general is of course also appreciated.
[1]: http://tinyurl.com/6ebk5u
[2]: http://byfiles.storage.live.com/y1p6rGMcGhqrjaGwMM35DRr7Ec9LXGEPBvD9oJpygsPL5Y7cf9qjSVAiMYvb2nyuizJ | unittesting | visual-studio | extensibility | configuration | setup | null | open | How do I separately run (unit) tests in different folders/projects in Visual Studio?
===
![Visual Studio folder structure][1]
I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests. The unit tests is run very frequently while the integration tests naturally is run when the context is correctly aligned.
My goal is to somehow be able configure which tests (or test folders) to run when I use a keyboard shortcut. The tests should preferably be run by a graphical test runner (ReSharpers). So for example
* Alt+1 runs the tests in project BLL.Test,
* Alt+2 runs the tests in project DAL.Tests,
* Alt+3 runs them both (i.e. all the tests in the [Tests] folder, and
* Alt+4 runs the tests in folder [Tests.Integration].
TestDriven.net have an option of running just the test in the selected folder or project by right-clicking it and select Run Test(s). Being able to do this, but via a keyboard command and with a graphical test runner would be awesome.
![TestDriven.net test run output][2]
Currently I use VS2008, ReSharper 4 and nUnit. But advice for a setup in the general is of course also appreciated.
[1]: http://tinyurl.com/6ebk5u
[2]: http://byfiles.storage.live.com/y1p6rGMcGhqrjaGwMM35DRr7Ec9LXGEPBvD9oJpygsPL5Y7cf9qjSVAiMYvb2nyuizJ | 0 |
13,939 | 08/17/2008 21:23:33 | 116 | 08/02/2008 05:51:57 | 2,451 | 153 | Are old editions of computer books worthwhile? | What do you think? Any examples welcomed. How about one where the older edition was actually better than a newer edition? | books | null | null | null | null | 09/24/2011 14:58:22 | not constructive | Are old editions of computer books worthwhile?
===
What do you think? Any examples welcomed. How about one where the older edition was actually better than a newer edition? | 4 |
13,941 | 08/17/2008 21:33:39 | 1,615 | 08/17/2008 15:19:59 | 16 | 1 | Python Sound ("Bell") | I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use `import os` and then use a command line speech program to say "Process complete." I much rather it be a simple "bell."
I know that there's a function that can be used in Cocoa apps, NSBeep, but I don't think that has much anything to do with this.
I've also tried `print(\a)` but that didn't work.
I'm using a Mac, if you couldn't tell by my Cocoa comment, so that may help.
Thanks! | python | osx | terminal | audio | bell | null | open | Python Sound ("Bell")
===
I'd like to have a python program alert me when it has completed its task by making a beep noise. Currently, I use `import os` and then use a command line speech program to say "Process complete." I much rather it be a simple "bell."
I know that there's a function that can be used in Cocoa apps, NSBeep, but I don't think that has much anything to do with this.
I've also tried `print(\a)` but that didn't work.
I'm using a Mac, if you couldn't tell by my Cocoa comment, so that may help.
Thanks! | 0 |
13,963 | 08/17/2008 22:02:31 | 61 | 08/01/2008 14:21:00 | 502 | 44 | [C#] Best method of Textfile Parsing? | I want to parse a config file sorta thing, like so:
[KEY:Value]
[SUBKEY:SubValue]
Now I started with a `StreamReader`, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me.
One restriction is that it has to work in a Linux/Mono environment (1.2.6 to be exact). I don't have the latest 2.0 release (of Mono), so try to restrict language features to C# 2.0 or C# 1.0.
Thanks in advance. | c# | fileparse | null | null | null | null | open | [C#] Best method of Textfile Parsing?
===
I want to parse a config file sorta thing, like so:
[KEY:Value]
[SUBKEY:SubValue]
Now I started with a `StreamReader`, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me.
One restriction is that it has to work in a Linux/Mono environment (1.2.6 to be exact). I don't have the latest 2.0 release (of Mono), so try to restrict language features to C# 2.0 or C# 1.0.
Thanks in advance. | 0 |
14,008 | 08/17/2008 23:25:45 | 877 | 08/10/2008 04:07:29 | 1 | 0 | Genetic Programming in C# | I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming? | c# | evolutionary | genetic | null | null | null | open | Genetic Programming in C#
===
I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming? | 0 |
14,029 | 08/17/2008 23:59:38 | 369 | 08/05/2008 08:33:43 | 125 | 15 | Disabling a ListView in c#, but still showing the current selection | I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without *hiding* the selected row(s).
I know there's a HideSelection property, but that only works when the ListView is still enabled (but not focused). I need the selection to be viewable even when the ListView is disabled.
How can I implement this? | c# | listview | .net | null | null | null | open | Disabling a ListView in c#, but still showing the current selection
===
I have a ListView control, and I'm trying to figure out the easiest/best way to disallow changing the selected row(s), without *hiding* the selected row(s).
I know there's a HideSelection property, but that only works when the ListView is still enabled (but not focused). I need the selection to be viewable even when the ListView is disabled.
How can I implement this? | 0 |
14,031 | 08/18/2008 00:01:19 | 1,680 | 08/17/2008 23:46:58 | 1 | 0 | Database triggers | In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I always assumed triggers could get to be expensive in high load scenarios.
That said, I have found a couple of instances where triggers have made sense to use (at least in my opinion they made sense). Recently though, I found myself in a situation where I sometimes might need to "bypass" the trigger. I felt really guilty about having to look for ways to do this, and I still think that a better database design would alleviate the need for this bypassing. Unfortunately this DB is used by mulitple applications, some of which are maintained by a very uncooperative development team who would scream about schema changes, so I was stuck.
What's the general consesus out there about triggers? Love em? Hate em? Think they serve a purpose in some scenarios?
Do think that having a need to bypass a trigger means that you're "doing it wrong"? | sql-server | triggers | database-design | null | null | null | open | Database triggers
===
In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I always assumed triggers could get to be expensive in high load scenarios.
That said, I have found a couple of instances where triggers have made sense to use (at least in my opinion they made sense). Recently though, I found myself in a situation where I sometimes might need to "bypass" the trigger. I felt really guilty about having to look for ways to do this, and I still think that a better database design would alleviate the need for this bypassing. Unfortunately this DB is used by mulitple applications, some of which are maintained by a very uncooperative development team who would scream about schema changes, so I was stuck.
What's the general consesus out there about triggers? Love em? Hate em? Think they serve a purpose in some scenarios?
Do think that having a need to bypass a trigger means that you're "doing it wrong"? | 0 |
14,032 | 08/18/2008 00:01:42 | 1,665 | 08/17/2008 20:52:36 | 1 | 1 | What's a Good Database ERD Tool for Linux? | I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Dia, but didn't see any DB tools - only UML, networking, etc.
Anyone have any recommendations? For what it's worth, I'm using Ubuntu (Hardy Heron).
Thanks. | linux | ubuntu | erd | null | null | null | open | What's a Good Database ERD Tool for Linux?
===
I've recently switched to Linux on my work machine and, new to the Linux desktop environment, I'd like to find a decent ERD tool for database design. Booting back into my Windows partition every time I need to create a diagram is going to get unpleasant quickly. I looked at Dia, but didn't see any DB tools - only UML, networking, etc.
Anyone have any recommendations? For what it's worth, I'm using Ubuntu (Hardy Heron).
Thanks. | 0 |
14,040 | 08/18/2008 00:19:05 | 1,541 | 08/16/2008 13:56:32 | 1 | 0 | Developer testing vs. QA team testing - What is the right division of work? | While trying to advocate more developer testing, I find the argument "Isn't that QA's job?" is used a lot. In my mind, it doesn't make sense to give the QA team all testing responsibilities, but at the same time Spolsky and others say you shouldn't be using the $100/hr developers to do something a $30/hr tester could be doing. What are the experiences of others in a company with a dedicated QA team? Where should the division of work be drawn? | unittesting | quality | process | null | null | null | open | Developer testing vs. QA team testing - What is the right division of work?
===
While trying to advocate more developer testing, I find the argument "Isn't that QA's job?" is used a lot. In my mind, it doesn't make sense to give the QA team all testing responsibilities, but at the same time Spolsky and others say you shouldn't be using the $100/hr developers to do something a $30/hr tester could be doing. What are the experiences of others in a company with a dedicated QA team? Where should the division of work be drawn? | 0 |
14,061 | 08/18/2008 00:49:33 | 615 | 08/07/2008 11:06:07 | 752 | 37 | Preventing Memory Leaks with Attached Behaviours | I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog [here][1].
My main concern now is that I may have a memory leak, since I'm handling the PreviewKeyDown event on UIElements and never explicitly "unhook" the event.
What's the best approach to prevent this leak (if indeed there is one)? Should I keep a list of the elements I'm managing, and unhook the PreviewKeyDown event in the Application.Exit event? Has anyone had success with attached behaviours in their own WPF applications and come up with an elegant memory-management solution?
[1]: http://www.madprops.org/blog/enter-to-tab-as-an-attached-property/ | .net | wpf | memory | null | null | null | open | Preventing Memory Leaks with Attached Behaviours
===
I've created an "attached behaviour" in my WPF application which lets me handle the Enter keypress and move to the next control. I call it EnterKeyTraversal.IsEnabled, and you can see the code on my blog [here][1].
My main concern now is that I may have a memory leak, since I'm handling the PreviewKeyDown event on UIElements and never explicitly "unhook" the event.
What's the best approach to prevent this leak (if indeed there is one)? Should I keep a list of the elements I'm managing, and unhook the PreviewKeyDown event in the Application.Exit event? Has anyone had success with attached behaviours in their own WPF applications and come up with an elegant memory-management solution?
[1]: http://www.madprops.org/blog/enter-to-tab-as-an-attached-property/ | 0 |
14,087 | 08/18/2008 01:44:57 | 1,599 | 08/17/2008 13:39:55 | 1 | 0 | Unit-testing a game | **Question**
How would you go adding unit-testing to a game?
I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to unit test the actual game itself?
I'm not talking about gameplay elements (like Protoss would beat Zerg in map X), but I'm talking about the interaction between the game and the engine.
**Introduction**
In game development, the engine is just a platform for the game. You could think of the game engine as an OS and the game as a software the OS would run. The game could be a collection of scripts or an actual subroutine inside the game engine.
**Possible Answers**
My idea is this:
You would need an engine that is deterministic. This means that given one set of input, the output would be exactly the same. This would inlude the random generator being seeded with the same input.
Then, create a bare-bone level which contains a couple of objects the avatar/user can interact with. Start small and then add objects into the level as more interactions are developed.
Create a script which follows a path (tests pathfinding) and interact with the different objects (store the result or expected behavior). This script would be your unit test. After a certain amount of time (say, one week), run the script along with your engine's unit tests.
| gamedevelopment | unittest | null | null | null | null | open | Unit-testing a game
===
**Question**
How would you go adding unit-testing to a game?
I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to unit test the actual game itself?
I'm not talking about gameplay elements (like Protoss would beat Zerg in map X), but I'm talking about the interaction between the game and the engine.
**Introduction**
In game development, the engine is just a platform for the game. You could think of the game engine as an OS and the game as a software the OS would run. The game could be a collection of scripts or an actual subroutine inside the game engine.
**Possible Answers**
My idea is this:
You would need an engine that is deterministic. This means that given one set of input, the output would be exactly the same. This would inlude the random generator being seeded with the same input.
Then, create a bare-bone level which contains a couple of objects the avatar/user can interact with. Start small and then add objects into the level as more interactions are developed.
Create a script which follows a path (tests pathfinding) and interact with the different objects (store the result or expected behavior). This script would be your unit test. After a certain amount of time (say, one week), run the script along with your engine's unit tests.
| 0 |
14,106 | 08/18/2008 02:29:34 | 1,599 | 08/17/2008 13:39:55 | 1 | 0 | How would you go about evaluating a programmer? | A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm very proficient with it.). On the evaluation, I was very biased on their performance (perfect scores).
I'm glad that our programming shop doesn't require an average performance level but I heard horror stories of shops which do require an average level.
My question are as follows:
1. as a programmer, what evaluation questions would you like to see?
2. as a manager, what evaluation questions would you like to see?
3. as the evaluator, how can you prevent bias in your evaluation?
4. I would love to remove the evaluation test. Is there any advantages to having an evaluation test? Any disadvantage? | management | evaluation | null | null | null | 10/28/2011 01:08:10 | not constructive | How would you go about evaluating a programmer?
===
A few weeks ago, I was assigned to evaluate all our programmers. I'm very uncomfortable with this since I was the one who taught everyone the shop's programming language (they all got out of college not knowing the language and as luck would have it, I'm very proficient with it.). On the evaluation, I was very biased on their performance (perfect scores).
I'm glad that our programming shop doesn't require an average performance level but I heard horror stories of shops which do require an average level.
My question are as follows:
1. as a programmer, what evaluation questions would you like to see?
2. as a manager, what evaluation questions would you like to see?
3. as the evaluator, how can you prevent bias in your evaluation?
4. I would love to remove the evaluation test. Is there any advantages to having an evaluation test? Any disadvantage? | 4 |
14,120 | 08/18/2008 03:03:52 | 1,694 | 08/18/2008 02:45:22 | 1 | 0 | Example Web Service | When I wanted to learn SOAP I looked around for tutorials. There are plenty out there, and they all say that they've created an example web service that you can use to test your "My First SOAP Client" app. Unfortunately, all of the sample web services I found have long since gone offline, making the test programs useless.
Can anyone recommend a good SOAP tutorial that uses with a still-working example web service? | webservices | soap | null | null | null | null | open | Example Web Service
===
When I wanted to learn SOAP I looked around for tutorials. There are plenty out there, and they all say that they've created an example web service that you can use to test your "My First SOAP Client" app. Unfortunately, all of the sample web services I found have long since gone offline, making the test programs useless.
Can anyone recommend a good SOAP tutorial that uses with a still-working example web service? | 0 |
14,126 | 08/18/2008 03:15:35 | 1,630 | 08/17/2008 17:03:19 | 1 | 0 | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | c++ | boost | graphs | null | null | null | open | How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order?
===
How to create a C++ Boost undirected graph and traverse it in depth first search (DFS) order? | 0 |
14,135 | 08/18/2008 03:33:13 | 1,599 | 08/17/2008 13:39:55 | 6 | 3 | Subversion and web development | I'm introducing Subversion into our web shop. I want to want the commited files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a beta page for testing purposes. A script can be called to move the beta page into production.
My question is this: How do you transfer the commited files to the server via Subversion? Is there a script I can add that will do the transfer when the files are commited? | subversion | ftp | null | null | null | null | open | Subversion and web development
===
I'm introducing Subversion into our web shop. I want to want the commited files to be uploaded into the server via FTP (and as they get use to Subversion, via SFTP). The files are sent to a beta page for testing purposes. A script can be called to move the beta page into production.
My question is this: How do you transfer the commited files to the server via Subversion? Is there a script I can add that will do the transfer when the files are commited? | 0 |
14,138 | 08/18/2008 03:34:30 | 1,630 | 08/17/2008 17:03:19 | 16 | 2 | Enabling OpenGL in wxWidgets | I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this? | opengl | wxwidgets | null | null | null | null | open | Enabling OpenGL in wxWidgets
===
I installed the wxWidgets source code, compiled it and am linking the libraries thus obtained with my application code. Now I need to use OpenGL in my wxWidgets application. How do I enable this? | 0 |
14,155 | 08/18/2008 04:03:04 | 1,632 | 08/17/2008 17:09:25 | 11 | 1 | Text Editors | Other then Notepad++, what text editor do you use to program in Windows? | texteditor | windows | null | null | null | 07/10/2011 23:05:51 | not constructive | Text Editors
===
Other then Notepad++, what text editor do you use to program in Windows? | 4 |
14,165 | 08/18/2008 04:13:34 | 1,630 | 08/17/2008 17:03:19 | 26 | 3 | I'm seeing strange errors when my C++ code has min() or max() calls. | I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers. | c++ | windows | null | null | null | null | open | I'm seeing strange errors when my C++ code has min() or max() calls.
===
I'm seeing strange errors when my C++ code has min() or max() calls. I'm using Visual C++ compilers. | 0 |
14,209 | 08/18/2008 05:24:47 | 1,659 | 08/17/2008 20:20:20 | 21 | 11 | [ADO.NET] System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed. | Anybody ever get this error and/or have any idea on it's cause and/or solution?
I'm asking this on behalf of a friend but there is info at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=125227&SiteID=1 | mssql | .net | ado.net | null | null | null | open | [ADO.NET] System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
===
Anybody ever get this error and/or have any idea on it's cause and/or solution?
I'm asking this on behalf of a friend but there is info at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=125227&SiteID=1 | 0 |
14,241 | 08/18/2008 06:06:38 | 1,659 | 08/17/2008 20:20:20 | 33 | 14 | [ADO.NET] What's the deal with |Pipe-delimited| variables in connection strings? | I know that **|DataDirectory|** will resolve to App_Data in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of *%environment variables%*? | ado.net | .net | connectionstring | syntax | null | null | open | [ADO.NET] What's the deal with |Pipe-delimited| variables in connection strings?
===
I know that **|DataDirectory|** will resolve to App_Data in an ASP.NET application but is that hard-coded or is there a generalized mechanism at work along the lines of *%environment variables%*? | 0 |
14,247 | 08/18/2008 06:15:08 | 266 | 08/04/2008 10:02:44 | 660 | 24 | Flex: does painless programmatic data binding exist? | I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and *please*, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript class file but have the contained elements declared in mxml.
There doesn't seem to be much of a difference productivity-wise, but doing data binding programmatically seems somewhat less than trivial. I took a look at how the mxml compiler transforms the data binding expressions. The result is a bunch of generated callbacks and a lot more lines than in the mxml representation. So here's the question: **is there a way to do data binding programmatically that doesn't involve a world of hurt?** | flex | actionscript | mxml | null | null | null | open | Flex: does painless programmatic data binding exist?
===
I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and *please*, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript class file but have the contained elements declared in mxml.
There doesn't seem to be much of a difference productivity-wise, but doing data binding programmatically seems somewhat less than trivial. I took a look at how the mxml compiler transforms the data binding expressions. The result is a bunch of generated callbacks and a lot more lines than in the mxml representation. So here's the question: **is there a way to do data binding programmatically that doesn't involve a world of hurt?** | 0 |
14,248 | 08/18/2008 06:15:53 | 1,621 | 08/17/2008 16:04:12 | 1 | 2 | Simplest "Oh duh!" moment when looking at others' source | When have you found something that gave you pause and made you realize that more cooks in the kitchen is sometimes a good thing? Specifically, simple things you've seen that made you wonder why you never thought of them before. | kiss | null | null | null | null | null | open | Simplest "Oh duh!" moment when looking at others' source
===
When have you found something that gave you pause and made you realize that more cooks in the kitchen is sometimes a good thing? Specifically, simple things you've seen that made you wonder why you never thought of them before. | 0 |
14,263 | 08/18/2008 07:00:15 | 961 | 08/11/2008 07:02:46 | 83 | 7 | Best way to let users download a file from my website: http or ftp | <p>We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most of our customers do not have an ftp client. The other files are accessed by clicking an http:// link in a browser.</p>
<p>Should I move all the files to the ftp? or does it not matter? Whats the difference?</p> | http | ftp | download | null | null | null | open | Best way to let users download a file from my website: http or ftp
===
<p>We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most of our customers do not have an ftp client. The other files are accessed by clicking an http:// link in a browser.</p>
<p>Should I move all the files to the ftp? or does it not matter? Whats the difference?</p> | 0 |
14,264 | 08/18/2008 07:00:21 | 1,630 | 08/17/2008 17:03:19 | 79 | 5 | Using GLUT with Visual C++ Express Edition | What are the basic steps to compile an OpenGL application using *GLUT (OpenGL Utility Toolkit)* under Visual C++ Express Edition? | opengl | visual-c++ | glut | null | null | null | open | Using GLUT with Visual C++ Express Edition
===
What are the basic steps to compile an OpenGL application using *GLUT (OpenGL Utility Toolkit)* under Visual C++ Express Edition? | 0 |
14,271 | 08/18/2008 07:20:19 | 1,630 | 08/17/2008 17:03:19 | 79 | 6 | Boost warnings with VC++ 9 | When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds:
1. Warning about the Wp64 setting.
2. Warning about the compiler version.
How can I turn off these warnings? | c++ | boost | warnings | null | null | null | open | Boost warnings with VC++ 9
===
When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds:
1. Warning about the Wp64 setting.
2. Warning about the compiler version.
How can I turn off these warnings? | 0 |
14,278 | 08/18/2008 07:34:56 | 1,534 | 08/16/2008 12:20:49 | 61 | 6 | How to load plugins in .NET? | I'd like to provide some way of creating dynamically lodable plugins in my software.
Typicial way to do this is using the <a href="http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx">LoadLibrary</a> WinAPI fuction to load a dll and calling <a href="http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx">GetProcAddress</a> to get an pointer to a function inside that dll.
My question is how do I dynamically load a plugin in C#/.Net application? | .net | windows | plugins | null | null | null | open | How to load plugins in .NET?
===
I'd like to provide some way of creating dynamically lodable plugins in my software.
Typicial way to do this is using the <a href="http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx">LoadLibrary</a> WinAPI fuction to load a dll and calling <a href="http://msdn.microsoft.com/en-us/library/ms683212(VS.85).aspx">GetProcAddress</a> to get an pointer to a function inside that dll.
My question is how do I dynamically load a plugin in C#/.Net application? | 0 |
14,281 | 08/18/2008 07:41:09 | 1,448 | 08/15/2008 16:16:35 | 36 | 10 | Is there a python module for regex match in zip files | I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files.
Is there any python module which can do a regex match on the files without unzipping it. Is there a simple way to solve this problem without unzipping?
| python | zip | text-processing | null | null | null | open | Is there a python module for regex match in zip files
===
I have over a million text files compressed into 40 zip files. I also have a list of about 500 model names of phones. I want to find out the number of times a particular model was mentioned in the text files.
Is there any python module which can do a regex match on the files without unzipping it. Is there a simple way to solve this problem without unzipping?
| 0 |
14,287 | 08/18/2008 07:45:33 | 1,630 | 08/17/2008 17:03:19 | 79 | 7 | Increasing camera capture resolution in OpenCV | In my C/C++ program, I'm using [OpenCV][1] to capture images from my webcam. The camera ([Logitech QuickCam IM][2]) can capture at resolutions **320x240**, **640x480** and **1280x960**. But, for some strange reason, OpenCV gives me images of resolution **320x240** only. Calls to change the resolution using **cvSetCaptureProperty()** with other resolution values just don't work. How do I capture images with the other resolutions possible with my webcam?
[1]: http://opencvlibrary.sourceforge.net/
[2]: http://en.wikipedia.org/wiki/Quickcam
| c | image | opencv | resolutions | webcams | null | open | Increasing camera capture resolution in OpenCV
===
In my C/C++ program, I'm using [OpenCV][1] to capture images from my webcam. The camera ([Logitech QuickCam IM][2]) can capture at resolutions **320x240**, **640x480** and **1280x960**. But, for some strange reason, OpenCV gives me images of resolution **320x240** only. Calls to change the resolution using **cvSetCaptureProperty()** with other resolution values just don't work. How do I capture images with the other resolutions possible with my webcam?
[1]: http://opencvlibrary.sourceforge.net/
[2]: http://en.wikipedia.org/wiki/Quickcam
| 0 |
14,293 | 08/18/2008 07:52:43 | 501 | 08/06/2008 12:11:33 | 136 | 10 | Not happy FogBugz users ? | Is there any unhappy FogBugz user? Or someone that evaluated it and decided that it lacks some essential features? | fogbugz | unhappy | evaluation | null | null | 08/11/2011 13:53:18 | not constructive | Not happy FogBugz users ?
===
Is there any unhappy FogBugz user? Or someone that evaluated it and decided that it lacks some essential features? | 4 |
14,297 | 08/18/2008 07:59:07 | 1,630 | 08/17/2008 17:03:19 | 79 | 8 | GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors | I'm using [FBO][1]s in my OpenGL code and I'm seeing compilation errors on GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT. What's the cause of this and how do I fix it?
[1]: http://en.wikipedia.org/wiki/Framebuffer_Object | fbo | opengl | extension | null | null | null | open | GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errors
===
I'm using [FBO][1]s in my OpenGL code and I'm seeing compilation errors on GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT. What's the cause of this and how do I fix it?
[1]: http://en.wikipedia.org/wiki/Framebuffer_Object | 0 |
14,300 | 08/18/2008 08:00:15 | 887 | 08/10/2008 07:50:30 | 213 | 9 | How do I make Powershell run a batch file and then stay open? | For example; with the old command prompt it would be:
cmd.exe /k mybatchfile.bat
Thanks.
John. | powershell | null | null | null | null | null | open | How do I make Powershell run a batch file and then stay open?
===
For example; with the old command prompt it would be:
cmd.exe /k mybatchfile.bat
Thanks.
John. | 0 |
14,303 | 08/18/2008 08:04:46 | 1,013 | 08/11/2008 13:24:18 | 48 | 4 | Good email service for bulk emailing | Just found out that the hosting company where I'll probably put one site has limit of 1000 emails per day.
They suggested to use an outside email service specialized in bulking email. What do you people use? What will stackoverflow use?
Thanks
| asp.net | stackoverflow | email | null | null | 05/17/2011 16:28:25 | off topic | Good email service for bulk emailing
===
Just found out that the hosting company where I'll probably put one site has limit of 1000 emails per day.
They suggested to use an outside email service specialized in bulking email. What do you people use? What will stackoverflow use?
Thanks
| 2 |
14,308 | 08/18/2008 08:08:39 | 914 | 08/10/2008 10:32:48 | 9 | 7 | What is the best way to handle files for a small office? | I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof.
SVN is great for code (it's what we use now), but I want to expand the versioning (or atleast some form of syncing) to cover all or most of our files.
What we need is something that's multiplatform (atleast win/osx), usable by our non-developers, can handle larger files (100mb+) without croaking.
I have a hunch that there's tons of ways to handle this, since it feels like something that should be a common problem. | versioning | version-control | filemanagement | null | null | null | open | What is the best way to handle files for a small office?
===
I'm currently working at a small web development company, we mostly do campaign sites and other promotional stuff. For our first year we've been using a "server" for sharing project files, a plain windows machine with a network share. But this isn't exactly future proof.
SVN is great for code (it's what we use now), but I want to expand the versioning (or atleast some form of syncing) to cover all or most of our files.
What we need is something that's multiplatform (atleast win/osx), usable by our non-developers, can handle larger files (100mb+) without croaking.
I have a hunch that there's tons of ways to handle this, since it feels like something that should be a common problem. | 0 |
14,310 | 08/18/2008 08:09:10 | 1,630 | 08/17/2008 17:03:19 | 89 | 9 | Using OpenGL textures larger than window/display size | I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem? | opengl | textures | null | null | null | null | open | Using OpenGL textures larger than window/display size
===
I'm having problems using textures that are larger than the OpenGL window or the display size as non-display render targets. What's the solution for this problem? | 0 |
14,318 | 08/18/2008 08:18:27 | 1,630 | 08/17/2008 17:03:19 | 89 | 10 | Using GLUT bitmap fonts | I'm writing a simple OpenGL application that uses GLUT. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with GLUT. What are the steps to get them working? | opengl | fonts | glut | bitmap | null | null | open | Using GLUT bitmap fonts
===
I'm writing a simple OpenGL application that uses GLUT. I don't want to roll my own font rendering code, instead I want to use the simple bitmap fonts that ship with GLUT. What are the steps to get them working? | 0 |
14,330 | 08/18/2008 08:27:32 | 1,630 | 08/17/2008 17:03:19 | 104 | 11 | RGB to monochrome conversion | How do I convert the RGB values of a pixel to a single monochrome value? | colors | rgb | monochrome | null | null | null | open | RGB to monochrome conversion
===
How do I convert the RGB values of a pixel to a single monochrome value? | 0 |
14,344 | 08/18/2008 08:48:34 | 1,630 | 08/17/2008 17:03:19 | 159 | 13 | Starting off with OpenGL under Cygwin | Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how? | opengl | cygwin | null | null | null | null | open | Starting off with OpenGL under Cygwin
===
Is it possible to compile and run OpenGL programs from under Cygwin? If yes, how? | 0 |
14,350 | 08/18/2008 08:53:39 | 1,228,206 | 08/10/2008 07:14:25 | 11 | 2 | How do I call a Flex SWF from a remote domain using Flash (AS3) ? | I have a Flex swf hosted at http://www.a.com/a.swf.
I have a flash code on another doamin that tries loading the SWF:
_loader = new Loader();
var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf");
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderFinish);
_loader.load(req);
On the onLoaderFinish event I try to load classes from the remote SWF and create them:
_loader.contentLoaderInfo.applicationDomain.getDefinition("someClassName") as Class
When this code runs I get the following exception
SecurityError: Error #2119: Security sandbox violation: caller http://localhost.service:1234/flashTest/Main.swf cannot access LoaderInfo.applicationDomain owned by http://www.b.com/b.swf.
at flash.display::LoaderInfo/get applicationDomain()
at NuconomyLoader/onLoaderFinish()
Is there any way to get this code working?
| flash | flex | security | null | null | null | open | How do I call a Flex SWF from a remote domain using Flash (AS3) ?
===
I have a Flex swf hosted at http://www.a.com/a.swf.
I have a flash code on another doamin that tries loading the SWF:
_loader = new Loader();
var req:URLRequest = new URLRequest("http://services.nuconomy.com/n.swf");
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoaderFinish);
_loader.load(req);
On the onLoaderFinish event I try to load classes from the remote SWF and create them:
_loader.contentLoaderInfo.applicationDomain.getDefinition("someClassName") as Class
When this code runs I get the following exception
SecurityError: Error #2119: Security sandbox violation: caller http://localhost.service:1234/flashTest/Main.swf cannot access LoaderInfo.applicationDomain owned by http://www.b.com/b.swf.
at flash.display::LoaderInfo/get applicationDomain()
at NuconomyLoader/onLoaderFinish()
Is there any way to get this code working?
| 0 |
14,358 | 08/18/2008 09:10:54 | 1,630 | 08/17/2008 17:03:19 | 188 | 15 | Accessing OpenGL state variables in Cg | I need to access the *OpenGL state variables* (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as **cgGLSetStateMatrixParameter()** in my C/C++ code. Is there an easier way to do this? | opengl | variables | state | cg | null | null | open | Accessing OpenGL state variables in Cg
===
I need to access the *OpenGL state variables* (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as **cgGLSetStateMatrixParameter()** in my C/C++ code. Is there an easier way to do this? | 0 |
14,359 | 08/18/2008 09:10:56 | 1,111 | 08/12/2008 12:40:23 | 3 | 1 | .Net Dynamic Plugin Loading with Authority | What recommendations can you give for a system which must do the following:
Load Plugins (and eventually execute them) but have 2 methods of loading these plugins:
- Load only authorized plugins
(developed by the owner of the
software)
- Load all plugins
And we need to be reasonably secure that the authorized plugins are the real deal (unmodified). However all plugins must be in seperate assemblies. I've been looking at using strong named assemblies for the plugins, with the public key stored in the loader application, but to me this seems too easy to modify the public key within the loader application (if the user was so inclined) regardless of any obfuscation of the loader application. Any more secure ideas? | c# | .net | plugins | assembly | dynamics | null | open | .Net Dynamic Plugin Loading with Authority
===
What recommendations can you give for a system which must do the following:
Load Plugins (and eventually execute them) but have 2 methods of loading these plugins:
- Load only authorized plugins
(developed by the owner of the
software)
- Load all plugins
And we need to be reasonably secure that the authorized plugins are the real deal (unmodified). However all plugins must be in seperate assemblies. I've been looking at using strong named assemblies for the plugins, with the public key stored in the loader application, but to me this seems too easy to modify the public key within the loader application (if the user was so inclined) regardless of any obfuscation of the loader application. Any more secure ideas? | 0 |
14,364 | 08/18/2008 09:17:17 | 1,630 | 08/17/2008 17:03:19 | 203 | 16 | Valid OpenGL context | I'm a newbie to OpenGL programming. How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code. | opengl | glut | context | null | null | null | open | Valid OpenGL context
===
I'm a newbie to OpenGL programming. How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code. | 0 |
14,370 | 08/18/2008 09:22:49 | 1,630 | 08/17/2008 17:03:19 | 203 | 17 | GLUT pop-up menus | Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how? | opengl | menu | glut | null | null | null | open | GLUT pop-up menus
===
Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how? | 0 |
14,373 | 08/18/2008 09:26:17 | 1,431 | 08/15/2008 15:31:33 | 41 | 4 | CVS to SVN conversion and reorganizing branches | I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting.
Wanted conversion is like this:
CVS branch SVN branch
HEAD -> branches/branchX
branchA -> trunk
branchB -> branches/branchB
branchC -> branches/branchC
That is, CVS HEAD becomes a normal branch and CVS branchA becomes SVN trunk.
Both CVS and SVN repositories will be on same linux machine.
How could this be done?
Also conversion where CVS branchA becomes SVN trunk and all other CVS branches are ignored might be enough.
| cvs | subversion | svn | null | null | null | open | CVS to SVN conversion and reorganizing branches
===
I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting.
Wanted conversion is like this:
CVS branch SVN branch
HEAD -> branches/branchX
branchA -> trunk
branchB -> branches/branchB
branchC -> branches/branchC
That is, CVS HEAD becomes a normal branch and CVS branchA becomes SVN trunk.
Both CVS and SVN repositories will be on same linux machine.
How could this be done?
Also conversion where CVS branchA becomes SVN trunk and all other CVS branches are ignored might be enough.
| 0 |
14,375 | 08/18/2008 09:28:22 | 1,407 | 08/15/2008 12:41:48 | 16 | 3 | LINQ, delete, IEntity interface | I'm using repository pattern with LINQ, have IRepository.DeleteOnSubmit(T Entity). It works fine, but when my entity class has interface, like this:
public interface IEntity { int ID {get;set;} }
public partial class MyEntity: IEntity {
public int ID {
get { return this.IDfield; }
set { this.IDfield=value; }
}
}
and then trying to delete some entity like this:
IEntity ie=repository.GetByID(1);
repoitory.DeleteOnSubmit(ie);
throws
The member 'IEntity.ID' has no supported translation to SQL.
fetching data from DB works, but delete and insert doesn't. How to use interface against DataContext?
| c# | linq | repository | null | null | null | open | LINQ, delete, IEntity interface
===
I'm using repository pattern with LINQ, have IRepository.DeleteOnSubmit(T Entity). It works fine, but when my entity class has interface, like this:
public interface IEntity { int ID {get;set;} }
public partial class MyEntity: IEntity {
public int ID {
get { return this.IDfield; }
set { this.IDfield=value; }
}
}
and then trying to delete some entity like this:
IEntity ie=repository.GetByID(1);
repoitory.DeleteOnSubmit(ie);
throws
The member 'IEntity.ID' has no supported translation to SQL.
fetching data from DB works, but delete and insert doesn't. How to use interface against DataContext?
| 0 |
14,378 | 08/18/2008 09:29:34 | 1,630 | 08/17/2008 17:03:19 | 203 | 18 | Using the mouse scrollwheel in GLUT | I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that? | opengl | glut | scrollwheel | null | null | null | open | Using the mouse scrollwheel in GLUT
===
I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom in and out of a scene? How do I do that? | 0 |
14,386 | 08/18/2008 09:38:58 | 1,630 | 08/17/2008 17:03:19 | 203 | 19 | fopen deprecated warning | On *Visual Studio 2005 C++ compiler*, I get the following warning when my code uses the **fopen** and such calls.
1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
1> Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
How do I prevent this? | visual-c++ | deprecated | null | null | null | null | open | fopen deprecated warning
===
On *Visual Studio 2005 C++ compiler*, I get the following warning when my code uses the **fopen** and such calls.
1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
1> Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
How do I prevent this? | 0 |
14,389 | 08/18/2008 09:41:14 | 745 | 08/08/2008 13:47:26 | 119 | 13 | Regex and unicode | I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi)
The script works fine, that is until you try and use it on files that have Unicode show-names (something I never really thought about, since all the files I have are English, so mostly pretty-much all fall within `[a-zA-Z0-9'\-]`)
How can I allow the regular expressions to match accented characters and the likes? Currently the regex's config section looks like..
config['valid_filename_chars'] = """0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@£$%^&*()_+=-[]{}"'.,<>`~? """
config['valid_filename_chars_regex'] = re.escape(config['valid_filename_chars'])
config['name_parse'] = [
# foo_[s01]_[e01]
re.compile('''^([%s]+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$'''% (config['valid_filename_chars_regex'])),
# foo.1x09*
re.compile('''^([%s]+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.s01.e01, foo.s01_e01
re.compile('''^([%s]+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.103*
re.compile('''^([%s]+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.0103*
re.compile('''^([%s]+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
] | python | regex | unicode | null | null | null | open | Regex and unicode
===
I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames them into something nicer (Show Name - [01x02].avi)
The script works fine, that is until you try and use it on files that have Unicode show-names (something I never really thought about, since all the files I have are English, so mostly pretty-much all fall within `[a-zA-Z0-9'\-]`)
How can I allow the regular expressions to match accented characters and the likes? Currently the regex's config section looks like..
config['valid_filename_chars'] = """0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@£$%^&*()_+=-[]{}"'.,<>`~? """
config['valid_filename_chars_regex'] = re.escape(config['valid_filename_chars'])
config['name_parse'] = [
# foo_[s01]_[e01]
re.compile('''^([%s]+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$'''% (config['valid_filename_chars_regex'])),
# foo.1x09*
re.compile('''^([%s]+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.s01.e01, foo.s01_e01
re.compile('''^([%s]+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.103*
re.compile('''^([%s]+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.0103*
re.compile('''^([%s]+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
] | 0 |
14,395 | 08/18/2008 09:49:56 | 1,122 | 08/12/2008 14:00:43 | 156 | 21 | Managed Source Control Hosting and Continuous Integration with CVSDude and CruiseControl.net | For my own project at home, I'm using the rather excellent managed subversion hosting from [CVSDude][1]. As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process to kick off upon check-in.
Has anyone managed to get CruiseControl.net working with CVSDude? My collegue Mike has this [blog post][2] where someone from CVSDude said:
> "Your can use our post-commit call back facility to call a URL on your
server, which passes variables relating to the last checkin (variables
detailed in our specification). Your CGI script will these variables and
perform whatever tasks are required i.e. updating Cruise Control, etc."
Sound lovely. But has anyone *actually done it* with cruisecontrol?
[1]: http://cvsdude.com/
[2]: http://mikehadlow.blogspot.com/2008/01/more-on-source-repository-hosting-what.html | svn | cruisecontrol.net | buildprocess | sourcecontrol | null | null | open | Managed Source Control Hosting and Continuous Integration with CVSDude and CruiseControl.net
===
For my own project at home, I'm using the rather excellent managed subversion hosting from [CVSDude][1]. As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process to kick off upon check-in.
Has anyone managed to get CruiseControl.net working with CVSDude? My collegue Mike has this [blog post][2] where someone from CVSDude said:
> "Your can use our post-commit call back facility to call a URL on your
server, which passes variables relating to the last checkin (variables
detailed in our specification). Your CGI script will these variables and
perform whatever tasks are required i.e. updating Cruise Control, etc."
Sound lovely. But has anyone *actually done it* with cruisecontrol?
[1]: http://cvsdude.com/
[2]: http://mikehadlow.blogspot.com/2008/01/more-on-source-repository-hosting-what.html | 0 |
14,397 | 08/18/2008 09:51:18 | 1,720 | 08/18/2008 09:51:17 | 1 | 0 | When should a multi-module project to split into seperate repository trees? | Currently we have a project with a standard subversion repository layout of:
./trunk
./branches
./tags
However, as we're moving down the road of OSGi and a modular project, we've ended up with:
./trunk/bundle/main
./trunk/bundle/modulea
./trunk/bundle/moduleb
./tags/bundle/main-1.0.0
./tags/bundle/main-1.0.1
./tags/bundle/modulea-1.0.0
The 'build' is still quite monolithic in that it builds all modules in sequence, thou I'm starting to wonder if we should refactor the build/repository to something more like:
./bundle/main/trunk
./bundle/main/tags/main-1.0.0
./bundle/main/tags/main-1.0.1
./bundle/modulea/trunk
./bundle/modulea/tags/modulea-1.0.0
In this pattern I would imagine each module building itself, and storing its binary in a repository (maven, ivy, or another path of the subversion repository itself).
Are there guidelines or 'best-practices' over project layouts once one goes modular? | subversion | java | layout | null | null | null | open | When should a multi-module project to split into seperate repository trees?
===
Currently we have a project with a standard subversion repository layout of:
./trunk
./branches
./tags
However, as we're moving down the road of OSGi and a modular project, we've ended up with:
./trunk/bundle/main
./trunk/bundle/modulea
./trunk/bundle/moduleb
./tags/bundle/main-1.0.0
./tags/bundle/main-1.0.1
./tags/bundle/modulea-1.0.0
The 'build' is still quite monolithic in that it builds all modules in sequence, thou I'm starting to wonder if we should refactor the build/repository to something more like:
./bundle/main/trunk
./bundle/main/tags/main-1.0.0
./bundle/main/tags/main-1.0.1
./bundle/modulea/trunk
./bundle/modulea/tags/modulea-1.0.0
In this pattern I would imagine each module building itself, and storing its binary in a repository (maven, ivy, or another path of the subversion repository itself).
Are there guidelines or 'best-practices' over project layouts once one goes modular? | 0 |
14,398 | 08/18/2008 09:51:36 | 982 | 08/11/2008 12:08:33 | 24 | 9 | Class Designer in Visual Studio - is it worth it? | Does anybody use the Class Designer much in Visual Studio?
I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The [MSDN Class Designer Blog][1] doesn't seem to have been updated for a while but it still looks quite useful.
Is the Class Designer a quick way to build the basic application or should I just work out on paper and then start coding?
Thanks
[1]: htp://blogs.msdn.com/classdesigner/ | visual-studio | classdesigner | null | null | null | null | open | Class Designer in Visual Studio - is it worth it?
===
Does anybody use the Class Designer much in Visual Studio?
I have downloaded the Modeling Power Toys for 2005 and have been impressed with what I've seen so far. The [MSDN Class Designer Blog][1] doesn't seem to have been updated for a while but it still looks quite useful.
Is the Class Designer a quick way to build the basic application or should I just work out on paper and then start coding?
Thanks
[1]: htp://blogs.msdn.com/classdesigner/ | 0 |
14,402 | 08/18/2008 09:55:29 | 1,630 | 08/17/2008 17:03:19 | 205 | 20 | GLUT exit redefinition error | In my simple OpenGL program I get the following error about exit redefinition:
1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\glut.h(146) : see declaration of 'exit'
I'm using Nate Robins' [GLUT for Win32][1] and get this error with Visual Studio 2005 or Visual C++ 2005 (Express Edition). What is the cause of this error and how do I fix it?
[1]: http://www.xmission.com/~nate/glut.html | opengl | glut | null | null | null | null | open | GLUT exit redefinition error
===
In my simple OpenGL program I get the following error about exit redefinition:
1>c:\program files\microsoft visual studio 8\vc\include\stdlib.h(406) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\glut.h(146) : see declaration of 'exit'
I'm using Nate Robins' [GLUT for Win32][1] and get this error with Visual Studio 2005 or Visual C++ 2005 (Express Edition). What is the cause of this error and how do I fix it?
[1]: http://www.xmission.com/~nate/glut.html | 0 |
14,410 | 08/18/2008 10:08:09 | 745 | 08/08/2008 13:47:26 | 124 | 13 | Why are there so few modal-editors that aren't vi*? | Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts (ctrl+w to delete back a word and so on) | editor | vim | null | null | null | null | open | Why are there so few modal-editors that aren't vi*?
===
Pretty much every other editor that isn't a vi descendant (vim, cream, vi-emu) seems to use the emacs shortcuts (ctrl+w to delete back a word and so on) | 0 |
14,422 | 08/18/2008 10:23:22 | 745 | 08/08/2008 13:47:26 | 127 | 13 | Why is the PyObjC documentation so bad? | For example, <http://developer.apple.com/cocoa/pyobjc.html> is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it..
The official PyObjC page is equally bad, <http://pyobjc.sourceforge.net/>
It's so bad it's baffling.. I'm considering learning Ruby primarily because the RubyCocoa stuff is so much better documented, and there's lots of decent tutorials (<http://www.rubycocoa.com/> for example), and because of the Shoes GUI toolkit..
Even [this badly-auto-translated Japanese tutorial](http://66.163.168.225/babelfish/translate_url_content?lp=ja_en&url=http%3A%2F%2Fblog.monospace.jp%2F2007%2F11%2F05%2Fxcode3_cocoa_python%2F&fr=avbbf-us&.intl=us) is more useful than the rest of the documentation I could find..
All I want to do is create fairly simple Python applications with Cocoa GUI's..
Can anyone shed light on the horrible documentation, or point me at some tutorials that don't just give you huge blocks of code and assume you know what `NSThread.detachNewThreadSelector_toTarget_withObject_("queryController", self, None)` does..? | python | osx | cocoa | tutorials | pyobjc | null | open | Why is the PyObjC documentation so bad?
===
For example, <http://developer.apple.com/cocoa/pyobjc.html> is still for OS X 10.4 Tiger, not 10.5 Leopard.. And that's the official Apple documentation for it..
The official PyObjC page is equally bad, <http://pyobjc.sourceforge.net/>
It's so bad it's baffling.. I'm considering learning Ruby primarily because the RubyCocoa stuff is so much better documented, and there's lots of decent tutorials (<http://www.rubycocoa.com/> for example), and because of the Shoes GUI toolkit..
Even [this badly-auto-translated Japanese tutorial](http://66.163.168.225/babelfish/translate_url_content?lp=ja_en&url=http%3A%2F%2Fblog.monospace.jp%2F2007%2F11%2F05%2Fxcode3_cocoa_python%2F&fr=avbbf-us&.intl=us) is more useful than the rest of the documentation I could find..
All I want to do is create fairly simple Python applications with Cocoa GUI's..
Can anyone shed light on the horrible documentation, or point me at some tutorials that don't just give you huge blocks of code and assume you know what `NSThread.detachNewThreadSelector_toTarget_withObject_("queryController", self, None)` does..? | 0 |
14,432 | 08/18/2008 10:35:14 | 194 | 08/03/2008 10:56:49 | 729 | 53 | 64bit .NET Performance tuning | I know that .NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using Int64 improve performance and will the JIT compiler automatically make Int64 work on 32bit systems?) | .net | performance | optimization | 64bit | jit | null | open | 64bit .NET Performance tuning
===
I know that .NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using Int64 improve performance and will the JIT compiler automatically make Int64 work on 32bit systems?) | 0 |
14,435 | 08/18/2008 10:40:52 | 1,703 | 08/18/2008 05:41:49 | 8 | 4 | Class designer | What software do you use when designing classes and their relationship, or just pen and paper? | design | editor | classdesigner | null | null | null | open | Class designer
===
What software do you use when designing classes and their relationship, or just pen and paper? | 0 |
14,443 | 08/18/2008 10:46:13 | 1,068 | 08/12/2008 08:44:09 | 1 | 0 | Bug Repository | Is there any opensource or public domain repository of bugs where one can see the various bugs, symptoms of those bugs, and their fixes. The bugs could be from any part of the code, OS, GUI, device drivers etc.
I guess if at there is anything like this, it might be from some open source development initiative like Linux Kernel Development, or some other Opensource project.
Is there anything like this available online?
It would be a vluable inputs to developers and testers all alike.
wishes,
-Ajit | repository | null | null | null | null | null | open | Bug Repository
===
Is there any opensource or public domain repository of bugs where one can see the various bugs, symptoms of those bugs, and their fixes. The bugs could be from any part of the code, OS, GUI, device drivers etc.
I guess if at there is anything like this, it might be from some open source development initiative like Linux Kernel Development, or some other Opensource project.
Is there anything like this available online?
It would be a vluable inputs to developers and testers all alike.
wishes,
-Ajit | 0 |
14,451 | 08/18/2008 10:56:42 | 1,724 | 08/18/2008 10:56:42 | 1 | 0 | What is the best way to make a Delphi Application completely full screen ? |
What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?
I am looking for something similar to what IE does when you hit F11.
I wish this to be a run time option for the user not a design time decision by my good self. | delphi | null | null | null | null | null | open | What is the best way to make a Delphi Application completely full screen ?
===
What is the best way to make a delphi application (delphi 2007 for win32 here) go completely full screen, removing the application border and covering windows task bar ?
I am looking for something similar to what IE does when you hit F11.
I wish this to be a run time option for the user not a design time decision by my good self. | 0 |
14,453 | 08/18/2008 10:58:45 | 1,727 | 08/18/2008 10:58:44 | 1 | 0 | Does anyone have .Net Excel IO component benchmarks? | I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a [blog post][1]), and I know that using a native .Net component is going to be the fastest. But the question is, which of the components wins? Has anybody benchmarked them? I've been using Syncfusion XlsIO, but that's very slow for some key operations (like deleting rows in a workbook containing thousands of Named ranges).
[1]: http://blog.functionalfun.net/2008/06/reading-and-writing-excel-files-with.html "Reading and Writing Excel files in .Net" | c# | excel | components | null | null | null | open | Does anyone have .Net Excel IO component benchmarks?
===
I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a [blog post][1]), and I know that using a native .Net component is going to be the fastest. But the question is, which of the components wins? Has anybody benchmarked them? I've been using Syncfusion XlsIO, but that's very slow for some key operations (like deleting rows in a workbook containing thousands of Named ranges).
[1]: http://blog.functionalfun.net/2008/06/reading-and-writing-excel-files-with.html "Reading and Writing Excel files in .Net" | 0 |
14,464 | 08/18/2008 11:19:28 | 1,006 | 08/11/2008 12:49:59 | 1 | 0 | Bit fields in C# | I have a structure which I need to populate and write to disk (several actually).
An example is:
byte-6
bit0 - original_or_copy
bit1 - copyright
bit2 - data_alignment_indicator
bit3 - PES_priority
bit4-bit5 - PES_scrambling control.
bit6-bit7 - reserved
In C I might do something like the following:
struct PESHeader {
unsigned reserved:2;
unsigned scrambling_control:2;
unsigned priority:1;
unsigned data_alignment_indicator:1;
unsigned copyright:1;
unsigned original_or_copy:1;
};
Is there any way to do this in C# that would enable me to access the bits using the struct dereferencing dot operator?
For a couple of structures, I can just do bit shifting wrapped in an accessor function.
I have loads of structures to handle in this way, so I'm looking for something that's easier to read and quicker to write.
Thanks,
Rob | c# | null | null | null | null | null | open | Bit fields in C#
===
I have a structure which I need to populate and write to disk (several actually).
An example is:
byte-6
bit0 - original_or_copy
bit1 - copyright
bit2 - data_alignment_indicator
bit3 - PES_priority
bit4-bit5 - PES_scrambling control.
bit6-bit7 - reserved
In C I might do something like the following:
struct PESHeader {
unsigned reserved:2;
unsigned scrambling_control:2;
unsigned priority:1;
unsigned data_alignment_indicator:1;
unsigned copyright:1;
unsigned original_or_copy:1;
};
Is there any way to do this in C# that would enable me to access the bits using the struct dereferencing dot operator?
For a couple of structures, I can just do bit shifting wrapped in an accessor function.
I have loads of structures to handle in this way, so I'm looking for something that's easier to read and quicker to write.
Thanks,
Rob | 0 |
14,490 | 08/18/2008 12:03:47 | 572 | 08/06/2008 20:56:54 | 542 | 46 | How can I continue to stay current on the latest and (maybe) greatest tools, techniques, and technologies? | I think I'm on the right track now, by subscribing to the IEEE Computer Society and ACM, but in just 2-3 short years, I'll be out of school and in the workforce. What are some things (anything from blogs to books) that I could use to ensure that I'm always up-to-date as possible on the state of the art in programming, software engineering, computer science, etc? | up-to-date | aging | resources | books | blogs | null | open | How can I continue to stay current on the latest and (maybe) greatest tools, techniques, and technologies?
===
I think I'm on the right track now, by subscribing to the IEEE Computer Society and ACM, but in just 2-3 short years, I'll be out of school and in the workforce. What are some things (anything from blogs to books) that I could use to ensure that I'm always up-to-date as possible on the state of the art in programming, software engineering, computer science, etc? | 0 |
14,491 | 08/18/2008 12:04:06 | 1,743 | 08/18/2008 12:04:06 | 1 | 0 | How can an MFC application terminate itself? | What is the proper way for an MFC application to cleanly close itself? | c++ | mfc | vc | null | null | null | open | How can an MFC application terminate itself?
===
What is the proper way for an MFC application to cleanly close itself? | 0 |
14,495 | 08/18/2008 12:10:38 | 1,741 | 08/18/2008 11:54:46 | 1 | 0 | Starting MATLAB from the command line | I see in the MATLAB help (matlab -h) that I can use the -r flag to specify an m-file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has already returned.
Is there any way to get MATLAB to only return once the command is finished? If you're calling from a separate program seems like its easier to wait on the process that to use a file or sockets to confirm completion.
testWait.m:
function testWait
disp('Waiting...');
pause(3); %pauses 3 seconds
disp('Hello World');
I'm running this using
matlab -nosplash - nodesktop -r waitHello | matlab | null | null | null | null | null | open | Starting MATLAB from the command line
===
I see in the MATLAB help (matlab -h) that I can use the -r flag to specify an m-file to run. I notice when I do this, MATLAB seems to start the script, but immediately return. The script processes fine, but the main app has already returned.
Is there any way to get MATLAB to only return once the command is finished? If you're calling from a separate program seems like its easier to wait on the process that to use a file or sockets to confirm completion.
testWait.m:
function testWait
disp('Waiting...');
pause(3); %pauses 3 seconds
disp('Hello World');
I'm running this using
matlab -nosplash - nodesktop -r waitHello | 0 |
14,497 | 08/18/2008 12:10:52 | 631 | 08/07/2008 12:14:37 | 41 | 10 | Has anyone used NUnitLite with any success? | I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is *ok*, but debugging the tests is a nightmare and the test runner is *so* slow.
I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's also in the roadmap for NUnit 3.0, but who knows when that will come out. Has anyone had any success with it? | unittesting | windows-mobile | compactframework | nunit | null | null | open | Has anyone used NUnitLite with any success?
===
I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is *ok*, but debugging the tests is a nightmare and the test runner is *so* slow.
I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's also in the roadmap for NUnit 3.0, but who knows when that will come out. Has anyone had any success with it? | 0 |
14,504 | 08/18/2008 12:17:12 | 1,659 | 08/17/2008 20:20:20 | 180 | 22 | Proportional font IDE | I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in [The C++ Programming Language book](http://www.research.att.com/~bs/3rd.html).
I want to set tab stops for my indents, which could be specified in points instead of fixed character positions. I would also like bold and italics. Various font sizes and even style sheets would be cool.
Has anyone seen anything like this out there or know the best way to start building one? | fonts | ide | text-editor | tabs | diy | null | open | Proportional font IDE
===
I would really like to see a proportional font IDE, even if I have to build it myself (perhaps as an extension to Visual Studio). What I basically mean is MS Word style editing of code that sort of looks like the typographical style in [The C++ Programming Language book](http://www.research.att.com/~bs/3rd.html).
I want to set tab stops for my indents, which could be specified in points instead of fixed character positions. I would also like bold and italics. Various font sizes and even style sheets would be cool.
Has anyone seen anything like this out there or know the best way to start building one? | 0 |
14,505 | 08/18/2008 12:17:16 | 194 | 08/03/2008 10:56:49 | 729 | 53 | Alpha blending colors in .NET Compact Framwork 2.0 | In the Full .NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this:
Color blended = Color.FromArgb(alpha, color);
or
Color blended = Color.FromArgb(alpha, red, green , blue);
However in the Compact Framework (2.0 specifically), neither of those prototypes are valid, you only get:
Color.FromArgb(int red, int green, int blue);
and
Color.FromArgb(int val);
The first one, obviously, doesn't even let you enter an alpha value, but the documentation for the latter shows that "val" is a 32bit ARGB value (as 0xAARRGGBB as opposed to the standard 24bit 0xRRGGBB), so it would make sense that you could just build the ARGB value and pass it to the function. I tried this with the following:
private Color FromARGB(byte alpha, byte red, byte green, byte blue)
{
int val = (alpha << 24) | (red << 16) | (green << 8) | blue;
return Color.FromArgb(val);
}
But no matter what I do, the alpha blending never works, the resulting color always as full opacity, even when setting the alpha value to 0.
Has anyone gotten this to work on Compact Framework? | c# | .net | graphics | compactframework | null | null | open | Alpha blending colors in .NET Compact Framwork 2.0
===
In the Full .NET framework you can use the Color.FromArgb() method to create a new color with alpha blending, like this:
Color blended = Color.FromArgb(alpha, color);
or
Color blended = Color.FromArgb(alpha, red, green , blue);
However in the Compact Framework (2.0 specifically), neither of those prototypes are valid, you only get:
Color.FromArgb(int red, int green, int blue);
and
Color.FromArgb(int val);
The first one, obviously, doesn't even let you enter an alpha value, but the documentation for the latter shows that "val" is a 32bit ARGB value (as 0xAARRGGBB as opposed to the standard 24bit 0xRRGGBB), so it would make sense that you could just build the ARGB value and pass it to the function. I tried this with the following:
private Color FromARGB(byte alpha, byte red, byte green, byte blue)
{
int val = (alpha << 24) | (red << 16) | (green << 8) | blue;
return Color.FromArgb(val);
}
But no matter what I do, the alpha blending never works, the resulting color always as full opacity, even when setting the alpha value to 0.
Has anyone gotten this to work on Compact Framework? | 0 |
14,518 | 08/18/2008 12:25:58 | 966 | 08/11/2008 07:35:55 | 11 | 2 | What tools do you use to stress test programs on Windows XP? | I would like to be able to control the available memory and CPU resources. What kind of tools do you use to do this? | memory | cpu | stress-testing | winxp | null | null | open | What tools do you use to stress test programs on Windows XP?
===
I would like to be able to control the available memory and CPU resources. What kind of tools do you use to do this? | 0 |
14,527 | 08/18/2008 12:35:42 | 274 | 08/04/2008 10:43:23 | 117 | 13 | XSLT - Reverse Find in a string | I need to be able to find the last occurrance of a character within an element.
for example:
`<mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl>`
If I try to locate through using `substring-before(mediaurl, '.')` and `substring-after(mediaurl, '.')` then it will, of course, match on the first dot. How would I get the file extension. Essentially, I need to get the file name and the extension from a path like this, but I am quite stumped as to how to do it using XSLT.
| xslt | null | null | null | null | null | open | XSLT - Reverse Find in a string
===
I need to be able to find the last occurrance of a character within an element.
for example:
`<mediaurl>http://www.blah.com/path/to/file/media.jpg</mediaurl>`
If I try to locate through using `substring-before(mediaurl, '.')` and `substring-after(mediaurl, '.')` then it will, of course, match on the first dot. How would I get the file extension. Essentially, I need to get the file name and the extension from a path like this, but I am quite stumped as to how to do it using XSLT.
| 0 |
14,530 | 08/18/2008 12:37:57 | 1,683 | 08/18/2008 00:30:32 | 1 | 0 | LINQ vs stored procedures? | I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow (http://beta.stackoverflow.com/questions/8050/beginners-guide-to-linq), but had a follow-up question:
We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the project which already writes the data). Most of our other projects up to this point make use of stored procedures for such things. However, I'd like to leverage LINQ if it makes more sense.
So, the question is this: For simple data retrievals, which approach is better, LINQ or stored procs? Any specific Pro's and con's?
Thanks. | linq | storedprocedures | null | null | null | null | open | LINQ vs stored procedures?
===
I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow (http://beta.stackoverflow.com/questions/8050/beginners-guide-to-linq), but had a follow-up question:
We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the project which already writes the data). Most of our other projects up to this point make use of stored procedures for such things. However, I'd like to leverage LINQ if it makes more sense.
So, the question is this: For simple data retrievals, which approach is better, LINQ or stored procs? Any specific Pro's and con's?
Thanks. | 0 |
14,545 | 08/18/2008 12:52:53 | 14,446 | 09/17/2008 00:03:06 | 6 | 3 | How should I handle autolinking in wiki page content? | What I mean by autolinking is the process by which wiki links inlined in page content are generated into either a hyperlink to the page (if it does exist) or a create link (if the page doesn't exist).
With the parser I am using, this is a two step process - first, the page content is parsed and all of the links to wiki pages from the source markup are extracted. Then, I feed an array of the existing pages back to the parser, before the final HTML markup is generated.
What is the best way to handle this process? It seems as if I need to keep a cached list of every single page on the site, rather than having to extract the index of page titles each time. Or is it better to check each link separately to see if it exists? This might result in a lot of database lookups if the list wasn't cached. Would this still be viable for a larger wiki site with thousands of pages? | database | html | wiki | hyperlink | null | null | open | How should I handle autolinking in wiki page content?
===
What I mean by autolinking is the process by which wiki links inlined in page content are generated into either a hyperlink to the page (if it does exist) or a create link (if the page doesn't exist).
With the parser I am using, this is a two step process - first, the page content is parsed and all of the links to wiki pages from the source markup are extracted. Then, I feed an array of the existing pages back to the parser, before the final HTML markup is generated.
What is the best way to handle this process? It seems as if I need to keep a cached list of every single page on the site, rather than having to extract the index of page titles each time. Or is it better to check each link separately to see if it exists? This might result in a lot of database lookups if the list wasn't cached. Would this still be viable for a larger wiki site with thousands of pages? | 0 |
14,546 | 08/18/2008 12:53:21 | 1,753 | 08/18/2008 12:42:26 | 1 | 0 | WSS/MOSS Book | I have been using Inside MS Windows SharePoint Services 3.0 by Ted Pattison to help me crack into WSS Development. It has been an excellent developer start, but now that I'm moving beyond I need some more referencey type of information.
I would normally just use MSDN, but I find it severely lacking in some of the examples, for instance specifically describing the practical differences between Lookup and LookupMulti fields. Does anyone know of a a good WSS/MOSS reference book? Would the Wrox book [Professional SharePoint Development](http://www.amazon.com/gp/product/0470117567/ref=pd_thx_sims_2?pf_rd_p=426287601&pf_rd_s=left-2&pf_rd_t=3201&pf_rd_i=typ01&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=12B25GT49993SRVRDH47) qualify? | wss | moss | bookrecommendations | books | null | null | open | WSS/MOSS Book
===
I have been using Inside MS Windows SharePoint Services 3.0 by Ted Pattison to help me crack into WSS Development. It has been an excellent developer start, but now that I'm moving beyond I need some more referencey type of information.
I would normally just use MSDN, but I find it severely lacking in some of the examples, for instance specifically describing the practical differences between Lookup and LookupMulti fields. Does anyone know of a a good WSS/MOSS reference book? Would the Wrox book [Professional SharePoint Development](http://www.amazon.com/gp/product/0470117567/ref=pd_thx_sims_2?pf_rd_p=426287601&pf_rd_s=left-2&pf_rd_t=3201&pf_rd_i=typ01&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=12B25GT49993SRVRDH47) qualify? | 0 |
14,552 | 08/18/2008 13:02:27 | 1,545 | 08/16/2008 14:28:42 | 66 | 9 | SSRS scheduled reports not working. | My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was:
>'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK
SERVICE'. The step failed.
I'm using SQL authentication for the report so it shouldn't be issues with the permissions to the data. No sheduled reports on the server will run. | sql-server | reporting-services | null | null | null | null | open | SSRS scheduled reports not working.
===
My scheduled reports in SQL server won't run. I checked the logs and found the job that was failing. The error message in the log was:
>'EXECUTE AS LOGIN' failed for the requested login 'NT AUTHORITY\NETWORK
SERVICE'. The step failed.
I'm using SQL authentication for the report so it shouldn't be issues with the permissions to the data. No sheduled reports on the server will run. | 0 |
14,569 | 08/18/2008 13:20:32 | 1,693 | 08/18/2008 02:25:37 | 24 | 3 | Best License for Selling Open Source Software | What's the best license to use for your software when you want to be paid for commercial use but are happy for non-profits/geeks to use for free? | opensource | business | licensing | null | null | 09/19/2011 12:14:01 | not constructive | Best License for Selling Open Source Software
===
What's the best license to use for your software when you want to be paid for commercial use but are happy for non-profits/geeks to use for free? | 4 |
14,570 | 08/18/2008 13:21:45 | 1,013 | 08/11/2008 13:24:18 | 48 | 5 | How to organize dataset queries to improve performance | I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference?
I also dont know where to create instances of the adapters.
- Should I do it in the Page_Load?
- Should I just do it when I'm going to use it?
- Am I opening a new connection when I create a new
instance?
This doesn't seem very important, but every time I create a query a little voice on my brain asks me these questions.
| asp.net | database | performance | null | null | null | open | How to organize dataset queries to improve performance
===
I don't know when to add to a dataset a tableadapter or a query from toolbox. Does it make any difference?
I also dont know where to create instances of the adapters.
- Should I do it in the Page_Load?
- Should I just do it when I'm going to use it?
- Am I opening a new connection when I create a new
instance?
This doesn't seem very important, but every time I create a query a little voice on my brain asks me these questions.
| 0 |
14,577 | 08/18/2008 13:24:55 | 1,030 | 08/11/2008 15:40:52 | 196 | 17 | How do I avoid using cursors in Sybase (T-SQL)? | Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alphanumeric code.
What we need to do, is figure out the possible distinct values of this code, call another stored procedure to cross reference these discreet values and then update the result set with the newly deciphered values:
declare c_lookup_codes for
select distinct lookup_code
from #workinprogress
while(1=1)
begin
fetch c_lookup_codes into @lookup_code
if @@sqlstatus<>0
begin
break
end
exec proc_code_xref @lookup_code @xref_code OUTPUT
update #workinprogress
set xref = @xref_code
where lookup_code = @lookup_code
end
Now then, whilst this may give some folks palpitations, it does work. My question is, how best would one avoid this kind of thing?
_NB: for the purposes of this example you can also imagine that the result set is in the region of 500k rows and that there are 100 distinct values of look_up_code and finally, that it is not possible to have a table with the xref values in as the logic in proc_code_xref is too arcane._ | tsql | sybase | cursor | null | null | null | open | How do I avoid using cursors in Sybase (T-SQL)?
===
Imagine the scene, you're updating some legacy Sybase code and come across a cursor. The stored procedure builds up a result set in a #temporary table which is all ready to be returned except that one of columns isn't terribly human readable, it's an alphanumeric code.
What we need to do, is figure out the possible distinct values of this code, call another stored procedure to cross reference these discreet values and then update the result set with the newly deciphered values:
declare c_lookup_codes for
select distinct lookup_code
from #workinprogress
while(1=1)
begin
fetch c_lookup_codes into @lookup_code
if @@sqlstatus<>0
begin
break
end
exec proc_code_xref @lookup_code @xref_code OUTPUT
update #workinprogress
set xref = @xref_code
where lookup_code = @lookup_code
end
Now then, whilst this may give some folks palpitations, it does work. My question is, how best would one avoid this kind of thing?
_NB: for the purposes of this example you can also imagine that the result set is in the region of 500k rows and that there are 100 distinct values of look_up_code and finally, that it is not possible to have a table with the xref values in as the logic in proc_code_xref is too arcane._ | 0 |
14,588 | 08/18/2008 13:30:21 | 1,492 | 08/15/2008 21:46:00 | 11 | 2 | Do you use version control other than for source code? | I've found SVN to be extremelly usefull for documentation, personal files, among other non-source code uses.
What other practical uses have you found to version control systems in general? | svn | cvs | version | control | system | null | open | Do you use version control other than for source code?
===
I've found SVN to be extremelly usefull for documentation, personal files, among other non-source code uses.
What other practical uses have you found to version control systems in general? | 0 |
14,611 | 08/18/2008 13:40:33 | 1,753 | 08/18/2008 12:42:26 | 6 | 1 | Editing User Profile w/ Forms Authentication | We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address.
When a user goes to their profile page, all the fields are blank and they are unable to edit them. I have read a number of articles discussing how to import profiles from another data store, or to sync profiles. This doesn't work for us, because we don't have another data store where these profiles are stored.
Will I just have to recreate the edit profile page and build a custom profile editor? Is this information exposed via SharePoint API? I don't think directly editing the database is a good solution. | moss | wss | null | null | null | null | open | Editing User Profile w/ Forms Authentication
===
We're using Forms Authentication in SharePoint. When the account is created, the administrator can add some information, like name and address. But the required fields are username and email address.
When a user goes to their profile page, all the fields are blank and they are unable to edit them. I have read a number of articles discussing how to import profiles from another data store, or to sync profiles. This doesn't work for us, because we don't have another data store where these profiles are stored.
Will I just have to recreate the edit profile page and build a custom profile editor? Is this information exposed via SharePoint API? I don't think directly editing the database is a good solution. | 0 |
14,614 | 08/18/2008 13:42:08 | 1,108 | 08/12/2008 12:16:28 | 10 | 0 | Static Methods in an Interface/Abstract Class | First off, I understand the reasons why an interface or abstract class (in the .NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution.
What I want is a set of "helper" classes that all have their own static methods such that if I get objects A, B, and C from a third party vendor, I can have helper classes with methods such as
<pre>
AHelper.RetrieveByID(string id);
AHelper.RetrieveByName(string name);
AHelper.DumpToDatabase();
</pre>
Since my AHelper, BHelper, and CHelper classes will all basically have the same methods, it seems to makes sense to move these methods to an interface that these classes then derive from. However, wanting these methods to be static precludes me from having a generic interface or abstract class for all of them to derive from.
I could always make these methods non-static and then instantiate the objects first such as
<pre>
AHelper a = new AHelper();
a.DumpToDatabase();
</pre>
However, this code doesn't seem as intuitive to me. What are your suggestions? Should I abandon using an interface or abstract class altogether (the situation I'm in now) or can this possibly be refactored to accomplish the design I'm looking for? | .net | interface-design | abstract-class | static-methods | null | null | open | Static Methods in an Interface/Abstract Class
===
First off, I understand the reasons why an interface or abstract class (in the .NET/C# terminology) cannot have abstract static methods. My question is then more focused on the best design solution.
What I want is a set of "helper" classes that all have their own static methods such that if I get objects A, B, and C from a third party vendor, I can have helper classes with methods such as
<pre>
AHelper.RetrieveByID(string id);
AHelper.RetrieveByName(string name);
AHelper.DumpToDatabase();
</pre>
Since my AHelper, BHelper, and CHelper classes will all basically have the same methods, it seems to makes sense to move these methods to an interface that these classes then derive from. However, wanting these methods to be static precludes me from having a generic interface or abstract class for all of them to derive from.
I could always make these methods non-static and then instantiate the objects first such as
<pre>
AHelper a = new AHelper();
a.DumpToDatabase();
</pre>
However, this code doesn't seem as intuitive to me. What are your suggestions? Should I abandon using an interface or abstract class altogether (the situation I'm in now) or can this possibly be refactored to accomplish the design I'm looking for? | 0 |
14,617 | 08/18/2008 13:43:48 | 1,769 | 08/18/2008 13:35:40 | 1 | 0 | Java: What is the best way to SFTP a file from a server | What is the best was to retrieve a file from a server using SFTP (as opposed to FTPS) using Java?
I'll leave the particular definition of best up to you but in my mind it should include free :) | java | ftp | security | sftp | null | null | open | Java: What is the best way to SFTP a file from a server
===
What is the best was to retrieve a file from a server using SFTP (as opposed to FTPS) using Java?
I'll leave the particular definition of best up to you but in my mind it should include free :) | 0 |
14,618 | 08/18/2008 13:44:23 | 1,077 | 08/12/2008 10:34:56 | 11 | 2 | Multiple choice on WinForms | What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value.
It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in the code at some appropriate initialisation point, but I feel like I'm missing something. | winforms | combobox | null | null | null | null | open | Multiple choice on WinForms
===
What's the best way of implementing a multiple choice option in Windows Forms? I want to enforce a single selection from a list, starting with a default value.
It seems like a ComboBox would be a good choice, but is there a way to specify a non-blank default value? I could just set it in the code at some appropriate initialisation point, but I feel like I'm missing something. | 0 |
14,627 | 08/18/2008 13:48:57 | 1,414 | 08/15/2008 15:07:31 | 31 | 6 | What was your biggest mistake involving email? | I was wondering what some of the biggest programming mistakes people have made involving mass mailing code or email code in general were. (I've posted mine below) | mail | email | spam | e-mail | null | null | open | What was your biggest mistake involving email?
===
I was wondering what some of the biggest programming mistakes people have made involving mass mailing code or email code in general were. (I've posted mine below) | 0 |
14,634 | 08/18/2008 13:53:54 | 572 | 08/06/2008 20:56:54 | 558 | 52 | Is it possible to automatically make check-outs from any VCS? | Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, monthly, etc.). Is it possible to have an auto-moveup of the latest tagged version (and not the latest checkin, as that might not be 100% stable), for example 8AM on Monday mornings, either using a script or a built-in feature of the VCS? | cvs | svn | version | version-control | vcs | null | open | Is it possible to automatically make check-outs from any VCS?
===
Let's take a web development environment, where developers checkout a project onto their local machines, work on it, and check in changes to development. These changes are further tested on development and moved live on a regular schedule (eg weekly, monthly, etc.). Is it possible to have an auto-moveup of the latest tagged version (and not the latest checkin, as that might not be 100% stable), for example 8AM on Monday mornings, either using a script or a built-in feature of the VCS? | 0 |
14,646 | 08/18/2008 14:00:11 | 123 | 08/02/2008 08:01:26 | 536 | 24 | How to add "Project Description" in FogBugz? | When i create a new project (or even editing the Sample Project) there is no way to add Description to the project.
Or am i blind to the obvious? | fogbugz | null | null | null | null | null | open | How to add "Project Description" in FogBugz?
===
When i create a new project (or even editing the Sample Project) there is no way to add Description to the project.
Or am i blind to the obvious? | 0 |
14,656 | 08/18/2008 14:06:13 | 1,010 | 08/11/2008 13:02:11 | 71 | 4 | Can a proxy server cache SSL requests? | Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, so I reckon they can't.
I'm considering a desktop application, run by a number of people behind a proxy. This application may access services across the internet and I'd like to take advantage of the in-built internet caching infrastructure. If the caching proxy servers can't cache SSL delivered content, would simply encrypting the content of a response be a viable option? | proxy | caching | ssl | encryption | null | null | open | Can a proxy server cache SSL requests?
===
Can a (||any) proxy server cache content that is requested by a client over https? As the proxy server can't see the querystring, or the http headers, so I reckon they can't.
I'm considering a desktop application, run by a number of people behind a proxy. This application may access services across the internet and I'd like to take advantage of the in-built internet caching infrastructure. If the caching proxy servers can't cache SSL delivered content, would simply encrypting the content of a response be a viable option? | 0 |
14,674 | 08/18/2008 14:20:09 | 1,193 | 08/13/2008 12:23:37 | 3 | 2 | Different solutions/project files for Local vs Build environments | As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments.
The reason this has come about is because of reference problems we experienced in our previous project. On a frequent basis people would mistakenly add a reference to an assembly in the wrong location, which would mean it would work okay on their local environment, but might break on someone else's or on the build machine.
Also, the reference paths are in the csproj.user files which means these must be committed to source control, so everyone has to share these same settings.
So we are thinking about having separate projects and solutions on our CI server, so that when we do a build it uses these projects rather than local development ones.
It has obvious drawbacks such as an overhead to maintaining these separate files and the associated process that would need to be defined and followed, but it has benefits in that we would be in more control over *EXACTLY* what happens in the production environment.
What I haven't been able to find is anything on this subject - can't believe we are the only people to think about this - so all thoughts are welcome.
Thanks!
| buildprocess | null | null | null | null | null | open | Different solutions/project files for Local vs Build environments
===
As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments.
The reason this has come about is because of reference problems we experienced in our previous project. On a frequent basis people would mistakenly add a reference to an assembly in the wrong location, which would mean it would work okay on their local environment, but might break on someone else's or on the build machine.
Also, the reference paths are in the csproj.user files which means these must be committed to source control, so everyone has to share these same settings.
So we are thinking about having separate projects and solutions on our CI server, so that when we do a build it uses these projects rather than local development ones.
It has obvious drawbacks such as an overhead to maintaining these separate files and the associated process that would need to be defined and followed, but it has benefits in that we would be in more control over *EXACTLY* what happens in the production environment.
What I haven't been able to find is anything on this subject - can't believe we are the only people to think about this - so all thoughts are welcome.
Thanks!
| 0 |
14,698 | 08/18/2008 14:32:41 | 1,733 | 08/18/2008 11:22:07 | 1 | 0 | How to make Pro*C cope with #warning directives? | When I try to precompile a *.pc file that contains a #warning directive I recieve the following error:
PCC-S-02014, Encountered the symbol "warning" when expecting one of the followin
g: (bla bla bla).
Can I somehow convince Pro*C to ignore the thing if it doesn't know what to do with it? I can't remove the #warning directive as it's used in a header file that I can't change and must include.
| c | oracle | proc | null | null | null | open | How to make Pro*C cope with #warning directives?
===
When I try to precompile a *.pc file that contains a #warning directive I recieve the following error:
PCC-S-02014, Encountered the symbol "warning" when expecting one of the followin
g: (bla bla bla).
Can I somehow convince Pro*C to ignore the thing if it doesn't know what to do with it? I can't remove the #warning directive as it's used in a header file that I can't change and must include.
| 0 |
14,708 | 08/18/2008 14:36:49 | 1,351 | 08/14/2008 17:22:50 | 1 | 0 | Powershell FINDSTR eqivalent? | What's the DOS FINDSTR eqivalent for powershell? I need to search a bunch of log files for "ERROR" | powershell | searching | null | null | null | null | open | Powershell FINDSTR eqivalent?
===
What's the DOS FINDSTR eqivalent for powershell? I need to search a bunch of log files for "ERROR" | 0 |
14,717 | 08/18/2008 14:39:51 | 1,212 | 08/13/2008 13:17:40 | 36 | 2 | Identifying MSSQL Performance Problems | We're having sporadic, random query timeouts on our MSSQL2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only gives cumulative CPU and IO time used by a process, not what it's using right then, or over a specific timeframe. Perhaps I could use the profiler and run a trace, but this cluster is very heavily used and I'm afraid I'd be looking for a needle in a haystack. Am I barking up the wrong tree?
Does anyone have some good methods for tracking down expensive queries/processes in this environment? | mssql | performance | null | null | null | null | open | Identifying MSSQL Performance Problems
===
We're having sporadic, random query timeouts on our MSSQL2005 cluster. I own a few apps that use it, so I'm helping out in the investigation. When watching the % CPU time in regular ol' Perfmon, you can certainly see it pegging out. However, SQL activity monitor only gives cumulative CPU and IO time used by a process, not what it's using right then, or over a specific timeframe. Perhaps I could use the profiler and run a trace, but this cluster is very heavily used and I'm afraid I'd be looking for a needle in a haystack. Am I barking up the wrong tree?
Does anyone have some good methods for tracking down expensive queries/processes in this environment? | 0 |
14,731 | 08/18/2008 14:48:27 | 1,469 | 08/15/2008 18:09:38 | 41 | 0 | UrlEncode through a console application? | normally I would just use:
HttpContext.Current.Server.UrlEncode("url");
But since this is a console application, HttpContext.Current is always going to be null.
Is there another method that does the same thing that I could use? | c# | .net | console | null | null | null | open | UrlEncode through a console application?
===
normally I would just use:
HttpContext.Current.Server.UrlEncode("url");
But since this is a console application, HttpContext.Current is always going to be null.
Is there another method that does the same thing that I could use? | 0 |
14,756 | 08/18/2008 15:00:54 | 1,545 | 08/16/2008 14:28:42 | 76 | 12 | Printers not available unless shared. | We are using classic asp to call a C# dll and in the C# dll we are using System.Drawing.Printing.PrinterSettings.InstalledPrinters to get a list of availabe printers. If the printers are not shared they will not show up when a user trys to print. The Local System account can see and print to them from a VB6 dll and Administrators can print just fine from the C# dll as you might expect. Is there some sort of permissions we need to grant the user so these printers will be available? | c# | asp | printing | null | null | null | open | Printers not available unless shared.
===
We are using classic asp to call a C# dll and in the C# dll we are using System.Drawing.Printing.PrinterSettings.InstalledPrinters to get a list of availabe printers. If the printers are not shared they will not show up when a user trys to print. The Local System account can see and print to them from a VB6 dll and Administrators can print just fine from the C# dll as you might expect. Is there some sort of permissions we need to grant the user so these printers will be available? | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.